summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-12 23:26:22 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-12 23:26:22 +0000
commit22c48241aafb1c1269e2354850ca902d34af05a1 (patch)
tree83ef54912c3690571649509c2c17461566eeec2e /gcc/reload1.c
parentb307aaccb09a34d1e467f7d909e50cac017c6cd1 (diff)
downloadgcc-22c48241aafb1c1269e2354850ca902d34af05a1.tar.gz
* reload1.c (compute_use_by_pseudos): Allow reg_renumber[regno] < 0
after reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index dca868526d7..5f1e7b9ba4f 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -536,10 +536,20 @@ compute_use_by_pseudos (to, from)
int r = reg_renumber[regno];
int nregs;
if (r < 0)
- abort ();
- nregs = HARD_REGNO_NREGS (r, PSEUDO_REGNO_MODE (regno));
- while (nregs-- > 0)
- SET_HARD_REG_BIT (*to, r + nregs);
+ {
+ /* reload_combine uses the information from
+ basic_block_live_at_start, which might still contain registers
+ that have not actually been allocated since they have an
+ equivalence. */
+ if (! reload_completed)
+ abort ();
+ }
+ else
+ {
+ nregs = HARD_REGNO_NREGS (r, PSEUDO_REGNO_MODE (regno));
+ while (nregs-- > 0)
+ SET_HARD_REG_BIT (*to, r + nregs);
+ }
});
}