tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h, ipa-ref.h, plugin-api.h.
authorIlya Enkovich <ilya.enkovich@intel.com>
Mon, 17 Nov 2014 13:55:49 +0000 (13:55 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 17 Nov 2014 13:55:49 +0000 (13:55 +0000)
commitf5fc4a042173fbb015e1a2b882a6bddb5d6dc146
treefc3683b12c7f4c28c8b84b78dc570b7bf36299e8
parente472781227253bf87e273512026256fb563b1646
tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h, ipa-ref.h, plugin-api.h.

gcc/

* tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
ipa-ref.h, plugin-api.h.
(get_string_length): Handle calls with bounds.
(adjust_last_stmt): Likewise.
(handle_builtin_strchr): Likewise.
(handle_builtin_strcpy): Likewise.
(handle_builtin_memcpy): Likewise.
(handle_builtin_strcat): Likewise.

gcc/testsuite/

* gcc.target/i386/chkp-strlen-1.c: New.
* gcc.target/i386/chkp-strlen-2.c: New.
* gcc.target/i386/chkp-strlen-3.c: New.
* gcc.target/i386/chkp-strlen-4.c: New.
* gcc.target/i386/chkp-strlen-5.c: New.

From-SVN: r217657
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/chkp-strlen-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/chkp-strlen-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/chkp-strlen-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/chkp-strlen-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/chkp-strlen-5.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c