[Bug c/12150] warning in dead code (comparison is always false) [regression]

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 3 11:31:00 GMT 2003


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 ***



More information about the Gcc-bugs mailing list