This is the mail archive of the gcc@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]

Re: Dejagnu


In message <199803281941.OAA14915@subrogation.cygnus.com> you write:
>    Date: Thu, 26 Mar 1998 21:56:35 -0800
>    From: Mark Mitchell <mmitchell@usa.net>
> 
>    Is there an easy way to teach dejagnu that some warnings are OK?
> 
> See prune_warnings in dejagnu/lib/target.exp.  I don't actually know
> that it is used for the egcs testsuite, but it may be, and it's the
> right place to change anyhow.

I already sent this patch in to the dejagnu maintainers:

*** dejagnu/lib/target.exp.~1~	Sun Nov 30 18:07:59 1997
--- dejagnu/lib/target.exp	Thu Mar 26 15:57:33 1998
*************** proc prune_warnings { text } {
*** 184,189 ****
  
      # Or the IRIX 6 ones.
!     regsub -all "(^|\n)(ld: WARNING \[^\n\]*\n?)+" $text "\\1" text
!     regsub -all "(^|\n)(ld: Giving up.*Use -wall\[^\n\]*\n?)+" $text "\\1" text
  
      # It might be tempting to get carried away and delete blank lines, etc.
--- 184,189 ----
  
      # Or the IRIX 6 ones.
!     regsub -all "(^|\n)(ld(|32|64): WARNING \[^\n\]*\n?)+" $text "\\1" text
!     regsub -all "(^|\n)(ld(|32|64): Giving up.*Use -wall\[^\n\]*\n?)+" $text "\\1" text
  
      # It might be tempting to get carried away and delete blank lines, etc.

-------------------------------------------------------------------------------
Lee Iverson     		SRI International
leei@ai.sri.com			333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/	(650) 859-3307


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