This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Correct regular expression in libstdc++-v3/testsuite/lib/prune.exp
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 3 Jan 2002 14:22:30 -0000
- Subject: 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
}