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 use sanitizer_platform_limits_netbsd.cc.



details:   https://anonhg.NetBSD.org/src/rev/6087739a4499
branches:  trunk
changeset: 460233:6087739a4499
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 13 21:18:20 2019 +0000

description:
use sanitizer_platform_limits_netbsd.cc.
link asan with libm so it can find signgam.

basic libasan works now.

diffstat:

 external/gpl3/gcc/lib/Makefile.sanitizer |  4 ++--
 external/gpl3/gcc/lib/libasan/Makefile   |  3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 452580cb7cbf -r 6087739a4499 external/gpl3/gcc/lib/Makefile.sanitizer
--- a/external/gpl3/gcc/lib/Makefile.sanitizer  Sun Oct 13 21:12:32 2019 +0000
+++ b/external/gpl3/gcc/lib/Makefile.sanitizer  Sun Oct 13 21:18:20 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sanitizer,v 1.9 2019/10/02 06:51:59 mrg Exp $
+#      $NetBSD: Makefile.sanitizer,v 1.10 2019/10/13 21:18:20 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -31,7 +31,7 @@
        sanitizer_mac.cc \
        sanitizer_persistent_allocator.cc \
        sanitizer_platform_limits_linux.cc \
-       sanitizer_platform_limits_posix.cc \
+       sanitizer_platform_limits_netbsd.cc \
        sanitizer_posix.cc \
        sanitizer_posix_libcdep.cc \
        sanitizer_printf.cc \
diff -r 452580cb7cbf -r 6087739a4499 external/gpl3/gcc/lib/libasan/Makefile
--- a/external/gpl3/gcc/lib/libasan/Makefile    Sun Oct 13 21:12:32 2019 +0000
+++ b/external/gpl3/gcc/lib/libasan/Makefile    Sun Oct 13 21:18:20 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2019/10/02 02:54:34 mrg Exp $
+# $NetBSD: Makefile,v 1.30 2019/10/13 21:18:20 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=    # defined
 NOSANITIZER=   # defined
@@ -45,6 +45,7 @@
 LIB=   asan
 SRCS+= ${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .if ${MACHINE_ARCH} == "vax"



Home | Main Index | Thread Index | Old Index