This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: dw2gencfi rewrite


On Thu, Jun 05, 2003 at 08:14:38AM -0700, H. J. Lu wrote:
> It looks trivial to prune those messages. The question is where to
> add it. Binutils testsuite use prune_warnings in dejagnu. Andreas,
> can you try this patch on dejagnu 1.4.3.
> 
> 
> H.J.

> 2003-06-05  H.J. Lu <hongjiu.lu@intel.com>
> 
> 	* lib/target.exp (prune_warnings): Ignore 64bit library
> 	warning.
> 
> --- dejagnu/lib/target.exp.lib64	2002-08-29 20:54:28.000000000 -0700
> +++ dejagnu/lib/target.exp	2003-06-05 08:12:16.000000000 -0700
> @@ -277,6 +277,10 @@ proc prune_warnings { text } {
>      # Cygwin cc1 warns about -fpic and -fPIC
>      regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text "" text
>  
> +    # Ignore the linker message when searching 64bit libraries in
> +    # /lib.
> +    regsub -all ".*: skipping incompatible .* when searching for .*" $text "" text
> +
>      # It might be tempting to get carried away and delete blank lines, etc.
>      # Just delete *exactly* what we're ask to, and that's it.
>      return $text

Doesn't work on my version of dejagnu.  The following does.  I'm not
sure if I'm allowed to commit this, or who needs to approve it.  Nick?

dejagnu/ChangeLog
	* lib/target.exp (prune_warnings): Correct pic/PIC regexp.
	Ignore incompatible library warning.

Index: dejagnu/lib/target.exp
===================================================================
RCS file: /cvs/src/src/dejagnu/lib/target.exp,v
retrieving revision 1.12
diff -u -p -r1.12 target.exp
--- dejagnu/lib/target.exp	21 Apr 2002 08:47:07 -0000	1.12
+++ dejagnu/lib/target.exp	9 Jun 2003 07:34:06 -0000
@@ -279,7 +279,10 @@ proc prune_warnings { text } {
     regsub -all "(^|\n)\[^\n\]*: warning:   as it has already been specified\[^\n\]*" $text "" text
 
     # Cygwin cc1 warns about -fpic and -fPIC
-    regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text "" text
+    regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC) ignored for target \[^\n\]*" $text "" text
+
+    # Ignore linker warning when searching 64bit libraries in /lib.
+    regsub -all "(^|\n)\[^\n\]*: skipping incompatible \[^\n\]* when searching for \[^\n\]*" $text "" text
 
     # It might be tempting to get carried away and delete blank lines, etc.
     # Just delete *exactly* what we're ask to, and that's it.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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