This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Mainline failed to bootstrap
- From: Ian Lance Taylor <ian at airs dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, ebotcazou at adacore dot com
- Date: 16 Jan 2006 12:04:39 -0800
- Subject: Re: PATCH: Mainline failed to bootstrap
- References: <20060116195331.GA13176@lucon.org> <20060116200034.GA13270@lucon.org>
"H. J. Lu" <hjl@lucon.org> writes:
> 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
>
> * fold-const.c (fold_minmax): Always initialize compl_code.
>
> --- gcc/fold-const.c.foo 2006-01-16 11:33:31.000000000 -0800
> +++ gcc/fold-const.c 2006-01-16 11:56:13.000000000 -0800
> @@ -7191,14 +7191,12 @@ fold_unary (enum tree_code code, tree ty
> static tree
> fold_minmax (enum tree_code code, tree type, tree op0, tree op1)
> {
> - enum tree_code compl_code;
> + enum tree_code compl_code = MIN_EXPR;
>
> if (code == MIN_EXPR)
> compl_code = MAX_EXPR;
> - else if (code == MAX_EXPR)
> - compl_code = MIN_EXPR;
> else
> - gcc_assert (FALSE);
> + gcc_assert (code == MAX_EXPR);
That last should be gcc_unreachable ().
Changing just that line ought to fix the original problem. That one
line change is preapproved if it works.
Thanks.
Ian