Patchwork [testsuite,lto] Accomodate changed quoting in Sun ld messages

login
register
mail settings
Submitter Rainer Orth
Date June 29, 2010, 4:37 p.m.
Message ID <ydd39w5hk0p.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/57290/
State New
Headers show

Comments

Rainer Orth - June 29, 2010, 4:37 p.m.
In OpenSolaris build 135, the quotes used in ld messages changed from

ld: warning: symbol `j' has differing sizes:

to

ld: warning: symbol 'j' has differing sizes:

Note the differing open quote.  The following patch is needed to
accomodate this change when pruning ld messages.

Bootstrapped without regressions on i386-pc-solaris2.10 and
i386-pc-solaris2.11.

Commited as obvious to mainline and 4.5 branch.

	Rainer

Patch

diff -r 13f91e702ed3 gcc/testsuite/lib/lto.exp
--- a/gcc/testsuite/lib/lto.exp	Sat Jun 26 12:29:20 2010 +0200
+++ b/gcc/testsuite/lib/lto.exp	Sat Jun 26 12:33:24 2010 +0200
@@ -32,7 +32,7 @@ 
 
     # Sun ld warns about common symbols with differing sizes.  Unlike GNU ld
     # --warn-common (off by default), they cannot be disabled.
-    regsub -all "(^|\n)ld: warning: symbol `\[^\n\]*' has differing sizes:" $text "" text
+    regsub -all "(^|\n)ld: warning: symbol \[`'\]\[^\n\]*' has differing sizes:" $text "" text
     regsub -all "(^|\n)\[ \t\]*\[\(\]file \[^\n\]* value=\[^\n\]*; file \[^\n\]* value=\[^\n\]*\[)\];" $text "" text
     regsub -all "(^|\n)\[ \t\]*\[^\n\]* definition taken" $text "" text