diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-02 07:55:32 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-02 07:55:32 +0000 |
commit | 5ce5e43bcd75e188edf1bbfd3c6aff9fed35f78c (patch) | |
tree | a73fc4286e40f1f81baeb7ca89cf007cfb246750 /gcc/config/fr30 | |
parent | 530f44e17d1222592d724a46b3549a6a4cc0428e (diff) | |
download | gcc-5ce5e43bcd75e188edf1bbfd3c6aff9fed35f78c.tar.gz |
* config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form of the frame
pointer or arg pointer register which strict register checking is not enabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/fr30')
-rw-r--r-- | gcc/config/fr30/fr30.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/fr30/fr30.h b/gcc/config/fr30/fr30.h index cc59cd4c966..992788a04f6 100644 --- a/gcc/config/fr30/fr30.h +++ b/gcc/config/fr30/fr30.h @@ -1078,8 +1078,9 @@ do \ goto LABEL; \ if (GET_CODE (X) == PLUS \ && ((MODE) == SImode || (MODE) == SFmode) \ - && (XEXP (X, 0) == frame_pointer_rtx \ - || XEXP(X,0) == arg_pointer_rtx) \ + && GET_CODE (XEXP (X, 0)) == REG \ + && (REGNO (XEXP (X, 0)) == FRAME_POINTER_REGNUM \ + || REGNO (XEXP (X, 0)) == ARG_POINTER_REGNUM) \ && GET_CODE (XEXP (X, 1)) == CONST_INT \ && IN_RANGE (INTVAL (XEXP (X, 1)), -(1 << 9), (1 << 9) - 4)) \ goto LABEL; \ |