Fix host_size_t_cst_p predicat
authorMartin Liska <mliska@suse.cz>
Wed, 2 Nov 2016 09:56:04 +0000 (10:56 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 2 Nov 2016 09:56:04 +0000 (09:56 +0000)
commit4adbcdb4ba25f10c6ad581688ff6cd8bff070655
tree88f8e06a5ca6d90a71dcd9af175cf48eaabe4895
parent4b2c06f49f8d7365e2aa15f32cbc6a726c9ff9fb
Fix host_size_t_cst_p predicat

* fold-const-call.c (host_size_t_cst_p): Test whether
t is convertible to size_t.
* gcc.dg/tree-ssa/builtins-folding-gimple-ub.c (main): Add
test case.

From-SVN: r241780
gcc/ChangeLog
gcc/fold-const-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple-ub.c