aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-28 08:11:57 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-28 08:11:57 +0000
commit971e7f12a002fa222bad8aab03704bba02d74a04 (patch)
tree3e06ded62d22bf97b2e562e19f2c28c0942e365a /gcc/expr.c
parent452a353abbbac5fa5e03ebc241686eb18256fe9b (diff)
PR rtl-optimization/77919
* expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into MEM if mode1 is not a complex mode. * g++.dg/torture/pr77919.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241642 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 38ef07c0a0f..6420e278f3d 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -10421,7 +10421,8 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode,
if (GET_CODE (op0) == CONCAT && !must_force_mem)
{
if (bitpos == 0
- && bitsize == GET_MODE_BITSIZE (GET_MODE (op0)))
+ && bitsize == GET_MODE_BITSIZE (GET_MODE (op0))
+ && COMPLEX_MODE_P (mode1))
{
if (reversep)
op0 = flip_storage_order (GET_MODE (op0), op0);