OSDN Git Service

*** empty log message ***
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jun 1992 04:29:24 +0000 (04:29 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jun 1992 04:29:24 +0000 (04:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1332 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/flow.c

index bc036dd..023af32 100644 (file)
@@ -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]