This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
HP-UX IA64 patch for ILP32 mode
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 May 2003 09:56:04 -0700 (PDT)
- Subject: HP-UX IA64 patch for ILP32 mode
- Reply-to: sje at cup dot hp dot com
This is a patch that allows me to bootstrap HP-UX IA64 and build the C++
library. I don't know why I didn't need it before but some post 3.3
change must have triggered it.
OK to check in?
Steve Ellcey
sje@cup.hp.com
2003-05-19 Steve Ellcey <sje@cup.hp.com>
* calls.c (expand_call): Convert structure_value_addr to Pmode if
necessary.
*** gcc.orig/gcc/calls.c Fri May 16 14:48:41 2003
--- gcc/gcc/calls.c Mon May 19 09:53:45 2003
*************** expand_call (exp, target, ignore)
*** 3007,3012 ****
--- 3007,3017 ----
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,