* tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
with prejudice.
From-SVN: r84436
* builtins.c (expand_builtin_stpcpy): Don't modify len.
+ * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
+ with prejudice.
+
2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
* flags.h: Delete redundant prototypes that are being generated
}
if (result && ignore)
- STRIP_NOPS (result);
+ {
+ /* STRIP_NOPS isn't strong enough -- it'll stop when we change modes,
+ but given that we're ignoring the result, we don't care what type
+ is being returned by the transformed function. */
+ while (TREE_CODE (result) == NOP_EXPR
+ || TREE_CODE (result) == CONVERT_EXPR
+ || TREE_CODE (result) == NON_LVALUE_EXPR)
+ result = TREE_OPERAND (result, 0);
+ }
+
return result;
}