aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2002-11-04 19:04:46 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2002-11-04 19:04:46 +0000
commite86e721fc7b44cdd46c72f60de48af228d7df4b9 (patch)
tree4553df59d0f638cdef29596167541abbc09abcc2
parent40673d2b88c087500c036ec8a561d473e98ebce2 (diff)
downloadgcc-e86e721fc7b44cdd46c72f60de48af228d7df4b9.zip
gcc-e86e721fc7b44cdd46c72f60de48af228d7df4b9.tar.gz
gcc-e86e721fc7b44cdd46c72f60de48af228d7df4b9.tar.bz2
s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison.
* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison. From-SVN: r58799
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/s390.c11
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9b4c143..dfda5de 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 0f9c5a1..67f59d5 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -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