internal-fn.c: Include stringpool.h and tree-ssanames.h.
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Dec 2013 18:44:51 +0000 (19:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 16 Dec 2013 18:44:51 +0000 (19:44 +0100)
commit97286431624c245b32ae05c33e9af2876eda55ee
tree41dc923f102f79eeb2f9561e2cba92cf1201e9c7
parent91c5ee5b4ac9c85b6cbf596dc7917910b0d7b1b3
internal-fn.c: Include stringpool.h and tree-ssanames.h.

* internal-fn.c: Include stringpool.h and tree-ssanames.h.
(ubsan_expand_si_overflow_addsub_check): In the generic expansion,
try to improve generated code if one of the arguments is constant
or get_range_info says that one of the argument is always
negative or always non-negative.
* tree-vrp.c (simplify_internal_call_using_ranges): New function.
(simplify_stmt_using_ranges): Call it.

From-SVN: r206025
gcc/ChangeLog
gcc/internal-fn.c
gcc/tree-vrp.c