This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16554] compare on address of global variable always evals to non-zero
- 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: 15 Jul 2004 00:34:03 -0000
- Subject: [Bug c/16554] compare on address of global variable always evals to non-zero
- References: <20040714232417.16554.paul_r_nash@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-15 00:34 -------
You want to mark the global variable as weak to change how gcc gets rid of the if.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16554