From 125b4c8b42a49bd5812340c38c0ff1553e9c0341 Mon Sep 17 00:00:00 2001 From: ienkovich Date: Mon, 8 Dec 2014 10:10:00 +0000 Subject: [PATCH] * tree-chkp.c (chkp_build_returned_bound): Don't predict return bounds for strchr calls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218479 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-chkp.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8302882ee364..6f9096b4a655 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-08 Ilya Enkovich + + * tree-chkp.c (chkp_build_returned_bound): Don't predict + return bounds for strchr calls. + 2014-12-08 Ilya Enkovich * tree-chkp.c (chkp_call_returns_bounds_p): New. diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index 1ea4f24d31f3..c24aa35dbc7f 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -2165,8 +2165,7 @@ chkp_build_returned_bound (gcall *call) } /* Do not use retbnd when returned bounds are equal to some of passed bounds. */ - else if ((gimple_call_return_flags (call) & ERF_RETURNS_ARG) - || gimple_call_builtin_p (call, BUILT_IN_STRCHR)) + else if (gimple_call_return_flags (call) & ERF_RETURNS_ARG) { gimple_stmt_iterator iter = gsi_for_stmt (call); unsigned int retarg = 0, argno; -- 2.47.3