From patchwork Thu May 16 14:34:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 244348 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 093F52C014F for ; Fri, 17 May 2013 00:54:45 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=lVdODCQx31kLM/d4CwGlmDAIsziz+Q+1w+JrkvSxfRQpWs N/15IVxTkJBJKeEMLuFEmVZ/j4nhP5ZTeTJYwiZPcywlUaxtnFyBrZ+z7ZXpwM26 Hy0wxNoeDcwqsSvT9rI0NXnFosg+86FDE4PIM4BEI6Dw9puQpa/VAYK3+P1sM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=EwmY8cuwwtwnZp96aXG5Hgbx2Jc=; b=PmQNFKCC86vOj1bfwoG9 wWuKsASEvF5EXB4V5mcMJag09aYP8KrkQ4hsiZ5TV/Z/iPDwkFEZlvN28GYi4mrk X8CLW1tnLrZFYOFCj3GSOOqTWhFHgEbNKXjPw7/FddFv1k6ulr+j1H7gHf3Yx8c4 raW8MWTj8PkiuS+ZlBuw/qo= Received: (qmail 27210 invoked by alias); 16 May 2013 14:54:39 -0000 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 Received: (qmail 27200 invoked by uid 89); 16 May 2013 14:54:38 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from fw-tnat.cambridge.arm.com (HELO cam-smtp0.cambridge.arm.com) (217.140.96.21) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 16 May 2013 14:54:37 +0000 Received: from geoffrey.Emea.Arm.com (geoffrey.emea.arm.com [10.1.255.46]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id r4GEsYqa025344 for ; Thu, 16 May 2013 15:54:34 +0100 Received: from cam-owa1.Emea.Arm.com ([10.1.255.62]) by geoffrey.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 May 2013 15:54:34 +0100 Received: from [10.1.209.152] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 16 May 2013 15:34:33 +0100 Message-ID: <5194EE79.1050308@arm.com> Date: Thu, 16 May 2013 15:34:33 +0100 From: Ramana Radhakrishnan User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org ;" Subject: [Patch ARM] Fix arm-none-eabi builds. X-Virus-Found: No My patch for PR19599 yesterday had a problem with arm-none-eabi builds. I had missed a null pointer check of decl in an AAPCS only configuration. Now applied as obvious. regards Ramana 2013-05-16 Ramana Radhakrishnan PR target/19599 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check for NULL decl. Index: gcc/config/arm/arm.c =================================================================== --- gcc/config/arm/arm.c (revision 198971) +++ gcc/config/arm/arm.c (working copy) @@ -5426,6 +5426,7 @@ arm_function_ok_for_sibcall (tree decl, sibling calls. */ if (TARGET_AAPCS_BASED && arm_abi == ARM_ABI_AAPCS + && decl && DECL_WEAK (decl)) return false;