This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12150] [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]
- 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: 3 Sep 2003 16:46:58 -0000
- Subject: [Bug c/12150] [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]
- References: <20030903084134.12150.mattias@virtutech.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12150
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-03 16:46 -------
The older compilers did not look to see if the condition turned into true (or false) for every case,
the patch changed it so it would look to see if the condition turned into true (false) always.
Here is the link to the patch which caused this: <http://gcc.gnu.org/ml/gcc-patches/2002-04/
msg01547.html>.
It did not find if the code was dead at all (so it is not a regression in that sense).