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]

Re: Alternate booleans patch


On 27-Feb-2001, Zack Weinberg <zackw@stanford.edu> wrote:
> Index: fold-const.c
> --- fold-const.c	2001/02/23 21:05:41	1.150
> +++ fold-const.c	2001/02/28 05:59:23
> @@ -4695,16 +4695,16 @@ count_cond (expr, lim)
...
> -  true = count_cond (TREE_OPERAND (expr, 1), lim - 1);
> -  false = count_cond (TREE_OPERAND (expr, 2), lim - 1 - true);
> -  return MIN (lim, 1 + true + false);
> +  ctrue = count_cond (TREE_OPERAND (expr, 1), lim - 1);
> +  cfalse = count_cond (TREE_OPERAND (expr, 2), lim - 1 - true);
> +  return MIN (lim, 1 + ctrue + cfalse);

s/true/ctrue/

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


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