re PR middle-end/42667 (internal compiler error: in insert_into_preds_of_block, at...
authorRichard Guenther <rguenther@suse.de>
Sun, 10 Jan 2010 19:37:45 +0000 (19:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 10 Jan 2010 19:37:45 +0000 (19:37 +0000)
commitab996409bcd1b433b9428fe1b4a5ca5b8e66e6e4
tree65e7615616a5182e7423ac831a4eae0bcb5f6e58
parent8b6f089bcbf20653a5a0e85d4390fe3b74e21bfc
re PR middle-end/42667 (internal compiler error: in insert_into_preds_of_block, at tree-ssa-pre.c:3146)

2010-01-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/42667
* builtins.c (fold_builtin_strlen): Add type argument and
convert the resulting length to it.
(fold_builtin_1): Adjust.

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

From-SVN: r155791
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr42667.c [new file with mode: 0644]