This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Alternate booleans patch
- To: "Zack Weinberg" <zackw at stanford dot edu>
- Subject: Re: Alternate booleans patch
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Wed, 28 Feb 2001 18:21:15 +1100
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010227221548.M27567@wolery.stanford.edu>
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.