utils.c (unchecked_convert): When the result type is a non-biased integral type with...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 5 Sep 2017 09:12:07 +0000 (09:12 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 5 Sep 2017 09:12:07 +0000 (09:12 +0000)
commit1f073c9270d23a01f59b6871f127d99d54bd6670
tree4da34380a93f050079a4205f3a11b72d696fe88a
parent7ed9919dff52443091071203bf93685cf78002a3
utils.c (unchecked_convert): When the result type is a non-biased integral type with size 0...

* gcc-interface/utils.c (unchecked_convert): When the result type is a
non-biased integral type with size 0, set the result to 0 directly.

From-SVN: r251701
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/uc2.ads [new file with mode: 0644]