@@ -740,7 +740,7 @@ package body Exp_Ch9 is
740
740
-- processing, has already been added for the expansion of requeue
741
741
-- statements.
742
742
743
- Call := Build_Runtime_Call (Loc , RE_Complete_Rendezvous);
743
+ Call := Build_Runtime_Call (No_Location , RE_Complete_Rendezvous);
744
744
Insert_Before (Last (Statements (Stats)), Call);
745
745
Analyze (Call);
746
746
@@ -751,7 +751,7 @@ package body Exp_Ch9 is
751
751
Hand := First (Exception_Handlers (Stats));
752
752
753
753
while Present (Hand) loop
754
- Call := Build_Runtime_Call (Loc , RE_Complete_Rendezvous);
754
+ Call := Build_Runtime_Call (No_Location , RE_Complete_Rendezvous);
755
755
Append (Call, Statements (Hand));
756
756
Analyze (Call);
757
757
Next (Hand);
@@ -786,13 +786,13 @@ package body Exp_Ch9 is
786
786
Exception_Choices => New_List (Ohandle),
787
787
788
788
Statements => New_List (
789
- Make_Procedure_Call_Statement (Loc ,
789
+ Make_Procedure_Call_Statement (No_Location ,
790
790
Name => New_Reference_To (
791
- RTE (RE_Exceptional_Complete_Rendezvous), Loc ),
791
+ RTE (RE_Exceptional_Complete_Rendezvous), No_Location ),
792
792
Parameter_Associations => New_List (
793
- Make_Function_Call (Loc ,
793
+ Make_Function_Call (No_Location ,
794
794
Name => New_Reference_To (
795
- RTE (RE_Get_GNAT_Exception), Loc ))))))));
795
+ RTE (RE_Get_GNAT_Exception), No_Location ))))))));
796
796
797
797
Set_Parent (New_S, Astat); -- temp parent for Analyze call
798
798
Analyze_Exception_Handlers (Exception_Handlers (New_S));
@@ -4663,14 +4663,14 @@ package body Exp_Ch9 is
4663
4663
while Present (Formal) loop
4664
4664
Comp := Entry_Component (Formal);
4665
4665
New_F :=
4666
- Make_Defining_Identifier (Sloc (Formal) , Chars (Formal));
4666
+ Make_Defining_Identifier (Loc , Chars (Formal));
4667
4667
4668
4668
Set_Etype (New_F, Etype (Formal));
4669
4669
Set_Scope (New_F, Ent);
4670
4670
4671
- -- Now we set debug info needed on New_F even though it does
4672
- -- not come from source, so that the debugger will get the
4673
- -- right information for these generated names.
4671
+ -- Now we set debug info needed on New_F even though it does
4672
+ -- not come from source, so that the debugger will get the
4673
+ -- right information for these generated names.
4674
4674
4675
4675
Set_Debug_Info_Needed (New_F);
4676
4676
@@ -8561,6 +8561,7 @@ package body Exp_Ch9 is
8561
8561
procedure Add_Accept (Alt : Node_Id) is
8562
8562
Acc_Stm : constant Node_Id := Accept_Statement (Alt);
8563
8563
Ename : constant Node_Id := Entry_Direct_Name (Acc_Stm);
8564
+ Eloc : constant Source_Ptr := Sloc (Ename);
8564
8565
Eent : constant Entity_Id := Entity (Ename);
8565
8566
Index : constant Node_Id := Entry_Index (Acc_Stm);
8566
8567
Null_Body : Node_Id;
@@ -8576,39 +8577,39 @@ package body Exp_Ch9 is
8576
8577
8577
8578
if Present (Condition (Alt)) then
8578
8579
Expr :=
8579
- Make_Conditional_Expression (Loc , New_List (
8580
+ Make_Conditional_Expression (Eloc , New_List (
8580
8581
Condition (Alt),
8581
- Entry_Index_Expression (Loc , Eent, Index, Scope (Eent)),
8582
- New_Reference_To (RTE (RE_Null_Task_Entry), Loc )));
8582
+ Entry_Index_Expression (Eloc , Eent, Index, Scope (Eent)),
8583
+ New_Reference_To (RTE (RE_Null_Task_Entry), Eloc )));
8583
8584
else
8584
8585
Expr :=
8585
8586
Entry_Index_Expression
8586
- (Loc , Eent, Index, Scope (Eent));
8587
+ (Eloc , Eent, Index, Scope (Eent));
8587
8588
end if ;
8588
8589
8589
8590
if Present (Handled_Statement_Sequence (Accept_Statement (Alt))) then
8590
- Null_Body := New_Reference_To (Standard_False, Loc );
8591
+ Null_Body := New_Reference_To (Standard_False, Eloc );
8591
8592
8592
8593
if Abort_Allowed then
8593
- Call := Make_Procedure_Call_Statement (Loc ,
8594
- Name => New_Reference_To (RTE (RE_Abort_Undefer), Loc ));
8594
+ Call := Make_Procedure_Call_Statement (Eloc ,
8595
+ Name => New_Reference_To (RTE (RE_Abort_Undefer), Eloc ));
8595
8596
Insert_Before (First (Statements (Handled_Statement_Sequence (
8596
8597
Accept_Statement (Alt)))), Call);
8597
8598
Analyze (Call);
8598
8599
end if ;
8599
8600
8600
8601
PB_Ent :=
8601
- Make_Defining_Identifier (Sloc (Ename) ,
8602
+ Make_Defining_Identifier (Eloc ,
8602
8603
New_External_Name (Chars (Ename), ' A' , Num_Accept));
8603
8604
8604
8605
if Comes_From_Source (Alt) then
8605
8606
Set_Debug_Info_Needed (PB_Ent);
8606
8607
end if ;
8607
8608
8608
8609
Proc_Body :=
8609
- Make_Subprogram_Body (Loc ,
8610
+ Make_Subprogram_Body (Eloc ,
8610
8611
Specification =>
8611
- Make_Procedure_Specification (Loc ,
8612
+ Make_Procedure_Specification (Eloc ,
8612
8613
Defining_Unit_Name => PB_Ent),
8613
8614
Declarations => Declarations (Acc_Stm),
8614
8615
Handled_Statement_Sequence =>
@@ -8624,7 +8625,7 @@ package body Exp_Ch9 is
8624
8625
Append (Proc_Body, Body_List);
8625
8626
8626
8627
else
8627
- Null_Body := New_Reference_To (Standard_True, Loc );
8628
+ Null_Body := New_Reference_To (Standard_True, Eloc );
8628
8629
8629
8630
-- if accept statement has declarations, insert above, given that
8630
8631
-- we are not creating a body for the accept.
@@ -8635,7 +8636,7 @@ package body Exp_Ch9 is
8635
8636
end if ;
8636
8637
8637
8638
Append_To (Accept_List,
8638
- Make_Aggregate (Loc , Expressions => New_List (Null_Body, Expr)));
8639
+ Make_Aggregate (Eloc , Expressions => New_List (Null_Body, Expr)));
8639
8640
8640
8641
Num_Accept := Num_Accept + 1 ;
8641
8642
end Add_Accept ;
@@ -8705,9 +8706,9 @@ package body Exp_Ch9 is
8705
8706
Make_Integer_Literal (Loc, Index));
8706
8707
8707
8708
Alt_Stats := New_List (
8708
- Make_Procedure_Call_Statement (Loc ,
8709
+ Make_Procedure_Call_Statement (Sloc (Proc) ,
8709
8710
Name => New_Reference_To (
8710
- Defining_Unit_Name (Specification (Proc)), Loc )));
8711
+ Defining_Unit_Name (Specification (Proc)), Sloc (Proc) )));
8711
8712
end if ;
8712
8713
8713
8714
if Statements (Alt) /= Empty_List then
0 commit comments