aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-15 00:25:53 +0000
committerRichard Stallman <rms@gnu.org>1993-11-15 00:25:53 +0000
commit2315a5db3894d58f58e5c8777ea65f1eef854923 (patch)
treeb3913207ec4c30238251fb47c7a99cfab4e10570 /gcc
parent0ba9317ecc6d0bed7027eb52e45cfcf070433527 (diff)
downloadgcc-2315a5db3894d58f58e5c8777ea65f1eef854923.zip
gcc-2315a5db3894d58f58e5c8777ea65f1eef854923.tar.gz
gcc-2315a5db3894d58f58e5c8777ea65f1eef854923.tar.bz2
(twoval_comparison_p): Do nothing for SAVE_EXPR, at least for now.
From-SVN: r6090
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fold-const.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index cf50da4..27f6bab 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -1921,6 +1921,11 @@ twoval_comparison_p (arg, cval1, cval2, save_p)
&& (code == TRUTH_ANDIF_EXPR || code == TRUTH_ORIF_EXPR
|| code == COMPOUND_EXPR))
class = '2';
+
+ /* ??? Disable this since the SAVE_EXPR might already be in use outside
+ the expression. There may be no way to make this work, but it needs
+ to be looked at again for 2.6. */
+#if 0
else if (class == 'e' && code == SAVE_EXPR && SAVE_EXPR_RTL (arg) == 0)
{
/* If we've already found a CVAL1 or CVAL2, this expression is
@@ -1931,6 +1936,7 @@ twoval_comparison_p (arg, cval1, cval2, save_p)
class = '1';
*save_p = 1;
}
+#endif
switch (class)
{