+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
// PR c++/33894
// { dg-do run }
-// { dg-options "-O2" }
extern "C" void abort ();
// PR c/64824
// { dg-do run }
-// { dg-options "-O2 -fopenmp" }
#include "../libgomp.c/atomic-18.c"
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
}
# Main loop.
- dg-runtest $tests "" $libstdcxx_includes
+ dg-runtest $tests "" "$libstdcxx_includes $DEFAULT_CFLAGS"
}
# All done.
// PR c++/
// { dg-do run }
-// { dg-options "-std=c++0x -fopenmp" }
+// { dg-additional-options "-std=c++0x" }
extern "C" void abort ();
int cnt;
// PR c/64824
// { dg-do run }
-// { dg-options "-O2 -fopenmp" }
#include "../libgomp.c/pr64824.c"
// PR c/64868
// { dg-do run }
-// { dg-options "-O2 -fopenmp" }
#include "../libgomp.c/pr64868.c"
// PR middle-end/66199
// { dg-do run }
-// { dg-options "-O2 -fopenmp" }
#include "../libgomp.c/pr66199-1.c"
// PR middle-end/66199
// { dg-do run }
-// { dg-options "-O2 -fopenmp" }
#include "../libgomp.c/pr66199-2.c"
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// PR libgomp/58482
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do run }
-// { dg-options "-O2" }
// { dg-additional-options "-msse2" { target sse2_runtime } }
// { dg-additional-options "-mavx" { target avx_runtime } }
-// { dg-options "-O2 -fopenmp" }
// { dg-additional-sources "target-2-aux.cc" }
extern "C" void abort (void);
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-1.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-2.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-3.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-4.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-5.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-6.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-7.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-8.C"
// { dg-do run }
-// { dg-options "-fopenmp -std=c++11" }
+// { dg-additional-options "-std=c++11" }
#include "udr-9.C"