diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2017-10-05 10:39:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2017-10-05 03:39:32 -0700 |
commit | bf4df9e6b488c9f1a27652dfa2b60f85a2376fdc (patch) | |
tree | f6db078c6443bbd6b3ebc240dfd7abf30ba29125 /libsanitizer | |
parent | 7a852b59df9f76478b9a3ce8144c0992ef6fc89a (diff) | |
download | gcc-bf4df9e6b488c9f1a27652dfa2b60f85a2376fdc.zip gcc-bf4df9e6b488c9f1a27652dfa2b60f85a2376fdc.tar.gz gcc-bf4df9e6b488c9f1a27652dfa2b60f85a2376fdc.tar.bz2 |
Add sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC
Since size of "void *" is 4 bytes for x32, check if __x86_64__ is defined
by $CC, instead of
if test x$ac_cv_sizeof_void_p = x8; then
to decide wether sanitizer_linux_x86_64.lo should be used.
PR sanitizer/82379
* configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
From-SVN: r253441
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/ChangeLog | 6 | ||||
-rw-r--r-- | libsanitizer/configure.tgt | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index a754dc2..b893e85 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,9 @@ +2017-10-05 H.J. Lu <hongjiu.lu@intel.com> + + PR sanitizer/82379 + * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set + to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC. + 2017-10-02 Jakub Jelinek <jakub@redhat.com> * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug): diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index 82e8a55..573e3b4 100644 --- a/libsanitizer/configure.tgt +++ b/libsanitizer/configure.tgt @@ -27,6 +27,8 @@ case "${target}" in TSAN_SUPPORTED=yes LSAN_SUPPORTED=yes TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo + fi + if echo "int x = __x86_64__;" | $CC -c -x c -o /dev/null - > /dev/null 2>&1; then SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo fi ;; |