re PR tree-optimization/79547 (duplicate strlen calls with same argument not folded)
authorRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2017 12:47:02 +0000 (12:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Apr 2017 12:47:02 +0000 (12:47 +0000)
commit2fd30fbe0d3a9525ec14e0102f3ebb0e80a2736e
tree42f28df22eb2f507943aa8dfc534240d738c9a69
parentbb1bc604a852c38afd0df9d2f6a66a0e1a80db34
re PR tree-optimization/79547 (duplicate strlen calls with same argument not folded)

2017-04-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79547
* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
without any constraints.

* gcc.dg/tree-ssa/strlen-2.c: New testcase.

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