From: uweigand Date: Mon, 4 Nov 2002 19:04:46 +0000 (+0000) Subject: * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx X-Git-Tag: upstream/4.9.2~83566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64898b8393cb68e09acd20417544319350b91380;p=platform%2Fupstream%2Flinaro-gcc.git * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58799 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + + * 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 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