From: Vladimir Makarov Date: Mon, 11 Apr 2011 19:23:13 +0000 (+0000) Subject: re PR middle-end/48464 (@171649: ICE in setup_pressure_classes, at ira.c:877) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a58dfa4999fb9f46aa315ff6d99c36d350b24159;p=gcc.git re PR middle-end/48464 (@171649: ICE in setup_pressure_classes, at ira.c:877) 2011-04-11 Vladimir Makarov PR middle-end/48464 * ira.c (setup_pressure_classes): Fix typo in loop condition. (setup_allocno_and_important_classes): Ditto. From-SVN: r172274 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc17dddd52f..3dd0f1d0a4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-11 Vladimir Makarov + + PR middle-end/48464 + * ira.c (setup_pressure_classes): Fix typo in loop condition. + (setup_allocno_and_important_classes): Ditto. + 2011-04-11 Joseph Myers * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to diff --git a/gcc/ira.c b/gcc/ira.c index 719473213c8..054f4ca8eb2 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -863,7 +863,7 @@ setup_pressure_classes (void) registers available for the allocation. */ CLEAR_HARD_REG_SET (temp_hard_regset); CLEAR_HARD_REG_SET (temp_hard_regset2); - for (cl = 0; cl <= LIM_REG_CLASSES; cl++) + for (cl = 0; cl < LIM_REG_CLASSES; cl++) { for (i = 0; i < n; i++) if ((int) pressure_classes[i] == cl) @@ -923,7 +923,7 @@ setup_allocno_and_important_classes (void) /* Collect classes which contain unique sets of allocatable hard registers. Prefer GENERAL_REGS to other classes containing the same set of hard registers. */ - for (i = 0; i <= LIM_REG_CLASSES; i++) + for (i = 0; i < LIM_REG_CLASSES; i++) { COPY_HARD_REG_SET (temp_hard_regset, reg_class_contents[i]); AND_COMPL_HARD_REG_SET (temp_hard_regset, no_unit_alloc_regs);