On 09/27/2016 10:38 PM, Jeff Law wrote:
On 09/27/2016 01:30 PM, Martin Sebor wrote:
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
gcc-77753.diff
PR bootstrap/77753 - [7 Regression] broken profiledbootstrap due to
-Werror=format-length in varasm.c:1573
gcc/ChangeLog:
2016-09-27 Martin Sebor <mse...@redhat.com>
PR bootstrap/77753
* varasm.c (assemble_addr_to_section): Increase local buffer size.
OK.
WRT 77721, could you add that test to the testsuite, but xfailed?
Sure. Done in r240595.
Martin