aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-10-18 19:09:53 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-10-18 19:09:53 -0400
commit9b316aa2e606819d385ef616ac0728af59ff5e8a (patch)
tree4366df222f5884418a2cab2d67ad1393559e8d92
parent2507a2764d903775ed290150683f8a3bca5d8075 (diff)
downloadgcc-9b316aa2e606819d385ef616ac0728af59ff5e8a.zip
gcc-9b316aa2e606819d385ef616ac0728af59ff5e8a.tar.gz
gcc-9b316aa2e606819d385ef616ac0728af59ff5e8a.tar.bz2
(propagate_block): Call mark_used_regs to show global regs used by
call. From-SVN: r8304
-rw-r--r--gcc/flow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 68ca764..76ef544 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;