[Ada] Ada2020: AI12-0304 Put_Image attrs of lang-def types
authorBob Duff <duff@adacore.com>
Fri, 12 Jun 2020 22:24:52 +0000 (18:24 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 27 Jul 2020 08:05:15 +0000 (04:05 -0400)
commit1e29b5465e4d8dc30cea2ff2677294fbcecd0f21
tree40a3eff789d5be98873ae445f04bcc19a828f6b7
parent7f5c0f328eced560a204bb8e3eae0d45795dd235
[Ada] Ada2020: AI12-0304 Put_Image attrs of lang-def types

gcc/ada/

* libgnat/s-rannum.ads, libgnat/s-rannum.adb: Add Put_Image.
This will be inherited by the language-defined packages
Ada.Numerics.Discrete_Random and Ada.Numerics.Float_Random.
* libgnat/a-convec.ads, libgnat/a-convec.adb: Add Put_Image.
* libgnat/s-putima.ads: Add pragma Preelaborate, so this can be
imported into containers packages.
* libgnat/s-putima.adb: Move Digit to private part; otherwise
reference to Base is illegal in Preelaborate generic.
* exp_put_image.adb (Build_Record_Put_Image_Procedure): Use the
base type.
gcc/ada/exp_put_image.adb
gcc/ada/libgnat/a-convec.adb
gcc/ada/libgnat/a-convec.ads
gcc/ada/libgnat/s-putima.adb
gcc/ada/libgnat/s-putima.ads
gcc/ada/libgnat/s-rannum.adb
gcc/ada/libgnat/s-rannum.ads