[PATCH] Introduce __BIGGEST_ALIGNMENT__ macro

Jonathan Roelofs jonathan at codesourcery.com
Sat Dec 13 14:38:58 PST 2014



On 12/13/14 3:06 PM, mats petersson wrote:
> In gcc, the value does not change with -mno-sse or -mno-sse2, or based on
> -m32 or -m64.
"It doesn't" != "It won't", and that's something that we need to be very careful 
about when defining things like this.
> Same applies in my definition. It is simply a case of "this
> is the architecture's largest necessary alignment for code correctness"
> (AVX prefers 32-byte alignment, but only required to be 16-byte aligned -
> with 32-byte alignment, it apparently works better if it doesn't straddle
> the cache-lines).
>
> --
> Mats
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-commits mailing list