diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-19 11:29:17 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-19 11:29:17 -0700 |
commit | 0df54a9f4c22ef5186a327415517f5cc9f8def13 (patch) | |
tree | cc39aa2709956180903dd18700740da902f96f1f /configure | |
parent | bb3a22a3eb6b0b2be52620577c1ef5465d3bcd76 (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-x | configure | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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}; |