------- Comment #3 from jakub at gcc dot gnu dot org 2010-07-26 09:28 ------- The testcase is invalid. Comparing pointers to different objects has undefined behavior. If you want to do something like this, you either need to cast to uintptr_t and do comparisons in that type, or hide where the pointers point to from the compiler (e.g. using inline-asm).
-- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45075