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

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Sep 5 07:06: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



------- Additional Comments From gdr at integrable-solutions dot net  2003-09-05 07:06 -------
Subject: Re:  [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]

"mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| If the user does not want warnings in code that is unreachable, that
| code should be #ifdef'd out on platforms that are unreachable.

Hey, this would take us away from 

   if (HAVE_FEATURE)
     {
     }
   else
    {
    }

which has been advocated with good reasons.

-- Gaby



More information about the Gcc-bugs mailing list