aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2016-07-01 07:40:17 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-07-01 07:40:17 +0000
commit920eed8c9edc8888b6181310bf0311177230dd16 (patch)
treeb87324f05c967281051cce9182d8b0d6e78b5adf /gcc
parent4bfebb722cefb21480d0fcc7a97cf503d3022206 (diff)
downloadgcc-920eed8c9edc8888b6181310bf0311177230dd16.zip
gcc-920eed8c9edc8888b6181310bf0311177230dd16.tar.gz
gcc-920eed8c9edc8888b6181310bf0311177230dd16.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc39710..344fa7e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
+
+ * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
+ for NULL decl.
+
2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/71677
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 7f17ef4..26b7d1d 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