This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21479] optimizer removes incorrectly variable comparision in if clause
- From: "marcus at jet dot franken dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2005 06:31:36 -0000
- Subject: [Bug target/21479] optimizer removes incorrectly variable comparision in if clause
- References: <20050509222003.21479.chaac@nic.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From marcus at jet dot franken dot de 2005-05-10 06:31 -------
see comment #1 ...
you already derefenced the pointer in ppv (in the line
unsigned long lv = *lvp;
)
so the compiler assumes that anohter NULL ptr check is not needed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21479