From patchwork Mon Oct 4 01:55:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 66612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E4B57B70AF for ; Mon, 4 Oct 2010 12:55:15 +1100 (EST) Received: (qmail 10392 invoked by alias); 4 Oct 2010 01:55:13 -0000 Received: (qmail 10377 invoked by uid 22791); 4 Oct 2010 01:55:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 04 Oct 2010 01:55:08 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id A0FDC400007; Sun, 3 Oct 2010 21:55:05 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o941t5ek014200; Sun, 3 Oct 2010 21:55:05 -0400 Date: Sun, 3 Oct 2010 21:55:05 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Subject: [PATCH] Backport fix for PR target/42070 Message-ID: <20101004015505.GA14198@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 Backport from mainline 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. 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