PR tree-optimization/88659 - ICE in maybe_warn_nonstring_arg
authorMartin Sebor <msebor@redhat.com>
Fri, 4 Jan 2019 03:13:33 +0000 (03:13 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 4 Jan 2019 03:13:33 +0000 (20:13 -0700)
commitdf161fc28087971e5f6b0696c2ae7826a38d9a73
treea8b55b78fc5535fbf204bc6173c437999fc14a0e
parent7880e17390e2e4af1cd8b2264d37b21960f2d1f0
PR tree-optimization/88659 - ICE in maybe_warn_nonstring_arg

gcc/ChangeLog:
* calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.

gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-truncation-6.c: New test.

From-SVN: r267569
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstringop-truncation-6.c [new file with mode: 0644]