summaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-18 23:09:53 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-18 23:09:53 +0000
commit8357380988b58dfce38da9304701c480c2c49462 (patch)
tree4366df222f5884418a2cab2d67ad1393559e8d92 /gcc/flow.c
parent2420fc254624b5847c3267b19608cd038ea27f25 (diff)
downloadgcc-8357380988b58dfce38da9304701c480c2c49462.tar.gz
(propagate_block): Call mark_used_regs to show global regs used by
call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 68ca7649194..76ef544bfd4 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -1521,11 +1521,11 @@ propagate_block (old, first, last, final, significant, bnum)
/* Calls may also reference any of the global registers,
so they are made live. */
-
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
if (global_regs[i])
- live[i / REGSET_ELT_BITS]
- |= ((REGSET_ELT_TYPE) 1 << (i % REGSET_ELT_BITS));
+ mark_used_regs (old, live,
+ gen_rtx (REG, reg_raw_mode[i], i),
+ final, insn);
/* Calls also clobber memory. */
last_mem_set = 0;