This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12150] 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 11:31:41 -0000
- Subject: [Bug c/12150] 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
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-03 11:31 -------
>From Phil's regression hunter: Search converges between 2002-04-21-trunk (#74) and 2002-04-
28-trunk (#75).
It is caused by this patch:
* c-common.c (shorten_compare): Simplfy conditions leading to
the generation of a warning.
But again it is not really a regression since the code did not warn about the code when it was not
in dead code, sorry.
And also it is warning about the dead code before GCC figures that it is dead code.
*** This bug has been marked as a duplicate of 4210 ***