From: Piotr Trojanek Date: Tue, 23 Nov 2021 11:22:27 +0000 (+0100) Subject: [Ada] Remove extra space after assignment symbol X-Git-Tag: basepoints/gcc-13~2583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43fbe0151b8efcb452970a92c31f52d64d0003e;p=thirdparty%2Fgcc.git [Ada] Remove extra space after assignment symbol gcc/ada/ * exp_aggr.adb, exp_ch6.adb, par-ch4.adb, sem_ch13.adb: Remove extra space after ":=" symbol. * gen_il-gen.adb: Likewise; add missing headerbox. --- diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb index af39ba58e146..bdb483e1138f 100644 --- a/gcc/ada/exp_aggr.adb +++ b/gcc/ada/exp_aggr.adb @@ -7546,11 +7546,11 @@ package body Exp_Aggr is Parameter_Associations => Params)); end if; - Loop_Stat := Make_Implicit_Loop_Statement - (Node => N, - Identifier => Empty, - Iteration_Scheme => L_Iteration_Scheme, - Statements => Stats); + Loop_Stat := Make_Implicit_Loop_Statement + (Node => N, + Identifier => Empty, + Iteration_Scheme => L_Iteration_Scheme, + Statements => Stats); Append (Loop_Stat, Aggr_Code); end Expand_Iterated_Component; @@ -7825,7 +7825,7 @@ package body Exp_Aggr is -- required size for the aggregwte : call the provided -- constructor rather than the Empty aggregate. - Index := Make_Op_Add (Loc, + Index := Make_Op_Add (Loc, Left_Opnd => New_Copy_Tree (Type_Low_Bound (Index_Type)), Right_Opnd => Make_Integer_Literal (Loc, Siz - 1)); diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb index fa1a89a0c649..f433fa7a1656 100644 --- a/gcc/ada/exp_ch6.adb +++ b/gcc/ada/exp_ch6.adb @@ -10206,7 +10206,7 @@ package body Exp_Ch6 is -- If function is inherited, a conversion may be necessary. if Nkind (Par) = N_Assignment_Statement then - Last_Actual := Name (Par); + Last_Actual := Name (Par); if not Comes_From_Source (Orig_Func) and then Etype (Orig_Func) /= Etype (Func_Id) diff --git a/gcc/ada/gen_il-gen.adb b/gcc/ada/gen_il-gen.adb index f058c5a7f7ad..2e81149307c2 100644 --- a/gcc/ada/gen_il-gen.adb +++ b/gcc/ada/gen_il-gen.adb @@ -2135,9 +2135,13 @@ package body Gen_IL.Gen is procedure One_Comp (F : Field_Enum); + -------------- + -- One_Comp -- + -------------- + procedure One_Comp (F : Field_Enum) is pragma Annotate (Codepeer, Modified, Field_Table); - Offset : constant Field_Offset := Field_Table (F).Offset; + Offset : constant Field_Offset := Field_Table (F).Offset; begin if First_Time then First_Time := False; diff --git a/gcc/ada/par-ch4.adb b/gcc/ada/par-ch4.adb index 545d83b480b7..aa49bff53181 100644 --- a/gcc/ada/par-ch4.adb +++ b/gcc/ada/par-ch4.adb @@ -3482,7 +3482,7 @@ package body Ch4 is New_Node (N_Loop_Parameter_Specification, Prev_Token_Ptr); Set_Defining_Identifier (Loop_Spec, Id); - Choice := First (Discrete_Choices (Assoc_Node)); + Choice := First (Discrete_Choices (Assoc_Node)); Assoc_Node := New_Node (N_Iterated_Element_Association, Prev_Token_Ptr); Set_Loop_Parameter_Specification (Assoc_Node, Loop_Spec); diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index 6ff7046ce4be..ba41209708c8 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -15550,7 +15550,7 @@ package body Sem_Ch13 is Add_Unnamed_Subp := Subp; elsif Op_Name = Name_New_Indexed then - New_Indexed_Subp := Subp; + New_Indexed_Subp := Subp; elsif Op_Name = Name_Assign_Indexed then Assign_Indexed_Subp := Subp;