Ensure std::atomic test is compiled with optimization
authorJonathan Wakely <jwakely@redhat.com>
Sun, 31 Jul 2016 19:30:16 +0000 (20:30 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 31 Jul 2016 19:30:16 +0000 (20:30 +0100)
* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
Ensure test is compiled with optimization.

From-SVN: r238929

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc

index 359510d6daf64d8bef7e22b0157498f31ab985b7..baf979a0c72242bc8d52522906890e80450a576f 100644 (file)
@@ -1,5 +1,8 @@
 2016-07-31  Jonathan Wakely  <jwakely@redhat.com>
 
+       * 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.
 
index f4a88f6803135308e30187a572edd150cfc2b261..b8f263f6e73c9f6c20e5ad7d7b962cab6601a9ba 100644 (file)
@@ -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 } }