diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 2001-08-08 21:53:46 +0000 |
---|---|---|
committer | Franz Sirl <sirl@gcc.gnu.org> | 2001-08-08 21:53:46 +0000 |
commit | 35e17f7e33498b9b9a152758dc621ee7638fdb52 (patch) | |
tree | 9bc8f33f48d355db2ee36b4a5065b7a3f4aa90bd /gcc | |
parent | 2b1e2382981379119467d59f396dd81544f99e4f (diff) | |
download | gcc-35e17f7e33498b9b9a152758dc621ee7638fdb52.zip gcc-35e17f7e33498b9b9a152758dc621ee7638fdb52.tar.gz gcc-35e17f7e33498b9b9a152758dc621ee7638fdb52.tar.bz2 |
global.c (retry_global_alloc): Avoid shadowing allocno.
2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* global.c (retry_global_alloc): Avoid shadowing allocno.
From-SVN: r44728
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/global.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5852995..500a089 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + + * global.c (retry_global_alloc): Avoid shadowing allocno. + 2001-08-08 Mark Mitchell <mark@codesourcery.com> * except.c (remove_fixup_regions): Fix typo. diff --git a/gcc/global.c b/gcc/global.c index 6558fac..1fe4d82 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -1290,17 +1290,17 @@ retry_global_alloc (regno, forbidden_regs) int regno; HARD_REG_SET forbidden_regs; { - int allocno = reg_allocno[regno]; - if (allocno >= 0) + int alloc_no = reg_allocno[regno]; + if (alloc_no >= 0) { /* If we have more than one register class, first try allocating in the class that is cheapest for this pseudo-reg. If that fails, try any reg. */ if (N_REG_CLASSES > 1) - find_reg (allocno, forbidden_regs, 0, 0, 1); + find_reg (alloc_no, forbidden_regs, 0, 0, 1); if (reg_renumber[regno] < 0 && reg_alternate_class (regno) != NO_REGS) - find_reg (allocno, forbidden_regs, 1, 0, 1); + find_reg (alloc_no, forbidden_regs, 1, 0, 1); /* If we found a register, modify the RTL for the register to show the hard register, and mark that register live. */ |