diff options
Diffstat (limited to 'gcc/testsuite/lib/lto.exp')
-rw-r--r-- | gcc/testsuite/lib/lto.exp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/testsuite/lib/lto.exp b/gcc/testsuite/lib/lto.exp index f4469eefbab..762dbbf82de 100644 --- a/gcc/testsuite/lib/lto.exp +++ b/gcc/testsuite/lib/lto.exp @@ -418,13 +418,6 @@ proc lto-execute { src1 sid } { set lto_option_list $LTO_OPTIONS } - # Check whether this test is supported for this target. - if { [lindex ${dg-do-what} 1 ] == "N" } { - unsupported "$src1" - verbose "$src1 not supported on this target, skipping it" 3 - return - } - # Set up the names of the other source files. set dir [file dirname $src1] set base [file rootname $src1] @@ -478,11 +471,6 @@ proc lto-execute { src1 sid } { set testcase [string range "$testcase" [string length "$tmpdir/"] end] set testcase "tmpdir-$testcase" } - regsub "_0.*" $testcase "" testcase - - # Set up the base name of executable files so they'll be unique. - regsub -all "\[./\]" $testcase "-" execbase - # If we couldn't rip $srcdir out of `src1' then just do the best we can. # The point is to reduce the unnecessary noise in the logs. Don't strip # out too much because different testcases with the same name can confuse @@ -491,6 +479,18 @@ proc lto-execute { src1 sid } { set testcase "[file tail [file dirname $src1]]/[file tail $src1]" } + # Check whether this test is supported for this target. + if { [lindex ${dg-do-what} 1 ] == "N" } { + unsupported "$testcase" + verbose "$testcase not supported on this target, skipping it" 3 + return + } + + regsub "_0.*" $testcase "" testcase + + # Set up the base name of executable files so they'll be unique. + regsub -all "\[./\]" $testcase "-" execbase + # Loop through all of the option lists used for this test. set count 0 foreach option $lto_option_list { |