aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/freeze.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2021-06-27 11:03:20 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2021-09-20 12:31:35 +0000
commit8e5a8832632eecf5786dff295d073938aeb6d6d8 (patch)
tree151ee136e01c3cd355f2094f034674a75fabf25b /gcc/ada/freeze.adb
parente97dd2ae763d8c1e78c3b82fc2add4c078fb2357 (diff)
downloadgcc-8e5a8832632eecf5786dff295d073938aeb6d6d8.zip
gcc-8e5a8832632eecf5786dff295d073938aeb6d6d8.tar.gz
gcc-8e5a8832632eecf5786dff295d073938aeb6d6d8.tar.bz2
[Ada] Clean up Uint fields, remove unused routines
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.
Diffstat (limited to 'gcc/ada/freeze.adb')
-rw-r--r--gcc/ada/freeze.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb
index 84502d8..170f667 100644
--- a/gcc/ada/freeze.adb
+++ b/gcc/ada/freeze.adb
@@ -7467,7 +7467,7 @@ package body Freeze is
and then not Target_Short_Enums
then
- Init_Esize (Typ, Standard_Integer_Size);
+ Set_Esize (Typ, UI_From_Int (Standard_Integer_Size));
Set_Alignment (Typ, Alignment (Standard_Integer));
-- Normal Ada case or size clause present or not Long_C_Enums on target
@@ -9076,7 +9076,7 @@ package body Freeze is
Actual_Size := 128;
end if;
- Init_Esize (Typ, Actual_Size);
+ Set_Esize (Typ, UI_From_Int (Actual_Size));
Adjust_Esize_For_Alignment (Typ);
end if;
@@ -9132,7 +9132,7 @@ package body Freeze is
-- Set Esize to calculated size if not set already
if not Known_Esize (Typ) then
- Init_Esize (Typ, Actual_Size);
+ Set_Esize (Typ, UI_From_Int (Actual_Size));
end if;
-- Set RM_Size if not already set. If already set, check value