(twoval_comparison_p): Do nothing for SAVE_EXPR, at least for now.
authorRichard Stallman <rms@gnu.org>
Mon, 15 Nov 1993 00:25:53 +0000 (00:25 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 15 Nov 1993 00:25:53 +0000 (00:25 +0000)
From-SVN: r6090

gcc/fold-const.c

index cf50da4eb4a89c3c1abf1edd11aac82971d924a8..27f6baba92197999b35830e6f9fc218f676003ff 100644 (file)
@@ -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)
     {