Fix breakage with missing decl check for arm-none-eabi builds.
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Thu, 16 May 2013 14:31:24 +0000 (14:31 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Thu, 16 May 2013 14:31:24 +0000 (14:31 +0000)
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.

From-SVN: r198973

gcc/ChangeLog
gcc/config/arm/arm.c

index 8e92c444a6bf63fc6cc83fd88469954e4c82c18b..b2fad18b07c07f570b90d0f996458dc1765a2dc6 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
index c4f5c6907f815daa5ac6e0b10430b30d1deee089..44286926eb6534b589342704765657a17c8b4a91 100644 (file)
@@ -5426,6 +5426,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp)
      sibling calls.  */
   if (TARGET_AAPCS_BASED
       && arm_abi == ARM_ABI_AAPCS
+      && decl
       && DECL_WEAK (decl))
     return false;