cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit fe0e8f78915e81602a5da33c50c47fafbc344d1b
parent bc54e40718b557a7f4d00256d8b914d3c79d96d2
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 16 Apr 2019 01:20:30 -0700

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:
Mconfig.def.h | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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",