re PR tree-optimization/83501 (strlen(a) not folded after strcpy(a, "..."))
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Wed, 3 Jan 2018 16:07:32 +0000 (16:07 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Wed, 3 Jan 2018 16:07:32 +0000 (16:07 +0000)
commit65f2d1ee1c20860e238750099b88e394ee30a770
tree39a1b922636b131e994dcc24e956ad6826434e59
parentce4734988f9ee022fbe5195f85ea04e7372a9eda
re PR tree-optimization/83501 (strlen(a) not folded after strcpy(a, "..."))

2018-01-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/83501
* tree-ssa-strlen.c (get_string_cst): New.
(handle_char_store): Call get_string_cst.

testsuite/
* gcc.dg/tree-ssa/pr83501.c: New test.

From-SVN: r256180
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr83501.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c