(expand_expr): Handle flag_volatile here.
authorRichard Stallman <rms@gnu.org>
Mon, 20 Sep 1993 21:24:17 +0000 (21:24 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 20 Sep 1993 21:24:17 +0000 (21:24 +0000)
From-SVN: r5375

gcc/expr.c

index 7f22cb1220e4a70a7757587837dcd2f576bd6e91..33dccf4f0e09b02e32d9a371f830ccb3f8d99f05 100644 (file)
@@ -3893,7 +3893,7 @@ expand_expr (exp, target, tmode, modifier)
                    || TREE_CODE (TREE_TYPE (exp2)) == UNION_TYPE
                    || TREE_CODE (TREE_TYPE (exp2)) == QUAL_UNION_TYPE)))
          MEM_IN_STRUCT_P (temp) = 1;
-       MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp);
+       MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp) | flag_volatile;
 #if 0 /* It is incorrect to set RTX_UNCHANGING_P here, because the fact that
         a location is accessed through a pointer to const does not mean
         that the value there can never change.  */