This is the mail archive of the gcc@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: On alignment


On Tue, 25 Mar 2003 13:27:08 -0500, Jason Merrill <jason at redhat dot com> wrote:

> On Tue, 25 Mar 2003 11:22:13 -0500, "Kevin B. Hendricks" <kevin dot hendricks at sympatico dot ca> wrote:
>
>> If I am not mistaken, a similar approach was used by OpenOffice.org when trying to support 
>> both gcc 2.9.5X components and gcc 3.X components 
>
> Indeed, it looks like they're trying to do the same thing using the same
> technique that Andrew was.  Can anyone tell me whether they applied
> CPPU_GCC3_ALIGN to any long long or double fields?

The comment would appear to suggest otherwise:

// This pragma macro is appended to every first member of a struct, 
// iff the struct inherits from a base struct and the first member
// of this structure  is not a double or [unsigned] long long.

Sounds like they noticed and worked around this bug.  Which makes me more
inclined to go ahead and fix it.

Jason


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