* fold-const.c (fold): Fix another type in COND_EXPR handling code.
authorJeffrey A Law <law@cygnus.com>
Sun, 20 Sep 1998 11:16:12 +0000 (11:16 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 20 Sep 1998 11:16:12 +0000 (05:16 -0600)
From-SVN: r22499

gcc/ChangeLog
gcc/fold-const.c

index 7b9c59df857e022d0089f6cef3d9635043f25aec..ffb1a6bc2807fdfad422edd9607b585adc96f10a 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep 20 12:14:45 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * fold-const.c (fold): Fix another type in COND_EXPR handling code.
+
 1998-09-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * configure.in: Add support for c4x targets.
index 5eab656228284199b8ee675a275d07afb695036c..b7037deeea7c8acf6a7b07f0ffbfb6bbac1b0d13 100644 (file)
@@ -6014,7 +6014,8 @@ fold (expr)
              t = build (code, type, tem,
                         TREE_OPERAND (t, 2), TREE_OPERAND (t, 1));
              arg0 = tem;
-             arg1 = TREE_OPERAND (t, 2);
+             /* arg1 should be the first argument of the new T.  */
+             arg1 = TREE_OPERAND (t, 1);
              STRIP_NOPS (arg1);
            }
        }