From 6a5bbbe6b815b84e45e0a017b087c2d92516bc82 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 6 Feb 1993 01:02:25 +0000 Subject: [PATCH] (expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode. From-SVN: r3432 --- gcc/stmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.30.2