From patchwork Thu Feb 7 08:45:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 218866 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 113082C0293 for ; Thu, 7 Feb 2013 19:45:33 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1360831534; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=tNTYjB3Mg02ptA6WJgow y88qMu0=; b=PfRRgrMId6+rOpWdFIziA5NAxziSo2rn0cQsAn6g20JOlqHibTde u2n9ekmxcAobfpiyVD9SKfDXioBC+qeaomkPmz+loHMMeVn8fBLxOwMAsGeDOQRA q+GqOL0fFR9WCIF3eTSRYA0PEudSCm4I5GmCQLJuK+Kine142q7B6ZE= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=R8QYKvjLT2/G2L4dAIFI2/Gdhjy/LyHqWWzZcL0z/LK+XZlR0FH8CHHoA3Z7fN s+cX7QD3L23T700obso2Upv2ulmG1d9d6aQvCYcN9jcPfpt3IfgIPeCWGH1T79YR eKQr5B5AxpCEEoNLrjynAD8swrZQtiS/Mq0r77bGeDdo0=; Received: (qmail 18537 invoked by alias); 7 Feb 2013 08:45:21 -0000 Received: (qmail 18481 invoked by uid 22791); 7 Feb 2013 08:45:20 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-da0-f42.google.com (HELO mail-da0-f42.google.com) (209.85.210.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Feb 2013 08:45:12 +0000 Received: by mail-da0-f42.google.com with SMTP id z17so1097845dal.1 for ; Thu, 07 Feb 2013 00:45:12 -0800 (PST) X-Received: by 10.66.82.103 with SMTP id h7mr3829749pay.6.1360226712097; Thu, 07 Feb 2013 00:45:12 -0800 (PST) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPS id k7sm30934403paz.13.2013.02.07.00.45.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Feb 2013 00:45:10 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 6BD83EA1DB8; Thu, 7 Feb 2013 19:15:05 +1030 (CST) Date: Thu, 7 Feb 2013 19:15:05 +1030 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: David Edelsohn Subject: [RS6000] Fix PR45053 Message-ID: <20130207084505.GX5023@bubble.grove.modra.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, David Edelsohn MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 I think this one counts as obvious, but I'll ask for permission anyway. Bootstrapped etc. powerpc-linux. OK everywhere? PR target/45053 * config/rs6000/t-crtstuff (CRTSTUFF_T_CFLAGS): Add -O2. Index: libgcc/config/rs6000/t-crtstuff =================================================================== --- libgcc/config/rs6000/t-crtstuff (revision 195839) +++ libgcc/config/rs6000/t-crtstuff (working copy) @@ -1,3 +1,6 @@ # If .sdata is enabled __CTOR_{LIST,END}__ go into .sdata instead of # .ctors. -CRTSTUFF_T_CFLAGS = -msdata=none +# Do not build crtend.o with -Os as that can result in references to +# out-of-line register save/restore functions, which may be unresolved +# as crtend.o is linked after libgcc.a. +CRTSTUFF_T_CFLAGS = -msdata=none -O2