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 define CAN_SANITIZE_UB properly: liba...
details: https://anonhg.NetBSD.org/src/rev/18c3b1cefe32
branches: trunk
changeset: 448766:18c3b1cefe32
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Feb 08 22:06:12 2019 +0000
description:
define CAN_SANITIZE_UB properly: libasan and libtsan need to not
have it set, libubsan needs to have it set.
fixes almost all the new atf failures from GCC 7 switch.
diffstat:
external/gpl3/gcc/lib/libasan/Makefile | 3 ++-
external/gpl3/gcc/lib/libtsan/Makefile | 3 ++-
external/gpl3/gcc/lib/libubsan/Makefile | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r da7a339046f1 -r 18c3b1cefe32 external/gpl3/gcc/lib/libasan/Makefile
--- a/external/gpl3/gcc/lib/libasan/Makefile Fri Feb 08 20:34:23 2019 +0000
+++ b/external/gpl3/gcc/lib/libasan/Makefile Fri Feb 08 22:06:12 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2019/02/06 04:00:43 mrg Exp $
+# $NetBSD: Makefile,v 1.28 2019/02/08 22:06:12 mrg Exp $
UNSUPPORTED_COMPILER.clang= # defined
NOSANITIZER= # defined
@@ -42,6 +42,7 @@
LIB= asan
SRCS+= ${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+CPPFLAGS+=-DCAN_SANITIZE_UB=0
.if ${MACHINE_ARCH} == "vax"
COPTS.asan_allocator.cc += -O1
diff -r da7a339046f1 -r 18c3b1cefe32 external/gpl3/gcc/lib/libtsan/Makefile
--- a/external/gpl3/gcc/lib/libtsan/Makefile Fri Feb 08 20:34:23 2019 +0000
+++ b/external/gpl3/gcc/lib/libtsan/Makefile Fri Feb 08 22:06:12 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2019/02/06 04:00:43 mrg Exp $
+# $NetBSD: Makefile,v 1.9 2019/02/08 22:06:12 mrg Exp $
.include <bsd.own.mk>
@@ -51,5 +51,6 @@
LIB= tsan
SRCS+= ${TSAN_SRCS}
+CPPFLAGS+=-DCAN_SANITIZE_UB=0
.include <bsd.lib.mk>
diff -r da7a339046f1 -r 18c3b1cefe32 external/gpl3/gcc/lib/libubsan/Makefile
--- a/external/gpl3/gcc/lib/libubsan/Makefile Fri Feb 08 20:34:23 2019 +0000
+++ b/external/gpl3/gcc/lib/libubsan/Makefile Fri Feb 08 22:06:12 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2019/02/06 04:00:43 mrg Exp $
+# $NetBSD: Makefile,v 1.11 2019/02/08 22:06:12 mrg Exp $
UNSUPPORTED_COMPILER.clang= # defined
LIBISCXX = yes
@@ -31,5 +31,6 @@
LIB= ubsan
SRCS+= ${UBSAN_SRCS}
LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+CPPFLAGS+=-DCAN_SANITIZE_UB=1
.include <bsd.lib.mk>
Home |
Main Index |
Thread Index |
Old Index