(expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode.
authorRichard Stallman <rms@gnu.org>
Sat, 6 Feb 1993 01:02:25 +0000 (01:02 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 6 Feb 1993 01:02:25 +0000 (01:02 +0000)
From-SVN: r3432

gcc/stmt.c

index a4f032372e340fdafd6a25ed6faa048f81ab5802..a615fce053a07877adad38e59821d5c3fc27fb49 100644 (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
        {