]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2011-08-02 Robert Dewar <dewar@adacore.com>
2
3 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
4 exp_ch3.adb: Minor reformatting.
5
6 2011-08-02 Emmanuel Briot <briot@adacore.com>
7
8 * adaint.c (__gnat_locate_exec_on_path): only returns executable
9 files, not any regular file.
10 (__gnat_locate_file_with_predicate): new subprogram.
11
12 2011-08-02 Yannick Moy <moy@adacore.com>
13
14 * sinfo.adb, sinfo.ads: Restrict the use of flags
15 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
16 nodes, plus N_Subtype_Declaration for the 2nd one.
17
18 2011-08-02 Sergey Rybin <rybin@adacore.com>
19
20 * gnat_rm.texi: Ramification of pragma Eliminate documentation
21 - fix bugs in the description of Source_Trace;
22 - get rid of UNIT_NAME;
23
24 2011-08-02 Javier Miranda <miranda@adacore.com>
25
26 * exp_ch9.adb
27 (Build_Dispatching_Requeue): Adding support for VM targets
28 since we cannot directly reference the Tag entity.
29 * exp_sel.adb (Build_K): Adding support for VM targets.
30 (Build_S_Assignment): Adding support for VM targets.
31 * exp_disp.adb
32 (Default_Prim_Op_Position): In VM targets do not restrict availability
33 of predefined interface primitives to compiling in Ada 2005 mode.
34 (Is_Predefined_Interface_Primitive): In VM targets this service is not
35 restricted to compiling in Ada 2005 mode.
36 (Make_VM_TSD): Generate code that declares and initializes the OSD
37 record. Needed to support dispatching calls through synchronized
38 interfaces.
39 * exp_ch3.adb
40 (Make_Predefined_Primitive_Specs): Enable generation of predefined
41 primitives associated with synchronized interfaces.
42 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
43 primitives associated with synchronized interfaces.
44
45 2011-08-02 Yannick Moy <moy@adacore.com>
46
47 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
48 statements hidden in SPARK if preceded by the HIDE directive
49 (Parse_Exception_Handlers): mark each exception handler in a sequence of
50 exception handlers as hidden in SPARK if preceded by the HIDE directive
51 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
52 if starting with the HIDE directive
53 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
54 starting with the HIDE directive; mark the declarations in a private
55 part as hidden in SPARK if the private part starts with the HIDE
56 directive
57 * restrict.adb, restrict.ads
58 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
59 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
60 argument node belongs to a part which is hidden in SPARK
61 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
62 parts in SPARK; protect the possibly costly call to
63 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
64 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
65 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
66 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
67 Tok_SPARK_Hide.
68 (Scan): recognize special comment starting with '#' and followed by
69 SPARK keyword "hide" as a HIDE directive.
70
71 2011-08-02 Yannick Moy <moy@adacore.com>
72
73 * types.ads, erroutc.ads: Minor reformatting.
74
75 2011-08-02 Vincent Celier <celier@adacore.com>
76
77 * link.c: Add response file support for cross platforms.
78
79 2011-08-02 Ed Schonberg <schonberg@adacore.com>
80
81 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
82 in an association, set parent field of copy before partial analysis.
83 * sem_res.adb (Resolve_Slice): create reference to itype only when
84 expansion is enabled.
85
86 2011-08-02 Yannick Moy <moy@adacore.com>
87
88 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
89 for new flag denoting which subprogram bodies are in ALFA
90 * restrict.adb, sem_ch7.adb: Update comment
91 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
92 sem_ch9.adb, sem_res.adb: Add calls to
93 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
94 * sem_ch6.adb (Analyze_Function_Return): add calls to
95 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
96 middle of the body, and extended return.
97 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
98 False when missing return.
99 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
100 to True for subprograms whose spec is in ALFA. Remove later on the flag
101 on the entity used for a subprogram body when there exists a separate
102 declaration.
103 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
104 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
105 False, otherwise do nothing.
106
107 2011-08-02 Robert Dewar <dewar@adacore.com>
108
109 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
110
111 2011-08-02 Yannick Moy <moy@adacore.com>
112
113 * sem_ch4.ads: minor formatting.
114
115 2011-08-02 Yannick Moy <moy@adacore.com>
116
117 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
118 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
119 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
120 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
121 opt.ads: cleanup of SPARK mode
122
123 2011-08-02 Yannick Moy <moy@adacore.com>
124
125 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
126 types.
127 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
128 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
129 * sem_ch3.adb
130 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
131 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
132 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
133 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
134 types.
135 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
136 non-static range.
137 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
138 functions whose return type is not in ALFA.
139 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
140 specifications.
141 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
142 parameter's type is not in ALFA.
143 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
144 types are in ALFA.
145
146 2011-08-02 Ed Schonberg <schonberg@adacore.com>
147
148 * sem_ch6 (Analyze_Expression_Function): treat the function as
149 Inline_Always, and introduce a subprogram declaration for it when it is
150 not a completion.
151 * inline.adb (Add_Inlined_Body): recognize bodies that come from
152 expression functions, so that the back-end can determine whether they
153 can in fact be inlined.
154 * sem_util.adb (Is_Expression_Function): predicate to determine whether
155 a function body comes from an expression function.
156
157 2011-08-02 Gary Dismukes <dismukes@adacore.com>
158
159 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
160 null exclusions to test Can_Never_Be_Null on the anonymous access types
161 of the formals rather than testing the formals themselves. Exclude this
162 check in cases where the Old_Formal is marked as a controlling formal,
163 to avoid issuing spurious errors for bodies completing dispatching
164 operations (due to the flag not getting set on controlling access
165 formals in body specs).
166 (Find_Corresponding_Spec): When checking full and subtype conformance of
167 subprogram bodies in instances, pass Designated and E in that order, for
168 consistency with the expected order of the formals (New_Id followed by
169 Old_Id).
170
171 2011-08-02 Robert Dewar <dewar@adacore.com>
172
173 * sem_ch8.adb: Minor reformatting.
174
175 2011-08-02 Ed Schonberg <schonberg@adacore.com>
176
177 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
178 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
179 primitive operations of class-wide actuals.
180
181 2011-08-02 Javier Miranda <miranda@adacore.com>
182
183 * exp_atag.ads, exp_atag.adb
184 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
185 since its value is implicitly passed in argument Typ.
186 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
187 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
188 Build_Common_Dispatching_Select_Statements.
189
190 2011-08-02 Robert Dewar <dewar@adacore.com>
191
192 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
193 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
194 Minor reformatting.
195
196 2011-08-02 Robert Dewar <dewar@adacore.com>
197
198 * sem_res.adb: Minor reformatting.
199 * sem_prag.adb: Minor reformatting.
200
201 2011-08-02 Javier Miranda <miranda@adacore.com>
202
203 * exp_atag.adb, exp_atags.ads
204 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
205 by the tagged type Entity. Required to use this routine in the VM
206 targets since we do not have available the Tag entity in the VM
207 platforms.
208 * exp_ch6.adb
209 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
210 Ada.Tags has not been previously loaded.
211 * exp_ch7.adb
212 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
213 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
214 * sem_aux.adb
215 (Enclosing_Dynamic_Scope): Add missing support to handle the full
216 view of enclosing scopes. Required to handle enclosing scopes that
217 are synchronized types whose full view is a task type.
218 * exp_disp.adb
219 (Build_VM_TSDs): Minor code improvement to avoid generating and
220 analyzing lists with empty nodes.
221 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
222 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
223 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
224 (Make_Disp_Timed_Select_Body): Add support for VM targets.
225 (Make_Select_Specific_Data_Table): Add support for VM targets.
226 (Make_VM_TSD): Generate code to initialize the SSD structure of
227 the TSD.
228
229 2011-08-02 Yannick Moy <moy@adacore.com>
230
231 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
232 cross-references section in ALI.
233 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
234 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
235 Sub).
236 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
237 subprogram or package entity of a node
238 (Is_Local_Reference_Type): new function returns True for references
239 selected in local cross-references.
240 (Lt): function extracted from Lt in Output_References
241 (Write_Entity_Name): function extracted from Output_References
242 (Generate_Definition): generate reference with type 'D' for definition
243 of objects (object declaration and parameter specification), with
244 appropriate locations and units, for use in local cross-references.
245 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
246 references of type 'I' for initialization in object definition.
247 (Output_References): move part of function Lt and procedure
248 Write_Entity_Name outside of the body. Ignore references of types 'D'
249 and 'I' introduced for local cross-references.
250 (Output_Local_References): new procedure to output the local
251 cross-references sections.
252 (Lref_Entity_Status): new array defining whether an entity is a local
253 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
254 with 'I' type when initialization expression is present.
255 * get_scos.adb, get_scos.ads: Correct comments and typos
256
257 2011-08-02 Javier Miranda <miranda@adacore.com>
258
259 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
260 the JVM target.
261 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
262 the JVM target.
263 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
264 TSD support.
265
266 2011-08-02 Vincent Celier <celier@adacore.com>
267
268 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
269 (No_Space_Img): New function
270 (Find_Excluded_Sources): When reading from a file, record the file name
271 and the line number for each excluded source.
272 (Mark_Excluded_Sources): When reporting an error, if the excluded
273 sources were read from a file, include file name and line number in
274 the error message.
275
276 2011-08-02 Ed Schonberg <schonberg@adacore.com>
277
278 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
279
280 2011-08-02 Robert Dewar <dewar@adacore.com>
281
282 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
283
284 2011-08-02 Javier Miranda <miranda@adacore.com>
285
286 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
287 generation of TSDs to the DOTNET compiler.
288 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
289 generation of TSDs to the DOTNET compiler.
290
291 2011-08-02 Javier Miranda <miranda@adacore.com>
292
293 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
294 record of all the tagged types declared inside library level package
295 declarations, library level package bodies or library level subprograms.
296 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
297 associated with a given tagged type.
298 (Build_VM_TSDs): New subprogram.
299 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
300 compilation units that are subprograms.
301 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
302 compilation units that are package bodies.
303 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
304 units that are a package declaration or a package instantiation.
305 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
306 reorganization to improve the error generated by the frontend when the
307 function Ada.Tags.Secondary_Tag is not available.
308 * rtsfind.ads (RE_Register_TSD): New runtime entity.
309 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
310
311 2011-08-02 Javier Miranda <miranda@adacore.com>
312
313 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
314
315 2011-08-02 Robert Dewar <dewar@adacore.com>
316
317 * s-imenne.ads: Minor reformatting.
318
319 2011-08-02 Robert Dewar <dewar@adacore.com>
320
321 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
322 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
323 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
324
325 2011-08-02 Robert Dewar <dewar@adacore.com>
326
327 * einfo.ads (Materialize_Entity): Document this is only for renamings
328 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
329 required debug information in the case where we transform the object
330 declaration into a renaming declaration.
331 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
332 object
333 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
334 Materialize_Entity.
335
336 2011-08-02 Robert Dewar <dewar@adacore.com>
337
338 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
339 Suppress_Init_Procs.
340 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
341 Suppress_Initialization/Initialization_Suppressed.
342 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
343 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
344 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
345 * sem_prag.adb: New processing for pragma Suppress_Initialization.
346
347 2011-08-02 Robert Dewar <dewar@adacore.com>
348
349 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
350 Minor reformatting.
351
352 2011-08-02 Ed Schonberg <schonberg@adacore.com>
353
354 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
355 only have inheritable classwide pre/postconditions.
356
357 2011-08-02 Javier Miranda <miranda@adacore.com>
358
359 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
360 * rtsfind.ads (RE_Check_TSD): New runtime entity.
361 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
362 checks if the external tag of a type is the same as the external tag
363 of some other declaration.
364
365 2011-08-02 Thomas Quinot <quinot@adacore.com>
366
367 * s-taskin.ads: Minor reformatting.
368
369 2011-08-02 Emmanuel Briot <briot@adacore.com>
370
371 * g-comlin.adb (Display_Help): swap the order in which it prints the
372 short help and the general usage.
373
374 2011-08-02 Ed Schonberg <schonberg@adacore.com>
375
376 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
377 the aspect declarations and attach them to the generic copy for
378 subsequent analysis.
379 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
380 declarations of the generic tree to the new subprogram declarations.
381 * sem_attr.adb (Check_Precondition_Postcondition): recognize
382 conditions that apply to a subprogram instance.
383
384 2011-08-02 Robert Dewar <dewar@adacore.com>
385
386 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
387
388 2011-08-02 Ed Schonberg <schonberg@adacore.com>
389
390 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
391 private type with a tagged full view is not derived in the immediate
392 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
393
394 2011-08-02 Robert Dewar <dewar@adacore.com>
395
396 * exp_ch4.adb: Minor reformatting.
397
398 2011-08-02 Ed Schonberg <schonberg@adacore.com>
399
400 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
401 Ada2012 iterator, the loop will be rewritten during expansion into a
402 while loop with a cursor and an element declaration. Do not analyze the
403 body in this case, because if the container is for indefinite types the
404 actual subtype of the elements will only be determined when the cursor
405 declaration is analyzed.
406
407 2011-08-02 Arnaud Charlet <charlet@adacore.com>
408
409 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
410 size/alignment related attributes in CodePeer_Mode.
411
412 2011-08-02 Gary Dismukes <dismukes@adacore.com>
413
414 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
415 Prepend_Element, since this can result in the operation getting the
416 wrong slot in the full type's dispatch table if the full type has
417 inherited operations. The incomplete type's operation will get added
418 to the proper position in the full type's primitives
419 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
420 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
421 dispatching operations, since there are cases where nonprimitive
422 subprograms can get added to the list of incomplete dependents (such
423 as subprograms in nested packages).
424 * sem_ch6.adb (Process_Formals): First, remove test for being in a
425 private part when determining whether to add a primitive with a
426 parameter of a tagged incomplete type to the Private_Dependents list.
427 Such primitives can also occur in the visible part, and should not have
428 been excluded from being private dependents.
429 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
430 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
431 list of a Taft-amendment incomplete type is a primitive before issuing
432 an error that the full type must appear in the same unit. There are
433 cases where nonprimitives can be in the list (such as subprograms in
434 nested packages).
435 * sem_disp.adb (Derives_From): Use correct condition for checking that
436 a formal's type is derived from the type of the corresponding formal in
437 the parent subprogram (the condition was completely wrong). Add
438 checking that was missing for controlling result types being derived
439 from the result type of the parent operation.
440
441 2011-08-02 Yannick Moy <moy@adacore.com>
442
443 * errout.adb (First_Node): minor renaming
444 * restrict.adb (Check_Formal_Restriction): put restriction warning on
445 first node.
446
447 2011-08-02 Yannick Moy <moy@adacore.com>
448
449 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
450 before accessing operands.
451 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
452 decide whether an initialization expression respects SPARK rules, as
453 the plain node is the expanded one. This allows for more valid warnings
454 to be issued.
455 * gnat_rm.texi: Minor update.
456
457 2011-08-02 Arnaud Charlet <charlet@adacore.com>
458
459 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
460 previous change.
461
462 2011-08-02 Robert Dewar <dewar@adacore.com>
463
464 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
465
466 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
467
468 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
469 loop statements and the element renaming declaration with a block when
470 the element type is controlled.
471
472 2011-08-02 Yannick Moy <moy@adacore.com>
473
474 * sinfo.ads: Minor formatting.
475
476 2011-08-02 Ed Schonberg <schonberg@adacore.com>
477
478 * sem_aggr.adb (Add_Association): if the association has a box and no
479 expression, use the Sloc of the aggregate itself for the new
480 association.
481 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
482 the Original_Node.
483
484 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
485
486 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
487 When a container is provided via a function call, generate a renaming
488 of the function result. This avoids the creation of a transient scope
489 and the premature finalization of the container.
490 * exp_ch7.adb (Is_Container_Cursor): Removed.
491 (Wrap_Transient_Declaration): Remove the supression of the finalization
492 of the list controller when the declaration denotes a container cursor,
493 it is not needed.
494
495 2011-08-02 Yannick Moy <moy@adacore.com>
496
497 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
498 node is from source, instead of the original node being from source.
499 * sem_aggr.adb
500 (Resolve_Array_Aggregate): refine the check for a static expression, to
501 recognize also static ranges
502 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
503 Array_Type_Declaration): postpone the test for the type being a subtype
504 mark after the type has been resolved, so that component-selection and
505 expanded-name are discriminated.
506 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
507 to distinguish the case of an iteration scheme, so that an error is
508 issed on a non-static range in SPARK except in an iteration scheme.
509 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
510 In_Iter_Schm = True.
511 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
512 user-defined operators so that they are allowed in renaming
513 * sem_ch8.adb
514 (Find_Selected_Component): refine the check for prefixing of operators
515 so that they are allowed in renaming. Move the checks for restrictions
516 on selector name after analysis discriminated between
517 component-selection and expanded-name.
518 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
519 concatenation argument of string type if it is static.
520 * sem_util.adb, sem_util.ads
521 (Check_Later_Vs_Basic_Declarations): add a new function
522 Is_Later_Declarative_Item to decice which declarations are allowed as
523 later items, in the two different modes Ada 83 and SPARK. In the SPARK
524 mode, add that renamings are considered as later items.
525 (Enclosing_Package): new function to return the enclosing package
526 (Enter_Name): correct the rule for homonyms in SPARK
527 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
528 from source (result of expansion) to avoid issuing wrong warnings.
529
530 2011-08-02 Ed Schonberg <schonberg@adacore.com>
531
532 * errout.adb: On anything but an expression First_Node returns its
533 argument.
534
535 2011-08-02 Pascal Obry <obry@adacore.com>
536
537 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
538
539 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
540
541 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
542 Set the associated loop as the related expression of internally
543 generated cursors.
544 * exp_ch7.adb (Is_Container_Cursor): New routine.
545 (Wrap_Transient_Declaration): Supress the finalization of the list
546 controller when the declaration denotes a container cursor.
547
548 2011-08-02 Yannick Moy <moy@adacore.com>
549
550 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
551 command line now.
552 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
553 expression is a simple expression. This check cannot be performed in
554 the semantics, so just drop it.
555 (P_Index_Or_Discriminant_Constraint): move check that the index or
556 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
557 semantics. Other cases were previously checked in the semantics.
558 * par-ch4.adb (P_Name): move checks that a selector name is not
559 character literal or an operator symbol to Find_Selected_Component in
560 the semantics
561 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
562 declarations are not placed after later declarations in a separate
563 procedure in Sem_Util (possibly not the best choice?), to be used both
564 during parsing, for Ada 83 mode, and during semantic analysis, for
565 SPARK mode.
566 * par-endh.adb (Check_End): move check that end label is not missing
567 to Process_End_Label in the semantics
568 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
569 the special case for SPARK restriction
570 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
571 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
572 parameter Force to issue the error message even on internal node (used
573 for generated end label). Call Check_Restriction to check when an error
574 must be issued. In SPARK mode, issue an error message even if the
575 restriction is not set.
576 (Check_Restriction): new procedure with an additional out parameter to
577 inform the caller that a message has been issued
578 * sem_aggr.adb: Minor modification of message
579 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
580 instead of issuing an error message directly
581 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
582 declarations are not placed after later declarations, by calling
583 Check_Later_Vs_Basic_Declarations
584 (Analyze_Subtype_Declaration): move here the check that an index or
585 discriminant constraint must be a subtype mark. Change the check that
586 a subtype of String must start at one so that it works on subtype marks.
587 * sem_ch4.adb (Analyze_Call): move here the check that a named
588 association cannot follow a positional one in a call
589 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
590 instead of issuing an error message directly
591 * sem_ch8.adb (Find_Selected_Component): move here the check that a
592 selector name is not a character literal or an operator symbol. Move
593 here the check that the prefix of an expanded name cannot be a
594 subprogram or a loop statement.
595 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
596 procedure called from parsing and semantics to check that basic
597 declarations are not placed after later declarations
598 (Process_End_Label): move here the check that end label is not missing
599
600 2011-08-02 Arnaud Charlet <charlet@adacore.com>
601
602 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
603 representation clause in codepeer mode, since it confuses CodePeer and
604 does not bring useful info.
605
606 2011-08-02 Ed Falis <falis@adacore.com>
607
608 * init.c: initialize fp hw on MILS.
609
610 2011-08-02 Ed Schonberg <schonberg@adacore.com>
611
612 * errout.adb (First_Node): for bodies, return the node itself (small
613 optimization). For other nodes, do not check source_unit if the node
614 comes from Standard.
615
616 2011-08-02 Robert Dewar <dewar@adacore.com>
617
618 * exp_ch3.adb: Minor comment additions.
619 * sem_ch13.adb: Minor reformatting.
620
621 2011-08-02 Pascal Obry <obry@adacore.com>
622
623 * make.adb, makeutl.adb: Removes some superfluous directory separator.
624
625 2011-08-02 Robert Dewar <dewar@adacore.com>
626
627 * sem_attr.adb: Minor reformatting.
628
629 2011-08-02 Robert Dewar <dewar@adacore.com>
630
631 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
632 (Has_Default_Component_Value): Removed
633 * einfo.ads Comment updates
634 (Has_Default_Aspect): Replaces Has_Default_Value
635 (Has_Default_Component_Value): Removed
636 * exp_ch13.adb
637 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
638 * exp_ch3.adb
639 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
640 (Get_Simple_Init_Val): Handle Default_Value aspect
641 (Needs_Simple_Initialization): Handle Default_Value aspect
642 * exp_ch3.ads: Needs_Simple_Initialization
643 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
644 * par-prag.adb (Pragma_Default[_Component]Value) Removed
645 * sem_ch13.adb
646 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
647 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
648 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
649
650 2011-08-02 Ed Schonberg <schonberg@adacore.com>
651
652 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
653 package containing iteration primitives.
654 exp_ch5.adb (Expand_Iterator_Loop): ditto.
655
656 2011-08-02 Ed Schonberg <schonberg@adacore.com>
657
658 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
659 "of", pre-analyze expression in case it is a function call with
660 finalization actions that must be placed ahead of the loop.
661 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
662 on an Ada2012 iterator, insert them ahead of the rewritten loop.
663
664 2011-08-02 Geert Bosch <bosch@adacore.com>
665
666 * cstand.adb (Create_Float_Types): Only consider C's long double for
667 Long_Long_Float, in addition to double.
668
669 2011-08-02 Robert Dewar <dewar@adacore.com>
670
671 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
672 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
673 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
674 Minor reformatting.
675
676 2011-08-02 Ed Schonberg <schonberg@adacore.com>
677
678 * sem_attr.adb: handle properly 'Result when it is a prefix of an
679 indexed component.
680
681 2011-08-02 Javier Miranda <miranda@adacore.com>
682
683 * einfo.ads, einfo.adb
684 (Original_Access_Type): Move this attribute to Node26 since there was
685 an undocumented use of Node21 in E_Access_Subprogram_Type entities
686 which causes conflicts and breaks the generation of the .NET compiler.
687 (Interface_Name): Add missing documentation on JGNAT only uses of
688 this attribute.
689
690 2011-08-02 Geert Bosch <bosch@adacore.com>
691
692 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
693 (Find_Back_End_Float_Type): Likewise
694 (Create_Back_End_Float_Types): Likewise
695 (Create_Float_Types): Likewise
696 (Register_Float_Type): Likewise
697 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
698 Nlist and split out type selection in new local Find_Base_Type function.
699 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
700 Nlist
701 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
702
703 2011-08-02 Robert Dewar <dewar@adacore.com>
704
705 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
706 alpha order).
707 * opt.ads: Minor comment change.
708 * sem_ch12.adb: Minor code reorganization.
709
710 2011-08-02 Gary Dismukes <dismukes@adacore.com>
711
712 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
713 subtype's list of rep items to the list on the full subtype in the case
714 where the lists are the same.
715
716 2011-08-02 Geert Bosch <bosch@adacore.com>
717
718 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
719 using the one from System.Strings, which also deallocates all strings.
720
721 2011-08-02 Geert Bosch <bosch@adacore.com>
722
723 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
724 function.
725 * gcc-interface/Make-lang.in: Update dependencies.
726
727 2011-08-02 Olivier Hainque <hainque@adacore.com>
728
729 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
730 end_locus.
731
732 2011-08-02 Javier Miranda <miranda@adacore.com>
733
734 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
735 associated with anonymous access to subprograms.
736
737 2011-08-02 Geert Bosch <bosch@adacore.com>
738
739 * opt.ads
740 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
741 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
742 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
743 (Add_Symbol_Definition): Move to switch-c.adb
744 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
745 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
746 (Add_Symbol_Definition): Move to switch-c.adb.
747 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
748 * sem_warn.adb
749 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
750 Move to warnsw.adb.
751 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
752 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
753 Move to warnsw.adb.
754 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
755 (Add_Symbol_Definition): Moved from Prepcomp.
756 * switch-c.ads: Update copyright notice. Use String_List instead of
757 Argument_List, removing dependency on System.OS_Lib.
758
759 2011-08-02 Yannick Moy <moy@adacore.com>
760
761 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
762 mode on initialization expression which does not respect SPARK
763 restrictions.
764 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
765 if the tree referenced by its argument represents an initialization
766 expression in SPARK, suitable for initializing an object in an object
767 declaration.
768
769 2011-08-02 Javier Miranda <miranda@adacore.com>
770
771 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
772 internally generated access to subprogram with its associated protected
773 subprogram type.
774 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
775
776 2011-08-02 Geert Bosch <bosch@adacore.com>
777
778 * cstand.adb (Register_Float_Type): Print information about type to
779 register, if the Debug_Flag_Dot_B is set.
780 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
781 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
782 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
783 with a requested precision of more than Max_Digits digits and no more
784 than Max_Base_Digits digits, if a range specification is present and the
785 Predefined_Float_Types list has a suitable type to derive from.
786 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
787 case of type completion with pragma Import
788 * sem_prag.adb
789 (Process_Import_Predefined_Type): Processing to complete a type
790 with pragma Import. Currently supports floating point types only.
791 (Set_Convention_From_Pragma): Do nothing without underlying type.
792 (Process_Convention): Guard against absence of underlying type,
793 which may happen when importing incomplete types.
794 (Process_Import_Or_Interface): Handle case of importing predefined
795 types. Tweak error message.
796
797 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
798
799 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
800 functions to previous change. Reorganize code slightly.
801
802 2011-08-02 Geert Bosch <bosch@adacore.com>
803
804 * back_end.ads (Register_Type_Proc): New call back procedure type for
805 allowing the back end to provide information about available types.
806 (Register_Back_End_Types): New procedure to register back end types.
807 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
808 available types.
809 * cstand.adb (Back_End_Float_Types): New list for floating point types
810 supported by the back end.
811 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
812 (Copy_Float_Type): New procedure to make new copies of predefined types.
813 (Register_Float_Type): New call back procedure to populate the BEFT list
814 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
815 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
816 (Create_Float_Types): New procedure to create entities for floating
817 point types predefined in Standard, and put these and any remaining
818 BEFTs on the Predefined_Float_Types list.
819 * stand.ads (Predefined_Float_Types): New list for predefined floating
820 point types that do not have declarations in package Standard.
821
822 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
823
824 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
825 entity node for the unit containing the parameter.
826 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
827 (Add_Inlined_Subprogram): Likewise.
828 * gcc-interface/Make-lang.in: Update dependencies.
829
830 2011-08-02 Thomas Quinot <quinot@adacore.com>
831
832 * s-stusta.adb (Print): Make sure Pos is always initialized to a
833 suitable value.
834
835 2011-08-02 Geert Bosch <bosch@adacore.com>
836
837 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
838
839 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
840
841 * sem_type.adb (Covers): Move trivial case to the top and reuse the
842 computed value of Base_Type.
843
844 2011-08-02 Yannick Moy <moy@adacore.com>
845
846 * restrict.adb (Check_Restriction): issue an error for any use of
847 class-wide, even if the No_Dispatch restriction is not set.
848 * sem_aggr.adb: Correct typos in comments and messages in formal mode
849 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
850 when completing a private extension, the type named in the private part
851 is not the same as that named in the visible part.
852 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
853 of an inherited primitive operations of a tagged type or type extension
854 that returns the tagged type.
855 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
856 function which returns True for an implicit operation inherited by the
857 derived type declaration for the argument type.
858 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
859 order.
860
861 2011-08-02 Ed Schonberg <schonberg@adacore.com>
862
863 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
864 Process_Bounds, to perform analysis with expansion of a range or an
865 expression that is the iteration scheme for a loop.
866 (Analyze_Iterator_Specification): If domain of iteration is given by a
867 function call with a controlled result, as is the case if call returns
868 a predefined container, ensure that finalization actions are properly
869 generated.
870 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
871
872 2011-08-02 Javier Miranda <miranda@adacore.com>
873
874 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
875 * gcc-interface/Make-lang.in: Update dependencies.
876
877 2011-08-02 Javier Miranda <miranda@adacore.com>
878
879 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
880 determine if the analysis is performed using N or Original_Node (N).
881 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
882 functionality of routine Is_Variable avoids code duplication.
883 * checks.adb (Determine_Range): Handle temporaries generated by
884 Remove_Side_Effects.
885
886 2011-08-02 Javier Miranda <miranda@adacore.com>
887
888 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
889 expansion of the condition. Required since the previous analysis was
890 done with expansion disabled (see Resolve_Quantified_Expression) and
891 hence checks were not inserted and record comparisons have not been
892 expanded.
893
894 2011-08-02 Ed Falis <falis@adacore.com>
895
896 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
897 Update header.
898
899 2011-08-02 Bob Duff <duff@adacore.com>
900
901 * opt.ads: Minor comment fix.
902
903 2011-08-02 Bob Duff <duff@adacore.com>
904
905 * sem_ch12.adb (Analyze_Package_Instantiation,
906 Analyze_Subprogram_Instantiation): Turn off style checking while
907 analyzing an instance. Whatever style checks that apply to the generic
908 unit should apply, so it makes no sense to apply them in an instance.
909 This was causing trouble when compiling an instance of a runtime
910 unit that violates the -gnatyO switch.
911 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
912 one of the two case statements, causing spurious errors.
913
914 2011-08-02 Robert Dewar <dewar@adacore.com>
915
916 * uname.adb: Minor reformatting.
917 * gnatcmd.adb: Minor reformatting.
918 * exp_attr.adb: Minor reformatting.
919
920 2011-08-02 Ed Schonberg <schonberg@adacore.com>
921
922 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
923 No_Dispatching_Calls, do not look for the Assign primitive, because
924 predefined primitives are not created in this case.
925
926 2011-08-02 Bob Duff <duff@adacore.com>
927
928 * stylesw.ads: Minor comment fixes.
929
930 2011-08-02 Robert Dewar <dewar@adacore.com>
931
932 * freeze.adb (Add_To_Result): New procedure.
933
934 2011-08-02 Jose Ruiz <ruiz@adacore.com>
935
936 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
937 time, if the specific run-time routines for handling streams of strings
938 are not available, use the default mechanism.
939
940 2011-08-02 Arnaud Charlet <charlet@adacore.com>
941
942 * s-regpat.ads: Fix typo.
943
944 2011-08-02 Vincent Celier <celier@adacore.com>
945
946 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
947 not null, call it to create the in memory config project file without
948 parsing an existing default config project file.
949
950 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
951
952 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
953
954 2011-08-02 Ed Schonberg <schonberg@adacore.com>
955
956 * sem_elim.adb: an abstract subprogram does not need an eliminate
957 pragma for its descendant to be eliminable.
958
959 2011-08-02 Ed Falis <falis@adacore.com>
960
961 * init.c: revert to handling before previous checkin for VxWorks
962 * s-intman-vxworks.adb: delete unnecessary declarations related to
963 using Ada interrupt facilities for handling signals.
964 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
965 * s-intman-vxworks.ads: Import __gnat_install_handler as
966 Initialize_Interrupts.
967 * s-taprop-vxworks.adb: Delete Signal_Mask.
968 (Abort_Handler): change construction of mask to unblock exception
969 signals.
970
971 2011-08-02 Jerome Guitton <guitton@adacore.com>
972
973 * a-except-2005.adb (Raise_From_Signal_Handler): Call
974 Debug_Raise_Exception before propagation starts.
975
976 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
977
978 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
979 to Restriction_Check_Required.
980 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
981 * sem_res.adb (Resolve_Call): Likewise.
982 * sem_attr.adb (Check_Stream_Attribute): Likewise.
983
984 2011-08-02 Bob Duff <duff@adacore.com>
985
986 * stylesw.ads: Update comment.
987 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
988 * errout.ads: Remove obsolete comment.
989
990 2011-08-02 Javier Miranda <miranda@adacore.com>
991
992 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
993 (Set_Is_Safe_To_Reevaluate): new procedure.
994 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
995 assignment is allowed on safe-to-reevaluate variables.
996 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
997 temporary created to remove side effects in expressions that use
998 the secondary stack as safe-to-reevaluate.
999 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
1000 variables that are not true constants.
1001
1002 2011-08-02 Robert Dewar <dewar@adacore.com>
1003
1004 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
1005 sem_res.adb, sem_ch6.adb: Minor reformatting.
1006
1007 2011-08-02 Jerome Guitton <guitton@adacore.com>
1008
1009 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
1010
1011 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1012
1013 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
1014 not set Overridden_Operation if subprogram is an initialization
1015 procedure.
1016
1017 2011-08-02 Yannick Moy <moy@adacore.com>
1018
1019 * par-ch6.adb: Correct obsolete name in comments
1020 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
1021 which takes two message arguments (existing function takes one), with
1022 second message used for continuation.
1023 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
1024 block statements that originate from a source block statement, not
1025 generated block statements
1026 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
1027 symmetry with procedure case
1028 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
1029 function to issue an error in formal mode if a package specification
1030 contains more than one tagged type or type extension.
1031 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
1032 parameters matching formals of tagged types are objects (or ancestor
1033 type conversions of objects), not general expressions. Issue an error
1034 on view conversions that are not involving ancestor conversion of an
1035 extended type.
1036 (Resolve_Type_Conversion): in formal mode, issue an error on the
1037 operand of an ancestor type conversion which is not an object
1038 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
1039 procedure so that it works also for actuals of function calls
1040 (Is_Actual_Tagged_Parameter): new function which determines if its
1041 argument is an actual parameter of a formal of tagged type in a
1042 subprogram call
1043 (Is_SPARK_Object_Reference): new function which determines if the tree
1044 referenced by its argument represents an object in SPARK
1045
1046 2011-08-02 Robert Dewar <dewar@adacore.com>
1047
1048 * sem_ch3.adb: Minor reformatting
1049 Minor comment addition
1050 Minor error msg text change
1051
1052 2011-08-02 Javier Miranda <miranda@adacore.com>
1053
1054 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
1055 function. Used to be more precise when we generate a variable plus one
1056 assignment to remove side effects in the evaluation of the Bound
1057 expressions.
1058 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
1059 of the bound expression to force its re-analysis and thus expand the
1060 associated transient scope (if required). Code cleanup replacing the
1061 previous code that declared the constant entity by an invocation to
1062 routine Force_Evaluation which centralizes this work in the frontend.
1063
1064 2011-08-02 Robert Dewar <dewar@adacore.com>
1065
1066 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
1067 (Base_Type): Now uses improved Is_Base_Type function
1068 * einfo.ads (Base_Type): Inline this function
1069
1070 2011-08-02 Robert Dewar <dewar@adacore.com>
1071
1072 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
1073 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
1074
1075 2011-08-02 Arnaud Charlet <charlet@adacore.com>
1076
1077 * gcc-interface/Make-lang.in: Update dependencies.
1078 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
1079 targets.
1080
1081 2011-08-02 Yannick Moy <moy@adacore.com>
1082
1083 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
1084 non-simple expression used in delta constraint
1085 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
1086 index constraint which is not a subtype mark
1087 * par.adb: With and use Restrict
1088 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
1089 mode on component type which is not a subtype mark and default
1090 expression on component
1091 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
1092 of string which does not have a lower index bound equal to 1
1093 (Array_Type_Declaration): issue an error in formal mode on index or
1094 component type which is not a subtype mark, and on aliased keyword on
1095 component
1096 (Derived_Type_Declaration): issue an error in formal mode on interface,
1097 limited or abstract type
1098 (Record_Type_Declaration): issue an error in formal mode on interface
1099 (Record_Type_Definition): issue an error in formal mode on tagged types
1100 and type extensions not declared in the specification of a library unit
1101 package; on null non-tagged record; on variant part
1102
1103 2011-08-02 Vincent Celier <celier@adacore.com>
1104
1105 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
1106 not declared for qualified library project when Library_Name is not
1107 declared, but Library_Dir is.
1108
1109 2011-08-02 Robert Dewar <dewar@adacore.com>
1110
1111 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
1112 pragmas (affects aspects [Component_]Default_Value
1113 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
1114 component type for the resolution
1115
1116 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
1117
1118 * einfo.adb (Base_Type): Tune implementation for speed.
1119
1120 2011-08-02 Robert Dewar <dewar@adacore.com>
1121
1122 * freeze.adb: Minor reformatting.
1123
1124 2011-08-02 Thomas Quinot <quinot@adacore.com>
1125
1126 * scos.ads: Update comments.
1127
1128 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1129
1130 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
1131 base type, because the parent may be a subtype of a private type whose
1132 convention is established in a private part.
1133
1134 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
1135
1136 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
1137 statement in a block when the expansion of the return expression has
1138 created a finalization chain.
1139 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
1140 with the parent node.
1141 Add N_Extended_Return_Statement to handle the case where a transient
1142 object declaration appears in the Return_Object_Declarations list of
1143 an extended return statement.
1144
1145 2011-08-02 Matthew Gingell <gingell@adacore.com>
1146
1147 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
1148 unused parameter 'name'.
1149
1150 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1151
1152 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
1153 inherited operation, check whether its alias, which is the source
1154 operastion that it renames, has been marked eliminated.
1155
1156 2011-08-02 Javier Miranda <miranda@adacore.com>
1157
1158 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
1159 in-mode parameter whose type is an access type since it can be used to
1160 modify its designated object. Enforce code that handles as safe an
1161 access type that is not access-to-constant but it is the result of a
1162 previous removal of side-effects.
1163 (Remove_Side_Effects): Minor code reorganization of cases which require
1164 no action. Done to incorporate documentation on new cases uncovered
1165 working in this ticket: no action needed if this routine was invoked
1166 too early and the nodes are not yet decorated.
1167 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
1168 to routine Remove_Side_Effects by calls to Force_Evaluation since they
1169 were issued with actuals that are implicitly provided by
1170 Force_Evaluation.
1171
1172 2011-08-02 Robert Dewar <dewar@adacore.com>
1173
1174 * sem_ch3.adb, sem_res.adb: Minor reformatting.
1175
1176 2011-08-02 Yannick Moy <moy@adacore.com>
1177
1178 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
1179 to issue an error in formal mode on attribute not supported in this mode
1180 (Analyze_Attribute): issue errors on standard attributes not supported
1181 in formal mode.
1182 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
1183 comment, and issue error in formal mode on modulus which is not a power
1184 of 2.
1185 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
1186 range.
1187 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
1188 subtype mark.
1189 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
1190 operator on modular type (except 'not').
1191
1192 2011-08-02 Robert Dewar <dewar@adacore.com>
1193
1194 * gnat_rm.texi: Minor reformatting.
1195
1196 2011-08-02 Arnaud Charlet <charlet@adacore.com>
1197
1198 * s-osinte-linux.ads: Minor comment update and reformatting.
1199 * i-cexten.ads: Make this unit pure, as for its parent.
1200 Will allow its usage in more contexts if needed.
1201
1202 2011-08-02 Robert Dewar <dewar@adacore.com>
1203
1204 * s-utf_32.ads: Minor comment fix.
1205
1206 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1207
1208 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
1209 operation of a tagged synchronized type, handle the case where the
1210 controlling argument is overloaded.
1211
1212 2011-08-02 Yannick Moy <moy@adacore.com>
1213
1214 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
1215 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
1216 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
1217 SPARK mode and formal verification mode on processing SPARK restriction
1218 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
1219 requiring consistency checking.
1220
1221 2011-08-02 Robert Dewar <dewar@adacore.com>
1222
1223 * sem_res.adb: Minor reformatting.
1224
1225 2011-08-02 Robert Dewar <dewar@adacore.com>
1226
1227 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
1228 a-cforse.ads: Remove unneeded with of Ada.Containers
1229 Remove commented out pragma Inline's
1230 Move specifications of new subprograms to the actual specs
1231
1232 2011-08-02 Yannick Moy <moy@adacore.com>
1233
1234 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
1235 a-cforse.ads: Update comments.
1236
1237 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1238
1239 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
1240
1241 2011-08-02 Robert Dewar <dewar@adacore.com>
1242
1243 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
1244 a-cforse.ads, a-cofove.ads: Minor reformatting.
1245
1246 2011-08-02 Claire Dross <dross@adacore.com>
1247
1248 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
1249 a-cofove.ads: Add comments.
1250
1251 2011-08-02 Yannick Moy <moy@adacore.com>
1252
1253 * gnat_rm.texi: Document formal containers.
1254
1255 2011-08-02 Emmanuel Briot <briot@adacore.com>
1256
1257 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
1258 are empty sections.
1259
1260 2011-08-02 Robert Dewar <dewar@adacore.com>
1261
1262 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
1263 reformatting.
1264
1265 2011-08-02 Robert Dewar <dewar@adacore.com>
1266
1267 * aspects.adb: New aspects Default_Value and Default_Component_Value
1268 New format of Aspect_Names table checks for omitted entries
1269 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
1270 handling of boolean aspects for derived types.
1271 New aspects Default_Value and Default_Component_Value
1272 New format of Aspect_Names table checks for omitted entries
1273 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
1274 (Has_Default_Value): New flag
1275 (Has_Default_Component_Value): New flag
1276 (Has_Default_Value): New flag
1277 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
1278 table.
1279 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
1280 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
1281 Default_Value and Default_Component_Value
1282 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
1283 New aspects Default_Value and Default_Component_Value
1284 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
1285 * sprint.adb: Print N_Aspect_Specification node when called from gdb
1286
1287 2011-08-02 Vincent Celier <celier@adacore.com>
1288
1289 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
1290 inherit library kind.
1291
1292 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1293
1294 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
1295 Minor reformatting.
1296
1297 2011-08-02 Robert Dewar <dewar@adacore.com>
1298
1299 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
1300
1301 2011-08-02 Yannick Moy <moy@adacore.com>
1302
1303 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
1304
1305 2011-08-02 Robert Dewar <dewar@adacore.com>
1306
1307 * impunit.adb: Add comment.
1308
1309 2011-08-02 Yannick Moy <moy@adacore.com>
1310
1311 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
1312 qualification of aggregates in formal mode
1313 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
1314 another aggregate
1315 (Resolve_Aggregate): complete the test that an aggregate is adequately
1316 qualified in formal mode
1317
1318 2011-08-02 Pascal Obry <obry@adacore.com>
1319
1320 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
1321 * mlib-prj.adb: Supress warning when compiling binder generated file.
1322 (Build_Library): Supress all warnings when compiling the binder
1323 generated file.
1324
1325 2011-08-02 Yannick Moy <moy@adacore.com>
1326
1327 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
1328 from here...
1329 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
1330 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
1331 Add with/use clauses to make Check_Formal_Restriction visible
1332
1333 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1334
1335 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
1336 in-parameters when type of the generic formal is private in the generic
1337 spec and non-private in the body.
1338
1339 2011-08-02 Claire Dross <dross@adacore.com>
1340
1341 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
1342 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
1343 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
1344 * impunit.adb, Makefile.rtl: Take new files into account.
1345
1346 2011-08-02 Robert Dewar <dewar@adacore.com>
1347
1348 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
1349 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
1350
1351 2011-08-02 Yannick Moy <moy@adacore.com>
1352
1353 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
1354 formal mode
1355 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
1356 matching static array bounds, taking into account the special case of
1357 string literals
1358 * sem_ch3.adb: Typo in comment.
1359
1360 2011-08-02 Yannick Moy <moy@adacore.com>
1361
1362 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
1363 which issues an error in formal mode if its argument node is originally
1364 from source
1365 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
1366 has a discriminant specification so that it does not include the case
1367 of derived types
1368 (Derived_Type_Declaration): move here the test that a derived type has a
1369 discriminant specification
1370 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
1371 first element of a component association before accessing its choices
1372 (presence of component association is not enough)
1373 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
1374 declaration is a library item before accessing the next element in a
1375 list, as library items are not member of lists
1376 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1377 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
1378 Check_Formal_Restriction whenever possible.
1379
1380 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1381
1382 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
1383 reference when needed.
1384
1385 2011-08-02 Bob Duff <duff@adacore.com>
1386
1387 * gnat_ugn.texi: Fix typo.
1388
1389 2011-08-02 Vincent Celier <celier@adacore.com>
1390
1391 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
1392 archive file name. Do not use the full path name of archives for Open
1393 VMS.
1394
1395 2011-08-02 Robert Dewar <dewar@adacore.com>
1396
1397 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
1398 Analyze_Aspect_Specifications
1399 * sem_ch13.adb
1400 (Analyze_Aspect_Specifications): New handling for boolean aspects
1401 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
1402 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
1403 sequence for Analyze_Aspect_Specifications
1404 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
1405 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
1406
1407 2011-08-02 Robert Dewar <dewar@adacore.com>
1408
1409 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
1410 aspects, since these no longer exist.
1411
1412 2011-08-02 Robert Dewar <dewar@adacore.com>
1413
1414 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
1415 semicolon, do not try to see if there are aspects following it.
1416 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
1417 aspect spec.
1418
1419 2011-08-02 Robert Dewar <dewar@adacore.com>
1420
1421 * sem_ch8.adb, aspects.ads: Minor reformatting.
1422
1423 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
1424
1425 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
1426 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
1427 extracted from...
1428 (Analyze_Aspect_Specifications): ...here. Call above procedure.
1429
1430 2011-08-02 Yannick Moy <moy@adacore.com>
1431
1432 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
1433 mode on subprogram declaration outside of package specification, unless
1434 it is followed by a pragma Import
1435 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
1436 Access_Type_Declaration): issue error in formal mode on access type
1437 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
1438 incomplete type
1439 (Analyze_Object_Declaration): issue error in formal mode on object
1440 declaration which does not respect SPARK restrictions
1441 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
1442 declaration which does not respect SPARK restrictions
1443 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
1444 error in formal mode on digits or delta constraint
1445 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
1446 decimal fixed point type
1447 (Derived_Type_Declaration): issue error in formal mode on derived type
1448 other than type extensions of tagged record types
1449 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
1450 with check on access definition
1451 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
1452 mode on protected definition.
1453 (Analyze_Task_Definition): issue error in formal mode on task definition
1454
1455 2011-08-02 Robert Dewar <dewar@adacore.com>
1456
1457 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
1458
1459 2011-08-02 Javier Miranda <miranda@adacore.com>
1460
1461 * sem_ch6.adb (Can_Override_Operator): New function.
1462 (Verify_Overriding_Indicator): Add missing code to check overriding
1463 indicator in operators. Fixes regression.
1464 (Check_Overriding_Indicator): Minor reformating after replacing the
1465 code that evaluates if the subprogram can override an operator by
1466 invocations to the above new function.
1467 * einfo.adb
1468 (Write_Field26_Name): Add missing code to ensure that, following
1469 the documentation in einfo.ads, this field is not shown as attribute
1470 "Static_Initialization" on non-dispatching functions.
1471
1472 2011-08-02 Jose Ruiz <ruiz@adacore.com>
1473
1474 * sem_res.adb (Resolve_Call): A call to
1475 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
1476 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
1477 i.e., when the second parameter is of type Time_Span.
1478
1479 2011-08-02 Vincent Celier <celier@adacore.com>
1480
1481 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
1482 with an archive instead of -L<library dir> -l<library name>.
1483
1484 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1485
1486 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
1487 mark the base types In_Use in addition to making the operations
1488 use_visible.
1489
1490 2011-08-02 Ed Falis <falis@adacore.com>
1491
1492 * init.c: add and setup __gnat_signal_mask for the exception signals
1493 * s-inmaop-vxworks.adb: new file.
1494 * s-intman-vxworks.adb: remove unnecessary initializations and
1495 simplify remaining
1496 * s-intman-vxworks.ads: remove unnecessary variable
1497 * s-taprop-vxworks.adb: simplify signal initialization
1498
1499 2011-08-02 Robert Dewar <dewar@adacore.com>
1500
1501 * sem_ch8.adb: Minor code reorganization, comment updates.
1502
1503 2011-08-02 Robert Dewar <dewar@adacore.com>
1504
1505 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
1506 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
1507 here from Sem_Res.
1508 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
1509 (Matching_Static_Array_Bounds): Moved here from Sem_Res
1510
1511 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1512
1513 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
1514 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
1515 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
1516 use_type_clauses, to handle more efficiently use_type and use_all_type
1517 constructs.
1518 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
1519 Ada2012 Use_All_Type clause.
1520 (Use_Class_Wide_Operations): new procedure.
1521
1522 2011-08-02 Robert Dewar <dewar@adacore.com>
1523
1524 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
1525 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
1526 expression to expression function.
1527
1528 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1529
1530 * sem_ch4.adb: transform simple Ada2012 membership into equality only
1531 if types are compatible.
1532
1533 2011-08-02 Yannick Moy <moy@adacore.com>
1534
1535 * sem_res.adb (Matching_Static_Array_Bounds): new function which
1536 returns True if its argument array types have same dimension and same
1537 static bounds at each index.
1538 (Resolve_Actuals): issue an error in formal mode on actuals passed as
1539 OUT or IN OUT paramaters which are not view conversions in SPARK.
1540 (Resolve_Arithmetic_Op): issue an error in formal mode on
1541 multiplication or division with operands of fixed point types which are
1542 not qualified or explicitly converted.
1543 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
1544 Boolean or array type (except String) operands.
1545 (Resolve_Equality_Op): issue an error in formal mode on equality
1546 operators for array types other than String with non-matching static
1547 bounds.
1548 (Resolve_Logical_Op): issue an error in formal mode on logical operators
1549 for array types with non-matching static bounds. Factorize the code in
1550 Matching_Static_Array_Bounds.
1551 (Resolve_Qualified_Expression): issue an error in formal mode on
1552 qualified expressions for array types with non-matching static bounds.
1553 (Resolve_Type_Conversion): issue an error in formal mode on type
1554 conversion for array types with non-matching static bounds
1555
1556 2011-08-02 Robert Dewar <dewar@adacore.com>
1557
1558 * par-ch10.adb: Minor code reorganization (use Nkind_In).
1559
1560 2011-08-02 Ed Schonberg <schonberg@adacore.com>
1561
1562 * par-ch9.adb: save location of entry for proper error message.
1563
1564 2011-08-02 Javier Miranda <miranda@adacore.com>
1565
1566 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
1567 (Use_Full_View) which permits this routine to climb through the
1568 ancestors using the full-view of private parents.
1569 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
1570 Use_Full_View to true in calls to Is_Ancestor.
1571 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
1572 true in call to Is_Ancestor.
1573 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
1574 Use_Full_View to true in call to Is_Ancestor.
1575 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
1576 call to Is_Ancestor.
1577 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
1578 Use_Full_View to true in calls to Is_Ancestor.
1579 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
1580 Make_Select_Specific_Data_Table, Register_Primitive,
1581 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
1582 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
1583 to true in call to Is_Ancestor.
1584 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
1585 Use_Full_View to true in calls to Is_Ancestor.
1586 * exp_cg.adb
1587 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
1588 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
1589
1590 2011-08-02 Robert Dewar <dewar@adacore.com>
1591
1592 * gnat_rm.texi: Minor reformatting.
1593 * sem_prag.adb: Minor reformatting.
1594
1595 2011-08-02 Tristan Gingold <gingold@adacore.com>
1596
1597 * vms_data.ads: Add VMS qualifier for -gnateP.
1598
1599 2011-08-02 Robert Dewar <dewar@adacore.com>
1600
1601 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
1602 * par-ch7.adb (P_Package): Proper placement of aspects for package
1603 decl/instantiation.
1604 * par-endh.adb (Check_End): Ad Is_Sloc parameter
1605 (End_Statements): Add Is_Sloc parameterr
1606 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
1607 (Check_End): Ad Is_Sloc parameter
1608 (End_Statements): Add Is_Sloc parameterr
1609
1610 2011-08-02 Vincent Celier <celier@adacore.com>
1611
1612 * ug_words: Add VMS qualifier equivalent to -gnateP:
1613 /SYMBOL_PREPROCESSING.
1614
1615 2011-08-02 Jose Ruiz <ruiz@adacore.com>
1616
1617 * gnat-style.texi: For hexadecimal numeric literals the typical
1618 grouping of digits is 4 to represent 2 bytes.
1619 A procedure spec which is split into several lines is indented two
1620 characters.
1621
1622 2011-08-02 Yannick Moy <moy@adacore.com>
1623
1624 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
1625 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
1626 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
1627 properly qualified
1628 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
1629 choice in array aggregate
1630 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
1631 mark as ancestor
1632 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
1633 positional and named aggregate for record, or others in record
1634 aggregate, or multiple choice in record aggregate
1635 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
1636 array operands to logical operations AND, OR and XOR do not have the
1637 same static lower and higher bounds
1638 * sem_ch5.adb, sinfo.ads: Correct typos in comments
1639
1640 2011-08-01 Robert Dewar <dewar@adacore.com>
1641
1642 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
1643 Replaces Last_Source_Node_In_Sequence.
1644 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
1645 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
1646 parens and blank in string (this was inconsistently implemented).
1647 * errout.ads
1648 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
1649 blank in string (this was inconsistently implemented).
1650 * gnat1drv.adb
1651 (Set_Global_Switches): Set formal mode switches appropriately
1652 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
1653 * par-prag.adb
1654 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
1655 call Set_Error_Msg_Lang to set "spark" as language name.
1656 * par.adb: Remove unnecessary call to set formal language for errout
1657 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
1658 appropriately and call Set_Error_Msg_Lang to set "spark" as language
1659 name.
1660 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
1661 calls to it, moved after resolution so that types are known
1662 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
1663 result of concatenation is not of type String
1664 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
1665 concatenation is not properly restricted
1666 * gnat_rm.texi: Add doc on pragma Spark_95.
1667 * gcc-interface/Makefile.in: Remove obsolete target pairs for
1668 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
1669 * gcc-interface/Make-lang.in: Update dependencies.
1670
1671 2011-08-01 Javier Miranda <miranda@adacore.com>
1672
1673 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
1674 condition that detects if the overridden operation must replace an
1675 existing entity.
1676
1677 2011-08-01 Javier Miranda <miranda@adacore.com>
1678
1679 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
1680 code declarations inserted by Insert_Actions in each alternative of the
1681 N_Case_Expression node.
1682
1683 2011-08-01 Robert Dewar <dewar@adacore.com>
1684
1685 * sem_ch6.adb: Minor code reorganization.
1686 * sem_util.adb: Minor reformatting.
1687
1688 2011-08-01 Pascal Obry <obry@adacore.com>
1689
1690 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
1691 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
1692
1693 2011-08-01 Yannick Moy <moy@adacore.com>
1694
1695 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
1696 literal or operator symbol which is prefixed
1697 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
1698 mode on access attributes.
1699 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
1700 that concatenation operands are properly restricted in formal mode
1701 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
1702 Analyze_Concatenation_Operand. Issue an error in formal mode if the
1703 result of the concatenation has a type different from String.
1704 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
1705 Analyze_Quantified_Expression, Analyze_Slice,
1706 Analyze_Null): issue an error in formal mode on unsupported constructs
1707 * sem_ch5.adb
1708 (Analyze_Block_Statement): only issue error on source block statement
1709 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
1710 function which returns the last node in a list of nodes for which
1711 Comes_From_Source returns True, if any
1712 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
1713 Last_Source_Node_In_Sequence
1714 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1715 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
1716 mode on unsupported constructs
1717 * sem_ch9.adb Do not return after issuing error in formal mode, as the
1718 rest of the actions may be needed later on since the error is marked as
1719 not serious.
1720 * sinfo.ads: Typos in comments.
1721
1722 2011-08-01 Pascal Obry <obry@adacore.com>
1723
1724 * projects.texi: Minor editing.
1725
1726 2011-08-01 Yannick Moy <moy@adacore.com>
1727
1728 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
1729 insertion character ~~
1730 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
1731 (Set_Error_Msg_Lang): new procedure which fixes the language for use
1732 with insertion character ~~
1733 (Set_Msg_Text): treat insertion character ~~
1734 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
1735 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
1736 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
1737 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
1738 errors related to the formal language restriction not serious
1739 (insertion character |).
1740 * par.adb (Par): set formal language for error messages if needed
1741 * sem_ch6.adb (Check_Missing_Return): take into account possible
1742 generated statements at the end of the function
1743 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
1744 enumeration value to define a new pragma SPARK_95
1745 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
1746 SPARK_Version): new type and variables to store the SPARK version
1747 (none by default).
1748 (SPARK_Mode): return True when SPARK_Version is set
1749 * par-prag.adb: Correct indentation
1750 (Prag): take Pragma_SPARK_95 into account
1751 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
1752 into account.
1753
1754 2011-08-01 Robert Dewar <dewar@adacore.com>
1755
1756 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
1757 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
1758 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
1759
1760 2011-08-01 Pascal Obry <obry@adacore.com>
1761
1762 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
1763 Target_Name to Get_Path call.
1764 (Parse_Single_Project): Likewise.
1765 (Post_Parse_Context_Clause): Likewise.
1766 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
1767 Call Initialise_Project_Path with the proper Target_Name.
1768 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
1769 search path.
1770 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
1771 with the proper Target_Name.
1772 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
1773 Part.Parse routine.
1774 (Parse_Project_And_Apply_Config): Likewise.
1775 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
1776 This is fine as this part of the code is supporting only native
1777 compilation.
1778 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
1779 is fine as this part of the code is supporting only native compilation.
1780
1781 2011-08-01 Yannick Moy <moy@adacore.com>
1782
1783 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
1784 of homonym, unless the homonym is one of the cases allowed in SPARK
1785 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
1786 package declaration occurring after a body.
1787
1788 2011-08-01 Robert Dewar <dewar@adacore.com>
1789
1790 * checks.adb, exp_ch4.adb: Minor reformatting.
1791
1792 2011-08-01 Javier Miranda <miranda@adacore.com>
1793
1794 * einfo.ads (Access_Disp_Table): Fix documentation.
1795 (Dispatch_Table_Wrappers): Fix documentation.
1796
1797 2011-08-01 Pascal Obry <obry@adacore.com>
1798
1799 * prj-env.adb, prj-env.ads: Minor reformatting.
1800
1801 2011-08-01 Yannick Moy <moy@adacore.com>
1802
1803 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
1804 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
1805 procedures out of these packages.
1806 * errout.ads, errout.adb
1807 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
1808 procedures in of this package
1809 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
1810 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
1811 on misplaced later vs initial declarations, like in Ada 83
1812 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
1813 formal mode on attribute of private type whose full type declaration
1814 is not visible
1815 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
1816 package declaration inside a package specification
1817 (Analyze_Full_Type_Declaration): issue error in formal mode on
1818 controlled type or discriminant type
1819 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
1820 user-defined operator means that it should come from the source
1821 (New_Overloaded_Entity): issue error in formal mode on overloaded
1822 entity.
1823 * sem_ch6.ads, sem_ch13.ads: typos in comments.
1824
1825 2011-08-01 Thomas Quinot <quinot@adacore.com>
1826
1827 * atree.adb: Minor reformatting.
1828 * checks.adb: Minor reformatting.
1829
1830 2011-08-01 Vincent Celier <celier@adacore.com>
1831
1832 * s-parame-vms-ia64.ads: Fix typo in comment
1833 Minor reformatting
1834 * s-parame-vms-restrict.ads: Removed, unused.
1835
1836 2011-08-01 Javier Miranda <miranda@adacore.com>
1837
1838 * exp_ch3.adb
1839 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
1840 * sem_ch3.adb
1841 (Constrain_Index): Remove side effects in the evaluation of the bounds.
1842 * sem_ch3.ads, sem_ch3.adb
1843 (Is_Constant_Bound): New extended version of the subprogram that was
1844 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
1845 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
1846 * sem_aux.ads (Constant_Value): Fix typo in comment.
1847 * checks.adb (Generate_Index_Checks): New implementation which, for
1848 array objects with constant bounds, generates the runtime check
1849 referencing the bounds of the array type. For other cases this routine
1850 provides its previous behavior obtaining such values from the array
1851 object.
1852 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
1853 parent type.
1854 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
1855 we cannot have semantic interpretations of the new node.
1856
1857 2011-08-01 Ed Schonberg <schonberg@adacore.com>
1858
1859 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
1860 expressions.
1861
1862 2011-08-01 Arnaud Charlet <charlet@adacore.com>
1863
1864 * sem_ch8.adb: Minor code editing.
1865 * s-vxwext.adb: Remove trailing space.
1866 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
1867 consistency with other files.
1868
1869 2011-08-01 Thomas Quinot <quinot@adacore.com>
1870
1871 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
1872
1873 2011-08-01 Ed Schonberg <schonberg@adacore.com>
1874
1875 * par-ch10.adb: reject parameterized expressions as compilation unit.
1876 * sem_ch4.adb: handle properly conditional expression with overloaded
1877 then_clause and no else_clause.
1878
1879 2011-08-01 Tristan Gingold <gingold@adacore.com>
1880
1881 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
1882 like done by System.Aux_DEC.
1883 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
1884
1885 2011-08-01 Yannick Moy <moy@adacore.com>
1886
1887 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
1888 missing label at end of declaration (subprogram or package)
1889 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
1890 of positional and named parameter association
1891 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
1892 Error_Msg_SP which adds a prefix to the error message giving the name
1893 of the formal language analyzed
1894 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
1895 access result type in subprogram, unconstrained array as result type,.
1896 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
1897 procedure
1898 * sem_ch8.adb: Code clean up.
1899
1900 2011-08-01 Javier Miranda <miranda@adacore.com>
1901
1902 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
1903 * einfo.ads (Access_Disp_Table): Fix documentation.
1904 (Dispatch_Table_Wrappers): Fix documentation.
1905 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
1906 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
1907 to enforce the documentation of this attribute.
1908 (Set_Is_Interface): Cleanup the assertion.
1909 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
1910 the Underlying_Type entity before reading attribute Access_Disp_Table.
1911 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
1912 Locate the Underlying_Type before reading attribute Access_Disp_Table.
1913 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
1914 the Underlying_Type entity before reading attribute Access_Disp_Table.
1915 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
1916 Locate the Underlying_Type entity before reading attribute
1917 Access_Disp_Table.
1918
1919 2011-08-01 Ed Schonberg <schonberg@adacore.com>
1920
1921 * s-poosiz.ads: Additional overriding indicators.
1922
1923 2011-08-01 Yannick Moy <moy@adacore.com>
1924
1925 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
1926 formal mode.
1927 (Analyze_Iteration_Scheme): issue error in formal mode when loop
1928 parameter specification does not include a subtype mark.
1929 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
1930 formal mode on abstract subprogram.
1931 (Analyze_Subprogram_Specification): issue error in formal mode on
1932 user-defined operator.
1933 (Process_Formals): issue error in formal mode on access parameter and
1934 default expression.
1935 * sem_ch9.adb (Analyze_Abort_Statement,
1936 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
1937 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
1938 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
1939 Analyze_Requeue, Analyze_Selective_Accept,
1940 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
1941 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
1942 issue error in formal mode on user-defined raise statement.
1943
1944 2011-08-01 Thomas Quinot <quinot@adacore.com>
1945
1946 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
1947 declaration being hidden when overriding an implicit inherited
1948 subprogram.
1949 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
1950 (-gnats), do not complain about a source file that contains only a
1951 pragma No_Body.
1952
1953 2011-08-01 Ed Schonberg <schonberg@adacore.com>
1954
1955 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
1956 variable if already set.
1957
1958 2011-08-01 Arnaud Charlet <charlet@adacore.com>
1959
1960 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
1961 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
1962 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
1963 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
1964 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
1965 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
1966 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
1967 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
1968 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
1969 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
1970 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
1971 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
1972 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
1973 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
1974 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
1975 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
1976 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
1977 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
1978 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
1979 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
1980 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
1981 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
1982 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
1983 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
1984 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
1985 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
1986 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
1987 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
1988 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
1989 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
1990 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
1991 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
1992 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
1993 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
1994 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
1995 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
1996 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
1997 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
1998 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
1999 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
2000 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
2001 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
2002 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
2003 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
2004 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
2005 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
2006 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
2007 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
2008 s-osinte-mingw.ads: Update to GPLv3 run-time license.
2009 Use GNAT instead of GNARL.
2010
2011 2011-08-01 Bob Duff <duff@adacore.com>
2012
2013 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
2014 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
2015 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
2016 reformatting.
2017
2018 2011-08-01 Yannick Moy <moy@adacore.com>
2019
2020 * debug.adb (d.D) reverve flag for the SPARK mode
2021 (d.E) reverve flag for SPARK generation mode
2022 (d.F) reverve flag for Why generation mode
2023 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
2024 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
2025 functions which return True when the corresponding modes are set
2026 (Formal_Language): return "spark" or "alfa" when in formal verification
2027 mode.
2028 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
2029 Error_Msg to prefix the error message with a tag giving the formal
2030 language
2031 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
2032 message with a tag giving the formal language
2033 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
2034 block statement
2035 (Analyze_Case_Statement): issue error in formal mode on case statement
2036 with a single "others" case alternative
2037 (Analyze_Exit_Statement): issue errors in formal mode on exit
2038 statements which do not respect SPARK restrictions
2039 (Analyze_Goto_Statement): issue error in formal mode on goto statement
2040 (Check_Unreachable_Code): always issue an error (not a warning) in
2041 formal mode on unreachable code (concerns both code after an infinite
2042 loop and after an unconditional jump, both not allowed in SPARK)
2043 * sem_ch6.adb (Analyze_Return_Statement): add call to
2044 Set_Return_Present for a procedure containing a return statement
2045 (already done for functions in Analyze_Function_Return)
2046 (Analyze_Function_Return): issue error in formal mode on extended
2047 return or if return is not last statement in function
2048 (Check_Missing_Return): issue error in formal mode if function does
2049 not end with return or if procedure contains a return
2050 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
2051 function to detect if there is an inner scope of its parameter S which
2052 is a loop.
2053
2054 2011-08-01 Thomas Quinot <quinot@adacore.com>
2055
2056 * sem_ch6.ads: Minor reformatting.
2057
2058 2011-08-01 Javier Miranda <miranda@adacore.com>
2059
2060 * sem_util.adb (Abstract_Interface_List): Complete condition when
2061 processing private type declarations to avoid reading unavailable
2062 attribute.
2063 (Is_Synchronized_Tagged_Type): Complete condition when processing
2064 private extension declaration nodes to avoid reading unavailable
2065 attribute.
2066
2067 2011-08-01 Thomas Quinot <quinot@adacore.com>
2068
2069 * sem_ch3.adb: Minor reformatting.
2070
2071 2011-08-01 Thomas Quinot <quinot@adacore.com>
2072
2073 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
2074 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
2075 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
2076 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
2077 for VMS, instead parametrize the common implementation with
2078 System.Parameters declarations.
2079
2080 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
2081
2082 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
2083
2084 2011-08-01 Tristan Gingold <gingold@adacore.com>
2085
2086 * seh_init.c: Fix SEH handler installation on win64.
2087
2088 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2089
2090 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
2091 double analysis of an anonymous access to subprogram, because it can
2092 lead to improper sharing of profiles and a back-end crash.
2093
2094 2011-08-01 Robert Dewar <dewar@adacore.com>
2095
2096 * make.adb, sem_ch4.adb: Minor reformatting.
2097 * gcc-interface/Make-lang.in: Update dependencies.
2098 * sem_util.adb, exp_ch5.adb: Minor reformatting.
2099
2100 2011-08-01 Arnaud Charlet <charlet@adacore.com>
2101
2102 * gnat_rm.texi: Fix definition of Long_Integer.
2103
2104 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2105
2106 * exp_aggr.adb: check limit size of static aggregate unconditionally,
2107 to prevent storage exhaustion.
2108 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
2109 finalized is a function body, insert the cleanup code before the final
2110 return statement, to prevent spurious warnings.
2111 * s-pooglo.ads: add overriding indicator.
2112
2113 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2114
2115 * sem_ch4.adb (Operator_Check): improve error message when both a
2116 with_clause and a use_clause are needed to make operator usage legal.
2117 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
2118 determine whether a compilation unit is visible within an other,
2119 either through a with_clause in the current unit, or a with_clause in
2120 its library unit or one one of its parents.
2121
2122 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2123
2124 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
2125 over an arbitrary expression of an array or container type.
2126 * lib-xref.adb: clarify comment.
2127
2128 2011-08-01 Bob Duff <duff@adacore.com>
2129
2130 * einfo.ads: Minor reformatting.
2131 * debug.adb: Minor comment improvement.
2132
2133 2011-08-01 Javier Miranda <miranda@adacore.com>
2134
2135 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
2136 consider hidden subprograms as valid candidates.
2137
2138 2011-08-01 Arnaud Charlet <charlet@adacore.com>
2139
2140 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
2141
2142 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
2143
2144 * gnat_ugn.texi: Fix typo.
2145
2146 2011-08-01 Robert Dewar <dewar@adacore.com>
2147
2148 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
2149 lib-xref.adb: Minor reformatting
2150
2151 2011-08-01 Gary Dismukes <dismukes@adacore.com>
2152
2153 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
2154 when to generate a call to Move_Final_List.
2155 (Has_Controlled_Parts): Remove this function.
2156
2157 2011-08-01 Geert Bosch <bosch@adacore.com>
2158
2159 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
2160 "," in choice list.
2161
2162 2011-08-01 Thomas Quinot <quinot@adacore.com>
2163
2164 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
2165 explicit raise of a predefined exception as Comes_From_Source if the
2166 original N_Raise_Statement comes from source.
2167
2168 2011-08-01 Robert Dewar <dewar@adacore.com>
2169
2170 * sinfo.ads: Add comment.
2171 * sem_ch6.adb: Minor reformatting.
2172
2173 2011-08-01 Robert Dewar <dewar@adacore.com>
2174
2175 * freeze.adb (Freeze_Entity): Refine check for bad component size
2176 clause to avoid rejecting confirming clause when atomic/aliased present.
2177
2178 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2179
2180 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
2181 better determine whether an entity reference is a write.
2182 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
2183 subcomponent.
2184 * lib-xref.adb (Output_References): Do no suppress a read reference at
2185 the same location as an immediately preceeding modify-reference, to
2186 handle properly in-out actuals.
2187
2188 2011-08-01 Tristan Gingold <gingold@adacore.com>
2189
2190 * env.c (__gnat_setenv) [VMS]: Refine previous change.
2191
2192 2011-08-01 Quentin Ochem <ochem@adacore.com>
2193
2194 * i-cstrin.adb (New_String): Changed implementation, now uses only the
2195 heap to compute the result.
2196
2197 2011-08-01 Robert Dewar <dewar@adacore.com>
2198
2199 * atree.ads: Minor reformatting.
2200
2201 2011-08-01 Emmanuel Briot <briot@adacore.com>
2202
2203 * g-expect.adb (Get_Command_Output): Fix memory leak.
2204
2205 2011-08-01 Geert Bosch <bosch@adacore.com>
2206
2207 * cstand.adb (P_Float_Type): New procedure to print the definition of
2208 predefined fpt types.
2209 (P_Mixed_Name): New procedure to print a name using mixed case
2210 (Print_Standard): Use P_Float_Type for printing floating point types
2211 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
2212 precision IEEE float.
2213
2214 2011-08-01 Thomas Quinot <quinot@adacore.com>
2215
2216 * sem_ch3.adb: Minor reformatting.
2217
2218 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2219
2220 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
2221 the completion of a generic function, insert the new body rather than
2222 rewriting the original.
2223
2224 2011-08-01 Yannick Moy <moy@adacore.com>
2225
2226 * sinfo.ads, errout.ads: Typos in comments.
2227
2228 2011-08-01 Robert Dewar <dewar@adacore.com>
2229
2230 * par-endh.adb: Minor reformatting.
2231
2232 2011-08-01 Robert Dewar <dewar@adacore.com>
2233
2234 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
2235 (Pre_Post_Aspects): New subtype.
2236 * par-ch12.adb (P_Generic): New syntax for aspects in packages
2237 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
2238 * par-ch7.adb (P_Package): Remove Decl parameter
2239 (P_Package): Handle new syntax for aspects (before IS)
2240 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
2241 new aspect syntax
2242 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
2243 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
2244 (P_Package): Remove Decl parameter
2245 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
2246 aspects
2247 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
2248 specs
2249 * sem_util.ads, sem_util.adb (Static_Boolean): New function
2250 * sinfo.ads: Document new syntax for aspects in packages etc.
2251 * sprint.adb: Handle new syntax of aspects before IS in package
2252
2253 2011-08-01 Thomas Quinot <quinot@adacore.com>
2254
2255 * atree.ads: Minor reformatting.
2256 * sem_prag.adb: Minor reformatting.
2257
2258 2011-08-01 Robert Dewar <dewar@adacore.com>
2259
2260 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
2261 case expr alternative.
2262
2263 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2264
2265 * sem_ch12.adb: Fix typo.
2266
2267 2011-08-01 Geert Bosch <bosch@adacore.com>
2268
2269 * sem_prag.adb (Check_No_Link_Name): New procedure.
2270 (Process_Import_Or_Interface): Use Check_No_Link_Name.
2271 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
2272 instead of Standard_Long_Long_Float_Size global. Preparation for
2273 eventual removal of per type constants.
2274 * exp_util.ads (Get_Stream_Size): New function returning the stream
2275 size value of subtype E.
2276 * exp_util.adb (Get_Stream_Size): Implement new function.
2277 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
2278 function.
2279 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
2280 * einfo.adb:
2281 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
2282
2283 2011-08-01 Geert Bosch <bosch@adacore.com>
2284
2285 * cstand.adb: Fix comments.
2286 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
2287 count of arguments.
2288
2289 2011-08-01 Robert Dewar <dewar@adacore.com>
2290
2291 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
2292
2293 2011-08-01 Geert Bosch <bosch@adacore.com>
2294
2295 * atree.ads: Fix comment.
2296
2297 2011-08-01 Robert Dewar <dewar@adacore.com>
2298
2299 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
2300 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
2301 * par.adb: Add with for Namet.Sp.
2302 * par-tchk.adb: Minor reformatting.
2303
2304 2011-08-01 Vincent Celier <celier@adacore.com>
2305
2306 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
2307 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
2308 of the init procedure of a SAL.
2309 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
2310 New procedure.
2311
2312 2011-08-01 Thomas Quinot <quinot@adacore.com>
2313
2314 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
2315 reformatting.
2316
2317 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2318
2319 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
2320
2321 2011-08-01 Thomas Quinot <quinot@adacore.com>
2322
2323 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
2324 conformant with its spec (return True only for types that have
2325 an overriding Initialize primitive operation that prevents them from
2326 having preelaborable initialization).
2327 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
2328 initialization for controlled types in Ada 2005 or later mode.
2329
2330 2011-08-01 Robert Dewar <dewar@adacore.com>
2331
2332 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
2333 Postcondition.
2334 (Same_Aspect): New function.
2335 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
2336 Type_Invariant, Precondition, Postcondition.
2337 * snames.ads-tmpl: Add Name_Type_Invariant.
2338
2339 2011-08-01 Robert Dewar <dewar@adacore.com>
2340
2341 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
2342 here.
2343 (Freeze_All_Ent): Fix error in handling inherited aspects.
2344 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
2345 already analyzed, but don't skip entire processing of a declaration,
2346 that's wrong in some cases of declarations being rewritten.
2347 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
2348 Don't delay for integer, string literals
2349 Treat predicates in usual manner for delay, remove special case code,
2350 not needed.
2351 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
2352 (Build_Predicate_Function): Update saved expression in aspect
2353 (Build_Invariant_Procedure): Update saved expression in aspect
2354 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
2355 of replacement of discriminant references if the reference is simple.
2356
2357 2011-08-01 Robert Dewar <dewar@adacore.com>
2358
2359 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
2360 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
2361 Static_Predicate and Dynamic_Predicate.
2362 (Build_Predicate_Function): Add processing for Static_Predicate
2363 and Dynamic_Predicate.
2364 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
2365 (From_Static_Predicate): New flag
2366 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
2367
2368 2011-08-01 Robert Dewar <dewar@adacore.com>
2369
2370 * usage.adb: Documentation cleanup for Ada version modes in usage.
2371 * expander.adb: Minor reformatting.
2372
2373 2011-08-01 Robert Dewar <dewar@adacore.com>
2374
2375 * atree.ads: Minor comment fix.
2376 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
2377 a-witeio.ads, sem_prag.adb: Minor reformatting.
2378
2379 2011-08-01 Doug Rupp <rupp@adacore.com>
2380
2381 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
2382 pointers. Use descrip.h header file for convenience. Add some
2383 comments.
2384
2385 2011-08-01 Robert Dewar <dewar@adacore.com>
2386
2387 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
2388 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
2389 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
2390 New procedure.
2391 (Check_Aspect_At_End_Of_Declarations): New procedure
2392 (Analye_Aspect_Specification): Minor changes for above procedures
2393 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
2394 specification node as well.
2395
2396 2011-08-01 Pascal Obry <obry@adacore.com>
2397
2398 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
2399 Windows files. Use GetFilesAttributes() in this case to check for file
2400 existence instead of returning with an error code.
2401
2402 2011-08-01 Vincent Celier <celier@adacore.com>
2403
2404 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
2405 High is above Source length.
2406
2407 2011-08-01 Robert Dewar <dewar@adacore.com>
2408
2409 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
2410
2411 2011-08-01 Robert Dewar <dewar@adacore.com>
2412
2413 * aspects.ads (Boolean_Aspects): New subtype.
2414 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
2415 for derived types in cases where the parent type and derived type have
2416 aspects.
2417 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
2418 with aspects when parent type also has aspects.
2419 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
2420 boolean expression at this point).
2421 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
2422 accordance with final decision on the Ada 2012 feature.
2423 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
2424
2425 2011-08-01 Matthew Heaney <heaney@adacore.com>
2426
2427 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
2428
2429 2011-08-01 Pascal Obry <obry@adacore.com>
2430
2431 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
2432 Fix Replace_Slice when High is above current string size.
2433 (Replace_Slice): Fix DL computation when High is above current
2434 string length.
2435
2436 2011-08-01 Gary Dismukes <dismukes@adacore.com>
2437
2438 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
2439
2440 2011-08-01 Matthew Heaney <heaney@adacore.com>
2441
2442 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
2443 of node.
2444
2445 2011-08-01 Pascal Obry <obry@adacore.com>
2446
2447 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
2448 reformatting.
2449
2450 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2451
2452 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
2453 access to protected subprograms in generic bodies.
2454 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
2455 protected type, indicate that the convention of the subprogram is
2456 Convention_Protected, because it may be used in subsequent declarations
2457 within the protected declaration.
2458
2459 2011-08-01 Vincent Celier <celier@adacore.com>
2460
2461 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
2462 and "final" procedures when the name of the library is "ada", to avoid
2463 duplicate symbols "adainit" and "adafinal" in executables.
2464
2465 2011-08-01 Ed Schonberg <schonberg@adacore.com>
2466
2467 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
2468 quantified expression that appears within a postcondition and uses the
2469 Ada2012 'Result attribute.
2470
2471 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2472
2473 * init.c (__gnat_error_handler): Cast reason to int.
2474 (__gnat_install_handler): Explain sa_sigaction use.
2475
2476 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
2479 subprogram has copy-in copy-out parameters, try to promote the mode of
2480 the return type if it is passed in registers.
2481
2482 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
2483
2484 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
2485 left operand as addressable.
2486
2487 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
2488
2489 * gcc-interface/gigi.h (build_function_stub): Remove.
2490 (build_return_expr): Likewise.
2491 (convert_vms_descriptor): Declare.
2492 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
2493 (build_function_stub): Move to...
2494 * gcc-interface/utils2.c (build_return_expr): Move to...
2495 * gcc-interface/trans.c (build_function_stub): ...here.
2496 (build_return_expr): ...here.
2497 (Subprogram_Body_to_gnu): Add local variable for language_function.
2498 Disconnect the parameter attributes cache, if any, once done with it.
2499 Call end_subprog_body only after setting the end_locus.
2500 Build the stub associated with the function, if any, at the very end.
2501 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
2502 variables and streamline control flow.
2503
2504 2011-07-23 Arnaud Charlet <charlet@adacore.com>
2505
2506 PR ada/49819
2507 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
2508 g-trasym-dwarf.adb.
2509
2510 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2511
2512 PR bootstrap/49794
2513 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
2514 Assign to act.sa_sigaction.
2515 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
2516 current->return_address to char * before arithmetic.
2517
2518 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2519
2520 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
2521 Correct argument types.
2522 Extract code from reason.
2523 (__gnat_install_handler): Assign to act.sa_sigaction.
2524
2525 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
2526
2527 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
2528 (GNAT1_OBJS): ...here.
2529
2530 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
2531
2532 PR ada/48711
2533 * g-socthi-mingw.adb (Fill): Fix formatting.
2534
2535 * gcc-interface/gigi.h: Move around comment.
2536
2537 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2538
2539 PR ada/46350
2540 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
2541
2542 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
2543
2544 PR ada/48711
2545 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
2546
2547 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
2550 range comparison if Pmode is SImode.
2551
2552 2011-07-12 Laurent GUERBY <laurent@guerby.net>
2553 Eric Botcazou <ebotcazou@adacore.com>
2554
2555 * adadecode.c: Wrap up in extern "C" block.
2556 * adadecode.h: Likewise.
2557 * adaint.c: Likewise. Remove 'const' keyword.
2558 * adaint.h: Likewise.
2559 * argv.c: Likewise.
2560 * atree.h: Likewise.
2561 * cio.c: Likewise.
2562 * cstreams.c: Likewise.
2563 * env.c: Likewise.
2564 * exit.c: Likewise.
2565 * fe.h: Likewise.
2566 * final.c: Likewise.
2567 * init.c: Likewise.
2568 * initialize.c: Likewise.
2569 * link.c: Likewise.
2570 * namet.h: Likewise.
2571 * nlists.h: Likewise.
2572 * raise.c: Likewise.
2573 * raise.h: Likewise.
2574 * repinfo.h: Likewise.
2575 * seh_init.c: Likewise.
2576 * targext.c: Likewise.
2577 * tracebak.c: Likewise.
2578 * uintp.h: Likewise.
2579 * urealp.h: Likewise.
2580 * xeinfo.adb: Wrap up generated C code in extern "C" block.
2581 * xsinfo.adb: Likewise.
2582 * xsnamest.adb: Likewise.
2583 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
2584 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
2585 * gcc-interface/misc.c: Likewise.
2586 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
2587 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
2588 ada/targext.o here...
2589 (GNAT_ADA_OBJS): ...and not here.
2590 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
2591 (GNATBIND_OBJS): Reorder.
2592
2593 2011-07-07 Richard Henderson <rth@redhat.com>
2594
2595 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
2596 dwarf2out_frame_init.
2597
2598 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
2599
2600 * gcc-interface/misc.c (gnat_init): Tweak previous change.
2601
2602 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2603
2604 PR target/39150
2605 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
2606
2607 2011-07-06 Richard Guenther <rguenther@suse.de>
2608
2609 * gcc-interface/misc.c (gnat_init): Merge calls to
2610 build_common_tree_nodes and build_common_tree_nodes_2.
2611 Re-initialize boolean_false_node.
2612
2613 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2614 Olivier Hainque <hainque@adacore.com>
2615 Nicolas Setton <setton@adacore.com>
2616
2617 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
2618 the type according to the ARTIFICIAL_P parameter.
2619 (create_type_decl): Likewise.
2620 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
2621
2622 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2623
2624 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
2625 (gnatbind): Likewise.
2626
2627 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2628
2629 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
2630
2631 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2632
2633 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
2634 local variable throughout. Remove useless call to Base_Type.
2635 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
2636 Take it also into account for the volatileness of the field. Set the
2637 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
2638
2639 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2640
2641 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
2642 on a dereference built for a by-ref object if it has an address clause.
2643
2644 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2645
2646 * einfo.ads (Address_Taken): Document use for the second argument of
2647 Asm_Input and Asm_Output attributes.
2648 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
2649 argument is an entity name, then set Address_Taken on it.
2650 <Attribute_Asm_Output>: Likewise.
2651 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
2652 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
2653 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
2654 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
2655
2656 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2657
2658 PR middle-end/46500
2659 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
2660
2661 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2662
2663 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
2664 (ada/utils.o): Update dependencies.
2665 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
2666 ../../../libcpp/libcpp.a.
2667 * gcc-interface/utils.c: Include common/common-target.h.
2668 (process_attributes): Use targetm_common.have_named_sections.
2669
2670 2011-06-07 Richard Guenther <rguenther@suse.de>
2671
2672 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
2673 set_sizetype.
2674
2675 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
2676
2677 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
2678 TREE_THIS_NOTRAP flag.
2679
2680 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
2681
2682 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
2683 Fix thinko.
2684
2685 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
2686
2687 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
2688 constants whose full view has discriminants specially.
2689
2690 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
2691
2692 * gcc-interface/utils.c: Include diagnostic.h.
2693 (gnat_write_global_declarations): Output debug information for all
2694 global type declarations before finalizing the compilation unit.
2695 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
2696
2697 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2698
2699 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
2700
2701 2011-05-25 Kai Tietz <ktietz@redhat.com>
2702
2703 * adaint.c (__gnat_to_canonical_file_list_next): Use array
2704 initialization instead of const/none-const pointer assignment.
2705
2706 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2707
2708 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
2709 $(EXTRA_GNAT1_OBJS).
2710 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
2711 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
2712 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
2713 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
2714 libcommon-target.a instead of prefix.o.
2715
2716 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2717
2718 PR ada/49097
2719 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
2720
2721 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2722
2723 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
2724 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
2725 instead of version.o.
2726
2727 2011-05-18 Kai Tietz <ktietz@redhat.com>
2728
2729 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
2730 boolean_false_node instead of integer_zero_node.
2731 (convert_with_check): Likewise.
2732 * gcc-interface/decl.c (choices_to_gnu): Likewise.
2733
2734 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
2735
2736 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
2737 type of the parameter is an unconstrained array, convert the actual to
2738 the type of the formal in the In Out and Out cases as well.
2739
2740 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2741
2742 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
2743 call build_function_type_array or build_varargs_function_type_array
2744 instead.
2745 (create_subprog_type): Don't call build_function_type; call
2746 build_function_type_vec instead.
2747
2748 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2749
2750 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
2751 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
2752 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
2753
2754 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2755
2756 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
2757
2758 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
2759 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
2760
2761 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2762
2763 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
2764
2765 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2766
2767 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
2768 instead of accessing TYPE_ARG_TYPES directly.
2769 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
2770
2771 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2772
2773 PR ada/48844
2774 * gcc-interface/gigi.h (get_variant_part): Declare.
2775 * gcc-interface/decl.c (get_variant_part): Make global.
2776 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
2777 types have the same constant size, are record types and T1 has a
2778 variant part while T2 doesn't.
2779
2780 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2781
2782 * gcc-interface/utils.c (begin_subprog_body): Do not call
2783 get_pending_sizes.
2784 (end_subprog_body): Likewise.
2785
2786 2011-05-04 Richard Guenther <rguenther@suse.de>
2787
2788 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
2789 int_const_binop.
2790 (pos_to_constructor): Likewise.
2791
2792 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2793 Eric Botcazou <ebotcazou@adacore.com>
2794
2795 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
2796 of build_function_type. Adjust calls to...
2797 (build_raise_check): ...this. Do not take a void_tree parameter.
2798 Call build_function_type_list instead of build_function_type.
2799 Fix head comment and swap couple of conditional blocks.
2800
2801 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
2802
2803 * gnatvsn.ads (Library_Version): Bump to 4.7.
2804 (Current_Year): Bump to 2011.
2805
2806 2011-04-29 Michael Matz <matz@suse.de>
2807
2808 * gcc-interface/misc.c (gnat_handle_option): Set
2809 warn_maybe_uninitialized.
2810
2811 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
2812
2813 * gnat_ugn.texi (Complexity Metrics Control): Update link to
2814 the Watson/McCabe paper.
2815
2816 2011-04-23 Jim Meyering <meyering@redhat.com>
2817
2818 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
2819
2820 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
2821
2822 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
2823 onto the new type.
2824
2825 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
2826
2827 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
2828 parameter.
2829 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
2830 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
2831 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2832 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
2833 <all>: Do not set flags on the reused DECL node coming from an alias.
2834 Set DECL_IGNORED_P on the DECL node built for subprograms if they
2835 don't need debug info here...
2836 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
2837 (gigi): Adjust calls to create_subprog_decl.
2838 (build_raise_check): Likewise.
2839 (establish_gnat_vms_condition_handler): Likewise.
2840 (Compilation_Unit_to_gnu): Likewise.
2841 (gnat_to_gnu): Likewise.
2842
2843 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2844
2845 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
2846 (NO_REORDER_ADAFLAGS): New variable.
2847 (EXTRA_GNATTOOLS): Always define.
2848 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
2849 Clean up and adjust list of files compiled with special options.
2850 * gcc-interface/Make-lang.in: Likewise.
2851 (ada/decl.o): Cosmetical change.
2852 (ada/misc.o): Remove dependency on $(PLUGIN_H).
2853
2854 2011-04-20 Jim Meyering <meyering@redhat.com>
2855
2856 * initialize.c (__gnat_initialize): Remove useless if-before-free.
2857
2858 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2859
2860 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
2861 $(CFLAGS) on the link line.
2862
2863 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2864
2865 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
2866 padded type built for the return type if it is unconstrained.
2867
2868 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2869
2870 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
2871
2872 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2873
2874 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
2875 before calling TREE_CHAIN.
2876 * gcc-interface/misc.c (gnat_init_ts): New function.
2877 (LANG_HOOKS_INIT_TS): Define.
2878
2879 2011-04-12 Martin Jambor <mjambor@suse.cz>
2880
2881 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
2882 instead of cgraph_node.
2883
2884 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2885
2886 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
2887 alignment on fields of the RETURN type built for the Copy-In Copy-Out
2888 mechanism.
2889
2890 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2891
2892 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
2893 of aggregate types that contain a placeholder.
2894
2895 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2896
2897 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
2898 TYPE_ARG_TYPES.
2899 (handle_type_generic_attribute): Likewise.
2900
2901 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2902
2903 PR ada/47163
2904 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
2905
2906 2011-04-04 Kai Tietz <ktietz@redhat.com>
2907
2908 PR ada/47163
2909 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
2910 to flag value.
2911
2912 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2913
2914 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
2915 type case, do not strip a padding type around the array type.
2916
2917 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2918
2919 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
2920 types.
2921
2922 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2923
2924 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
2925 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
2926 code for -feliminate-unused-debug-types.
2927 (gnat_post_options): Likewise.
2928
2929 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2930
2931 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
2932 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
2933 distinct copy.
2934
2935 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2936
2937 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
2938 DECL_ARTIFICIAL flag on enumeration types.
2939
2940 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2941
2942 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
2943 fat pointer types artificial unconditionally.
2944 <E_Array_Subtype>: Attach the base array type as a parallel type if it
2945 isn't artificial.
2946
2947 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2948
2949 * gcc-interface/gigi.h (get_dummy_type): Declare.
2950 (build_dummy_unc_pointer_types): Likewise.
2951 (finish_fat_pointer_type): Likewise.
2952 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
2953 fat pointer type has been built, complete it in place.
2954 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
2955 and thin pointers. Remove useless variable.
2956 (finish_fat_pointer_type): Make global and move to...
2957 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
2958 (get_dummy_type): New function.
2959 (build_dummy_unc_pointer_types): Likewise.
2960 (gnat_pushdecl): Propage the name to the anonymous variants only.
2961 (update_pointer_to): Only adjust the pointer types in the unconstrained
2962 array case.
2963
2964 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2965
2966 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
2967 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
2968 if this is a Taft amendment type and the full declaration is available.
2969 * gcc-interface/trans.c (process_type): Likewise.
2970 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
2971 (process_freeze_entity): Likewise.
2972 * gcc-interface/utils.c (dummy_global): New static variable.
2973 (gnat_write_global_declarations): If there are types declared as used
2974 at the global level, insert them in the global hash table.
2975
2976 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2977
2978 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
2979 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
2980 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
2981 copy.
2982 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
2983 flag of the type accordingly.
2984 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
2985
2986 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
2987
2988 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
2989 finalizing types when updating the pointers to the designated type.
2990 <all>: Finalize the deferred types even if we didn't defer processing
2991 of incomplete types in this invocation.
2992
2993 2011-04-01 Olivier Hainque <hainque@adacore.com>
2994 Nicolas Setton <setton@adacore.com>
2995 Eric Botcazou <ebotcazou@adacore.com>
2996
2997 * gcc-interface/misc.c (gnat_descriptive_type): New function.
2998 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
2999
3000 2011-03-28 Kai Tietz <ktietz@redhat.com>
3001
3002 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
3003 Windows targets.
3004 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
3005 * system-mingw.ads (System): Change ZCX_By_Default default to True.
3006
3007 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
3008
3009 2011-03-28 Tristan Gingold <gingold@adacore.com>
3010
3011 PR ada/44431
3012 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
3013 Use ada output of gnatbind.
3014 (ada/b_gnatb.adb): Ditto.
3015 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
3016 (ada.mostlyclean, ada.stage1)
3017 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
3018 (ada.stagefeedback): Adjust.
3019 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
3020 Use ada output of gnatbind.
3021 (b_gnatm.adb): Ditto.
3022 (b_gnatl.o, b_gnatm.o): New rules.
3023
3024 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3025
3026 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
3027 for the padded type built to support a specified size or alignment.
3028
3029 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3030
3031 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
3032 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
3033 unconditionally to the end of the unit when the designated type is
3034 limited_with'ed.
3035 <all>: Rename local variable. Attempt to un-defer types only and do it
3036 for limited_with'ed types as well.
3037 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
3038 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
3039 consistently and remove redundant call to finalize_from_with_types.
3040
3041 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3042
3043 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
3044 subprograms without a previous spec declared in the same unit.
3045 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
3046 subprograms at the end of the unit instead of at the beginning.
3047 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
3048 isn't public for the special handling of non-inline functions nested
3049 inside inline external functions.
3050
3051 2011-03-25 Jeff Law <law@redhat.com>
3052
3053 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
3054
3055 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3056
3057 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
3058 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
3059 to compute Set_Size_Depends_On_Discriminant.
3060 (Layout_Type): Call it on array types in back-end layout mode.
3061 * sem_util.adb (Requires_Transient_Scope): Return true for array
3062 types only if the size depends on the value of discriminants.
3063 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
3064 type if the RHS is a call to a function that returns an unconstrained
3065 type with default discriminant.
3066
3067 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3068
3069 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
3070 non-conversion to the nominal result type at the end.
3071
3072 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
3073
3074 * gcc-interface/trans.c (create_temporary): New function taken from...
3075 (create_init_temporary): ...here. Call it.
3076 (call_to_gnu): Create the temporary for the return value early, if any.
3077 Create it for a function with copy-in/copy-out parameters if there is
3078 no target; in other cases of copy-in/copy-out, use another temporary.
3079 Push the new binding level lazily. Add and rename local variables.
3080
3081 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
3082
3083 * gcc-interface/decl.c (validate_size): Improve comments and tweak
3084 error message.
3085 (set_rm_size): Likewise.
3086
3087 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
3088
3089 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
3090 for the padded type built in order to support a specified alignment.
3091 Fix incorrect formatting.
3092
3093 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3094
3095 PR bootstrap/48216
3096 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
3097
3098 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3099
3100 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
3101 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
3102 to the end of the list. Adjust recursive call. Rename local variable.
3103 If REORDER is true, reorder components of the record type.
3104 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
3105 components_to_record and adjust the parameter list.
3106
3107 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3108
3109 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
3110 disabled, use the variable for bounds of loop iteration scheme.
3111
3112 2011-03-21 Kai Tietz <ktietz@redhat.com>
3113
3114 PR target/12171
3115 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
3116
3117 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
3118
3119 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
3120 out whether the expression is read-only. Short-circuit placeholder
3121 case and rename a couple of local variables.
3122
3123 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
3124
3125 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
3126 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
3127 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
3128 (convert): Deal with conversions from a smaller form type specially.
3129
3130 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
3131
3132 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
3133 its argument, except for the special -I- switch.
3134
3135 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3136
3137 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
3138 "Ada Issues".
3139
3140 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
3141
3142 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
3143
3144 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
3145
3146 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
3147 GNAT_FORMAL.
3148 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
3149 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
3150 instead of GNAT_FORMAL. Protect the expression against multiple uses.
3151 Do not generate the check directly, instead instantiate the template
3152 check present in the descriptor.
3153 (make_descriptor_field): Move around.
3154 (build_vms_descriptor32): Build a template check in the POINTER field.
3155 (build_vms_descriptor): Remove useless suffixes.
3156 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
3157
3158 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
3159
3160 PR bootstrap/47467
3161 * targext.c: Include target files if IN_RTS is defined.
3162
3163 2011-01-26 Richard Guenther <rguenther@suse.de>
3164
3165 PR bootstrap/47467
3166 * targext.c: Include config.h.
3167 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
3168 dependency.
3169
3170 2011-01-04 Pascal Obry <obry@adacore.com>
3171 Eric Botcazou <ebotcazou@adacore.com>
3172
3173 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
3174
3175 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3176
3177 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
3178 end-of-case on the end label and its associated gotos, if any.
3179
3180 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
3183 expressions of the parameter cache within the statement group of
3184 the CICO mechanism.
3185
3186 2011-01-04 Olivier Hainque <hainque@adacore.com>
3187 Eric Botcazou <ebotcazou@adacore.com>
3188
3189 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
3190 (set_end_locus_from_node): New function.
3191 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
3192 make and the function end_locus.
3193 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
3194 for the elaboration subprogram.
3195 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
3196 set the end_locus of the expression as well.
3197
3198 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3199
3200 PR ada/47131
3201 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
3202 variables that are referenced in exception handlers volatile.
3203
3204
3205 \f
3206 Copyright (C) 2011 Free Software Foundation, Inc.
3207
3208 Copying and distribution of this file, with or without modification,
3209 are permitted in any medium without royalty provided the copyright
3210 notice and this notice are preserved.
3211
3212 * gnat_rm.texi: Ramification of pragma Eliminate documentation
3213 - fix bugs in the description of Source_Trace;
3214 - get rid of UNIT_NAME;
3215
3216 2011-08-02 Javier Miranda <miranda@adacore.com>
3217
3218 * exp_ch9.adb
3219 (Build_Dispatching_Requeue): Adding support for VM targets
3220 since we cannot directly reference the Tag entity.
3221 * exp_sel.adb (Build_K): Adding support for VM targets.
3222 (Build_S_Assignment): Adding support for VM targets.
3223 * exp_disp.adb
3224 (Default_Prim_Op_Position): In VM targets do not restrict availability
3225 of predefined interface primitives to compiling in Ada 2005 mode.
3226 (Is_Predefined_Interface_Primitive): In VM targets this service is not
3227 restricted to compiling in Ada 2005 mode.
3228 (Make_VM_TSD): Generate code that declares and initializes the OSD
3229 record. Needed to support dispatching calls through synchronized
3230 interfaces.
3231 * exp_ch3.adb
3232 (Make_Predefined_Primitive_Specs): Enable generation of predefined
3233 primitives associated with synchronized interfaces.
3234 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
3235 primitives associated with synchronized interfaces.
3236
3237 2011-08-02 Yannick Moy <moy@adacore.com>
3238
3239 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
3240 statements hidden in SPARK if preceded by the HIDE directive
3241 (Parse_Exception_Handlers): mark each exception handler in a sequence of
3242 exception handlers as hidden in SPARK if preceded by the HIDE directive
3243 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
3244 if starting with the HIDE directive
3245 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
3246 starting with the HIDE directive; mark the declarations in a private
3247 part as hidden in SPARK if the private part starts with the HIDE
3248 directive
3249 * restrict.adb, restrict.ads
3250 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
3251 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
3252 argument node belongs to a part which is hidden in SPARK
3253 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
3254 parts in SPARK; protect the possibly costly call to
3255 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
3256 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
3257 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
3258 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
3259 Tok_SPARK_Hide.
3260 (Scan): recognize special comment starting with '#' and followed by
3261 SPARK keyword "hide" as a HIDE directive.
3262
3263 2011-08-02 Yannick Moy <moy@adacore.com>
3264
3265 * types.ads, erroutc.ads: Minor reformatting.
3266
3267 2011-08-02 Vincent Celier <celier@adacore.com>
3268
3269 * link.c: Add response file support for cross platforms.
3270
3271 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3272
3273 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
3274 in an association, set parent field of copy before partial analysis.
3275 * sem_res.adb (Resolve_Slice): create reference to itype only when
3276 expansion is enabled.
3277
3278 2011-08-02 Yannick Moy <moy@adacore.com>
3279
3280 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
3281 for new flag denoting which subprogram bodies are in ALFA
3282 * restrict.adb, sem_ch7.adb: Update comment
3283 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
3284 sem_ch9.adb, sem_res.adb: Add calls to
3285 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
3286 * sem_ch6.adb (Analyze_Function_Return): add calls to
3287 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
3288 middle of the body, and extended return.
3289 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
3290 False when missing return.
3291 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
3292 to True for subprograms whose spec is in ALFA. Remove later on the flag
3293 on the entity used for a subprogram body when there exists a separate
3294 declaration.
3295 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
3296 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
3297 False, otherwise do nothing.
3298
3299 2011-08-02 Robert Dewar <dewar@adacore.com>
3300
3301 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
3302
3303 2011-08-02 Yannick Moy <moy@adacore.com>
3304
3305 * sem_ch4.ads: minor formatting.
3306
3307 2011-08-02 Yannick Moy <moy@adacore.com>
3308
3309 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
3310 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
3311 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
3312 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
3313 opt.ads: cleanup of SPARK mode
3314
3315 2011-08-02 Yannick Moy <moy@adacore.com>
3316
3317 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
3318 types.
3319 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
3320 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
3321 * sem_ch3.adb
3322 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
3323 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
3324 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
3325 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
3326 types.
3327 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
3328 non-static range.
3329 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
3330 functions whose return type is not in ALFA.
3331 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
3332 specifications.
3333 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
3334 parameter's type is not in ALFA.
3335 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
3336 types are in ALFA.
3337
3338 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3339
3340 * sem_ch6 (Analyze_Expression_Function): treat the function as
3341 Inline_Always, and introduce a subprogram declaration for it when it is
3342 not a completion.
3343 * inline.adb (Add_Inlined_Body): recognize bodies that come from
3344 expression functions, so that the back-end can determine whether they
3345 can in fact be inlined.
3346 * sem_util.adb (Is_Expression_Function): predicate to determine whether
3347 a function body comes from an expression function.
3348
3349 2011-08-02 Gary Dismukes <dismukes@adacore.com>
3350
3351 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
3352 null exclusions to test Can_Never_Be_Null on the anonymous access types
3353 of the formals rather than testing the formals themselves. Exclude this
3354 check in cases where the Old_Formal is marked as a controlling formal,
3355 to avoid issuing spurious errors for bodies completing dispatching
3356 operations (due to the flag not getting set on controlling access
3357 formals in body specs).
3358 (Find_Corresponding_Spec): When checking full and subtype conformance of
3359 subprogram bodies in instances, pass Designated and E in that order, for
3360 consistency with the expected order of the formals (New_Id followed by
3361 Old_Id).
3362
3363 2011-08-02 Robert Dewar <dewar@adacore.com>
3364
3365 * sem_ch8.adb: Minor reformatting.
3366
3367 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3368
3369 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
3370 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
3371 primitive operations of class-wide actuals.
3372
3373 2011-08-02 Javier Miranda <miranda@adacore.com>
3374
3375 * exp_atag.ads, exp_atag.adb
3376 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
3377 since its value is implicitly passed in argument Typ.
3378 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
3379 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
3380 Build_Common_Dispatching_Select_Statements.
3381
3382 2011-08-02 Robert Dewar <dewar@adacore.com>
3383
3384 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
3385 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
3386 Minor reformatting.
3387
3388 2011-08-02 Robert Dewar <dewar@adacore.com>
3389
3390 * sem_res.adb: Minor reformatting.
3391 * sem_prag.adb: Minor reformatting.
3392
3393 2011-08-02 Javier Miranda <miranda@adacore.com>
3394
3395 * exp_atag.adb, exp_atags.ads
3396 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
3397 by the tagged type Entity. Required to use this routine in the VM
3398 targets since we do not have available the Tag entity in the VM
3399 platforms.
3400 * exp_ch6.adb
3401 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
3402 Ada.Tags has not been previously loaded.
3403 * exp_ch7.adb
3404 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
3405 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
3406 * sem_aux.adb
3407 (Enclosing_Dynamic_Scope): Add missing support to handle the full
3408 view of enclosing scopes. Required to handle enclosing scopes that
3409 are synchronized types whose full view is a task type.
3410 * exp_disp.adb
3411 (Build_VM_TSDs): Minor code improvement to avoid generating and
3412 analyzing lists with empty nodes.
3413 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
3414 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
3415 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
3416 (Make_Disp_Timed_Select_Body): Add support for VM targets.
3417 (Make_Select_Specific_Data_Table): Add support for VM targets.
3418 (Make_VM_TSD): Generate code to initialize the SSD structure of
3419 the TSD.
3420
3421 2011-08-02 Yannick Moy <moy@adacore.com>
3422
3423 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
3424 cross-references section in ALI.
3425 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
3426 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
3427 Sub).
3428 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
3429 subprogram or package entity of a node
3430 (Is_Local_Reference_Type): new function returns True for references
3431 selected in local cross-references.
3432 (Lt): function extracted from Lt in Output_References
3433 (Write_Entity_Name): function extracted from Output_References
3434 (Generate_Definition): generate reference with type 'D' for definition
3435 of objects (object declaration and parameter specification), with
3436 appropriate locations and units, for use in local cross-references.
3437 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
3438 references of type 'I' for initialization in object definition.
3439 (Output_References): move part of function Lt and procedure
3440 Write_Entity_Name outside of the body. Ignore references of types 'D'
3441 and 'I' introduced for local cross-references.
3442 (Output_Local_References): new procedure to output the local
3443 cross-references sections.
3444 (Lref_Entity_Status): new array defining whether an entity is a local
3445 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
3446 with 'I' type when initialization expression is present.
3447 * get_scos.adb, get_scos.ads: Correct comments and typos
3448
3449 2011-08-02 Javier Miranda <miranda@adacore.com>
3450
3451 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
3452 the JVM target.
3453 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
3454 the JVM target.
3455 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
3456 TSD support.
3457
3458 2011-08-02 Vincent Celier <celier@adacore.com>
3459
3460 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
3461 (No_Space_Img): New function
3462 (Find_Excluded_Sources): When reading from a file, record the file name
3463 and the line number for each excluded source.
3464 (Mark_Excluded_Sources): When reporting an error, if the excluded
3465 sources were read from a file, include file name and line number in
3466 the error message.
3467
3468 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3469
3470 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
3471
3472 2011-08-02 Robert Dewar <dewar@adacore.com>
3473
3474 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
3475
3476 2011-08-02 Javier Miranda <miranda@adacore.com>
3477
3478 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
3479 generation of TSDs to the DOTNET compiler.
3480 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
3481 generation of TSDs to the DOTNET compiler.
3482
3483 2011-08-02 Javier Miranda <miranda@adacore.com>
3484
3485 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
3486 record of all the tagged types declared inside library level package
3487 declarations, library level package bodies or library level subprograms.
3488 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
3489 associated with a given tagged type.
3490 (Build_VM_TSDs): New subprogram.
3491 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
3492 compilation units that are subprograms.
3493 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
3494 compilation units that are package bodies.
3495 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
3496 units that are a package declaration or a package instantiation.
3497 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
3498 reorganization to improve the error generated by the frontend when the
3499 function Ada.Tags.Secondary_Tag is not available.
3500 * rtsfind.ads (RE_Register_TSD): New runtime entity.
3501 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
3502
3503 2011-08-02 Javier Miranda <miranda@adacore.com>
3504
3505 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
3506
3507 2011-08-02 Robert Dewar <dewar@adacore.com>
3508
3509 * s-imenne.ads: Minor reformatting.
3510
3511 2011-08-02 Robert Dewar <dewar@adacore.com>
3512
3513 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
3514 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
3515 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
3516
3517 2011-08-02 Robert Dewar <dewar@adacore.com>
3518
3519 * einfo.ads (Materialize_Entity): Document this is only for renamings
3520 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
3521 required debug information in the case where we transform the object
3522 declaration into a renaming declaration.
3523 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
3524 object
3525 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
3526 Materialize_Entity.
3527
3528 2011-08-02 Robert Dewar <dewar@adacore.com>
3529
3530 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
3531 Suppress_Init_Procs.
3532 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
3533 Suppress_Initialization/Initialization_Suppressed.
3534 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
3535 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
3536 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
3537 * sem_prag.adb: New processing for pragma Suppress_Initialization.
3538
3539 2011-08-02 Robert Dewar <dewar@adacore.com>
3540
3541 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
3542 Minor reformatting.
3543
3544 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3545
3546 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
3547 only have inheritable classwide pre/postconditions.
3548
3549 2011-08-02 Javier Miranda <miranda@adacore.com>
3550
3551 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
3552 * rtsfind.ads (RE_Check_TSD): New runtime entity.
3553 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
3554 checks if the external tag of a type is the same as the external tag
3555 of some other declaration.
3556
3557 2011-08-02 Thomas Quinot <quinot@adacore.com>
3558
3559 * s-taskin.ads: Minor reformatting.
3560
3561 2011-08-02 Emmanuel Briot <briot@adacore.com>
3562
3563 * g-comlin.adb (Display_Help): swap the order in which it prints the
3564 short help and the general usage.
3565
3566 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3567
3568 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
3569 the aspect declarations and attach them to the generic copy for
3570 subsequent analysis.
3571 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
3572 declarations of the generic tree to the new subprogram declarations.
3573 * sem_attr.adb (Check_Precondition_Postcondition): recognize
3574 conditions that apply to a subprogram instance.
3575
3576 2011-08-02 Robert Dewar <dewar@adacore.com>
3577
3578 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
3579
3580 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3581
3582 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
3583 private type with a tagged full view is not derived in the immediate
3584 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
3585
3586 2011-08-02 Robert Dewar <dewar@adacore.com>
3587
3588 * exp_ch4.adb: Minor reformatting.
3589
3590 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3591
3592 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
3593 Ada2012 iterator, the loop will be rewritten during expansion into a
3594 while loop with a cursor and an element declaration. Do not analyze the
3595 body in this case, because if the container is for indefinite types the
3596 actual subtype of the elements will only be determined when the cursor
3597 declaration is analyzed.
3598
3599 2011-08-02 Arnaud Charlet <charlet@adacore.com>
3600
3601 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
3602 size/alignment related attributes in CodePeer_Mode.
3603
3604 2011-08-02 Gary Dismukes <dismukes@adacore.com>
3605
3606 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
3607 Prepend_Element, since this can result in the operation getting the
3608 wrong slot in the full type's dispatch table if the full type has
3609 inherited operations. The incomplete type's operation will get added
3610 to the proper position in the full type's primitives
3611 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
3612 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
3613 dispatching operations, since there are cases where nonprimitive
3614 subprograms can get added to the list of incomplete dependents (such
3615 as subprograms in nested packages).
3616 * sem_ch6.adb (Process_Formals): First, remove test for being in a
3617 private part when determining whether to add a primitive with a
3618 parameter of a tagged incomplete type to the Private_Dependents list.
3619 Such primitives can also occur in the visible part, and should not have
3620 been excluded from being private dependents.
3621 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
3622 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
3623 list of a Taft-amendment incomplete type is a primitive before issuing
3624 an error that the full type must appear in the same unit. There are
3625 cases where nonprimitives can be in the list (such as subprograms in
3626 nested packages).
3627 * sem_disp.adb (Derives_From): Use correct condition for checking that
3628 a formal's type is derived from the type of the corresponding formal in
3629 the parent subprogram (the condition was completely wrong). Add
3630 checking that was missing for controlling result types being derived
3631 from the result type of the parent operation.
3632
3633 2011-08-02 Yannick Moy <moy@adacore.com>
3634
3635 * errout.adb (First_Node): minor renaming
3636 * restrict.adb (Check_Formal_Restriction): put restriction warning on
3637 first node.
3638
3639 2011-08-02 Yannick Moy <moy@adacore.com>
3640
3641 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
3642 before accessing operands.
3643 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
3644 decide whether an initialization expression respects SPARK rules, as
3645 the plain node is the expanded one. This allows for more valid warnings
3646 to be issued.
3647 * gnat_rm.texi: Minor update.
3648
3649 2011-08-02 Arnaud Charlet <charlet@adacore.com>
3650
3651 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
3652 previous change.
3653
3654 2011-08-02 Robert Dewar <dewar@adacore.com>
3655
3656 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
3657
3658 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
3659
3660 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
3661 loop statements and the element renaming declaration with a block when
3662 the element type is controlled.
3663
3664 2011-08-02 Yannick Moy <moy@adacore.com>
3665
3666 * sinfo.ads: Minor formatting.
3667
3668 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3669
3670 * sem_aggr.adb (Add_Association): if the association has a box and no
3671 expression, use the Sloc of the aggregate itself for the new
3672 association.
3673 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
3674 the Original_Node.
3675
3676 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
3677
3678 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
3679 When a container is provided via a function call, generate a renaming
3680 of the function result. This avoids the creation of a transient scope
3681 and the premature finalization of the container.
3682 * exp_ch7.adb (Is_Container_Cursor): Removed.
3683 (Wrap_Transient_Declaration): Remove the supression of the finalization
3684 of the list controller when the declaration denotes a container cursor,
3685 it is not needed.
3686
3687 2011-08-02 Yannick Moy <moy@adacore.com>
3688
3689 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
3690 node is from source, instead of the original node being from source.
3691 * sem_aggr.adb
3692 (Resolve_Array_Aggregate): refine the check for a static expression, to
3693 recognize also static ranges
3694 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
3695 Array_Type_Declaration): postpone the test for the type being a subtype
3696 mark after the type has been resolved, so that component-selection and
3697 expanded-name are discriminated.
3698 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
3699 to distinguish the case of an iteration scheme, so that an error is
3700 issed on a non-static range in SPARK except in an iteration scheme.
3701 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
3702 In_Iter_Schm = True.
3703 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
3704 user-defined operators so that they are allowed in renaming
3705 * sem_ch8.adb
3706 (Find_Selected_Component): refine the check for prefixing of operators
3707 so that they are allowed in renaming. Move the checks for restrictions
3708 on selector name after analysis discriminated between
3709 component-selection and expanded-name.
3710 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
3711 concatenation argument of string type if it is static.
3712 * sem_util.adb, sem_util.ads
3713 (Check_Later_Vs_Basic_Declarations): add a new function
3714 Is_Later_Declarative_Item to decice which declarations are allowed as
3715 later items, in the two different modes Ada 83 and SPARK. In the SPARK
3716 mode, add that renamings are considered as later items.
3717 (Enclosing_Package): new function to return the enclosing package
3718 (Enter_Name): correct the rule for homonyms in SPARK
3719 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
3720 from source (result of expansion) to avoid issuing wrong warnings.
3721
3722 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3723
3724 * errout.adb: On anything but an expression First_Node returns its
3725 argument.
3726
3727 2011-08-02 Pascal Obry <obry@adacore.com>
3728
3729 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
3730
3731 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
3732
3733 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
3734 Set the associated loop as the related expression of internally
3735 generated cursors.
3736 * exp_ch7.adb (Is_Container_Cursor): New routine.
3737 (Wrap_Transient_Declaration): Supress the finalization of the list
3738 controller when the declaration denotes a container cursor.
3739
3740 2011-08-02 Yannick Moy <moy@adacore.com>
3741
3742 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
3743 command line now.
3744 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
3745 expression is a simple expression. This check cannot be performed in
3746 the semantics, so just drop it.
3747 (P_Index_Or_Discriminant_Constraint): move check that the index or
3748 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
3749 semantics. Other cases were previously checked in the semantics.
3750 * par-ch4.adb (P_Name): move checks that a selector name is not
3751 character literal or an operator symbol to Find_Selected_Component in
3752 the semantics
3753 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
3754 declarations are not placed after later declarations in a separate
3755 procedure in Sem_Util (possibly not the best choice?), to be used both
3756 during parsing, for Ada 83 mode, and during semantic analysis, for
3757 SPARK mode.
3758 * par-endh.adb (Check_End): move check that end label is not missing
3759 to Process_End_Label in the semantics
3760 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
3761 the special case for SPARK restriction
3762 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
3763 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
3764 parameter Force to issue the error message even on internal node (used
3765 for generated end label). Call Check_Restriction to check when an error
3766 must be issued. In SPARK mode, issue an error message even if the
3767 restriction is not set.
3768 (Check_Restriction): new procedure with an additional out parameter to
3769 inform the caller that a message has been issued
3770 * sem_aggr.adb: Minor modification of message
3771 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
3772 instead of issuing an error message directly
3773 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
3774 declarations are not placed after later declarations, by calling
3775 Check_Later_Vs_Basic_Declarations
3776 (Analyze_Subtype_Declaration): move here the check that an index or
3777 discriminant constraint must be a subtype mark. Change the check that
3778 a subtype of String must start at one so that it works on subtype marks.
3779 * sem_ch4.adb (Analyze_Call): move here the check that a named
3780 association cannot follow a positional one in a call
3781 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
3782 instead of issuing an error message directly
3783 * sem_ch8.adb (Find_Selected_Component): move here the check that a
3784 selector name is not a character literal or an operator symbol. Move
3785 here the check that the prefix of an expanded name cannot be a
3786 subprogram or a loop statement.
3787 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
3788 procedure called from parsing and semantics to check that basic
3789 declarations are not placed after later declarations
3790 (Process_End_Label): move here the check that end label is not missing
3791
3792 2011-08-02 Arnaud Charlet <charlet@adacore.com>
3793
3794 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
3795 representation clause in codepeer mode, since it confuses CodePeer and
3796 does not bring useful info.
3797
3798 2011-08-02 Ed Falis <falis@adacore.com>
3799
3800 * init.c: initialize fp hw on MILS.
3801
3802 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3803
3804 * errout.adb (First_Node): for bodies, return the node itself (small
3805 optimization). For other nodes, do not check source_unit if the node
3806 comes from Standard.
3807
3808 2011-08-02 Robert Dewar <dewar@adacore.com>
3809
3810 * exp_ch3.adb: Minor comment additions.
3811 * sem_ch13.adb: Minor reformatting.
3812
3813 2011-08-02 Pascal Obry <obry@adacore.com>
3814
3815 * make.adb, makeutl.adb: Removes some superfluous directory separator.
3816
3817 2011-08-02 Robert Dewar <dewar@adacore.com>
3818
3819 * sem_attr.adb: Minor reformatting.
3820
3821 2011-08-02 Robert Dewar <dewar@adacore.com>
3822
3823 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
3824 (Has_Default_Component_Value): Removed
3825 * einfo.ads Comment updates
3826 (Has_Default_Aspect): Replaces Has_Default_Value
3827 (Has_Default_Component_Value): Removed
3828 * exp_ch13.adb
3829 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
3830 * exp_ch3.adb
3831 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
3832 (Get_Simple_Init_Val): Handle Default_Value aspect
3833 (Needs_Simple_Initialization): Handle Default_Value aspect
3834 * exp_ch3.ads: Needs_Simple_Initialization
3835 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
3836 * par-prag.adb (Pragma_Default[_Component]Value) Removed
3837 * sem_ch13.adb
3838 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
3839 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
3840 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
3841
3842 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3843
3844 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
3845 package containing iteration primitives.
3846 exp_ch5.adb (Expand_Iterator_Loop): ditto.
3847
3848 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3849
3850 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
3851 "of", pre-analyze expression in case it is a function call with
3852 finalization actions that must be placed ahead of the loop.
3853 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
3854 on an Ada2012 iterator, insert them ahead of the rewritten loop.
3855
3856 2011-08-02 Geert Bosch <bosch@adacore.com>
3857
3858 * cstand.adb (Create_Float_Types): Only consider C's long double for
3859 Long_Long_Float, in addition to double.
3860
3861 2011-08-02 Robert Dewar <dewar@adacore.com>
3862
3863 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
3864 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
3865 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
3866 Minor reformatting.
3867
3868 2011-08-02 Ed Schonberg <schonberg@adacore.com>
3869
3870 * sem_attr.adb: handle properly 'Result when it is a prefix of an
3871 indexed component.
3872
3873 2011-08-02 Javier Miranda <miranda@adacore.com>
3874
3875 * einfo.ads, einfo.adb
3876 (Original_Access_Type): Move this attribute to Node26 since there was
3877 an undocumented use of Node21 in E_Access_Subprogram_Type entities
3878 which causes conflicts and breaks the generation of the .NET compiler.
3879 (Interface_Name): Add missing documentation on JGNAT only uses of
3880 this attribute.
3881
3882 2011-08-02 Geert Bosch <bosch@adacore.com>
3883
3884 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
3885 (Find_Back_End_Float_Type): Likewise
3886 (Create_Back_End_Float_Types): Likewise
3887 (Create_Float_Types): Likewise
3888 (Register_Float_Type): Likewise
3889 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
3890 Nlist and split out type selection in new local Find_Base_Type function.
3891 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
3892 Nlist
3893 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
3894
3895 2011-08-02 Robert Dewar <dewar@adacore.com>
3896
3897 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
3898 alpha order).
3899 * opt.ads: Minor comment change.
3900 * sem_ch12.adb: Minor code reorganization.
3901
3902 2011-08-02 Gary Dismukes <dismukes@adacore.com>
3903
3904 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
3905 subtype's list of rep items to the list on the full subtype in the case
3906 where the lists are the same.
3907
3908 2011-08-02 Geert Bosch <bosch@adacore.com>
3909
3910 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
3911 using the one from System.Strings, which also deallocates all strings.
3912
3913 2011-08-02 Geert Bosch <bosch@adacore.com>
3914
3915 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
3916 function.
3917 * gcc-interface/Make-lang.in: Update dependencies.
3918
3919 2011-08-02 Olivier Hainque <hainque@adacore.com>
3920
3921 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
3922 end_locus.
3923
3924 2011-08-02 Javier Miranda <miranda@adacore.com>
3925
3926 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
3927 associated with anonymous access to subprograms.
3928
3929 2011-08-02 Geert Bosch <bosch@adacore.com>
3930
3931 * opt.ads
3932 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
3933 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
3934 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
3935 (Add_Symbol_Definition): Move to switch-c.adb
3936 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
3937 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
3938 (Add_Symbol_Definition): Move to switch-c.adb.
3939 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
3940 * sem_warn.adb
3941 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
3942 Move to warnsw.adb.
3943 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
3944 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
3945 Move to warnsw.adb.
3946 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
3947 (Add_Symbol_Definition): Moved from Prepcomp.
3948 * switch-c.ads: Update copyright notice. Use String_List instead of
3949 Argument_List, removing dependency on System.OS_Lib.
3950
3951 2011-08-02 Yannick Moy <moy@adacore.com>
3952
3953 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
3954 mode on initialization expression which does not respect SPARK
3955 restrictions.
3956 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
3957 if the tree referenced by its argument represents an initialization
3958 expression in SPARK, suitable for initializing an object in an object
3959 declaration.
3960
3961 2011-08-02 Javier Miranda <miranda@adacore.com>
3962
3963 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
3964 internally generated access to subprogram with its associated protected
3965 subprogram type.
3966 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
3967
3968 2011-08-02 Geert Bosch <bosch@adacore.com>
3969
3970 * cstand.adb (Register_Float_Type): Print information about type to
3971 register, if the Debug_Flag_Dot_B is set.
3972 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
3973 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
3974 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
3975 with a requested precision of more than Max_Digits digits and no more
3976 than Max_Base_Digits digits, if a range specification is present and the
3977 Predefined_Float_Types list has a suitable type to derive from.
3978 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
3979 case of type completion with pragma Import
3980 * sem_prag.adb
3981 (Process_Import_Predefined_Type): Processing to complete a type
3982 with pragma Import. Currently supports floating point types only.
3983 (Set_Convention_From_Pragma): Do nothing without underlying type.
3984 (Process_Convention): Guard against absence of underlying type,
3985 which may happen when importing incomplete types.
3986 (Process_Import_Or_Interface): Handle case of importing predefined
3987 types. Tweak error message.
3988
3989 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
3990
3991 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
3992 functions to previous change. Reorganize code slightly.
3993
3994 2011-08-02 Geert Bosch <bosch@adacore.com>
3995
3996 * back_end.ads (Register_Type_Proc): New call back procedure type for
3997 allowing the back end to provide information about available types.
3998 (Register_Back_End_Types): New procedure to register back end types.
3999 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
4000 available types.
4001 * cstand.adb (Back_End_Float_Types): New list for floating point types
4002 supported by the back end.
4003 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
4004 (Copy_Float_Type): New procedure to make new copies of predefined types.
4005 (Register_Float_Type): New call back procedure to populate the BEFT list
4006 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
4007 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
4008 (Create_Float_Types): New procedure to create entities for floating
4009 point types predefined in Standard, and put these and any remaining
4010 BEFTs on the Predefined_Float_Types list.
4011 * stand.ads (Predefined_Float_Types): New list for predefined floating
4012 point types that do not have declarations in package Standard.
4013
4014 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4015
4016 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
4017 entity node for the unit containing the parameter.
4018 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
4019 (Add_Inlined_Subprogram): Likewise.
4020 * gcc-interface/Make-lang.in: Update dependencies.
4021
4022 2011-08-02 Thomas Quinot <quinot@adacore.com>
4023
4024 * s-stusta.adb (Print): Make sure Pos is always initialized to a
4025 suitable value.
4026
4027 2011-08-02 Geert Bosch <bosch@adacore.com>
4028
4029 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
4030
4031 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4032
4033 * sem_type.adb (Covers): Move trivial case to the top and reuse the
4034 computed value of Base_Type.
4035
4036 2011-08-02 Yannick Moy <moy@adacore.com>
4037
4038 * restrict.adb (Check_Restriction): issue an error for any use of
4039 class-wide, even if the No_Dispatch restriction is not set.
4040 * sem_aggr.adb: Correct typos in comments and messages in formal mode
4041 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
4042 when completing a private extension, the type named in the private part
4043 is not the same as that named in the visible part.
4044 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
4045 of an inherited primitive operations of a tagged type or type extension
4046 that returns the tagged type.
4047 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
4048 function which returns True for an implicit operation inherited by the
4049 derived type declaration for the argument type.
4050 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
4051 order.
4052
4053 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4054
4055 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
4056 Process_Bounds, to perform analysis with expansion of a range or an
4057 expression that is the iteration scheme for a loop.
4058 (Analyze_Iterator_Specification): If domain of iteration is given by a
4059 function call with a controlled result, as is the case if call returns
4060 a predefined container, ensure that finalization actions are properly
4061 generated.
4062 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
4063
4064 2011-08-02 Javier Miranda <miranda@adacore.com>
4065
4066 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
4067 * gcc-interface/Make-lang.in: Update dependencies.
4068
4069 2011-08-02 Javier Miranda <miranda@adacore.com>
4070
4071 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
4072 determine if the analysis is performed using N or Original_Node (N).
4073 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
4074 functionality of routine Is_Variable avoids code duplication.
4075 * checks.adb (Determine_Range): Handle temporaries generated by
4076 Remove_Side_Effects.
4077
4078 2011-08-02 Javier Miranda <miranda@adacore.com>
4079
4080 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
4081 expansion of the condition. Required since the previous analysis was
4082 done with expansion disabled (see Resolve_Quantified_Expression) and
4083 hence checks were not inserted and record comparisons have not been
4084 expanded.
4085
4086 2011-08-02 Ed Falis <falis@adacore.com>
4087
4088 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
4089 Update header.
4090
4091 2011-08-02 Bob Duff <duff@adacore.com>
4092
4093 * opt.ads: Minor comment fix.
4094
4095 2011-08-02 Bob Duff <duff@adacore.com>
4096
4097 * sem_ch12.adb (Analyze_Package_Instantiation,
4098 Analyze_Subprogram_Instantiation): Turn off style checking while
4099 analyzing an instance. Whatever style checks that apply to the generic
4100 unit should apply, so it makes no sense to apply them in an instance.
4101 This was causing trouble when compiling an instance of a runtime
4102 unit that violates the -gnatyO switch.
4103 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
4104 one of the two case statements, causing spurious errors.
4105
4106 2011-08-02 Robert Dewar <dewar@adacore.com>
4107
4108 * uname.adb: Minor reformatting.
4109 * gnatcmd.adb: Minor reformatting.
4110 * exp_attr.adb: Minor reformatting.
4111
4112 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4113
4114 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
4115 No_Dispatching_Calls, do not look for the Assign primitive, because
4116 predefined primitives are not created in this case.
4117
4118 2011-08-02 Bob Duff <duff@adacore.com>
4119
4120 * stylesw.ads: Minor comment fixes.
4121
4122 2011-08-02 Robert Dewar <dewar@adacore.com>
4123
4124 * freeze.adb (Add_To_Result): New procedure.
4125
4126 2011-08-02 Jose Ruiz <ruiz@adacore.com>
4127
4128 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
4129 time, if the specific run-time routines for handling streams of strings
4130 are not available, use the default mechanism.
4131
4132 2011-08-02 Arnaud Charlet <charlet@adacore.com>
4133
4134 * s-regpat.ads: Fix typo.
4135
4136 2011-08-02 Vincent Celier <celier@adacore.com>
4137
4138 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
4139 not null, call it to create the in memory config project file without
4140 parsing an existing default config project file.
4141
4142 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
4145
4146 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4147
4148 * sem_elim.adb: an abstract subprogram does not need an eliminate
4149 pragma for its descendant to be eliminable.
4150
4151 2011-08-02 Ed Falis <falis@adacore.com>
4152
4153 * init.c: revert to handling before previous checkin for VxWorks
4154 * s-intman-vxworks.adb: delete unnecessary declarations related to
4155 using Ada interrupt facilities for handling signals.
4156 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
4157 * s-intman-vxworks.ads: Import __gnat_install_handler as
4158 Initialize_Interrupts.
4159 * s-taprop-vxworks.adb: Delete Signal_Mask.
4160 (Abort_Handler): change construction of mask to unblock exception
4161 signals.
4162
4163 2011-08-02 Jerome Guitton <guitton@adacore.com>
4164
4165 * a-except-2005.adb (Raise_From_Signal_Handler): Call
4166 Debug_Raise_Exception before propagation starts.
4167
4168 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4169
4170 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
4171 to Restriction_Check_Required.
4172 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
4173 * sem_res.adb (Resolve_Call): Likewise.
4174 * sem_attr.adb (Check_Stream_Attribute): Likewise.
4175
4176 2011-08-02 Bob Duff <duff@adacore.com>
4177
4178 * stylesw.ads: Update comment.
4179 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
4180 * errout.ads: Remove obsolete comment.
4181
4182 2011-08-02 Javier Miranda <miranda@adacore.com>
4183
4184 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
4185 (Set_Is_Safe_To_Reevaluate): new procedure.
4186 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
4187 assignment is allowed on safe-to-reevaluate variables.
4188 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
4189 temporary created to remove side effects in expressions that use
4190 the secondary stack as safe-to-reevaluate.
4191 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
4192 variables that are not true constants.
4193
4194 2011-08-02 Robert Dewar <dewar@adacore.com>
4195
4196 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
4197 sem_res.adb, sem_ch6.adb: Minor reformatting.
4198
4199 2011-08-02 Jerome Guitton <guitton@adacore.com>
4200
4201 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
4202
4203 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4204
4205 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
4206 not set Overridden_Operation if subprogram is an initialization
4207 procedure.
4208
4209 2011-08-02 Yannick Moy <moy@adacore.com>
4210
4211 * par-ch6.adb: Correct obsolete name in comments
4212 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
4213 which takes two message arguments (existing function takes one), with
4214 second message used for continuation.
4215 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
4216 block statements that originate from a source block statement, not
4217 generated block statements
4218 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
4219 symmetry with procedure case
4220 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
4221 function to issue an error in formal mode if a package specification
4222 contains more than one tagged type or type extension.
4223 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
4224 parameters matching formals of tagged types are objects (or ancestor
4225 type conversions of objects), not general expressions. Issue an error
4226 on view conversions that are not involving ancestor conversion of an
4227 extended type.
4228 (Resolve_Type_Conversion): in formal mode, issue an error on the
4229 operand of an ancestor type conversion which is not an object
4230 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
4231 procedure so that it works also for actuals of function calls
4232 (Is_Actual_Tagged_Parameter): new function which determines if its
4233 argument is an actual parameter of a formal of tagged type in a
4234 subprogram call
4235 (Is_SPARK_Object_Reference): new function which determines if the tree
4236 referenced by its argument represents an object in SPARK
4237
4238 2011-08-02 Robert Dewar <dewar@adacore.com>
4239
4240 * sem_ch3.adb: Minor reformatting
4241 Minor comment addition
4242 Minor error msg text change
4243
4244 2011-08-02 Javier Miranda <miranda@adacore.com>
4245
4246 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
4247 function. Used to be more precise when we generate a variable plus one
4248 assignment to remove side effects in the evaluation of the Bound
4249 expressions.
4250 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
4251 of the bound expression to force its re-analysis and thus expand the
4252 associated transient scope (if required). Code cleanup replacing the
4253 previous code that declared the constant entity by an invocation to
4254 routine Force_Evaluation which centralizes this work in the frontend.
4255
4256 2011-08-02 Robert Dewar <dewar@adacore.com>
4257
4258 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
4259 (Base_Type): Now uses improved Is_Base_Type function
4260 * einfo.ads (Base_Type): Inline this function
4261
4262 2011-08-02 Robert Dewar <dewar@adacore.com>
4263
4264 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
4265 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
4266
4267 2011-08-02 Arnaud Charlet <charlet@adacore.com>
4268
4269 * gcc-interface/Make-lang.in: Update dependencies.
4270 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
4271 targets.
4272
4273 2011-08-02 Yannick Moy <moy@adacore.com>
4274
4275 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
4276 non-simple expression used in delta constraint
4277 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
4278 index constraint which is not a subtype mark
4279 * par.adb: With and use Restrict
4280 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
4281 mode on component type which is not a subtype mark and default
4282 expression on component
4283 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
4284 of string which does not have a lower index bound equal to 1
4285 (Array_Type_Declaration): issue an error in formal mode on index or
4286 component type which is not a subtype mark, and on aliased keyword on
4287 component
4288 (Derived_Type_Declaration): issue an error in formal mode on interface,
4289 limited or abstract type
4290 (Record_Type_Declaration): issue an error in formal mode on interface
4291 (Record_Type_Definition): issue an error in formal mode on tagged types
4292 and type extensions not declared in the specification of a library unit
4293 package; on null non-tagged record; on variant part
4294
4295 2011-08-02 Vincent Celier <celier@adacore.com>
4296
4297 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
4298 not declared for qualified library project when Library_Name is not
4299 declared, but Library_Dir is.
4300
4301 2011-08-02 Robert Dewar <dewar@adacore.com>
4302
4303 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
4304 pragmas (affects aspects [Component_]Default_Value
4305 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
4306 component type for the resolution
4307
4308 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4309
4310 * einfo.adb (Base_Type): Tune implementation for speed.
4311
4312 2011-08-02 Robert Dewar <dewar@adacore.com>
4313
4314 * freeze.adb: Minor reformatting.
4315
4316 2011-08-02 Thomas Quinot <quinot@adacore.com>
4317
4318 * scos.ads: Update comments.
4319
4320 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4321
4322 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
4323 base type, because the parent may be a subtype of a private type whose
4324 convention is established in a private part.
4325
4326 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
4327
4328 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
4329 statement in a block when the expansion of the return expression has
4330 created a finalization chain.
4331 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
4332 with the parent node.
4333 Add N_Extended_Return_Statement to handle the case where a transient
4334 object declaration appears in the Return_Object_Declarations list of
4335 an extended return statement.
4336
4337 2011-08-02 Matthew Gingell <gingell@adacore.com>
4338
4339 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
4340 unused parameter 'name'.
4341
4342 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4343
4344 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
4345 inherited operation, check whether its alias, which is the source
4346 operastion that it renames, has been marked eliminated.
4347
4348 2011-08-02 Javier Miranda <miranda@adacore.com>
4349
4350 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
4351 in-mode parameter whose type is an access type since it can be used to
4352 modify its designated object. Enforce code that handles as safe an
4353 access type that is not access-to-constant but it is the result of a
4354 previous removal of side-effects.
4355 (Remove_Side_Effects): Minor code reorganization of cases which require
4356 no action. Done to incorporate documentation on new cases uncovered
4357 working in this ticket: no action needed if this routine was invoked
4358 too early and the nodes are not yet decorated.
4359 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
4360 to routine Remove_Side_Effects by calls to Force_Evaluation since they
4361 were issued with actuals that are implicitly provided by
4362 Force_Evaluation.
4363
4364 2011-08-02 Robert Dewar <dewar@adacore.com>
4365
4366 * sem_ch3.adb, sem_res.adb: Minor reformatting.
4367
4368 2011-08-02 Yannick Moy <moy@adacore.com>
4369
4370 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
4371 to issue an error in formal mode on attribute not supported in this mode
4372 (Analyze_Attribute): issue errors on standard attributes not supported
4373 in formal mode.
4374 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
4375 comment, and issue error in formal mode on modulus which is not a power
4376 of 2.
4377 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
4378 range.
4379 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
4380 subtype mark.
4381 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
4382 operator on modular type (except 'not').
4383
4384 2011-08-02 Robert Dewar <dewar@adacore.com>
4385
4386 * gnat_rm.texi: Minor reformatting.
4387
4388 2011-08-02 Arnaud Charlet <charlet@adacore.com>
4389
4390 * s-osinte-linux.ads: Minor comment update and reformatting.
4391 * i-cexten.ads: Make this unit pure, as for its parent.
4392 Will allow its usage in more contexts if needed.
4393
4394 2011-08-02 Robert Dewar <dewar@adacore.com>
4395
4396 * s-utf_32.ads: Minor comment fix.
4397
4398 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4399
4400 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
4401 operation of a tagged synchronized type, handle the case where the
4402 controlling argument is overloaded.
4403
4404 2011-08-02 Yannick Moy <moy@adacore.com>
4405
4406 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
4407 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
4408 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
4409 SPARK mode and formal verification mode on processing SPARK restriction
4410 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
4411 requiring consistency checking.
4412
4413 2011-08-02 Robert Dewar <dewar@adacore.com>
4414
4415 * sem_res.adb: Minor reformatting.
4416
4417 2011-08-02 Robert Dewar <dewar@adacore.com>
4418
4419 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
4420 a-cforse.ads: Remove unneeded with of Ada.Containers
4421 Remove commented out pragma Inline's
4422 Move specifications of new subprograms to the actual specs
4423
4424 2011-08-02 Yannick Moy <moy@adacore.com>
4425
4426 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
4427 a-cforse.ads: Update comments.
4428
4429 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4430
4431 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
4432
4433 2011-08-02 Robert Dewar <dewar@adacore.com>
4434
4435 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
4436 a-cforse.ads, a-cofove.ads: Minor reformatting.
4437
4438 2011-08-02 Claire Dross <dross@adacore.com>
4439
4440 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
4441 a-cofove.ads: Add comments.
4442
4443 2011-08-02 Yannick Moy <moy@adacore.com>
4444
4445 * gnat_rm.texi: Document formal containers.
4446
4447 2011-08-02 Emmanuel Briot <briot@adacore.com>
4448
4449 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
4450 are empty sections.
4451
4452 2011-08-02 Robert Dewar <dewar@adacore.com>
4453
4454 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
4455 reformatting.
4456
4457 2011-08-02 Robert Dewar <dewar@adacore.com>
4458
4459 * aspects.adb: New aspects Default_Value and Default_Component_Value
4460 New format of Aspect_Names table checks for omitted entries
4461 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
4462 handling of boolean aspects for derived types.
4463 New aspects Default_Value and Default_Component_Value
4464 New format of Aspect_Names table checks for omitted entries
4465 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
4466 (Has_Default_Value): New flag
4467 (Has_Default_Component_Value): New flag
4468 (Has_Default_Value): New flag
4469 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
4470 table.
4471 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
4472 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
4473 Default_Value and Default_Component_Value
4474 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
4475 New aspects Default_Value and Default_Component_Value
4476 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
4477 * sprint.adb: Print N_Aspect_Specification node when called from gdb
4478
4479 2011-08-02 Vincent Celier <celier@adacore.com>
4480
4481 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
4482 inherit library kind.
4483
4484 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4485
4486 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
4487 Minor reformatting.
4488
4489 2011-08-02 Robert Dewar <dewar@adacore.com>
4490
4491 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
4492
4493 2011-08-02 Yannick Moy <moy@adacore.com>
4494
4495 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
4496
4497 2011-08-02 Robert Dewar <dewar@adacore.com>
4498
4499 * impunit.adb: Add comment.
4500
4501 2011-08-02 Yannick Moy <moy@adacore.com>
4502
4503 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
4504 qualification of aggregates in formal mode
4505 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
4506 another aggregate
4507 (Resolve_Aggregate): complete the test that an aggregate is adequately
4508 qualified in formal mode
4509
4510 2011-08-02 Pascal Obry <obry@adacore.com>
4511
4512 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
4513 * mlib-prj.adb: Supress warning when compiling binder generated file.
4514 (Build_Library): Supress all warnings when compiling the binder
4515 generated file.
4516
4517 2011-08-02 Yannick Moy <moy@adacore.com>
4518
4519 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
4520 from here...
4521 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
4522 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
4523 Add with/use clauses to make Check_Formal_Restriction visible
4524
4525 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4526
4527 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
4528 in-parameters when type of the generic formal is private in the generic
4529 spec and non-private in the body.
4530
4531 2011-08-02 Claire Dross <dross@adacore.com>
4532
4533 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
4534 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
4535 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
4536 * impunit.adb, Makefile.rtl: Take new files into account.
4537
4538 2011-08-02 Robert Dewar <dewar@adacore.com>
4539
4540 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
4541 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
4542
4543 2011-08-02 Yannick Moy <moy@adacore.com>
4544
4545 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
4546 formal mode
4547 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
4548 matching static array bounds, taking into account the special case of
4549 string literals
4550 * sem_ch3.adb: Typo in comment.
4551
4552 2011-08-02 Yannick Moy <moy@adacore.com>
4553
4554 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
4555 which issues an error in formal mode if its argument node is originally
4556 from source
4557 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
4558 has a discriminant specification so that it does not include the case
4559 of derived types
4560 (Derived_Type_Declaration): move here the test that a derived type has a
4561 discriminant specification
4562 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
4563 first element of a component association before accessing its choices
4564 (presence of component association is not enough)
4565 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
4566 declaration is a library item before accessing the next element in a
4567 list, as library items are not member of lists
4568 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4569 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
4570 Check_Formal_Restriction whenever possible.
4571
4572 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4573
4574 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
4575 reference when needed.
4576
4577 2011-08-02 Bob Duff <duff@adacore.com>
4578
4579 * gnat_ugn.texi: Fix typo.
4580
4581 2011-08-02 Vincent Celier <celier@adacore.com>
4582
4583 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
4584 archive file name. Do not use the full path name of archives for Open
4585 VMS.
4586
4587 2011-08-02 Robert Dewar <dewar@adacore.com>
4588
4589 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
4590 Analyze_Aspect_Specifications
4591 * sem_ch13.adb
4592 (Analyze_Aspect_Specifications): New handling for boolean aspects
4593 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
4594 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
4595 sequence for Analyze_Aspect_Specifications
4596 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
4597 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
4598
4599 2011-08-02 Robert Dewar <dewar@adacore.com>
4600
4601 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
4602 aspects, since these no longer exist.
4603
4604 2011-08-02 Robert Dewar <dewar@adacore.com>
4605
4606 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
4607 semicolon, do not try to see if there are aspects following it.
4608 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
4609 aspect spec.
4610
4611 2011-08-02 Robert Dewar <dewar@adacore.com>
4612
4613 * sem_ch8.adb, aspects.ads: Minor reformatting.
4614
4615 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
4616
4617 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
4618 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
4619 extracted from...
4620 (Analyze_Aspect_Specifications): ...here. Call above procedure.
4621
4622 2011-08-02 Yannick Moy <moy@adacore.com>
4623
4624 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
4625 mode on subprogram declaration outside of package specification, unless
4626 it is followed by a pragma Import
4627 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
4628 Access_Type_Declaration): issue error in formal mode on access type
4629 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
4630 incomplete type
4631 (Analyze_Object_Declaration): issue error in formal mode on object
4632 declaration which does not respect SPARK restrictions
4633 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
4634 declaration which does not respect SPARK restrictions
4635 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
4636 error in formal mode on digits or delta constraint
4637 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
4638 decimal fixed point type
4639 (Derived_Type_Declaration): issue error in formal mode on derived type
4640 other than type extensions of tagged record types
4641 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
4642 with check on access definition
4643 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
4644 mode on protected definition.
4645 (Analyze_Task_Definition): issue error in formal mode on task definition
4646
4647 2011-08-02 Robert Dewar <dewar@adacore.com>
4648
4649 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
4650
4651 2011-08-02 Javier Miranda <miranda@adacore.com>
4652
4653 * sem_ch6.adb (Can_Override_Operator): New function.
4654 (Verify_Overriding_Indicator): Add missing code to check overriding
4655 indicator in operators. Fixes regression.
4656 (Check_Overriding_Indicator): Minor reformating after replacing the
4657 code that evaluates if the subprogram can override an operator by
4658 invocations to the above new function.
4659 * einfo.adb
4660 (Write_Field26_Name): Add missing code to ensure that, following
4661 the documentation in einfo.ads, this field is not shown as attribute
4662 "Static_Initialization" on non-dispatching functions.
4663
4664 2011-08-02 Jose Ruiz <ruiz@adacore.com>
4665
4666 * sem_res.adb (Resolve_Call): A call to
4667 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
4668 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
4669 i.e., when the second parameter is of type Time_Span.
4670
4671 2011-08-02 Vincent Celier <celier@adacore.com>
4672
4673 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
4674 with an archive instead of -L<library dir> -l<library name>.
4675
4676 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4677
4678 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
4679 mark the base types In_Use in addition to making the operations
4680 use_visible.
4681
4682 2011-08-02 Ed Falis <falis@adacore.com>
4683
4684 * init.c: add and setup __gnat_signal_mask for the exception signals
4685 * s-inmaop-vxworks.adb: new file.
4686 * s-intman-vxworks.adb: remove unnecessary initializations and
4687 simplify remaining
4688 * s-intman-vxworks.ads: remove unnecessary variable
4689 * s-taprop-vxworks.adb: simplify signal initialization
4690
4691 2011-08-02 Robert Dewar <dewar@adacore.com>
4692
4693 * sem_ch8.adb: Minor code reorganization, comment updates.
4694
4695 2011-08-02 Robert Dewar <dewar@adacore.com>
4696
4697 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
4698 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
4699 here from Sem_Res.
4700 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
4701 (Matching_Static_Array_Bounds): Moved here from Sem_Res
4702
4703 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4704
4705 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
4706 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
4707 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
4708 use_type_clauses, to handle more efficiently use_type and use_all_type
4709 constructs.
4710 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
4711 Ada2012 Use_All_Type clause.
4712 (Use_Class_Wide_Operations): new procedure.
4713
4714 2011-08-02 Robert Dewar <dewar@adacore.com>
4715
4716 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
4717 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
4718 expression to expression function.
4719
4720 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4721
4722 * sem_ch4.adb: transform simple Ada2012 membership into equality only
4723 if types are compatible.
4724
4725 2011-08-02 Yannick Moy <moy@adacore.com>
4726
4727 * sem_res.adb (Matching_Static_Array_Bounds): new function which
4728 returns True if its argument array types have same dimension and same
4729 static bounds at each index.
4730 (Resolve_Actuals): issue an error in formal mode on actuals passed as
4731 OUT or IN OUT paramaters which are not view conversions in SPARK.
4732 (Resolve_Arithmetic_Op): issue an error in formal mode on
4733 multiplication or division with operands of fixed point types which are
4734 not qualified or explicitly converted.
4735 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
4736 Boolean or array type (except String) operands.
4737 (Resolve_Equality_Op): issue an error in formal mode on equality
4738 operators for array types other than String with non-matching static
4739 bounds.
4740 (Resolve_Logical_Op): issue an error in formal mode on logical operators
4741 for array types with non-matching static bounds. Factorize the code in
4742 Matching_Static_Array_Bounds.
4743 (Resolve_Qualified_Expression): issue an error in formal mode on
4744 qualified expressions for array types with non-matching static bounds.
4745 (Resolve_Type_Conversion): issue an error in formal mode on type
4746 conversion for array types with non-matching static bounds
4747
4748 2011-08-02 Robert Dewar <dewar@adacore.com>
4749
4750 * par-ch10.adb: Minor code reorganization (use Nkind_In).
4751
4752 2011-08-02 Ed Schonberg <schonberg@adacore.com>
4753
4754 * par-ch9.adb: save location of entry for proper error message.
4755
4756 2011-08-02 Javier Miranda <miranda@adacore.com>
4757
4758 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
4759 (Use_Full_View) which permits this routine to climb through the
4760 ancestors using the full-view of private parents.
4761 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
4762 Use_Full_View to true in calls to Is_Ancestor.
4763 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
4764 true in call to Is_Ancestor.
4765 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
4766 Use_Full_View to true in call to Is_Ancestor.
4767 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
4768 call to Is_Ancestor.
4769 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
4770 Use_Full_View to true in calls to Is_Ancestor.
4771 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
4772 Make_Select_Specific_Data_Table, Register_Primitive,
4773 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
4774 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
4775 to true in call to Is_Ancestor.
4776 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
4777 Use_Full_View to true in calls to Is_Ancestor.
4778 * exp_cg.adb
4779 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
4780 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
4781
4782 2011-08-02 Robert Dewar <dewar@adacore.com>
4783
4784 * gnat_rm.texi: Minor reformatting.
4785 * sem_prag.adb: Minor reformatting.
4786
4787 2011-08-02 Tristan Gingold <gingold@adacore.com>
4788
4789 * vms_data.ads: Add VMS qualifier for -gnateP.
4790
4791 2011-08-02 Robert Dewar <dewar@adacore.com>
4792
4793 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
4794 * par-ch7.adb (P_Package): Proper placement of aspects for package
4795 decl/instantiation.
4796 * par-endh.adb (Check_End): Ad Is_Sloc parameter
4797 (End_Statements): Add Is_Sloc parameterr
4798 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
4799 (Check_End): Ad Is_Sloc parameter
4800 (End_Statements): Add Is_Sloc parameterr
4801
4802 2011-08-02 Vincent Celier <celier@adacore.com>
4803
4804 * ug_words: Add VMS qualifier equivalent to -gnateP:
4805 /SYMBOL_PREPROCESSING.
4806
4807 2011-08-02 Jose Ruiz <ruiz@adacore.com>
4808
4809 * gnat-style.texi: For hexadecimal numeric literals the typical
4810 grouping of digits is 4 to represent 2 bytes.
4811 A procedure spec which is split into several lines is indented two
4812 characters.
4813
4814 2011-08-02 Yannick Moy <moy@adacore.com>
4815
4816 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
4817 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
4818 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
4819 properly qualified
4820 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
4821 choice in array aggregate
4822 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
4823 mark as ancestor
4824 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
4825 positional and named aggregate for record, or others in record
4826 aggregate, or multiple choice in record aggregate
4827 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
4828 array operands to logical operations AND, OR and XOR do not have the
4829 same static lower and higher bounds
4830 * sem_ch5.adb, sinfo.ads: Correct typos in comments
4831
4832 2011-08-01 Robert Dewar <dewar@adacore.com>
4833
4834 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
4835 Replaces Last_Source_Node_In_Sequence.
4836 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
4837 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
4838 parens and blank in string (this was inconsistently implemented).
4839 * errout.ads
4840 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
4841 blank in string (this was inconsistently implemented).
4842 * gnat1drv.adb
4843 (Set_Global_Switches): Set formal mode switches appropriately
4844 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
4845 * par-prag.adb
4846 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
4847 call Set_Error_Msg_Lang to set "spark" as language name.
4848 * par.adb: Remove unnecessary call to set formal language for errout
4849 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
4850 appropriately and call Set_Error_Msg_Lang to set "spark" as language
4851 name.
4852 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
4853 calls to it, moved after resolution so that types are known
4854 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
4855 result of concatenation is not of type String
4856 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
4857 concatenation is not properly restricted
4858 * gnat_rm.texi: Add doc on pragma Spark_95.
4859 * gcc-interface/Makefile.in: Remove obsolete target pairs for
4860 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
4861 * gcc-interface/Make-lang.in: Update dependencies.
4862
4863 2011-08-01 Javier Miranda <miranda@adacore.com>
4864
4865 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
4866 condition that detects if the overridden operation must replace an
4867 existing entity.
4868
4869 2011-08-01 Javier Miranda <miranda@adacore.com>
4870
4871 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
4872 code declarations inserted by Insert_Actions in each alternative of the
4873 N_Case_Expression node.
4874
4875 2011-08-01 Robert Dewar <dewar@adacore.com>
4876
4877 * sem_ch6.adb: Minor code reorganization.
4878 * sem_util.adb: Minor reformatting.
4879
4880 2011-08-01 Pascal Obry <obry@adacore.com>
4881
4882 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
4883 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
4884
4885 2011-08-01 Yannick Moy <moy@adacore.com>
4886
4887 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
4888 literal or operator symbol which is prefixed
4889 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
4890 mode on access attributes.
4891 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
4892 that concatenation operands are properly restricted in formal mode
4893 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
4894 Analyze_Concatenation_Operand. Issue an error in formal mode if the
4895 result of the concatenation has a type different from String.
4896 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
4897 Analyze_Quantified_Expression, Analyze_Slice,
4898 Analyze_Null): issue an error in formal mode on unsupported constructs
4899 * sem_ch5.adb
4900 (Analyze_Block_Statement): only issue error on source block statement
4901 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
4902 function which returns the last node in a list of nodes for which
4903 Comes_From_Source returns True, if any
4904 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
4905 Last_Source_Node_In_Sequence
4906 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
4907 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
4908 mode on unsupported constructs
4909 * sem_ch9.adb Do not return after issuing error in formal mode, as the
4910 rest of the actions may be needed later on since the error is marked as
4911 not serious.
4912 * sinfo.ads: Typos in comments.
4913
4914 2011-08-01 Pascal Obry <obry@adacore.com>
4915
4916 * projects.texi: Minor editing.
4917
4918 2011-08-01 Yannick Moy <moy@adacore.com>
4919
4920 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
4921 insertion character ~~
4922 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
4923 (Set_Error_Msg_Lang): new procedure which fixes the language for use
4924 with insertion character ~~
4925 (Set_Msg_Text): treat insertion character ~~
4926 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
4927 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
4928 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
4929 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
4930 errors related to the formal language restriction not serious
4931 (insertion character |).
4932 * par.adb (Par): set formal language for error messages if needed
4933 * sem_ch6.adb (Check_Missing_Return): take into account possible
4934 generated statements at the end of the function
4935 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
4936 enumeration value to define a new pragma SPARK_95
4937 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
4938 SPARK_Version): new type and variables to store the SPARK version
4939 (none by default).
4940 (SPARK_Mode): return True when SPARK_Version is set
4941 * par-prag.adb: Correct indentation
4942 (Prag): take Pragma_SPARK_95 into account
4943 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
4944 into account.
4945
4946 2011-08-01 Robert Dewar <dewar@adacore.com>
4947
4948 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
4949 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
4950 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
4951
4952 2011-08-01 Pascal Obry <obry@adacore.com>
4953
4954 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
4955 Target_Name to Get_Path call.
4956 (Parse_Single_Project): Likewise.
4957 (Post_Parse_Context_Clause): Likewise.
4958 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
4959 Call Initialise_Project_Path with the proper Target_Name.
4960 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
4961 search path.
4962 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
4963 with the proper Target_Name.
4964 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
4965 Part.Parse routine.
4966 (Parse_Project_And_Apply_Config): Likewise.
4967 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
4968 This is fine as this part of the code is supporting only native
4969 compilation.
4970 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
4971 is fine as this part of the code is supporting only native compilation.
4972
4973 2011-08-01 Yannick Moy <moy@adacore.com>
4974
4975 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
4976 of homonym, unless the homonym is one of the cases allowed in SPARK
4977 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
4978 package declaration occurring after a body.
4979
4980 2011-08-01 Robert Dewar <dewar@adacore.com>
4981
4982 * checks.adb, exp_ch4.adb: Minor reformatting.
4983
4984 2011-08-01 Javier Miranda <miranda@adacore.com>
4985
4986 * einfo.ads (Access_Disp_Table): Fix documentation.
4987 (Dispatch_Table_Wrappers): Fix documentation.
4988
4989 2011-08-01 Pascal Obry <obry@adacore.com>
4990
4991 * prj-env.adb, prj-env.ads: Minor reformatting.
4992
4993 2011-08-01 Yannick Moy <moy@adacore.com>
4994
4995 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
4996 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
4997 procedures out of these packages.
4998 * errout.ads, errout.adb
4999 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
5000 procedures in of this package
5001 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
5002 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
5003 on misplaced later vs initial declarations, like in Ada 83
5004 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
5005 formal mode on attribute of private type whose full type declaration
5006 is not visible
5007 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
5008 package declaration inside a package specification
5009 (Analyze_Full_Type_Declaration): issue error in formal mode on
5010 controlled type or discriminant type
5011 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
5012 user-defined operator means that it should come from the source
5013 (New_Overloaded_Entity): issue error in formal mode on overloaded
5014 entity.
5015 * sem_ch6.ads, sem_ch13.ads: typos in comments.
5016
5017 2011-08-01 Thomas Quinot <quinot@adacore.com>
5018
5019 * atree.adb: Minor reformatting.
5020 * checks.adb: Minor reformatting.
5021
5022 2011-08-01 Vincent Celier <celier@adacore.com>
5023
5024 * s-parame-vms-ia64.ads: Fix typo in comment
5025 Minor reformatting
5026 * s-parame-vms-restrict.ads: Removed, unused.
5027
5028 2011-08-01 Javier Miranda <miranda@adacore.com>
5029
5030 * exp_ch3.adb
5031 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
5032 * sem_ch3.adb
5033 (Constrain_Index): Remove side effects in the evaluation of the bounds.
5034 * sem_ch3.ads, sem_ch3.adb
5035 (Is_Constant_Bound): New extended version of the subprogram that was
5036 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
5037 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
5038 * sem_aux.ads (Constant_Value): Fix typo in comment.
5039 * checks.adb (Generate_Index_Checks): New implementation which, for
5040 array objects with constant bounds, generates the runtime check
5041 referencing the bounds of the array type. For other cases this routine
5042 provides its previous behavior obtaining such values from the array
5043 object.
5044 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
5045 parent type.
5046 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
5047 we cannot have semantic interpretations of the new node.
5048
5049 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5050
5051 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
5052 expressions.
5053
5054 2011-08-01 Arnaud Charlet <charlet@adacore.com>
5055
5056 * sem_ch8.adb: Minor code editing.
5057 * s-vxwext.adb: Remove trailing space.
5058 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
5059 consistency with other files.
5060
5061 2011-08-01 Thomas Quinot <quinot@adacore.com>
5062
5063 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
5064
5065 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5066
5067 * par-ch10.adb: reject parameterized expressions as compilation unit.
5068 * sem_ch4.adb: handle properly conditional expression with overloaded
5069 then_clause and no else_clause.
5070
5071 2011-08-01 Tristan Gingold <gingold@adacore.com>
5072
5073 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
5074 like done by System.Aux_DEC.
5075 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
5076
5077 2011-08-01 Yannick Moy <moy@adacore.com>
5078
5079 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
5080 missing label at end of declaration (subprogram or package)
5081 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
5082 of positional and named parameter association
5083 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
5084 Error_Msg_SP which adds a prefix to the error message giving the name
5085 of the formal language analyzed
5086 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
5087 access result type in subprogram, unconstrained array as result type,.
5088 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
5089 procedure
5090 * sem_ch8.adb: Code clean up.
5091
5092 2011-08-01 Javier Miranda <miranda@adacore.com>
5093
5094 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
5095 * einfo.ads (Access_Disp_Table): Fix documentation.
5096 (Dispatch_Table_Wrappers): Fix documentation.
5097 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
5098 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
5099 to enforce the documentation of this attribute.
5100 (Set_Is_Interface): Cleanup the assertion.
5101 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
5102 the Underlying_Type entity before reading attribute Access_Disp_Table.
5103 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
5104 Locate the Underlying_Type before reading attribute Access_Disp_Table.
5105 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
5106 the Underlying_Type entity before reading attribute Access_Disp_Table.
5107 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
5108 Locate the Underlying_Type entity before reading attribute
5109 Access_Disp_Table.
5110
5111 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5112
5113 * s-poosiz.ads: Additional overriding indicators.
5114
5115 2011-08-01 Yannick Moy <moy@adacore.com>
5116
5117 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
5118 formal mode.
5119 (Analyze_Iteration_Scheme): issue error in formal mode when loop
5120 parameter specification does not include a subtype mark.
5121 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
5122 formal mode on abstract subprogram.
5123 (Analyze_Subprogram_Specification): issue error in formal mode on
5124 user-defined operator.
5125 (Process_Formals): issue error in formal mode on access parameter and
5126 default expression.
5127 * sem_ch9.adb (Analyze_Abort_Statement,
5128 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
5129 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
5130 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
5131 Analyze_Requeue, Analyze_Selective_Accept,
5132 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
5133 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
5134 issue error in formal mode on user-defined raise statement.
5135
5136 2011-08-01 Thomas Quinot <quinot@adacore.com>
5137
5138 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
5139 declaration being hidden when overriding an implicit inherited
5140 subprogram.
5141 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
5142 (-gnats), do not complain about a source file that contains only a
5143 pragma No_Body.
5144
5145 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5146
5147 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
5148 variable if already set.
5149
5150 2011-08-01 Arnaud Charlet <charlet@adacore.com>
5151
5152 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
5153 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
5154 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
5155 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
5156 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
5157 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
5158 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
5159 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
5160 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
5161 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
5162 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
5163 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
5164 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
5165 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
5166 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
5167 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
5168 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
5169 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
5170 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
5171 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
5172 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
5173 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
5174 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
5175 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
5176 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
5177 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
5178 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
5179 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
5180 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
5181 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
5182 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
5183 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
5184 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
5185 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
5186 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
5187 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
5188 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
5189 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
5190 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
5191 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
5192 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
5193 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
5194 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
5195 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
5196 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
5197 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
5198 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
5199 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
5200 s-osinte-mingw.ads: Update to GPLv3 run-time license.
5201 Use GNAT instead of GNARL.
5202
5203 2011-08-01 Bob Duff <duff@adacore.com>
5204
5205 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
5206 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
5207 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
5208 reformatting.
5209
5210 2011-08-01 Yannick Moy <moy@adacore.com>
5211
5212 * debug.adb (d.D) reverve flag for the SPARK mode
5213 (d.E) reverve flag for SPARK generation mode
5214 (d.F) reverve flag for Why generation mode
5215 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
5216 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
5217 functions which return True when the corresponding modes are set
5218 (Formal_Language): return "spark" or "alfa" when in formal verification
5219 mode.
5220 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
5221 Error_Msg to prefix the error message with a tag giving the formal
5222 language
5223 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
5224 message with a tag giving the formal language
5225 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
5226 block statement
5227 (Analyze_Case_Statement): issue error in formal mode on case statement
5228 with a single "others" case alternative
5229 (Analyze_Exit_Statement): issue errors in formal mode on exit
5230 statements which do not respect SPARK restrictions
5231 (Analyze_Goto_Statement): issue error in formal mode on goto statement
5232 (Check_Unreachable_Code): always issue an error (not a warning) in
5233 formal mode on unreachable code (concerns both code after an infinite
5234 loop and after an unconditional jump, both not allowed in SPARK)
5235 * sem_ch6.adb (Analyze_Return_Statement): add call to
5236 Set_Return_Present for a procedure containing a return statement
5237 (already done for functions in Analyze_Function_Return)
5238 (Analyze_Function_Return): issue error in formal mode on extended
5239 return or if return is not last statement in function
5240 (Check_Missing_Return): issue error in formal mode if function does
5241 not end with return or if procedure contains a return
5242 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
5243 function to detect if there is an inner scope of its parameter S which
5244 is a loop.
5245
5246 2011-08-01 Thomas Quinot <quinot@adacore.com>
5247
5248 * sem_ch6.ads: Minor reformatting.
5249
5250 2011-08-01 Javier Miranda <miranda@adacore.com>
5251
5252 * sem_util.adb (Abstract_Interface_List): Complete condition when
5253 processing private type declarations to avoid reading unavailable
5254 attribute.
5255 (Is_Synchronized_Tagged_Type): Complete condition when processing
5256 private extension declaration nodes to avoid reading unavailable
5257 attribute.
5258
5259 2011-08-01 Thomas Quinot <quinot@adacore.com>
5260
5261 * sem_ch3.adb: Minor reformatting.
5262
5263 2011-08-01 Thomas Quinot <quinot@adacore.com>
5264
5265 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
5266 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
5267 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
5268 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
5269 for VMS, instead parametrize the common implementation with
5270 System.Parameters declarations.
5271
5272 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
5273
5274 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
5275
5276 2011-08-01 Tristan Gingold <gingold@adacore.com>
5277
5278 * seh_init.c: Fix SEH handler installation on win64.
5279
5280 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5281
5282 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
5283 double analysis of an anonymous access to subprogram, because it can
5284 lead to improper sharing of profiles and a back-end crash.
5285
5286 2011-08-01 Robert Dewar <dewar@adacore.com>
5287
5288 * make.adb, sem_ch4.adb: Minor reformatting.
5289 * gcc-interface/Make-lang.in: Update dependencies.
5290 * sem_util.adb, exp_ch5.adb: Minor reformatting.
5291
5292 2011-08-01 Arnaud Charlet <charlet@adacore.com>
5293
5294 * gnat_rm.texi: Fix definition of Long_Integer.
5295
5296 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5297
5298 * exp_aggr.adb: check limit size of static aggregate unconditionally,
5299 to prevent storage exhaustion.
5300 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
5301 finalized is a function body, insert the cleanup code before the final
5302 return statement, to prevent spurious warnings.
5303 * s-pooglo.ads: add overriding indicator.
5304
5305 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5306
5307 * sem_ch4.adb (Operator_Check): improve error message when both a
5308 with_clause and a use_clause are needed to make operator usage legal.
5309 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
5310 determine whether a compilation unit is visible within an other,
5311 either through a with_clause in the current unit, or a with_clause in
5312 its library unit or one one of its parents.
5313
5314 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5315
5316 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
5317 over an arbitrary expression of an array or container type.
5318 * lib-xref.adb: clarify comment.
5319
5320 2011-08-01 Bob Duff <duff@adacore.com>
5321
5322 * einfo.ads: Minor reformatting.
5323 * debug.adb: Minor comment improvement.
5324
5325 2011-08-01 Javier Miranda <miranda@adacore.com>
5326
5327 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
5328 consider hidden subprograms as valid candidates.
5329
5330 2011-08-01 Arnaud Charlet <charlet@adacore.com>
5331
5332 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
5333
5334 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
5335
5336 * gnat_ugn.texi: Fix typo.
5337
5338 2011-08-01 Robert Dewar <dewar@adacore.com>
5339
5340 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
5341 lib-xref.adb: Minor reformatting
5342
5343 2011-08-01 Gary Dismukes <dismukes@adacore.com>
5344
5345 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
5346 when to generate a call to Move_Final_List.
5347 (Has_Controlled_Parts): Remove this function.
5348
5349 2011-08-01 Geert Bosch <bosch@adacore.com>
5350
5351 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
5352 "," in choice list.
5353
5354 2011-08-01 Thomas Quinot <quinot@adacore.com>
5355
5356 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
5357 explicit raise of a predefined exception as Comes_From_Source if the
5358 original N_Raise_Statement comes from source.
5359
5360 2011-08-01 Robert Dewar <dewar@adacore.com>
5361
5362 * sinfo.ads: Add comment.
5363 * sem_ch6.adb: Minor reformatting.
5364
5365 2011-08-01 Robert Dewar <dewar@adacore.com>
5366
5367 * freeze.adb (Freeze_Entity): Refine check for bad component size
5368 clause to avoid rejecting confirming clause when atomic/aliased present.
5369
5370 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5371
5372 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
5373 better determine whether an entity reference is a write.
5374 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
5375 subcomponent.
5376 * lib-xref.adb (Output_References): Do no suppress a read reference at
5377 the same location as an immediately preceeding modify-reference, to
5378 handle properly in-out actuals.
5379
5380 2011-08-01 Tristan Gingold <gingold@adacore.com>
5381
5382 * env.c (__gnat_setenv) [VMS]: Refine previous change.
5383
5384 2011-08-01 Quentin Ochem <ochem@adacore.com>
5385
5386 * i-cstrin.adb (New_String): Changed implementation, now uses only the
5387 heap to compute the result.
5388
5389 2011-08-01 Robert Dewar <dewar@adacore.com>
5390
5391 * atree.ads: Minor reformatting.
5392
5393 2011-08-01 Emmanuel Briot <briot@adacore.com>
5394
5395 * g-expect.adb (Get_Command_Output): Fix memory leak.
5396
5397 2011-08-01 Geert Bosch <bosch@adacore.com>
5398
5399 * cstand.adb (P_Float_Type): New procedure to print the definition of
5400 predefined fpt types.
5401 (P_Mixed_Name): New procedure to print a name using mixed case
5402 (Print_Standard): Use P_Float_Type for printing floating point types
5403 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
5404 precision IEEE float.
5405
5406 2011-08-01 Thomas Quinot <quinot@adacore.com>
5407
5408 * sem_ch3.adb: Minor reformatting.
5409
5410 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5411
5412 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
5413 the completion of a generic function, insert the new body rather than
5414 rewriting the original.
5415
5416 2011-08-01 Yannick Moy <moy@adacore.com>
5417
5418 * sinfo.ads, errout.ads: Typos in comments.
5419
5420 2011-08-01 Robert Dewar <dewar@adacore.com>
5421
5422 * par-endh.adb: Minor reformatting.
5423
5424 2011-08-01 Robert Dewar <dewar@adacore.com>
5425
5426 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
5427 (Pre_Post_Aspects): New subtype.
5428 * par-ch12.adb (P_Generic): New syntax for aspects in packages
5429 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
5430 * par-ch7.adb (P_Package): Remove Decl parameter
5431 (P_Package): Handle new syntax for aspects (before IS)
5432 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
5433 new aspect syntax
5434 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
5435 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
5436 (P_Package): Remove Decl parameter
5437 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
5438 aspects
5439 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
5440 specs
5441 * sem_util.ads, sem_util.adb (Static_Boolean): New function
5442 * sinfo.ads: Document new syntax for aspects in packages etc.
5443 * sprint.adb: Handle new syntax of aspects before IS in package
5444
5445 2011-08-01 Thomas Quinot <quinot@adacore.com>
5446
5447 * atree.ads: Minor reformatting.
5448 * sem_prag.adb: Minor reformatting.
5449
5450 2011-08-01 Robert Dewar <dewar@adacore.com>
5451
5452 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
5453 case expr alternative.
5454
5455 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5456
5457 * sem_ch12.adb: Fix typo.
5458
5459 2011-08-01 Geert Bosch <bosch@adacore.com>
5460
5461 * sem_prag.adb (Check_No_Link_Name): New procedure.
5462 (Process_Import_Or_Interface): Use Check_No_Link_Name.
5463 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
5464 instead of Standard_Long_Long_Float_Size global. Preparation for
5465 eventual removal of per type constants.
5466 * exp_util.ads (Get_Stream_Size): New function returning the stream
5467 size value of subtype E.
5468 * exp_util.adb (Get_Stream_Size): Implement new function.
5469 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
5470 function.
5471 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
5472 * einfo.adb:
5473 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
5474
5475 2011-08-01 Geert Bosch <bosch@adacore.com>
5476
5477 * cstand.adb: Fix comments.
5478 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
5479 count of arguments.
5480
5481 2011-08-01 Robert Dewar <dewar@adacore.com>
5482
5483 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
5484
5485 2011-08-01 Geert Bosch <bosch@adacore.com>
5486
5487 * atree.ads: Fix comment.
5488
5489 2011-08-01 Robert Dewar <dewar@adacore.com>
5490
5491 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
5492 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
5493 * par.adb: Add with for Namet.Sp.
5494 * par-tchk.adb: Minor reformatting.
5495
5496 2011-08-01 Vincent Celier <celier@adacore.com>
5497
5498 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
5499 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
5500 of the init procedure of a SAL.
5501 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
5502 New procedure.
5503
5504 2011-08-01 Thomas Quinot <quinot@adacore.com>
5505
5506 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
5507 reformatting.
5508
5509 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5510
5511 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
5512
5513 2011-08-01 Thomas Quinot <quinot@adacore.com>
5514
5515 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
5516 conformant with its spec (return True only for types that have
5517 an overriding Initialize primitive operation that prevents them from
5518 having preelaborable initialization).
5519 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
5520 initialization for controlled types in Ada 2005 or later mode.
5521
5522 2011-08-01 Robert Dewar <dewar@adacore.com>
5523
5524 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
5525 Postcondition.
5526 (Same_Aspect): New function.
5527 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
5528 Type_Invariant, Precondition, Postcondition.
5529 * snames.ads-tmpl: Add Name_Type_Invariant.
5530
5531 2011-08-01 Robert Dewar <dewar@adacore.com>
5532
5533 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
5534 here.
5535 (Freeze_All_Ent): Fix error in handling inherited aspects.
5536 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
5537 already analyzed, but don't skip entire processing of a declaration,
5538 that's wrong in some cases of declarations being rewritten.
5539 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
5540 Don't delay for integer, string literals
5541 Treat predicates in usual manner for delay, remove special case code,
5542 not needed.
5543 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
5544 (Build_Predicate_Function): Update saved expression in aspect
5545 (Build_Invariant_Procedure): Update saved expression in aspect
5546 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
5547 of replacement of discriminant references if the reference is simple.
5548
5549 2011-08-01 Robert Dewar <dewar@adacore.com>
5550
5551 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
5552 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
5553 Static_Predicate and Dynamic_Predicate.
5554 (Build_Predicate_Function): Add processing for Static_Predicate
5555 and Dynamic_Predicate.
5556 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
5557 (From_Static_Predicate): New flag
5558 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
5559
5560 2011-08-01 Robert Dewar <dewar@adacore.com>
5561
5562 * usage.adb: Documentation cleanup for Ada version modes in usage.
5563 * expander.adb: Minor reformatting.
5564
5565 2011-08-01 Robert Dewar <dewar@adacore.com>
5566
5567 * atree.ads: Minor comment fix.
5568 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
5569 a-witeio.ads, sem_prag.adb: Minor reformatting.
5570
5571 2011-08-01 Doug Rupp <rupp@adacore.com>
5572
5573 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
5574 pointers. Use descrip.h header file for convenience. Add some
5575 comments.
5576
5577 2011-08-01 Robert Dewar <dewar@adacore.com>
5578
5579 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
5580 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
5581 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
5582 New procedure.
5583 (Check_Aspect_At_End_Of_Declarations): New procedure
5584 (Analye_Aspect_Specification): Minor changes for above procedures
5585 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
5586 specification node as well.
5587
5588 2011-08-01 Pascal Obry <obry@adacore.com>
5589
5590 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
5591 Windows files. Use GetFilesAttributes() in this case to check for file
5592 existence instead of returning with an error code.
5593
5594 2011-08-01 Vincent Celier <celier@adacore.com>
5595
5596 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
5597 High is above Source length.
5598
5599 2011-08-01 Robert Dewar <dewar@adacore.com>
5600
5601 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
5602
5603 2011-08-01 Robert Dewar <dewar@adacore.com>
5604
5605 * aspects.ads (Boolean_Aspects): New subtype.
5606 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
5607 for derived types in cases where the parent type and derived type have
5608 aspects.
5609 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
5610 with aspects when parent type also has aspects.
5611 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
5612 boolean expression at this point).
5613 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
5614 accordance with final decision on the Ada 2012 feature.
5615 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
5616
5617 2011-08-01 Matthew Heaney <heaney@adacore.com>
5618
5619 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
5620
5621 2011-08-01 Pascal Obry <obry@adacore.com>
5622
5623 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
5624 Fix Replace_Slice when High is above current string size.
5625 (Replace_Slice): Fix DL computation when High is above current
5626 string length.
5627
5628 2011-08-01 Gary Dismukes <dismukes@adacore.com>
5629
5630 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
5631
5632 2011-08-01 Matthew Heaney <heaney@adacore.com>
5633
5634 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
5635 of node.
5636
5637 2011-08-01 Pascal Obry <obry@adacore.com>
5638
5639 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
5640 reformatting.
5641
5642 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5643
5644 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
5645 access to protected subprograms in generic bodies.
5646 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
5647 protected type, indicate that the convention of the subprogram is
5648 Convention_Protected, because it may be used in subsequent declarations
5649 within the protected declaration.
5650
5651 2011-08-01 Vincent Celier <celier@adacore.com>
5652
5653 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
5654 and "final" procedures when the name of the library is "ada", to avoid
5655 duplicate symbols "adainit" and "adafinal" in executables.
5656
5657 2011-08-01 Ed Schonberg <schonberg@adacore.com>
5658
5659 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
5660 quantified expression that appears within a postcondition and uses the
5661 Ada2012 'Result attribute.
5662
5663 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5664
5665 * init.c (__gnat_error_handler): Cast reason to int.
5666 (__gnat_install_handler): Explain sa_sigaction use.
5667
5668 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
5669
5670 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
5671 subprogram has copy-in copy-out parameters, try to promote the mode of
5672 the return type if it is passed in registers.
5673
5674 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
5675
5676 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
5677 left operand as addressable.
5678
5679 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
5680
5681 * gcc-interface/gigi.h (build_function_stub): Remove.
5682 (build_return_expr): Likewise.
5683 (convert_vms_descriptor): Declare.
5684 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
5685 (build_function_stub): Move to...
5686 * gcc-interface/utils2.c (build_return_expr): Move to...
5687 * gcc-interface/trans.c (build_function_stub): ...here.
5688 (build_return_expr): ...here.
5689 (Subprogram_Body_to_gnu): Add local variable for language_function.
5690 Disconnect the parameter attributes cache, if any, once done with it.
5691 Call end_subprog_body only after setting the end_locus.
5692 Build the stub associated with the function, if any, at the very end.
5693 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
5694 variables and streamline control flow.
5695
5696 2011-07-23 Arnaud Charlet <charlet@adacore.com>
5697
5698 PR ada/49819
5699 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
5700 g-trasym-dwarf.adb.
5701
5702 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5703
5704 PR bootstrap/49794
5705 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
5706 Assign to act.sa_sigaction.
5707 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
5708 current->return_address to char * before arithmetic.
5709
5710 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5711
5712 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
5713 Correct argument types.
5714 Extract code from reason.
5715 (__gnat_install_handler): Assign to act.sa_sigaction.
5716
5717 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
5718
5719 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
5720 (GNAT1_OBJS): ...here.
5721
5722 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
5723
5724 PR ada/48711
5725 * g-socthi-mingw.adb (Fill): Fix formatting.
5726
5727 * gcc-interface/gigi.h: Move around comment.
5728
5729 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5730
5731 PR ada/46350
5732 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
5733
5734 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
5735
5736 PR ada/48711
5737 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
5738
5739 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
5740
5741 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
5742 range comparison if Pmode is SImode.
5743
5744 2011-07-12 Laurent GUERBY <laurent@guerby.net>
5745 Eric Botcazou <ebotcazou@adacore.com>
5746
5747 * adadecode.c: Wrap up in extern "C" block.
5748 * adadecode.h: Likewise.
5749 * adaint.c: Likewise. Remove 'const' keyword.
5750 * adaint.h: Likewise.
5751 * argv.c: Likewise.
5752 * atree.h: Likewise.
5753 * cio.c: Likewise.
5754 * cstreams.c: Likewise.
5755 * env.c: Likewise.
5756 * exit.c: Likewise.
5757 * fe.h: Likewise.
5758 * final.c: Likewise.
5759 * init.c: Likewise.
5760 * initialize.c: Likewise.
5761 * link.c: Likewise.
5762 * namet.h: Likewise.
5763 * nlists.h: Likewise.
5764 * raise.c: Likewise.
5765 * raise.h: Likewise.
5766 * repinfo.h: Likewise.
5767 * seh_init.c: Likewise.
5768 * targext.c: Likewise.
5769 * tracebak.c: Likewise.
5770 * uintp.h: Likewise.
5771 * urealp.h: Likewise.
5772 * xeinfo.adb: Wrap up generated C code in extern "C" block.
5773 * xsinfo.adb: Likewise.
5774 * xsnamest.adb: Likewise.
5775 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
5776 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
5777 * gcc-interface/misc.c: Likewise.
5778 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
5779 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
5780 ada/targext.o here...
5781 (GNAT_ADA_OBJS): ...and not here.
5782 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
5783 (GNATBIND_OBJS): Reorder.
5784
5785 2011-07-07 Richard Henderson <rth@redhat.com>
5786
5787 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
5788 dwarf2out_frame_init.
5789
5790 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
5791
5792 * gcc-interface/misc.c (gnat_init): Tweak previous change.
5793
5794 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5795
5796 PR target/39150
5797 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
5798
5799 2011-07-06 Richard Guenther <rguenther@suse.de>
5800
5801 * gcc-interface/misc.c (gnat_init): Merge calls to
5802 build_common_tree_nodes and build_common_tree_nodes_2.
5803 Re-initialize boolean_false_node.
5804
5805 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
5806 Olivier Hainque <hainque@adacore.com>
5807 Nicolas Setton <setton@adacore.com>
5808
5809 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
5810 the type according to the ARTIFICIAL_P parameter.
5811 (create_type_decl): Likewise.
5812 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
5813
5814 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5815
5816 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
5817 (gnatbind): Likewise.
5818
5819 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5820
5821 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
5822
5823 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
5824
5825 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
5826 local variable throughout. Remove useless call to Base_Type.
5827 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
5828 Take it also into account for the volatileness of the field. Set the
5829 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
5830
5831 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
5832
5833 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
5834 on a dereference built for a by-ref object if it has an address clause.
5835
5836 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
5837
5838 * einfo.ads (Address_Taken): Document use for the second argument of
5839 Asm_Input and Asm_Output attributes.
5840 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
5841 argument is an entity name, then set Address_Taken on it.
5842 <Attribute_Asm_Output>: Likewise.
5843 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
5844 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
5845 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
5846 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
5847
5848 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
5849
5850 PR middle-end/46500
5851 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
5852
5853 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5854
5855 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
5856 (ada/utils.o): Update dependencies.
5857 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
5858 ../../../libcpp/libcpp.a.
5859 * gcc-interface/utils.c: Include common/common-target.h.
5860 (process_attributes): Use targetm_common.have_named_sections.
5861
5862 2011-06-07 Richard Guenther <rguenther@suse.de>
5863
5864 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
5865 set_sizetype.
5866
5867 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
5868
5869 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
5870 TREE_THIS_NOTRAP flag.
5871
5872 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
5873
5874 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
5875 Fix thinko.
5876
5877 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
5878
5879 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
5880 constants whose full view has discriminants specially.
5881
5882 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
5883
5884 * gcc-interface/utils.c: Include diagnostic.h.
5885 (gnat_write_global_declarations): Output debug information for all
5886 global type declarations before finalizing the compilation unit.
5887 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
5888
5889 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5890
5891 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
5892
5893 2011-05-25 Kai Tietz <ktietz@redhat.com>
5894
5895 * adaint.c (__gnat_to_canonical_file_list_next): Use array
5896 initialization instead of const/none-const pointer assignment.
5897
5898 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5899
5900 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
5901 $(EXTRA_GNAT1_OBJS).
5902 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
5903 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
5904 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
5905 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
5906 libcommon-target.a instead of prefix.o.
5907
5908 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5909
5910 PR ada/49097
5911 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
5912
5913 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5914
5915 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
5916 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
5917 instead of version.o.
5918
5919 2011-05-18 Kai Tietz <ktietz@redhat.com>
5920
5921 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
5922 boolean_false_node instead of integer_zero_node.
5923 (convert_with_check): Likewise.
5924 * gcc-interface/decl.c (choices_to_gnu): Likewise.
5925
5926 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
5927
5928 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
5929 type of the parameter is an unconstrained array, convert the actual to
5930 the type of the formal in the In Out and Out cases as well.
5931
5932 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5933
5934 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
5935 call build_function_type_array or build_varargs_function_type_array
5936 instead.
5937 (create_subprog_type): Don't call build_function_type; call
5938 build_function_type_vec instead.
5939
5940 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5941
5942 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
5943 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
5944 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
5945
5946 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5947
5948 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
5949
5950 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
5951 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
5952
5953 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5954
5955 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
5956
5957 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5958
5959 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
5960 instead of accessing TYPE_ARG_TYPES directly.
5961 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
5962
5963 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5964
5965 PR ada/48844
5966 * gcc-interface/gigi.h (get_variant_part): Declare.
5967 * gcc-interface/decl.c (get_variant_part): Make global.
5968 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
5969 types have the same constant size, are record types and T1 has a
5970 variant part while T2 doesn't.
5971
5972 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5973
5974 * gcc-interface/utils.c (begin_subprog_body): Do not call
5975 get_pending_sizes.
5976 (end_subprog_body): Likewise.
5977
5978 2011-05-04 Richard Guenther <rguenther@suse.de>
5979
5980 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
5981 int_const_binop.
5982 (pos_to_constructor): Likewise.
5983
5984 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5985 Eric Botcazou <ebotcazou@adacore.com>
5986
5987 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
5988 of build_function_type. Adjust calls to...
5989 (build_raise_check): ...this. Do not take a void_tree parameter.
5990 Call build_function_type_list instead of build_function_type.
5991 Fix head comment and swap couple of conditional blocks.
5992
5993 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
5994
5995 * gnatvsn.ads (Library_Version): Bump to 4.7.
5996 (Current_Year): Bump to 2011.
5997
5998 2011-04-29 Michael Matz <matz@suse.de>
5999
6000 * gcc-interface/misc.c (gnat_handle_option): Set
6001 warn_maybe_uninitialized.
6002
6003 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
6004
6005 * gnat_ugn.texi (Complexity Metrics Control): Update link to
6006 the Watson/McCabe paper.
6007
6008 2011-04-23 Jim Meyering <meyering@redhat.com>
6009
6010 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
6011
6012 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
6013
6014 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
6015 onto the new type.
6016
6017 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
6018
6019 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
6020 parameter.
6021 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
6022 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
6023 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
6024 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
6025 <all>: Do not set flags on the reused DECL node coming from an alias.
6026 Set DECL_IGNORED_P on the DECL node built for subprograms if they
6027 don't need debug info here...
6028 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
6029 (gigi): Adjust calls to create_subprog_decl.
6030 (build_raise_check): Likewise.
6031 (establish_gnat_vms_condition_handler): Likewise.
6032 (Compilation_Unit_to_gnu): Likewise.
6033 (gnat_to_gnu): Likewise.
6034
6035 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6036
6037 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
6038 (NO_REORDER_ADAFLAGS): New variable.
6039 (EXTRA_GNATTOOLS): Always define.
6040 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
6041 Clean up and adjust list of files compiled with special options.
6042 * gcc-interface/Make-lang.in: Likewise.
6043 (ada/decl.o): Cosmetical change.
6044 (ada/misc.o): Remove dependency on $(PLUGIN_H).
6045
6046 2011-04-20 Jim Meyering <meyering@redhat.com>
6047
6048 * initialize.c (__gnat_initialize): Remove useless if-before-free.
6049
6050 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6051
6052 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
6053 $(CFLAGS) on the link line.
6054
6055 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6056
6057 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
6058 padded type built for the return type if it is unconstrained.
6059
6060 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6061
6062 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
6063
6064 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6065
6066 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
6067 before calling TREE_CHAIN.
6068 * gcc-interface/misc.c (gnat_init_ts): New function.
6069 (LANG_HOOKS_INIT_TS): Define.
6070
6071 2011-04-12 Martin Jambor <mjambor@suse.cz>
6072
6073 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
6074 instead of cgraph_node.
6075
6076 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6077
6078 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
6079 alignment on fields of the RETURN type built for the Copy-In Copy-Out
6080 mechanism.
6081
6082 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6083
6084 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
6085 of aggregate types that contain a placeholder.
6086
6087 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6088
6089 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
6090 TYPE_ARG_TYPES.
6091 (handle_type_generic_attribute): Likewise.
6092
6093 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6094
6095 PR ada/47163
6096 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
6097
6098 2011-04-04 Kai Tietz <ktietz@redhat.com>
6099
6100 PR ada/47163
6101 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
6102 to flag value.
6103
6104 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6105
6106 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
6107 type case, do not strip a padding type around the array type.
6108
6109 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6110
6111 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
6112 types.
6113
6114 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6115
6116 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
6117 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
6118 code for -feliminate-unused-debug-types.
6119 (gnat_post_options): Likewise.
6120
6121 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6122
6123 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
6124 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
6125 distinct copy.
6126
6127 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6128
6129 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
6130 DECL_ARTIFICIAL flag on enumeration types.
6131
6132 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6133
6134 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
6135 fat pointer types artificial unconditionally.
6136 <E_Array_Subtype>: Attach the base array type as a parallel type if it
6137 isn't artificial.
6138
6139 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6140
6141 * gcc-interface/gigi.h (get_dummy_type): Declare.
6142 (build_dummy_unc_pointer_types): Likewise.
6143 (finish_fat_pointer_type): Likewise.
6144 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
6145 fat pointer type has been built, complete it in place.
6146 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
6147 and thin pointers. Remove useless variable.
6148 (finish_fat_pointer_type): Make global and move to...
6149 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
6150 (get_dummy_type): New function.
6151 (build_dummy_unc_pointer_types): Likewise.
6152 (gnat_pushdecl): Propage the name to the anonymous variants only.
6153 (update_pointer_to): Only adjust the pointer types in the unconstrained
6154 array case.
6155
6156 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6157
6158 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
6159 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
6160 if this is a Taft amendment type and the full declaration is available.
6161 * gcc-interface/trans.c (process_type): Likewise.
6162 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
6163 (process_freeze_entity): Likewise.
6164 * gcc-interface/utils.c (dummy_global): New static variable.
6165 (gnat_write_global_declarations): If there are types declared as used
6166 at the global level, insert them in the global hash table.
6167
6168 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6169
6170 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
6171 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
6172 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
6173 copy.
6174 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
6175 flag of the type accordingly.
6176 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
6177
6178 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
6179
6180 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
6181 finalizing types when updating the pointers to the designated type.
6182 <all>: Finalize the deferred types even if we didn't defer processing
6183 of incomplete types in this invocation.
6184
6185 2011-04-01 Olivier Hainque <hainque@adacore.com>
6186 Nicolas Setton <setton@adacore.com>
6187 Eric Botcazou <ebotcazou@adacore.com>
6188
6189 * gcc-interface/misc.c (gnat_descriptive_type): New function.
6190 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
6191
6192 2011-03-28 Kai Tietz <ktietz@redhat.com>
6193
6194 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
6195 Windows targets.
6196 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
6197 * system-mingw.ads (System): Change ZCX_By_Default default to True.
6198
6199 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
6200
6201 2011-03-28 Tristan Gingold <gingold@adacore.com>
6202
6203 PR ada/44431
6204 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
6205 Use ada output of gnatbind.
6206 (ada/b_gnatb.adb): Ditto.
6207 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
6208 (ada.mostlyclean, ada.stage1)
6209 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
6210 (ada.stagefeedback): Adjust.
6211 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
6212 Use ada output of gnatbind.
6213 (b_gnatm.adb): Ditto.
6214 (b_gnatl.o, b_gnatm.o): New rules.
6215
6216 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6217
6218 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
6219 for the padded type built to support a specified size or alignment.
6220
6221 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6222
6223 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
6224 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
6225 unconditionally to the end of the unit when the designated type is
6226 limited_with'ed.
6227 <all>: Rename local variable. Attempt to un-defer types only and do it
6228 for limited_with'ed types as well.
6229 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
6230 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
6231 consistently and remove redundant call to finalize_from_with_types.
6232
6233 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6234
6235 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
6236 subprograms without a previous spec declared in the same unit.
6237 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
6238 subprograms at the end of the unit instead of at the beginning.
6239 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
6240 isn't public for the special handling of non-inline functions nested
6241 inside inline external functions.
6242
6243 2011-03-25 Jeff Law <law@redhat.com>
6244
6245 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
6246
6247 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6248
6249 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
6250 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
6251 to compute Set_Size_Depends_On_Discriminant.
6252 (Layout_Type): Call it on array types in back-end layout mode.
6253 * sem_util.adb (Requires_Transient_Scope): Return true for array
6254 types only if the size depends on the value of discriminants.
6255 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
6256 type if the RHS is a call to a function that returns an unconstrained
6257 type with default discriminant.
6258
6259 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6260
6261 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
6262 non-conversion to the nominal result type at the end.
6263
6264 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
6265
6266 * gcc-interface/trans.c (create_temporary): New function taken from...
6267 (create_init_temporary): ...here. Call it.
6268 (call_to_gnu): Create the temporary for the return value early, if any.
6269 Create it for a function with copy-in/copy-out parameters if there is
6270 no target; in other cases of copy-in/copy-out, use another temporary.
6271 Push the new binding level lazily. Add and rename local variables.
6272
6273 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
6274
6275 * gcc-interface/decl.c (validate_size): Improve comments and tweak
6276 error message.
6277 (set_rm_size): Likewise.
6278
6279 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
6280
6281 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
6282 for the padded type built in order to support a specified alignment.
6283 Fix incorrect formatting.
6284
6285 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6286
6287 PR bootstrap/48216
6288 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
6289
6290 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6291
6292 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
6293 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
6294 to the end of the list. Adjust recursive call. Rename local variable.
6295 If REORDER is true, reorder components of the record type.
6296 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
6297 components_to_record and adjust the parameter list.
6298
6299 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6300
6301 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
6302 disabled, use the variable for bounds of loop iteration scheme.
6303
6304 2011-03-21 Kai Tietz <ktietz@redhat.com>
6305
6306 PR target/12171
6307 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
6308
6309 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
6310
6311 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
6312 out whether the expression is read-only. Short-circuit placeholder
6313 case and rename a couple of local variables.
6314
6315 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
6316
6317 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
6318 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
6319 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
6320 (convert): Deal with conversions from a smaller form type specially.
6321
6322 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
6323
6324 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
6325 its argument, except for the special -I- switch.
6326
6327 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
6328
6329 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
6330 "Ada Issues".
6331
6332 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
6333
6334 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
6335
6336 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
6337
6338 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
6339 GNAT_FORMAL.
6340 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
6341 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
6342 instead of GNAT_FORMAL. Protect the expression against multiple uses.
6343 Do not generate the check directly, instead instantiate the template
6344 check present in the descriptor.
6345 (make_descriptor_field): Move around.
6346 (build_vms_descriptor32): Build a template check in the POINTER field.
6347 (build_vms_descriptor): Remove useless suffixes.
6348 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
6349
6350 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6351
6352 PR bootstrap/47467
6353 * targext.c: Include target files if IN_RTS is defined.
6354
6355 2011-01-26 Richard Guenther <rguenther@suse.de>
6356
6357 PR bootstrap/47467
6358 * targext.c: Include config.h.
6359 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
6360 dependency.
6361
6362 2011-01-04 Pascal Obry <obry@adacore.com>
6363 Eric Botcazou <ebotcazou@adacore.com>
6364
6365 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
6366
6367 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
6368
6369 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
6370 end-of-case on the end label and its associated gotos, if any.
6371
6372 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
6373
6374 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
6375 expressions of the parameter cache within the statement group of
6376 the CICO mechanism.
6377
6378 2011-01-04 Olivier Hainque <hainque@adacore.com>
6379 Eric Botcazou <ebotcazou@adacore.com>
6380
6381 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
6382 (set_end_locus_from_node): New function.
6383 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
6384 make and the function end_locus.
6385 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
6386 for the elaboration subprogram.
6387 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
6388 set the end_locus of the expression as well.
6389
6390 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
6391
6392 PR ada/47131
6393 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
6394 variables that are referenced in exception handlers volatile.
6395
6396
6397 \f
6398 Copyright (C) 2011 Free Software Foundation, Inc.
6399
6400 Copying and distribution of this file, with or without modification,
6401 are permitted in any medium without royalty provided the copyright
6402 notice and this notice are preserved.