------- Comment #34 from jakub at gcc dot gnu dot org 2009-12-20 18:50 ------- It was warning too much, even about if (0) code, so it broke a lot of valid code with -Werror, including stuff like: #include <string.h> int f (char *s) { return strcmp (s, ""); } If a warning like this is to be done by the FE, it would need to be only queued in the IL and emitted only if it survived at least some initial DCE. Perhaps in a form of an artificial __builtin_warning, or something similar.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35652