From: Richard Stallman Date: Sat, 6 Feb 1993 01:02:25 +0000 (+0000) Subject: (expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a5bbbe6b815b84e45e0a017b087c2d92516bc82;p=gcc.git (expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode. From-SVN: r3432 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index a4f032372e3..a615fce053a 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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 {