summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-10 11:29:25 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-10 11:29:25 +0000
commitfb2d4326121d0f3caec696d059e8c7796b489129 (patch)
tree8013744ac2638e7b027c88494794836063ee23ce /gcc/expr.c
parent9c5033bb9855902037ef73057c72e53d08520688 (diff)
downloadgcc-fb2d4326121d0f3caec696d059e8c7796b489129.tar.gz
* expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
extraction if no direct load if either EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43897 138bc75d-0d04-0410-961f-82ee72b054a4
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 a6712826a33..3786ee9849b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7137,7 +7137,9 @@ expand_expr (exp, target, tmode, modifier)
|| GET_CODE (op0) == REG || GET_CODE (op0) == SUBREG
|| (mode1 != BLKmode && ! direct_load[(int) mode1]
&& GET_MODE_CLASS (mode) != MODE_COMPLEX_INT
- && GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT)
+ && GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT
+ && modifier != EXPAND_CONST_ADDRESS
+ && modifier != EXPAND_INITIALIZER)
/* If the field isn't aligned enough to fetch as a memref,
fetch it as a bit field. */
|| (mode1 != BLKmode