summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Language/Java/JavaLanguage.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2018-11-05 19:22:54 +0000
committerRainer Orth <ro@gcc.gnu.org>2018-11-05 19:22:54 +0000
commit682ee6c3bc233edd24dd5a20a186313c8815e31e (patch)
treea570da9c4840320c216e5249f4b55592540ff6e4 /lldb/source/Plugins/Language/Java/JavaLanguage.cpp
parent71c43ceaf862a5d9c9654f079fcaf82ed7ba40b4 (diff)
downloadbcm5719-llvm-682ee6c3bc233edd24dd5a20a186313c8815e31e.tar.gz
bcm5719-llvm-682ee6c3bc233edd24dd5a20a186313c8815e31e.zip
[Sanitizers] Disable SANITIZER_CAN_FAST_UNWIND on all SPARC targets
While testing my to-be-submitted Solaris sanitizer support on gcc mainline, I ran into an issue on Solaris/SPARC (sparc-sun-solaris2.11). Initially libasan.so failed to link: Undefined first referenced symbol in file __sanitizer::BufferedStackTrace::FastUnwindStack(unsigned long, unsigned long, unsigned long, unsigned long, unsigned int) /var/gcc/gcc-9.0.0-20181024/11.5-gcc-gas/sparc-sun-solaris2.11/./libsanitizer/asan/.libs/libasan.so This happens because SANITIZER_CAN_FAST_UNWIND is enabled on non-Linux SPARC targets (cf. sanitizer_stacktrace.h), but the guard around the SPARCv8-only definition in sanitizer_stacktrace_sparc.cc only works with clang: clang predefines __sparcv8__ on non-Solaris, and __sparcv8 only on Solaris gcc predefines __sparcv8 on Solaris, but __sparc_v8__ on non-Solaris The attached patch allows for all three variants. However, disabling SANITIZER_CAN_FAST_UNWIND on all SPARC targets fixes a couple of testsuite failures in the Solaris asan testsuite, so for now it's better to keep it disabled everywhere. This allowed the libsanitizer build to complete and gave reasonable (though slightly worse than on Solaris/x86) testsuite results. Differential Revision: https://reviews.llvm.org/D54099 llvm-svn: 346155
Diffstat (limited to 'lldb/source/Plugins/Language/Java/JavaLanguage.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud