summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-09-29 19:04:49 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-09-29 19:04:49 -0400
commitc2722ef63b29f3ed9f0536e26cf756f902dee97f (patch)
tree1f226abf87841585cd723db81d8e0bb2e8057550 /gcc/expr.c
parent28eb1cb8c354240671f8651f7ff7e1cf7356e6e3 (diff)
downloadgcc-c2722ef63b29f3ed9f0536e26cf756f902dee97f.tar.gz
(expand_expr, case COMPONENT_REF): Don't try to directly load a complex.
From-SVN: r12867
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index cc47e1e0c7e..c065e76e7b9 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5518,7 +5518,9 @@ expand_expr (exp, target, tmode, modifier)
|| GET_CODE (op0) == REG || GET_CODE (op0) == SUBREG
|| (modifier != EXPAND_CONST_ADDRESS
&& modifier != EXPAND_INITIALIZER
- && ((mode1 != BLKmode && ! direct_load[(int) mode1])
+ && ((mode1 != BLKmode && ! direct_load[(int) mode1]
+ && GET_MODE_CLASS (mode) != MODE_COMPLEX_INT
+ && GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT)
/* If the field isn't aligned enough to fetch as a memref,
fetch it as a bit field. */
|| (SLOW_UNALIGNED_ACCESS