summaryrefslogtreecommitdiff
path: root/gcc/config/s390
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2016-02-05 10:10:35 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2016-02-05 10:10:35 +0000
commitaa5b477817c28a20bd09b4dd4ed953d10998a3b4 (patch)
tree4b03b980c2ce16eeba255d6b81d29acd97595732 /gcc/config/s390
parent1d3cea747c9a226572fabd5fd583cd9236a462db (diff)
downloadgcc-aa5b477817c28a20bd09b4dd4ed953d10998a3b4.tar.gz
S/390: Fix 64 bit sibcall
This fixes a problem revealed during the split-stack work: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00322.html gcc/ChangeLog: 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.c (s390_emit_call): Add missing 64 bit check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/s390')
-rw-r--r--gcc/config/s390/s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 1667c115f41..bca428ab303 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -12507,7 +12507,7 @@ s390_emit_call (rtx addr_location, rtx tls_call, rtx result_reg,
replace the symbol itself with the PLT stub. */
if (flag_pic && !SYMBOL_REF_LOCAL_P (addr_location))
{
- if (retaddr_reg != NULL_RTX)
+ if (TARGET_64BIT || retaddr_reg != NULL_RTX)
{
addr_location = gen_rtx_UNSPEC (Pmode,
gen_rtvec (1, addr_location),