From: Tristan Gingold Date: Tue, 15 May 2012 07:57:57 +0000 (+0000) Subject: ira-color.c (move_spill_restore): Add a guard. X-Git-Tag: misc/gccgo-go1_1_2~2910 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=094aaeabfdbe5db85c21d072eb1c2175621fb369;p=thirdparty%2Fgcc.git ira-color.c (move_spill_restore): Add a guard. 2012-05-15 Tristan Gingold * ira-color.c (move_spill_restore): Add a guard. From-SVN: r187500 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 608a68a2fb5f..9b7d499d71ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-05-15 Tristan Gingold + + * ira-color.c (move_spill_restore): Add a guard. + 2012-05-15 Tristan Gingold * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to diff --git a/gcc/ira-color.c b/gcc/ira-color.c index 45f524441228..300c3b8f9225 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -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);