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]

Re: i386 alignment tweaks...


> 
> > 	(DATA_ALIGNMENT, LOCAL_ALIGNMENT): Set alignment of QImode arrays
> > 	to 128.
> 
> This is wasteful.
I have only followed similar hunk of code in sparc.h.
Also docs seems to mention this:
`DATA_ALIGNMENT (TYPE, BASIC-ALIGN)'
...Another is to cause
 character arrays to be word-aligned so that `strcpy' calls that
 copy constants to character arrays can be done inline.

Having string 4 byte aligned is important for current strlen expander.
8/16 byte alignmet can be possibly used once we add MMX/SIMD support.

Is there some generic code ensuring such alignments of QImode arrays
or am I missing something else?
If this code is really only wastefull, is that same case for sparc.h
so can I send patch to remove it there too?

Honza
> 
> 
> 
> r~

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