2015-06-30 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
already set. Use DEFAULT_CFLAGS in dg-runtest.
* testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
"-O2".
From-SVN: r225194
+2015-06-30 Tom de Vries <tom@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
+ already set. Use DEFAULT_CFLAGS in dg-runtest.
+ * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
+ "-O2".
+
2015-06-30 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
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
setenv ACC_DEVICE_TYPE $offload_target_openacc
- dg-runtest $tests "$tagopt" $libstdcxx_includes
+ dg-runtest $tests "$tagopt" "$libstdcxx_includes $DEFAULT_CFLAGS"
}
}
/* { dg-do run } */
-/* { dg-options "-O2" } */
#include <string.h>
#include <stdlib.h>