]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix computation of Prec/Succ of zero without denormals
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 Dec 2020 20:02:07 +0000 (21:02 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 28 Apr 2021 09:38:17 +0000 (05:38 -0400)
commit4e60fea9206696782e2292419da9add02d0b609c
tree3ddf5943f6100c84999f3d06650f760d35bd0d87
parent33d1be873954bc387387c2f9462fa0139157a182
[Ada] Fix computation of Prec/Succ of zero without denormals

gcc/ada/

* libgnat/s-fatgen.adb: Add use clause for Interfaces.Unsigned_16
and Interfaces.Unsigned_32.
(Small16): New constant.
(Small32): Likewise.
(Small64): Likewise.
(Small80): Likewise.
(Pred): Declare a local overlay for Small and return it negated
for zero if the type does not support denormalized numbers.
(Succ): Likewise, but return it directly.
gcc/ada/libgnat/s-fatgen.adb