(find_reloads): Don't try to call force_const_mem on a HIGH.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 12 Jul 1994 19:09:44 +0000 (15:09 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 12 Jul 1994 19:09:44 +0000 (15:09 -0400)
From-SVN: r7750

gcc/reload.c

index 22e9f5ff07051c50ed4199fb10c81c1183a532f2..b9a1c27bb8f18c3ba5369694e5a05239f96af5b6 100644 (file)
@@ -2954,6 +2954,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
                 precisely the same as in the code below that calls
                 force_const_mem.  */
              if (CONSTANT_P (operand)
+                 /* force_const_mem does not accept HIGH.  */
+                 && GET_CODE (operand) != HIGH
                  && (PREFERRED_RELOAD_CLASS (operand,
                                              (enum reg_class) this_alternative[i])
                      == NO_REGS)
@@ -3294,6 +3296,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
   for (i = 0; i < noperands; i++)
     if (! goal_alternative_win[i]
        && CONSTANT_P (recog_operand[i])
+       /* force_const_mem does not accept HIGH.  */
+       && GET_CODE (recog_operand[i]) != HIGH
        && (PREFERRED_RELOAD_CLASS (recog_operand[i],
                                    (enum reg_class) goal_alternative[i])
            == NO_REGS)