diff options
| author | Michael Forney <mforney@mforney.org> | 2019-04-16 01:20:30 -0700 | 
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-04-16 01:24:46 -0700 | 
| commit | fe0e8f78915e81602a5da33c50c47fafbc344d1b (patch) | |
| tree | b30819a329bb87023795cc63b97dd8e00ce2abe0 | |
| parent | bc54e40718b557a7f4d00256d8b914d3c79d96d2 (diff) | |
| download | cproc-fe0e8f78915e81602a5da33c50c47fafbc344d1b.tar.xz | |
Set __GNUC__=1
Although we support some GNU extensions beyond this, anything larger
will cause glibc headers to use inline assembly to alias functions. We
currently work around this by defining __asm__ to nothing, but that
doesn't seem like the right thing to do.
This also causes glibc to define an __extension__ and __restrict itself.
| -rw-r--r-- | config.def.h | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/config.def.h b/config.def.h index 43b9f54..a596e25 100644 --- a/config.def.h +++ b/config.def.h @@ -20,17 +20,14 @@ static char *preprocesscmd[] = {  	"-D", "__STDC_NO_VLA__",  	/* specify the GNU C extensions we support */ -	"-U", "__GNUC__", "-D", "__GNUC__=3", -	"-U", "__GNUC_MINOR__", "-D", "__GNUC_MINOR__=3", +	"-U", "__GNUC__", "-D", "__GNUC__=1", +	"-U", "__GNUC_MINOR__", "-D", "__GNUC_MINOR__=0",  	/* prevent glibc from using statement expressions for assert */  	"-D", "__STRICT_ANSI__",  	/* required for glibc headers */ -	"-D", "__restrict=restrict", -	"-D", "__extension__=",  	"-D", "__attribute__(x)=", -	"-D", "__asm__(x)=",  	/* required for kernel headers */  	"-D", "__signed__=signed", | 
