PR tree-optimization/86114 - ICE in gimple_fold_builtin_strlen with an invalid call...
authorMartin Sebor <msebor@redhat.com>
Wed, 13 Jun 2018 20:29:04 +0000 (20:29 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 13 Jun 2018 20:29:04 +0000 (14:29 -0600)
commita7bf6c088934ef39a937069fca7408c7f540c551
tree07550cd4b992b1eb84936c13801494f6fe66c2e1
parenteb04ee1d0f23b14c251a850f2a26429d324b1f6f
PR tree-optimization/86114 - ICE in gimple_fold_builtin_strlen with an invalid call to strnlen

gcc/testsuite/ChangeLog:

PR tree-optimization/86114
* gcc.dg/pr86114.c: New test.

gcc/ChangeLog:

PR tree-optimization/86114
* gimple-fold.c (gimple_fold_builtin_strlen): Only handle LHS
of integer types.
* tree-ssa-strlen.c (maybe_set_strlen_range): Same.

From-SVN: r261567
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86114.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c