2014-10-01 Andrew Pinski <apinski@cavium.com> Max Ostapenko <m.ostapenko@partner.samsung.com> * lib/ubsan-dg.exp (check_effective_target_fsanitize_address): New function. (ubsan_init): Save off ALWAYS_CXXFLAGS. (ubsan_finish): Restore ALWAYS_CXXFLAGS correctly. * lib/asan-dg.exp (check_effective_target_faddress_sanitizer): Rename to ... (check_effective_target_fsanitize_address): ... this. Change to creating an executable. (asan_init): Save off ALWAYS_CXXFLAGS. (asan_finish): Restore ALWAYS_CXXFLAGS correctly. * lib/tsan-dg.exp (check_effective_target_fthread_sanitizer): Rename to ... (check_effective_target_fsanitize_thread): ... this. Change to creating an executable. (tsan_init): Save off ALWAYS_CXXFLAGS. (tsan_finish): Restore ALWAYS_CXXFLAGS correctly. Set dg-do-what-default to run as a default behaviour. * gcc.dg/ubsan/ubsan.exp: Don't check the return value of ubsan_init. Check check_effective_target_fsanitize_undefined before running the tests. * g++.dg/ubsan/ubsan.exp: Likewise. * gcc.dg/asan/asan.exp: Don't check the return value of asan_init. check_effective_target_fsanitize_address too early. Check check_effective_target_fsanitize_address before running the tests. * g++.dg/asan/asan.exp: Likewise. * gcc.dg/tsan/tsan.exp: Don't check the return value of tsan_init. check_effective_target_fsanitize_thread too early. Check check_effective_target_fsanitize_thread before running the tests. * g++.dg/tsan/tsan.exp: Likewise. Co-Authored-By: Max Ostapenko <m.ostapenko@partner.samsung.com> From-SVN: r215793
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
asan.exp | Loading commit data... | |
asan_globals_test-wrapper.cc | Loading commit data... | |
asan_globals_test.cc | Loading commit data... | |
asan_mem_test.cc | Loading commit data... | |
asan_oob_test.cc | Loading commit data... | |
asan_str_test.cc | Loading commit data... | |
asan_test.C | Loading commit data... | |
asan_test.cc | Loading commit data... | |
asan_test_config.h | Loading commit data... | |
asan_test_utils.h | Loading commit data... | |
deep-stack-uaf-1.C | Loading commit data... | |
deep-tail-call-1.C | Loading commit data... | |
deep-thread-stack-1.C | Loading commit data... | |
default-options-1.C | Loading commit data... | |
dejagnu-gtest.h | Loading commit data... | |
dlclose-test-1-so.cc | Loading commit data... | |
interception-failure-test-1.C | Loading commit data... | |
interception-malloc-test-1.C | Loading commit data... | |
interception-test-1.C | Loading commit data... | |
large-func-test-1.C | Loading commit data... | |
pr55617.C | Loading commit data... | |
pr62017.C | Loading commit data... | |
sanitizer_pthread_wrappers.h | Loading commit data... | |
sanitizer_test_config.h | Loading commit data... | |
sanitizer_test_utils.h | Loading commit data... | |
shared-lib-test-1-so.cc | Loading commit data... |