1 --- gcc/gcc/tree-ssa-ccp.c (revision 106422)
2 +++ gcc/gcc/tree-ssa-ccp.c (working copy)
3 @@ -853,6 +853,10 @@ ccp_fold (tree stmt)
4 op0 = get_value (op0, true)->value;
7 + if ((code == NOP_EXPR || code == CONVERT_EXPR)
8 + && tree_ssa_useless_type_conversion_1 (TREE_TYPE (rhs),
11 return fold_unary (code, TREE_TYPE (rhs), op0);