diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-01 07:40:17 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-01 07:40:17 +0000 |
commit | f757b746c0f0f028ad1ff9e23e9ef0a36d6412bb (patch) | |
tree | b87324f05c967281051cce9182d8b0d6e78b5adf /gcc | |
parent | d0df4c4b9e1addd05fa28878f012f80d813de112 (diff) | |
download | gcc-f757b746c0f0f028ad1ff9e23e9ef0a36d6412bb.tar.gz |
* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
for NULL decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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 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 |