From 28fda0c459b684cac1b970fa28382f61fa9d446b Mon Sep 17 00:00:00 2001 From: Alan Lawrence Date: Wed, 25 Mar 2015 15:46:58 +0000 Subject: [PATCH] re PR libstdc++/33394 (Add test case for Thread race segfault in std::string::append with -O and -s) PR libstdc++/33394 * testsuite/21_strings/basic_string/pthread33394.cc: Use dg-additional-options. From-SVN: r221666 --- libstdc++-v3/ChangeLog | 6 ++++++ .../testsuite/21_strings/basic_string/pthread33394.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d4611b83b4c..6793e9d39d6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-03-25 Alan Lawrence + + PR libstdc++/33394 + * testsuite/21_strings/basic_string/pthread33394.cc: Use + dg-additional-options. + 2015-03-25 Paolo Carlini PR libstdc++/65543 diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc b/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc index c706504bd53..4674974f4e3 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/pthread33394.cc @@ -18,7 +18,7 @@ // { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin* } } // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* } } -// { dg-options "-DITERATIONS=1000" { target simulator } } +// { dg-additional-options "-DITERATIONS=1000" { target simulator } } #ifndef ITERATIONS #define ITERATIONS 50000 #endif -- 2.30.2