--- 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
--- Comment #2 from ktietz at gcc dot gnu dot org 2010-07-26 08:52 ---
The test fails for me for any type != char for section variables.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45075
--- Comment #1 from ktietz at gcc dot gnu dot org 2010-07-26 08:43 ---
Version used
$ /usr/local/bin/x86_64-pc-mingw32-gcc.exe -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/x86_64-pc-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-mingw32/4.6.0/lto-wrapper.exe
Targ