PR middle-end/77683 - ICE on %lf directive in format_floating in
authorMartin Sebor <msebor@redhat.com>
Wed, 28 Sep 2016 16:13:12 +0000 (16:13 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 28 Sep 2016 16:13:12 +0000 (10:13 -0600)
commit30dc6ee97026f393813f0a31f2294ac1d0898c56
treecffe601ef84e093361c9259fe2b62b76300fdd8f
parentc5a13998704d9dc8c5c9bf9467699a1af17ab0b4
PR middle-end/77683 - ICE on %lf directive in format_floating in

gcc/testsuite/ChangeLog:

PR middle-end/77683
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Add test cases.

gcc/ChangeLog:

PR middle-end/77683
* gimple-ssa-sprintf.c (format_integer): Fail gracefully when
length modifier is not expected.
(format_floating): Ignore l length modifier and fail gracefuly
when it isn't one of the other expected ones.

From-SVN: r240583
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c