aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-05-28 02:21:28 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-05-28 02:21:28 +0000
commit49a18670657eb098bc1f97326f136444b5bfc877 (patch)
tree71bcdbd9c96acf1b1c7b60b41d9317979362c0f1
parent81d87bcc58c3f7e0b91f7ce5e6b08e635a8fb032 (diff)
downloadgcc-49a18670657eb098bc1f97326f136444b5bfc877.zip
gcc-49a18670657eb098bc1f97326f136444b5bfc877.tar.gz
gcc-49a18670657eb098bc1f97326f136444b5bfc877.tar.bz2
local-alloc.c (update_equiv_regs): Don't eliminate constant expressions at -O0.
* local-alloc.c (update_equiv_regs): Don't eliminate constant expressions at -O0. From-SVN: r42667
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/local-alloc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7de4211..63d1d21 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index c83d4f1..13155f3 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -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! */