Fix the UBSan inexpensive call sanitization
authorIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 08:44:27 +0000 (11:44 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 13:45:00 +0000 (16:45 +0300)
commitcccdb7369b2e4c65da334641884ab6f383497fc8
tree0515511657fffdd74a7c9f8ccd8dfda11eb4e2d5
parent6b3e63486ce3712ca2d6025785c50053326d8e10
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
gcc/gimple.c
gcc/gimple.h
gcc/tree-ssa-loop-ch.c
gcc/tree-ssa-loop-ivcanon.c