From: Richard Stallman Date: Mon, 29 Jun 1992 04:29:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: misc/cutover-egcs-0~12599 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944e5f7770b38d605bedabd5091376dea893684e;p=thirdparty%2Fgcc.git *** empty log message *** From-SVN: r1332 --- diff --git a/gcc/flow.c b/gcc/flow.c index bc036dd15d8c..023af323337b 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]