Commit 75634129 by Andrew Pinski Committed by Andrew Pinski

re PR middle-end/16045 (ICE fold check: original tree changed by fold)

2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/16045
        * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.

From-SVN: r103243
parent 9bc2a5cb
2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/16045
* builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
2005-08-17 James E Wilson <wilson@specifix.com>
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
......
......@@ -8910,9 +8910,7 @@ fold_builtin (tree fndecl, tree arglist, bool ignore)
tree exp = fold_builtin_1 (fndecl, arglist, ignore);
if (exp)
{
/* ??? Don't clobber shared nodes such as integer_zero_node. */
if (CONSTANT_CLASS_P (exp))
exp = build1 (NOP_EXPR, TREE_TYPE (exp), exp);
exp = build1 (NOP_EXPR, TREE_TYPE (exp), exp);
TREE_NO_WARNING (exp) = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment