(GO_IF_LEGITIMATE_ADDRESS): Check for frame pointer and arg pointer by examining the register number.

(GO_IF_LEGITIMATE_ADDRESS): Check for frame pointer and arg pointer by
examining the register number.  (GNATS case 6172).

From-SVN: r59863
This commit is contained in:
Nick Clifton 2002-12-05 18:34:11 +00:00 committed by Nick Clifton
parent 38b614ef48
commit 145e91f02e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-12-05 Nick Clifton <nickc@redhat.com>
* config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check for frame
pointer and arg pointer by examining the register number.
2002-12-05 Matthias Klose <doko@debian.org>
* doc/invoke.texi: Remove last reference to -a.

View File

@ -1085,8 +1085,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; \