From: Hans-Peter Nilsson Date: Mon, 30 Apr 2007 16:12:48 +0000 (+0000) Subject: libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out -nostdinc++. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f1a19e2c51a192569f3553cbd35ea59499684f8;p=gcc.git libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out -nostdinc++. * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out -nostdinc++. From-SVN: r124298 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f094251003c..27f02b57cd4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2007-04-30 Hans-Peter Nilsson + + * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Correct + regexp to filter out -nostdinc++. + 2007-04-30 Paolo Carlini PR libstdc++/30449 (equal) diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 85f256672be..70f2cb6f3d2 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -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,