]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] tech debt: clean up Component_Size
authorBob Duff <duff@adacore.com>
Fri, 9 Apr 2021 12:56:23 +0000 (08:56 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:46 +0000 (14:23 +0000)
commitb9ec951f4318f1ed8d8c8d5477eeb534ad0811ae
tree58fa06ddc61436c57a776eb3099bb86f7f000149
parent0bc7cf47c1266f9ae510c70833b5691c693c769f
[Ada] tech debt: clean up Component_Size

gcc/ada/

* einfo.ads (Component_Bit_Offset, Component_Size): Update
documentation: Repinfo is the package where these negative
values are documented.
* einfo-utils.adb (Known_Component_Size,
Known_Static_Component_Size, Unknown_Component_Size): Remove
calls to Implementation_Base_Type, because Component_Size is an
Impl_Base_Type_Only field (see Gen_Entities).
* sem_ch13.ads, sem_ch13.adb (Check_Size): Do not set Esize and
RM_Size. This is unnecessary in the case of Size. For
Component_Size, it is wrong, because we would be setting the
Esize and RM_Size of the component type.
gcc/ada/einfo-utils.adb
gcc/ada/einfo.ads
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch13.ads