aboutsummaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/global.c b/gcc/global.c
index c805f57..b8a0ec7 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -1016,8 +1016,13 @@ find_reg (int num, HARD_REG_SET losers, int alt_regs_p, int accept_call_clobbere
if (allocno[num].no_eh_reg)
{
unsigned int j;
- for (j = 0; EH_RETURN_DATA_REGNO (j) != INVALID_REGNUM; j++)
- SET_HARD_REG_BIT (used1, EH_RETURN_DATA_REGNO (j));
+ for (j = 0; ; ++j)
+ {
+ unsigned int regno = EH_RETURN_DATA_REGNO (j);
+ if (regno == INVALID_REGNUM)
+ break;
+ SET_HARD_REG_BIT (used1, regno);
+ }
}
#endif