This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: [PATCH] Java: Fix alignment of CNI classes


> 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


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