summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-02 10:02:25 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-02 10:02:25 +0000
commit8020abd0dfe3b93bb45207e4ea74a3129ec54a5c (patch)
tree68215eac7e6724c87879a7cdc812013c774048b6
parent2a5e3fbd8011726363b09a16229f6e717be78255 (diff)
downloadgcc-8020abd0dfe3b93bb45207e4ea74a3129ec54a5c.tar.gz
Skip scan-assembler test when -flto is used
* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Skip test if -flto used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238981 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc1
2 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 6f6554f6864..68752ca8b40 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
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 b8f263f6e73..1123731e353 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,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 } }