re PR c/63554 (ice in "execute_todo, at passes.c:1797" with -O3)
authorRichard Biener <rguenther@suse.de>
Thu, 16 Oct 2014 12:25:52 +0000 (12:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Oct 2014 12:25:52 +0000 (12:25 +0000)
commit745583f9539f78be7db1d8c51f15cae7a5f80f03
tree3075787c7fa50bcb39399d99d978e00cb128d266
parentb7359edc20cae432bb68f5f897ba485f34de6f9a
re PR c/63554 (ice in "execute_todo, at passes.c:1797" with -O3)

2014-10-16  Richard Biener  <rguenther@suse.de>

PR middle-end/63554
* builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
(fold_builtin_strncat_chk): Move ...
* gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
(gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.

* gcc.dg/torture/pr63554.c: New testcase.

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