This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: IA64 HP-UX patch for C++ (Modified)
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: mark at codesourcery dot com, rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 13:24:53 -0700 (PDT)
- Subject: 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;
}