This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dejagnu
- To: Ian Lance Taylor <ian at cygnus dot com>
- Subject: Re: Dejagnu
- From: Lee Iverson <leei at ai dot sri dot com>
- Date: Mon, 30 Mar 1998 08:36:44 -0800
- cc: mmitchell at usa dot net, egcs at cygnus dot com
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