Use dg-additional-options in libstdc++ tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 28 Jul 2016 21:00:34 +0000 (22:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 28 Jul 2016 21:00:34 +0000 (22:00 +0100)
* testsuite/17_intro/headers/c++2011/stdc++.cc: Change target-specific
dg-options to dg-additional-options so that default options are used.
* testsuite/17_intro/headers/c++2011/stdc++_multiple_inclusion.cc:
Likewise.
* testsuite/17_intro/headers/c++2014/stdc++.cc: Likewise.
* testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
Likewise.
* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
Use dg-additional-options instead of repeating the common options.

From-SVN: r238835

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/headers/c++2011/stdc++.cc
libstdc++-v3/testsuite/17_intro/headers/c++2011/stdc++_multiple_inclusion.cc
libstdc++-v3/testsuite/17_intro/headers/c++2014/stdc++.cc
libstdc++-v3/testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc

index fad941b..3afe2bf 100644 (file)
@@ -1,5 +1,15 @@
 2016-07-28  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/17_intro/headers/c++2011/stdc++.cc: Change target-specific
+       dg-options to dg-additional-options so that default options are used.
+       * testsuite/17_intro/headers/c++2011/stdc++_multiple_inclusion.cc:
+       Likewise.
+       * testsuite/17_intro/headers/c++2014/stdc++.cc: Likewise.
+       * testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
+       Likewise.
+       * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
+       Use dg-additional-options instead of repeating the common options.
+
        * testsuite/22_locale/conversions/string/1.cc: Remove unintended
        dg-do compile directive.
        * testsuite/26_numerics/headers/cmath/fabs_inline.cc: Fix syntax of
index 26a0e42..40bced7 100644 (file)
@@ -1,6 +1,6 @@
 // FreeBSD wants warning clean system headers:
-// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-options "-std=gnu++11" }
+// { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-do compile }
 
 // Copyright (C) 2007-2016 Free Software Foundation, Inc.
index 69869b7..59f7748 100644 (file)
@@ -1,6 +1,6 @@
 // FreeBSD wants warning clean system headers:
-// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-options "-std=gnu++11" }
+// { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-do compile }
 
 // Copyright (C) 2007-2016 Free Software Foundation, Inc.
index 2ab83c7..cd74e7b 100644 (file)
@@ -1,6 +1,6 @@
 // FreeBSD wants warning clean system headers:
-// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-options "-std=gnu++14" }
+// { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-do compile }
 
 // Copyright (C) 2015-2016 Free Software Foundation, Inc.
index 7303143..3805723 100644 (file)
@@ -1,6 +1,6 @@
 // FreeBSD wants warning clean system headers:
-// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-options "-std=gnu++14" }
+// { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } }
 // { dg-do compile }
 
 // Copyright (C) 2015-2016 Free Software Foundation, Inc.
index 560eee3..f4a88f6 100644 (file)
@@ -1,6 +1,6 @@
 // { 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 -g0 -fno-exceptions -fno-asynchronous-unwind-tables -march=i486" { target ia32 } }
+// { 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 } }