Skip to content

Commit 89d770a

Browse files
tjj2017petr-bauch
authored andcommitted
Start processing system package
we also do not need to include uname anymore.
1 parent e2d420f commit 89d770a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

gnat2goto/driver/tree_walk.adb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
with Uname; use Uname;
21
with Namet; use Namet;
32
with Nlists; use Nlists;
43
with Sem;
@@ -1034,6 +1033,9 @@ package body Tree_Walk is
10341033
Dummy : constant Irep := Do_Subprogram_Or_Block (U);
10351034
pragma Unreferenced (Dummy);
10361035
begin
1036+
-- The specification of the package body has already
1037+
-- been inserted into the symbol table by the call to
1038+
-- Do_Withed_Unit_Specs.
10371039
pragma Assert (Global_Symbol_Table.Contains (Unit_Name));
10381040
Unit_Symbol := Global_Symbol_Table (Unit_Name);
10391041
Unit_Is_Subprogram := False;
@@ -4379,12 +4381,9 @@ package body Tree_Walk is
43794381
-------------------------
43804382

43814383
procedure Do_Withed_Unit_Spec (N : Node_Id) is
4382-
Unit_Name : constant String := Get_Name_String (Get_Unit_Name (N));
43834384
begin
4384-
if Defining_Entity (N) = Stand.Standard_Standard or else
4385-
Unit_Name = "system%s"
4386-
then
4387-
-- At the moment Standard or System are not processed: TODO
4385+
if Defining_Entity (N) = Stand.Standard_Standard then
4386+
-- At the moment Standard is not processed: TODO
43884387
null;
43894388
else
43904389
-- Handle all other withed library unit declarations

0 commit comments

Comments
 (0)