Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib/libasan Work around RISC-V compiler bu...
details: https://anonhg.NetBSD.org/src/rev/55189a39f661
branches: trunk
changeset: 334690:55189a39f661
user: dennis <dennis%NetBSD.org@localhost>
date: Tue Dec 02 03:20:39 2014 +0000
description:
Work around RISC-V compiler bug in gcc 4.8.3 (at least).
Should be reconsidered if the compiler is updated.
PR toolchain/49425
diffstat:
external/gpl3/gcc/lib/libasan/Makefile | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 364724d625d6 -r 55189a39f661 external/gpl3/gcc/lib/libasan/Makefile
--- a/external/gpl3/gcc/lib/libasan/Makefile Tue Dec 02 01:59:10 2014 +0000
+++ b/external/gpl3/gcc/lib/libasan/Makefile Tue Dec 02 03:20:39 2014 +0000
@@ -56,4 +56,10 @@
LIBDPLIBS+= stdc++ ${.CURDIR}/../libstdc++-v3
LIBDPLIBS+= pthread ${.CURDIR}/../../../../../lib/libpthread
+# Work around riscv compiler bugs in (at least) gcc 4.8.3
+.if ${MACHINE_ARCH} == "riscv64"
+COPTS.asan_allocator2.cc += -O0
+COPTS.sanitizer_netbsd.cc += -O0
+.endif
+
.include <bsd.lib.mk>
Home |
Main Index |
Thread Index |
Old Index