aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-17 07:23:29 +0000
committerRichard Stallman <rms@gnu.org>1992-10-17 07:23:29 +0000
commit037080855f27408b7284741499e676361fe2187d (patch)
tree9e22f9567d736857820503706379c0473440c98d /gcc
parenteda5fa7b7e7bb60c31a39ac8e9de1ddf30d67724 (diff)
downloadgcc-037080855f27408b7284741499e676361fe2187d.zip
gcc-037080855f27408b7284741499e676361fe2187d.tar.gz
gcc-037080855f27408b7284741499e676361fe2187d.tar.bz2
(get_inner_reference): If flag_volatile, treat every INDIRECT_REF as volatile.
From-SVN: r2499
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 84046a6..a9c6ff1 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