This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libgo patch committed: Use -std=gnu99 for mksysinfo
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Date: Fri, 28 Jan 2011 15:54:58 -0800
- Subject: libgo patch committed: Use -std=gnu99 for mksysinfo
On Solaris mksysinfo.sh needs to use -std=gnu99, and that should, I
hope, do no harm on other platforms. This libgo patch changes it.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.
Ian
diff -r 7c5eab536ceb libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh Fri Jan 28 15:31:17 2011 -0800
+++ b/libgo/mksysinfo.sh Fri Jan 28 15:48:56 2011 -0800
@@ -64,7 +64,7 @@
#include <unistd.h>
EOF
-${CC} -fdump-go-spec=gen-sysinfo.go -S -o sysinfo.s sysinfo.c
+${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
echo 'package syscall' > ${OUT}