Altivec + 16 byte alignment
Neil Booth
neil@daikokuya.co.uk
Tue Feb 11 22:09:00 GMT 2003
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.
More information about the Gcc
mailing list