[commited] jit: Change printf specifiers for size_t to %zu

Petter Tomner tomner@kth.se
Sat Nov 27 16:02:48 GMT 2021


Hi!

I've pushed a fix for %ld as printf specifiers for size_t which made 32bit builds sad, as per
Gerald Pfeifers mail to the list: https://gcc.gnu.org/pipermail/jit/2021q4/001395.html

%ld changed to %zu in four places in libgccjit.c.

Please note that I considered this patch a "free for all" since it is trivial and rather annoying
on 32bit computers and I pushed without prior approval from the jit maintainer (D. Malcolm).

make check-jit runs cleanly on gnu-linux-debian x64 and in a x86 VM.

Regards, Petter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-jit-Change-printf-specifiers-for-size_t-to-zu.patch
Type: text/x-patch
Size: 1489 bytes
Desc: 0001-jit-Change-printf-specifiers-for-size_t-to-zu.patch
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20211127/ce582098/attachment.bin>


More information about the Jit mailing list