libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out -nostdinc++.
authorHans-Peter Nilsson <hp@axis.com>
Mon, 30 Apr 2007 16:12:48 +0000 (16:12 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Mon, 30 Apr 2007 16:12:48 +0000 (16:12 +0000)
* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Correct
regexp to filter out -nostdinc++.

From-SVN: r124298

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index f094251003cb5c09133ec68de3ba9b85079383b4..27f02b57cd45ef483bcf2a625af34cf36e65ffdc 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Correct
+       regexp to filter out -nostdinc++.
+
 2007-04-30  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/30449 (equal)
index 85f256672be7b86aac6af07297708eb9413a1b25..70f2cb6f3d27837df12ab8d72a508ab2571d7e49 100644 (file)
@@ -391,7 +391,7 @@ proc v3_target_compile_as_c { source dest type options } {
     set cxxlibglossflags [libgloss_link_flags]
     set cc_final [concat $cc_final $cxxlibglossflags]
     set cc_final [concat $cc_final $includes]
-    regsub -all ".nostdinc.." $cc_final "" cc_final
+    regsub -all {\s[-]nostdinc[+][+]} $cc_final "" cc_final
 
     # This is needed for "C" tests, as this type of test may need the
     # C++ includes. And if we're not testing in the build directory,