2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
authoroldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Jun 2001 15:23:05 +0000 (15:23 +0000)
committeroldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Jun 2001 15:23:05 +0000 (15:23 +0000)
* lib/g++.exp (g++_include_flags): Change `args' to gccpath's value.
(g++_link_flags): Likewise.
(g++_init): Pass gccpath's value to two previous functions.

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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/g++.exp

index f933e1a..f219049 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * lib/g++.exp (g++_include_flags): Change `args' to gccpath's value.
+       (g++_link_flags): Likewise.
+       (g++_init): Pass gccpath's value to two previous functions.
+
 2001-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.misc-tests/linkage.exp: Use wildcards when matching N32.
index bae4b6e..40e8f90 100644 (file)
@@ -63,7 +63,7 @@ proc g++_version { } {
 # provide new versions of g++_include_flags and g++_link_flags (both
 # originally from libgloss.exp) which know about the new gcc tree structure
 #
-proc g++_include_flags { args } {
+proc g++_include_flags { paths } {
     global srcdir
     global HAVE_LIBSTDCXX_V3
     global TESTING_IN_BUILD_TREE
@@ -79,7 +79,7 @@ proc g++_include_flags { args } {
       append flags "-I${dir} -I${dir}/src "
     }
 
-    set gccpath [get_multilibs ${args}]
+    set gccpath ${paths}
 
     if { ${HAVE_LIBSTDCXX_V3} } {
       set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
@@ -93,12 +93,12 @@ proc g++_include_flags { args } {
     return "$flags"
 }
 
-proc g++_link_flags { args } {
+proc g++_link_flags { paths } {
     global rootme
     global srcdir
     global ld_library_path
 
-    set gccpath [get_multilibs ${args}];
+    set gccpath ${paths}
     set libio_dir ""
     set flags ""
     set ld_library_path "."
@@ -214,11 +214,11 @@ proc g++_init { args } {
 
     if ![is_remote host] {
        if [info exists TOOL_OPTIONS] {
-           lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags ${TOOL_OPTIONS}]";
-           lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags ${TOOL_OPTIONS}]";
+           lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_multilibs ${TOOL_OPTIONS}] ]";
+           lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags [get_multilibs ${TOOL_OPTIONS}] ]";
        } else {
-           lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags]";
-           lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags]";
+           lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_multilibs] ]";
+           lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags [get_multilibs] ]";
        }
     }