tree-chkp.c (chkp_build_returned_bound): Don't predict return bounds for strchr calls.
authorIlya Enkovich <ilya.enkovich@intel.com>
Mon, 8 Dec 2014 10:10:00 +0000 (10:10 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 8 Dec 2014 10:10:00 +0000 (10:10 +0000)
* tree-chkp.c (chkp_build_returned_bound): Don't predict
return bounds for strchr calls.

From-SVN: r218479

gcc/ChangeLog
gcc/tree-chkp.c

index 8302882ee364a615728634f46ba36d8c912eb9d2..6f9096b4a6559e8f173452c1535414890862bcd4 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-08  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * tree-chkp.c (chkp_build_returned_bound): Don't predict
+       return bounds for strchr calls.
+
 2014-12-08  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        * tree-chkp.c (chkp_call_returns_bounds_p): New.
index 1ea4f24d31f3af3d2078aa96c4cba7295b0bf21f..c24aa35dbc7f623ca3ed4aa5e96daa7cf3d3d93a 100644 (file)
@@ -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;