Skip to content

Commit 98fd6aa

Browse files
authored
Merge pull request #237 from xbauch/feature/process-system-package
Process system package
2 parents bad10de + 0805991 commit 98fd6aa

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

experiments/golden-results/StratoX-summary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Calling function: Process_Declaration
88
Error message: Unknown declaration kind
99
Nkind: N_Freeze_Generic_Entity
1010
--
11-
Occurs: 102 times
11+
Occurs: 104 times
1212
Calling function: Do_Function_Call
1313
Error message: func name not in symbol table
1414
Nkind: N_Function_Call

experiments/golden-results/Tokeneer-summary.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,3 +1057,8 @@ Occurs: 1 times
10571057
Redacted compiler error message:
10581058
range must be preceded by subtype mark
10591059
Raw compiler error message:
1060+
--
1061+
Occurs: 1 times
1062+
+===========================GNAT BUG DETECTED==============================+
1063+
| GNU Ada (ada2goto) Assert_Failure failed precondition from arrays.ads:51 |
1064+
| Error detected at system.ads:156:5 |

experiments/golden-results/muen-summary.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ Error message: This type of library_unit is not yet handled
4949
Nkind: N_Generic_Subprogram_Declaration
5050
--
5151
Occurs: 9 times
52+
Calling function: Do_Function_Call
53+
Error message: func name not in symbol table
54+
Nkind: N_Function_Call
55+
--
56+
Occurs: 9 times
5257
Calling function: Do_Withed_Unit_Spec
5358
Error message: This type of library_unit is not yet handled
5459
Nkind: N_Generic_Package_Declaration
@@ -79,11 +84,6 @@ Error message: Constant Type not in symbol table
7984
Nkind: N_Integer_Literal
8085
--
8186
Occurs: 7 times
82-
Calling function: Do_Function_Call
83-
Error message: func name not in symbol table
84-
Nkind: N_Function_Call
85-
--
86-
Occurs: 7 times
8787
Calling function: Do_Itype_Integer_Subtype
8888
Error message: Non-literal bound unsupported
8989
Nkind: N_Defining_Identifier

gnat2goto/driver/tree_walk.adb

Lines changed: 6 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;
@@ -1028,6 +1027,9 @@ package body Tree_Walk is
10281027
Dummy : constant Irep := Do_Subprogram_Or_Block (U);
10291028
pragma Unreferenced (Dummy);
10301029
begin
1030+
-- The specification of the package body has already
1031+
-- been inserted into the symbol table by the call to
1032+
-- Do_Withed_Unit_Specs.
10311033
pragma Assert (Global_Symbol_Table.Contains (Unit_Name));
10321034
Unit_Symbol := Global_Symbol_Table (Unit_Name);
10331035
Unit_Is_Subprogram := False;
@@ -4365,12 +4367,10 @@ package body Tree_Walk is
43654367
-------------------------
43664368

43674369
procedure Do_Withed_Unit_Spec (N : Node_Id) is
4368-
Unit_Name : constant String := Get_Name_String (Get_Unit_Name (N));
43694370
begin
4370-
if Defining_Entity (N) = Stand.Standard_Standard or else
4371-
Unit_Name = "system%s"
4372-
then
4373-
-- At the moment Standard or System are not processed: TODO
4371+
if Defining_Entity (N) = Stand.Standard_Standard then
4372+
-- TODO: github issue #252
4373+
-- At the moment Standard is not processed
43744374
null;
43754375
else
43764376
-- Handle all other withed library unit declarations

0 commit comments

Comments
 (0)