aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.c
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-12-08 10:10:00 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2014-12-08 10:10:00 +0000
commitd3fb44cbf6834f43cd359b531bf5df8aad185f39 (patch)
tree732e2172fb99effda9fd532bde3f1c51a0f741aa /gcc/tree-chkp.c
parent985f48f7b575747ac5f0ece95816a3bb208fb138 (diff)
downloadgcc-d3fb44cbf6834f43cd359b531bf5df8aad185f39.zip
gcc-d3fb44cbf6834f43cd359b531bf5df8aad185f39.tar.gz
gcc-d3fb44cbf6834f43cd359b531bf5df8aad185f39.tar.bz2
tree-chkp.c (chkp_build_returned_bound): Don't predict return bounds for strchr calls.
* tree-chkp.c (chkp_build_returned_bound): Don't predict return bounds for strchr calls. From-SVN: r218479
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r--gcc/tree-chkp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c
index 1ea4f24..c24aa35 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;