Fix the UBSan inexpensive call sanitization 57/94857/5
authorSlava Barinov <v.barinov@samsung.com>
Fri, 30 Sep 2016 09:36:36 +0000 (12:36 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 16 Nov 2016 04:34:49 +0000 (20:34 -0800)
commit21b66ff852998bf1da8caa44f7af8798f0ec7fa7
treefac2e5ccc7856381ca485ae6e61282bb71f4ec9d
parentcaea219f27f51b93f57ec45f65541d895834cc6d
Fix the UBSan inexpensive call sanitization

The change imported in order to fix false positive -Wmaybe-uninitialized
in several packages in UBSan builds.

* gimple.c: Include builtins.h
(gimple_inexpensive_call_p): New function.
* gimple.h (gimple_inexpensive_call_p): Declare.
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
fix formatting.

upstream hash: f18de397b1e0523fd840800399ec6ea21ec04af8
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237172 138bc75d-0d04-0410-961f-82ee72b054a4

Authored-by: hubicka
Change-Id: Ia58f6110f777f444c3679631f5406376e9e9925f
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
gcc/gimple.c
gcc/gimple.h
gcc/tree-ssa-loop-ch.c
gcc/tree-ssa-loop-ivcanon.c