summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-08 13:10:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-08 13:10:00 +0000
commitddf4ad756fc84af46220f00817708143416ed55a (patch)
treeba1b8d1af8c7165a8360784aadc7676cbba1be34 /gcc/expr.c
parent19e538c691735bcf9cf740ff9d1c4accf2f4bf48 (diff)
downloadppe42-gcc-ddf4ad756fc84af46220f00817708143416ed55a.tar.gz
ppe42-gcc-ddf4ad756fc84af46220f00817708143416ed55a.zip
* expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
passed in multiple non-contiguous locations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37316 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 22ed6ad3135..b28db7f67b8 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -8371,7 +8371,8 @@ expand_expr (exp, target, tmode, modifier)
}
else if (GET_CODE (op0) == REG || GET_CODE (op0) == SUBREG
- || GET_CODE (op0) == CONCAT || GET_CODE (op0) == ADDRESSOF)
+ || GET_CODE (op0) == CONCAT || GET_CODE (op0) == ADDRESSOF
+ || GET_CODE (op0) == PARALLEL)
{
/* If this object is in a register, it must be not
be BLKmode. */
@@ -8379,7 +8380,14 @@ expand_expr (exp, target, tmode, modifier)
rtx memloc = assign_temp (inner_type, 1, 1, 1);
mark_temp_addr_taken (memloc);
- emit_move_insn (memloc, op0);
+ if (GET_CODE (op0) == PARALLEL)
+ /* Handle calls that pass values in multiple non-contiguous
+ locations. The Irix 6 ABI has examples of this. */
+ emit_group_store (memloc, op0,
+ int_size_in_bytes (inner_type),
+ TYPE_ALIGN (inner_type));
+ else
+ emit_move_insn (memloc, op0);
op0 = memloc;
}
OpenPOWER on IntegriCloud