diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c5e52a3715e..b70d758b6b0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-10-21 Rainer Orth + + * lib/gcc-dg.exp (GCC_UNDER_TEST): Set before calling + check_linker_plugin_available. + 2011-10-21 Kai Tietz * gcc.target/i386/branch-cost1.c: New test. diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index e93fb87a412..caa057f0746 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -41,6 +41,11 @@ if { [ishost "*-*-cygwin*"] } { setenv LANG C.ASCII } +global GCC_UNDER_TEST +if ![info exists GCC_UNDER_TEST] { + set GCC_UNDER_TEST "[find_gcc]" +} + if [info exists TORTURE_OPTIONS] { set DG_TORTURE_OPTIONS $TORTURE_OPTIONS } else { @@ -84,12 +89,6 @@ if [check_effective_target_lto] { } } - -global GCC_UNDER_TEST -if ![info exists GCC_UNDER_TEST] { - set GCC_UNDER_TEST "[find_gcc]" -} - global orig_environment_saved # This file may be sourced, so don't override environment settings