diff options
author | Martin Liska <mliska@suse.cz> | 2017-01-23 15:57:43 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-01-23 14:57:43 +0000 |
commit | f368600fcd86f71c7bfc8a28f42434c539306da2 (patch) | |
tree | bb8e8a1499c3766b40fb7df9c7365562bd7be70c /gcc/tree-predcom.c | |
parent | d886761fd048a6ad77dc7c927cbedfa503cfe01b (diff) | |
download | gcc-f368600fcd86f71c7bfc8a28f42434c539306da2.zip gcc-f368600fcd86f71c7bfc8a28f42434c539306da2.tar.gz gcc-f368600fcd86f71c7bfc8a28f42434c539306da2.tar.bz2 |
Fix strstr folding (PR tree-optimization/79196).
2017-01-23 Martin Liska <mliska@suse.cz>
PR tree-optimization/79196
* tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
(fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
instead of memcmp.
(strlen_optimize_stmt): Call the renamed function.
2017-01-23 Martin Liska <mliska@suse.cz>
PR tree-optimization/79196
* gcc.dg/asan/pr79196.c: New test.
* gcc.dg/strlenopt-30.c: Update scanned pattern.
From-SVN: r244812
Diffstat (limited to 'gcc/tree-predcom.c')
0 files changed, 0 insertions, 0 deletions