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

From-SVN: r3432
This commit is contained in:
Richard Stallman 1993-02-06 01:02:25 +00:00
parent 266f95411b
commit 6a5bbbe6b8

View File

@ -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
{