On 4/11/19 6:27 AM, Jakub Jelinek wrote:
> Hi!
> 
> These 3 *.opt messages are printed using:
> opts-common.c:        error_at (loc, option->missing_argument_error, opt);
> opts-common.c:        error_at (loc, e->unknown_error, arg);
> opts-common.c:    warning_at (loc, 0, decoded->warn_message, opt);
> and so they do support the various gcc-internal-format format string
> specifiers like %<, %>, %qs etc.
> 
> The following patch tweaks exgettext so that it marks them as such
> and also adjusts c.opt so that it passes
> contrib/check-internal-format-escaping.py after such a change.
> 
> Tested on x86_64-linux using make gcc.pot, eyeballing the resulting file
> and trying ./xgcc -B ./ -S hello.c -fhandle-exceptions
> 
> Ok for trunk?
> 
> 2019-04-11  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR translation/90041
>       * po/exgettext: Print MissingArgError, UnknownError or Warn
>       *.opt argument using error or warning instead of _ to mark it
>       as gcc-internal-format.
> 
>       * c.opt (-fhandle-exceptions): Use %< and %> around option names
>       in the Warn diagnostics.
OK
jeff

Reply via email to