Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/compiler_rt/lib/clang/lib/netbsd Fix LLVM sanit...



details:   https://anonhg.NetBSD.org/src/rev/7938c0d308dd
branches:  trunk
changeset: 964960:7938c0d308dd
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Aug 23 19:26:02 2019 +0000

description:
Fix LLVM sanitizer build by GCC (HAVE_LLVM=no)

Do not error if a priority from 0 to 100 is used for constructor or
destructor.

Use -Wno-error to silence all errors from this warning type. There should
be used -Wno-prio-ctor-dtor, but it's not supported by GCC7.

diffstat:

 external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile |  4 +++-
 external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile |  4 +++-
 external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile      |  4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 902c3858feb4 -r 7938c0d308dd external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile
--- a/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile      Fri Aug 23 14:48:50 2019 +0000
+++ b/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile      Fri Aug 23 19:26:02 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $
+#      $NetBSD: Makefile,v 1.2 2019/08/23 19:26:02 kamil Exp $
 
 NOSANITIZER=    # defined
 
@@ -26,6 +26,8 @@
 
 CXXFLAGS+=     -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector
 
+COPTS.safestack.cc+=   ${${ACTIVE_CXX} == "gcc" :? -Wno-error :}
+
 LIBDIR=                /usr/lib/clang/${CLANG_VER}/lib/netbsd
 LIBISCXX=      yes
 
diff -r 902c3858feb4 -r 7938c0d308dd external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile
--- a/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile      Fri Aug 23 14:48:50 2019 +0000
+++ b/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile      Fri Aug 23 19:26:02 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $
+#      $NetBSD: Makefile,v 1.2 2019/08/23 19:26:02 kamil Exp $
 
 NOSANITIZER=    # defined
 
@@ -26,6 +26,8 @@
 
 CXXFLAGS+=     -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector
 
+COPTS.safestack.cc+=   ${${ACTIVE_CXX} == "gcc" :? -Wno-error :}
+
 LIBDIR=                /usr/lib/clang/${CLANG_VER}/lib/netbsd
 LIBISCXX=      yes
 
diff -r 902c3858feb4 -r 7938c0d308dd external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile
--- a/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile   Fri Aug 23 14:48:50 2019 +0000
+++ b/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile   Fri Aug 23 19:26:02 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $
+#      $NetBSD: Makefile,v 1.2 2019/08/23 19:26:02 kamil Exp $
 
 NOSANITIZER=    # defined
 
@@ -23,6 +23,8 @@
 
 CXXFLAGS+=     -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector
 
+COPTS.xray_init.cc+=   ${${ACTIVE_CXX} == "gcc" :? -Wno-error :}
+
 # Macro defined in newer builtin subdirectory, it has to be empty on NetBSD
 CPPFLAGS+=     -DNO_EXEC_STACK_DIRECTIVE=""
 



Home | Main Index | Thread Index | Old Index