diff options
author | Martin Sebor <msebor@gmail.com> | 2018-01-11 04:37:48 +0000 |
---|---|---|
committer | Prathamesh Kulkarni <prathamesh3492@gcc.gnu.org> | 2018-01-11 04:37:48 +0000 |
commit | 05ef31736c431ca4721ba8d05156e99af79a5aac (patch) | |
tree | 8e4795ba658e8de4ed56247873a0632d4efd2ddd /gcc/ada/sinfo.adb | |
parent | 840573729e5fa22ebea44e0c580efd14b46f111e (diff) | |
download | gcc-05ef31736c431ca4721ba8d05156e99af79a5aac.zip gcc-05ef31736c431ca4721ba8d05156e99af79a5aac.tar.gz gcc-05ef31736c431ca4721ba8d05156e99af79a5aac.tar.bz2 |
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
Diffstat (limited to 'gcc/ada/sinfo.adb')
0 files changed, 0 insertions, 0 deletions