Fix gnat.dg testing with linker plugin check

* lib/gcc-dg.exp (GCC_UNDER_TEST): Set before calling
	check_linker_plugin_available.

From-SVN: r180300
This commit is contained in:
Rainer Orth 2011-10-21 12:53:09 +00:00 committed by Rainer Orth
parent d573919e7c
commit d75b27217b
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2011-10-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/gcc-dg.exp (GCC_UNDER_TEST): Set before calling
check_linker_plugin_available.
2011-10-21 Kai Tietz <ktietz@redhat.com>
* gcc.target/i386/branch-cost1.c: New test.

View File

@ -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