aboutsummaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-04-06 13:52:59 +0000
committerStan Cox <scox@gcc.gnu.org>2000-04-06 13:52:59 +0000
commit030e2b516022736979748e955ca9b1aad1c496f0 (patch)
tree3ecf6f90601c255b44b6afe08ddee85b14443e74 /gcc/regrename.c
parentdabe43de8479106ea52dcbbef3de6a796e7dad7a (diff)
downloadgcc-030e2b516022736979748e955ca9b1aad1c496f0.zip
gcc-030e2b516022736979748e955ca9b1aad1c496f0.tar.gz
gcc-030e2b516022736979748e955ca9b1aad1c496f0.tar.bz2
* regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
From-SVN: r32969
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index 024429c..a83c46c 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -335,7 +335,11 @@ regrename_optimize ()
ar_idx < FIRST_PSEUDO_REGISTER;
ar_idx++)
{
+#ifdef REG_ALLOC_ORDER
avail_reg = reg_alloc_order[ar_idx];
+#else
+ avail_reg = ar_idx;
+#endif
if (consider_available (reg_use, avail_reg, &avail_regs,
rc, &du, def_idx[def]))
break;