re PR middle-end/78429 (ICE in set_value_range, at tree-vrp.c on non-standard boolean)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 24 Nov 2016 12:02:53 +0000 (12:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 24 Nov 2016 12:02:53 +0000 (12:02 +0000)
commit3b08cde8dd2b27740e04a6f0e531f2c086a9ec1b
treeff79e8ab3cb9680654f64078b74a188db96fca41
parentbf2df7a9b39897740e6b2fc8c03b1b195748c98f
re PR middle-end/78429 (ICE in set_value_range, at tree-vrp.c on non-standard boolean)

PR middle-end/78429
* tree.h (wi::fits_to_boolean_p): New predicate.
(wi::fits_to_tree_p): Use it for boolean types.
* tree.c (int_fits_type_p): Likewise.

From-SVN: r242829
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20161124-1.c [new file with mode: 0644]
gcc/tree.c
gcc/tree.h