summaryrefslogtreecommitdiff
path: root/gcc/ada/sinfo.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sinfo.adb')
-rw-r--r--gcc/ada/sinfo.adb22
1 files changed, 20 insertions, 2 deletions
diff --git a/gcc/ada/sinfo.adb b/gcc/ada/sinfo.adb
index d1f00676284..67baab977cd 100644
--- a/gcc/ada/sinfo.adb
+++ b/gcc/ada/sinfo.adb
@@ -206,7 +206,8 @@ package body Sinfo is
begin
pragma Assert (False
or else NT (N).Nkind = N_Component_Definition
- or else NT (N).Nkind = N_Object_Declaration);
+ or else NT (N).Nkind = N_Object_Declaration
+ or else NT (N).Nkind = N_Parameter_Specification);
return Flag4 (N);
end Aliased_Present;
@@ -1471,6 +1472,14 @@ package body Sinfo is
return Flag14 (N);
end Has_Pragma_CPU;
+ function Has_Pragma_Dispatching_Domain
+ (N : Node_Id) return Boolean is
+ begin
+ pragma Assert (False
+ or else NT (N).Nkind = N_Task_Definition);
+ return Flag15 (N);
+ end Has_Pragma_Dispatching_Domain;
+
function Has_Pragma_Priority
(N : Node_Id) return Boolean is
begin
@@ -3257,7 +3266,8 @@ package body Sinfo is
begin
pragma Assert (False
or else NT (N).Nkind = N_Component_Definition
- or else NT (N).Nkind = N_Object_Declaration);
+ or else NT (N).Nkind = N_Object_Declaration
+ or else NT (N).Nkind = N_Parameter_Specification);
Set_Flag4 (N, Val);
end Set_Aliased_Present;
@@ -4513,6 +4523,14 @@ package body Sinfo is
Set_Flag14 (N, Val);
end Set_Has_Pragma_CPU;
+ procedure Set_Has_Pragma_Dispatching_Domain
+ (N : Node_Id; Val : Boolean := True) is
+ begin
+ pragma Assert (False
+ or else NT (N).Nkind = N_Task_Definition);
+ Set_Flag15 (N, Val);
+ end Set_Has_Pragma_Dispatching_Domain;
+
procedure Set_Has_Pragma_Priority
(N : Node_Id; Val : Boolean := True) is
begin