Andrew Haley <[EMAIL PROTECTED]> wrote: > > > public: > > > long long __attribute__((aligned(__alignof__( ::java::lang::Object )))) > > l; > > > > I don't recall the exact details, but I have fixed a couple of bugs about > > the use of __alignof__ and attribute aligned on members of classes (maybe > > templates only?). Are you positive this attribute declaration *does* have > an > effect at all in 3.4? > > It seems to be the other way around. > > The attribute declaration does have an effect in 3.4 -- the offset > changes from 52 to 56 -- but it does not have any effect in 4.0, and > this is what breaks my code.
Is __alignof__( ::java::lang::Object ) the same under 3.4 and 4.0 in the first place? My fixes were to parse more attributes, not less. So this has to be unrelated to my patches. I suggest you file a bugreport in Bugzilla, and mark it as ABI breaking. It should get fixed before 4.0 gets out. -- Giovanni Bajo