annotate gcc/ada/exp_ch8.adb @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- E X P _ C H 8 --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- B o d y --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
kono
parents:
diff changeset
17 -- for more details. You should have received a copy of the GNU General --
kono
parents:
diff changeset
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
kono
parents:
diff changeset
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
kono
parents:
diff changeset
20 -- --
kono
parents:
diff changeset
21 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
23 -- --
kono
parents:
diff changeset
24 ------------------------------------------------------------------------------
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 with Atree; use Atree;
kono
parents:
diff changeset
27 with Einfo; use Einfo;
kono
parents:
diff changeset
28 with Exp_Ch4; use Exp_Ch4;
kono
parents:
diff changeset
29 with Exp_Ch6; use Exp_Ch6;
kono
parents:
diff changeset
30 with Exp_Dbug; use Exp_Dbug;
kono
parents:
diff changeset
31 with Exp_Util; use Exp_Util;
kono
parents:
diff changeset
32 with Freeze; use Freeze;
kono
parents:
diff changeset
33 with Namet; use Namet;
kono
parents:
diff changeset
34 with Nmake; use Nmake;
kono
parents:
diff changeset
35 with Nlists; use Nlists;
kono
parents:
diff changeset
36 with Opt; use Opt;
kono
parents:
diff changeset
37 with Sem; use Sem;
kono
parents:
diff changeset
38 with Sem_Ch8; use Sem_Ch8;
kono
parents:
diff changeset
39 with Sem_Util; use Sem_Util;
kono
parents:
diff changeset
40 with Sinfo; use Sinfo;
kono
parents:
diff changeset
41 with Snames; use Snames;
kono
parents:
diff changeset
42 with Stand; use Stand;
kono
parents:
diff changeset
43 with Tbuild; use Tbuild;
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 package body Exp_Ch8 is
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 ---------------------------------------------
kono
parents:
diff changeset
48 -- Expand_N_Exception_Renaming_Declaration --
kono
parents:
diff changeset
49 ---------------------------------------------
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 procedure Expand_N_Exception_Renaming_Declaration (N : Node_Id) is
kono
parents:
diff changeset
52 Decl : Node_Id;
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 begin
kono
parents:
diff changeset
55 Decl := Debug_Renaming_Declaration (N);
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 if Present (Decl) then
kono
parents:
diff changeset
58 Insert_Action (N, Decl);
kono
parents:
diff changeset
59 end if;
kono
parents:
diff changeset
60 end Expand_N_Exception_Renaming_Declaration;
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 ------------------------------------------
kono
parents:
diff changeset
63 -- Expand_N_Object_Renaming_Declaration --
kono
parents:
diff changeset
64 ------------------------------------------
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 -- Most object renaming cases can be done by just capturing the address
kono
parents:
diff changeset
67 -- of the renamed object. The cases in which this is not true are when
kono
parents:
diff changeset
68 -- this address is not computable, since it involves extraction of a
kono
parents:
diff changeset
69 -- packed array element, or of a record component to which a component
kono
parents:
diff changeset
70 -- clause applies (that can specify an arbitrary bit boundary), or where
kono
parents:
diff changeset
71 -- the enclosing record itself has a non-standard representation.
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 -- In these two cases, we pre-evaluate the renaming expression, by
kono
parents:
diff changeset
74 -- extracting and freezing the values of any subscripts, and then we
kono
parents:
diff changeset
75 -- set the flag Is_Renaming_Of_Object which means that any reference
kono
parents:
diff changeset
76 -- to the object will be handled by macro substitution in the front
kono
parents:
diff changeset
77 -- end, and the back end will know to ignore the renaming declaration.
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 -- An additional odd case that requires processing by expansion is
kono
parents:
diff changeset
80 -- the renaming of a discriminant of a mutable record type. The object
kono
parents:
diff changeset
81 -- is a constant because it renames something that cannot be assigned to,
kono
parents:
diff changeset
82 -- but in fact the underlying value can change and must be reevaluated
kono
parents:
diff changeset
83 -- at each reference. Gigi does have a notion of a "constant view" of
kono
parents:
diff changeset
84 -- an object, and therefore the front-end must perform the expansion.
kono
parents:
diff changeset
85 -- For simplicity, and to bypass some obscure code-generation problem,
kono
parents:
diff changeset
86 -- we use macro substitution for all renamed discriminants, whether the
kono
parents:
diff changeset
87 -- enclosing type is constrained or not.
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 -- The other special processing required is for the case of renaming
kono
parents:
diff changeset
90 -- of an object of a class wide type, where it is necessary to build
kono
parents:
diff changeset
91 -- the appropriate subtype for the renamed object.
kono
parents:
diff changeset
92 -- More comments needed for this para ???
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 procedure Expand_N_Object_Renaming_Declaration (N : Node_Id) is
kono
parents:
diff changeset
95 Nam : constant Node_Id := Name (N);
kono
parents:
diff changeset
96 Decl : Node_Id;
kono
parents:
diff changeset
97 T : Entity_Id;
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 function Evaluation_Required (Nam : Node_Id) return Boolean;
kono
parents:
diff changeset
100 -- Determines whether it is necessary to do static name evaluation for
kono
parents:
diff changeset
101 -- renaming of Nam. It is considered necessary if evaluating the name
kono
parents:
diff changeset
102 -- involves indexing a packed array, or extracting a component of a
kono
parents:
diff changeset
103 -- record to which a component clause applies. Note that we are only
kono
parents:
diff changeset
104 -- interested in these operations if they occur as part of the name
kono
parents:
diff changeset
105 -- itself, subscripts are just values that are computed as part of the
kono
parents:
diff changeset
106 -- evaluation, so their form is unimportant.
kono
parents:
diff changeset
107 -- In addition, always return True for Modify_Tree_For_C since the
kono
parents:
diff changeset
108 -- code generator doesn't know how to handle renamings.
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 -------------------------
kono
parents:
diff changeset
111 -- Evaluation_Required --
kono
parents:
diff changeset
112 -------------------------
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 function Evaluation_Required (Nam : Node_Id) return Boolean is
kono
parents:
diff changeset
115 begin
kono
parents:
diff changeset
116 if Modify_Tree_For_C then
kono
parents:
diff changeset
117 return True;
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 elsif Nkind_In (Nam, N_Indexed_Component, N_Slice) then
kono
parents:
diff changeset
120 if Is_Packed (Etype (Prefix (Nam))) then
kono
parents:
diff changeset
121 return True;
kono
parents:
diff changeset
122 else
kono
parents:
diff changeset
123 return Evaluation_Required (Prefix (Nam));
kono
parents:
diff changeset
124 end if;
kono
parents:
diff changeset
125
kono
parents:
diff changeset
126 elsif Nkind (Nam) = N_Selected_Component then
kono
parents:
diff changeset
127 declare
kono
parents:
diff changeset
128 Rec_Type : constant Entity_Id := Etype (Prefix (Nam));
kono
parents:
diff changeset
129
kono
parents:
diff changeset
130 begin
kono
parents:
diff changeset
131 if Present (Component_Clause (Entity (Selector_Name (Nam))))
kono
parents:
diff changeset
132 or else Has_Non_Standard_Rep (Rec_Type)
kono
parents:
diff changeset
133 then
kono
parents:
diff changeset
134 return True;
kono
parents:
diff changeset
135
kono
parents:
diff changeset
136 elsif Ekind (Entity (Selector_Name (Nam))) = E_Discriminant
kono
parents:
diff changeset
137 and then Is_Record_Type (Rec_Type)
kono
parents:
diff changeset
138 and then not Is_Concurrent_Record_Type (Rec_Type)
kono
parents:
diff changeset
139 then
kono
parents:
diff changeset
140 return True;
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 else
kono
parents:
diff changeset
143 return Evaluation_Required (Prefix (Nam));
kono
parents:
diff changeset
144 end if;
kono
parents:
diff changeset
145 end;
kono
parents:
diff changeset
146
kono
parents:
diff changeset
147 else
kono
parents:
diff changeset
148 return False;
kono
parents:
diff changeset
149 end if;
kono
parents:
diff changeset
150 end Evaluation_Required;
kono
parents:
diff changeset
151
kono
parents:
diff changeset
152 -- Start of processing for Expand_N_Object_Renaming_Declaration
kono
parents:
diff changeset
153
kono
parents:
diff changeset
154 begin
kono
parents:
diff changeset
155 -- Perform name evaluation if required
kono
parents:
diff changeset
156
kono
parents:
diff changeset
157 if Evaluation_Required (Nam) then
kono
parents:
diff changeset
158 Evaluate_Name (Nam);
kono
parents:
diff changeset
159 Set_Is_Renaming_Of_Object (Defining_Identifier (N));
kono
parents:
diff changeset
160 end if;
kono
parents:
diff changeset
161
kono
parents:
diff changeset
162 -- Deal with construction of subtype in class-wide case
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 T := Etype (Defining_Identifier (N));
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 if Is_Class_Wide_Type (T) then
kono
parents:
diff changeset
167 Expand_Subtype_From_Expr (N, T, Subtype_Mark (N), Name (N));
kono
parents:
diff changeset
168 Find_Type (Subtype_Mark (N));
kono
parents:
diff changeset
169 Set_Etype (Defining_Identifier (N), Entity (Subtype_Mark (N)));
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 -- Freeze the class-wide subtype here to ensure that the subtype
kono
parents:
diff changeset
172 -- and equivalent type are frozen before the renaming.
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 Freeze_Before (N, Entity (Subtype_Mark (N)));
kono
parents:
diff changeset
175 end if;
kono
parents:
diff changeset
176
kono
parents:
diff changeset
177 -- Ada 2005 (AI-318-02): If the renamed object is a call to a build-in-
kono
parents:
diff changeset
178 -- place function, then a temporary return object needs to be created
kono
parents:
diff changeset
179 -- and access to it must be passed to the function.
kono
parents:
diff changeset
180
kono
parents:
diff changeset
181 if Is_Build_In_Place_Function_Call (Nam) then
kono
parents:
diff changeset
182 Make_Build_In_Place_Call_In_Anonymous_Context (Nam);
kono
parents:
diff changeset
183
kono
parents:
diff changeset
184 -- Ada 2005 (AI-318-02): Specialization of previous case for renaming
kono
parents:
diff changeset
185 -- containing build-in-place function calls whose returned object covers
kono
parents:
diff changeset
186 -- interface types.
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 elsif Present (Unqual_BIP_Iface_Function_Call (Nam)) then
kono
parents:
diff changeset
189 Make_Build_In_Place_Iface_Call_In_Anonymous_Context (Nam);
kono
parents:
diff changeset
190 end if;
kono
parents:
diff changeset
191
kono
parents:
diff changeset
192 -- Create renaming entry for debug information. Mark the entity as
kono
parents:
diff changeset
193 -- needing debug info if it comes from sources because the current
kono
parents:
diff changeset
194 -- setting in Freeze_Entity occurs too late. ???
kono
parents:
diff changeset
195
kono
parents:
diff changeset
196 if Comes_From_Source (Defining_Identifier (N)) then
kono
parents:
diff changeset
197 Set_Debug_Info_Needed (Defining_Identifier (N));
kono
parents:
diff changeset
198 end if;
kono
parents:
diff changeset
199
kono
parents:
diff changeset
200 Decl := Debug_Renaming_Declaration (N);
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 if Present (Decl) then
kono
parents:
diff changeset
203 Insert_Action (N, Decl);
kono
parents:
diff changeset
204 end if;
kono
parents:
diff changeset
205 end Expand_N_Object_Renaming_Declaration;
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207 -------------------------------------------
kono
parents:
diff changeset
208 -- Expand_N_Package_Renaming_Declaration --
kono
parents:
diff changeset
209 -------------------------------------------
kono
parents:
diff changeset
210
kono
parents:
diff changeset
211 procedure Expand_N_Package_Renaming_Declaration (N : Node_Id) is
kono
parents:
diff changeset
212 Decl : Node_Id;
kono
parents:
diff changeset
213
kono
parents:
diff changeset
214 begin
kono
parents:
diff changeset
215 Decl := Debug_Renaming_Declaration (N);
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 if Present (Decl) then
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 -- If we are in a compilation unit, then this is an outer
kono
parents:
diff changeset
220 -- level declaration, and must have a scope of Standard
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 if Nkind (Parent (N)) = N_Compilation_Unit then
kono
parents:
diff changeset
223 declare
kono
parents:
diff changeset
224 Aux : constant Node_Id := Aux_Decls_Node (Parent (N));
kono
parents:
diff changeset
225
kono
parents:
diff changeset
226 begin
kono
parents:
diff changeset
227 Push_Scope (Standard_Standard);
kono
parents:
diff changeset
228
kono
parents:
diff changeset
229 if No (Actions (Aux)) then
kono
parents:
diff changeset
230 Set_Actions (Aux, New_List (Decl));
kono
parents:
diff changeset
231 else
kono
parents:
diff changeset
232 Append (Decl, Actions (Aux));
kono
parents:
diff changeset
233 end if;
kono
parents:
diff changeset
234
kono
parents:
diff changeset
235 Analyze (Decl);
kono
parents:
diff changeset
236
kono
parents:
diff changeset
237 -- Enter the debug variable in the qualification list, which
kono
parents:
diff changeset
238 -- must be done at this point because auxiliary declarations
kono
parents:
diff changeset
239 -- occur at the library level and aren't associated with a
kono
parents:
diff changeset
240 -- normal scope.
kono
parents:
diff changeset
241
kono
parents:
diff changeset
242 Qualify_Entity_Names (Decl);
kono
parents:
diff changeset
243
kono
parents:
diff changeset
244 Pop_Scope;
kono
parents:
diff changeset
245 end;
kono
parents:
diff changeset
246
kono
parents:
diff changeset
247 -- Otherwise, just insert after the package declaration
kono
parents:
diff changeset
248
kono
parents:
diff changeset
249 else
kono
parents:
diff changeset
250 Insert_Action (N, Decl);
kono
parents:
diff changeset
251 end if;
kono
parents:
diff changeset
252 end if;
kono
parents:
diff changeset
253 end Expand_N_Package_Renaming_Declaration;
kono
parents:
diff changeset
254
kono
parents:
diff changeset
255 ----------------------------------------------
kono
parents:
diff changeset
256 -- Expand_N_Subprogram_Renaming_Declaration --
kono
parents:
diff changeset
257 ----------------------------------------------
kono
parents:
diff changeset
258
kono
parents:
diff changeset
259 procedure Expand_N_Subprogram_Renaming_Declaration (N : Node_Id) is
kono
parents:
diff changeset
260 Loc : constant Source_Ptr := Sloc (N);
kono
parents:
diff changeset
261 Id : constant Entity_Id := Defining_Entity (N);
kono
parents:
diff changeset
262
kono
parents:
diff changeset
263 function Build_Body_For_Renaming return Node_Id;
kono
parents:
diff changeset
264 -- Build and return the body for the renaming declaration of an equality
kono
parents:
diff changeset
265 -- or inequality operator.
kono
parents:
diff changeset
266
kono
parents:
diff changeset
267 -----------------------------
kono
parents:
diff changeset
268 -- Build_Body_For_Renaming --
kono
parents:
diff changeset
269 -----------------------------
kono
parents:
diff changeset
270
kono
parents:
diff changeset
271 function Build_Body_For_Renaming return Node_Id is
kono
parents:
diff changeset
272 Body_Id : Entity_Id;
kono
parents:
diff changeset
273 Decl : Node_Id;
kono
parents:
diff changeset
274
kono
parents:
diff changeset
275 begin
kono
parents:
diff changeset
276 Set_Alias (Id, Empty);
kono
parents:
diff changeset
277 Set_Has_Completion (Id, False);
kono
parents:
diff changeset
278 Rewrite (N,
kono
parents:
diff changeset
279 Make_Subprogram_Declaration (Sloc (N),
kono
parents:
diff changeset
280 Specification => Specification (N)));
kono
parents:
diff changeset
281 Set_Has_Delayed_Freeze (Id);
kono
parents:
diff changeset
282
kono
parents:
diff changeset
283 Body_Id := Make_Defining_Identifier (Sloc (N), Chars (Id));
kono
parents:
diff changeset
284 Set_Debug_Info_Needed (Body_Id);
kono
parents:
diff changeset
285
kono
parents:
diff changeset
286 Decl :=
kono
parents:
diff changeset
287 Make_Subprogram_Body (Loc,
kono
parents:
diff changeset
288 Specification =>
kono
parents:
diff changeset
289 Make_Function_Specification (Loc,
kono
parents:
diff changeset
290 Defining_Unit_Name => Body_Id,
kono
parents:
diff changeset
291 Parameter_Specifications => Copy_Parameter_List (Id),
kono
parents:
diff changeset
292 Result_Definition =>
kono
parents:
diff changeset
293 New_Occurrence_Of (Standard_Boolean, Loc)),
kono
parents:
diff changeset
294 Declarations => Empty_List,
kono
parents:
diff changeset
295 Handled_Statement_Sequence => Empty);
kono
parents:
diff changeset
296
kono
parents:
diff changeset
297 return Decl;
kono
parents:
diff changeset
298 end Build_Body_For_Renaming;
kono
parents:
diff changeset
299
kono
parents:
diff changeset
300 -- Local variables
kono
parents:
diff changeset
301
kono
parents:
diff changeset
302 Nam : constant Node_Id := Name (N);
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 -- Start of processing for Expand_N_Subprogram_Renaming_Declaration
kono
parents:
diff changeset
305
kono
parents:
diff changeset
306 begin
kono
parents:
diff changeset
307 -- When the prefix of the name is a function call, we must force the
kono
parents:
diff changeset
308 -- call to be made by removing side effects from the call, since we
kono
parents:
diff changeset
309 -- must only call the function once.
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 if Nkind (Nam) = N_Selected_Component
kono
parents:
diff changeset
312 and then Nkind (Prefix (Nam)) = N_Function_Call
kono
parents:
diff changeset
313 then
kono
parents:
diff changeset
314 Remove_Side_Effects (Prefix (Nam));
kono
parents:
diff changeset
315
kono
parents:
diff changeset
316 -- For an explicit dereference, the prefix must be captured to prevent
kono
parents:
diff changeset
317 -- reevaluation on calls through the renaming, which could result in
kono
parents:
diff changeset
318 -- calling the wrong subprogram if the access value were to be changed.
kono
parents:
diff changeset
319
kono
parents:
diff changeset
320 elsif Nkind (Nam) = N_Explicit_Dereference then
kono
parents:
diff changeset
321 Force_Evaluation (Prefix (Nam));
kono
parents:
diff changeset
322 end if;
kono
parents:
diff changeset
323
kono
parents:
diff changeset
324 -- Handle cases where we build a body for a renamed equality
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 if Is_Entity_Name (Nam)
kono
parents:
diff changeset
327 and then Chars (Entity (Nam)) = Name_Op_Eq
kono
parents:
diff changeset
328 and then Scope (Entity (Nam)) = Standard_Standard
kono
parents:
diff changeset
329 then
kono
parents:
diff changeset
330 declare
kono
parents:
diff changeset
331 Left : constant Entity_Id := First_Formal (Id);
kono
parents:
diff changeset
332 Right : constant Entity_Id := Next_Formal (Left);
kono
parents:
diff changeset
333 Typ : constant Entity_Id := Etype (Left);
kono
parents:
diff changeset
334 Decl : Node_Id;
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 begin
kono
parents:
diff changeset
337 -- Check whether this is a renaming of a predefined equality on an
kono
parents:
diff changeset
338 -- untagged record type (AI05-0123).
kono
parents:
diff changeset
339
kono
parents:
diff changeset
340 if Ada_Version >= Ada_2012
kono
parents:
diff changeset
341 and then Is_Record_Type (Typ)
kono
parents:
diff changeset
342 and then not Is_Tagged_Type (Typ)
kono
parents:
diff changeset
343 and then not Is_Frozen (Typ)
kono
parents:
diff changeset
344 then
kono
parents:
diff changeset
345 -- Build body for renamed equality, to capture its current
kono
parents:
diff changeset
346 -- meaning. It may be redefined later, but the renaming is
kono
parents:
diff changeset
347 -- elaborated where it occurs. This is technically known as
kono
parents:
diff changeset
348 -- Squirreling semantics. Renaming is rewritten as a subprogram
kono
parents:
diff changeset
349 -- declaration, and the generated body is inserted into the
kono
parents:
diff changeset
350 -- freeze actions for the subprogram.
kono
parents:
diff changeset
351
kono
parents:
diff changeset
352 Decl := Build_Body_For_Renaming;
kono
parents:
diff changeset
353
kono
parents:
diff changeset
354 Set_Handled_Statement_Sequence (Decl,
kono
parents:
diff changeset
355 Make_Handled_Sequence_Of_Statements (Loc,
kono
parents:
diff changeset
356 Statements => New_List (
kono
parents:
diff changeset
357 Make_Simple_Return_Statement (Loc,
kono
parents:
diff changeset
358 Expression =>
kono
parents:
diff changeset
359 Expand_Record_Equality
kono
parents:
diff changeset
360 (Id,
kono
parents:
diff changeset
361 Typ => Typ,
kono
parents:
diff changeset
362 Lhs => Make_Identifier (Loc, Chars (Left)),
kono
parents:
diff changeset
363 Rhs => Make_Identifier (Loc, Chars (Right)),
kono
parents:
diff changeset
364 Bodies => Declarations (Decl))))));
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 Append_Freeze_Action (Id, Decl);
kono
parents:
diff changeset
367 end if;
kono
parents:
diff changeset
368 end;
kono
parents:
diff changeset
369 end if;
kono
parents:
diff changeset
370 end Expand_N_Subprogram_Renaming_Declaration;
kono
parents:
diff changeset
371
kono
parents:
diff changeset
372 end Exp_Ch8;