diff options
author | Dmitriy Anisimkov <anisimko@adacore.com> | 2020-05-21 18:15:40 +0600 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-27 04:05:19 -0400 |
commit | 21717db17a8264b7f75366aafa3d21afce5dd41b (patch) | |
tree | 332aae03e69a832aced097feff989258fe700c58 /contrib/check-params-in-docs.py | |
parent | 7f365be815ea6543ebfddb7d1688817cde5b223b (diff) | |
download | gcc-21717db17a8264b7f75366aafa3d21afce5dd41b.zip gcc-21717db17a8264b7f75366aafa3d21afce5dd41b.tar.gz gcc-21717db17a8264b7f75366aafa3d21afce5dd41b.tar.bz2 |
[Ada] Unbounded string overriding control
gcc/ada/
* libgnat/a-strunb.adb (Sum, Mul, Saturated_Sum, Saturated_Mul):
New routines. Use them when resulting string size more that
length of the strings in parameters.
(Unbounded_Slice): Use "- 1" instead of "+ 1" in opposite side
of condition to avoid overflow.
* libgnat/a-strunb__shared.adb (Sum, Mul): New routines.
(Allocate): New routine with 2 parameters. Use routine above
when resulting string size more that length of the strings in
parameters.
(Aligned_Max_Length): Do not try to align to more than Natural'Last.
(Unbounded_Slice): Use "- 1" instead of "+ 1" in opposite side
of condition to avoid overflow.
Diffstat (limited to 'contrib/check-params-in-docs.py')
0 files changed, 0 insertions, 0 deletions