This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to testsuite/lib/prune.exp
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Dec 2001 14:32:11 +0000
- Subject: PATCH to testsuite/lib/prune.exp
The compiler certainly puts out a wide variety of introductory notes to
error messages.
2001-12-11 Jason Merrill <jason@redhat.com>
* lib/prune.exp (prune_gcc_output): Also handle "In member
function". So many permutations...
*** prune.exp.~1~ Tue Dec 11 14:15:31 2001
--- prune.exp Tue Dec 4 16:20:23 2001
***************
*** 19,25 ****
proc prune_gcc_output { text } {
#send_user "Before:$text\n"
! regsub -all "(^|\n)\[^\n\]*: In (function|method|constructor|instantiation) \[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: At top level:\[^\n\]*" $text "" text
regsub -all "(^|\n)collect2: ld returned \[^\n\]*" $text "" text
regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text
--- 19,25 ----
proc prune_gcc_output { text } {
#send_user "Before:$text\n"
! regsub -all "(^|\n)\[^\n\]*: In (function|member|method|constructor|instantiation) \[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: At top level:\[^\n\]*" $text "" text
regsub -all "(^|\n)collect2: ld returned \[^\n\]*" $text "" text
regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text