This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]