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 work around various headers not being ...



details:   https://anonhg.NetBSD.org/src/rev/ca8490e05f31
branches:  trunk
changeset: 943517:ca8490e05f31
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 05 13:36:49 2020 +0000

description:
work around various headers not being fully open without some
special #define being present (ie, define them.)

diffstat:

 external/gpl3/gcc/lib/Makefile.sanitizer |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r ce6d811df428 -r ca8490e05f31 external/gpl3/gcc/lib/Makefile.sanitizer
--- a/external/gpl3/gcc/lib/Makefile.sanitizer  Sat Sep 05 13:36:25 2020 +0000
+++ b/external/gpl3/gcc/lib/Makefile.sanitizer  Sat Sep 05 13:36:49 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sanitizer,v 1.11 2020/09/05 09:50:15 mrg Exp $
+#      $NetBSD: Makefile.sanitizer,v 1.12 2020/09/05 13:36:49 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -75,11 +75,17 @@
 SRCS+= ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
 CPPFLAGS+=-I${SANITIZER}/include -I${SANITIZER}
 CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
+# XXX __lwp_getprivate_fast() is hidden normally.
+CPPFLAGS.sanitizer_linux_libcdep.cc+= -D__LIBPTHREAD_SOURCE__
+# XXX wants old lwp info and power ioctl, npf wants nv.h
+CPPFLAGS.sanitizer_platform_limits_netbsd.cc+= -D__LEGACY_PT_LWPINFO -D_KMEMUSER \
+       -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
 CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 CPPFLAGS+=-D__STDC_LIMIT_MACROS -DSANITIZER_HAS_EXCEPTIONS=1
 CPPFLAGS+=-DSANITIZER_NEEDS_SEGV=1
 #CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
+
 LIBDPLIBS+=    pthread ${.CURDIR}/../../../../../lib/libpthread
 COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
 COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables



Home | Main Index | Thread Index | Old Index