summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>2001-11-16 04:40:11 +0000
committerStan Shebs <shebs@gcc.gnu.org>2001-11-16 04:40:11 +0000
commit38b3baaef415c904fba681f05f3ee44eb3d10ae6 (patch)
tree8d9981ea3929c5d4b5fe526b4c97f03405f3a7d4 /gcc/expr.c
parente790b36a7ccd314b353f037d00596c820abf59c4 (diff)
downloadgcc-38b3baaef415c904fba681f05f3ee44eb3d10ae6.tar.gz
* expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
From-SVN: r47081
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a06011ba9ed..bce6ba0bfdc 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7117,7 +7117,7 @@ expand_expr (exp, target, tmode, modifier)
/* If the field isn't aligned enough to fetch as a memref,
fetch it as a bit field. */
|| (mode1 != BLKmode
- && SLOW_UNALIGNED_ACCESS (mode1, MEM_ALIGN (op))
+ && SLOW_UNALIGNED_ACCESS (mode1, MEM_ALIGN (op0))
&& ((TYPE_ALIGN (TREE_TYPE (tem))
< GET_MODE_ALIGNMENT (mode))
|| (bitpos % GET_MODE_ALIGNMENT (mode) != 0)))