From 2c4c436ae8f1a6c4035fc33b87dd83fdf566a61a Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 20 Sep 1993 21:24:17 +0000 Subject: [PATCH] (expand_expr): Handle flag_volatile here. From-SVN: r5375 --- gcc/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.30.2