[PATCH, PR43814] Assume function arguments of pointer type are aligned.
David Miller
davem@davemloft.net
Wed Sep 28 19:56:00 GMT 2011
From: Maxim Kuvyrkov <maxim@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.
More information about the Gcc-patches
mailing list