libsanitize, asan - reapply r272406
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 16 Aug 2019 19:46:09 +0000 (19:46 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 16 Aug 2019 19:46:09 +0000 (19:46 +0000)
The entry in LOCAL_PATCHES was accidentally omitted.

2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>

* asan/asan_interceptors.h: Reapply r272406.

From-SVN: r274585

libsanitizer/ChangeLog
libsanitizer/asan/asan_interceptors.h

index 3f098a8380bea63ed65132ab24e7631158245493..0a315d83686455a8a3017b23279aad0bfac988b7 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * asan/asan_interceptors.h: Reapply r272406.
+
 2019-08-15  Martin Liska  <mliska@suse.cz>
 
        * LOCAL_PATCHES: Add r274540
index 155ea4156abbea594da32fc79ad58d4aa848be61..035a84e1a421fbe36aeffc240ddb3936e809d15f 100644 (file)
@@ -80,7 +80,12 @@ void InitializePlatformInterceptors();
 #if ASAN_HAS_EXCEPTIONS && !SANITIZER_WINDOWS && !SANITIZER_SOLARIS && \
     !SANITIZER_NETBSD
 # define ASAN_INTERCEPT___CXA_THROW 1
-# define ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION 1
+# if ! defined(ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION) \
+     || ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION
+#   define ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION 1
+# else
+#   define ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION 0
+# endif
 # if defined(_GLIBCXX_SJLJ_EXCEPTIONS) || (SANITIZER_IOS && defined(__arm__))
 #  define ASAN_INTERCEPT__UNWIND_SJLJ_RAISEEXCEPTION 1
 # else