tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 25 Oct 2016 17:11:49 +0000 (17:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 25 Oct 2016 17:11:49 +0000 (17:11 +0000)
commit90e261e494a5f1fda83b815f513c5621fa5f8c83
tree287ecd3c49a6b519376afa6b2ba709f33d37870a
parentcef026ecafe169871284fded6494efe33e763950
tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.

* tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
* tree.c (int_fits_type_p): Likewise.  Adjust head comment.

From-SVN: r241529
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt59.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt59_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt59_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt60.adb [new file with mode: 0644]
gcc/tree.c
gcc/tree.h