Run testsuite/libgomp.c++/c++.exp at -O2 by default
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jun 2015 12:22:04 +0000 (12:22 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225181 138bc75d-0d04-0410-961f-82ee72b054a4

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 2f1346d..efd08f3 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 73f6e7c..9eecfbb 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33894
 // { dg-do run }
-// { dg-options "-O2" }
 
 extern "C" void abort ();
 
index afccd52..432d36d 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64824
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/atomic-18.c"
index da42e62..0454f95 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 9d626c0..256a131 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 348f6d6..00f23bb 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64824
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr64824.c"
index 2d730ac..661ec23 100644 (file)
@@ -1,5 +1,4 @@
 // PR c/64868
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr64868.c"
index 2139e11..cb86a60 100644 (file)
@@ -1,5 +1,4 @@
 // PR middle-end/66199
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr66199-1.c"
index 36392da..1dbccb6 100644 (file)
@@ -1,5 +1,4 @@
 // PR middle-end/66199
 // { dg-do run }
-// { dg-options "-O2 -fopenmp" }
 
 #include "../libgomp.c/pr66199-2.c"
index 16ef159..139386f 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 6b12415..8205d64 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 1c6d8e0..195261d 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 bdfacc6..b81f230 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 6c4627e..e7cea84 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 cfc13d0..fa93dfd 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 5a6f4ce..a0bdac5 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 7c75832..bc13254 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 3c567b3..8f21bf2 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 390e65f..6fab688 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 b966868..fde2203 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 ecfc912..7596cad 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 f749620..67a0f70 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 83207cd..35e910a 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-O2 -fopenmp" }
 // { dg-additional-sources "target-2-aux.cc" }
 
 extern "C" void abort (void);
index 5d01446..ee4bde3 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 58112eb..1d661ba 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 a9c8c60..8e24ffd 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 6cb4829..49fabcb 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 d6aaf87..e55101a 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 acf4ff2..50fe672 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 a5b62f8..770b50d 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 5911e8e..fb1f10c 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 801cab4..40d2eb9 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"