]> gcc.gnu.org Git - gcc.git/commitdiff
ira-color.c (move_spill_restore): Add a guard.
authorTristan Gingold <gingold@adacore.com>
Tue, 15 May 2012 07:57:57 +0000 (07:57 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Tue, 15 May 2012 07:57:57 +0000 (07:57 +0000)
2012-05-15  Tristan Gingold  <gingold@adacore.com>

        * ira-color.c (move_spill_restore): Add a guard.

From-SVN: r187500

gcc/ChangeLog
gcc/ira-color.c

index 608a68a2fb5f6083bbe7d8fbaffb7c19c1441a15..9b7d499d71edaddc0bae128ffedfb4a3856a9ce1 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-15  Tristan Gingold  <gingold@adacore.com>
+
+       * ira-color.c (move_spill_restore): Add a guard.
+
 2012-05-15  Tristan Gingold  <gingold@adacore.com>
 
        * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
index 45f5244412287be82ffc94d3a1e744322349b6df..300c3b8f92256b754e79133f58eb2476ef427cbb 100644 (file)
@@ -2941,8 +2941,9 @@ move_spill_restore (void)
                 copies and the reload pass can spill the allocno set
                 by copy although the allocno will not get memory
                 slot.  */
-             || ira_reg_equiv_invariant_p[regno]
-             || ira_reg_equiv_const[regno] != NULL_RTX
+             || (regno < ira_reg_equiv_len
+                 && (ira_reg_equiv_invariant_p[regno]
+                     || ira_reg_equiv_const[regno] != NULL_RTX))
              || !bitmap_bit_p (loop_node->border_allocnos, ALLOCNO_NUM (a)))
            continue;
          mode = ALLOCNO_MODE (a);
This page took 0.070292 seconds and 5 git commands to generate.