This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] fold-const.c fix
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 07 Mar 2005 16:50:39 -0500
- Subject: [PATCH, committed] fold-const.c fix
The following patch fixes the typo accidentally introduced in an
earlier fold-const.c patch and restores bootstrap. Committed as obvious.
Thanks to Andrew Pinski and Janis Johnson for helping with the hunt and
analysis.
Thanks, David
* fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
ordering ops from earlier change.
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.534
diff -c -p -r1.534 fold-const.c
*** fold-const.c 7 Mar 2005 03:23:13 -0000 1.534
--- fold-const.c 7 Mar 2005 21:47:00 -0000
*************** fold_binary_op_with_conditional_arg (enu
*** 5459,5465 ****
tree cond, tree arg, int cond_first_p)
{
tree cond_type = cond_first_p ? TREE_TYPE (op0) : TREE_TYPE (op1);
! tree arg_type = cond_first_p ? TREE_TYPE (op0) : TREE_TYPE (op1);
tree test, true_value, false_value;
tree lhs = NULL_TREE;
tree rhs = NULL_TREE;
--- 5459,5465 ----
tree cond, tree arg, int cond_first_p)
{
tree cond_type = cond_first_p ? TREE_TYPE (op0) : TREE_TYPE (op1);
! tree arg_type = cond_first_p ? TREE_TYPE (op1) : TREE_TYPE (op0);
tree test, true_value, false_value;
tree lhs = NULL_TREE;
tree rhs = NULL_TREE;