[Ada] Do not use maximal values from System in runtime units
Pierre-Marie de Rodat
derodat@adacore.com
Thu Oct 15 09:40:01 GMT 2020
This changes a few runtime units to use explicit bounds based on
Long_Long_Integer instead of maximal values from System, which may
become very large when 128-bit types are supported.
They are used for index types and memory byte counts and, therefore,
the magnitude provided by Long_Long_Integer is sufficient for them.
No functional changes.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* libgnat/a-cfinve.adb (Int): Use subtype of Long_Long_Integer.
* libgnat/a-cofove.adb (Int): Likewise.
* libgnat/a-cgcaso.adb (T): Likewise.
* libgnat/a-cogeso.adb (T): Likewise.
* libgnat/g-debpoo.ads (Byte_Count): Use Long_Long_Integer'Size.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2493 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201015/0099e6cf/attachment-0001.bin>
More information about the Gcc-patches
mailing list