From fa52261ecda60c2dfe9f7d8c92a5d5ca834117be Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 3 Jun 1992 21:39:14 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1151 --- gcc/reload1.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index 914b7022c4a..79540efb432 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; } } -- 2.30.2