From: Richard Stallman Date: Sat, 17 Oct 1992 07:23:29 +0000 (+0000) Subject: (get_inner_reference): If flag_volatile, treat every INDIRECT_REF as volatile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=037080855f27408b7284741499e676361fe2187d;p=gcc.git (get_inner_reference): If flag_volatile, treat every INDIRECT_REF as volatile. From-SVN: r2499 --- diff --git a/gcc/expr.c b/gcc/expr.c index 84046a6664e..a9c6ff1c711 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2807,6 +2807,9 @@ 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