Remove unused routines. Remove 2-parameter versions of Init_Alignment and friends. Replace calls with direct calls to Set_Alignment and friends. These routines aren't really doing anything worth an extra abstraction.
Change remaining Init_ routines to Reinit_, because these are not
usually being used to initialize.
Reinit_Alignment correctly calls Reinit_Field_To_Zero. The other two
(Reinit_Esize and Reinit_RM_Size) are still setting the field to Uint_0;
this will be changed to Reinit_Field_To_Zero later.
Add Copy_Esize and Copy_RM_Size, not yet implemented. These will be
implemented when Reinit_Esize and Reinit_RM_Size are corrected.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* einfo-utils.ads, einfo-utils.adb, fe.h, einfo.ads,
gen_il-fields.ads: Remove unused and no-longer-used routines.
Move related routines together. Rewrite incorrect
documentation, and documentation that will be incorrect when
e.g. Esize-related routines are fixed. Remove unused field
Normalized_Position_Max.
* cstand.adb, exp_pakd.adb, freeze.adb,
gen_il-gen-gen_entities.adb, itypes.adb, layout.adb,
sem_ch10.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_prag.adb,
sem_util.adb, ttypes.ads: Update calls to routines removed from
or renamed in Einfo.Utils.
* uintp.ads (Upos): Fix this subtype, which was unintentionally
declared to include Uint_0.
patch.diff.gz
Description: application/gzip
