re PR middle-end/66345 (internal compiler error: Segmentation fault)
authorMarek Polacek <polacek@redhat.com>
Tue, 2 Jun 2015 09:13:29 +0000 (09:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 2 Jun 2015 09:13:29 +0000 (09:13 +0000)
commitaf9db3a7b0f36f8027a4781abab31d87dfa44416
tree49e04b35579b2584d5e963ee9874be7c64468485
parentfc7e20fd7a0653b19bddb7a15973c32959402172
re PR middle-end/66345 (internal compiler error: Segmentation fault)

PR middle-end/66345
* gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
get_maxval_strlen does not produce an INTEGER_CST.

* gcc.dg/torture/pr66345.c: New test.

From-SVN: r224016
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66345.c [new file with mode: 0644]