aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-06-29 04:29:24 +0000
committerRichard Stallman <rms@gnu.org>1992-06-29 04:29:24 +0000
commit944e5f7770b38d605bedabd5091376dea893684e (patch)
tree7e9121f71492c500899050be9149a912b9760587
parenta4219ac7406c41efb439fa8690b634291f7a9d53 (diff)
downloadgcc-944e5f7770b38d605bedabd5091376dea893684e.zip
gcc-944e5f7770b38d605bedabd5091376dea893684e.tar.gz
gcc-944e5f7770b38d605bedabd5091376dea893684e.tar.bz2
*** empty log message ***
From-SVN: r1332
-rw-r--r--gcc/flow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index bc036dd..023af32 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]