From 227a39fa4227f67b1dfcbe2e19a9ac0d096b616f Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 25 Nov 2004 17:30:25 +0000 Subject: [PATCH] s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF displacements are not short. * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF displacements are not short. From-SVN: r91303 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 586b35a..afb4d60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2004-11-25 Ulrich Weigand + * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF + displacements are not short. + +2004-11-25 Ulrich Weigand + * config/s390/s390.c (legitimize_pic_address): Use s390_load_address to load addresses. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index cca3d87..f624419 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -1565,7 +1565,8 @@ s390_short_displacement (rtx disp) /* GOT offset is not OK, the GOT can be large. */ if (GET_CODE (disp) == CONST && GET_CODE (XEXP (disp, 0)) == UNSPEC - && XINT (XEXP (disp, 0), 1) == UNSPEC_GOT) + && (XINT (XEXP (disp, 0), 1) == UNSPEC_GOT + || XINT (XEXP (disp, 0), 1) == UNSPEC_GOTNTPOFF)) return 0; /* All other symbolic constants are literal pool references, -- 2.7.4