Skip to content

Commit 39a25ea

Browse files
Petr Bauchchrisr-diffblue
authored andcommitted
More pragmas to ignore
These two are needed to be handled in same way since they appear in the System package. I think they are safe to ignore for now.
1 parent d459eee commit 39a25ea

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

gnat2goto/driver/tree_walk.adb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,9 +5008,6 @@ package body Tree_Walk is
50085008
when Name_Unreferenced =>
50095009
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
50105010
"Unsupported pragma: Unreferenced");
5011-
when Name_Preelaborable_Initialization =>
5012-
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
5013-
"Unsupported pragma: Preelaborable Initialization");
50145011
when Name_Ada_05 =>
50155012
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
50165013
"Unsupported pragma: Ada 05");
@@ -5026,9 +5023,6 @@ package body Tree_Walk is
50265023
when Name_Obsolescent =>
50275024
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
50285025
"Unsupported pragma: Obsolescent");
5029-
when Name_Warnings =>
5030-
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
5031-
"Unsupported pragma: Warnings");
50325026
when Name_Initializes =>
50335027
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",
50345028
"Unsupported pragma: Initializes");
@@ -5100,9 +5094,13 @@ package body Tree_Walk is
51005094
-- Only affects elaboration and linking so can be ignored for now
51015095
Name_Universal_Aliasing |
51025096
-- Optimisation control, should be ignored
5103-
Name_Implementation_Defined =>
5097+
Name_Implementation_Defined |
51045098
-- Only informs the compiler that entities are implementation
51055099
-- defined. -> Ignored
5100+
Name_Preelaborable_Initialization |
5101+
-- Same as the above preelaborations.
5102+
Name_Warnings =>
5103+
-- Ignoring pragma warnings means that all warnings are on.
51065104
null;
51075105
when others =>
51085106
Report_Unhandled_Node_Empty (N, "Process_Pragma_Declaration",

0 commit comments

Comments
 (0)