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 0df54a9f4c22ef5186a327415517f5cc9f8def13
parent bb3a22a3eb6b0b2be52620577c1ef5465d3bcd76
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 19 May 2019 11:29:17 -0700

Don't define __GNUC__

This causes more problems (inline asm, GNU inline semantics, etc) than
it solves (alloca).

Diffstat:
Mconfigure | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git 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};