[PATCH] fix profiledbootstrap with -Werror=format-length (77753)

Martin Sebor msebor@gmail.com
Tue Sep 27 19:34:00 GMT 2016


The attached one line patch increases a local buffer size to
avoid an apparently justified (though in reality likely a false
positive) -Wformat-length warning in varasm.c.  The warning has
been reported to break profiledbootstrap on powerp64le (though
not ordinary bootstrap).

An arguably better solution would be to explicitly constrain
the range of the integer variable to that of valid priority values.
Unfortunately, as pointed out in bug 77721, due to the limitation
of the current VRP implementation, this isn't always reliable.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-77753.diff
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160927/991f6abb/attachment.bin>


More information about the Gcc-patches mailing list