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: [csl-sol210] Patch to disable ldd and std for 32-bit SPARC


> > one I was given is
> >
> > struct {
> >     int32_t x;
> >     int32_t y;
> >     double d;
> > };
> >
> > where storing into x and y should not use std even though the structure
> > should be 8-byte-aligned.
>
> Huh.  Odd, since it's not like we won't trap on the double if we tried
> to use that structure unaligned.

All the more that 'd' will be loaded with the "same" ldd insn. :-)

-- 
Eric Botcazou


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