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: HP-UX PA long double alignment change


> It appears that the long double type is aligned on an 8 byte boundry,
> not a 16 byte one, by the HP compiler when in 32 bit mode.  This
> generally shouldn't matter to GCC but I did have a problem if I passed a
> structure containing a char field followed by a long double field
> between HP and GNU.  I would like to use ADJUST_FIELD_ALIGN to fix
> this.  I think that field alignment in structures is the only place the
> alignment difference matters for mixing objects from the two compilers.

Oops, I see that I introduced this problem when I bumped BIGGEST_ALIGMENT
to 128 bits last February.  This was required to obtain 128-bit alignment
for the ldcw instruction.

Thanks for spotting this,
Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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