]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 32507, PRIx64 in error messages on 32-bit mingw
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:01:50 +0000 (22:31 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:01:50 +0000 (22:31 +1030)
commitb38cf91f230bc3892ab9c3deb4f1b6639c657c47
tree5cfd11814669a298c822cffe2eda3bc1ea1cad4c
parent5e04003fac2f15d18ec8c9167c139582fb897728
PR 32507, PRIx64 in error messages on 32-bit mingw

People, including me, had forgotten that the bfd_error_handler just
handled standard printf format strings, not MSC %I64 and suchlike.
Using PRIx64 and similar in errors does not work if the host compiler
headers define those formats as the Microsoft %I64 variety.  (We
handled %ll OK, editing it to %I64 on such hosts.)

PR 32507
* bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %I64 and %I32
in input strings if the host defines PRId64 as "I64d".
Edit %ll to %I64 on detecting PRId64 as "I64d" rather than on
a preprocessor define.
bfd/bfd.c