gcc/
PR tree-optimization/23960
* fold-const.c (fold_binary): Use op0 and op1 instead of arg0
and arg1 if we are passing them to fold_build2.
gcc/testsuite/
PR tree-optimization/23960
* gcc.c-torture/compile/pr23960.c: New.
From-SVN: r104634
+2005-09-25 Kazu Hirata <kazu@codesourcery.com>
+
+ * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
+ and arg1 if we are passing them to fold_build2.
+
2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
PR 23828
return omit_one_operand (type, integer_one_node, arg0);
case GT_EXPR:
- return fold_build2 (NE_EXPR, type, arg0, arg1);
+ return fold_build2 (NE_EXPR, type, op0, op1);
default:
break;
+2005-09-25 Kazu Hirata <kazu@codesourcery.com>
+
+ PR tree-optimization/23960
+ * gcc.c-torture/compile/pr23960.c: New.
+
2005-09-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/16861
--- /dev/null
+/* PR tree-optimization/23960
+ fold-const.c used to construct a comparison node with one pointer
+ operand and one non-pointer operand. */
+
+void abort (void) __attribute__ ((noreturn));
+
+void
+foo (char *d, unsigned long int n)
+{
+ if (d + n > d)
+ abort ();
+}