Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/usr.bin/include Install GCC (gcc) headers ...



details:   https://anonhg.NetBSD.org/src/rev/41a258dffc0a
branches:  trunk
changeset: 829463:41a258dffc0a
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Feb 01 21:10:46 2018 +0000

description:
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>

diffstat:

 external/gpl3/gcc/usr.bin/include/Makefile           |   5 +++-
 external/gpl3/gcc/usr.bin/include/sanitizer/Makefile |  24 ++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r b4a903a009d4 -r 41a258dffc0a external/gpl3/gcc/usr.bin/include/Makefile
--- a/external/gpl3/gcc/usr.bin/include/Makefile        Thu Feb 01 20:50:22 2018 +0000
+++ b/external/gpl3/gcc/usr.bin/include/Makefile        Thu Feb 01 21:10:46 2018 +0000
@@ -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 @@
 
 INCSDIR=       /usr/include/gcc-5
 
+.include <bsd.subdir.mk>
 .include <bsd.prog.mk>
 
 .PATH: ${G_EXTRA_HEADERS:H:O:u}
diff -r b4a903a009d4 -r 41a258dffc0a external/gpl3/gcc/usr.bin/include/sanitizer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile      Thu Feb 01 21:10:46 2018 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index