From b141e5fbce8310e5d49b34364d735d259be541ae Mon Sep 17 00:00:00 2001 From: sje Date: Tue, 10 Jun 2003 17:11:22 +0000 Subject: * calls.c (expand_call): Convert structure_value_addr to Pmode if necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67716 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/calls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/calls.c') diff --git a/gcc/calls.c b/gcc/calls.c index a72bba6e33f..ad18318627b 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -3049,6 +3049,11 @@ expand_call (exp, target, ignore) structure value. */ if (pass != 0 && structure_value_addr && ! structure_value_addr_parm) { +#ifdef POINTERS_EXTEND_UNSIGNED + if (GET_MODE (structure_value_addr) != Pmode) + structure_value_addr = convert_memory_address + (Pmode, structure_value_addr); +#endif emit_move_insn (struct_value_rtx, force_reg (Pmode, force_operand (structure_value_addr, -- cgit v1.2.1