Commit 475948fa by Max Ostapenko Committed by Yury Gribov

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
parent a1067b09
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> 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/vect/pr58508.c: XFAIL for vect_no_align. * gcc.dg/vect/pr58508.c: XFAIL for vect_no_align.
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-shouldfail "tsan" } */ /* { dg-shouldfail "tsan" } */
/* { dg-skip-if "" { *-*-* } { "-O3 -funroll-loops" "-O3 -funroll-all-loops" } { "" } } */
#include <pthread.h> #include <pthread.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# Load support procs. # Load support procs.
load_lib g++-dg.exp load_lib g++-dg.exp
load_lib tsan-dg.exp load_lib tsan-dg.exp
load_lib torture-options.exp
if ![check_effective_target_fthread_sanitizer] { if ![check_effective_target_fthread_sanitizer] {
return return
...@@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] { ...@@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] {
# Initialize `dg'. # Initialize `dg'.
dg-init dg-init
torture-init
set-torture-options [list \
{ -O0 } \
{ -O2 } ]
if [tsan_init] { if [tsan_init] {
# Main loop. # Main loop.
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# Load support procs. # Load support procs.
load_lib gcc-dg.exp load_lib gcc-dg.exp
load_lib tsan-dg.exp load_lib tsan-dg.exp
load_lib torture-options.exp
if ![check_effective_target_fthread_sanitizer] { if ![check_effective_target_fthread_sanitizer] {
return return
...@@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] { ...@@ -28,6 +29,11 @@ if ![check_effective_target_fthread_sanitizer] {
# Initialize `dg'. # Initialize `dg'.
dg-init dg-init
torture-init
set-torture-options [list \
{ -O0 } \
{ -O2 } ]
if [tsan_init] { if [tsan_init] {
# Main loop. # Main loop.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment