]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle BUILT_IN_STRDUP...
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Sep 2011 14:58:27 +0000 (16:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Sep 2011 14:58:27 +0000 (16:58 +0200)
commit915afed63edcfbc614b3357d0862a4124a156d3a
tree547d9c6e16c8da1b5c7e98044325a0f5be53cc1e
parent49f836ba6fdf80354f675af50837fbdb7144e081
tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP.

* tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
* tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
(ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.

* gcc.dg/strlenopt-21.c: New test.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r179387
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-21.c [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-structalias.c