Run testsuite/libgomp.c++/c++.exp at -O2 by default
authorTom de Vries <tom@codesourcery.com>
Tue, 30 Jun 2015 12:22:04 +0000 (12:22 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 30 Jun 2015 12:22:04 +0000 (12:22 +0000)
2015-06-30  Tom de Vries  <tom@codesourcery.com>

* testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
already set.  Use DEFAULT_CFLAGS in dg-runtest.
* testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
* testsuite/libgomp.c++/pr64824.C: Same.
* testsuite/libgomp.c++/pr64868.C: Same.
* testsuite/libgomp.c++/pr66199-1.C: Same.
* testsuite/libgomp.c++/pr66199-2.C: Same.
* testsuite/libgomp.c++/target-2.C: Same.
* testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
-std=<standard> option.
* testsuite/libgomp.c++/udr-11.C: Same.
* testsuite/libgomp.c++/udr-12.C: Same.
* testsuite/libgomp.c++/udr-13.C: Same.
* testsuite/libgomp.c++/udr-14.C: Same.
* testsuite/libgomp.c++/udr-15.C: Same.
* testsuite/libgomp.c++/udr-16.C: Same.
* testsuite/libgomp.c++/udr-17.C: Same.
* testsuite/libgomp.c++/udr-18.C: Same.
* testsuite/libgomp.c++/udr-19.C: Same.
* testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
* testsuite/libgomp.c++/simd-1.C: Same.
* testsuite/libgomp.c++/simd-2.C: Same.
* testsuite/libgomp.c++/simd-3.C: Same.
* testsuite/libgomp.c++/simd-4.C: Same.
* testsuite/libgomp.c++/simd-5.C: Same.
* testsuite/libgomp.c++/simd-6.C: Same.
* testsuite/libgomp.c++/simd-7.C: Same.
* testsuite/libgomp.c++/simd-8.C: Same.
* testsuite/libgomp.c++/simd-9.C: Same.
* testsuite/libgomp.c++/simd10.C: Same.
* testsuite/libgomp.c++/simd11.C: Same.
* testsuite/libgomp.c++/simd12.C: Same.
* testsuite/libgomp.c++/simd13.C: Same.

From-SVN: r225181

32 files changed:
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/atomic-1.C
libgomp/testsuite/libgomp.c++/atomic-16.C
libgomp/testsuite/libgomp.c++/c++.exp
libgomp/testsuite/libgomp.c++/for-7.C
libgomp/testsuite/libgomp.c++/pr64824.C
libgomp/testsuite/libgomp.c++/pr64868.C
libgomp/testsuite/libgomp.c++/pr66199-1.C
libgomp/testsuite/libgomp.c++/pr66199-2.C
libgomp/testsuite/libgomp.c++/simd-1.C
libgomp/testsuite/libgomp.c++/simd-2.C
libgomp/testsuite/libgomp.c++/simd-3.C
libgomp/testsuite/libgomp.c++/simd-4.C
libgomp/testsuite/libgomp.c++/simd-5.C
libgomp/testsuite/libgomp.c++/simd-6.C
libgomp/testsuite/libgomp.c++/simd-7.C
libgomp/testsuite/libgomp.c++/simd-8.C
libgomp/testsuite/libgomp.c++/simd-9.C
libgomp/testsuite/libgomp.c++/simd10.C
libgomp/testsuite/libgomp.c++/simd11.C
libgomp/testsuite/libgomp.c++/simd12.C
libgomp/testsuite/libgomp.c++/simd13.C
libgomp/testsuite/libgomp.c++/target-2.C
libgomp/testsuite/libgomp.c++/udr-11.C
libgomp/testsuite/libgomp.c++/udr-12.C
libgomp/testsuite/libgomp.c++/udr-13.C
libgomp/testsuite/libgomp.c++/udr-14.C
libgomp/testsuite/libgomp.c++/udr-15.C
libgomp/testsuite/libgomp.c++/udr-16.C
libgomp/testsuite/libgomp.c++/udr-17.C
libgomp/testsuite/libgomp.c++/udr-18.C
libgomp/testsuite/libgomp.c++/udr-19.C

index 2f1346de106f2b28926715090271107037a7bce5..efd08f3cf43ae79de8dc4d1111a7037b6ee8dae4 100644 (file)
@@ -1,3 +1,39 @@
+2015-06-30  Tom de Vries  <tom@codesourcery.com>
+
+       * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
+       already set.  Use DEFAULT_CFLAGS in dg-runtest.
+       * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
+       * testsuite/libgomp.c++/pr64824.C: Same.
+       * testsuite/libgomp.c++/pr64868.C: Same.
+       * testsuite/libgomp.c++/pr66199-1.C: Same.
+       * testsuite/libgomp.c++/pr66199-2.C: Same.
+       * testsuite/libgomp.c++/target-2.C: Same.
+       * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
+       -std=<standard> option.
+       * testsuite/libgomp.c++/udr-11.C: Same.
+       * testsuite/libgomp.c++/udr-12.C: Same.
+       * testsuite/libgomp.c++/udr-13.C: Same.
+       * testsuite/libgomp.c++/udr-14.C: Same.
+       * testsuite/libgomp.c++/udr-15.C: Same.
+       * testsuite/libgomp.c++/udr-16.C: Same.
+       * testsuite/libgomp.c++/udr-17.C: Same.
+       * testsuite/libgomp.c++/udr-18.C: Same.
+       * testsuite/libgomp.c++/udr-19.C: Same.
+       * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
+       * testsuite/libgomp.c++/simd-1.C: Same.
+       * testsuite/libgomp.c++/simd-2.C: Same.
+       * testsuite/libgomp.c++/simd-3.C: Same.
+       * testsuite/libgomp.c++/simd-4.C: Same.
+       * testsuite/libgomp.c++/simd-5.C: Same.
+       * testsuite/libgomp.c++/simd-6.C: Same.
+       * testsuite/libgomp.c++/simd-7.C: Same.
+       * testsuite/libgomp.c++/simd-8.C: Same.
+       * testsuite/libgomp.c++/simd-9.C: Same.
+       * testsuite/libgomp.c++/simd10.C: Same.
+       * testsuite/libgomp.c++/simd11.C: Same.
+       * testsuite/libgomp.c++/simd12.C: Same.
+       * testsuite/libgomp.c++/simd13.C: Same.
+
 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/66702
index 73f6e7c40594100bf41887d2e4430ef7d0b4af7f..9eecfbbe77d461d541798ffe6044febaadb36ea4 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33894
 // { dg-do run }
-// { dg-options "-O2" }
 
 extern "C" void abort ();
 
index afccd52bb6623940fe7f0a323980089c2d924364..432d36dd7daf4294f6b423a8668fd0e2fa887f8b 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64824
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/atomic-18.c"
index da42e6213b0a0c2d047fa3197dcce042d4d88ea5..0454f95588ec50825ac1bb1ac9ffcffc4d6c05f9 100644 (file)
@@ -11,6 +11,11 @@ if [info exists lang_include_flags] then {
     unset lang_include_flags
 }
 
+# If a testcase doesn't have special options, use these.
+if ![info exists DEFAULT_CFLAGS] then {
+    set DEFAULT_CFLAGS "-O2"
+}
+
 # Initialize dg.
 dg-init
 
@@ -60,7 +65,7 @@ if { $lang_test_file_found } {
     }
 
     # Main loop.
-    dg-runtest $tests "" $libstdcxx_includes
+    dg-runtest $tests "" "$libstdcxx_includes $DEFAULT_CFLAGS"
 }
 
 # All done.
