This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, PR43814] Assume function arguments of pointer type are aligned.
From: Maxim Kuvyrkov <maxim@codesourcery.com>
Date: Thu, 29 Sep 2011 07:40:55 +1300
> On 29/09/2011, at 7:35 AM, David Miller wrote:
>
>> From: Maxim Kuvyrkov <maxim@codesourcery.com>
>> Date: Thu, 29 Sep 2011 07:29:12 +1300
>>
>>> GLIBC patch to fix locale_t definition is attached.
>>
>> Isn't this going to result in byte loads being used to dereference
>> all locale_t pointers on targets like sparc and mips?
>
> Yes, that's the price for binary compatibility for comparing a pointer to -1. I just hope that no common program has locale functions on its critical path.
I personally don't think this is acceptable, critical path or not.