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]

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

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