aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMax Ostapenko <m.ostapenko@partner.samsung.com>2013-12-10 12:36:40 +0200
committerYury Gribov <ygribov@gcc.gnu.org>2013-12-10 10:36:40 +0000
commit475948faca73b1df41566cb6b21e95795fa86b09 (patch)
tree5ccfe3bac7c588f5d36497656ff11174bd1524e8 /gcc
parenta1067b09118751624c73fb06a206beadb8bccbac (diff)
downloadgcc-475948faca73b1df41566cb6b21e95795fa86b09.zip
gcc-475948faca73b1df41566cb6b21e95795fa86b09.tar.gz
gcc-475948faca73b1df41566cb6b21e95795fa86b09.tar.bz2
thread_leak2.c: `dg-skip-if' removed.
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. From-SVN: r205853
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/tsan/thread_leak2.c1
-rw-r--r--gcc/testsuite/g++.dg/tsan/tsan.exp6
-rw-r--r--gcc/testsuite/gcc.dg/tsan/tsan.exp6
4 files changed, 18 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 168f016..404569e 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 12ac734..d6f4e22 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 164a92e..68b1d83 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 248cfb1..a4a5b72 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.