index 9d626c028df04962a9efaa032eaf554691373af3..256a1312e4f7dbf867792cc2fd2b3503e1280a69 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/
 // { dg-do run }
-// { dg-options "-std=c++0x -fopenmp" }
+// { dg-additional-options "-std=c++0x" }
 
 extern "C" void abort ();
 int cnt;
index 348f6d6e0c26bc102d7f3e27100dd763e31ac8c0..00f23bb728c48186804affabaf89773f75885c64 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64824
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr64824.c"
index 2d730ac4924fd9a9f2ceca30097abfbb4330eea8..661ec232dd37e2ca122ddd79fe42a6e7f8b28730 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64868
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr64868.c"
index 2139e11b51c3f15e6dfb73b71fecd599673ee0b2..cb86a60fa26a492a31a13f65487828e5deb8fe57 100644 (file)
@@ -1,5 +1,4 @@
 // PR middle-end/66199
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr66199-1.c"
index 36392da270a6fb19eb0b3a6c15add1ba3f9dcab3..1dbccb6c0e5007b99bc0a2711ec6acdbadbe2020 100644 (file)
@@ -1,5 +1,4 @@
 // PR middle-end/66199
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr66199-2.c"
index 16ef159b8274734d5ce5339640db47af656d1583..139386f085a85ac7163be015adb3483fe57a1e7a 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 6b12415bdceb1269b83ce32f2c0a8d0dced16b57..8205d6449c87cad2e7d602c5a306d447141ab57c 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 1c6d8e01af90831434a2b6170389215bb0c278b1..195261d820ea3887823c4da42736b41a831819cc 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index bdfacc65264c9ca8863b0b8d332d9edffef3d477..b81f230b25db0fea93121833ec1a6ffa5a673301 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 6c4627e210a2798164c9d6213e94c201b5d07ad9..e7cea84548c45e486d2aaf46972f62e19f16ee02 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index cfc13d0a0f92bb891e0245a4d434174a65a6c997..fa93dfd5989d6993a58468a0a55e064ed26c9cce 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 5a6f4cef7c1c94cc78981fd664481fca6bfd5967..a0bdac5e1b7205e6d6080b04ffaef5411d3b744f 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 7c75832852964f17e15de9d90f22269cd0089ea4..bc13254fdd3dd236037c2f347dc61a828f9cdab4 100644 (file)
@@ -1,6 +1,5 @@
 // PR libgomp/58482
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 3c567b31c3eb37f3568f01cab5e24fce4eb097e1..8f21bf2209a027c3aa245af2968e07eb81cf93bb 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 390e65ffea3ec5f0ec0886a918afaff9fab7bafd..6fab68852a47b9c0d434c47081dc9a30caed6b97 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index b966868560128feb903cfdbed5a6f6ba05c630a6..fde22034a607218e4465f3a6294944304585aad6 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index ecfc912aeeabba0f5ec7c227eb91dd6c9f8574d1..7596cad8571e2cc56dbdc208ab795229c08624b7 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index f749620968012ade71872bdf7bfa81b52a8c683a..67a0f70ff16a338431efff3019b17eefb6bca8a2 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-do run }
-// { dg-options "-O2" }
 // { dg-additional-options "-msse2" { target sse2_runtime } }
 // { dg-additional-options "-mavx" { target avx_runtime } }
 
