Skip scan-assembler test when -flto is used
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Aug 2016 10:02:25 +0000 (11:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 2 Aug 2016 10:02:25 +0000 (11:02 +0100)
* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Skip
test if -flto used.

From-SVN: r238981

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

index 6f6554f6864f4e211e37053d58e271d9ab7b6116..68752ca8b40d0f5fd451a8fb3f77ef5ea23290cf 100644 (file)
@@ -1,5 +1,8 @@
 2016-08-02  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Skip
+       test if -flto used.
+
        * testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto to
        additional flags for compiling libtestc++.a objects.
 
index b8f263f6e73c9f6c20e5ad7d7b962cab6601a9ba..1123731e353db20af8a08063365382ca72e77f57 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
 // { dg-options "-std=gnu++11 -O2 -g0 -fno-exceptions -fno-asynchronous-unwind-tables" }
 // { dg-additional-options "-march=i486" { target ia32 } }
+// { dg-skip-if "scans fail with LTO" { lto } { "-flto" } }
 // { dg-final { scan-assembler-times "xacquire\|\.byte\[^\n\r]*0xf2" 14 } }
 // { dg-final { scan-assembler-times "xrelease\|\.byte\[^\n\r]*0xf3" 14 } }