From fe0e8f78915e81602a5da33c50c47fafbc344d1b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 16 Apr 2019 01:20:30 -0700 Subject: 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. --- config.def.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'config.def.h') 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", -- cgit v1.2.3