Commit 07fb1ef4 by Hristian Kirtchev Committed by Pierre-Marie de Rodat

[Ada] Minor reformatting

2018-05-30  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

	* exp_aggr.adb, exp_unst.adb, freeze.adb, libgnat/a-direct.adb: Minor
	reformatting.

From-SVN: r260948
parent e00ee732
2018-05-30 Hristian Kirtchev <kirtchev@adacore.com>
* exp_aggr.adb, exp_unst.adb, freeze.adb, libgnat/a-direct.adb: Minor
reformatting.
2018-05-30 Ed Schonberg <schonberg@adacore.com> 2018-05-30 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Visit_Node): Handle the semantic Procedure_To_Call * exp_unst.adb (Visit_Node): Handle the semantic Procedure_To_Call
......
...@@ -4738,7 +4738,7 @@ package body Exp_Aggr is ...@@ -4738,7 +4738,7 @@ package body Exp_Aggr is
if Is_Packed (Etype (N)) if Is_Packed (Etype (N))
or else or else
(Is_Record_Type (Component_Type (Etype (N))) (Is_Record_Type (Component_Type (Etype (N)))
and then Has_Discriminants (Component_Type (Etype (N)))) and then Has_Discriminants (Component_Type (Etype (N))))
then then
null; null;
else else
......
...@@ -720,8 +720,8 @@ package body Exp_Unst is ...@@ -720,8 +720,8 @@ package body Exp_Unst is
-- other calls. -- other calls.
when N_Allocator when N_Allocator
| N_Free_Statement
| N_Extended_Return_Statement | N_Extended_Return_Statement
| N_Free_Statement
| N_Simple_Return_Statement | N_Simple_Return_Statement
=> =>
declare declare
...@@ -735,8 +735,8 @@ package body Exp_Unst is ...@@ -735,8 +735,8 @@ package body Exp_Unst is
end if; end if;
end; end;
-- A 'Access reference is a (potential) call. -- A 'Access reference is a (potential) call. Other attributes
-- Other attributes require special handling. -- require special handling.
when N_Attribute_Reference => when N_Attribute_Reference =>
declare declare
...@@ -795,9 +795,9 @@ package body Exp_Unst is ...@@ -795,9 +795,9 @@ package body Exp_Unst is
end case; end case;
end; end;
-- Component associations in aggregates are either static -- Component associations in aggregates are either static or
-- or else the aggregate will be expanded into assignments, -- else the aggregate will be expanded into assignments, in
-- in which case the expression is analyzed later and provides -- which case the expression is analyzed later and provides
-- no relevant code generation. -- no relevant code generation.
when N_Component_Association => when N_Component_Association =>
......
...@@ -3447,12 +3447,11 @@ package body Freeze is ...@@ -3447,12 +3447,11 @@ package body Freeze is
null; null;
else else
Error_Msg_NE Error_Msg_NE
("Thread_Local_Storage variable& is " ("Thread_Local_Storage variable& is improperly "
& "improperly initialized", Decl, E); & "initialized", Decl, E);
Error_Msg_NE Error_Msg_NE
("\only allowed initialization is explicit " ("\only allowed initialization is explicit NULL, "
& "NULL, static expression or static aggregate", & "static expression or static aggregate", Decl, E);
Decl, E);
end if; end if;
end if; end if;
end; end;
......
...@@ -1079,8 +1079,8 @@ package body Ada.Directories is ...@@ -1079,8 +1079,8 @@ package body Ada.Directories is
Test_File : Directory_Entry_Type; Test_File : Directory_Entry_Type;
function GNAT_name_case_equivalence return Interfaces.C.int; function GNAT_name_case_equivalence return Interfaces.C.int;
pragma Import pragma Import (C, GNAT_name_case_equivalence,
(C, GNAT_name_case_equivalence, "__gnat_name_case_equivalence"); "__gnat_name_case_equivalence");
begin begin
-- Check for the invalid case -- Check for the invalid case
...@@ -1101,10 +1101,11 @@ package body Ada.Directories is ...@@ -1101,10 +1101,11 @@ package body Ada.Directories is
-- fall through to a Status_Error where we then take the imprecise -- fall through to a Status_Error where we then take the imprecise
-- default for the host OS. -- default for the host OS.
Start_Search (Search => S, Start_Search
Directory => To_String (Dir_Path), (Search => S,
Pattern => "", Directory => To_String (Dir_Path),
Filter => (Directory => False, others => True)); Pattern => "",
Filter => (Directory => False, others => True));
loop loop
Get_Next_Entry (S, Test_File); Get_Next_Entry (S, Test_File);
...@@ -1112,7 +1113,7 @@ package body Ada.Directories is ...@@ -1112,7 +1113,7 @@ package body Ada.Directories is
-- Check if we have found a "caseable" file -- Check if we have found a "caseable" file
exit when To_Lower (Simple_Name (Test_File)) /= exit when To_Lower (Simple_Name (Test_File)) /=
To_Upper (Simple_Name (Test_File)); To_Upper (Simple_Name (Test_File));
end loop; end loop;
End_Search (S); End_Search (S);
...@@ -1160,6 +1161,7 @@ package body Ada.Directories is ...@@ -1160,6 +1161,7 @@ package body Ada.Directories is
return Case_Sensitive; return Case_Sensitive;
exception exception
when Status_Error => when Status_Error =>
-- There is no unobtrusive way to check for the directory's casing so -- There is no unobtrusive way to check for the directory's casing so
-- return the OS default. -- return the OS default.
...@@ -1437,10 +1439,11 @@ package body Ada.Directories is ...@@ -1437,10 +1439,11 @@ package body Ada.Directories is
Case_Sensitive := False; Case_Sensitive := False;
end if; end if;
Pat := Compile Pat :=
(Pattern, Compile
Glob => True, (Pattern,
Case_Sensitive => Case_Sensitive); Glob => True,
Case_Sensitive => Case_Sensitive);
exception exception
when Error_In_Regexp => when Error_In_Regexp =>
Free (Search.Value); Free (Search.Value);
......
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