From: Jonathan Wakely Date: Sun, 31 Jul 2016 19:30:16 +0000 (+0100) Subject: Ensure std::atomic test is compiled with optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d5b70b0361150a8162834510d924bf1b22d4202;p=gcc.git Ensure std::atomic test is compiled with optimization * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Ensure test is compiled with optimization. From-SVN: r238929 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 359510d6daf..baf979a0c72 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-07-31 Jonathan Wakely + * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: + Ensure test is compiled with optimization. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Adjust dg-prune-output pattern for error in C++98 mode. diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc index f4a88f68031..b8f263f6e73 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc @@ -1,5 +1,5 @@ // { dg-do compile { target i?86-*-* x86_64-*-* } } -// { dg-options "-std=gnu++11 -g0 -fno-exceptions -fno-asynchronous-unwind-tables" } +// { dg-options "-std=gnu++11 -O2 -g0 -fno-exceptions -fno-asynchronous-unwind-tables" } // { dg-additional-options "-march=i486" { target ia32 } } // { dg-final { scan-assembler-times "xacquire\|\.byte\[^\n\r]*0xf2" 14 } } // { dg-final { scan-assembler-times "xrelease\|\.byte\[^\n\r]*0xf3" 14 } }