This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: Fix newabi layout bug
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH: Fix newabi layout bug
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 21 Mar 2000 14:36:31 -0800
- Organization: CodeSourcery, LLC
Kenner pointed out this buglet in the new empty-class layout code in
private email.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-03-21 Mark Mitchell <mark@codesourcery.com>
* class.c (build_base_field): Fix thinko in computation of binfo
offsets.
Index: class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/class.c,v
retrieving revision 1.274
diff -c -p -r1.274 class.c
*** class.c 2000/03/21 18:10:42 1.274
--- class.c 2000/03/21 20:14:26
*************** build_base_field (rli, binfo, empty_p, b
*** 4298,4304 ****
{
/* That didn't work. Now, we move forward from the next
available spot in the class. */
! propagate_binfo_offsets (binfo, size_int (rli->const_size));
while (1)
{
if (!dfs_walk (binfo, dfs_search_base_offsets,
--- 4298,4305 ----
{
/* That didn't work. Now, we move forward from the next
available spot in the class. */
! propagate_binfo_offsets (binfo,
! size_int (rli->const_size / BITS_PER_UNIT));
while (1)
{
if (!dfs_walk (binfo, dfs_search_base_offsets,