diff options
author | Martin Liska <mliska@suse.cz> | 2019-03-06 12:46:15 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-03-06 11:46:15 +0000 |
commit | c24847a54abe6b93139f92318f254d1952315ba2 (patch) | |
tree | 7b998e55dcf8ec69c854ff358894ee0b19a79f23 /libsanitizer/sanitizer_common | |
parent | d80f04d61e11a103e2e463a1a90a3d780b0fd99b (diff) | |
download | gcc-c24847a54abe6b93139f92318f254d1952315ba2.zip gcc-c24847a54abe6b93139f92318f254d1952315ba2.tar.gz gcc-c24847a54abe6b93139f92318f254d1952315ba2.tar.bz2 |
Charry pick libsanitizer r355488 (PR sanitizer/88684).
2019-03-06 Martin Liska <mliska@suse.cz>
PR sanitizer/88684
* sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
(SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
* ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
Likewise.
From-SVN: r269419
Diffstat (limited to 'libsanitizer/sanitizer_common')
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform.h b/libsanitizer/sanitizer_common/sanitizer_platform.h index 352b374..1926679 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform.h +++ b/libsanitizer/sanitizer_common/sanitizer_platform.h @@ -290,10 +290,10 @@ # define MSC_PREREQ(version) 0 #endif -#if defined(__arm64__) && SANITIZER_IOS -# define SANITIZER_NON_UNIQUE_TYPEINFO 1 -#else +#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS) # define SANITIZER_NON_UNIQUE_TYPEINFO 0 +#else +# define SANITIZER_NON_UNIQUE_TYPEINFO 1 #endif // On linux, some architectures had an ABI transition from 64-bit long double |