[Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 17 17:47:00 GMT 2007
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-03-17 17:47 -------
Well linker scripts are already non portable and not mentioned in the standard
and you are violating the C/C++ standards if the address of a variable is NULL
(0) :).
Also -O2 with -DUSETEMP gives the same results as without it so it is not
inconsistent, even the code is equalivant, the code is not the same when it
comes to without optimization :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31236
More information about the Gcc-bugs
mailing list