"H. J. Lu" <[EMAIL PROTECTED]> writes: > 2006-01-16 H.J. Lu <[EMAIL PROTECTED]> > > * 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