OSDN Git Service

* flow.c (life_analysis): When collecting reg info, clear
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Feb 2000 22:32:10 +0000 (22:32 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Feb 2000 22:32:10 +0000 (22:32 +0000)
        regs_ever_live.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32139 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/flow.c

index a337cf9..5424ba4 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 a7217db..bde9945 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.  */