https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90149

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-04-18
                 CC|                            |msebor at gcc dot gnu.org
          Component|tree-optimization           |translation
     Ever confirmed|0                           |1

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
FWIW, I'm working on a -Wformat enhancement to detect this and some of the
other translation problems you have pointed out.  I'm also going through
gcc.pot and looking for patterns like this to detect myself but having them
pointed out by someone actually doing the translation is very helpful.  Thank
you!

As for this specific error (and others like it) in tree-cfg.c and a few other
files, they are issued for failures detected by internal consistency checks
that ultimately do trigger an internal compiler error.  In my patch I disable
the detection of these problems via #pragma GCC diagnostic ignored
"-Wformat-diag" but another option is to simply fix them:

      error ("%qs of non-mode-precision operand", "BIT_FIELD_REF");

The challenge with doing it that it would changing a fair number of messages
and in some cases, make the format strings look pretty cryptic (by replacing
multiple strings with %s directives).

Reply via email to