diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-06-30 15:43:55 +0000 |
---|---|---|
committer | Tom de Vries <tom@codesourcery.com> | 2015-06-30 15:43:55 +0000 |
commit | e7a7c5a814a58abe1720a12ecbadf0b3b49ca38a (patch) | |
tree | ee178fb60ff4d761d470a120c653b7e7eae3cd37 /libgomp/testsuite/libgomp.oacc-c++ | |
parent | d61aea0a7892cdce3c306dc9894af8485b5e9be4 (diff) |
Run testsuite/libgomp.oacc-c++/c++.exp at -O2 by default
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".
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@225194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c++')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c++/c++.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c++/c++.exp b/libgomp/testsuite/libgomp.oacc-c++/c++.exp index f486f9b97ba..80d135919cf 100644 --- a/libgomp/testsuite/libgomp.oacc-c++/c++.exp +++ b/libgomp/testsuite/libgomp.oacc-c++/c++.exp @@ -13,6 +13,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 @@ -96,7 +101,7 @@ if { $lang_test_file_found } { setenv ACC_DEVICE_TYPE $offload_target_openacc - dg-runtest $tests "$tagopt" $libstdcxx_includes + dg-runtest $tests "$tagopt" "$libstdcxx_includes $DEFAULT_CFLAGS" } } |