Module Name: src
Committed By: joerg
Date: Sun Jul 6 00:21:24 UTC 2014
Modified Files:
src/doc: TODO.clang
src/external/gpl3/gcc/usr.bin/backend: Makefile
Log Message:
When building GCC with Clang, disable optimizations for tree.c until I
can figure out what is responsible for the miscompilation.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/doc/TODO.clang
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gcc/usr.bin/backend/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/doc/TODO.clang
diff -u src/doc/TODO.clang:1.11 src/doc/TODO.clang:1.12
--- src/doc/TODO.clang:1.11 Sat Jul 5 20:45:49 2014
+++ src/doc/TODO.clang Sun Jul 6 00:21:24 2014
@@ -1,4 +1,4 @@
-$NetBSD: TODO.clang,v 1.11 2014/07/05 20:45:49 joerg Exp $
+$NetBSD: TODO.clang,v 1.12 2014/07/06 00:21:24 joerg Exp $
Hacks for the clang integration
-------------------------------
@@ -8,3 +8,6 @@ for the incomplete explicit positioning
Workaround for .fpu handling in src/sys/lib/libunwind for ARM by forcing
GNU as.
+
+src/external/gpl3/gcc/usr.bin/backend forces tree.c to be compiled with -O0.
+g++ otherwise on trivial input.
Index: src/external/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.21 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.22
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.21 Sat Mar 15 20:46:38 2014
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile Sun Jul 6 00:21:24 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2014/03/15 20:46:38 mrg Exp $
+# $NetBSD: Makefile,v 1.22 2014/07/06 00:21:24 joerg Exp $
LIBISPRIVATE= yes
@@ -402,5 +402,7 @@ COPTS.lambda-code.c= -O0
COPTS.tree-loop-linear.c= -O0
.endif
+COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :}
+
.PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include
.PATH: ${DIST}/gcc/config