]> gcc.gnu.org Git - gcc.git/commit
re PR tree-optimization/83501 (strlen(a) not folded after strcpy(a, "..."))
authorMartin Sebor <msebor@gmail.com>
Thu, 11 Jan 2018 04:37:48 +0000 (04:37 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Thu, 11 Jan 2018 04:37:48 +0000 (04:37 +0000)
commit05ef31736c431ca4721ba8d05156e99af79a5aac
tree8e4795ba658e8de4ed56247873a0632d4efd2ddd
parent840573729e5fa22ebea44e0c580efd14b46f111e
re PR tree-optimization/83501 (strlen(a) not folded after strcpy(a, "..."))

2018-01-11  Martin Sebor  <msebor@gmail.com>
    Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/83501
PR tree-optimization/81703

* tree-ssa-strlen.c (get_string_cst): Rename...
(get_string_len): ...to this.  Handle global constants.
(handle_char_store): Adjust.

testsuite/
* gcc.dg/strlenopt-39.c: New test-case.
* gcc.dg/pr81703.c: Likewise.

Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
From-SVN: r256475
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81703.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strlenopt-39.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c
This page took 0.063731 seconds and 5 git commands to generate.