aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-10 09:51:54 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-10 09:51:54 -0500
commit05019f83a3c585af22a1b275c71b3bc8239cd552 (patch)
treec7571eadc0f5b7478d2c1a94ad3ccfdefea68203
parent07604beb82888d339e51e31e818c04693ce270e7 (diff)
downloadgcc-05019f83a3c585af22a1b275c71b3bc8239cd552.zip
gcc-05019f83a3c585af22a1b275c71b3bc8239cd552.tar.gz
gcc-05019f83a3c585af22a1b275c71b3bc8239cd552.tar.bz2
(expand_expr, case COMPONENT_REF): If result is BLKmode, use that to
access object too. From-SVN: r10697
-rw-r--r--gcc/expr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 7af6750..dce2b3b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -4889,6 +4889,11 @@ expand_expr (exp, target, tmode, modifier)
return op0;
}
+ /* If the result is BLKmode, use that to access the object
+ now as well. */
+ if (mode == BLKmode)
+ mode1 = BLKmode;
+
/* Get a reference to just this component. */
if (modifier == EXPAND_CONST_ADDRESS
|| modifier == EXPAND_SUM || modifier == EXPAND_INITIALIZER)