* dejagnu hang from target.exp (prune_warnings)
@ 2001-01-18 23:50 Andrew Cagney
2001-01-19 6:59 ` Richard Earnshaw
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2001-01-18 23:50 UTC (permalink / raw)
To: Nick Clifton, Richard Earnshaw; +Cc: GDB Patches, SID Discussion
The change:
< 2001-01-12 Richard Earnshaw <rearnsha@arm.com>
<
< * target.exp (prune_warnings): Prune warnings from NetBSD
linker.
<
checked in by NickC causes dejagnu to hang (or to at least take a very
very very very very long walk) when the compiler generates lots of
output. Looking at the patch:
- # Or the NetBSD ones.
- regsub -all "(^|\n)(.*:\[0-9\]+: warning: \[^\n\]* possibly used
unsafely, use \[^\n\]*\n?)" $text "\\1" text
- regsub -all "(^|\n)(.*: warning: reference to compatibility
glob\[^\n\]*\n?)" $text "\\1" text
that leading ``.*'' is just too generous :-(
The attatched stops the problem for me. Can someone please confirm this
doesn't break on NetBSD.
enjoy,
Andrew
Fri Jan 19 18:37:19 2001 Andrew Cagney <cagney@b1.cygnus.com>
* lib/target.exp (prune_warnings): Avoid ``.*'' in NetBSD warnings
pattern.
Index: lib/target.exp
===================================================================
RCS file: /cvs/src/src/dejagnu/lib/target.exp,v
retrieving revision 1.7
diff -p -r1.7 target.exp
*** target.exp 2001/01/12 18:13:40 1.7
--- target.exp 2001/01/19 07:39:47
*************** proc prune_warnings { text } {
*** 262,269 ****
regsub -all "(^|\n)(ld(|32|64): Giving up.*Use -wall\[^\n\]*\n?)+" $text "\\1" text
# Or the NetBSD ones.
! regsub -all "(^|\n)(.*:\[0-9\]+: warning: \[^\n\]* possibly used unsafely, use \[^\n\]*\n?)" $text "\\1" text
! regsub -all "(^|\n)(.*: warning: reference to compatibility glob\[^\n\]*\n?)" $text "\\1" text
# GNU ld warns about functions marked as dangerous in GNU libc.
regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*function is dangerous\[^\n\]*" $text "" text
--- 262,269 ----
regsub -all "(^|\n)(ld(|32|64): Giving up.*Use -wall\[^\n\]*\n?)+" $text "\\1" text
# Or the NetBSD ones.
! regsub -all "(^|\n)(\[^\n\]*:\[0-9\]+: warning: \[^\n\]* possibly used unsafely, use \[^\n\]*\n?)" $text "\\1" text
! regsub -all "(^|\n)(\[^\n\]*: warning: reference to compatibility glob\[^\n\]*\n?)" $text "\\1" text
# GNU ld warns about functions marked as dangerous in GNU libc.
regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*function is dangerous\[^\n\]*" $text "" text
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dejagnu hang from target.exp (prune_warnings)
2001-01-18 23:50 dejagnu hang from target.exp (prune_warnings) Andrew Cagney
@ 2001-01-19 6:59 ` Richard Earnshaw
2001-01-19 14:54 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Richard Earnshaw @ 2001-01-19 6:59 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Nick Clifton, Richard Earnshaw, GDB Patches, SID Discussion
Fri Jan 19 18:37:19 2001 Andrew Cagney <cagney@b1.cygnus.com>
* lib/target.exp (prune_warnings): Avoid ``.*'' in NetBSD warnings
pattern.
OK. Still filters out the relevant warnings from the g77 regression suite.
R.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dejagnu hang from target.exp (prune_warnings)
2001-01-19 6:59 ` Richard Earnshaw
@ 2001-01-19 14:54 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2001-01-19 14:54 UTC (permalink / raw)
To: rearnsha; +Cc: Nick Clifton, GDB Patches, SID Discussion
Richard Earnshaw wrote:
>
> Fri Jan 19 18:37:19 2001 Andrew Cagney <cagney@b1.cygnus.com>
>
> * lib/target.exp (prune_warnings): Avoid ``.*'' in NetBSD warnings
> pattern.
>
> OK. Still filters out the relevant warnings from the g77 regression suite.
Thanks! I've checked it in.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-01-19 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-18 23:50 dejagnu hang from target.exp (prune_warnings) Andrew Cagney
2001-01-19 6:59 ` Richard Earnshaw
2001-01-19 14:54 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).