aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-16 01:20:30 -0700
committerMichael Forney <mforney@mforney.org>2019-04-16 01:24:46 -0700
commitfe0e8f78915e81602a5da33c50c47fafbc344d1b (patch)
treeb30819a329bb87023795cc63b97dd8e00ce2abe0 /config.def.h
parentbc54e40718b557a7f4d00256d8b914d3c79d96d2 (diff)
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.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
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",