This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HP-UX IA64 patch for ILP32 mode


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]