Commit 6a5bbbe6 by Richard Stallman

(expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode.

From-SVN: r3432
parent 266f9541
......@@ -1326,7 +1326,9 @@ expand_expr_stmt (exp)
if (last_expr_value != 0 && GET_CODE (last_expr_value) == MEM
&& TREE_THIS_VOLATILE (exp))
{
if (TYPE_MODE (TREE_TYPE (exp)) != BLKmode)
if (TYPE_MODE (TREE_TYPE (exp)) == VOIDmode)
;
else if (TYPE_MODE (TREE_TYPE (exp)) != BLKmode)
copy_to_reg (last_expr_value);
else
{
......
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