OSDN Git Service

2010-09-10 Jack Howarth <howarth@bromo.med.uc.edu>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2010 07:40:44 +0000 (07:40 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2010 07:40:44 +0000 (07:40 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164269 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/profopt.exp
gcc/testsuite/lib/prune.exp

index d22f02c..aaf031b 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2010-09-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/45532
index a9989b4..0a123d7 100644 (file)
@@ -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
index 769169d..acb807f 100644 (file)
@@ -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