From: Richard Stallman Date: Wed, 3 Jun 1992 21:39:14 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: misc/cutover-egcs-0~12780 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa52261ecda60c2dfe9f7d8c92a5d5ca834117be;p=thirdparty%2Fgcc.git *** empty log message *** From-SVN: r1151 --- diff --git a/gcc/reload1.c b/gcc/reload1.c index 914b7022c4a2..79540efb4322 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1603,6 +1603,10 @@ reload (first, global, dumpfile) } } } + /* We couldn't find any registers for this reload. + Abort to avoid going into an infinite loop. */ + if (i == FIRST_PSEUDO_REGISTER) + abort (); } } @@ -1863,7 +1867,10 @@ count_possible_groups (group_size, group_mode, max_groups) for (k = 0; k < group_size[i]; k++) SET_HARD_REG_BIT (counted_for_groups, j + k); } - j += k; + /* Skip to the last reg in this group. When j is incremented + above, it will then point to the first reg of the next + possible group. */ + j += k - 1; } }