This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]