]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
g++.exp (g++_include_flags): Tweak path to testsuite_flags.
authorBenjamin Kosnik <bkoz@redhat.com>
Wed, 18 Jun 2003 01:56:45 +0000 (01:56 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 18 Jun 2003 01:56:45 +0000 (01:56 +0000)
2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>

* lib/g++.exp (g++_include_flags): Tweak path to testsuite_flags.
Remove cruft.

From-SVN: r68134

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

index 0315ff0a2d07fac4dd2197c4fffda0c001d3de9c..09431395ad12f46fab936587c912c5b35757ecb8 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * lib/g++.exp (g++_include_flags): Tweak path to testsuite_flags.
+       Remove cruft.
+       
 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
 
        * gcc.c-torture/compile/20020604-1.c: Use dg-xfail-if for h8300.
index 821c3d7c758bc9537b130166bac85d8d7395124b..81ac484ae29d97c98d78d78af0725b930193b099 100644 (file)
@@ -80,22 +80,11 @@ proc g++_include_flags { paths } {
       return "${flags}"
     }
 
-    set dir [lookfor_file ${srcdir} libg++]
-    if { ${dir} != "" } {
-      append flags "-I${dir} -I${dir}/src "
-    }
-
     set gccpath ${paths}
 
-    if { ${HAVE_LIBSTDCXX_V3} } {
-      set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
-      if { ${odir_v3} != "" } {
-        append flags [exec sh ${odir_v3}/testsuite_flags --build-includes]
-      }
-    } else {
-      set odir_v2 [lookfor_file ${gccpath} libstdc++]
-      set sdir_v2 [lookfor_file ${srcdir} libstdc++]
-      append flags "-I${sdir_v2} -I${sdir_v2}/stl "
+    set odir [lookfor_file ${gccpath} libstdc++-v3]
+    if { ${odir} != "" } {
+      append flags [exec sh ${odir}/scripts/testsuite_flags --build-includes]  
     }
 
     return "$flags"