From: Richard Kenner Date: Mon, 28 Dec 1992 11:09:13 +0000 (-0500) Subject: (get_inner_reference): Don't look at flag_volatile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f94cc92f8c4338318b81f101d185d99eef6ae11d;p=gcc.git (get_inner_reference): Don't look at flag_volatile. (expand_expr, case INDIRECT_REF, OFFSET_REF): Likewise. From-SVN: r2973 --- diff --git a/gcc/expr.c b/gcc/expr.c index 31b229876b1..6265f21c039 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2836,9 +2836,6 @@ get_inner_reference (exp, pbitsize, pbitpos, poffset, pmode, punsignedp, pvolati while (1) { - if (TREE_CODE (exp) == INDIRECT_REF && flag_volatile) - *pvolatilep = 1; - if (TREE_CODE (exp) == COMPONENT_REF || TREE_CODE (exp) == BIT_FIELD_REF) { tree pos = (TREE_CODE (exp) == COMPONENT_REF @@ -3676,7 +3673,7 @@ expand_expr (exp, target, tmode, modifier) || TREE_CODE (TREE_TYPE (exp2)) == RECORD_TYPE || TREE_CODE (TREE_TYPE (exp2)) == UNION_TYPE))) MEM_IN_STRUCT_P (temp) = 1; - MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp) || flag_volatile; + MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp); #if 0 /* It is incorrectto 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. */ @@ -3939,7 +3936,7 @@ expand_expr (exp, target, tmode, modifier) op0 = expand_expr (addr, NULL_RTX, VOIDmode, EXPAND_SUM); temp = gen_rtx (MEM, mode, memory_address (mode, op0)); MEM_IN_STRUCT_P (temp) = 1; - MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp) || flag_volatile; + MEM_VOLATILE_P (temp) = TREE_THIS_VOLATILE (exp); #if 0 /* It is incorrectto 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. */