David,

To summarize, your opinion seems to be to not enable the optimization by 
default, correct?

Thank you,

--
Maxim Kuvyrkov
CodeSourcery / Mentor Graphics


On 29/09/2011, at 7:48 AM, David Miller wrote:

> From: Maxim Kuvyrkov <ma...@codesourcery.com>
> Date: Thu, 29 Sep 2011 07:45:17 +1300
> 
>> OK.  Do you have an alternative suggestion that would fix non-portable use 
>> of locale_t?
> 
> Don't optimize something that is invalidated by a quite common practice?
> 
> What about people who encode invalid pointers with "0xdeadbeef", do we need
> to audit every source tree that does this too?  This invalidates the
> optimization's preconditions as well.
> 
> You're not going to eradicate all the code in the world which uses unaligned
> constants to encode pointers to make them have special meanings in certain
> situations.
> 
> We use the "-1" thing in the Linux kernel too I believe.  I'd go so far as
> to say this kind of thing is pervasive.
> 
> 

Reply via email to