From: Richard Stallman Date: Mon, 29 Jun 1992 04:29:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=944e5f7770b38d605bedabd5091376dea893684e;p=gcc.git *** empty log message *** From-SVN: r1332 --- 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]