mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 23:35:00 +08:00
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". From-SVN: r225194
This commit is contained in:
parent
47297e51f5
commit
b451c27117
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user