Commit 39b726dd by Richard Henderson Committed by Richard Henderson

c-typeck.c (c_expand_asm_operands): Restore the output tree after expanding.

        * c-typeck.c (c_expand_asm_operands): Restore the output tree
        after expanding.

From-SVN: r36533
parent 9790cefd
2000-09-19 Richard Henderson <rth@cygnus.com> 2000-09-19 Richard Henderson <rth@cygnus.com>
* c-typeck.c (c_expand_asm_operands): Restore the output tree
after expanding.
* stmt.c (expand_expr_stmt): Only call warn_if_unused_value * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
if the tree has side effects. if the tree has side effects.
(warn_if_unused_value): Do not warn about void constructs. (warn_if_unused_value): Do not warn about void constructs.
......
...@@ -6603,6 +6603,10 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) ...@@ -6603,6 +6603,10 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
expand_expr (build_modify_expr (o[i], NOP_EXPR, TREE_VALUE (tail)), expand_expr (build_modify_expr (o[i], NOP_EXPR, TREE_VALUE (tail)),
NULL_RTX, VOIDmode, EXPAND_NORMAL); NULL_RTX, VOIDmode, EXPAND_NORMAL);
free_temp_slots (); free_temp_slots ();
/* Restore the original value so that it's correct the next
time we expand this function. */
TREE_VALUE (tail) = o[i];
} }
/* Detect modification of read-only values. /* Detect modification of read-only values.
(Otherwise done by build_modify_expr.) */ (Otherwise done by build_modify_expr.) */
......
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