Fix gnat.dg testing with linker plugin check
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2011 12:53:09 +0000 (12:53 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2011 12:53:09 +0000 (12:53 +0000)
* lib/gcc-dg.exp (GCC_UNDER_TEST): Set before calling
check_linker_plugin_available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180300 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-dg.exp

index c5e52a3..b70d758 100644 (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.
index e93fb87..caa057f 100644 (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