[Ada] Fix operations on Unbounded_String...
authorVadim Godunko <godunko@adacore.com>
Wed, 10 Mar 2021 11:27:20 +0000 (14:27 +0300)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Jun 2021 14:32:16 +0000 (10:32 -0400)
commit59d5d8cdb95479231e675a03e5baec955b7095c2
tree851eac4d677da91fc5c885d2c018b6604a374d64
parentd32db3a763249a8b94c2e2e285fc6f400eadea4e
[Ada] Fix operations on Unbounded_String...

gcc/ada/

* libgnat/a-strunb__shared.ads (Allocate): Additional parameter
to provide additional amount of space to be allocated.
* libgnat/a-strunb__shared.adb (Aligned_Max_Length): Limit
length to Natural'Last when requested length is larger than it.
(Allocate): Merge two slightly different implementations into
one.
gcc/ada/libgnat/a-strunb__shared.adb
gcc/ada/libgnat/a-strunb__shared.ads