From: Eric Botcazou Date: Fri, 1 Jul 2016 07:40:17 +0000 (+0000) Subject: arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=920eed8c9edc8888b6181310bf0311177230dd16;p=gcc.git arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl. * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl. From-SVN: r237903 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc39710bd24..344fa7e925a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-01 Eric Botcazou + + * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check + for NULL decl. + 2016-06-30 Michael Meissner PR target/71677 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 7f17ef40dd0..26b7d1dd18e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -6756,7 +6756,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp) /* The PIC register is live on entry to VxWorks PLT entries, so we must make the call before restoring the PIC register. */ - if (TARGET_VXWORKS_RTP && flag_pic && !targetm.binds_local_p (decl)) + if (TARGET_VXWORKS_RTP && flag_pic && decl && !targetm.binds_local_p (decl)) return false; /* If we are interworking and the function is not declared static