s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 4 Nov 2002 19:04:46 +0000 (19:04 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 4 Nov 2002 19:04:46 +0000 (19:04 +0000)
* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
for comparison.

From-SVN: r58799

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

index 9b4c1439034e6e6709f39f23d62eb5bdabfdbf98..dfda5def0848e8c347fec8d32023afcc3abf6f8d 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
+       for comparison.
+
 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
 
        * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
index 0f9c5a189f290c725cf91b582dc7912adfb84a44..67f59d53b5ac58a07e734de18ce19e7545c9d60e 100644 (file)
@@ -1605,12 +1605,11 @@ s390_decompose_address (addr, out)
             Thus we don't check the displacement for validity here.  If after
             elimination the displacement turns out to be invalid after all,
             this is fixed up by reload in any case.  */
-         if ((base && REGNO (base) == ARG_POINTER_REGNUM)
-             || (indx && REGNO (indx) == ARG_POINTER_REGNUM))
-           ;
-
-         else if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096)
-           return FALSE;
+         if (base != arg_pointer_rtx && indx != arg_pointer_rtx)
+           {
+             if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096)
+               return FALSE;
+           }
         }
 
       /* In the small-PIC case, the linker converts @GOT12