Module Name:    src
Committed By:   dennis
Date:           Tue Dec  2 03:20:39 UTC 2014

Modified Files:
        src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
Work around RISC-V compiler bug in gcc 4.8.3 (at least).
Should be reconsidered if the compiler is updated.
PR toolchain/49425


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/libasan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.7 src/external/gpl3/gcc/lib/libasan/Makefile:1.8
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.7	Thu Oct 23 23:31:26 2014
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Tue Dec  2 03:20:39 2014
@@ -56,4 +56,10 @@ CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIS
 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>

Reply via email to