Testing with -flto revealed a scan-assembler test that fails.

        * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Skip
        test if -flto used.

Tested x86_64-linux, committed to trunk.

commit 8d3c6b7714a521ae5aff7843a4187679d94f4176
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Aug 2 11:00:11 2016 +0100

    Skip scan-assembler test when -flto is used
    
        * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Skip
        test if -flto used.

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 b8f263f..1123731 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 } }
 

Reply via email to