PR middle-end/78461 - [7 Regression] ICE: in operator+=
authorMartin Sebor <msebor@redhat.com>
Wed, 23 Nov 2016 16:44:16 +0000 (16:44 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 23 Nov 2016 16:44:16 +0000 (09:44 -0700)
commitaecc521b46ac451c0547d8693bfcfabfb3832401
tree3634901e3c572047408b87979874512cb0988c4c
parent1b3314ddb15e6e4007035d1f6f823650c9dc70b8
PR middle-end/78461 - [7 Regression] ICE: in operator+=

gcc/testsuite/ChangeLog:

PR middle-end/78461
* gcc.dg/tree-ssa/builtin-sprintf-4.c: New test.
* gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Adjust warning text.

gcc/ChangeLog:

PR middle-end/78461
* gimple-ssa-sprintf.c (format_string): Correct the maxima and
set the minimum number of bytes for an unknown string to zero.

From-SVN: r242769
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c