(legitimate_address_p): Reject address whose index is itself the sum of two

other parts.

From-SVN: r91991
This commit is contained in:
Nick Clifton 2004-12-10 14:03:45 +00:00 committed by Nick Clifton
parent d5f60056f0
commit 5542b23d7b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-10 Nick Clifton <nickc@redhat.com>
* config/mn10300/mn10300.c (legitimate_address_p): Reject address
whose index is itself the sum of two other parts.
2004-12-10 Alan Modra <amodra@bigpond.net.au>
* config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.

View File

@ -1887,6 +1887,7 @@ legitimate_address_p (enum machine_mode mode, rtx x, int strict)
if (GET_CODE (index) == CONST_INT)
return TRUE;
if (GET_CODE (index) == CONST
&& GET_CODE (XEXP (index, 0)) != PLUS
&& (! flag_pic
|| legitimate_pic_operand_p (index)))
return TRUE;