gcc-defs.exp (gcc-set-multilib-library-path): Use eval to exec $compiler.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 19 Nov 2010 18:24:25 +0000 (18:24 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 19 Nov 2010 18:24:25 +0000 (18:24 +0000)
* lib/gcc-defs.exp (gcc-set-multilib-library-path): Use eval to
exec $compiler.
* lib/gfortran.exp (gfortran_link_flags): Remove braces around
$GFORTRAN_UNDER_TEST.
(gfortran_init): Use -B to specify specpath, add trailing /.

From-SVN: r166950

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-defs.exp
gcc/testsuite/lib/gfortran.exp

index d6c4d2bfb71aa1f01c7031fa6490ddcf37eaade8..03e9df1be0aa2a32599529c75518f9b2fb228479 100644 (file)
@@ -1,3 +1,11 @@
+2010-11-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lib/gcc-defs.exp (gcc-set-multilib-library-path): Use eval to
+       exec $compiler.
+       * lib/gfortran.exp (gfortran_link_flags): Remove braces around
+       $GFORTRAN_UNDER_TEST.
+       (gfortran_init): Use -B to specify specpath, add trailing /.
+
 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/ppc-target-1.c: New file to test target
index af898e5aa78eb325750635657792ecba701c9b8a..59421832a12d4037889c9d5e88d117a46e34c521 100644 (file)
@@ -253,7 +253,7 @@ proc gcc-set-multilib-library-path { compiler } {
     set options [lrange $compiler 1 end]
     set compiler [lindex $compiler 0]
     if { [is_remote host] == 0 && [which $compiler] != 0 } {
-       foreach i "[exec $compiler $options --print-multi-lib]" {
+       foreach i "[eval exec $compiler $options --print-multi-lib]" {
            set mldir ""
            regexp -- "\[a-z0-9=_/\.-\]*;" $i mldir
            set mldir [string trimright $mldir "\;@"]
index be4e7feb81bcfc4babc624a4f3a761e094335836..954dcea10f193002248b298d451b7b084ef7640a 100644 (file)
@@ -118,7 +118,7 @@ proc gfortran_link_flags { paths } {
           append flags "-L${gccpath}/libiberty "
       }
       append ld_library_path \
-       [gcc-set-multilib-library-path { $GFORTRAN_UNDER_TEST } ]
+       [gcc-set-multilib-library-path $GFORTRAN_UNDER_TEST ]
     }
 
     set_ld_library_path_env_vars
@@ -166,7 +166,7 @@ proc gfortran_init { args } {
                } else {
                    set specpath [get_multilibs]
                }
-               set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -L$specpath/libgfortran" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
+               set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
            }
        }
     }