aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2003-06-10 17:11:22 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2003-06-10 17:11:22 +0000
commitf80f73e192d1711711fd834072744396bf7754e7 (patch)
tree962fdbd886a3d37fd2f8698dcacdb9997085deae
parentdc952677438ef5015c59409c79cf36d9727f2787 (diff)
downloadgcc-f80f73e192d1711711fd834072744396bf7754e7.zip
gcc-f80f73e192d1711711fd834072744396bf7754e7.tar.gz
gcc-f80f73e192d1711711fd834072744396bf7754e7.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/calls.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5c68a99..195048f 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 a72bba6..ad18318 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,