OSDN Git Service

* calls.c (expand_call): Convert structure_value_addr to Pmode if
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jun 2003 17:11:22 +0000 (17:11 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jun 2003 17:11:22 +0000 (17:11 +0000)
necessary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67716 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/calls.c

index 5c68a99..195048f 100644 (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.
index a72bba6..ad18318 100644 (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,