[Ada] Remove obsolete uses of Unchecked_Conversion from Ada 83
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 9 Feb 2022 21:32:19 +0000 (22:32 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 13 May 2022 08:04:30 +0000 (08:04 +0000)
commit83bacaa9b5d8b652f311633ca9584ea56cd71d86
treeafbcec35ce9fd431e99c4e94e616b785dd199f56
parentcb50998584eda9bbd3377d3dca6a8d264d6c4891
[Ada] Remove obsolete uses of Unchecked_Conversion from Ada 83

Similar to a recent removal of obsolete uses of Unchecked_Deallocation.

In Ada 83 the Unchecked_Conversion was a top-level unit; since Ada 95 it
is an obsolete renaming of Ada.Unchecked_Conversion. GNAT doesn't warn
yet about uses of these obsolete renamings, but it still seems better to
avoid them.

gcc/ada/

* atree.adb, gen_il-gen.adb, osint.adb, set_targ.adb,
sinput.adb, table.adb, treepr.adb, types.ads: Replace uses of
Unchecked_Conversion in the compiler itself.
* libgnarl/a-reatim.adb, libgnarl/s-osinte__gnu.ads,
libgnarl/s-osinte__kfreebsd-gnu.ads, libgnat/a-coboho.adb,
libgnat/a-stuten.ads, libgnat/s-putima.adb: Likewise in the
runtime.
* doc/gnat_ugn/gnat_and_program_execution.rst: Likewise in
documentation.
* gnat_ugn.texi: Regenerate.
16 files changed:
gcc/ada/atree.adb
gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
gcc/ada/gen_il-gen.adb
gcc/ada/gnat_ugn.texi
gcc/ada/libgnarl/a-reatim.adb
gcc/ada/libgnarl/s-osinte__gnu.ads
gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads
gcc/ada/libgnat/a-coboho.adb
gcc/ada/libgnat/a-stuten.ads
gcc/ada/libgnat/s-putima.adb
gcc/ada/osint.adb
gcc/ada/set_targ.adb
gcc/ada/sinput.adb
gcc/ada/table.adb
gcc/ada/treepr.adb
gcc/ada/types.ads