From: Richard Stallman Date: Mon, 20 Sep 1993 21:24:17 +0000 (+0000) Subject: (expand_expr): Handle flag_volatile here. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c4c436ae8f1a6c4035fc33b87dd83fdf566a61a;p=gcc.git (expand_expr): Handle flag_volatile here. From-SVN: r5375 --- diff --git a/gcc/expr.c b/gcc/expr.c index 7f22cb1220e..33dccf4f0e0 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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. */