HP-UX PA long double alignment change
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue Dec 3 11:51:00 GMT 2002
> 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)
More information about the Gcc-patches
mailing list