re PR middle-end/78153 (strlen return value can be assumed to be less than PTRDIFF_MAX)
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Wed, 23 Nov 2016 18:04:14 +0000 (18:04 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Wed, 23 Nov 2016 18:04:14 +0000 (18:04 +0000)
commitcfe3d6538850d8e247995f2119b71f5dd04d1981
tree723df5e17588ca6e76d0d12d560b1154fc7c1f3a
parent017fdefeb3fda37d787818f006832ab98c9e8651
re PR middle-end/78153 (strlen return value can be assumed to be less than PTRDIFF_MAX)

2016-11-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR middle-end/78153
* gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
* tree-vrp.c (extract_range_basic): Handle case for
CFN_BUILT_IN_STRLEN.

testsuite/
* gcc.dg/tree-ssa/pr78153-1.c: New test.
* gcc.dg/tree-ssa/pr78153-2.c: Likewise.

From-SVN: r242786
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr78153-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr78153-2.c [new file with mode: 0644]
gcc/tree-vrp.c