[Ada] Put_Image: Implement for private types with full real type
authorBob Duff <duff@adacore.com>
Mon, 30 Mar 2020 14:16:49 +0000 (10:16 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 15 Jun 2020 08:04:22 +0000 (04:04 -0400)
commit3dd1cc4a05f57e0d65435a055d532e699c574403
treeb2bcf466855c7cb10058d6022de07f2f8e57d620
parenteb72521915b1f109b3b65aa384005c2527f76c31
[Ada] Put_Image: Implement for private types with full real type

2020-06-15  Bob Duff  <duff@adacore.com>

gcc/ada/

* exp_imgv.adb (Expand_Image_Attribute): Allow private types.
Put_Image generates Image for numeric types, and private types
whose full type is numeric. This requires the Conversion_OK flag
for integer and floating-point types. For fixed point, we need
the extra conversion.
* exp_put_image.adb (Build_Elementary_Put_Image_Call): Remove
special handling of real types.
(Enable_Put_Image): Enable for reals.
gcc/ada/exp_imgv.adb
gcc/ada/exp_put_image.adb