| Index: gcc/gcc/testsuite/lib/c-torture.exp
|
| diff --git a/gcc/gcc/testsuite/lib/c-torture.exp b/gcc/gcc/testsuite/lib/c-torture.exp
|
| index 769ec97d3eccfd8cdd82f6cd19036901f1c41bea..8b15b577005bd501757b60719ac1ad86dadb64cd 100644
|
| --- a/gcc/gcc/testsuite/lib/c-torture.exp
|
| +++ b/gcc/gcc/testsuite/lib/c-torture.exp
|
| @@ -17,6 +17,7 @@
|
|
|
| # This file was written by Rob Savoye. (rob@cygnus.com)
|
|
|
| +load_lib target-supports.exp
|
| load_lib file-format.exp
|
| load_lib target-libpath.exp
|
|
|
| @@ -49,6 +50,14 @@ if [info exists ADDITIONAL_TORTURE_OPTIONS] {
|
| [concat $C_TORTURE_OPTIONS $ADDITIONAL_TORTURE_OPTIONS]
|
| }
|
|
|
| +set LTO_TORTURE_OPTIONS ""
|
| +if [check_effective_target_lto] {
|
| + set LTO_TORTURE_OPTIONS [list \
|
| + { -O2 -flto } \
|
| + { -O2 -fwhopr }
|
| + ]
|
| +}
|
| +
|
| global GCC_UNDER_TEST
|
| if ![info exists GCC_UNDER_TEST] {
|
| set GCC_UNDER_TEST "[find_gcc]"
|
|
|