Patchwork [ARM] Fix arm-none-eabi builds.

login
register
mail settings
Submitter Ramana Radhakrishnan
Date May 16, 2013, 2:34 p.m.
Message ID <5194EE79.1050308@arm.com>
Download mbox | patch
Permalink /patch/244348/
State New
Headers show

Comments

Ramana Radhakrishnan - May 16, 2013, 2:34 p.m.
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  <ramana.radhakrishnan@arm.com>

         PR target/19599
         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
         for NULL decl.

Patch

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;