[Ada] AI12-0394 Named Numbers and User-Defined Numeric Literals
authorArnaud Charlet <charlet@adacore.com>
Wed, 30 Sep 2020 12:34:57 +0000 (08:34 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:02 +0000 (05:16 -0500)
commit80a09e02289bb693ada2601ea4cc9e0b6df3f375
treedccf608a0fe33ad689ef3afd442af6ad40eb9f34
parentdcb1cad0e0747501e9d54eeec6b0481eb87d23c5
[Ada] AI12-0394 Named Numbers and User-Defined Numeric Literals

gcc/ada/

* sem_ch13.adb (Validate_Literal_Aspect): Add support for named
numbers and in particular overload of the Real_Literal function.
* sem_res.adb (Resolve): Add support for named numbers in
Real_Literal and Integer_Literal resolution.
* einfo.adb, einfo.ads (Related_Expression,
Set_Related_Expression): Allow E_Function.
* uintp.ads (UI_Image_Max): Bump size of buffer to avoid loosing
precision.
* sem_eval.adb: Fix typo in comment.
* libgnat/a-nbnbin.adb, libgnat/a-nbnbin.ads (From_String):
Return a Valid_Big_Integer.
* libgnat/a-nbnbre.adb, libgnat/a-nbnbre.ads (From_String): New
variant taking two strings. Return a Valid_Big_Real.
gcc/ada/einfo.adb
gcc/ada/einfo.ads
gcc/ada/libgnat/a-nbnbin.adb
gcc/ada/libgnat/a-nbnbin.ads
gcc/ada/libgnat/a-nbnbre.adb
gcc/ada/libgnat/a-nbnbre.ads
gcc/ada/sem_ch13.adb
gcc/ada/sem_eval.adb
gcc/ada/sem_res.adb
gcc/ada/uintp.ads