diff mbox

Backport fix for PR target/42070

Message ID 20101004015505.GA14198@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth Oct. 4, 2010, 1:55 a.m. UTC
The attached patch backports the fix for PR 42070 from gcc trunk
for gcc-4_5-branch. This eliminates bogus failures from the depreciated
warning of "can't add line info" present in Xcode 3.2.x. Tested on
x86_64-apple-darwin10. Okay for gcc 4.5.2?
                Jack

2010-10-03  Jack Howarth <howarth@bromo.med.uc.edu>

	Backport from mainline
	2010-09-10  Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/42070
	* gcc/testsuite/lib/profopt.exp: Prune warnings on execname2 compile.
	* gcc/testsuite/lib/prune.exp: Prune "can't add line info" warnings.

Comments

Mike Stump Oct. 4, 2010, 2:56 a.m. UTC | #1
On Oct 3, 2010, at 6:55 PM, Jack Howarth wrote:
> Okay for gcc 4.5.2?

Ok.
diff mbox

Patch

Index: gcc/testsuite/lib/profopt.exp
===================================================================
--- gcc/testsuite/lib/profopt.exp	(revision 164915)
+++ gcc/testsuite/lib/profopt.exp	(working copy)
@@ -328,6 +328,10 @@ 
 	lappend options "additional_flags=$option $extra_flags $feedback_option"
 	set optstr "$option $feedback_option"
 	set comp_output [${tool}_target_compile "$src" "$execname2" "executable" $options]
+
+	# Prune warnings we know are unwanted.
+	set comp_output [prune_warnings $comp_output]
+
 	if ![${tool}_check_compile "$testcase compilation" $optstr $execname2 $comp_output] {
  	    unresolved "$testcase execution,   $optstr"
 	    continue
Index: gcc/testsuite/lib/prune.exp
===================================================================
--- gcc/testsuite/lib/prune.exp	(revision 164915)
+++ gcc/testsuite/lib/prune.exp	(working copy)
@@ -48,6 +48,9 @@ 
     regsub -all "(^|\n)\[^\n\]*file path prefix \[^\n\]* never used" $text "" text
     regsub -all "(^|\n)\[^\n\]*linker input file unused since linking not done" $text "" text
 
+    # Ignore harmless warnings from Xcode 3.2.x.
+    regsub -all "(^|\n)\[^\n\]*ld: warning: can't add line info to anonymous symbol\[^\n\]*" $text "" text
+
     #send_user "After:$text\n"
 
     return $text