arm.c (legitimize_pic_address): Fix sense of assertion test for creating pseudos when the base offset is too large.

* arm.c (legitimize_pic_address): Fix sense of assertion test for
	creating pseudos when the base offset is too large.

From-SVN: r98924
This commit is contained in:
Richard Earnshaw 2005-04-28 14:43:38 +00:00 committed by Richard Earnshaw
parent 60550c0c62
commit c4db6655d6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-28 Richard Earnshaw <richard.earnshaw@arm.com>
* arm.c (legitimize_pic_address): Fix sense of assertion test for
creating pseudos when the base offset is too large.
2005-04-28 Kazu Hirata <kazu@cs.umass.edu> 2005-04-28 Kazu Hirata <kazu@cs.umass.edu>
* global.c (earlyclobber_regclass): Change the type to * global.c (earlyclobber_regclass): Change the type to

View File

@ -3094,7 +3094,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
test the index for the appropriate mode. */ test the index for the appropriate mode. */
if (!arm_legitimate_index_p (mode, offset, SET, 0)) if (!arm_legitimate_index_p (mode, offset, SET, 0))
{ {
gcc_assert (no_new_pseudos); gcc_assert (!no_new_pseudos);
offset = force_reg (Pmode, offset); offset = force_reg (Pmode, offset);
} }