From 2f78283b38be196f4c8050688853404d41e7d8d1 Mon Sep 17 00:00:00 2001 From: Jack Howarth Date: Tue, 14 Sep 2010 07:40:44 +0000 Subject: [PATCH] re PR target/42070 (FAIL: g++.dg/tree-prof/partition1.C compilation, -O3 -g -fprofile-use) 2010-09-10 Jack Howarth 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. From-SVN: r164269 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/profopt.exp | 4 ++++ gcc/testsuite/lib/prune.exp | 3 +++ 3 files changed, 13 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d22f02c97b4..aaf031b4596 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-09-10 Jack Howarth + + 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. + 2010-09-14 Jerry DeLisle PR libfortran/45532 diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp index a9989b43ea4..0a123d76e33 100644 --- a/gcc/testsuite/lib/profopt.exp +++ b/gcc/testsuite/lib/profopt.exp @@ -328,6 +328,10 @@ proc profopt-execute { src } { 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 diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index 769169d4271..acb807fac0e 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -49,6 +49,9 @@ proc prune_gcc_output { text } { 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