From: Ulrich Weigand Date: Mon, 4 Nov 2002 19:04:46 +0000 (+0000) Subject: s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e86e721fc7b44cdd46c72f60de48af228d7df4b9;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b4c1439034..dfda5def084 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-04 Ulrich Weigand + + * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx + for comparison. + 2002-11-04 Aldy Hernandez * 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 0f9c5a189f2..67f59d53b5a 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