(stupid_mark_refs): If setting reg_where_dead, set regs_live so we
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 6 Mar 1994 21:16:08 +0000 (16:16 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 6 Mar 1994 21:16:08 +0000 (16:16 -0500)
don't later clobber it.

From-SVN: r6705

gcc/stupid.c

index f9179f5009880afa8e5a264b6638b52f41507404..aeee0d0920438809b4f88fede81d4b37fcfb8bb3 100644 (file)
@@ -1,5 +1,5 @@
 /* Dummy data flow analysis for GNU compiler in nonoptimizing mode.
-   Copyright (C) 1987, 1991 Free Software Foundation, Inc.
+   Copyright (C) 1987, 1991, 1994 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -476,7 +476,10 @@ stupid_mark_refs (x, insn)
                 insn so that it will conflict with any other outputs of
                 this insn.  */
              if (reg_where_dead[regno] < where_born + 2)
-               reg_where_dead[regno] = where_born + 2;
+               {
+                 reg_where_dead[regno] = where_born + 2;
+                 regs_live[regno] = 1;
+               }
 
              /* Count the refs of this reg.  */
              reg_n_refs[regno]++;