On Thu, Jan 04, 2018 at 08:50:30AM -0700, Martin Sebor wrote: > On 01/04/2018 01:30 AM, Jakub Jelinek wrote: > > On Wed, Jan 03, 2018 at 05:00:41PM -0700, Martin Sebor wrote: > > > This is an example where having a solution for bug 78014 would > > > be helpful. I.e., a -Wformat checker to help enforce the use > > > > No, because %zu isn't portable enough for all the hosts we support. > > GCC could mitigate all these portability pitfalls by providing > its own versions of the functions (I suggested gcc_printf the > last time we discussed this subject). libiberty already does > this for a small subset of the portability problems in some of > the standard functions (including vsprintf), so this would be > a natural extension of that approach.
Ugh, no. Jakub