diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/calls.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c68a993de4..195048fe32b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. 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, |