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]

Re: IA64 HP-UX patch for C++ (Modified)


Richard,

Do you want to add anything before I change this?  Here is the patch
that I will apply to address Mark's concern.  This is similar to the
original change I had except it uses null_pointer_node instead of
size_zero_node.

Steve Ellcey
sje@cup.hp.com


2002-10-01  Steve Ellcey  <sje@cup.hp.com>

	* cp/class.c (build_vtbl_initializer): Change build_c_cast
	to build1.


*** gcc.orig/gcc/cp/class.c	Tue Oct  1 13:12:39 2002
--- gcc/gcc/cp/class.c	Tue Oct  1 13:22:51 2002
*************** build_vtbl_initializer (binfo, orig_binf
*** 7617,7624 ****
  
  	  for (i = 1; i < TARGET_VTABLE_DATA_ENTRY_DISTANCE; ++i)
  	    add = tree_cons (NULL_TREE,
! 			     build_c_cast (vtable_entry_type,
! 				     size_zero_node),
  			     add);
  	  *prev = add;
  	}
--- 7617,7624 ----
  
  	  for (i = 1; i < TARGET_VTABLE_DATA_ENTRY_DISTANCE; ++i)
  	    add = tree_cons (NULL_TREE,
! 			     build1 (NOP_EXPR, vtable_entry_type,
! 				     null_pointer_node),
  			     add);
  	  *prev = add;
  	}


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