From c4db6655d620043502242e9a837c0b14edb8f751 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Thu, 28 Apr 2005 14:43:38 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1be015..aa573eb 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 7345510..da3b74f 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); } -- 2.7.4