flow.c (life_analysis): When collecting reg info, clear regs_ever_live.
authorRichard Henderson <rth@cygnus.com>
Thu, 24 Feb 2000 22:32:10 +0000 (14:32 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 24 Feb 2000 22:32:10 +0000 (14:32 -0800)
        * flow.c (life_analysis): When collecting reg info, clear
        regs_ever_live.

From-SVN: r32139

gcc/ChangeLog
gcc/flow.c

index a337cf9c9dbaa6542b53986d2e415ab6015d6b16..5424ba46328dd5aad51ab0e21e25dfddefda04bc 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-24  Richard Henderson  <rth@cygnus.com>
+
+       * flow.c (life_analysis): When collecting reg info, clear
+       regs_ever_live.
+
 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        Fix bug exposed by reload.c no longer rounding the frame
index a7217dbf486ff246e9e5b24b9b4b399311e3d7af..bde9945be042b59ffd869155328e4e1e8f921b3d 100644 (file)
@@ -2524,6 +2524,9 @@ life_analysis (f, nregs, file, remove_dead_code)
   /* "Update" life info from zero.  It'd be nice to begin the
      relaxation with just the exit and noreturn blocks, but that set
      is not immediately handy.  */
+
+  if (flags & PROP_REG_INFO)
+    memset (regs_ever_live, 0, sizeof(regs_ever_live));
   update_life_info (all_blocks, UPDATE_LIFE_GLOBAL, flags);
 
   /* Clean up.  */