On 11/06/14 05:39, Ilya Enkovich wrote:
Hi,
This patch adds support of instrumented function calls into strlen pass.
Whole series pass bootstrap and check on linux-x86_64. OK for trunk?
Thanks,
Ilya
--
gcc/
2014-11-06 Ilya Enkovich <ilya.enkov...@intel.com>
* tree-ssa-strlen.c: include ipa-chkp.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/
2014-11-06 Ilya Enkovich <ilya.enkov...@intel.com>
* 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.
diff --git a/gcc/tree-ssa-strlen.c b/gcc/tree-ssa-strlen.c
index c224fd9..10db136 100644
--- a/gcc/tree-ssa-strlen.c
+++ b/gcc/tree-ssa-strlen.c
@@ -62,6 +62,10 @@ along with GCC; see the file COPYING3. If not see
#include "gimple-pretty-print.h"
#include "params.h"
#include "expr.h"
+#include "ipa-ref.h"
+#include "lto-streamer.h"
+#include "cgraph.h"
+#include "ipa-chkp.h"
Really, ipa-ref, lto-streamer, cgraph? What are these needed for?
OK after attempting to trim out unnecessary includes.
Jeff