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
This commit is contained in:
Steve Ellcey 2003-06-10 17:11:22 +00:00 committed by Steve Ellcey
parent dc95267743
commit f80f73e192
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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>
* langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.

View file

@ -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,