*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Mon, 29 Jun 1992 04:29:24 +0000 (04:29 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 29 Jun 1992 04:29:24 +0000 (04:29 +0000)
From-SVN: r1332

gcc/flow.c

index bc036dd15d8c5a5a8bd85961dd2f3158f1ed5c61..023af323337b8c8e8e7d6fef78825b5da2d654b3 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]