[Ada] Use Standard.Natural on bit references to packed arrays
Pierre-Marie de Rodat
derodat@adacore.com
Tue Jun 2 08:59:39 GMT 2020
This changes the type set on bit references made to packed arrays:
instead of Universal_Integer, it is set to Standard.Natural.
The reason is that Universal_Integer must be a type as large as the
largest supported integer type and, therefore, can be much larger than
what is really needed here.
No functional changes.
Tested on x86_64-pc-linux-gnu, committed on trunk
2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* exp_pakd.adb (Expand_Packed_Bit_Reference): Change type of
reference from Universal_Integer to Standard_Natural.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 604 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200602/361804b7/attachment-0001.bin>
More information about the Gcc-patches
mailing list