Module Name: src
Committed By: kamil
Date: Thu Feb 1 21:10:46 UTC 2018
Modified Files:
src/external/gpl3/gcc/usr.bin/include: Makefile
Added Files:
src/external/gpl3/gcc/usr.bin/include/sanitizer: Makefile
Log Message:
Install GCC (gcc) headers for Sanitizers
Sync this code with gcc.old.
PR 52265 by Kamil Rytarowski
Proposed and accepted on tech-toolchain@.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/usr.bin/include/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/include/sanitizer/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/usr.bin/include/Makefile
diff -u src/external/gpl3/gcc/usr.bin/include/Makefile:1.9 src/external/gpl3/gcc/usr.bin/include/Makefile:1.10
--- src/external/gpl3/gcc/usr.bin/include/Makefile:1.9 Sun Oct 8 20:40:06 2017
+++ src/external/gpl3/gcc/usr.bin/include/Makefile Thu Feb 1 21:10:46 2018
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2017/10/08 20:40:06 christos Exp $
+# $NetBSD: Makefile,v 1.10 2018/02/01 21:10:46 kamil Exp $
.include "../Makefile.inc"
+SUBDIR= sanitizer
+
.if exists(${.CURDIR}/arch/${GCC_MACHINE_ARCH}.mk)
.include "${.CURDIR}/arch/${GCC_MACHINE_ARCH}.mk"
.endif
@@ -25,6 +27,7 @@ CLEANFILES+= mm_malloc.h
INCSDIR= /usr/include/gcc-5
+.include <bsd.subdir.mk>
.include <bsd.prog.mk>
.PATH: ${G_EXTRA_HEADERS:H:O:u}
Added files:
Index: src/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile
diff -u /dev/null src/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile:1.1
--- /dev/null Thu Feb 1 21:10:46 2018
+++ src/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile Thu Feb 1 21:10:46 2018
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2018/02/01 21:10:46 kamil Exp $
+
+.include "../../../Makefile.gcc_path"
+
+NOOBJ= #defined
+
+SANITIZER= ${GCCDIST}/libsanitizer
+
+.PATH: ${SANITIZER}/include/sanitizer
+
+INCS= #
+INCS+= allocator_interface.h
+INCS+= asan_interface.h
+INCS+= common_interface_defs.h
+#INCS+= dfsan_interface.h # not supported
+#INCS+= lsan_interface.h # not supported
+#INCS+= msan_interface.h # not ready in GCC
+INCS+= tsan_interface_atomic.h
+
+.include <bsd.own.mk>
+
+INCSDIR= /usr/include/gcc-5/sanitizer
+
+.include <bsd.prog.mk>