gcc/testsuite/
authorAndrew Pinski <apinski@cavium.com>
Thu, 2 Oct 2014 06:35:49 +0000 (06:35 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Thu, 2 Oct 2014 06:35:49 +0000 (09:35 +0300)
commit9fbbb20da58853217f84a9c4b82c84274c27144f
tree297f9d61a147322f1921b51d41c0c3a0d04e1cda
parent9189aff736d51a1884d983010bfebfeb16d57516
gcc/testsuite/

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
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/asan.exp
gcc/testsuite/g++.dg/tsan/tsan.exp
gcc/testsuite/g++.dg/ubsan/ubsan.exp
gcc/testsuite/gcc.dg/asan/asan.exp
gcc/testsuite/gcc.dg/tsan/tsan.exp
gcc/testsuite/gcc.dg/ubsan/ubsan.exp
gcc/testsuite/lib/asan-dg.exp
gcc/testsuite/lib/tsan-dg.exp
gcc/testsuite/lib/ubsan-dg.exp