diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/tsan/thread_leak2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/tsan/tsan.exp | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tsan/tsan.exp | 6 |
4 files changed, 18 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 168f01607c7..404569ed743 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-12-10 Max Ostapenko <m.ostapenko@partner.samsung.com> + + * c-c++-common/tsan/thread_leak2.c: `dg-skip-if' removed. + * gcc-dg/tsan/tsan.exp: Run only with '-O0' and '-O2' options. + * g++-dg/tsan/tsan.exp: Likewise. + 2013-12-10 Eric Botcazou <ebotcazou@adacore.com> * gcc.dg/vect/pr58508.c: XFAIL for vect_no_align. diff --git a/gcc/testsuite/c-c++-common/tsan/thread_leak2.c b/gcc/testsuite/c-c++-common/tsan/thread_leak2.c index 12ac7347ff4..d6f4e220025 100644 --- a/gcc/testsuite/c-c++-common/tsan/thread_leak2.c +++ b/gcc/testsuite/c-c++-common/tsan/thread_leak2.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-shouldfail "tsan" } */ -/* { dg-skip-if "" { *-*-* } { "-O3 -funroll-loops" "-O3 -funroll-all-loops" } { "" } } */ #include <pthread.h> #include <unistd.h> diff --git a/gcc/testsuite/g++.dg/tsan/tsan.exp b/gcc/testsuite/g++.dg/tsan/tsan.exp index 164a92eb85c..68b1d839a9a 100644 --- a/gcc/testsuite/g++.dg/tsan/tsan.exp +++ b/gcc/testsuite/g++.dg/tsan/tsan.exp @@ -21,6 +21,7 @@ # Load support procs. load_lib g++-dg.exp load_lib tsan-dg.exp +load_lib torture-options.exp if ![check_effective_target_fthread_sanitizer] { return @@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] { # Initialize `dg'. dg-init +torture-init +set-torture-options [list \ + { -O0 } \ + { -O2 } ] + if [tsan_init] { # Main loop. diff --git a/gcc/testsuite/gcc.dg/tsan/tsan.exp b/gcc/testsuite/gcc.dg/tsan/tsan.exp index 248cfb18f80..a4a5b726340 100644 --- a/gcc/testsuite/gcc.dg/tsan/tsan.exp +++ b/gcc/testsuite/gcc.dg/tsan/tsan.exp @@ -21,6 +21,7 @@ # Load support procs. load_lib gcc-dg.exp load_lib tsan-dg.exp +load_lib torture-options.exp if ![check_effective_target_fthread_sanitizer] { return @@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] { # Initialize `dg'. dg-init +torture-init +set-torture-options [list \ + { -O0 } \ + { -O2 } ] + if [tsan_init] { # Main loop. |