diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1be015cedb..aa573ebc0d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-28 Richard Earnshaw + + * 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 * global.c (earlyclobber_regclass): Change the type to diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 7345510433a..da3b74fc77b 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3094,7 +3094,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) test the index for the appropriate mode. */ if (!arm_legitimate_index_p (mode, offset, SET, 0)) { - gcc_assert (no_new_pseudos); + gcc_assert (!no_new_pseudos); offset = force_reg (Pmode, offset); }