From b871e3d2252fd3e683f99254ac038169604e4e13 Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Thu, 16 May 2013 14:31:24 +0000 Subject: [PATCH] Fix breakage with missing decl check for arm-none-eabi builds. 2013-05-16 Ramana Radhakrishnan PR target/19599 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check for NULL decl. From-SVN: r198973 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e92c444a6b..b2fad18b07c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-05-16 Ramana Radhakrishnan + + PR target/19599 + * config/arm/arm.c (arm_function_ok_for_sibcall): Add check + for NULL decl. + 2013-05-16 Rainer Orth * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index c4f5c6907f8..44286926eb6 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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; -- 2.30.2