Commit c1a408fd by Kazu Hirata Committed by Kazu Hirata

* fold-const.c (fold_unary): Use build1 instead of copy_node.

From-SVN: r95989
parent f00822b2
......@@ -4,6 +4,8 @@
* cse.c (cse_reg_info_table): Make it static.
* fold-const.c (fold_unary): Use build1 instead of copy_node.
2005-03-06 Zdenek Dvorak <dvorakz@suse.cz>
* cse.c (find_best_addr): Use canon_for_address.
......
......@@ -6808,8 +6808,7 @@ fold_unary (tree expr)
{
/* Don't leave an assignment inside a conversion
unless assigning a bitfield. */
tem = copy_node (t);
TREE_OPERAND (tem, 0) = TREE_OPERAND (op0, 1);
tem = build1 (code, type, TREE_OPERAND (op0, 1));
/* First do the assignment, then return converted constant. */
tem = build2 (COMPOUND_EXPR, TREE_TYPE (tem), op0, fold (tem));
TREE_NO_WARNING (tem) = 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