index 83207cd51cd1a984aa2e68462385a175b9361ccd..35e910acc2e3da4c1b83dc8f4282eec22ec1a3cf 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-O2 -fopenmp" }
 // { dg-additional-sources "target-2-aux.cc" }
 
 extern "C" void abort (void);
index 5d014467a9d2fcee78635621df19901afdb16823..ee4bde319ad228cfa0ba4a80c8bac72da00e15b4 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-1.C"
index 58112eb6995bd07eec7e9a908b8b19e7a727b736..1d661baba562280fae392989477b11009e7cd382 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-2.C"
index a9c8c600ca2598ae5a8d105453f4b843105b0ca0..8e24ffd5007e5fec4eacfcb4e3b6acc0d8696451 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-3.C"
index 6cb48293286f5d66314147d958b6abf66b0daa91..49fabcbbdfca72e900c3816318ccb299d6a7a9ac 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-4.C"
index d6aaf872029370de7901e65fe72701e9e2f9f531..e55101a005281fed199008e27624685b72debe41 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-5.C"
index acf4ff2028de4e2f4a3b3a785fb3fbfbd397b7f9..50fe6724bb2dc316ce407b063f28856924605b05 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-6.C"
index a5b62f8c67f588d0fdc49a122b2754e4d1735f66..770b50d764d8c47db71383ffa73964bdfce4a046 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-7.C"
index 5911e8e9a82bbdb4244b2cc2d1764bc0740ecbc1..fb1f10c7508d9a042e4b46b2e299fdab8700813a 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-8.C"
index 801cab4342e7ff6291efa7eaebabbf2f5743a2c7..40d2eb9aeed3c67323141271b2e8fd35f8a74bee 100644 (file)
@@ -1,4 +1,4 @@
 // { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
 
 #include "udr-9.C"