[PATCH] make -Wformat-overflow consistent between data models

Martin Sebor msebor@gmail.com
Sat Feb 23 03:00:00 GMT 2019


A few tests recently added for PR 88993 introduced an assumption
on the host compiler's data model that breaks between ILP32 and
LP64, causing failures test run failures
(see https://gcc.gnu.org/ml/gcc-patches/2019-02/msg01867.html).
Rather than avoiding the problem in the tests the attached patch
removes the data model assumption from the sprintf pass itself,
making the warnings emitted by the pass consistent regardless.

Bootstrapped and tested on x86_64-linux, and smoke-tested with
an i386-linux GCC.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-printf-excess-width.diff
Type: text/x-patch
Size: 3026 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190223/258ca0a8/attachment.bin>


More information about the Gcc-patches mailing list