This is the mail archive of the gcc@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: Semi-Latent Bug in tree vectorizer


On Fri, Apr 08, 2005 at 07:25:37PM +0200, Jakub Jelinek wrote:
> On Fri, Apr 08, 2005 at 10:11:33AM -0700, Joe Buck wrote:
> > The problem, then, is that there's no way for the user to specify
> > that we have an array whose beginning has, say, 16-byte alignment,
> > but that after that, the elements have their ordinary sizes (meaning
> > that subsequent elements are not aligned).
> 
> We do.
> char array[32] __attribute__ ((__aligned__ (16)));
> 
> Tried HEAD/4.0/3.4/3.2/2.96-RH and it works in all of them.

But if an array is passed to a function, it decays to a pointer.  How do
we declare the type of the pointer, so we can write a function that works
on, and is optimized for, an aligned array?  That's what I meant when I
said I didn't know how to declare it.



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