This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX PA long double alignment change
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: sje at cup dot hp dot com (Steve Ellcey)
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Tue, 3 Dec 2002 17:11:40 -0500 (EST)
- Subject: Re: HP-UX PA long double alignment change
> > > I think that field alignment in structures is the only place the
> > > alignment difference matters for mixing objects from the two compilers.
> >
> > Nope. Address calculations can use the known alignment of
> > the address to make simplificatinos. I suggest you really
> > reduce the alignment of long double.
>
> Does this mean I need to set both DATA_ALIGNMENT and ADJUST_FIELD_ALIGN?
> I thought if I set DATA_ALIGNMENT I wouldn't need ADJUST_FIELD_ALIGN but
> it doesn't seem to be working that way.
>From my reading of the documentation, I think you need both.
I wonder if GET_MODE_ALIGNMENT could be redefined?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)