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: C++ PATCH: Empty classes, yet again


On Mon, Oct 21, 2002 at 10:04:10PM -0700, Mark Mitchell wrote:
> I believe this problem will be fixed by the attached patch, which corrects
> yet another ABI bug involving empty classes.  Tested on i686-pc-linux-gnu,
> applied on the mainline.
> 
> 2002-10-21  Mark Mitchell  <mark@codesourcery.com>
> 
> 	* class.c (empty_base_at_nonzero_offset_p): New function.
> 	(layout_nonempty_base_or_field): Do not check for conflicts when
> 	laying out a virtual base using the GCC 3.2 ABI.
> 	(build_base_field): Correct checking for presence of empty classes
> 	at non-zero offsets when clearing CLASSTYPE_NEARLY_EMPTY_P.
> 
> 2002-10-21  Mark Mitchell  <mark@codesourcery.com>
> 
> 	* g++.dg/abi/vbase13.C: New test.
> 	* g++.dg/abi/vbase14.C: Likewise.

I no longer get unaligned access messages when running the C++ tests on
ia64-linux.

Janis


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