This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Java: Fix alignment of CNI classes
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: 05 Mar 2003 10:37:59 -0800
- Subject: Re: [PATCH] Java: Fix alignment of CNI classes
- References: <200303051630.h25GUIV05960@cuddles.cambridge.redhat.com>
> So, for the time being I'm going to force CNI headers to align the
> "old" way by adding explicit alignment. Like this:
>
> class bar : foo
> {
> short __attribute__((aligned(__alignof__(foo)))) j;
> }
>
> This should work, right?
Yes, it should.
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com