This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Altivec + 16 byte alignment
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 11 Feb 2003 22:09:14 +0000
- Subject: Re: Altivec + 16 byte alignment
- References: <10302112208.AA21555@vlsi1.ultra.nyu.edu>
Richard Kenner wrote:-
> > struct foo {
> > int x __attribute__((aligned (512)));
> > }
> >
> > which might, or might not, end up on the stack.
>
> You could diagnose that when the object of that type is declared, just
> like we have to make other checks (particularly in C++) at that time.
>
> That won't work for Ada, where you have to give the error on the type
> definition if you can't support the type in all valid contexts.
Exactly, but now it seems *you're* the one arguing for putting the check
in the front end.
Neil.