aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-19 11:29:17 -0700
committerMichael Forney <mforney@mforney.org>2019-05-19 11:29:17 -0700
commit0df54a9f4c22ef5186a327415517f5cc9f8def13 (patch)
treecc39aa2709956180903dd18700740da902f96f1f /configure
parentbb3a22a3eb6b0b2be52620577c1ef5465d3bcd76 (diff)
Don't define __GNUC__
This causes more problems (inline asm, GNU inline semantics, etc) than it solves (alloca).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 1 insertions, 8 deletions
diff --git a/configure b/configure
index 4dd9fd9..01e9145 100755
--- a/configure
+++ b/configure
@@ -56,11 +56,6 @@ startfiles=0
endfiles=0
defines=
linkflags=
-gnuc='
- /* specify the GNU C extensions we support */
- "-D", "__GNUC__=1",
- "-D", "__GNUC_MINOR__=0",
-'
case "$target" in
*-linux-*musl*)
@@ -95,8 +90,6 @@ case "$target" in
: ${DEFAULT_DYNAMIC_LINKER:=/libexec/ld-elf.so.1}
startfiles='"-l", ":crt1.o", "-l", ":crti.o"'
endfiles='"-l", "c", "-l", ":crtn.o"'
- # any value of __GNUC__ will cause FreeBSD's headers to use asm for bswap
- gnuc=
linkflags='"-L", "/usr/lib",'
defines='
"-D", "_Pragma(x)=",
@@ -160,7 +153,7 @@ static char *preprocesscmd[] = {
"-D", "__signed__=signed",
"-D", "__thread=_Thread_local",
"-D", "__volatile__=volatile",
-$gnuc$defines};
+$defines};
static char *codegencmd[] = {"$DEFAULT_QBE", "-t", "$qbetarget"};
static char *assemblecmd[] = {"$DEFAULT_ASSEMBLER"};
static char *linkcmd[] = {"$DEFAULT_LINKER", $linkflags};