local-alloc.c (update_equiv_regs): Don't eliminate constant expressions at -O0.
authorGeoffrey Keating <geoffk@redhat.com>
Mon, 28 May 2001 02:21:28 +0000 (02:21 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 28 May 2001 02:21:28 +0000 (02:21 +0000)
* local-alloc.c (update_equiv_regs): Don't eliminate constant
expressions at -O0.

From-SVN: r42667

gcc/ChangeLog
gcc/local-alloc.c

index 7de42117ec070194e171a5ebf24a82a306bdf3f3..63d1d21479d5748f814885eb534f1b77da99a0d6 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-27  Geoffrey Keating  <geoffk@redhat.com>
+
+       * local-alloc.c (update_equiv_regs): Don't eliminate constant
+       expressions at -O0.
+
 2001-05-27  Stan Shebs  <shebs@apple.com>
 
        * objc/objc-act.c: Add/fix various comments.
index c83d4f145f58930a7ca5da38302e307e55666908..13155f3a6b5e494d7427688deed3d38fa584d0c6 100644 (file)
@@ -1005,7 +1005,7 @@ update_equiv_regs ()
          reg_equiv[regno].loop_depth = loop_depth;
 
          /* Don't mess with things live during setjmp.  */
-         if (REG_LIVE_LENGTH (regno) >= 0)
+         if (REG_LIVE_LENGTH (regno) >= 0 && optimize)
            {
              /* Note that the statement below does not affect the priority
                 in local-alloc!  */