From c2722ef63b29f3ed9f0536e26cf756f902dee97f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 29 Sep 1996 19:04:49 -0400 Subject: [PATCH] (expand_expr, case COMPONENT_REF): Don't try to directly load a complex. From-SVN: r12867 --- gcc/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2