* [Ada] Fix style in expansion of multi-dimensional array aggregates
@ 2022-01-07 16:27 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-01-07 16:27 UTC (permalink / raw)
To: gcc-patches; +Cc: Piotr Trojanek
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
Cleanup; semantics is unaffected.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* exp_aggr.adb (Build_Array_Aggr_Code): Fix inconsistent style
in comments and code.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 1397 bytes --]
diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb
--- a/gcc/ada/exp_aggr.adb
+++ b/gcc/ada/exp_aggr.adb
@@ -1021,7 +1021,7 @@ package body Exp_Aggr is
-- 2. If the aggregate contains positional elements we
- -- (a) translate the positional elements in a series of assignments
+ -- (a) Translate the positional elements in a series of assignments
-- (b) Generate a final loop to cover the others choice if any.
-- Note that this final loop has to be a while loop since the case
@@ -1032,7 +1032,7 @@ package body Exp_Aggr is
-- cannot be handled by a for loop. Thus for the following
- -- array (L .. H) := (.. positional elements.., others =>E);
+ -- array (L .. H) := (.. positional elements.., others => E);
-- we always generate something like:
@@ -2063,11 +2063,9 @@ package body Exp_Aggr is
-- Construct "for L_J in Index_Base range L .. H"
L_Iteration_Scheme :=
- Make_Iteration_Scheme
- (Loc,
+ Make_Iteration_Scheme (Loc,
Loop_Parameter_Specification =>
- Make_Loop_Parameter_Specification
- (Loc,
+ Make_Loop_Parameter_Specification (Loc,
Defining_Identifier => L_J,
Discrete_Subtype_Definition => L_Range));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-07 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 16:27 [Ada] Fix style in expansion of multi-dimensional array aggregates Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).