From 944e5f7770b38d605bedabd5091376dea893684e Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 29 Jun 1992 04:29:24 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1332 --- gcc/flow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/flow.c b/gcc/flow.c index bc036dd15d8..023af323337 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -1628,13 +1628,14 @@ libcall_dead_p (x, needed, note, insn) } /* Return 1 if register REGNO was used before it was set. - In other words, if it is live at function entry. */ + In other words, if it is live at function entry. + Don't count global regster variables, though. */ int regno_uninitialized (regno) int regno; { - if (n_basic_blocks == 0) + if (n_basic_blocks == 0 || global_regs[regno]) return 0; return (basic_block_live_at_start[0][regno / REGSET_ELT_BITS] -- 2.30.2