[Ada] Add centralized capacity check in Generic_Bignums
authorArnaud Charlet <charlet@adacore.com>
Fri, 5 Jun 2020 09:40:55 +0000 (05:40 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:17:56 +0000 (05:17 -0400)
commit0f6898f9d8c981eb70410bb9fd19d08ce1f684b8
tree1067145f295f624c17fbdb7c058548d47e0b6d18
parent7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49
[Ada] Add centralized capacity check in Generic_Bignums

gcc/ada/

* libgnat/s-genbig.adb ("**"): Remove capacity limit check.
Improve code by using an extended return.
(Normalize): Perform capacity limit check here instead which is
the centralized place where (potentially large) big integers are
allocated.
gcc/ada/libgnat/s-genbig.adb