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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Yong <[email protected]>:

https://gcc.gnu.org/g:1a612fbd16730628e5e71311a05636a2bad4f153

commit r17-6988-g1a612fbd16730628e5e71311a05636a2bad4f153
Author: Oleg Tolmatcev <[email protected]>
Date:   Tue Nov 17 22:16:40 2026 +0100

    lto-plugin: Use "ll" with mingw's C99 stdio [PR108644]

    On mingw the plugin printed and scanned 64-bit ids with "I64", which
    -Wformat rejects because mingw-w64 declares printf and scanf with
    gnu_printf and gnu_scanf formats.  Define __USE_MINGW_ANSI_STDIO, as
    gcc/config/i386/xm-mingw32.h does for GCC itself, so that "ll" works on
    every Windows runtime, and use "ll" unconditionally.

    lto-plugin/ChangeLog:

            PR other/108644
            * lto-plugin.c (__USE_MINGW_ANSI_STDIO): Define on mingw.
            (PRI_LL): Remove.
            (dump_symtab, process_symtab, process_symtab_extension): Use %llx.

    Signed-off-by: Oleg Tolmatcev <[email protected]>
    Signed-off-by: Jonathan Yong <[email protected]>

Reply via email to