diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-10-22 15:58:33 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-10-22 15:58:33 +0000 |
commit | 25bebb3bdd312d9943faded2d455d20aea79c0ae (patch) | |
tree | d3e4ff1446320645e119745a87b3cd8285cea617 /gcc/local-alloc.c | |
parent | 1cdf4fe0553d5ba735f6b3a4f80a8f1f18887217 (diff) | |
download | gcc-25bebb3bdd312d9943faded2d455d20aea79c0ae.tar.gz |
* local-alloc.c (block_alloc): Don't lose if two SCRATCH expressions
are shared.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 7a3e103c6bf..ce7b4b9f405 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1714,17 +1714,12 @@ block_alloc (b) { if (GET_CODE (qty_scratch_rtx[q]) == REG) abort (); - PUT_CODE (qty_scratch_rtx[q], REG); - REGNO (qty_scratch_rtx[q]) = qty_phys_reg[q]; + + qty_scratch_rtx[q] = gen_rtx (REG, GET_MODE (qty_scratch_rtx[q]), + qty_phys_reg[q]); scratch_block[scratch_index] = b; scratch_list[scratch_index++] = qty_scratch_rtx[q]; - - /* Must clear the USED field, because it will have been set by - copy_rtx_if_shared, but the leaf_register code expects that - it is zero in all REG rtx. copy_rtx_if_shared does not set the - used bit for REGs, but does for SCRATCHes. */ - qty_scratch_rtx[q]->used = 0; } } } |