This patch corrects an error in the compiler whereby gnatbind may crash
during calculation of file checksums in certain corner cases due to
uninitialized lookup tables.
gcc/ada/
* gnatbind.adb (Gnatbind): Add initialize call for Uintp
* gnatls.adb (Gnatls): Likewise.
* gprep.adb (Gnatprep): Likewise.
* make.adb (Initialize): Likewise.
with Switch.B; use Switch.B;
with Targparm; use Targparm;
with Types; use Types;
+with Uintp;
with System.Case_Util; use System.Case_Util;
with System.Response_File;
-- is in some cases important.
Csets.Initialize;
+ Uintp.Initialize;
Snames.Initialize;
-- Scan the switches and arguments. Note that Snames must already be
with Stringt;
with Switch; use Switch;
with Types; use Types;
+with Uintp;
with GNAT.Case_Util; use GNAT.Case_Util;
with GNAT.Command_Line; use GNAT.Command_Line;
-- Initialize standard packages
Csets.Initialize;
+ Uintp.Initialize;
Snames.Initialize;
Stringt.Initialize;
with Stringt; use Stringt;
with Switch; use Switch;
with Types; use Types;
+with Uintp;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
-- Do some initializations (order is important here)
Csets.Initialize;
+ Uintp.Initialize;
Snames.Initialize;
Stringt.Initialize;
Prep.Initialize;
with Sinput;
with Snames;
with Stringt;
+with Uintp;
pragma Warnings (Off);
with System.HTable;
Linker_Switches.Init;
Csets.Initialize;
+ Uintp.Initialize;
Snames.Initialize;
Stringt.Initialize;