Comp : Node_Id;
Choice : Node_Id;
Lo, Hi : Node_Id;
- Siz : Int := 0;
+ Siz : Int;
procedure Add_Range_Size;
-- Compute number of components specified by a component association
end Add_Range_Size;
begin
- -- Aggregate is either all positional or all named.
+ -- Aggregate is either all positional or all named
- if Present (Expressions (N)) then
- Siz := List_Length (Expressions (N));
- end if;
+ Siz := List_Length (Expressions (N));
if Present (Component_Associations (N)) then
Comp := First (Component_Associations (N));
and then not Opt.Suppress_Control_Flow_Optimizations
and then Nkind (N) = N_If_Statement
and then No (Elsif_Parts (N))
- and then Present (Else_Statements (N))
and then List_Length (Then_Statements (N)) = 1
and then List_Length (Else_Statements (N)) = 1
then
-- Preset arguments
- Arg_Count := 0;
- Arg1 := Empty;
+ Arg_Count := List_Length (Pragma_Argument_Associations (N));
+ Arg1 := First (Pragma_Argument_Associations (N));
Arg2 := Empty;
Arg3 := Empty;
Arg4 := Empty;
Arg5 := Empty;
- if Present (Pragma_Argument_Associations (N)) then
- Arg_Count := List_Length (Pragma_Argument_Associations (N));
- Arg1 := First (Pragma_Argument_Associations (N));
-
- if Present (Arg1) then
- Arg2 := Next (Arg1);
+ if Present (Arg1) then
+ Arg2 := Next (Arg1);
- if Present (Arg2) then
- Arg3 := Next (Arg2);
+ if Present (Arg2) then
+ Arg3 := Next (Arg2);
- if Present (Arg3) then
- Arg4 := Next (Arg3);
+ if Present (Arg3) then
+ Arg4 := Next (Arg3);
- if Present (Arg4) then
- Arg5 := Next (Arg4);
- end if;
+ if Present (Arg4) then
+ Arg5 := Next (Arg4);
end if;
end if;
end if;
begin
-- One argument, so check the argument
- if Present (PA) and then List_Length (PA) = 1 then
+ if List_Length (PA) = 1 then
if Nkind (First (PA)) = N_Parameter_Association then
Find_Var (Explicit_Actual_Parameter (First (PA)));
else