aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-06-03 21:39:14 +0000
committerRichard Stallman <rms@gnu.org>1992-06-03 21:39:14 +0000
commitfa52261ecda60c2dfe9f7d8c92a5d5ca834117be (patch)
tree09df0418b21185cee23fbdecac3faa247ceaad91 /gcc
parent77a02b01f2a187724b84c45ef51915fc5011f8c5 (diff)
downloadgcc-fa52261ecda60c2dfe9f7d8c92a5d5ca834117be.zip
gcc-fa52261ecda60c2dfe9f7d8c92a5d5ca834117be.tar.gz
gcc-fa52261ecda60c2dfe9f7d8c92a5d5ca834117be.tar.bz2
*** empty log message ***
From-SVN: r1151
Diffstat (limited to 'gcc')
-rw-r--r--gcc/reload1.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 914b702..79540ef 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;
}
}