summaryrefslogtreecommitdiff
path: root/gcc/cse.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/cse.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/cse.c')
-rw-r--r--gcc/cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 180c31e9635..e2a04e59398 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4338,7 +4338,7 @@ fold_rtx (x, insn)
{
if (const_arg0)
return const1_rtx;
- if (!flag_gcse)
+ if (optimize == 0 || !flag_gcse)
return const0_rtx;
}
break;