This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]