Commit f80f73e1 by Steve Ellcey Committed by Steve Ellcey

calls.c (expand_call): Convert structure_value_addr to Pmode if necessary.

	* calls.c (expand_call): Convert structure_value_addr to Pmode if
	necessary.

From-SVN: r67716
parent dc952677
2003-06-10 Steve Ellcey <sje@cup.hp.com>
* calls.c (expand_call): Convert structure_value_addr to Pmode if
necessary.
2003-06-10 Andrew Haley <aph@redhat.com> 2003-06-10 Andrew Haley <aph@redhat.com>
* langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
......
...@@ -3049,6 +3049,11 @@ expand_call (exp, target, ignore) ...@@ -3049,6 +3049,11 @@ expand_call (exp, target, ignore)
structure value. */ structure value. */
if (pass != 0 && structure_value_addr && ! structure_value_addr_parm) 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, emit_move_insn (struct_value_rtx,
force_reg (Pmode, force_reg (Pmode,
force_operand (structure_value_addr, force_operand (structure_value_addr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment