summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-10 10:36:40 +0000
committerygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-10 10:36:40 +0000
commit2721751cdd07eba7e63fc4e539dc40945dbc7d00 (patch)
tree5ccfe3bac7c588f5d36497656ff11174bd1524e8
parenta86419c38a50aa59ded73d63974c9a08d40a5a08 (diff)
downloadgcc-2721751cdd07eba7e63fc4e539dc40945dbc7d00.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205853 138bc75d-0d04-0410-961f-82ee72b054a4
-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 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.