arm.c (legitimize_pic_address): Fix sense of assertion test for creating pseudos...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 28 Apr 2005 14:43:38 +0000 (14:43 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 28 Apr 2005 14:43:38 +0000 (14:43 +0000)
* 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
gcc/config/arm/arm.c

index f1be015..aa573eb 100644 (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>
 
        * global.c (earlyclobber_regclass): Change the type to
index 7345510..da3b74f 100644 (file)
@@ -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);
            }