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


> > > 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)


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