Possible errors in call to output_operand_lossage?
Joseph S. Myers
jsm28@cam.ac.uk
Fri Feb 1 17:50:00 GMT 2002
On Fri, 1 Feb 2002, Richard Henderson wrote:
> On Sat, Feb 02, 2002 at 12:03:49AM +0100, Philipp Thomas wrote:
> > The following calls to output_operand_lossage seem be wrong as they
> > use '%' instead of '%%' and thus xgettext will mark them as C format and
> > then msgfmt will fail because things like %A are no valid format specifiers.
>
> They are not printf format. Existing uses are correct.
Shouldn't we fix gettext so particular functions can be marked as
non-C-format functions, so it doesn't then mark any of the msgid arguments
to those functions as c-format, rather than marking every call?
Anyway, %A is a valid printf format, albeit not being used as a printf
format here. If it can't handle valid C99 formats, what does it think of
the printf extensions used in GCC's diagnostics?
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc-bugs
mailing list