On Fri, Jun 05, 2015 at 12:55:04PM +0400, Mikhail Maltsev wrote: > 05.06.2015 13:02, Ondřej Bílka writes: > > Also as I mentioned bugs before gcc now doesn't handle alignment well so > > it doesn't optimize following to zero for aligned code. > > > > align = ((uintptr_t) x) % 16; > > > That is because GCC is conservative and supports some non-ABI-compliant > memory allocators which only guarantee 8-byte alignment, but > Then adding these annotations wouldn't help much as one could interpose malloc and violate that, unless we rule out that it shouldn't be replaced by noncompilant one.
- Re: Builtin expansion versus headers optimization: Reducti... Andi Kleen
- Re: Builtin expansion versus headers optimization: Re... Mikhail Maltsev
- Re: Builtin expansion versus headers optimization... Ondřej Bílka
- Re: Builtin expansion versus headers optimization... Joseph Myers
- Re: Builtin expansion versus headers optimization: Re... Ondřej Bílka
- Re: Builtin expansion versus headers optimization... Jakub Jelinek
- Re: Builtin expansion versus headers optimiza... Ondřej Bílka
- Re: Builtin expansion versus headers optimization... Mikhail Maltsev
- Re: Builtin expansion versus headers optimiza... Ondřej Bílka
- Re: Builtin expansion versus headers optimization... Andi Kleen