This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2007 17:47:27 -0000
- Subject: [Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement
- References: <bug-31236-14260@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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