Correct regular expression in libstdc++-v3/testsuite/lib/prune.ex p

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Thu Jan 3 06:24:00 GMT 2002


My recent patch to libstdc++-v3/testsuite/lib/prune.exp was a little
aggressive :-(  It pruned the entire compiler output if the string was
present.  Committed as obvious.

2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>

	* testsuite/lib/prune.exp: Correct regular expression for
	-ffunction-sections

Index: testsuite/lib/prune.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/prune.exp,v
retrieving revision 1.1
diff -u -r1.1 prune.exp
--- prune.exp   2001/12/17 22:39:00     1.1
+++ prune.exp   2002/01/03 14:15:07
@@ -19,7 +19,7 @@
 proc prune_g++_output { text } {

     # Cygwin warns about -ffunction-sections
-    regsub -all "(^|\n)\[^\n\].*: -ffunction-sections may affect
debugging on some targets.*" $text "" text
+    regsub -all "(^|\n)\[^\n\]*: -ffunction-sections may affect
debugging on some targets\[^\n\]*" $text "" text

     return $text
 }



More information about the Libstdc++ mailing list