Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src When building GCC with Clang, disable optimizations for tree...
details: https://anonhg.NetBSD.org/src/rev/7c16f681d1c3
branches: trunk
changeset: 330348:7c16f681d1c3
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Jul 06 00:21:24 2014 +0000
description:
When building GCC with Clang, disable optimizations for tree.c until I
can figure out what is responsible for the miscompilation.
diffstat:
doc/TODO.clang | 5 ++++-
external/gpl3/gcc/usr.bin/backend/Makefile | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r e1bd80a25e98 -r 7c16f681d1c3 doc/TODO.clang
--- a/doc/TODO.clang Sat Jul 05 23:13:41 2014 +0000
+++ b/doc/TODO.clang Sun Jul 06 00:21:24 2014 +0000
@@ -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 @@
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.
diff -r e1bd80a25e98 -r 7c16f681d1c3 external/gpl3/gcc/usr.bin/backend/Makefile
--- a/external/gpl3/gcc/usr.bin/backend/Makefile Sat Jul 05 23:13:41 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/backend/Makefile Sun Jul 06 00:21:24 2014 +0000
@@ -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.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
Home |
Main Index |
Thread Index |
Old Index