s390.c (s390_decompose_address): Allow symbol+offset into the GOT in case we need...
authorDJ Delorie <dj@redhat.com>
Mon, 16 Oct 2006 19:41:47 +0000 (15:41 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Mon, 16 Oct 2006 19:41:47 +0000 (15:41 -0400)
* config/s390/s390.c (s390_decompose_address): Allow symbol+offset
into the GOT in case we need a subreg of the address.

From-SVN: r117791

gcc/ChangeLog
gcc/config/s390/s390.c

index c1803fbe2ff4a7df0a4ec8864f3a8fdfd509200a..0a6dcdad38ccbad942ae9be144865151855e58e9 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-16  DJ Delorie  <dj@redhat.com>
+
+       * config/s390/s390.c (s390_decompose_address): Allow symbol+offset
+       into the GOT in case we need a subreg of the address.
+
 2006-10-16  Richard Guenther  <rguenther@suse.de>
 
        PR target/25519
index e55686dae07a0127127ce7204bbad370a9b5d6de..d20569598dad600447a05ddb60f0dc5e7531109c 100644 (file)
@@ -1739,7 +1739,6 @@ s390_decompose_address (rtx addr, struct s390_address *out)
       if (GET_CODE (disp) == UNSPEC
           && (XINT (disp, 1) == UNSPEC_GOT
              || XINT (disp, 1) == UNSPEC_GOTNTPOFF)
-         && offset == 0
          && flag_pic == 1)
         {
          ;