Source-Changes-HG archive

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

[src/trunk]: src Install GCC (gcc.old/) headers for Sanitizers



details:   https://anonhg.NetBSD.org/src/rev/b4a903a009d4
branches:  trunk
changeset: 829462:b4a903a009d4
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Feb 01 20:50:22 2018 +0000

description:
Install GCC (gcc.old/) headers for Sanitizers

Install:
 - allocator_interface.h
 - asan_interface.h
 - common_interface_defs.h
 - tsan_interface_atomic.h

Into:
 - /usr/include/gcc-5/sanitizer

Note headers in a comment headers for introduction in future:
 - dfsan_interface.h
 - lsan_interface.h
 - msan_interface.h

Skip a file that will never be relevant on NetBSD:
 - linux_syscall_hooks.h

PR 52265 by Kamil Rytarowski

Proposed and accepted on tech-toolchain@.

Sponsored by <The NetBSD Foundation>

diffstat:

 distrib/sets/lists/base/mi                               |   3 +-
 distrib/sets/lists/comp/mi                               |   6 +++-
 etc/mtree/NetBSD.dist.base                               |   3 +-
 external/gpl3/gcc.old/usr.bin/include/Makefile           |   5 ++-
 external/gpl3/gcc.old/usr.bin/include/sanitizer/Makefile |  24 ++++++++++++++++
 5 files changed, 37 insertions(+), 4 deletions(-)

diffs (104 lines):

diff -r 3cdef8c6a2e0 -r b4a903a009d4 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Thu Feb 01 17:22:45 2018 +0000
+++ b/distrib/sets/lists/base/mi        Thu Feb 01 20:50:22 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1170 2018/01/24 09:51:25 wiz Exp $
+# $NetBSD: mi,v 1.1171 2018/02/01 20:50:23 kamil Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -1168,6 +1168,7 @@
 ./usr/include/gcc-4.5                          base-obsolete           obsolete
 ./usr/include/gcc-4.8                          base-c-usr
 ./usr/include/gcc-5                            base-c-usr
+./usr/include/gcc-5/sanitizer                  base-c-usr
 ./usr/include/gssapi                           base-c-usr
 ./usr/include/gssapi/rpc                       base-obsolete           obsolete
 ./usr/include/isofs                            base-c-usr
diff -r 3cdef8c6a2e0 -r b4a903a009d4 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Thu Feb 01 17:22:45 2018 +0000
+++ b/distrib/sets/lists/comp/mi        Thu Feb 01 20:50:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2171 2018/01/24 09:51:26 wiz Exp $
+#      $NetBSD: mi,v 1.2172 2018/02/01 20:50:22 kamil Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -1997,6 +1997,10 @@
 ./usr/include/gcc-5/omp.h                      comp-gcc-include        gcc=53
 ./usr/include/gcc-5/openacc.h                  comp-gcc-include        gcc=53
 ./usr/include/gcc-5/stdatomic.h                        comp-gcc-include        gcc=53,gcccmds
+./usr/include/gcc-5/sanitizer/allocator_interface.h    comp-gcc-include        gcc=53
+./usr/include/gcc-5/sanitizer/asan_interface.h comp-gcc-include        gcc=53
+./usr/include/gcc-5/sanitizer/common_interface_defs.h  comp-gcc-include        gcc=53
+./usr/include/gcc-5/sanitizer/tsan_interface_atomic.h  comp-gcc-include        gcc=53
 ./usr/include/gelf.h                           comp-c-include
 ./usr/include/getopt.h                         comp-c-include
 ./usr/include/glob.h                           comp-c-include
diff -r 3cdef8c6a2e0 -r b4a903a009d4 etc/mtree/NetBSD.dist.base
--- a/etc/mtree/NetBSD.dist.base        Thu Feb 01 17:22:45 2018 +0000
+++ b/etc/mtree/NetBSD.dist.base        Thu Feb 01 20:50:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist.base,v 1.167 2018/01/24 09:04:41 skrll Exp $
+#      $NetBSD: NetBSD.dist.base,v 1.168 2018/02/01 20:50:22 kamil Exp $
 #      @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -193,6 +193,7 @@
 ./usr/include/g++/tr2
 ./usr/include/gcc-4.8
 ./usr/include/gcc-5
+./usr/include/gcc-5/sanitizer
 ./usr/include/gssapi
 ./usr/include/isofs
 ./usr/include/isofs/cd9660
diff -r 3cdef8c6a2e0 -r b4a903a009d4 external/gpl3/gcc.old/usr.bin/include/Makefile
--- a/external/gpl3/gcc.old/usr.bin/include/Makefile    Thu Feb 01 17:22:45 2018 +0000
+++ b/external/gpl3/gcc.old/usr.bin/include/Makefile    Thu Feb 01 20:50:22 2018 +0000
@@ -1,7 +1,9 @@
-#      $NetBSD: Makefile,v 1.7 2017/10/05 06:30:19 wiz Exp $
+#      $NetBSD: Makefile,v 1.8 2018/02/01 20:50:22 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 3cdef8c6a2e0 -r b4a903a009d4 external/gpl3/gcc.old/usr.bin/include/sanitizer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc.old/usr.bin/include/sanitizer/Makefile  Thu Feb 01 20:50:22 2018 +0000
@@ -0,0 +1,24 @@
+#      $NetBSD: Makefile,v 1.1 2018/02/01 20:50:22 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