[Bug c/99288] New: xgettext does not get HOST_WIDE_INT_PRINT_UNSIGNED

roland.illig at gmx dot de gcc-bugzilla@gcc.gnu.org
Fri Feb 26 14:15:22 GMT 2021


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

            Bug ID: 99288
           Summary: xgettext does not get HOST_WIDE_INT_PRINT_UNSIGNED
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

gcse.c says:
>     warning (OPT_Wdisabled_optimization,
> 	       "%s: %d basic blocks and %d registers; "
> 	       "increase %<--param max-gcse-memory%> above "
> 	       HOST_WIDE_INT_PRINT_UNSIGNED,
> 	       pass, n_basic_blocks_for_fn (cfun), max_reg_num (),
> 	       memory_request / 1024);

HOST_WIDE_INT_PRINT_UNSIGNED is a host-dependent string literal that is
resolved by the C preprocessor. When xgettext scans the source code, it does
not notice this and generates:

> msgid ""
> "%s: %d basic blocks and %d registers; increase %<--param max-gcse-memory%> "
> "above "

The placeholder at the end of the sentence is missing, which means that this
message cannot be translated into other languages right now.


More information about the Gcc-bugs mailing list