summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-25 17:37:42 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-25 17:37:42 +0000
commit34863464d2ceedf20ddcf52e80dadafd837170ec (patch)
tree96d3a21ee053d1cd5c6b3c5bb9f947f5d7bdccac /gcc/toplev.c
parent315e4c10f9ffea1a45962cb21e291b1afcf7f00c (diff)
downloadgcc-34863464d2ceedf20ddcf52e80dadafd837170ec.tar.gz
* cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
optimizing, even if flag_gcse is true. * toplev.c (rest_of_compilation): purge_builtin_constant_p only needs to be called when "optimize > 0 && flag_gcse". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1ab3f82007b..60370c29213 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2925,7 +2925,8 @@ rest_of_compilation (decl)
}
/* Instantiate any remaining CONSTANT_P_RTX nodes. */
- purge_builtin_constant_p ();
+ if (optimize > 0 && flag_gcse)
+ purge_builtin_constant_p ();
/* Move constant computations out of loops. */