PR middle-end/91599 - GCC does not say where warning is happening
authorMartin Sebor <msebor@redhat.com>
Fri, 30 Aug 2019 17:49:17 +0000 (17:49 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 30 Aug 2019 17:49:17 +0000 (11:49 -0600)
commit648af1684557e24e54a67b95b57fae2646cc2b56
tree233e3d85c85e847a57c7720dcdc18a04a2f5d079
parent5d69df7e9292522d00100b79f84a982359ed8142
PR middle-end/91599 - GCC does not say where warning is happening

gcc/ChangeLog:

PR middle-end/91599
* tree-ssa-strlen.c (handle_store): Use a fallback location if
the statement doesn't have one.
* gimple-pretty-print.c (percent_G_format): Same.

gcc/testsuite/ChangeLog:

PR middle-end/91599
* gcc.dg/Wstringop-overflow-16.c: New test.

From-SVN: r275211
gcc/ChangeLog
gcc/gimple-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstringop-overflow-16.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c