Commit 1bd9b6a5 by Ed Schonberg Committed by Pierre-Marie de Rodat

[Ada] Sprint: add guard on printing aspects

2018-08-21  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

	* sprint.adb: Add guard on printing aspects.

From-SVN: r263723
parent dc88759c
2018-08-21 Ed Schonberg <schonberg@adacore.com>
* sprint.adb: Add guard on printing aspects.
2018-08-21 Javier Miranda <miranda@adacore.com> 2018-08-21 Javier Miranda <miranda@adacore.com>
* exp_cg.adb (Generate_CG_Output): Handle calls removed by the * exp_cg.adb (Generate_CG_Output): Handle calls removed by the
......
...@@ -3540,8 +3540,10 @@ package body Sprint is ...@@ -3540,8 +3540,10 @@ package body Sprint is
-- where the aspects are printed inside the package specification. -- where the aspects are printed inside the package specification.
if Has_Aspects (Node) if Has_Aspects (Node)
and then not Nkind_In (Node, N_Package_Declaration, and then not Nkind_In (Node, N_Package_Declaration,
N_Generic_Package_Declaration) N_Generic_Package_Declaration)
and then not Is_Empty_List (Aspect_Specifications (Node))
and then not Is_Empty_List (Aspect_Specifications (Node))
then then
Sprint_Aspect_Specifications (Node, Semicolon => True); Sprint_Aspect_Specifications (Node, Semicolon => True);
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment