]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Define versions of dimension system for Float and Long_Float
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2018 14:46:07 +0000 (14:46 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2018 14:46:07 +0000 (14:46 +0000)
commit1ae20fc442f513a8cec0a102b89f7c09f90ea992
treeaac40a67cb132252b909db882e2c2b091a517caf
parente8603de12845416bd3fd3e6c93ca2287975cd02d
[Ada] Define versions of dimension system for Float and Long_Float

The dimension system in System.Dim.Mks is based on Long_Long_Float,
which may not be convenient to people who want to use Float or
Long_Float as basis. These new files provide units that define the
dimension system based on Float in System.Dim.Float_Mks and on
Long_Float in System.Dim.Long_Mks.

Child packages Other_Prefixes and Mks_IO are also defined appropriately,
with new instantiations for the various sizes of floating-point types.

2018-08-21  Yannick Moy  <moy@adacore.com>

gcc/ada/

* doc/gnat_ugn/gnat_and_program_execution.rst: Update
documentation of dimensionality analysis.
* gnat_ugn.texi: Regenerate.
* Makefile.rtl, impunit.adb: Consider the new units.
* libgnat/s-dfmkio.ads, libgnat/s-dfmopr.ads,
libgnat/s-diflmk.ads: New units based on Float.
* libgnat/s-dilomk.ads, libgnat/s-dlmkio.ads,
libgnat/s-dlmopr.ads: New units based on Long_Float.
* libgnat/s-dmotpr.ads: Rename to libgnat/s-dgmgop.ads and turn
into an instance of
System.Dim.Generic_Mks.Generic_Other_Prefixes.
* libgnat/s-dimmks.ads: Rename to libgnat/s-digemk.ads and turn
into an instance of System.Dim.Generic_Mks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263715 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcc/ada/ChangeLog
gcc/ada/Makefile.rtl
gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
gcc/ada/gnat_ugn.texi
gcc/ada/impunit.adb
gcc/ada/libgnat/s-dfmkio.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dfmopr.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dgmgop.ads [new file with mode: 0644]
gcc/ada/libgnat/s-diflmk.ads [new file with mode: 0644]
gcc/ada/libgnat/s-digemk.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dilomk.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dimmks.ads
gcc/ada/libgnat/s-dlmkio.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dlmopr.ads [new file with mode: 0644]
gcc/ada/libgnat/s-dmotpr.ads