591d7e49cb20c9f97d5092a16c0d1809beb3d0f3
[gcc.git] / gcc / ada / ChangeLog
1 2010-10-26 Geert Bosch <bosch@adacore.com>
2
3 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
4 node to determine wether the subprogram is a rewritten parameterized
5 expression.
6
7 2010-10-26 Robert Dewar <dewar@adacore.com>
8
9 * opt.ads: Minor code reorganization
10 Alphabetize Warning switches.
11
12 2010-10-26 Robert Dewar <dewar@adacore.com>
13
14 * sem_res.adb, xsinfo.adb: Minor reformatting.
15
16 2010-10-26 Bob Duff <duff@adacore.com>
17
18 * namet.adb (Finalize): More cleanup of statistics printouts.
19
20 2010-10-26 Robert Dewar <dewar@adacore.com>
21
22 * ceinfo.adb: Minor reformatting.
23
24 2010-10-26 Javier Miranda <miranda@adacore.com>
25
26 * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
27 setting attribute Overridden_Operation do not reference the entities
28 generated by Derive_Subprograms but their aliased entity (which
29 is the primitive inherited from the parent type).
30
31 2010-10-26 Bob Duff <duff@adacore.com>
32
33 * namet.adb, namet.ads: Minor cleanup.
34
35 2010-10-26 Arnaud Charlet <charlet@adacore.com>
36
37 * gcc-interface/Make-lang.in: Update dependencies.
38
39 2010-10-26 Robert Dewar <dewar@adacore.com>
40
41 * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
42 appropriate.
43 * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
44 sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
45 this new abstraction where appropriate.
46
47 2010-10-26 Ed Schonberg <schonberg@adacore.com>
48
49 * sem_ch12.adb: Code clean up.
50
51 2010-10-26 Paul Hilfinger <hilfinger@adacore.com>
52
53 * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
54 debugging data.
55
56 2010-10-26 Ed Schonberg <schonberg@adacore.com>
57
58 * sem_util.adb (Note_Possible_Modification): If the target of an
59 assignment is the bound variable in an iterator, the domain of
60 iteration, i.e. array or container, is modified as well.
61
62 2010-10-26 Bob Duff <duff@adacore.com>
63
64 * Make-generated.in: Make the relevant make targets depend on
65 ceinfo.adb and csinfo.adb.
66 * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
67 so when called from xeinfo, the failure will be noticed.
68 * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
69 * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
70
71 2010-10-26 Ed Schonberg <schonberg@adacore.com>
72
73 * exp_ch4.adb: Set properly parent field of operands of concatenation.
74
75 2010-10-26 Ed Schonberg <schonberg@adacore.com>
76
77 * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
78 conditional expression or a case expression should not generate an
79 infinite recursion warning.
80
81 2010-10-26 Javier Miranda <miranda@adacore.com>
82
83 * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
84 (Set_Is_Overriding_Operation): Removed.
85 * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
86 Is_Overriding_Operation.
87 * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
88 Is_Overriding_Operation.
89 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
90 call to Set_Is_Overriding_Operation.
91 * sem_util.adb (Collect_Primitive_Operations): Replace test on
92 Is_Overriding_Operation by test on the presence of attribute
93 Overridden_Operation.
94 (Original_Corresponding_Operation): Remove redundant call to attribute
95 Is_Overriding_Operation.
96 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
97 redundant call to Is_Overriding_Operation.
98 (Verify_Overriding_Indicator): Replace several occurrences of test on
99 Is_Overriding_Operation by test on the presence of attribute
100 Overridden_Operation.
101 (Check_Convention): Replace test on Is_Overriding_Operation by test on
102 the presence of Overridden_Operation.
103 (Check_Overriding_Indicator): Add missing decoration of attribute
104 Overridden_Operation. Minor code cleanup.
105 (New_Overloaded_Entity): Replace occurrence of test on
106 Is_Overriding_Operation by test on the presence of attribute
107 Overridden_Operation. Remove redundant setting of attribute
108 Is_Overriding_Operation plus minor code reorganization.
109 Add missing decoration of attribute Overridden_Operation.
110 * sem_elim.adb (Set_Eliminated): Replace test on
111 Is_Overriding_Operation by test on the presence of Overridden_Operation.
112 * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
113 Is_Overriding_Operation by test on the presence of
114 Overridden_Operation. Remove a redundant test on attribute
115 Is_Overriding_Operation.
116 * lib-xref.adb (Generate_Reference): Replace test on
117 Is_Overriding_Operation by test on the presence of Overridden_Operation.
118 (Output_References): Replace test on Is_Overriding_Operation by test on
119 the presence of Overridden_Operation.
120 * sem_disp.adb (Override_Dispatching_Operation): Replace test on
121 Is_Overriding_Operation by test on the presence of Overridden_Operation.
122 Add missing decoration of attribute Overridden_Operation.
123
124 2010-10-26 Robert Dewar <dewar@adacore.com>
125
126 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
127 RM 13.4.1(10).
128
129 2010-10-26 Bob Duff <duff@adacore.com>
130
131 * sem_res.adb (Resolve_Actuals): In case of certain
132 internally-generated type conversions (created by OK_Convert_To, so the
133 Conversion_OK flag is set), avoid fetching the component type when it's
134 not really an array type, but a private type completed by an array type.
135
136 2010-10-26 Ed Schonberg <schonberg@adacore.com>
137
138 * sem_ch5.adb: Adjust format of error message.
139
140 2010-10-26 Robert Dewar <dewar@adacore.com>
141
142 * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
143 * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
144 detect renamings to avoid problems with invariants.
145 * sem_ch13.adb (Replace_Type_References_Generic): New procedure
146 (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
147 (Build_Predicate_Function): Use Replace_Type_Reference_Generic
148 * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
149 references, flag is no longer set.
150
151 2010-10-26 Vincent Celier <celier@adacore.com>
152
153 * prj.ads (Source_Data): New Boolean component Initialized, defaulted
154 to False, set to True when Source_Data is completely initialized.
155 * prj-env.adb: Minor comment fix.
156
157 2010-10-26 Robert Dewar <dewar@adacore.com>
158
159 * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
160
161 2010-10-26 Ed Schonberg <schonberg@adacore.com>
162
163 * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
164 form "for X in A" when A is an array object. This form is only intended
165 for containers.
166 * sem_eval.adb: Fix reference to non-existing field of type conversion
167 node.
168 * sem_case.adb (Check_Choices): Improve error reporting for overlapping
169 choices in case statements.
170
171 2010-10-26 Gary Dismukes <dismukes@adacore.com>
172
173 * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
174 a class-wide interface formal that involves applying a displacement
175 conversion to the actual, check for the case of calling a build-in-place
176 function and handle generation of the implicit BIP parameters (call
177 Make_Build_In_Place_Call_In_Anonymous_Context).
178 Add with and use of Exp_Ch6.
179
180 2010-10-26 Robert Dewar <dewar@adacore.com>
181
182 * sem_prag.adb, sem_cat.ads: Minor reformatting.
183
184 2010-10-26 Sergey Rybin <rybin@adacore.com>
185
186 * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
187
188 2010-10-26 Thomas Quinot <quinot@adacore.com>
189
190 * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
191 For a discriminant, use Discriminant_Default_Value rather than
192 Expression (Declaration_Node (D)).
193
194 2010-10-26 Geert Bosch <bosch@adacore.com>
195
196 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
197 expressions don't need a spec, even when style checks require
198 subprograms to have one.
199
200 2010-10-26 Arnaud Charlet <charlet@adacore.com>
201
202 * gnatvsn.ads: Update comments.
203
204 2010-10-26 Matthew Heaney <heaney@adacore.com>
205
206 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
207 map containers.
208 * a-cohata.ads: Add declaration of generic package for bounded hash
209 table types.
210 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
211 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
212
213 2010-10-26 Ed Schonberg <schonberg@adacore.com>
214
215 * sem_warn.adb: Improve warning message on overlapping actuals.
216
217 2010-10-26 Thomas Quinot <quinot@adacore.com>
218
219 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
220
221 2010-10-26 Vincent Celier <celier@adacore.com>
222
223 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
224
225 2010-10-26 Robert Dewar <dewar@adacore.com>
226
227 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
228 predicate check to analyzer, since too much rewriting occurs in the
229 analyzer.
230 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
231 change the order in which things are done to fix several errors in
232 dealing with qualification of the type name.
233 (Build_Static_Predicate): Built static predicate after full analysis
234 of the body. This is necessary to fix several problems.
235 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
236 from expander, since too much expansion occurs in the analyzer to leave
237 it that late.
238 (Analyze_Object_Declaration): Change parameter Include_Null to new name
239 Include_Implicit in Is_Partially_Initialized_Type call.
240 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
241 some strange cases of internal subtype generation.
242 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
243 Include_Null to Include_Implicit, now includes the case of
244 discriminants.
245
246 2010-10-26 Sergey Rybin <rybin@adacore.com>
247
248 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
249
250 2010-10-26 Matthew Heaney <heaney@adacore.com>
251
252 * Makefile.rtl, impunit.adb: Added bounded list container.
253 * a-cbdlli.ads, a-cbdlli.adb: New file.
254
255 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
256
257 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
258 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
259 of the call to invert_truthvalue_loc.
260 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
261
262 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
263
264 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
265 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
266 reference types.
267
268 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
269
270 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
271 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
272
273 2010-10-25 Jose Ruiz <ruiz@adacore.com>
274
275 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
276 Reorganize target pairs so that it works on linux and ElinOS.
277
278 2010-10-25 Pascal Obry <obry@adacore.com>
279
280 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
281 the timestamp. A bit faster than opening/closing the file.
282 (__gnat_stat_to_attr): Remove kludge for Windows.
283 (__gnat_file_exists_attr): Likewise.
284 The timestamp is now retreived using GetFileAttributesEx as faster.
285
286 2010-10-25 Javier Miranda <miranda@adacore.com>
287
288 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
289 (Derive_Subprograms): For abstract private types transfer to the full
290 view entities of uncovered interface primitives. Required because if
291 the interface primitives are left in the private part of the package
292 they will be decorated as hidden when the analysis of the enclosing
293 package completes (and hence the interface primitive is not visible
294 for dispatching calls).
295
296 2010-10-25 Matthew Heaney <heaney@adacore.com>
297
298 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
299 containers.
300 * a-crbltr.ads: Added declaration of generic package for bounded tree
301 types.
302 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
303 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
304 New.
305
306 2010-10-25 Thomas Quinot <quinot@adacore.com>
307
308 * sem_util.adb: Minor reformatting.
309 * usage.adb: Fix usage line for -gnatwh.
310
311 2010-10-25 Thomas Quinot <quinot@adacore.com>
312
313 * sem_ch12.adb (Analyze_Package_Instantiation): For an
314 instantiation in an RCI spec, omit package body if instantiation comes
315 from source, even as a nested
316 package.
317 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
318 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
319 nested packages, package instantiations and subprogram instantiations.
320
321 2010-10-25 Robert Dewar <dewar@adacore.com>
322
323 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
324 non-static predicate, since we agree not to allow this.
325 (Expand_Predicated_Loop): Properlay handle false predicate (null
326 list in Static_Predicate field.
327 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
328 handling of more general predicate forms.
329
330 2010-10-25 Robert Dewar <dewar@adacore.com>
331
332 * sem_ch4.adb, sem_util.adb: Minor reformatting.
333 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
334 of type in predicate or invariant expression.
335
336 2010-10-25 Pascal Obry <obry@adacore.com>
337
338 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
339 (f2t): New routine.
340 (__gnat_stat): Rewrite Win32 version.
341
342 2010-10-25 Robert Dewar <dewar@adacore.com>
343
344 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
345 * sem_case.adb: Comment clarification for loops through false
346 predicates.
347 * sem_util.adb: Minor reformatting
348 (Check_Order_Dependence): Fix bad double blank in error message
349
350 2010-10-25 Ed Schonberg <schonberg@adacore.com>
351
352 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
353 operation can have a single alternative that is a value of the type.
354 Rewrite operation as an equality test.
355
356 2010-10-25 Matthew Heaney <heaney@adacore.com>
357
358 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
359 to lists.
360 * a-contai.ads: Added declaration of Capacity_Error exception.
361 * a-cobove.ads, a-cobove.adb: New files.
362
363 2010-10-25 Thomas Quinot <quinot@adacore.com>
364
365 * uname.adb: Revert previous change, no longer needed after change
366 in par-ch10.adb.
367
368 2010-10-25 Thomas Quinot <quinot@adacore.com>
369
370 * scos.ads: Minor comment fix.
371
372 2010-10-25 Ed Schonberg <schonberg@adacore.com>
373
374 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
375 dependence.
376 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
377 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
378 current construct, for subsequent order dependence checking.
379 (Resolve): Check order dependence on expressions that are not
380 subexpressions.
381 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
382 to latest version of AI05-144-2.
383 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
384
385 2010-10-25 Robert Dewar <dewar@adacore.com>
386
387 * sem_ch13.adb (Build_Static_Predicate): Moved out of
388 Build_Predicate_Function.
389 (Build_Static_Predicate): Complet rewrite for more general predicates
390
391 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
392 Eric Botcazou <ebotcazou@adacore.com>
393
394 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
395 In Out/Out parameters for functions.
396 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
397 (create_init_temporary): New static function.
398 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
399 (call_to_gnu): Likewise. Use create_init_temporary in order to create
400 temporaries for unaligned parameters and return value. If there is an
401 unaligned In Out or Out parameter passed by reference, push a binding
402 level if not already done. If a binding level has been pushed and the
403 call is returning a value, create the call statement.
404 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
405 functions.
406
407 2010-10-22 Ben Brosgol <brosgol@adacore.com>
408
409 * gnat_rm.texi: Add chapter on Ada 2012 support.
410
411 2010-10-22 Robert Dewar <dewar@adacore.com>
412
413 * sem_ch12.adb: Minor reformatting.
414
415 2010-10-22 Thomas Quinot <quinot@adacore.com>
416
417 * exp_dist.adb: Mark missing case of nested package when expanding
418 stubs.
419
420 2010-10-22 Ed Schonberg <schonberg@adacore.com>
421
422 * par-ch10.adb: Discard incomplete with_clause.
423
424 2010-10-22 Robert Dewar <dewar@adacore.com>
425
426 * checks.adb (Enable_Range_Check): Remove code suppressing range check
427 if static predicate present, not needed.
428 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
429 * exp_ch3.adb (Expand_N_Object_Declaration): Check
430 Suppress_Assignment_Checks flag.
431 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
432 of ranges when predicates are present.
433 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
434 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
435 (Expand_N_Loop_Statement): Handle loops over predicated types
436 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
437 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
438 message for inheritance if within a generic instance, not useful there!
439 (Build_Static_Predicate): Optimize test in predicate function
440 based on static ranges determined.
441 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
442 subtype with non-static predicate.
443 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
444
445 2010-10-22 Thomas Quinot <quinot@adacore.com>
446
447 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
448 node in the unit name, propagate Program_Error to guard against
449 cascaded errors.
450
451 2010-10-22 Javier Miranda <miranda@adacore.com>
452
453 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
454 selected components of dispatch table wrappers.
455
456 2010-10-22 Ed Schonberg <schonberg@adacore.com>
457
458 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
459 implements an interface must be treated as if it has entries, to
460 support dispatching select statements.
461
462 2010-10-22 Robert Dewar <dewar@adacore.com>
463
464 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
465
466 2010-10-22 Javier Miranda <miranda@adacore.com>
467
468 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
469 aggregate has a non standard representation the attributes 'Val and
470 'Pos expand into function calls and the resulting expression is
471 considered non-safe for reevaluation by the backend. Relocate it into
472 a constant temporary to indicate to the backend that it is side
473 effects free.
474
475 2010-10-22 Ed Schonberg <schonberg@adacore.com>
476
477 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
478 derived corresponding record type only when expansion is enabled.
479
480 2010-10-22 Robert Dewar <dewar@adacore.com>
481
482 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
483 of parameters.
484 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
485 messages for generic actual subtypes.
486 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
487 (Bad_Predicated_Subtype_Use): Use this procedure.
488
489 2010-10-22 Robert Dewar <dewar@adacore.com>
490
491 * sem_ch5.adb: Minor reformatting.
492
493 2010-10-22 Robert Dewar <dewar@adacore.com>
494
495 * a-except-2005.adb (Rmsg_18): New message text.
496 * a-except.adb (Rmsg_18): New message text.
497 * atree.adb (List25): New function
498 (Set_List25): New procedure
499 * atree.ads (List25): New function
500 (Set_List25): New procedure
501 * einfo.adb (Static_Predicate): Is now a list
502 (OK_To_Reference): Present in all entities
503 * einfo.ads (Static_Predicate): Is now a list
504 (OK_To_Reference): Applies to all entities
505 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
506 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
507 Bad_Predicated_Subtype_Use.
508 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
509 subtype case.
510 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
511 Sem_Ch13.
512 (Build_Static_Predicate): New procedure handles static predicates.
513 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
514 with no constraint if ancestor subtype has predicates.
515 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
516 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
517 entity.
518 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
519 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
520 Analyze_Choices.
521 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
522 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
523 PE_Bad_Attribute_For_Predicate.
524 * atree.h: Add definition of List25.
525
526 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
527
528 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
529 moved to dotnet-ld.
530 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
531 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
532 the .NET compiler, useless and unsupported.
533
534 2010-10-22 Robert Dewar <dewar@adacore.com>
535
536 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
537 this returns a Node_Id for a reference to the entity, not the entity
538 itself!
539
540 2010-10-22 Ed Schonberg <schonberg@adacore.com>
541
542 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
543 bounds require a temporary.
544
545 2010-10-22 Robert Dewar <dewar@adacore.com>
546
547 * sem_ch4.adb: Minor reformatting.
548 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
549
550 2010-10-22 Robert Dewar <dewar@adacore.com>
551
552 * par-ch5.adb: Minor reformatting.
553 * gcc-interface/Make-lang.in: Update dependencies.
554
555 2010-10-22 Robert Dewar <dewar@adacore.com>
556
557 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
558 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
559 Has_Predicates set to True if it inherits predicates.
560 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
561 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
562 * types.h: Add new Rcheck entry.
563 * einfo.ads, einfo.adb (Static_Predicate): New field.
564 Minor code reorganization (file float routines in proper section)
565 Fix bad field name in comments.
566
567 2010-10-22 Robert Dewar <dewar@adacore.com>
568
569 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
570 case.
571
572 2010-10-22 Vincent Celier <celier@adacore.com>
573
574 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
575 declaration of IDE'Compiler_Command for one of the language in the main
576 project.
577 (Do_Autoconf): If there were at least one Compiler_Command declared and
578 no target, invoke gprconfig with --target=all instead of the normalized
579 host name.
580
581 2010-10-22 Robert Dewar <dewar@adacore.com>
582
583 * par-ch4.adb: Update syntax in comments for Ada 2012.
584 * sinfo.ads: Update syntax in comments for Ada 2012
585 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
586 from msg.
587
588 2010-10-22 Gary Dismukes <dismukes@adacore.com>
589
590 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
591 limited tagged types to have defaulted discriminants. Customize the
592 error message for the Ada 2012 case.
593 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
594 defaulted discriminants. Customize the error message for the Ada 2012
595 case.
596 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
597 formal for out formals of discriminated types in the case where the
598 underlying type is a limited tagged type.
599 * exp_attr.adb (Expand_N_Attribute_Reference, case
600 Attribute_Constrained): Return True for 'Constrained when the
601 underlying type of the prefix is a limited tagged type.
602
603 2010-10-22 Thomas Quinot <quinot@adacore.com>
604
605 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
606 may already have a rep item chain inherited from the full view of the
607 base type, so do not overwrite it when propagating rep items from the
608 partial view of the subtype.
609 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
610
611 2010-10-22 Sergey Rybin <rybin@adacore.com>
612
613 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
614
615 2010-10-22 Tristan Gingold <gingold@adacore.com>
616
617 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
618
619 2010-10-22 Ed Schonberg <schonberg@adacore.com>
620
621 * par-ch5.adb: Set properly starting sloc of loop parameter.
622
623 2010-10-22 Ed Schonberg <schonberg@adacore.com>
624
625 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
626 lvalue in Ada2012, if the function has in-out parameters.
627
628 2010-10-22 Robert Dewar <dewar@adacore.com>
629
630 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
631 sem_ch10.adb: Minor reformatting.
632
633 2010-10-22 Sergey Rybin <rybin@adacore.com>
634
635 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
636
637 2010-10-22 Ed Schonberg <schonberg@adacore.com>
638
639 * sem_attr.adb: Handle indexed P'old.
640
641 2010-10-22 Geert Bosch <bosch@adacore.com>
642
643 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
644 * einfo.ads (Float_Rep): New attribute.
645 (Float_Rep_Kind): Move from body. Add comments.
646 * einfo.adb (Float_Rep_Kind): Move to spec
647 (Float_Rep): Now a real field instead of local function.
648 (Set_Float_Rep): New procedure to set floating point representation
649 (Set_Vax_Float): Remove.
650 (Write_Entity_Flags): Remove Vax_Float flag.
651 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
652 * exp_attr.adb (Attribute_Valid): Use case statement for representation
653 specific processing.
654 * sem_ch3.adb (Build_Derived_Numeric_Type,
655 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
656 attribute.
657 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
658 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
659 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
660
661 2010-10-22 Robert Dewar <dewar@adacore.com>
662
663 * sprint.adb: Minor reformatting.
664
665 2010-10-22 Robert Dewar <dewar@adacore.com>
666
667 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
668 checks.
669 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
670 view.
671 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
672 Invariants_Present.
673 (Process_PPCs): Handle predicates generating post conditions
674 * sem_util.adb (Is_Partially_Initialized_Type): Add
675 Include_Null parameter.
676 * sem_util.ads (Is_Partially_Initialized_Type): Add
677 Include_Null parameter.
678
679 2010-10-22 Sergey Rybin <rybin@adacore.com>
680
681 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
682
683 2010-10-22 Thomas Quinot <quinot@adacore.com>
684
685 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
686 case where argument is not a type.
687
688 2010-10-22 Robert Dewar <dewar@adacore.com>
689
690 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
691 reformatting.
692
693 2010-10-22 Arnaud Charlet <charlet@adacore.com>
694
695 * a-locale.adb: Minor code clean up.
696
697 2010-10-22 Thomas Quinot <quinot@adacore.com>
698
699 * exp_ch4.adb: Minor code reorganization and factoring.
700
701 2010-10-22 Thomas Quinot <quinot@adacore.com>
702
703 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
704 Minor reformatting.
705
706 2010-10-22 Geert Bosch <bosch@adacore.com>
707
708 * stand.ads: Fix typo in comment.
709
710 2010-10-22 Ed Schonberg <schonberg@adacore.com>
711
712 * sem_ch6.adb: Enable in-out parameter for functions.
713
714 2010-10-22 Ed Schonberg <schonberg@adacore.com>
715
716 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
717 iterators that are transformed into container iterators after analysis.
718 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
719 iterator forms before rewriting as a loop.
720
721 2010-10-22 Brett Porter <porter@adacore.com>
722
723 * a-locale.adb, a-locale.ads, locales.c: New files.
724 * Makefile.rtl: Add a-locale
725 * gcc-interface/Makefile.in: Add locales.c
726
727 2010-10-22 Robert Dewar <dewar@adacore.com>
728
729 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
730 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
731
732 2010-10-22 Ed Schonberg <schonberg@adacore.com>
733
734 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
735 iterator forms over arrays and containers, in loops and quantified
736 expressions.
737 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
738 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
739 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
740 P_Iteration_Scheme to handle both loop forms.
741 * sem.adb: Handle N_Iterator_Specification.
742 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
743 subprogram.
744 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
745 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
746 for N_Quantified_Expression.
747 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
748 and Previous, to support iterators over predefined containers.
749 * sprint.adb: Handle N_Iterator_Specification.
750
751 2010-10-22 Thomas Quinot <quinot@adacore.com>
752
753 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
754 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
755 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
756 immediately after a library unit.
757 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
758 a formal derived type.
759
760 2010-10-22 Geert Bosch <bosch@adacore.com>
761
762 * gcc-interface/Make-lang.in: Remove ttypef.ads
763 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
764 of Machine_Mantissa and Machine_Radix.
765 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
766 Type_High_Bound of the type, instead of choosing constants from Ttypef.
767 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
768 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
769 each type.
770 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
771 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
772 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
773 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
774 synthesized floating point attributes.
775 * einfo.adb (Float_Rep): Determine the kind of floating point
776 representation used for a given type.
777 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
778 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
779 the number of digits in the type.
780 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
781 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
782 Implement new synthesized floating point attributes based on the various
783 machine attributes.
784 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
785 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
786 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
787 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
788 constants, instead of using constants from Ttypef.
789 * gnat_rm.texi: Reword comments referencing Ttypef.
790 * sem_attr.ads: Reword comment referencing Ttypef.
791 * sem_attr.adb (Float_Attribute_Universal_Integer,
792 Float_Attribute_Universal_Real): Remove.
793 (Attribute_Machine_Emax, Attribute_Machine_Emin,
794 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
795 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
796 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
797 attributes in Einfo instead of Float_Attribute_Universal_Real and
798 Float_Attribute_Universal_Integer and all explicit constants.
799 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
800 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
801 IEEES_Digits): New local constants, in order to remove dependency on
802 Ttypef.
803 * tbuild.ads (Make_Float_Literal): New function.
804 * tbuild.adb (Make_Float_Literal): New function to create a new
805 N_Real_Literal, constructing it as simple as possible for best
806 output of constants in -gnatS.
807 * ttypef.ads: Remove.
808
809 2010-10-22 Robert Dewar <dewar@adacore.com>
810
811 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
812 when subtype is the same, caused legitimate checks to be missed.
813 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
814 inheritance from right entity.
815 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
816 derived type case if the ancestor type has predicates.
817 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
818 * sem_prag.adb (Check_Enabled): Minor code reorganization.
819
820 2010-10-22 Arnaud Charlet <charlet@adacore.com>
821
822 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
823
824 2010-10-22 Thomas Quinot <quinot@adacore.com>
825
826 * einfo.ads (Declaration_Node): Clarify documentation, in particular
827 regarding what is returned for subprogram entities.
828
829 2010-10-22 Arnaud Charlet <charlet@adacore.com>
830
831 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
832 explicit comparisons, generates simpler expanded code.
833 * a-except-2005.adb (Rcheck_06_Ext): New.
834 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
835 like range checks.
836 * gcc-interface/Make-lang.in: Update dependencies.
837
838 2010-10-22 Robert Dewar <dewar@adacore.com>
839
840 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
841 for index type
842 (Constrain_Index): Error of subtype wi predicate in index constraint
843 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
844 predicate in entry family.
845 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
846
847 2010-10-22 Javier Miranda <miranda@adacore.com>
848
849 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
850 (Original_Corresponding_Operation): New subprogram.
851 (Visible_Ancestors): New subprogram.
852 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
853 operation that overrides a hidden inherited primitive.
854 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
855 (Check_Dispatching_Operation): if the new dispatching operation
856 does not override a visible primtive then check if it overrides
857 some hidden inherited primitive.
858
859 2010-10-22 Ed Schonberg <schonberg@adacore.com>
860
861 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
862 clause is a child unit that denotes a renaming, replace the
863 parent_unit_name with a reference to the renamed unit, because the
864 prefix is irrelevant to subsequent visibility..
865
866 2010-10-22 Robert Dewar <dewar@adacore.com>
867
868 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
869 (simplifies code).
870 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
871 inheritance.
872 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
873 freeze node for entities for which a predicate is specified.
874 (Analyze_Aspect_Specifications): Avoid duplicate calls
875 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
876 duplicate calls to Analye_Aspect_Specifications.
877
878 2010-10-22 Thomas Quinot <quinot@adacore.com>
879
880 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
881
882 2010-10-21 Robert Dewar <dewar@adacore.com>
883
884 * sem_ch3.adb: Minor reformatting.
885
886 2010-10-21 Thomas Quinot <quinot@adacore.com>
887
888 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
889 removed routine.
890
891 2010-10-21 Nicolas Roche <roche@adacore.com>
892
893 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
894 gcc-interface/Makefile.in: Remove gnatmem specific files.
895
896 2010-10-21 Thomas Quinot <quinot@adacore.com>
897
898 * sem_res.adb, exp_ch13.adb: Minor reformatting.
899
900 2010-10-21 Thomas Quinot <quinot@adacore.com>
901
902 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
903 to provide a tagged full view as the completion of an untagged partial
904 view if the partial view has a discriminant with default.
905
906 2010-10-21 Arnaud Charlet <charlet@adacore.com>
907
908 * gcc-interface/Make-lang.in: Update dependencies.
909
910 2010-10-21 Robert Dewar <dewar@adacore.com>
911
912 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
913 Minor code reorganization.
914 * einfo.adb (Has_Predicates): Fix assertion.
915 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
916 Exp_Ch13 body.
917 (Expand_N_Freeze_Entity): Call build predicate function.
918 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
919 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
920 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
921 check.
922 * freeze.adb (Freeze_Entity): Move building of predicate function to
923 Exp_Ch13.
924 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
925 Exp_Ch13.
926 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
927 Exp_Ch13.
928 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
929 function.
930 * sem_res.adb (Resolve_Actuals): Apply predicate check.
931
932 2010-10-21 Robert Dewar <dewar@adacore.com>
933
934 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
935 Predicate_Functions.
936 * exp_ch4.adb (Expand_N_In): Handle predicates.
937 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
938 (Make_Predicate_Check): New function.
939 * freeze.adb (Freee_Entity): Build predicate function if needed.
940 * sem_ch13.adb (Build_Predicate_Function): New procedure.
941 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
942 built from Predicate aspect.
943 * sem_ch13.ads (Build_Predicate_Function): New procedure.
944 * sem_ch3.adb: Add handling for predicates.
945 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
946 functions around.
947 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
948 argument.
949
950 2010-10-21 Robert Dewar <dewar@adacore.com>
951
952 * einfo.ads, einfo.adb: Add handling of predicates.
953 Rework handling of invariants.
954 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
955 handing of invariants.
956 * par-prag.adb: Add dummy entry for pragma Predicate
957 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
958 Predicate aspects.
959 * sem_prag.adb: Add implementation of pragma Predicate.
960 * snames.ads-tmpl: Add entries for pragma Predicate.
961
962 2010-10-21 Robert Dewar <dewar@adacore.com>
963
964 * elists.adb: Minor reformatting.
965
966 2010-10-21 Geert Bosch <bosch@adacore.com>
967
968 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
969 decimal constants, and write any others using the exponent notation.
970 Minor reformatting throughout
971 (Store_Ureal_Normalized): New function (minor code reorganization)
972
973 2010-10-21 Robert Dewar <dewar@adacore.com>
974
975 * einfo.ads, xeinfo.adb: Minor reformatting.
976 * s-stalib.ads: Minor comment fixes.
977
978 2010-10-21 Ed Schonberg <schonberg@adacore.com>
979
980 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
981 hiding, to remove noise warnings about hiding predefined operators.
982
983 2010-10-21 Emmanuel Briot <briot@adacore.com>
984
985 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
986 when the parameter has length 1.
987
988 2010-10-21 Jose Ruiz <ruiz@adacore.com>
989
990 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
991 dependence on Ada.Execution_Time.Timers,
992 Ada.Execution_Time.Group_Budget, and
993 System.Multiprocessors.Dispatching_Domains which are part of the
994 Ravenscar Profile.
995 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
996 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
997 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
998 files for package System.Mutiprocessors.Dispatching_Domains.
999
1000 2010-10-21 Tristan Gingold <gingold@adacore.com>
1001
1002 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
1003
1004 2010-10-21 Thomas Quinot <quinot@adacore.com>
1005
1006 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
1007 called for a completion.
1008
1009 2010-10-21 Geert Bosch <bosch@adacore.com>
1010
1011 * uintp.ads: Expand image buffer to have enough room for 128-bit values
1012 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
1013 notation; either as fixed point literal or in canonical radix 16
1014 floating point form.
1015
1016 2010-10-21 Robert Dewar <dewar@adacore.com>
1017
1018 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1019 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1020 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1021 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1022 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1023 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1024 g-sothco.ads, make.adb: Minor reformatting
1025
1026 2010-10-21 Vincent Celier <celier@adacore.com>
1027
1028 * vms_data.ads: Add new qualifiers /SRC_INFO= and
1029 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1030 Correct qualifier /SRC_INFO= for GNAT MAKE
1031
1032 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1033
1034 * exp_aggr.adb (Flatten): An association for a subtype may be an
1035 expanded name.
1036 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1037 left-hand side if the expression is.
1038 (Is_Safe_Index): new predicate
1039 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1040 generated Rep_To_Pos function is a Pure_Function.
1041
1042 2010-10-21 Robert Dewar <dewar@adacore.com>
1043
1044 * gnat_rm.texi: Document Invariant pragma.
1045
1046 2010-10-21 Javier Miranda <miranda@adacore.com>
1047
1048 * exp_ch5.adb: Update comment.
1049
1050 2010-10-21 Robert Dewar <dewar@adacore.com>
1051
1052 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1053 for interfaces, since invariants are not allowed on interfaces in any
1054 case.
1055
1056 2010-10-21 Javier Miranda <miranda@adacore.com>
1057
1058 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1059 node with a range expression ensure that its evaluation will not have
1060 side effects.
1061 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1062 unchecked conversion node generated to handle assignment of private
1063 types. Required to allow climbing the subtree if Insert_Action is
1064 invoked later.
1065
1066 2010-10-21 Robert Dewar <dewar@adacore.com>
1067
1068 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1069 aspect clause presence terminating the type definition.
1070
1071 2010-10-21 Robert Dewar <dewar@adacore.com>
1072
1073 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1074 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1075 reformatting.
1076 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1077
1078 2010-10-21 Geert Bosch <bosch@adacore.com>
1079
1080 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1081
1082 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1083
1084 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1085 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1086 * expander.adb: Call Expand_Qualified_Expression.
1087 * par.adb: New procedure P_Quantified_Expression. Make
1088 P_Loop_Parameter_Specification global for use in quantified expressions.
1089 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1090 version < Ada2012.
1091 * par-ch4.adb: New procedure P_Quantified_Expression.
1092 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1093 * scans.adb, scans.ads: Introduce token Some. For now leave as
1094 unreserved.
1095 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1096 treat Some as a regular identifier.
1097 * sem.adb: Call Analyze_Quantified_Expression.
1098 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1099 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1100 in quantified expressions.
1101 * sem_res.adb: New procedure Resolve_Qualified_Expression.
1102 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1103 * snames.ads-tmpl: New name Some.
1104 * sprint.adb: Output quantified_expression.
1105
1106 2010-10-19 Robert Dewar <dewar@adacore.com>
1107
1108 * a-exexda.adb: Minor reformatting
1109 Minor code reorganization.
1110
1111 2010-10-19 Robert Dewar <dewar@adacore.com>
1112
1113 * sem_eval.adb: Minor reformatting.
1114
1115 2010-10-19 Tristan Gingold <gingold@adacore.com>
1116
1117 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1118 Expand_Intrinsic_Call if the function is intrinsic.
1119 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1120 binary operator on the unsigned_quadword record.
1121 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1122
1123 2010-10-19 Geert Bosch <bosch@adacore.com>
1124
1125 * gnat_rm.texi (pragma Float_Representation): Fix typo.
1126
1127 2010-10-19 Arnaud Charlet <charlet@adacore.com>
1128
1129 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1130 * fe.h (Exception_Extra_Info): Declare.
1131 * usage.adb (usage): Add -gnateE doc.
1132 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1133 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1134 * gnat_ugn.texi: Document -gnateE switch.
1135 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1136 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1137 (Raise_Constraint_Error_Msg): Ditto.
1138 (Image): New helper function.
1139 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1140 detailed exception information.
1141 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1142 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1143 * opt.ads (Exception_Extra_Info): New flag.
1144 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1145 * gcc-interface/utils2.c (build_call_raise_range,
1146 build_call_raise_column): New functions.
1147 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1148 build_call_raise_range, build_call_raise_column): Declare.
1149 gcc-interface/trans.c (build_raise_check): New function.
1150 (gigi): Initialize gnat_raise_decls_ext.
1151 (gnat_to_gnu): Add initial support for -gnateE switch.
1152 * gcc-interface/Make-lang.in: Update dependencies.
1153
1154 2010-10-19 Geert Bosch <bosch@adacore.com>
1155
1156 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1157 symmetric.
1158
1159 2010-10-19 Robert Dewar <dewar@adacore.com>
1160
1161 * atree.h (Field29): Fix incorrect definition.
1162 * einfo.adb (Invariant_Procedure): New attribute
1163 (Has_Invariants): New flag
1164 (Has_Inheritable_Invariants): New flag
1165 (OK_To_Reference): New flag
1166 Minor code reorganization (use Next_Rep_Item function)
1167 * einfo.ads (Invariant_Procedure): New attribute
1168 (Has_Invariants): New flag
1169 (Has_Inheritable_Invariants): New flag
1170 (OK_To_Reference): New flag
1171 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1172 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1173 conversion. Minor reformatting.
1174 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1175 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1176 * par-prag.adb: Add dummy entry for pragma Invariant.
1177 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1178 (Analyze_Aspect_Specification): Add support for Invariant aspect
1179 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1180 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1181 (Process_Full_View): Deal with invariants, building invariant procedure
1182 Minor reformatting
1183 * sem_ch6.adb (Process_PPCs): Add processing of invariants
1184 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1185 procedures.
1186 * sem_prag.adb: Implement pragma Invariant.
1187 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1188 OK_To_Reference set.
1189 * sem_warn.adb (List_Inherited_Aspects): New name for
1190 List_Inherited_Pre_Post.
1191 * snames.ads-tmpl: Add entries for pragma Invariant.
1192 * treepr.adb (Print_Entity_Information): Add handling of Field29.
1193 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1194
1195 2010-10-19 Javier Miranda <miranda@adacore.com>
1196
1197 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1198 membership test.
1199
1200 2010-10-19 Bob Duff <duff@adacore.com>
1201
1202 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1203 attribute.
1204 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1205 Attribute_Max_Alignment_For_Allocation to the case statement.
1206 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1207 Attribute_Max_Alignment_For_Allocation): New attribute name.
1208
1209 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1210
1211 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1212 parameterless function appears syntactically as an explicit dereference.
1213
1214 2010-10-19 Thomas Quinot <quinot@adacore.com>
1215
1216 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1217 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1218
1219 2010-10-19 Thomas Quinot <quinot@adacore.com>
1220
1221 * sem_util.adb (Collect_Primitive_Operations): A function with an
1222 anonymous access result designating T is a primitive operation of T.
1223
1224 2010-10-19 Tristan Gingold <gingold@adacore.com>
1225
1226 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1227
1228 2010-10-19 Tristan Gingold <gingold@adacore.com>
1229
1230 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1231 evaluated on VMS.
1232
1233 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1234
1235 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1236 an instantiation of a renaming of the implicit generic child that
1237 appears within an instance of its parent.
1238
1239 2010-10-19 Thomas Quinot <quinot@adacore.com>
1240
1241 * exp_ch9.adb: Minor reformatting.
1242 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1243 (Referenced_Object): Remove unused entity attribute.
1244 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1245 tagged types, including synchronous ones, so can't use field15 which is
1246 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1247 protected types.
1248 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1249 against Concurrent_Types (we must handle the case of a RACW designating
1250 a class-wide private synchronous type).
1251 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1252 really want the former.
1253
1254 2010-10-19 Bob Duff <duff@adacore.com>
1255
1256 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1257
1258 2010-10-19 Javier Miranda <miranda@adacore.com>
1259
1260 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1261 for N_Range nodes.
1262
1263 2010-10-19 Thomas Quinot <quinot@adacore.com>
1264
1265 * einfo.ads, atree.ads: Minor comment fixes.
1266
1267 2010-10-18 Bob Duff <duff@adacore.com>
1268
1269 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1270 correct, and to be in a more convenient order.
1271 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1272 recording the Default_Storage_Pool for a parent library unit.
1273 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1274 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1275 Default_Storage_Pool pragma.
1276 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1277 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1278 pragma.
1279 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1280 account any Default_Storage_Pool pragma that applies. We have to do
1281 this at the freezing point, because up until that point, a Storage_Pool
1282 or Storage_Size clause could occur, which should override the
1283 Default_Storage_Pool.
1284 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1285 during semantics.
1286 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1287 Default_Storage_Pool information.
1288 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1289 currently-applicable Default_Storage_Pool pragmas.
1290 * opt.adb: Save/restore the globals as appropriate.
1291 * snames.ads-tmpl (Name_Default_Storage_Pool,
1292 Pragma_Default_Storage_Pool): New pragma name.
1293
1294 2010-10-18 Vincent Celier <celier@adacore.com>
1295
1296 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1297 case.
1298
1299 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1300
1301 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1302 library level, the pre/postconditions must be treated as global
1303 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1304 * freeze.adb (Freeze_Expression): If the expression is at library level
1305 there is no enclosing record to check.
1306
1307 2010-10-18 Javier Miranda <miranda@adacore.com>
1308
1309 * sem_ch3.ads (Find_Type_Name): Add documentation.
1310 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1311 propagation of the class-wide entity is now done by routine
1312 Find_Type_Name to factorize this code.
1313 (Analyze_Private_Extension_Declaration): Handle private type that
1314 completes an incomplete type.
1315 (Tag_Mismatch): Add error message for tag mismatch in a private type
1316 declaration that completes an incomplete type.
1317 (Find_Type_Name): Handle completion of incomplete type by means of
1318 a private declaration. Generate an error if a tagged incomplete type
1319 is completed by an untagged private type.
1320 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1321 incomplete type.
1322 * einfo.ads (Full_View): Add documentation.
1323
1324 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1325
1326 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1327 a renaming, generate a reference for it before analyzing the renamed
1328 entity, to prevent spurious warnings.
1329
1330 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1331
1332 * adaint.c (__gnat_pthread_setaffinity_np,
1333 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1334 * s-osinte-linux.ads (pthread_setaffinity_np,
1335 pthread_attr_setaffinity_np): Remove use of wrappers.
1336 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1337 whether the affinity functionality is available in the OS.
1338 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1339 are defined.
1340
1341 2010-10-18 Robert Dewar <dewar@adacore.com>
1342
1343 * einfo.ads, einfo.adb: Minor reformatting.
1344 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1345
1346 2010-10-18 Emmanuel Briot <briot@adacore.com>
1347
1348 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1349 or equal, we output an equal every time.
1350
1351 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1352
1353 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1354 member when pre/post conditions are present.
1355 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1356 includes an index parameter, and the name of the enclosed entry call is
1357 an indexed component.
1358
1359 2010-10-18 Robert Dewar <dewar@adacore.com>
1360
1361 * einfo.ads, einfo.adb: Minor reformatting.
1362
1363 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1364
1365 * adaint.c (__gnat_pthread_setaffinity_np,
1366 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1367 availability of the underlying OS functionality before calling.
1368 * s-osinte-linux.ads (pthread_setaffinity_np,
1369 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1370 to perform a check of its availability.
1371 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1372 the affinity functionality is available in the OS. Now done in a wrapper
1373 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1374 * gcc-interface/Make-lang.in: Update dependencies.
1375
1376 2010-10-18 Robert Dewar <dewar@adacore.com>
1377
1378 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1379 standard field).
1380
1381 2010-10-18 Robert Dewar <dewar@adacore.com>
1382
1383 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1384 Minor reformatting.
1385
1386 2010-10-18 Robert Dewar <dewar@adacore.com>
1387
1388 * exp_strm.adb (Build_Elementary_Input_Call): Check
1389 No_Default_Stream_Attributes.
1390 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1391 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1392 Put restriction No_Allocators_After_Elaboration in alpha order
1393
1394 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1395
1396 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1397 to the affinity when expanding the task declaration.
1398 (Make_Task_Create_Call): Add the affinity parameter to the call to
1399 create task.
1400 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1401 taking into account the case when it applies to a subprogram (only for
1402 main and with static expression) or to a task.
1403 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1404 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1405 used by the expander for handling the affinity parameter when creating
1406 a task.
1407 (Pragma_Id): Add Pragma_CPU as a valid one.
1408 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1409 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1410 RE_Unspecified_CPU visible.
1411 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1412 two subprograms to set/get the flag indicating whether there is a
1413 pragma CPU which applies to the entity.
1414 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1415 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1416 of the affinity associated to the main subprogram (if any).
1417 Default_Main_CPU is used when no affinity is set. Subprograms
1418 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1419 subprogram.
1420 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1421 value of the affinity of the main subprogram.
1422 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1423 the M line).
1424 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1425 main subprogram in the M (main) line using C=XX.
1426 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1427 Load_Unit): Add new field Main_CPU.
1428 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1429 the affinity of the main subprogram to the run time.
1430 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1431 affinity.
1432 (Unspecified_CPU): Add this constant to identify the case when no
1433 affinity is set for tasks.
1434 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1435 CPU in the common part of the ATCB.
1436 (Initialize): Store the value coming from pragma CPU (for the
1437 environment task) in the common part of the ATCB.
1438 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1439 by pragma CPU to the ATCB.
1440 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1441 specified by pragma CPU to the ATCB.
1442 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1443 parameter to the call to Initialize_ATCB.
1444 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1445 to include the task affinity before creation. Additionally, the
1446 affinity selected with Task_Info is also enforced changing the
1447 attributes at task creation time, instead of changing it after creation.
1448 (Initialize): Change the affinity of the environment task if required
1449 by a pragma CPU.
1450 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1451 wrapper to check whether the function is available or not, use a weak
1452 symbol.
1453 (pthread_attr_setaffinity_np): Add the import of this function which is
1454 used to change the affinity in the attributes used to create a thread.
1455 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1456 It was used to check whether the pthread function was available or not,
1457 but the use of a weak symbol handles this situation in a cleaner way.
1458 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1459 tasks (including the environment task) if required by a pragma CPU.
1460 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1461 (including the environment task) if required by a pragma CPU.
1462 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1463 of tasks (including the environment task) if required by a pragma CPU.
1464 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1465 will pass the affinity of the environment task.
1466
1467 2010-10-18 Javier Miranda <miranda@adacore.com>
1468
1469 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1470
1471 2010-10-18 Vincent Celier <celier@adacore.com>
1472
1473 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1474
1475 2010-10-18 Tristan Gingold <gingold@adacore.com>
1476
1477 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1478 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1479 stack top if known.
1480 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1481 so that Pri_Stack_Info.Limit can be set and used.
1482
1483 2010-10-18 Robert Dewar <dewar@adacore.com>
1484
1485 * einfo.ads: Minor reformatting.
1486 * sem_res.adb (Resolve_Allocator): Add test for violating
1487 No_Anonymous_Allocators.
1488
1489 2010-10-18 Robert Dewar <dewar@adacore.com>
1490
1491 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1492
1493 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1494
1495 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1496 component, we generate a reference to the ultimate prefix when it is an
1497 entity name. We must place the reference on the identifier for that
1498 prefix, and not on the operand itself, to prevent spurious extra
1499 references in the ali file.
1500
1501 2010-10-18 Vincent Celier <celier@adacore.com>
1502
1503 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1504
1505 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1506
1507 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1508 families. Denotes a procedure that performs pre/postcondition checks
1509 and then performs the entry call.
1510 * sem_res.adb (Resolve_Entry_Call): If the entry has
1511 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1512 entry.
1513 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1514 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1515 Build_PPC_Wrapper for all entries in task and protected definitions.
1516
1517 2010-10-18 Tristan Gingold <gingold@adacore.com>
1518
1519 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1520 Implement stack limitation on VMS.
1521 Minor reformatting.
1522
1523 2010-10-18 Vincent Celier <celier@adacore.com>
1524
1525 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1526 source record has been initialized.
1527
1528 2010-10-18 Robert Dewar <dewar@adacore.com>
1529
1530 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1531 synthesized attribute routine and was in the wrong place).
1532
1533 2010-10-18 Tristan Gingold <gingold@adacore.com>
1534
1535 * init.c: Indentation, and minor changes to more closely follow GNU
1536 style rules. Make more variable statics.
1537
1538 2010-10-18 Vincent Celier <celier@adacore.com>
1539
1540 * prj.adb (Is_Compilable): On first call for a source, cache value in
1541 component Compilable.
1542 * prj.ads (Source_Data): New component Compilable, to cache the value
1543 returned by function Is_Compilable.
1544
1545 2010-10-18 Vincent Celier <celier@adacore.com>
1546
1547 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1548 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1549 Ignore.
1550 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1551 (Get_Directories): Call Find_Source_Dirs with the string list
1552 indicated by attribute Ignore_Source_Sub_Dirs.
1553 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1554
1555 2010-10-18 Javier Miranda <miranda@adacore.com>
1556
1557 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1558 attribute.
1559 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1560 (Set_Direct_Primitive_Operations): Renaming of old
1561 Set_Primitive_Operations. Update documentation
1562 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1563 Replace occurrences of Set_Primitive_Operations by
1564 Set_Direct_Primitive_Operations.
1565 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1566 concurrent types.
1567 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1568 process primitives of concurrent types.
1569 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1570
1571 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1572
1573 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1574 (Expand_Protected_Object_Reference): Likewise.
1575 * sem_attr.adb (Resolve_Attribute): Likewise.
1576 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1577 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1578
1579 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1580
1581 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1582
1583 2010-10-18 Robert Dewar <dewar@adacore.com>
1584
1585 * aspects.ads, aspects.adb: Add entries for aspects
1586 Read/Write/Input/Output.
1587 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1588 handling aspects Read/Write/Input/Output.
1589
1590 2010-10-18 Robert Dewar <dewar@adacore.com>
1591
1592 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1593 use of pragma Unmodified unless we are sure this is a modification.
1594
1595 2010-10-18 Tristan Gingold <gingold@adacore.com>
1596
1597 * sysdep.c: Add __gnat_get_stack_bounds.
1598 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1599
1600 2010-10-18 Robert Dewar <dewar@adacore.com>
1601
1602 * a-assert.ads: Fix bad name in header.
1603 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1604 reformatting.
1605 * exp_aggr.adb: Fix typo in comment.
1606
1607 2010-10-18 Javier Miranda <miranda@adacore.com>
1608
1609 * exp_util.adb (Side_Effect_Free): Code clean up.
1610
1611 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1612
1613 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1614 Is_Primitive_Operator. When ending the scope of a use package scope, a
1615 primitive operator remains in use if the base type has a current use
1616 (type) clause.
1617
1618 2010-10-18 Javier Miranda <miranda@adacore.com>
1619
1620 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1621 private types whose full-view is a task type.
1622 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1623 private types whose full-view is a task type.
1624 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1625 function Nearest_Dynamic_Scope which provides the needed functionality.
1626
1627 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1628
1629 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1630 variable with an address clause in codepeer mode.
1631
1632 2010-10-18 Robert Dewar <dewar@adacore.com>
1633
1634 * g-trasym-vms-ia64.adb: Minor reformatting.
1635
1636 2010-10-18 Thomas Quinot <quinot@adacore.com>
1637
1638 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1639 the other isn't, return False early.
1640
1641 2010-10-18 Ed Falis <falis@adacore.com>
1642
1643 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1644 VxWorks Cert.
1645
1646 2010-10-18 Robert Dewar <dewar@adacore.com>
1647
1648 * sem_disp.ads: Minor comment update.
1649
1650 2010-10-18 Robert Dewar <dewar@adacore.com>
1651
1652 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1653 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1654 visibility analysis of precondition and postcondition pragmas (and
1655 Pre/Post aspects).
1656 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1657 aspects.
1658 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1659 of pre/post conditions (no longer needed).
1660 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1661 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1662 argument, since this is now done in the main processing for
1663 pre/postcondition pragmas when they are first seen.
1664 (Chain_PPC): Pre'Class and Post'Class now handled properly
1665 (Chain_PPC): Handle Pre/Post aspects for entries
1666 (Check_Precondition_Postcondition): Handle entry declaration case
1667 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1668 (Check_Precondition_Postcondition): Preanalyze message argument if
1669 present.
1670
1671 2010-10-18 Robert Dewar <dewar@adacore.com>
1672
1673 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1674
1675 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1676
1677 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1678 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1679 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1680 the INDIRECT_REF node built for objects used by reference.
1681 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1682 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1683 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1684
1685 2010-10-13 Richard Henderson <rth@redhat.com>
1686
1687 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1688 build_personality_function.
1689 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1690 use__gnat_personality_{v,sj}0.
1691
1692 2010-10-12 Vincent Celier <celier@adacore.com>
1693
1694 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1695 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1696 of iterating through all sources of the project.
1697 * prj.adb (Free): Reset hash table Source_Files_HT
1698 (Reset): Reset hash table Source_Files_HT
1699 * prj.ads (Source_Data): New component Next_With_File_Name
1700 (Source_Files_Htable): New hash table
1701 (Project_Tree_Data): New component Source_Files_HT
1702
1703 2010-10-12 Tristan Gingold <gingold@adacore.com>
1704
1705 * g-trasym-vms-ia64.adb: Use the documented API.
1706 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1707 * gcc-interface/Make-lang.in: Update dependencies.
1708
1709 2010-10-12 Thomas Quinot <quinot@adacore.com>
1710
1711 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1712 PolyORB case): Request is now a controlled type: we can declare the
1713 request on the stack, and we do not need explicit cleanup actions
1714 anymore.
1715
1716 2010-10-12 Bob Duff <duff@adacore.com>
1717
1718 * s-rident.ads (Profile_Info): This variable is now constant.
1719
1720 2010-10-12 Emmanuel Briot <briot@adacore.com>
1721
1722 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1723 parameter Separator for backward compatibility.
1724
1725 2010-10-12 Robert Dewar <dewar@adacore.com>
1726
1727 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1728
1729 2010-10-12 Vincent Celier <celier@adacore.com>
1730
1731 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1732
1733 2010-10-12 Vincent Celier <celier@adacore.com>
1734
1735 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1736 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1737
1738 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1739
1740 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1741 using 'Access.
1742
1743 2010-10-12 Robert Dewar <dewar@adacore.com>
1744
1745 * debug.adb: Add comment.
1746 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1747
1748 2010-10-12 Javier Miranda <miranda@adacore.com>
1749
1750 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1751 declarations that were previously generated by Remove_Side_Effects.
1752
1753 2010-10-12 Emmanuel Briot <briot@adacore.com>
1754
1755 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1756 "???" when an entity is defined as "*" in the ALI file.
1757 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1758 Minor reformatting.
1759
1760 2010-10-12 Emmanuel Briot <briot@adacore.com>
1761
1762 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1763 Set_Usage): New subprograms.
1764 (Define_Switch): Change profile to add support for help messages and
1765 long switches.
1766
1767 2010-10-12 Javier Miranda <miranda@adacore.com>
1768
1769 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1770 attribute Overridden_Operation in predefined dispatching primitives.
1771
1772 2010-10-12 Emmanuel Briot <briot@adacore.com>
1773
1774 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1775 command line configuration exists and we specify an invalid section.
1776
1777 2010-10-12 Robert Dewar <dewar@adacore.com>
1778
1779 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1780 exception messages are generated.
1781 (Process_PPCs): Fix error in inheriting Pre'Class.
1782
1783 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1784
1785 * gnatcmd.adb: Use response file for GNATstack.
1786 (Check_Files): Pass the list of ci files for GNATstack using a response
1787 file to avoid problems with command line length.
1788 Factor out the code handling response file into a new procedure named
1789 Add_To_Response_File.
1790
1791 2010-10-12 Vincent Celier <celier@adacore.com>
1792
1793 * debug.adb: For gnatmake, document the meaning of -dm
1794 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1795 simultaneous compilations.
1796 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1797 simultaneous compilations as the number of processors.
1798
1799 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1800
1801 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1802 instead of options.h.
1803
1804 2010-10-12 Robert Dewar <dewar@adacore.com>
1805
1806 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1807 postcondition pragmas.
1808
1809 2010-10-12 Robert Dewar <dewar@adacore.com>
1810
1811 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1812 at.
1813 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1814 message if new switch Exception_Locations_Suppressed is set.
1815 (Expand_Pragma_Check): Revised wording for default message for case
1816 of precondition or postcondition.
1817 * namet.ads, namet.adb (Build_Location_String): New procedure.
1818 * opt.ads (List_Inherited_Pre_Post): New flag.
1819 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1820 list inherited pre/post aspects.
1821 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1822 messages for precondition/postcondition cases.
1823 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1824 if flag List_Inherited_Pre_Post is set True.
1825 (Process_PPCs): Add initial handling for inherited preconditions
1826 (List_Inherited_Pre_Post_Aspects): New procedure
1827 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1828 * sem_disp.adb (Inherited_Subprograms): New function
1829 * sem_disp.ads (Inherited_Subprograms): New function
1830 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1831 pre/postcondition.
1832 (Check_Precondition_Postcondition): Check for inherited aspects
1833 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1834 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1835 * sinput.ads, sinput.adb (Build_Location_String): New function.
1836 * usage.adb: Add line for -gnatw.l/-gnatw.L
1837
1838 2010-10-12 Javier Miranda <miranda@adacore.com>
1839
1840 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1841
1842 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1843
1844 * xref_lib.adb: Add handling of j/J letters.
1845
1846 2010-10-12 Pascal Obry <obry@adacore.com>
1847
1848 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1849
1850 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1851
1852 * make.adb (Globalize): New procedure.
1853 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1854 (Gnatmake): Call Globalize when needed.
1855 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1856 pragmas in CodePeer mode.
1857 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1858 to generate simpler and consistent code.
1859
1860 2010-10-12 Bob Duff <duff@adacore.com>
1861
1862 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1863 can cause side effects to be duplicated.
1864
1865 2010-10-12 Robert Dewar <dewar@adacore.com>
1866
1867 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1868
1869 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1870
1871 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1872 abstract inherited private operation in CodePeer mode.
1873
1874 2010-10-12 Thomas Quinot <quinot@adacore.com>
1875
1876 * a-exetim.ads: Minor reformatting.
1877 * g-socket.ads (Port_Type): Better definition corresponding to the
1878 actual standard range.
1879 * exp_ch5.adb: Add comment.
1880 * sem_aux.adb: Minor reformatting.
1881
1882 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1883
1884 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1885 string_literal_subtype so that a new one can be constructed in the
1886 scope of the instance.
1887
1888 2010-10-12 Robert Dewar <dewar@adacore.com>
1889
1890 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1891 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1892 * par-prag.adb (P_Pragma, case Suppress_All): Set
1893 Has_Pragma_Suppress_All flag.
1894 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1895 (Analyze_Pragma, case Suppress_All): Remove placement check
1896 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1897 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1898 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1899 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1900 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1901 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1902
1903 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1904
1905 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1906
1907 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1908
1909 * a-exetim-default.ads, a-exetim-posix.adb: New.
1910 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1911 POSIX Realtime support to implement CPU clocks.
1912 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1913 to the tasking library.
1914 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1915 available for shared libraries.
1916 * gcc-interface/Make-lang.in: Update dependencies.
1917
1918 2010-10-12 Robert Dewar <dewar@adacore.com>
1919
1920 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1921 apart expressions with AND THEN clauses into separate pragmas.
1922 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1923
1924 2010-10-12 Robert Dewar <dewar@adacore.com>
1925
1926 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1927 aspects.
1928 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1929 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1930 aspects.
1931 (Check_Optional_Identifier): Handle case of direct arguments
1932 (Chain_PPC): Test for abstract case, giving appropriate messages
1933 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1934
1935 2010-10-12 Robert Dewar <dewar@adacore.com>
1936
1937 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1938 END RECORD.
1939 * sem_attr.adb (Eval_Attribute): Code clean up.
1940
1941 2010-10-12 Robert Dewar <dewar@adacore.com>
1942
1943 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1944 messages and recovery for case of out of order Abstract/Tagged/Private
1945 keywords.
1946 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1947 for case of out of order Abstract/Tagged/Private keywords.
1948
1949 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1950
1951 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1952 where child unit is main unit of compilation.
1953
1954 2010-10-12 Robert Dewar <dewar@adacore.com>
1955
1956 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1957 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1958 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1959 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1960 aspect specifications.
1961 Recognize aspect specifications for all cases
1962 * par.adb: Recognize aspect specifications for all cases
1963 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1964 specifications.
1965 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1966 generic actual types (was missing some guards before).
1967 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1968 generated object
1969 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1970
1971 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1972
1973 * usage.adb (usage): Adjust line for -gnatn switch.
1974
1975 2010-10-12 Robert Dewar <dewar@adacore.com>
1976
1977 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1978 spec case.
1979
1980 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1981
1982 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1983 declaration of a null procedure resolve the types of the profile of the
1984 generated null body now.
1985
1986 2010-10-11 Robert Dewar <dewar@adacore.com>
1987
1988 * debug.adb: Remove d.A flag to delay address clause (not needed any
1989 more). Add d.A flag to enable tree read/write of aspect spec hash table
1990 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1991 clause.
1992 (Rep_Item_Too_Late): No need for special processing for delayed rep
1993 items (and it caused difficulties in the address case).
1994 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1995 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1996
1997 2010-10-11 Pat Rogers <rogers@adacore.com>
1998
1999 * gnat_ugn.texi: Minor editing.
2000
2001 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2002
2003 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
2004
2005 2010-10-11 Robert Dewar <dewar@adacore.com>
2006
2007 * g-htable.ads (Get_First): New procedural version for Simple_HTable
2008 (Get_Next): New procedural version for Simple_HTable
2009 * s-htable.adb (Get_First): New procedural version for Simple_HTable
2010 (Get_Next): New procedural version for Simple_HTable
2011 * s-htable.ads (Get_First): New procedural version for Simple_HTable
2012 (Get_Next): New procedural version for Simple_HTable
2013
2014 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2015
2016 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2017 variant part, use the association list of the subaggregate, which
2018 already includes the values of the needed discriminants.
2019
2020 2010-10-11 Robert Dewar <dewar@adacore.com>
2021
2022 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2023 (Tree_Write): New procedure.
2024 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2025 nodes.
2026 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2027 * debug.adb: Add debug flag gnatd.A
2028 * einfo.adb (Has_Delayed_Aspects): New flag
2029 (Get_Rep_Item_For_Entity): New function
2030 * einfo.ads (Has_Delayed_Aspects): New flag
2031 (Get_Rep_Item_For_Entity): New function
2032 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2033 tree.
2034 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2035 sequence for Freeze_Entity.
2036 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2037 ptr. All calls are changed to this new interface.
2038 (Freeze_And_Append): Same change
2039 (Freeze_Entity): Evaluate deferred aspects
2040 * sem_attr.adb: New calling sequence for Freeze_Entity
2041 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2042 when we are in spec expression preanalysis mode.
2043 * sem_ch10.adb: New calling sequence for Freeze_Entity
2044 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2045 flag Has_Aspects applies to all nodes (no need to save aspects).
2046 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2047 flag Has_Aspects applies to all nodes (no need to save aspects).
2048 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2049 accomodate delaying aspect evaluation to the freeze point.
2050 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2051 accomodate delayed aspects.
2052 (Rep_Item_Too_Late): Deal with delayed aspects case
2053 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2054 aspects.
2055 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2056 actual types are properly frozen (this is needed because of the new
2057 check in Eval_Attribute that declines to evaluate attributes
2058 for unfrozen types).
2059 Simplify analysis of aspect specifications now that the flag
2060 Has_Aspects applies to all nodes (no need to save aspects).
2061 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2062 aspects.
2063 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2064 flag Has_Aspects applies to all nodes (no need to save aspects).
2065 New calling sequence for Freeze_Entity.
2066 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2067 specifications now that the flag Has_Aspects applies to all nodes
2068 (no need to save aspects).
2069 New calling sequence for Freeze_Entity
2070 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2071 Get_Rep_Item_For_Entity
2072 (Get_Pragma_Arg): Moved to Sinfo
2073 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2074 (Is_Delayed_Aspect): New flag
2075 (Next_Rep_Item): Document use for aspects
2076 (Get_Pragma_Arg): Moved here from Sem_Prag
2077 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2078 is output and removes semicolon (simplifies interface).
2079 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2080 applies to any node.
2081 * tree_gen.adb: Write contents of Aspect_Specifications hash table
2082 * tree_in.adb: Read and initialize Aspect_Specifications hash table
2083 * treepr.adb (Print_Node): Print Has_Aspects flag
2084 (Print_Node): Print Aspect_Specifications in Has_Aspects set
2085 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2086
2087 2010-10-11 Robert Dewar <dewar@adacore.com>
2088
2089 * aspects.ads, aspects.adb: Major revision of this package for 2nd
2090 stage of aspects implementation.
2091 * gcc-interface/Make-lang.in: Add entry for aspects.o
2092 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2093 * par-ch13.adb (Aspect_Specifications_Present): New function
2094 (P_Aspect_Specifications): New procedure
2095 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2096 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2097 (P_Identifier_Declarations): Handle aspect specifications
2098 (P_Component_Items): Handle aspect specifications
2099 (P_Subtype_Declaration): Handle aspect specifications
2100 * par-ch6.adb (P_Subprogram): Handle aspect specifications
2101 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2102 * par.adb (Aspect_Specifications_Present): New function
2103 (P_Aspect_Specifications): New procedure
2104 * sem.adb (Analyze_Full_Type_Declaration): New name for
2105 Analyze_Type_Declaration.
2106 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2107 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2108 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2109 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2110 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2111 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2112 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2113 Analyze_Type_Declaration.
2114 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2115 specifications.
2116 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2117 specifications.
2118 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2119 (Analyze_Formal_Package_Declaration): Handle aspect specifications
2120 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2121 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2122 (Analyze_Formal_Type_Declaration): Handle aspect specifications
2123 (Analyze_Generic_Package_Declaration): Handle aspect specifications
2124 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2125 (Analyze_Package_Instantiation): Handle aspect specifications
2126 (Analyze_Subprogram_Instantiation): Handle aspect specifications
2127 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2128 _Declaration).
2129 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2130 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2131 (Duplicate_Clause): New function, calls to this function are added to
2132 processing for all aspects.
2133 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2134 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2135 Analyze_Type_Declaration.
2136 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2137 Analyze_Type_Declaration.
2138 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2139 specifications.
2140 (Analyze_Subprogram_Declaration): Analyze aspect specifications
2141 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2142 specifications.
2143 (Analyze_Private_Type_Declaration): Analyze aspect specifications
2144 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2145 specifications.
2146 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2147 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2148 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2149 (Analyze_Single_Task_Declaration): Analyze aspect specifications
2150 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2151 (Analyze_Task_Type_Declaration): Analyze aspect specifications
2152 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2153 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2154 _Declaration).
2155 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2156 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2157 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2158 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2159 have to generate unnecessary pragma argument associations (this matches
2160 the doc).
2161 Throughout do changes to accomodate aspect specifications, including
2162 specializing messages, handling the case of not going through all
2163 homonyms, and allowing for cancellation.
2164 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2165 (Aspect_Cancel): New flag
2166 (From_Aspect_Specification): New flag
2167 (First_Aspect): Removed flag
2168 (Last_Aspect): Removed flag
2169 * sprint.adb (Sprint_Aspect_Specifications): New procedure
2170 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2171
2172 2010-10-11 Bob Duff <duff@adacore.com>
2173
2174 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2175 they match in Ada 95, 2005, and 2012 modes, in the case where the
2176 language didn't change. Same thing for the run-time exception message.
2177
2178 2010-10-11 Javier Miranda <miranda@adacore.com>
2179
2180 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2181
2182 2010-10-11 Robert Dewar <dewar@adacore.com>
2183
2184 * s-htable.adb: Minor reformatting.
2185
2186 2010-10-11 Javier Miranda <miranda@adacore.com>
2187
2188 * debug.adb: Update comment.
2189
2190 2010-10-11 Vincent Celier <celier@adacore.com>
2191
2192 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2193 unconditionally as for "gnat make" the projects are not processed in
2194 the GNAT driver.
2195
2196 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2197
2198 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2199 suppress semantic analysis of the body when inlining, prior to
2200 verifying that the body does not have a with_clause on a descendant
2201 unit.
2202 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2203 with_clause on a descendant.
2204 (Scope_In_Main_Unit): Simplify.
2205
2206 2010-10-11 Robert Dewar <dewar@adacore.com>
2207
2208 * exp_ch6.adb, freeze.adb: Minor reformatting.
2209
2210 2010-10-11 Vincent Celier <celier@adacore.com>
2211
2212 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2213 shared library projects to import projects that are not shared library
2214 projects.
2215
2216 2010-10-11 Javier Miranda <miranda@adacore.com>
2217
2218 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2219
2220 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2221
2222 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2223 Suppress/Unsuppress pragmas in codepeer mode on user code.
2224
2225 2010-10-11 Javier Miranda <miranda@adacore.com>
2226
2227 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2228 tag check in case of dispatching call through "=".
2229
2230 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2231
2232 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2233 type is legal in the profile of any basic declaration.
2234 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2235 incomplete type, including a limited view of a type, is legal in the
2236 profile of any subprogram declaration.
2237 If the type is tagged, its use is also legal in a body.
2238 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2239 item if misplaced.
2240 (Install_Limited_Withed_Unit): Refine legality checks when both the
2241 limited and the non-limited view of a package are visible in the
2242 context of a unit.
2243 If this is not an error case, the limited view is ignored.
2244 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2245 access to subprogram declarations
2246
2247 2010-10-11 Robert Dewar <dewar@adacore.com>
2248
2249 * exp_ch6.adb: Code clean up.
2250 * exp_util.adb: Minor reformatting.
2251
2252 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2253
2254 * sem_ch3.adb, exp_ch6.adb
2255 (Make_Build_In_Place_Call_In_Anonymous_Context,
2256 Make_Build_In_Place_Call_In_Assignment,
2257 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2258 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2259 restriction.
2260 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2261
2262 2010-10-11 Javier Miranda <miranda@adacore.com>
2263
2264 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2265 class-wide expressions.
2266
2267 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2268
2269 * xr_tabls.adb, sem_res.adb: Minor reformatting
2270
2271 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2272
2273 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2274 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2275 handling of Attribute_Ref. Add missing blanks in some error messages.
2276 (Attribute_Ref, Name_Ref): Declare.
2277 Document 'Ref attribute.
2278
2279 2010-10-11 Robert Dewar <dewar@adacore.com>
2280
2281 * sem_attr.adb: Minor reformatting.
2282
2283 2010-10-11 Javier Miranda <miranda@adacore.com>
2284
2285 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2286 package System.Aux_Dec in VM platforms.
2287
2288 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2289
2290 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2291 Suppress/Unsuppress pragmas in codepeer mode.
2292 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2293 in codepeer mode.
2294 * einfo.ads: Fix typo.
2295
2296 2010-10-11 Emmanuel Briot <briot@adacore.com>
2297
2298 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2299 * prj-nmsc.adb: Minor reformatting.
2300
2301 2010-10-11 Thomas Quinot <quinot@adacore.com>
2302
2303 * sem_attr.adb (Type_Key): Code simplification.
2304
2305 2010-10-11 Tristan Gingold <gingold@adacore.com>
2306
2307 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2308 very large object on VMS.
2309
2310 2010-10-11 Javier Miranda <miranda@adacore.com>
2311
2312 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2313 availability of attribute Instance_Spec.
2314
2315 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2316
2317 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2318 checking syntax only or in ASIS mode.
2319
2320 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2321
2322 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2323 need a freeze node if some type in the profile has one.
2324 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2325 entity has a freeze node, defer elaboration.
2326
2327 2010-10-11 Emmanuel Briot <briot@adacore.com>
2328
2329 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2330 aggregated projects.
2331
2332 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2333
2334 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2335 call.
2336 * sem_ch6.adb: Diagnose additional error condition.
2337
2338 2010-10-11 Bob Duff <duff@adacore.com>
2339
2340 * par.adb (Par): Clarify wording of certain error messages.
2341
2342 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2343
2344 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2345 about nondispatching subprograms to use In_Same_List (reducing use of
2346 Parent links).
2347
2348 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2349
2350 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2351 reference in a static call.
2352
2353 2010-10-11 Steve Baird <baird@adacore.com>
2354
2355 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2356 attribute should always be transformed into a string literal in
2357 Analyze_Attribute.
2358 * par-ch4.adb: Type_Key attribute's type is String; update value of
2359 Is_Parameterless_Attribute constant to reflect this.
2360 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2361 rewrite it as a string literal (attribute value is always known
2362 statically).
2363 * snames.ads-tmpl: Add entries for Type_Key attribute.
2364
2365 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2366
2367 * lib-xref.adb (Output_References): Common handling for objects and
2368 formals of an anonymous access type.
2369
2370 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2371
2372 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2373
2374 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2375
2376 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2377
2378 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2379
2380 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2381 a warning about subprograms of a tagged type not being dispatching,
2382 limit this to cases where the tagged type and the subprogram are
2383 declared within the same declaration list.
2384
2385 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2386
2387 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2388
2389 2010-10-11 Bob Duff <duff@adacore.com>
2390
2391 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2392 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2393 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2394 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2395 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2396 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2397 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2398 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2399 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2400 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2401 instead of Ada_05 (Ada_Version_Type).
2402
2403 2010-10-11 Bob Duff <duff@adacore.com>
2404
2405 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2406 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2407 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2408 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2409 (Ada_Version_Type).
2410
2411 2010-10-11 Javier Miranda <miranda@adacore.com>
2412
2413 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2414 dereference then do not exclude dereferences of access-to-constant
2415 types to handle them as constant view of variables (and hence remove
2416 side effects when required).
2417 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2418 are properly handled.
2419
2420 2010-10-11 Robert Dewar <dewar@adacore.com>
2421
2422 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2423
2424 2010-10-11 Javier Miranda <miranda@adacore.com>
2425
2426 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2427 to exp_ch6.
2428 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2429 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2430 exp_ch6.
2431 (Expand_Simple_Function_Return): Move to exp_ch6.
2432 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2433 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2434
2435 2010-10-11 Robert Dewar <dewar@adacore.com>
2436
2437 * snames.ads-tmpl: Add names for aspects.
2438 * aspects.ads, aspects.adb: New.
2439 * gcc-interface/Make-lang.in: Update dependencies.
2440 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2441
2442 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2443 a task type, it must be replaced with a reference to Self.
2444
2445 2010-10-11 Vincent Celier <celier@adacore.com>
2446
2447 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2448
2449 2010-10-11 Javier Miranda <miranda@adacore.com>
2450
2451 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2452 aggregate bounds.
2453
2454 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2455
2456 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2457 for AI05-0033 in CodePeer mode.
2458
2459 2010-10-11 Robert Dewar <dewar@adacore.com>
2460
2461 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2462 * csinfo.adb: Aspect_Specifications is a new special field
2463 * einfo.adb (Flag3): New unused flag
2464 * exp_util.adb (Insert_Actions): Add processing for
2465 N_Aspect_Specification.
2466 * sem.adb: Add entry for N_Aspect_Specification.
2467 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2468 (Has_Aspect_Specifications): New flag
2469 (Permits_Aspect_Specifications): New function
2470 (Aspect_Specifications): New function
2471 (Set_Aspect_Specifications): New procedure
2472 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2473 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2474 * treepr.adb (Flag3): New flag to be listed
2475
2476 2010-10-11 Vincent Celier <celier@adacore.com>
2477
2478 * adaint.c: Minor reformatting.
2479
2480 2010-10-11 Robert Dewar <dewar@adacore.com>
2481
2482 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2483
2484 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2485
2486 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2487 invisible in an instantiation, and both the formal and the actual are
2488 private extensions of the same type, look for the desired component in
2489 the proper view of the parent type.
2490
2491 2010-10-11 Vincent Celier <celier@adacore.com>
2492
2493 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2494 AIX, Tru64, Darwin, IRIX and HP-UX.
2495
2496 2010-10-11 Robert Dewar <dewar@adacore.com>
2497
2498 * a-textio.adb: Minor reformatting
2499
2500 2010-10-11 Robert Dewar <dewar@adacore.com>
2501
2502 * a-suesen.ads, a-suenst.ads,
2503 a-suesen.adb, a-suenst.adb,
2504 a-suewse.adb, a-suewst.adb,
2505 a-suewse.ads, a-suewst.ads,
2506 a-suezse.ads, a-suezst.ads,
2507 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2508 * impunit.adb: New names for string encoding units
2509 * Makefile.rtl: New names for string encoding units
2510 * rtsfind.ads: Minor code reorganization.
2511
2512 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2513
2514 * exp_ch5.adb: Code clean up.
2515
2516 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2517
2518 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2519 returns when in a generic context.
2520 (Analyze_Function_Return): ditto.
2521
2522 2010-10-11 Robert Dewar <dewar@adacore.com>
2523
2524 * s-multip.ads: Fix header.
2525 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2526
2527 2010-10-11 Vincent Celier <celier@adacore.com>
2528
2529 * Makefile.rtl: Add s-multip.
2530 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2531 defaulting to 1 for other platforms.
2532 * adaint.h: New function __gnat_number_of_cpus.
2533 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2534 with a single component "s-multip".
2535 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2536 2012.
2537 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2538 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2539 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2540
2541 2010-10-11 Javier Miranda <miranda@adacore.com>
2542
2543 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2544 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2545
2546 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2547
2548 * sem_aux.adb: Code clean up.
2549
2550 2010-10-11 Robert Dewar <dewar@adacore.com>
2551
2552 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2553
2554 2010-10-11 Robert Dewar <dewar@adacore.com>
2555
2556 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2557 Flag248-Flag254. Define new field Field29.
2558
2559 2010-10-10 Olivier Hainque <hainque@adacore.com>
2560 Eric Botcazou <ebotcazou@adacore.com>
2561
2562 * gcc-interface/lang.opt (gdwarf+): Remove.
2563 * gcc-interface/gigi.h (get_parallel_type): Likewise
2564 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2565 (gnat_handle_option): Remove OPT_gdwarfplus case.
2566 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2567 from gnat_dwarf_extensions.
2568 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2569 * gcc-interface/utils.c (get_parallel_type): Remove.
2570
2571 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2572
2573 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2574 invert_truthvalue_loc instead of invert_truthvalue.
2575 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2576 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2577
2578 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2579
2580 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2581 assertion on the types of the parameters. Use KIND local variable.
2582 <E_Incomplete_Type>: Likewise.
2583
2584 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2585
2586 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2587 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2588 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2589 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2590 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2591 the target, pass them by explicit reference.
2592 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2593 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2594 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2595 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2596 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2597 and handle it.
2598 (build_function_stub): Iterate on the parameters of the subprogram in
2599 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2600
2601 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2602
2603 * gcc-interface/misc.c: Delete prototypes.
2604 (gnat_init_options): Use local variable.
2605 (lang_hooks): Move to the end of the file.
2606
2607 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2608
2609 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2610 from gnat_init_options.
2611 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2612
2613 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2614
2615 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2616
2617 2010-10-08 Robert Dewar <dewar@adacore.com>
2618
2619 * exp_ch3.adb: Minor reformatting.
2620 * exp_ch5.adb: Add comment.
2621
2622 2010-10-08 Robert Dewar <dewar@adacore.com>
2623
2624 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2625 * gcc-interface/Make-lang.in: Update dependencies.
2626 * einfo.ads: Minor reformatting.
2627
2628 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2629
2630 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2631 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2632 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2633 Is_Immutably_Limited_Type to accord with new RM terminology.
2634 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2635 of a formal limited private type is not immutably limited in a generic
2636 body.
2637
2638 2010-10-08 Robert Dewar <dewar@adacore.com>
2639
2640 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2641 Add calls to this new procedure where appropriate
2642
2643 2010-10-08 Vincent Celier <celier@adacore.com>
2644
2645 * a-textio.adb (Get_Chunk): Code clean up.
2646
2647 2010-10-08 Robert Dewar <dewar@adacore.com>
2648
2649 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2650 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2651 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2652 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2653 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2654 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2655 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2656 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2657 parameter.
2658
2659 2010-10-08 Robert Dewar <dewar@adacore.com>
2660
2661 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2662 packages can depend on preleborated packages.
2663
2664 2010-10-08 Robert Dewar <dewar@adacore.com>
2665
2666 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2667 Interrupt_Handler and Attach_Handler not allowed in generics.
2668
2669 2010-10-08 Robert Dewar <dewar@adacore.com>
2670
2671 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2672 * ali.ads (Allocator_In_Body): New flag
2673 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2674 program violating No_Allocators_After_Elaboration restriction.
2675 * gnatbind.adb (No_Restriction_List): Add entries for
2676 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2677 * lib-load.adb: Initialize Has_Allocator flag
2678 * lib-writ.adb: Initialize Has_Allocator flag
2679 (M_Parameters): Set AB switch if Has_Allocator flag set
2680 * lib-writ.ads: Document AB flag on M line
2681 * lib.adb (Has_Allocator): New function
2682 (Set_Has_Allocator): New procedure
2683 * lib.ads (Has_Allocator): New function
2684 (Set_Has_Allocator): New procedure
2685 (Has_Allocator): New flag in Unit_Record
2686 * sem_ch4.adb (Analyze_Allocator): Add processing for
2687 No_Allocators_After_Elaboration.
2688
2689 2010-10-08 Geert Bosch <bosch@adacore.com>
2690
2691 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2692
2693 2010-10-08 Javier Miranda <miranda@adacore.com>
2694
2695 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2696 Java_Constructors because in the JRE library we generate occurrences
2697 in which the "this" parameter is not the first formal.
2698
2699 2010-10-08 Robert Dewar <dewar@adacore.com>
2700
2701 * par-ch3.adb: Minor reformatting.
2702
2703 2010-10-08 Javier Miranda <miranda@adacore.com>
2704
2705 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2706 types.
2707
2708 2010-10-08 Robert Dewar <dewar@adacore.com>
2709
2710 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2711 mode.
2712 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2713 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2714 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2715 No_Anonymous_Allocators.
2716
2717 2010-10-08 Vincent Celier <celier@adacore.com>
2718
2719 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2720 restriction, so that the last comma is always replaced with a left
2721 parenthesis.
2722
2723 2010-10-08 Javier Miranda <miranda@adacore.com>
2724
2725 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2726 first formal of delegates.
2727
2728 2010-10-08 Robert Dewar <dewar@adacore.com>
2729
2730 * sem_aggr.adb: Minor reformatting.
2731
2732 2010-10-08 Robert Dewar <dewar@adacore.com>
2733
2734 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2735 sequence for soft hyphen for Character'Image case.
2736 * rtsfind.ads (Image_Character_05): New entry
2737 * s-imgcha.adb (Image_Character_05): New procedurew
2738 * s-imgcha.ads (Image_Character_05): New procedure
2739 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2740 case.
2741 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2742 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2743 properly.
2744
2745 2010-10-08 Robert Dewar <dewar@adacore.com>
2746
2747 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2748 for case of Wide_[Wide_]Character.
2749
2750 2010-10-08 Robert Dewar <dewar@adacore.com>
2751
2752 * exp_ch3.adb: Minor reformating
2753 Minor code reorganization.
2754
2755 2010-10-08 Javier Miranda <miranda@adacore.com>
2756
2757 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2758 pragmas CIL_Constructor and Java_Constructor.
2759 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2760 predefined primitives for CIL/Java tagged types.
2761
2762 2010-10-08 Robert Dewar <dewar@adacore.com>
2763
2764 * sem_ch6.adb: Minor reformatting.
2765
2766 2010-10-08 Robert Dewar <dewar@adacore.com>
2767
2768 * gnat1drv.adb: Add call to Validate_Independence.
2769 * par-prag.adb: Add dummy entries for Independent,
2770 Independent_Componentsa.
2771 * sem_ch13.adb (Validate_Independence): New procedure
2772 (Initialize): Initialize address clause and independence check tables
2773 * sem_ch13.ads (Independence_Checks): New table
2774 (Validate_Independence): New procedure
2775 * sem_prag.adb: Add processing for pragma Independent[_Components]
2776 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2777
2778 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2779
2780 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2781 component with box initialization, if the component is a variant record
2782 use the values of the discriminants to select the proper variant for
2783 further box initialization.
2784
2785 2010-10-08 Thomas Quinot <quinot@adacore.com>
2786
2787 * xsnames.adb: Remove obsolete file.
2788 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2789
2790 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2791
2792 * exp_aggr.adb: Complete previous change.
2793
2794 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2795
2796 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2797 extended return must match statically the return subtype of the
2798 enclosing function if the type is an elementary type or if it is
2799 constrained.
2800
2801 2010-10-08 Vincent Celier <celier@adacore.com>
2802
2803 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2804 names. Do not report the same duplicate unit several times.
2805 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2806 defaulted to False, to avoid reporting the same unit as duplicate
2807 several times.
2808
2809 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2810
2811 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2812 others choice is a literal, analyze it to enable later optimizations.
2813 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2814 and components can be handled by the backend even if it is of a limited
2815 type.
2816
2817 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2818
2819 * a-rttiev.adb (task Timer): Since this package may be elaborated
2820 before System.Interrupt, we need to call Setup_Interrupt_Mask
2821 explicitly to ensure that this task has the proper signal mask.
2822
2823 2010-10-08 Robert Dewar <dewar@adacore.com>
2824
2825 * freeze.adb (Freeze_Entity): For array case, move some processing for
2826 pragma Pack, Component_Size clause and atomic/volatile components here
2827 instead of trying to do the job in Sem_Ch13 and Freeze.
2828 * layout.adb: Use new Addressable function
2829 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2830 Component_Size): Move some handling to freeze point in
2831 Freeze.Freeze_Entity.
2832 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2833 freeze point in Freese.Freeze_Entity.
2834 * sem_util.ads, sem_util.adb (Addressable): New function.
2835
2836 2010-10-08 Robert Dewar <dewar@adacore.com>
2837
2838 * sprint.adb: Minor reformatting.
2839
2840 2010-10-08 Javier Miranda <miranda@adacore.com>
2841
2842 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2843
2844 2010-10-08 Robert Dewar <dewar@adacore.com>
2845
2846 * sem_ch3.adb: Minor reformatting.
2847
2848 2010-10-08 Vincent Celier <celier@adacore.com>
2849
2850 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2851 not a reserved word.
2852 * prj-proc.adb (Expression): Process string list external references.
2853 * prj-strt.adb (External_Reference): Parse external_as_list external
2854 references.
2855 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2856 (Set_Expression_Kind_Of): Ditto
2857 * prj.adb (Initialize): Set external_as_list as a reserved word
2858 * projects.texi: Document new string external reference
2859 external_as_list.
2860 * scans.ads (Token_Type): New token Tok_External_As_List
2861 * snames.ads-tmpl: New standard name Name_External_As_List
2862
2863 2010-10-08 Thomas Quinot <quinot@adacore.com>
2864
2865 * sem_prag.adb: Minor reformatting.
2866
2867 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2868
2869 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2870 instance, it is legal to derive from a non-limited actual when the
2871 formal type is untagged limited.
2872 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2873 analyzed formal as Generic_Parent_Type, to simplify later checks.
2874
2875 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2876
2877 * sem_res.adb (Insert_Default): If default value is already a
2878 raise_constraint_error do not rewrite it as new raise node, to prevent
2879 infinite loops in the warning removal machinery.
2880
2881 2010-10-08 Robert Dewar <dewar@adacore.com>
2882
2883 * sem_util.adb, sem_prag.adb: Minor reformatting
2884
2885 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2886
2887 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2888 Add section on pragma Implemented.
2889
2890 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2891
2892 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2893 concrete parent with a concrete constructor, the inherited constructor
2894 is abstract even if the derived type is a null extension.
2895
2896 2010-10-08 Thomas Quinot <quinot@adacore.com>
2897
2898 * sem_ch4.adb: Minor reformatting.
2899
2900 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2901
2902 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2903 (Implemented_By_Entry): Removed.
2904 (Set_Implemented_By_Entry): Removed.
2905 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2906 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2907 (Implemented_By_Entry): Removed along with its associated pragma.
2908 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2909 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2910 (Build_Dispatching_Call_Equivalent): New routine.
2911 (Build_Dispatching_Requeue): New routine.
2912 (Build_Dispatching_Requeue_To_Any): New routine.
2913 (Build_Normal_Requeue): New routine.
2914 (Build_Skip_Statement): New routine.
2915 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2916 several subroutines.
2917 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2918 Pragma_Implemented.
2919 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2920 pragma Implemented.
2921 (Check_Pragma_Implemented): New routines.
2922 (Inherit_Pragma_Implemented): New routine.
2923 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2924 dispatching requeue.
2925 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2926 and adding Implemented.
2927 (Ada_2012_Pragma): New routine.
2928 (Analyze_Pragma, case Implemented): Perform all necessary checks
2929 concerning pragma Implemented and register the pragma as a
2930 representation item with the procedure_LOCAL_NAME.
2931 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2932 * sem_util.adb (Implementation_Kind): New routine.
2933 * sem_util.ads (Implementation_Kind): New routine.
2934 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2935 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2936 add Pragma_Implemented. Add special names By_Any, By_Entry and
2937 By_Protected_Procedure.
2938
2939 2010-10-08 Javier Miranda <miranda@adacore.com>
2940
2941 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2942 variable Has_Static_DT by invocation of function Building_Static_DT.
2943
2944 2010-10-08 Vincent Celier <celier@adacore.com>
2945
2946 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2947 doing a recursive remove of a subdirectory.
2948
2949 2010-10-08 Javier Miranda <miranda@adacore.com>
2950
2951 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2952 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2953 (Make_DT): Factorize code.
2954
2955 2010-10-08 Robert Dewar <dewar@adacore.com>
2956
2957 * sem_ch4.adb: Minor reformatting.
2958
2959 2010-10-08 Robert Dewar <dewar@adacore.com>
2960
2961 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2962 conformance.
2963
2964 2010-10-08 Thomas Quinot <quinot@adacore.com>
2965
2966 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2967 consistency with Gen_T in Instantiate_Type.
2968 Introduce constant A_Gen_Obj to avoid repeated queries for
2969 Defining_Identifier (Analyzed_Formal).
2970
2971 2010-10-08 Vincent Celier <celier@adacore.com>
2972
2973 * prj-nmsc.adb: Minor comment fix.
2974
2975 2010-10-07 Robert Dewar <dewar@adacore.com>
2976
2977 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2978 * gcc-interface/Make-lang.in: Update dependencies.
2979
2980 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2981
2982 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2983 unit, if the type of the formal is declared in a parent unit and is not
2984 a formal itself, the actual must be located from an enclosing parent
2985 instance by normal visibility.
2986
2987 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2988
2989 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2990 indicator is illegal for an uninitialized allocator.
2991
2992 2010-10-07 Robert Dewar <dewar@adacore.com>
2993
2994 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2995 Component_Size): Complete previous change.
2996
2997 2010-10-07 Vincent Celier <celier@adacore.com>
2998
2999 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
3000 even for keywords, to avoid having the checksum to depend on the Ada
3001 version.
3002
3003 2010-10-07 Gary Dismukes <dismukes@adacore.com>
3004
3005 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
3006 exp_ch3.adb: Minor reformatting.
3007
3008 2010-10-07 Robert Dewar <dewar@adacore.com>
3009
3010 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3011 Component_Size): It is now illegal to give an incorrect component size
3012 clause in the case of aliased or atomic components.
3013 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
3014 an effective pragma Pack in the case of aliased or atomic components.
3015
3016 2010-10-07 Steve Baird <baird@adacore.com>
3017
3018 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3019 in the case of a violation of an active No_Task_Hierarchy restriction.
3020
3021 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3022
3023 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3024 type is non-limited, an actual for it cannot be limited.
3025
3026 2010-10-07 Robert Dewar <dewar@adacore.com>
3027
3028 * einfo.ads (No_Pool_Assigned): Update documentation.
3029 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3030 Storage_Size): We only set No_Pool_Assigned if the expression is a
3031 static constant and zero.
3032 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3033 should be an error not a warning.
3034
3035 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3036
3037 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3038 where an aggregate in an assignment can be built directly into the
3039 target, and does not require the creation of a temporary that may
3040 overflow the stack.
3041
3042 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3043
3044 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3045 in a record aggregate can correspond to several components of
3046 anonymous access types, as long as the designated subtypes match.
3047
3048 2010-10-07 Robert Dewar <dewar@adacore.com>
3049
3050 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3051 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3052 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3053 spelling parametrize(d) => parameterize(d).
3054
3055 2010-10-07 Robert Dewar <dewar@adacore.com>
3056
3057 * sem_ch12.adb: Add comment.
3058 * sem_ch6.adb: Minor reformatting.
3059
3060 2010-10-07 Robert Dewar <dewar@adacore.com>
3061
3062 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3063 Pexp to Pf_Rec constants
3064 (P_Subprogram): Expression is always enclosed in parentheses
3065 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3066 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3067
3068 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3069
3070 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3071 checks on functions that return an abstract type or have a controlling
3072 result whose designated type is an abstract type.
3073 (Check_Private_Overriding): Implement Ada2012 checks on functions
3074 declared in the private part, if an abstract type is involved.
3075 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3076 reject a generic function that returns an abstract type.
3077 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3078 function has a controlling access result, check that the tag of the
3079 return value matches the designated type of the return expression.
3080
3081 2010-10-07 Robert Dewar <dewar@adacore.com>
3082
3083 * par-ch6.adb: Fix error in handling of parametrized expressions.
3084 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3085 mode.
3086 (P_Simple_Expression): Better message for qualified expression prefix
3087 * s-crc32.adb: Minor reformatting.
3088 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3089 storage pool (this test is moved to Sem_Intr).
3090 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3091 empty storage pool, moved here from Exp_Intr and made into error.
3092 (Check_Intrinsic_Call): Remove assumption in generating not-null free
3093 warning that the name of the instantiation is Free.
3094 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3095 GNAT mode.
3096 * types.ads: Remove storage size clauses from big types (since we may
3097 need to do deallocations, which are now illegal for empty pools).
3098
3099 2010-10-07 Sergey Rybin <rybin@adacore.com>
3100
3101 * gnat_ugn.texi: Add missing word.
3102
3103 2010-10-07 Robert Dewar <dewar@adacore.com>
3104
3105 * exp_util.adb (Insert_Actions): Add handling of
3106 N_Parametrized_Expression.
3107 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3108 * sem.adb: Add entry for N_Parametrized_Expression
3109 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3110 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3111 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3112 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3113 * par-ch4.adb: Minor reformatting.
3114
3115 2010-10-07 Robert Dewar <dewar@adacore.com>
3116
3117 * scng.adb (Skip_Other_Format_Characters): New procedure
3118 (Start_Of_Wide_Character): New procedure
3119 (Scan): Use Start_Of_Wide_Character where appropriate
3120 (Scan): Improve error message for other_format chars in identifier
3121 (Scan): Allow other_format chars between tokens
3122
3123 2010-10-07 Javier Miranda <miranda@adacore.com>
3124
3125 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3126 Add missing support for explicit dereferences.
3127
3128 2010-10-07 Robert Dewar <dewar@adacore.com>
3129
3130 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3131
3132 2010-10-07 Robert Dewar <dewar@adacore.com>
3133
3134 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3135 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3136 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3137 Exp_Util.Fully_Qualified_Name_String.
3138
3139 2010-10-07 Robert Dewar <dewar@adacore.com>
3140
3141 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3142 * sem_res.adb (Resolve_Call): A call to
3143 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3144 No_Relative_Delay (AI-0211).
3145
3146 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3147
3148 * sem_ch10.adb: Small change in error message.
3149
3150 2010-10-07 Robert Dewar <dewar@adacore.com>
3151
3152 * tbuild.ads: Minor reformatting.
3153
3154 2010-10-07 Robert Dewar <dewar@adacore.com>
3155
3156 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3157
3158 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3159
3160 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3161
3162 2010-10-07 Robert Dewar <dewar@adacore.com>
3163
3164 * sem_res.adb: Minor reformatting
3165
3166 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
3167
3168 * gnat_ugn.texi: Minor editing.
3169 * opt.ads: Document that scripts rely on specific formats in opt.ads
3170
3171 2010-10-07 Robert Dewar <dewar@adacore.com>
3172
3173 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3174 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3175 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3176 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3177
3178 2010-10-07 Robert Dewar <dewar@adacore.com>
3179
3180 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3181 * impunit.adb: Add entries for a-wichha/a-zchhan
3182 * Makefile.rtl: Add entries for a-wichha/a-zchhan
3183
3184 2010-10-07 Vincent Celier <celier@adacore.com>
3185
3186 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3187 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3188 replaced source, check that none of the replaced sources are in the
3189 dependencies.
3190 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3191 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3192 replaced with a source with a different file name, put it in the hash
3193 table Replaced_Sources.
3194 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3195 one replaced source, check if it has the same file name as the current
3196 source; if it has, remove it from the hash table Replaced_Sources.
3197 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3198 * prj.ads (Replaced_Source_HTable): New hash table
3199 (Project_Tree_Data): New components Replaced_Sources and
3200 Replaced_Source_Number.
3201
3202 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3203
3204 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3205 proper flag to prevent a double elaboration check on the same call.
3206 * exp_util.adb (Insert_Actions): If the enclosing node is an
3207 Expression_With_Actions and it has been analyzed already, find
3208 insertion point further up in the tree.
3209
3210 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3211
3212 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3213 local variables. Remove the general restriction which prohibits the
3214 application of record rep clauses to Unchecked_Union types. Add Ada
3215 2012 check to detect improper naming of an Unchecked_Union
3216 discriminant in record rep clause.
3217 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3218 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3219 type to all invocations of Check_Component and Check_Variant.
3220 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3221 Rewritten. Add Ada 2012 check to detect improper use of formal
3222 private types and private extensions as component types of an
3223 Unchecked_Union declared inside a generic body.
3224 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3225 Unchecked_Union type to all calls of Check_Component. Signal that the
3226 current component comes from the variant part of an Unchecked_Union
3227 type.
3228 (Inside_Generic_Body): New routine.
3229
3230 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3231
3232 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3233 equality operation for a record component, verify that both formals
3234 have the same type, and the result type is boolean.
3235
3236 2010-10-07 Vincent Celier <celier@adacore.com>
3237
3238 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3239 binder generated file, look for both b~xxx and b__xxx as gprbuild
3240 always uses b__ as the prefix of such files.
3241
3242 2010-10-07 Thomas Quinot <quinot@adacore.com>
3243
3244 * sem_res.adb: Minor reformatting.
3245
3246 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3247
3248 * debug.adb: Update -gnatd.J documentation.
3249
3250 2010-10-07 Robert Dewar <dewar@adacore.com>
3251
3252 * gnat_rm.texi: Document handling of invalid values
3253 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3254 to match new spec.
3255 (UTF_To_Upper_Case): New function.
3256
3257 2010-10-07 Robert Dewar <dewar@adacore.com>
3258
3259 * sem_attr.adb: Minor reformatting.
3260 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3261 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3262 properly.
3263 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3264 non-Ada 2012 mode.
3265 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3266 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3267 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3268 flag.
3269 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3270 argument.
3271 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3272 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3273 same as 2005 flag.
3274
3275 2010-10-07 Javier Miranda <miranda@adacore.com>
3276
3277 * a-tags.ads: Use new support for pragma Ada_2012 with function
3278 Type_Is_Abstract.
3279
3280 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3281
3282 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3283 sequence of statements.
3284
3285 2010-10-07 Vincent Celier <celier@adacore.com>
3286
3287 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3288
3289 2010-10-07 Javier Miranda <miranda@adacore.com>
3290
3291 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3292 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3293 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3294
3295 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3296
3297 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3298 (Analyze_Package_Instantiation): No longer analyze systematically a
3299 generic body in CodePeer mode.
3300 * freeze.adb, sem_attr.adb: Update comments.
3301
3302 2010-10-05 Robert Dewar <dewar@adacore.com>
3303
3304 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3305 mode.
3306
3307 2010-10-05 Pascal Obry <obry@adacore.com>
3308
3309 * gnat_rm.texi: Fix typo.
3310
3311 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3312
3313 * gnat_ugn.texi: Add note about identifiers with same name and
3314 -fdump-ada-spec.
3315
3316 2010-10-05 Robert Dewar <dewar@adacore.com>
3317
3318 * sem_ch4.adb: Minor reformatting.
3319 * a-direct.ads: Minor comment update.
3320
3321 2010-10-05 Javier Miranda <miranda@adacore.com>
3322
3323 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3324 no longer required after change in New_Overloaded_Entity.
3325 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3326 the fragment of code that handles derivations of interface primitives.
3327 Add missing dependence on global variable Inside_Freezing_Actions to
3328 ensure the correct management of internal interface entities.
3329 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3330 of the global variable Inside_Freezing_Actions to ensure that internal
3331 interface entities are well handled by New_Overloaded_Entity.
3332 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3333 and complete the algorithm to catch hidden primitives derived of
3334 private type that covers the interface.
3335 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3336 documentation.
3337
3338 2010-10-05 Robert Dewar <dewar@adacore.com>
3339
3340 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3341 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3342 Minor code reorganization (use Nkind_In).
3343
3344 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3345
3346 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3347 task.
3348
3349 2010-10-05 Vincent Celier <celier@adacore.com>
3350
3351 * gnatbind.adb: If the main library file is not for a suitable main
3352 program, change the error message.
3353
3354 2010-10-05 Vincent Celier <celier@adacore.com>
3355
3356 * a-direct.ads: Minor spelling error fixes in comments.
3357 * gnat_rm.texi: Add three entries in "Implementation Defined
3358 Characteristics" for the interpretations of the Form parameters in
3359 Ada.Directories.
3360
3361 2010-10-05 Robert Dewar <dewar@adacore.com>
3362
3363 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3364 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3365 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3366 reorganization.
3367 Minor reformatting.
3368
3369 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3370
3371 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3372 an explicit dereference of an access to function, the prefix is not
3373 interpreted as a parameterless call.
3374
3375 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3376
3377 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3378 private.
3379
3380 2010-10-05 Vincent Celier <celier@adacore.com>
3381
3382 * make.adb (Switches_Of): Allow wild cards in index of attributes
3383 Switches.
3384 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3385 of the associative array as a glob regular expression.
3386 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3387 Allow_Wildcards, defaulted to False.
3388 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3389 * projects.texi: Document that attribute Switches (<file name>) may
3390 use wild cards in the index.
3391
3392 2010-10-05 Robert Dewar <dewar@adacore.com>
3393
3394 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3395 einfo.adb: Minor reformatting.
3396 * debug.adb: Remove obsolete documentation for d.Z flag.
3397
3398 2010-10-05 Vincent Celier <celier@adacore.com>
3399
3400 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3401 switch --create-info-file=.
3402 * gnat_ugn.texi: Add documentation for new gnatmake switch
3403 --source-info=
3404
3405 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3406
3407 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3408
3409 2010-10-05 Javier Miranda <miranda@adacore.com>
3410
3411 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3412 to generate the full-qualified names of its corresponding spec.
3413 This facilitates locating the corresponing body when reading
3414 the DG output.
3415
3416 2010-10-05 Thomas Quinot <quinot@adacore.com>
3417
3418 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3419 canonical name without serial number only if the helper is becoming a
3420 primitive of the type.
3421
3422 2010-10-05 Javier Miranda <miranda@adacore.com>
3423
3424 * exp_disp.adb (Make_DT): Minor code reorganization.
3425
3426 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3427
3428 * par-ch6.adb: improve recovery with extra paren in function spec.
3429
3430 2010-10-05 Quentin Ochem <ochem@adacore.com>
3431
3432 * prj-tree.ads: Project_Path is now aliased.
3433
3434 2010-10-05 Thomas Quinot <quinot@adacore.com>
3435
3436 * checks.adb: Minor reformatting.
3437
3438 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3439
3440 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3441 (Shared_Libgcc): New aliased variable.
3442 (Shared_Libgcc_Switch): New constant.
3443 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3444 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3445 to the compiler.
3446 * gcc-interface/Make-lang.in: Update dependencies.
3447
3448 2010-10-05 Vincent Celier <celier@adacore.com>
3449
3450 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3451 imports its parent project, also look in projects being extended by
3452 imported projects.
3453
3454 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3455
3456 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3457
3458 2010-10-05 Javier Miranda <miranda@adacore.com>
3459
3460 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3461 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3462 activate this output.
3463
3464 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3465
3466 * back_end.adb (Call_Back_End): Generate an error message when scil
3467 generation is enabled, and no scil back-end (by default) is available.
3468
3469 2010-10-05 Javier Miranda <miranda@adacore.com>
3470
3471 * debug.adb: Update documentation since -gnatd.Z is no longer required
3472 to generate the call-graph information.
3473
3474 2010-10-05 Javier Miranda <miranda@adacore.com>
3475
3476 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3477 runtime access check by an equivalent expansion that causes
3478 no problems in the VM backend. The original expansion was
3479 not good for the VM backends because when Tagged_Type_Expansion
3480 is disabled the attribute Access_Disp_Table is not available.
3481
3482 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3483
3484 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3485 is class-wide and T1 is its specific type.
3486
3487 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3488
3489 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3490
3491 2010-10-05 Vincent Celier <celier@adacore.com>
3492
3493 * back_end.ads: Minor spelling error correction.
3494
3495 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3496
3497 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3498 warnings when -gnatC is specified here so that warnings can be
3499 re-enabled explicitly.
3500 (Adjust_Global_Switches): No longer suppress warnings.
3501
3502 2010-10-05 Vincent Celier <celier@adacore.com>
3503
3504 * makeutl.adb: Minor reformatting.
3505
3506 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3507
3508 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3509 non-discrete type appears as an actual in a call.
3510
3511 2010-10-05 Vincent Celier <celier@adacore.com>
3512
3513 * make.adb (Scan_Make_Arg): Take into account new switch
3514 --source-info=file.
3515 * makeusg.adb: Add line for new switch --source-info=file.
3516 * makeutl.ads (Source_Info_Option): New constant String for new builder
3517 switch.
3518 * prj-conf.adb: Put subprograms in alphabetical order
3519 (Process_Project_And_Apply_Config): Read/write an eventual source info
3520 file, if necessary.
3521 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3522 procedure.
3523 (Look_For_Sources): If a source info file was successfully read, get
3524 the source data from the data read from the source info file.
3525 * prj-util.adb (Source_Info_Table): New table
3526 (Source_Info_Project_HTable): New hash table
3527 (Create): New procedure
3528 (Put (File), Put_Line): New procedures
3529 (Write_Source_Info_File): New procedure
3530 (Read_Source_Info_File): New procedure
3531 (Initialize): New procedure
3532 (Source_Info_Of): New procedure
3533 (Next): New procedure
3534 (Close): When file is an out file, fail if the buffer cannot be written
3535 or if the file cannot be close successfully.
3536 (Get_Line): Fail if file is an out file
3537 * prj-util.ads (Create): New procedure
3538 (Put (File), Put_Line): New procedures
3539 (Write_Source_Info_File): New procedure
3540 (Read_Source_Info_File): New procedure
3541 (Source_Info_Data): New record type
3542 (Source_Info_Iterator): New private type
3543 (Initialize): New procedure
3544 (Source_Info_Of): New procedure
3545 (Next): New procedure
3546 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3547 Source_Info_File_Exists.
3548
3549 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3550
3551 * exp_ch4.adb: Fix typo.
3552
3553 2010-10-05 Thomas Quinot <quinot@adacore.com>
3554
3555 * lib-writ.adb: Minor reformatting.
3556
3557 2010-10-05 Javier Miranda <miranda@adacore.com>
3558
3559 * sem_ch3.adb (Access_Definition): Remove useless code.
3560
3561 2010-10-05 Emmanuel Briot <briot@adacore.com>
3562
3563 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3564 (Deep_Copy): Removed, not used.
3565
3566 2010-10-05 Javier Miranda <miranda@adacore.com>
3567
3568 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3569 move code that searches in the list of primitives of a tagged type for
3570 the entity that will be overridden by user-defined routines.
3571 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3572 previously located in routine Add_Internal_Interface_Entities.
3573 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3574 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3575 availability of attribute Alias.
3576
3577 2010-10-05 Ed Falis <falis@adacore.com>
3578
3579 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3580 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3581 Move definition of intContext to System.OS_Interface.
3582 Add necessary variants in System.VxWorks.Extensions.
3583
3584 2010-10-05 Doug Rupp <rupp@adacore.com>
3585
3586 * s-asthan-vms-alpha.adb: On VMS, a task using
3587 pragma AST_Entry exhibits a memory leak when the task terminates
3588 because the vector allocated for the AST interface is not freed. Fixed
3589 by making the vector a controlled type.
3590
3591 2010-10-05 Emmanuel Briot <briot@adacore.com>
3592
3593 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3594 a "**" pattern properly exists, and report an error otherwise.
3595
3596 2010-10-05 Emmanuel Briot <briot@adacore.com>
3597
3598 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3599
3600 2010-10-05 Emmanuel Briot <briot@adacore.com>
3601
3602 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3603 subprogram.
3604 Extract some code from Get_Directories, to share with the handling
3605 of aggregate projects (for the Project_Files attributes)
3606
3607 2010-10-05 Emmanuel Briot <briot@adacore.com>
3608
3609 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3610 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3611 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3612 type.
3613
3614 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3615
3616 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3617
3618 2010-10-05 Emmanuel Briot <briot@adacore.com>
3619
3620 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3621 (Aggregate projects): added support for parsing aggregate projects.
3622 In particular, check the presence and value of the new attributes
3623 related to aggregate projects, ie Project_Files, Project_Path
3624 and External.
3625 (Check_Attribute_Allowed, Check_Package_Allowed,
3626 Rename_Obsolescent_Attributes): new subprogram, extracting code
3627 from existing subprogram to keep their sizes smaller.
3628 (Check_Aggregate_Project, Check_Abstract_Project,
3629 Check_Missing_Sources): new subprograms
3630 (Check): remove comments that duplicated either the name of the
3631 following subprogram call, or the comment on that subprogram.
3632 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3633 from Parse_Single_Project.
3634 (Check_Aggregate_Imports): new subprogram.
3635
3636 2010-10-05 Vincent Celier <celier@adacore.com>
3637
3638 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3639 file has not been generated for the current source, for example if it
3640 has been generated for the spec, but we are compiling the body.
3641
3642 2010-10-05 Bob Duff <duff@adacore.com>
3643
3644 * xgnatugn.adb: Remove unused procedure.
3645
3646 2010-10-04 Vincent Celier <celier@adacore.com>
3647
3648 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3649 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3650 the Form parameter contains an incorrect value for field preserve= or
3651 mode=.
3652 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3653 parameter is ignored.
3654 (Copy_File): Indicate the interpretation of the Form parameter.
3655
3656 2010-10-04 Vincent Celier <celier@adacore.com>
3657
3658 * make.adb (Gnatmake): When there are no foreign languages declared and
3659 a main in attribute Main of the main project does not exist or is a
3660 source of another project, fail immediately before attempting
3661 compilation.
3662
3663 2010-10-04 Javier Miranda <miranda@adacore.com>
3664
3665 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3666 used to convert a node referencing a tag to a class-wide interface
3667 type.
3668 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3669 (Expand_Interface_Conversion): Replace invocation of
3670 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3671 (Write_DT): Add support for null primitives.
3672 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3673 cleanup code that handles interface conversions and avoid unchecked
3674 conversion of referenced tag components.
3675 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3676 unrequired conversions when generating a dispatching call to _assign.
3677 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3678
3679 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3680
3681 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3682 parent is a binary boolean operation and the operand is an unpacked
3683 array.
3684 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3685 the operands of the rewritten node are the operands of the negations,
3686 not the negations themselves.
3687
3688 2010-10-04 Robert Dewar <dewar@adacore.com>
3689
3690 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3691 name of entity to biased warning msg.
3692 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3693 biased rep (wrong and never worked anyway).
3694
3695 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3696
3697 * sem_elab.adb: Minor reformatting.
3698
3699 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3700
3701 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3702 an access_to_protected subprogram type, and convert null value into
3703 corresponding aggregate.
3704
3705 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3706
3707 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3708
3709 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3710
3711 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3712 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3713 AAMP.
3714
3715 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3716
3717 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3718 for N_Operator_Symbol.
3719 (Indicate_Name_And_Type): Likewise.
3720 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3721 * sem_res.adb (Resolve): Likewise.
3722 * sem_type.adb (Add_One_Interp): Likewise.
3723 (Disambiguate): Likewise.
3724
3725 2010-10-04 Vincent Celier <celier@adacore.com>
3726
3727 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3728 than ALI file timestamp, return null.
3729
3730 2010-10-04 Vincent Celier <celier@adacore.com>
3731
3732 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3733 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3734 replaces global constant with the same name. When a line is too long,
3735 indent properly the next continuation line.
3736 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3737 from 50 to 255, defaulted to 255, to indicate the maximum length of
3738 lines in the project file.
3739
3740 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3741
3742 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3743 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3744 of Traverse_Func on it to look for subprogram references in a body.
3745 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3746 outer level and keep clearing the Is_Public flag of subprograms as long
3747 as it returns OK. Do not look at anything else than subprograms once
3748 an inlined subprogram has been seen.
3749
3750 2010-10-04 Javier Miranda <miranda@adacore.com>
3751
3752 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3753 the target object is an interface.
3754 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3755 interface type then we generate an implicit conversion to force
3756 displacement of the pointer to the object to reference the secondary
3757 dispatch table associated with the interface.
3758
3759 2010-10-04 Robert Dewar <dewar@adacore.com>
3760
3761 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3762 Enumeration_Rep_Expr to point to the literal, not the identifier.
3763 (Analyze_Enumeration_Representation_Clause): Improve error message for
3764 size too small for enum rep value
3765 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3766 proper size (RM_Size, not Esize).
3767
3768 2010-10-04 Robert Dewar <dewar@adacore.com>
3769
3770 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3771
3772 2010-10-04 Javier Miranda <miranda@adacore.com>
3773
3774 * exp_cg.adb (Write_Call_Info): Code clean up.
3775
3776 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3777
3778 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3779
3780 2010-10-04 Robert Dewar <dewar@adacore.com>
3781
3782 * exp_cg.adb: Minor code reorganization
3783 Minor reformatting.
3784 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3785
3786 2010-10-04 Bob Duff <duff@adacore.com>
3787
3788 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3789 to make a qualified expression into a name (syntax-wise), then do not
3790 consider it redundant.
3791
3792 2010-10-04 Thomas Quinot <quinot@adacore.com>
3793
3794 * sem_warn.ads: Fix typo.
3795
3796 2010-10-04 Javier Miranda <miranda@adacore.com>
3797
3798 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3799 TSS names.
3800 (Write_Call_Info): Add missing support for renamed primitives.
3801
3802 2010-10-04 Thomas Quinot <quinot@adacore.com>
3803
3804 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3805 code between Make_Component_List_Assign and Make_Field_Assign.
3806
3807 2010-10-04 Vincent Celier <celier@adacore.com>
3808
3809 * prj-nmsc.adb (Get_Directories): For non extending projects that
3810 declare that they have no sources, do not create a non existing object
3811 or exec directory if builder switch -p is used.
3812
3813 2010-10-04 Sergey Rybin <rybin@adacore.com>
3814
3815 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3816 format.
3817
3818 2010-10-04 Ed Falis <falis@adacore.com>
3819
3820 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3821 determine whether Set_True is called from a task or an ISR.
3822 (Set_True): test for being in a task context before trying to
3823 dereference Defer_Abort or Undefer_Abort.
3824
3825 2010-10-04 Robert Dewar <dewar@adacore.com>
3826
3827 * sem_res.adb, sinput-l.adb: Minor reformatting.
3828
3829 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3830
3831 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3832 check when the target object is an interface since the expression of
3833 the right hand side must only cover the interface.
3834
3835 2010-10-04 Vincent Celier <celier@adacore.com>
3836
3837 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3838 loading the main source, so that if it is preprocessed and -gnateG is
3839 used, the preprocessed file is written.
3840 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3841 if a subunit is from the main unit when it is loaded.
3842 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3843 to True before loading a subunit.
3844 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3845 to True when the main is a generic unit before loading one of its
3846 subunits.
3847 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3848 file only for the main unit (spec, body and subunits).
3849
3850 2010-10-04 Vincent Celier <celier@adacore.com>
3851
3852 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3853 specified and the processed file cannot be written. Just issue a
3854 warning and continue.
3855
3856 2010-10-04 Thomas Quinot <quinot@adacore.com>
3857
3858 * sem_res.adb: Minor reformatting.
3859
3860 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3861
3862 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3863 is an overridden inherited operation, the desired operation is the
3864 overriding one, which is the alias of the visible one.
3865
3866 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3867
3868 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3869 present before deleting from the tree, when an inherited function with
3870 a controlling result that returns a null extension is overridden by a
3871 later declaration or body.
3872
3873 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3874
3875 * checks.adb: Update comment.
3876
3877 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3878
3879 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3880 and define as variables.
3881 (gnat_post_options): Set optimize and optimize_size variables.
3882
3883 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3884
3885 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3886 are not defined by target.
3887
3888 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3889
3890 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3891
3892 2010-09-28 Richard Henderson <rth@redhat.com>
3893
3894 * gcc-interface/misc.c (gnat_eh_personality): Use
3895 targetm.except_unwind_info.
3896
3897 2010-09-28 Jan Hubicka <jh@suse.cz>
3898
3899 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3900 (gnat_internal_attribute_tables): Add leaf.
3901
3902 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3903
3904 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3905 -include-directory, -include-directory=, -no-standard-includes,
3906 -no-standard-libraries): New.
3907
3908 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3909
3910 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3911 build_array_type with calls to build_nonshared_array_type.
3912 (substitute_in_type): Likewise.
3913 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3914 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3915 (gnat_post_options): Add 'static' keyword.
3916 (gnat_type_hash_eq): New static function.
3917 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3918 (create_subprog_type): Call it.
3919 (create_index_type): Call build_nonshared_range_type and tidy up.
3920 (create_range_type): Likewise.
3921 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3922
3923 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3924
3925 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3926 for PARM_DECLs.
3927 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3928 block the top-level one.
3929 (build_function_stub): Build a statement group for the whole function.
3930 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3931 is used, create the enclosing block early and process first the OUT
3932 parameters.
3933
3934 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3935
3936 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3937 not generate debug info for individual enumerators.
3938
3939 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3942 type instead of enumeral type as the dummy type built for the template
3943 type of fat pointers.
3944
3945 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3946
3947 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3948 (gnat_zaplevel): Likewise.
3949 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3950 binding level for an external constant.
3951 <E_Constant>: Force the local context and create a fake scope before
3952 translating the defining expression of an external constant.
3953 <object>: Treat external constants at the global level explicitly for
3954 renaming declarations.
3955 (elaborate_expression_1): Force the variable to be static if the
3956 expression is global.
3957 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3958 (call_to_gnu): Use it.
3959 (gnat_to_gnu): Likewise.
3960 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3961 an initialization variable.
3962 (add_decl_expr): Discard the statement if the declaration is external.
3963 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3964 the current block if it is external.
3965 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3966 (gnat_zaplevel): New global function.
3967
3968 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3969
3970 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3971 variables against zero in all cases.
3972 (rest_of_type_decl_compilation): Likewise.
3973 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3974 create_var_decl.
3975 (call_to_gnu): Fix formatting.
3976 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3977 (Exception_Handler_to_gnu_zcx): Likewise.
3978 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3979 constant
3980 expressions in presence of a freeze node.
3981
3982 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3983
3984 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3985 expressions for external constants that are aggregates.
3986 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3987 is an inherited component in an extension, look through the extension.
3988
3989 2010-09-10 Vincent Celier <celier@adacore.com>
3990
3991 * projects.texi: Add documentation for package extensions
3992 Add some documentation for attributes Leading_Library_Options and
3993 Linker'Leading_Switches.
3994
3995 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3996
3997 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3998 disabled, compute subtype for all string types.
3999
4000 2010-09-10 Robert Dewar <dewar@adacore.com>
4001
4002 * gnat_ugn.texi: Add documentation for -gnatw.s/S
4003 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4004 Component_Size): Implement warning on overriden size clause.
4005 (Analyze_Record_Representation_Clause): Implement warning on overriden
4006 size clause.
4007 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
4008 (-gnatw.s/S).
4009 * ug_words: Add entries for -gnatw.s/S.
4010 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
4011 * gcc-interface/Make-lang.in: Update dependencies.
4012
4013 2010-09-10 Vincent Celier <celier@adacore.com>
4014
4015 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4016 a package with the same name from an imported or extended project.
4017 * prj-proc.adb (Process_Declarative_Items): Process package extensions
4018
4019 2010-09-10 Bob Duff <duff@adacore.com>
4020
4021 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4022 'out' parameters.
4023
4024 2010-09-10 Robert Dewar <dewar@adacore.com>
4025
4026 * sem.adb: Minor reformatting.
4027
4028 2010-09-10 Bob Duff <duff@adacore.com>
4029
4030 * s-os_lib.ads, g-expect.ads: Add comments.
4031
4032 2010-09-10 Robert Dewar <dewar@adacore.com>
4033
4034 * exp_ch5.adb: Minor reformatting.
4035
4036 2010-09-10 Thomas Quinot <quinot@adacore.com>
4037
4038 * scos.ads: Add comments.
4039
4040 2010-09-10 Vincent Celier <celier@adacore.com>
4041
4042 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4043
4044 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
4045
4046 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4047 for a controlled build-in-place function call which appears in an
4048 anonymous context. The transient scope ensures that the intermediate
4049 function result is cleaned up after the master is left.
4050 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4051 of the transient scope. This is now done in Exand_Call which covers
4052 additional cases other than secondary stack release.
4053
4054 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4055
4056 * sem.adb (Do_Unit_And_Dependents): Add guard.
4057
4058 2010-09-10 Robert Dewar <dewar@adacore.com>
4059
4060 * exp_ch5.adb: Update comments.
4061 * exp_dist.adb: Minor reformatting.
4062
4063 2010-09-10 Robert Dewar <dewar@adacore.com>
4064
4065 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4066 gap warnings.
4067 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4068 * usage.adb: Add lines for -gnatw.h/H
4069 * gnat_ugn.texi: Add documentation for J519-010
4070 Warn on record holes/gaps
4071 * ug_words: Add entries for -gnatw.h/-gnatw.H
4072 * vms_data.ads: Add entries for [NO]AVOIDGAPS
4073
4074 2010-09-10 Gary Dismukes <dismukes@adacore.com>
4075
4076 * sem_ch6.adb: Update comment.
4077
4078 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4079
4080 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4081 of full view analyzed after analyzing the corresponding record
4082 declaration, to prevent spurious name conflicts with original
4083 declaration.
4084
4085 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4086
4087 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4088 just issue a warning, but continue with the normal processing.
4089
4090 2010-09-10 Robert Dewar <dewar@adacore.com>
4091
4092 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4093 reformatting.
4094
4095 2010-09-10 Thomas Quinot <quinot@adacore.com>
4096
4097 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4098 Build_TypeCode_Call): For a subtype inserted for the expansion of a
4099 generic actual type, go to the underlying type of the original actual
4100 type.
4101
4102 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4103
4104 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4105 guard around the increment statement, to prevent an off-by-one-value
4106 on the last iteration.
4107
4108 2010-09-10 Vincent Celier <celier@adacore.com>
4109
4110 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4111 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4112 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4113 "at run time" in comments and error/warning messages.
4114
4115 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4116
4117 * exp_cg.adb: Handle properly bodies without specs.
4118
4119 2010-09-10 Emmanuel Briot <briot@adacore.com>
4120
4121 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4122 present, and the user requested to either ignore this or display a
4123 warning (as opposed to an error), we still need to register the
4124 directory.
4125
4126 2010-09-10 Robert Dewar <dewar@adacore.com>
4127
4128 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4129 now done in In_Extended_Main_Source_Unit.
4130 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4131 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4132 as Parsing_Main_Extended_Source.
4133 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4134 unit.
4135 * lib-load.adb (Load_Unit): Add PMES parameter
4136 Set PMES appropriately in all calls to Load_Unit
4137 * lib-load.ads (Load_Unit): Add PMES parameter
4138 * lib.adb (In_Extended_Main_Source_Unit): When called with
4139 Compiler_State set to Parsing, test new flag
4140 Compiling_Main_Extended_Source.
4141 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4142 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4143 as Parsing_Main_Extended_Source
4144 * par-load.adb (Load): Set PMES properly in call to Load_Unit
4145
4146 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4147
4148 * exp_cg.adb: Use proper entity to handle overloads.
4149 * sem_res.adb (Check_Parameterless_Call): An operator node without
4150 actuals cannot be a call, and must be treated as a string.
4151
4152 2010-09-10 Robert Dewar <dewar@adacore.com>
4153
4154 * frontend.adb: Minor reformatting.
4155
4156 2010-09-10 Robert Dewar <dewar@adacore.com>
4157
4158 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4159 * par-ch5.adb (P_Condition): Move from body to spec
4160 * par.adb (Ch5.P_Condition): Move from body to spec
4161
4162 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4163
4164 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4165 the call table is private, use its full view to generate information
4166 on its operations.
4167
4168 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4169
4170 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4171 pattern matching to detect predefined primitive operations take into
4172 account that there can be an extra suffix related to body-nested
4173 package entities.
4174
4175 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4176
4177 * s-pooglo.ads: Add overriding indicators.
4178
4179 2010-09-10 Vincent Celier <celier@adacore.com>
4180
4181 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4182 /64_MALLOC (for -H64).
4183
4184 2010-09-10 Robert Dewar <dewar@adacore.com>
4185
4186 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4187 (Error_Msg_NW): Test Parsing_Main_Subunit flag
4188 * errout.ads (Parsing_Main_Subunit): New flag
4189 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4190 * par-ch6.adb: Minor style fix (remove redandant parentheses)
4191 * par-ch9.adb: Minor style fix (remove redundant parens)
4192 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4193
4194 2010-09-10 Vincent Celier <celier@adacore.com>
4195
4196 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4197 function of the same name in Makeutl.
4198 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4199 of removed procedure when creating a binder mapping file.
4200 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4201 procedure in Make.
4202 * makeutl.ads (Create_Binder_Mapping_File): New function
4203
4204 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4205
4206 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4207 separator when trying the pattern matching to detect predefined
4208 primitive operations.
4209
4210 2010-09-10 Robert Dewar <dewar@adacore.com>
4211
4212 * bindgen.adb, atree.adb: Minor reformatting.
4213
4214 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4215
4216 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4217 OpenVMS" section.
4218
4219 2010-09-10 Doug Rupp <rupp@adacore.com>
4220
4221 * bindgen.adb: Minor comment fix for -H switch.
4222
4223 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4224
4225 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4226 library unit now, by traversing tree before context is expanded.
4227 (Write_Call_Info): Use enclosing unit name directly.
4228 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4229 tree earlier, to ensure that subsequent declarations are analyzed in a
4230 connected structure.
4231 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4232 list.
4233
4234 2010-09-10 Robert Dewar <dewar@adacore.com>
4235
4236 * symbols-processing-vms-alpha.adb: Minor reformatting.
4237
4238 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4239
4240 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4241 __gnat_install_handler in case the binder is called with -n.
4242
4243 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4244
4245 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4246 sloc for renaming declaration and set Comes_From_Source properly to
4247 ensure that references are properly generated for an object declaration
4248 that is built in place.
4249
4250 2010-09-10 Tristan Gingold <gingold@adacore.com>
4251
4252 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4253 tool.
4254 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4255 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4256 Make-generated.in
4257
4258 2010-09-10 Bob Duff <duff@adacore.com>
4259
4260 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4261 := ...;", remove side effects from the right-hand side, because they
4262 might affect the value of the left-hand side, but the left-hand side is
4263 first READ (so we can do shifting and masking) and then written back,
4264 which would cause the side effects to be incorrectly overwritten.
4265
4266 2010-09-10 Robert Dewar <dewar@adacore.com>
4267
4268 * sem_ch4.adb: Minor reformatting.
4269 * exp_ch6.adb: Add comment on testing limited on full type
4270 * gnat_rm.texi: Add documentation on Pure_Function.
4271
4272 2010-09-10 Vincent Celier <celier@adacore.com>
4273
4274 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4275 as a source of another project and of another language.
4276
4277 2010-09-10 Robert Dewar <dewar@adacore.com>
4278
4279 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4280 errors.
4281 * freeze.adb (Check_Unsigned_Type): Ditto.
4282 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4283 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4284 (Set_Scalar_Range_For_Subtype): Ditto.
4285 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4286
4287 2010-09-10 Robert Dewar <dewar@adacore.com>
4288
4289 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4290 types.
4291 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4292 rather than parens for fixed constants.
4293 * sprint.ads: Use square brackets rather than parens for fixed constants
4294 * urealp.adb (UR_Write): Use square brackets rather than parens
4295 (UR_Write): Add Brackets argument
4296 (UR_Write): Add many more special cases to output literals
4297 * urealp.ads (UR_Write): Use square brackets rather than parens
4298 (UR_Write): Add Brackets argument
4299
4300 2010-09-10 Robert Dewar <dewar@adacore.com>
4301
4302 * sem_ch4.adb: Minor reformatting.
4303
4304 2010-09-10 Richard Guenther <rguenther@suse.de>
4305
4306 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4307
4308 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4309
4310 * vms_cmds.ads: New.
4311
4312 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4313
4314 * exp_dbug.ads: Mention enhanced encoding for array types.
4315
4316 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4317
4318 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4319 unsupported in VM targets. Display a warning in this case.
4320
4321 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4322
4323 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4324 not reset Sloc when printing keyword "new".
4325
4326 2010-09-10 Vincent Celier <celier@adacore.com>
4327
4328 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4329 GNAT_DRIVER_COMMAND_LINE.
4330
4331 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4332
4333 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4334 clause, process the body at once.
4335
4336 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4337
4338 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4339 conversion is the expression is a qualified expression used to
4340 disambiguate a function call.
4341
4342 2010-09-10 Vincent Celier <celier@adacore.com>
4343
4344 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4345 as a source of another project and of another language.
4346
4347 2010-09-10 Robert Dewar <dewar@adacore.com>
4348
4349 * prj-util.adb: Minor reformatting.
4350
4351 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4352
4353 * exp_disp.adb: Minor reformatting.
4354
4355 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4356
4357 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4358 CodePeer mode.
4359
4360 2010-09-10 Thomas Quinot <quinot@adacore.com>
4361
4362 * sem_res.adb: Minor reformatting.
4363 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4364 magic constants for task master levels (instead, reference
4365 named numbers from System.Tasking).
4366
4367 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4368
4369 * gnatvsn.ads (Ver_Prefix): New constant string.
4370 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4371 (Gen_Output_File_C): Likewise.
4372 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4373 in comment.
4374
4375 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4376
4377 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4378 unit, to prevent spurious circularities in the walk order.
4379 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4380 of an ancestor of the main unit depends on a child of the main unit.
4381
4382 2010-09-10 Robert Dewar <dewar@adacore.com>
4383
4384 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4385 sem_ch3.adb: Minor reformatting.
4386
4387 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4388
4389 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4390 that is a renaming must be derived like any other primitive operation,
4391 the renamed operation is not relevant to the derivation.
4392
4393 2010-09-10 Robert Dewar <dewar@adacore.com>
4394
4395 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4396 * checks.adb: Minor reformatting.
4397
4398 2010-09-10 Robert Dewar <dewar@adacore.com>
4399
4400 * gnat_ugn.texi: Add section on intent of style checking options.
4401
4402 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4403
4404 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4405
4406 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4407
4408 * sem_ch3.adb: Improve error message on derivation from class-wide type
4409
4410 2010-09-10 Steve Baird <baird@adacore.com>
4411
4412 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4413 generation when Generate_SCIL is True.
4414
4415 2010-09-10 Geert Bosch <bosch@adacore.com>
4416
4417 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4418 validity of executable name and removing any existing executable
4419 (Gnatlink): Call Check_Existing_Executable.
4420
4421 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4422
4423 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4424 initialization of Task_Alternate_Stack here, cleaner since in case of
4425 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4426 implicitly.
4427
4428 2010-09-10 Thomas Quinot <quinot@adacore.com>
4429
4430 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4431
4432 2010-09-10 Emmanuel Briot <briot@adacore.com>
4433
4434 * prj-util.adb (Executable_Of): Fix CE when the project does not
4435 contain a Builder package.
4436
4437 2010-09-10 Vincent Celier <celier@adacore.com>
4438
4439 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4440 to the project path, if Prefix and Target_Name are defined.
4441 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4442
4443 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4444
4445 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4446 or short-circuit operation, do no emit a validity check: only the
4447 elementary operands of the expression need checking.
4448
4449 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4450
4451 * gnat_rm.texi: Document Short_Descriptors.
4452
4453 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4454
4455 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4456 initialize to Null_Address.
4457 (Enter_Task): Do not set up an alternate stack for foreign threads.
4458
4459 2010-09-10 Robert Dewar <dewar@adacore.com>
4460
4461 * opt.adb (Short_Descriptors): New flag
4462 (Short_Descriptors_Config): New flag
4463 * opt.ads (Short_Descriptors): New flag
4464 (Short_Descriptors_Config): New flag
4465 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4466 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4467 (Analyze_Pragma): Implement Short_Descriptors pragma
4468 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4469
4470 2010-09-10 Emmanuel Briot <briot@adacore.com>
4471
4472 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4473 project's Executable_Suffix.
4474
4475 2010-09-10 Robert Dewar <dewar@adacore.com>
4476
4477 * g-pehage.ads: Minor reformatting
4478
4479 * gnat_ugn.texi: Clarifying comment on -gnatyc
4480 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4481 arguments.
4482
4483 2010-09-10 Tristan Gingold <gingold@adacore.com>
4484
4485 * Make-generated.in (gnat.hlp): New rule.
4486
4487 2010-09-10 Emmanuel Briot <briot@adacore.com>
4488
4489 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4490 Include_Suffix.
4491
4492 2010-09-10 Robert Dewar <dewar@adacore.com>
4493
4494 * einfo.adb: Minor code cleanup: Add assertion to
4495 Set_Corresponding_Protected_Entry.
4496
4497 2010-09-10 Bob Duff <duff@adacore.com>
4498
4499 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4500 the output to standard output.
4501
4502 2010-09-09 Vincent Celier <celier@adacore.com>
4503
4504 * gnat_ugn.texi: Add documentation for new gnatmake switch
4505 --create-map-file.
4506 * make.adb (Map_File): New global variable to store the value of switch
4507 --create-map-file.
4508 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4509 been specified.
4510 (Scan_Make_Arg): Recognize switch --create-map-file
4511 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4512 gnatmake and gprbuild switch --create-map-file.
4513
4514 2010-09-09 Robert Dewar <dewar@adacore.com>
4515
4516 * sinput-p.ads: Minor comment update.
4517
4518 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4519
4520 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4521 Entry_Call.State if needed so that the call is marked as cancelled by
4522 Check_Pending_Actions_For_Entry_Call.
4523 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4524 this procedure may be called from a controlled operation
4525 (Initialize/Finalize).
4526
4527 2010-09-09 Vadim Godunko <godunko@adacore.com>
4528
4529 * impunit.adb: Correct spelling of package's name in the comment.
4530
4531 2010-09-09 Robert Dewar <dewar@adacore.com>
4532
4533 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4534 Minor reformatting
4535
4536 2010-09-09 Robert Dewar <dewar@adacore.com>
4537
4538 * impunit.adb: Add entry for a-izteio.
4539 * checks.adb: Add comment.
4540 * debug.adb, exp_disp.adb: Minor reformatting.
4541 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4542
4543 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4544
4545 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4546 discriminant cannot be assumed to be the same value because they may
4547 refer to bounds of a component of two different instances of a
4548 discriminated type.
4549
4550 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4551
4552 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4553 operands of an operator to the type of an enclosing conversion, rewrite
4554 the operator so the conversion can't be flagged as redundant.
4555 Remove useless assignments to Typ and Rtyp.
4556
4557 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4558
4559 * gnat_ugn.texi: Fix another long line.
4560
4561 2010-09-09 Bob Duff <duff@adacore.com>
4562
4563 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4564 but never assigned.
4565
4566 2010-09-09 Matthew Heaney <heaney@adacore.com>
4567
4568 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4569 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4570 Replace_Element, Reverse_Elements, Swap): Change exception message to
4571 correctly indicate kind of tampering (cursor or element).
4572 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4573 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4574 Swap_Links, Replace_Element, Swap): Ditto.
4575 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4576 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4577 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4578 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4579 Generic_Replace_Element): Ditto
4580 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4581 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4582 Replace_Element): Ditto.
4583 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4584 Symmetric_Difference, Union, Include, Replace): Ditto
4585
4586 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4587
4588 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4589 that its entity_or_associated_node is an entity before writing it out.
4590 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4591 constructors, there is no need for a dispatch table pointer because the
4592 table is fully inherited from the C++ code.
4593
4594 2010-09-09 Thomas Quinot <quinot@adacore.com>
4595
4596 * projects.texi: Fix wrong identifiers on package end lines in project
4597 files examples.
4598 * exp_ch6.adb: Minor reformatting.
4599
4600 2010-09-09 Tristan Gingold <gingold@adacore.com>
4601
4602 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4603
4604 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4605
4606 * gnat_ugn.texi: Fix description of -O3 optimization level.
4607
4608 2010-09-09 Yannick Moy <moy@adacore.com>
4609
4610 * a-cihama.adb, a-cohama.adb: Fix comments.
4611
4612 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4613
4614 * i-cexten.ads: Add comments.
4615 (Signed_128): New type, used by some C bindings.
4616 * debug.adb: Update comment.
4617
4618 2010-09-09 Sergey Rybin <rybin@adacore.com>
4619
4620 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4621 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4622 the tool should process Ada 2005 sources.
4623
4624 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4625
4626 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4627 instance is a block, examine the enclosing scope to determine if it is
4628 a parent instance.
4629
4630 2010-09-09 Doug Rupp <rupp@adacore.com>
4631
4632 * sem_prag.adb (pragma Ident): Pass --identification= vice
4633 IDENTIFICATION=
4634 * gnatlink.adb (Linker_Options): Look for --identification= vice
4635 IDENTIFICATION=
4636
4637 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4638
4639 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4640 inserting and analyzing the object declaration for the temporary object
4641 created to hold a 'Old value, push the scope for the subprogram where
4642 the object is inserted, so that its Scope (and that of related objects)
4643 will be set properly.
4644
4645 2010-09-09 Vincent Celier <celier@adacore.com>
4646
4647 * prj.adb (Get_Object_Directory): Return object directory display name
4648 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4649 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4650 return this value, otherwise return the default for the platform.
4651
4652 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4653
4654 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4655 dependencies. Remove handling of gnatlbr.
4656 Do not remove s-stratt-xdr for the run-time when installing.
4657
4658 2010-09-09 Robert Dewar <dewar@adacore.com>
4659
4660 * sem_attr.adb: Minor reformatting.
4661
4662 2010-09-09 Thomas Quinot <quinot@adacore.com>
4663
4664 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4665 unsigned long, not an int.
4666
4667 2010-09-09 Vincent Celier <celier@adacore.com>
4668
4669 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4670 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4671 we are not checking for equality of path or file names.
4672
4673 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4674
4675 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4676 array reference, reset the Analyzed flag so that it is properly
4677 expanded when the resulting object declaration is analyzed.
4678
4679 2010-09-09 Vincent Celier <celier@adacore.com>
4680
4681 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4682 No_Source_File.
4683
4684 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4685
4686 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4687 VX_SPE_TASK option, so disable it.
4688
4689 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4690
4691 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4692 main unit.
4693 (Is_Subunit_Of_Main): Handle null nodes properly.
4694
4695 2010-09-09 Robert Dewar <dewar@adacore.com>
4696
4697 * par-ch2.adb: Update comments.
4698
4699 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4700
4701 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4702
4703 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4704
4705 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4706 do not generate an error for compatibility with legacy code.
4707 ignored when generating SCIL.
4708 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4709
4710 2010-09-09 Thomas Quinot <quinot@adacore.com>
4711
4712 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4713 s-strxdr.adb to s-stratt-xdr.adb
4714
4715 2010-09-09 Robert Dewar <dewar@adacore.com>
4716
4717 * ali-util.adb (Obsolescent_Check): Removed.
4718 * gprep.adb (Obsolescent_Check): Removed.
4719 Remove Obsolescent_Check parameter in Scng instantiation
4720 * prj-err.adb (Obsolescent_Check): Removed.
4721 * prj-err.ads (Obsolescent_Check): Removed.
4722 Remove Obsolescent_Check parameter in Scng instantiation
4723 * scans.ads (Based_Literal_Uses_Colon): New flag
4724 * scn.adb (Obsolscent_Check_Flag): Removed
4725 (Obsolscent_Check): Removed
4726 (Set_Obsolescent_Check): Removed
4727 (Post_Scan): Add handling for obsolescent features
4728 * scn.ads (Obsolscent_Check): Removed
4729 (Set_Obsolescent_Check): Removed
4730 (Post_Scan): Can no longer be inlined
4731 Remove Obsolescent_Check from instantiation of Scng
4732 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4733 (Nlit): Remove handling of obsolescent check
4734 (Scan, case '%'): Remove handling of obsolescent check
4735 (Scan, case '|'): Call Post_Scan
4736 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4737 * scng.ads Remove Obsolescent_Check argument from Scng generic
4738 (Post_Scan): Now called for Tok_Vertical_Bar
4739 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4740
4741 2010-09-09 Doug Rupp <rupp@adacore.com>
4742
4743 * gnatlbr.adb: Removed.
4744 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4745
4746 2010-09-09 Robert Dewar <dewar@adacore.com>
4747
4748 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4749 conversions.
4750
4751 2010-09-09 Vincent Celier <celier@adacore.com>
4752
4753 * gnatlbr.adb: Remove redundant conversions.
4754
4755 2010-09-09 Vincent Celier <celier@adacore.com>
4756
4757 * prj-proc.adb: Minor comment spelling error fix.
4758 * osint.ads (Env_Vars_Case_Sensitive): Use function
4759 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4760 compute value.
4761
4762 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4763
4764 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4765 resolution of conditional expressions whose dependent expressions are
4766 anonymous access types.
4767
4768 2010-09-09 Robert Dewar <dewar@adacore.com>
4769
4770 * a-ststio.adb: Minor code reorganization.
4771 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4772 conversion.
4773 * types.ads: Minor reformatting.
4774 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4775 redundant conversions.
4776 * output.adb: Minor reformatting.
4777 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4778 types.
4779 * opt.ads: Add pragma Ordered for Verbosity_Level.
4780 * prj.ads: Add pragma Ordered for type Verbosity.
4781
4782 2010-09-09 Vincent Celier <celier@adacore.com>
4783
4784 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4785 System.Case_Util
4786 (Canonical_Case_Env_Var_Name): Ditto
4787
4788 2010-09-09 Bob Duff <duff@adacore.com>
4789
4790 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4791
4792 2010-09-09 Robert Dewar <dewar@adacore.com>
4793
4794 * cstand.adb: Mark Boolean and Character types as Ordered
4795 * einfo.adb (Has_Pragma_Ordered): New flag
4796 * einfo.ads (Has_Pragma_Ordered): New flag
4797 * g-calend.ads: Mark Day_Name as Ordered
4798 * opt.ads: Mark Ada_Version_Type as Ordered
4799 (Warn_On_Unordered_Enumeration_Type): New flag
4800 * par-prag.adb: Add procdessing for pragma Ordered
4801 * s-ficobl.ads (Read_File_Mode): New subtype
4802 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4803 * s-taskin.ads: Mark Entry_Call_State as ordered
4804 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4805 Has_Pragma_Ordered.
4806 * sem_ch6.ads: Mark Conformance_Type as Ordered
4807 * sem_prag.adb: Implement pragma Ordered
4808 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4809 (Resolve_Comparison_Op): Diagnose unordered comparison
4810 (Resolve_Range): Diagnose unordered range
4811 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4812 -gnatw.u/U)
4813 * snames.ads-tmpl: Add entry for pragma Ordered
4814 * style.ads (Check_Enumeration_Subrange): Removed
4815 * styleg.adb (Check_Enumeration_Subrange): Removed
4816 * styleg.ads (Check_Enumeration_Subrange): Removed
4817 * stylesw.adb: Remove handling of -gnatyE switch
4818 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4819 * vms_data.ads: Remove -gnatyE entries
4820 Add -gnatw.u entries
4821 * ug_words: Entries for -gnatw.u and -gnatw.U
4822 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4823 * gnat_rm.texi: Document pragma Ordered.
4824 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4825 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4826
4827 2010-09-09 Vincent Celier <celier@adacore.com>
4828
4829 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4830 for VMS and Windows, and 1 for all other platforms.
4831 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4832 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4833 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4834 Canonical_Case_File_Name, as we are dealing with environment variables,
4835 not files.
4836
4837 2010-09-09 Robert Dewar <dewar@adacore.com>
4838
4839 * sem_util.adb: Minor reformatting
4840
4841 2010-09-09 Vincent Celier <celier@adacore.com>
4842
4843 * vms_data.ads: Add documentation for S_Make_Single.
4844
4845 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4846
4847 * sem_util.adb (Same_Object): include formal parameters.
4848
4849 2010-09-09 Vincent Celier <celier@adacore.com>
4850
4851 * make.adb (Queue): New package implementing a new impementation of the
4852 queue, taking into account the new switch --single-compile-per-obj-dir.
4853 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4854 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4855 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4856 False.
4857 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4858 switch --single-compile-per-obj-dir.
4859 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4860 switch --single-compile-per-obj-dir.
4861 * gnat_ugn.texi: Add documentation for new gnatmake switch
4862 --single-compile-per-obj-dir.
4863
4864 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4865
4866 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4867
4868 2010-09-09 Javier Miranda <miranda@adacore.com>
4869
4870 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4871 (Replace_Type): Code cleanup.
4872 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4873
4874 2010-09-09 Thomas Quinot <quinot@adacore.com>
4875
4876 * exp_ch8.adb: Minor reformatting.
4877
4878 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4879
4880 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4881 Corresponding_Protected_Entry.
4882
4883 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4884
4885 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4886 inequality, it is always rewritten as the negation of the corresponding
4887 equality operation.
4888 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4889 the predefined equality of an untagged record, create a body at the
4890 point of the renaming, to capture the current meaning of equality for
4891 the type.
4892
4893 2010-09-09 Robert Dewar <dewar@adacore.com>
4894
4895 * sem.adb, sem_warn.adb: Minor reformatting.
4896
4897 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4898
4899 * sem_ch6.adb: Improve error message on untagged equality.
4900 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4901
4902 2010-09-09 Javier Miranda <miranda@adacore.com>
4903
4904 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4905
4906 2010-09-09 Robert Dewar <dewar@adacore.com>
4907
4908 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4909
4910 2010-09-09 Robert Dewar <dewar@adacore.com>
4911
4912 * einfo.adb (Is_Aggregate_Type): New function.
4913 * einfo.ads (Aggregate_Kind): New enumeration subtype
4914 (Is_Aggregate_Type): New function.
4915 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4916 Is_Aggregate_Typea.
4917
4918 2010-09-09 Robert Dewar <dewar@adacore.com>
4919
4920 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4921 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4922 where appropriate.
4923 * restrict.ads, restrict.adb: Ditto.
4924 (Restriction_Check_Needed): New function
4925
4926 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4927
4928 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4929 Build_Master_Entity, to find the proper scope for the master entity of
4930 a type that may contain tasks, in the presence of transient scopes.
4931 * exp_ch9.adb (Build_Master_Entity) Use new function.
4932 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4933
4934 2010-09-09 Vincent Celier <celier@adacore.com>
4935
4936 * prj-attr.adb: Add new attributes Leading_Library_Options and
4937 Linker'Leading_Switches.
4938 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4939 Leading_Switches.
4940
4941 2010-09-09 Javier Miranda <miranda@adacore.com>
4942
4943 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4944 dispatching primitive covers some interface primitive is incomplete.
4945 Replace such code by the invocation of a new subprogram that provides
4946 this functionality.
4947 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4948 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4949 (Check_Convention): Complete if-statement conditition when reporting
4950 errors (to avoid assertion failure).
4951 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4952 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4953 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4954 overridden null interface primitives.
4955 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4956 private type is an interface then use the parent of its full view to
4957 climb to its ancestor type.
4958 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4959 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4960 null interface primitives.
4961 (Is_Null_Interface_Primitive): New subprogram.
4962 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4963 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4964 subprograms because they are now generated by Analyze_Freeze_Entity.
4965
4966 2010-09-09 Robert Dewar <dewar@adacore.com>
4967
4968 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4969
4970 2010-09-09 Robert Dewar <dewar@adacore.com>
4971
4972 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4973 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4974 (Set_String_Replace): New procedure
4975 * casing.ads (Known_Casing): New subtype declaration
4976 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4977 declaration
4978 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4979 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4980 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4981 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4982 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4983 ranges.
4984 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4985 rule.
4986 * sem_type.adb (Is_Array_Class_Record_Type): New.
4987 * style.ads (Check_Enumeration_Subrange): New procedure
4988 * styleg.adb (Check_Enumeration_Subrange): New procedure
4989 * styleg.ads (Check_Enumeration_Subrange): New procedure
4990 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4991 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4992 * usage.adb: Add line for -gnatyE
4993 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4994 Add missing entry for NOBOOLEAN_OPERATORS
4995 * gnat_ugn.texi: Add documentation for -gnatyE
4996
4997 2010-09-09 Robert Dewar <dewar@adacore.com>
4998
4999 * namet.adb (Initialize): Is now a dummy procedure
5000 (Reinitialize): New procedure
5001 Call Reinitialize from package initialization
5002 * namet.ads (Initialize): Is now a dummy procedure
5003 (Reinitialize): New procedure
5004 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
5005 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
5006 Namet.Initialize.
5007
5008 2010-09-09 Bob Duff <duff@adacore.com>
5009
5010 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
5011
5012 2010-09-09 Robert Dewar <dewar@adacore.com>
5013
5014 * s-bitops.adb (Raise_Error): Add exception message
5015
5016 2010-09-09 Robert Dewar <dewar@adacore.com>
5017
5018 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5019 null statement after label.
5020 * sinfo.ads: Minor comment updates.
5021
5022 2010-09-09 Robert Dewar <dewar@adacore.com>
5023
5024 * nlists.ads, nlists.adb (In_Same_List): New function.
5025 Use Node_Or_Entity_Id where appropriate.
5026 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5027
5028 2010-09-09 Robert Dewar <dewar@adacore.com>
5029
5030 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5031 procedure.
5032 * sem_ch3.adb: Use Check_Wide_Character_Restriction
5033 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5034 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5035 (Find_Expanded_Name): Check violation of No_Wide_Characters
5036
5037 2010-09-09 Robert Dewar <dewar@adacore.com>
5038
5039 * par-ch5.adb: Minor reformatting.
5040
5041 2010-09-09 Robert Dewar <dewar@adacore.com>
5042
5043 * prj-env.adb: Minor code reorganization.
5044 * par-ch3.adb: Minor reformatting.
5045 * gcc-interface/Make-lang.in: Update dependencies.
5046
5047 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5048
5049 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5050 a task declaration can be an entry body.
5051
5052 2010-09-09 Javier Miranda <miranda@adacore.com>
5053
5054 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5055 tags of library level tagged types.
5056 (Make_Tags): Disable backend optimizations about aliasing for
5057 declarations of access to dispatch tables.
5058
5059 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5060
5061 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5062 subtype for a null-excluding access type, recover the original
5063 subtype_mark to get the proper visibility on the original name.
5064
5065 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5066
5067 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5068 create the primitive equality operation for an untagged record. The
5069 operation is the predefined equality if no record component has a
5070 user-defined equality, or if there is a user-defined equality for the
5071 type as a whole, or when the type is derived and it has an inherited
5072 equality. Otherwise the body of the operations is built as for tagged
5073 types.
5074 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5075 (Make_Eq_Body): New function to create the expanded body of the
5076 equality operation for tagged and untagged records. In both cases the
5077 operation composes, and the primitive operation of each record
5078 component is used to generate the equality function for the type.
5079 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5080 has an abstract equality defined, replace its call with a
5081 Raise_Program_Error.
5082 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5083 user-defined equality operator for an untagged record type does not
5084 happen after type is frozen, and appears in the visible part if partial
5085 view of type is not limited.
5086
5087 2010-09-09 Tristan Gingold <gingold@adacore.com>
5088
5089 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5090
5091 2010-09-09 Bob Duff <duff@adacore.com>
5092
5093 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5094
5095 2010-09-09 Pascal Obry <obry@adacore.com>
5096
5097 * gnat_ugn.texi: Update doc on windows related topics.
5098
5099 2010-09-09 Geert Bosch <bosch@adacore.com>
5100
5101 * s-fatgen.adb: Update comments.
5102
5103 2010-09-09 Robert Dewar <dewar@adacore.com>
5104
5105 * par-ch4.adb (Box_Error): New procedure.
5106
5107 2010-09-09 Thomas Quinot <quinot@adacore.com>
5108
5109 * sem.adb: Minor reformatting.
5110
5111 2010-09-09 Pascal Obry <obry@adacore.com>
5112
5113 * prj-env.adb: Style fix, use /and then/ and /or else/.
5114 * gnat_ugn.texi: Fix typos.
5115
5116 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5117
5118 PR ada/45499
5119 * gcc-interface/misc.c (gnat_init_options): Allow options with
5120 empty canonical form. Generate a single save_argv element from -I
5121 options.
5122
5123 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5124
5125 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5126 Attach fake PARM_DECLs to the topmost block of the function.
5127
5128 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5129
5130 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5131 for the call to a function whose return type was unconstrained.
5132
5133 2010-08-30 Olivier Hainque <hainque@adacore.com>
5134
5135 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5136 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5137 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5138
5139 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
5140
5141 * tracebak.c: Fix typo in comment.
5142
5143 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5144
5145 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5146 * gcc-interface/trans.c: Likewise.
5147 * gcc-interface/utils.c: Likewise.
5148
5149 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
5150
5151 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5152
5153 2010-08-10 Robert Dewar <dewar@adacore.com>
5154
5155 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5156 * sem_util.adb: Minor reformatting.
5157
5158 2010-08-10 Javier Miranda <miranda@adacore.com>
5159
5160 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5161 constructors that leave the object partially initialized.
5162 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5163 that copies from parent of Typ the dispatch table slots of inherited
5164 C++ primitives. It handles primary and secondary dispatch tables.
5165 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5166 use this attribute with E_Variable entities.
5167 (Set_Is_Tag): Relax assertion to allow its use with variables that
5168 store tags.
5169 (Set_Related_Type): Relax assertion to allow its use with variables
5170 that store the tag of a C++ class.
5171 (Write_26_Field_Name): Remove Related_Type.
5172 (Write_27_Field_Name): Add Related_Type.
5173 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5174 with E_Variable entities.
5175 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5176 pragma.
5177 * sem_util.adb (Search_Tag): Add missing support for CPP types.
5178 (Enclosing_CPP_Parent): New subprogram.
5179 (Has_Suffix): New subprogram.
5180 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5181 closest ancestor of a type that is a C++ type.
5182 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5183 internal entities.
5184 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5185 instance in derivations of C++ types.
5186 * exp_tss.adb (CPP_Init_Proc): New subprogram.
5187 (Is_CPP_Init_Proc): New subprogram.
5188 (Set_TSS): Handle new C++ init routines.
5189 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5190 dispatch tables.
5191 (CPP_Init_Proc): New subprogram.
5192 (Is_CPP_Init_Proc): New subprogram.
5193 * exp_disp.adb (CPP_Num_Prims): New subprogram.
5194 (Has_CPP_Constructors): New subprogram.
5195 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5196 initialize slots located in the C++ part of the dispatch table.
5197 (Make_Tags): For CPP types declare variables used by the IP routine to
5198 store the C++ tag values after the first invocation of the C++
5199 constructor.
5200 (Build_CPP_Init_DT): New subprogram.
5201 (Set_CPP_Constructors): New implementation that builds an IP for each
5202 CPP constructor. These IP are wrappers of the C++ constructors that,
5203 after the first invocation of the constructor, read the C++ tags from
5204 the object and save them locally. These copies of the C++ tags are used
5205 by the IC routines to initialize tables of Ada derivations of CPP
5206 types.
5207 (Write_DT): Indicate what primitives are imported from C++
5208 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5209 (Has_CPP_Constructors): New subprogram.
5210 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5211 invoke the IC routine to inherit the slots of the parents.
5212 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5213 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5214 (Is_Variable_Size_Record): Factorize code calling
5215 Is_Variable_Size_Array.
5216 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5217 corresponding to the procedure that initializes the C++ part of the
5218 dispatch table of an Ada tagged type that is a derivation of a CPP
5219 type.
5220 (Build_Init_Procedure): Adding documentation plus code reorganization
5221 to leave more clear the construction of the IP with C++ types.
5222 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5223 it cannot be called after Make_Tags has been invoked.
5224 (Inherit_CPP_Tag): Removed.
5225 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5226 located at variable offset.
5227 * freeze.ads: Minor reformating.
5228 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5229 available in gdb.
5230 * gcc-interface/Make-lang.in: Update dependencies.
5231
5232 2010-08-10 Robert Dewar <dewar@adacore.com>
5233
5234 * a-chahan.ads: Add comments on handling of obsolescent entries.
5235 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5236 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5237 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5238 * sem_attr.adb (Analyze_Access_Attribute): Call
5239 Check_Obsolescent_2005_Entity to check for access to obsolescent
5240 Ada.Characters.Handling subprogram.
5241 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5242 type is obsolescent in Ada 2005.
5243 (Analyze_Attribute, case Constrained): Better placement of flag when
5244 flagged as obsolescent feature.
5245 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5246 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5247 is an obsolescent feature.
5248 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5249 feature.
5250 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5251 Check_Obsolescent_2005_Entity to check for renaming obsolete
5252 Ada.Characters.Handling subprogram.
5253 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5254 for obsolescent restrictions in Ada 2005.
5255 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5256 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5257 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5258 check for obsolescent references to Ada.Characters.Handling subprograms
5259
5260 2010-08-10 Robert Dewar <dewar@adacore.com>
5261
5262 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5263
5264 2010-08-10 Robert Dewar <dewar@adacore.com>
5265
5266 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5267 * par-ch4.adb: Change wording of Ada 2012 messages
5268 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5269
5270 2010-08-10 Robert Dewar <dewar@adacore.com>
5271
5272 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5273 codes in the range 16#80#..16#7FF#.
5274 * sem_ch10.adb: Minor reformatting.
5275
5276 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5277
5278 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5279 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5280 proceed further when possible
5281 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5282 messages when ignoring representation clauses (-gnatI).
5283
5284 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5285
5286 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5287 constant-fold discriminant reference if the constraint is an object
5288 with non-static expression. Expression may contain volatile references
5289 in the presence of renamings.
5290
5291 2010-08-10 Vincent Celier <celier@adacore.com>
5292
5293 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5294 returns Index.
5295 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5296 index for an associative array where it is allowed.
5297
5298 2010-08-10 Thomas Quinot <quinot@adacore.com>
5299
5300 * exp_attr.adb: Add comments.
5301
5302 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5303
5304 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5305
5306 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5307
5308 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5309
5310 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5311
5312 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5313 (build_vms_descriptor): Likewise.
5314
5315 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5316
5317 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5318 (build_vms_descriptor32): Adjust calls to it for new parameter.
5319 (build_vms_descriptor): Likewise.
5320
5321 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5322
5323 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5324 (build_variant_list): Take and return a VEC instead of a tree.
5325 (create_variant_part_from): Take a VEC instead of a tree for
5326 variant_list. Adjust accordingly.
5327 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5328
5329 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5330
5331 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5332 of alloca.
5333 (components_to_record): Likewise.
5334 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5335 * gcc-interface/utils.c (max_size): Likewise.
5336 (build_vms_descriptor32): Likewise.
5337 (build_vms_descriptor): Likewise.
5338
5339 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5340
5341 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5342 (build_subst_list): Return a VEC instead of a tree.
5343 (build_variant_list): Take a VEC for subst_list. Adjust
5344 accordingly.
5345 (create_field_decl_from): Likewise.
5346 (create_variant_part_from): Likewise.
5347 (copy_and_substitute_in_size): Likewise.
5348 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5349 Free the built vector.
5350
5351 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5352
5353 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5354 allocator for large imported objects.
5355
5356 2010-08-05 Robert Dewar <dewar@adacore.com>
5357
5358 * gnat1drv.adb: Minor reformatting.
5359
5360 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5361
5362 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5363 instantiation, process its body before the spec of the main unit,
5364 because it may contain subprograms invoked in the spec of main.
5365 * einfo.ads: Add documention of delayed freeze.
5366
5367 2010-08-05 Vincent Celier <celier@adacore.com>
5368
5369 * prj-nmsc.adb (Process_Linker): Take into account new values for
5370 attribute Response_File_Format.
5371 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5372 GCC_Object_List and GCC_Option_List.
5373
5374 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5375
5376 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5377 selected component that denotes a discriminant if it is the
5378 discriminant of a component of an unconstrained record type.
5379
5380 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5381
5382 * exp_util.adb (Insert_Actions): If the action appears within a
5383 conditional expression that is already analyzed, insert action further
5384 out.
5385
5386 2010-08-05 Robert Dewar <dewar@adacore.com>
5387
5388 * exp_ch4.adb: Minor reformatting.
5389
5390 2010-08-05 Thomas Quinot <quinot@adacore.com>
5391
5392 * exp_ch4.adb: Minor reformatting
5393 * gnat1drv.adb: Minor reformatting.
5394 Minor code reorganization (use Nkind_In).
5395
5396 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5397
5398 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5399 determine whether the expression in an address clause for an
5400 initialized object must be constant. Code moved from freeze.adb.
5401 (Remove_Side_Effects): When the temporary is initialized with a
5402 reference, indicate that the temporary is a constant as done in all
5403 other cases.
5404 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5405 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5406 If object does not need a constant address, remove side effects from
5407 address expression, so it is elaborated at the point of the address
5408 clause and not at the freeze point of the object, so that elaboration
5409 order is respected.
5410
5411 2010-08-05 Vincent Celier <celier@adacore.com>
5412
5413 * prj.adb (Is_Compilable): Return False for header files of non Ada
5414 languages.
5415
5416 2010-08-05 Emmanuel Briot <briot@adacore.com>
5417
5418 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5419 exec directory as a warning rather than an error.
5420
5421 2010-08-05 Thomas Quinot <quinot@adacore.com>
5422
5423 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5424 reformatting.
5425
5426 2010-08-05 Steve Baird <baird@adacore.com>
5427
5428 * exp_util.adb (Remove_Side_Effects): An access value which designates
5429 a volatile object of a nonvolatile type is prohibited.
5430 Do not call Make_Reference to construct a reference to such an object.
5431
5432 2010-08-05 Robert Dewar <dewar@adacore.com>
5433
5434 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5435 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5436 a-suewen.adb, a-suewen.ads: New files.
5437 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5438 encoding packages.
5439 * sem_elab.adb: Minor reformatting.
5440
5441 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5442
5443 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5444 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5445 in case of null Comp.
5446
5447 2010-08-05 Robert Dewar <dewar@adacore.com>
5448
5449 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5450
5451 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5452
5453 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5454 nested access type whose designated type has tasks or is a protected
5455 object when the restrictions No_Task_Hierarchy or
5456 No_Local_Protected_Objects apply. Add ??? comment.
5457 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5458 type is not a library-level type and No_Local_Protected_Objects applies.
5459 (Analyze_Task_Type): Give a warning when a task type is not a
5460 library-level type and No_Task_Hierarchy applies.
5461
5462 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5463
5464 * sem.adb: Minor reformatting
5465 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5466 mode, not useful.
5467
5468 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5469
5470 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5471 include expr.h.
5472 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5473 for the debug-only entity.
5474 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5475
5476 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5477
5478 * gcc-interface/lang-specs.h: Don't pass -a options.
5479
5480 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5481
5482 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5483 options. Check canonical_option_num_elements on options copied.
5484
5485 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5486
5487 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5488 return value type. Don't check for missing arguments here.
5489
5490 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5491
5492 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5493 (gnat_init_options): Update prototype. Reconstruct argv array
5494 from decoded options.
5495
5496 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5497
5498 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5499 case, merge the alias set of the old pointer type.
5500
5501 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5502
5503 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5504 and recurse only for multidimensional array types instead.
5505
5506 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5507
5508 PR ada/44892
5509 * gcc-interface/utils.c (convert): Fix thinko in test.
5510 (unchecked_convert): When converting from a scalar type to a type with
5511 a different size, pad to have the same size on both sides.
5512
5513 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5514
5515 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5516 equality for the component type of array types.
5517
5518 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5519
5520 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5521 * gcc-interface/trans.c: Likewise.
5522 * gcc-interface/utils.c: Likewise.
5523 * gcc-interface/utils2.c: Likewise.
5524
5525 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5526
5527 PR bootstrap/44458
5528 * gcc-interface/targtyps.c: Include tm_p.h.
5529 * gcc-interface/Make-lang.in: Update dependencies.
5530
5531 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5532
5533 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5534 CALL_EXPR.
5535
5536 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5537
5538 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5539 that includes toplev.h.
5540
5541 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5542
5543 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5544 Branch to common code handling the alignment of discrete types.
5545 <E_Signed_Integer_Type>: Likewise.
5546 <E_Modular_Integer_Type>: Likewise.
5547
5548 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5549
5550 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5551 (gnat_handle_option): Allocate only one element for gnat_argv.
5552 (gnat_init): Do not populate gnat_argv.
5553
5554 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5555
5556 * gcc-interface/trans.c: Do not include tree-flow.h.
5557 * gcc-interface/Make-lang.in: Adjust dependencies.
5558
5559 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5560
5561 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5562 of a TREE_LIST. Update comment.
5563 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5564 Adjust call to gnat_build_constructor.
5565 (Attribute_to_gnu): Likewise.
5566 (gnat_to_gnu): Likewise.
5567 (pos_to_constructor): Likewise.
5568 (extract_values): Likewise.
5569 * gcc-interface/utils.c (build_template): Likewise.
5570 (convert_vms_descriptor64): Likewise.
5571 (convert_vms_descriptor32): Likewise.
5572 (convert_to_fat_pointer): Likewise.
5573 (convert): Likewise.
5574 (unchecked_convert): Likewise.
5575 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5576 * gcc-interface/utils2.c (build_allocator): Likewise.
5577 (fill_vms_descriptor): Likewise.
5578 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5579 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5580 instead of TREE_LISTs.
5581
5582 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5583
5584 * gcc-interface/misc.c: Do not include except.h.
5585 * gcc-interface/Make-lang.in: Update dependencies.
5586
5587 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5588
5589 * gcc-interface/trans.c: Include tree-flow.h.
5590 (gnu_switch_label_stack): Delete.
5591 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5592 its associated block cannot fall through. Do not emit the final label
5593 if no cases branch to it.
5594 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5595
5596 2010-06-23 Thomas Quinot <quinot@adacore.com>
5597
5598 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5599 reference to a protected subprogram outside of the protected's scope,
5600 ensure the corresponding external subprogram is frozen before the
5601 reference.
5602
5603 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5604
5605 * sem_prag.adb: Fix typo in error message.
5606 * sem.adb: Refine previous change.
5607
5608 2010-06-23 Robert Dewar <dewar@adacore.com>
5609
5610 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5611 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5612 Implement Ada 2012 string encoding packages.
5613
5614 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5615
5616 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5617 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5618 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5619 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5620 files.
5621 * gcc-interface/Makefile.in: Enable use of above files.
5622
5623 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5624
5625 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5626 of address clauses if if Ignore_Rep_Clauses is active.
5627 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5628 remove address clause from tree so that it does not reach the backend.
5629
5630 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5631
5632 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5633 expand 'Valid from user code in CodePeer mode, will be handled by the
5634 back-end directly.
5635
5636 2010-06-23 Bob Duff <duff@adacore.com>
5637
5638 * g-comlin.ads: Minor comment improvements.
5639
5640 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5641
5642 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5643 component of a record type may be a user-defined operator that is
5644 rewritten as a function call.
5645
5646 2010-06-23 Bob Duff <duff@adacore.com>
5647
5648 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5649
5650 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5651
5652 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5653 label to the new sequence of statements. Set the sloc of the raise
5654 statement onto the new goto statements.
5655
5656 2010-06-23 Robert Dewar <dewar@adacore.com>
5657
5658 * a-stuten.ads, a-stuten.adb: New files.
5659 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5660 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5661
5662 2010-06-23 Robert Dewar <dewar@adacore.com>
5663
5664 * gnat_ugn.texi: Add documentation of -gnat12 switch
5665 Add documentation of -gnatX switch.
5666
5667 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5668
5669 * inline.ads: Include the current Ada_Version in the info for pending
5670 instance bodies, so that declaration and body are compiled with the
5671 same Ada_Version.
5672 * inline.adb: Move with_clause for Opt to spec.
5673 * sem_ch12.adb (Analyze_Package_Instantiation,
5674 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5675 Pending_Instantiation information.
5676 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5677 Inline_Package_Body): Use the Ada_Version present in the body
5678 information.
5679
5680 2010-06-23 Robert Dewar <dewar@adacore.com>
5681
5682 * usage.adb: Add documentation for -gnat12 switch.
5683 * errout.ads: Add VMS alias entry for -gnat12 switch
5684 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5685 Add documentation for pragma Extensions_Allowed.
5686 * opt.ads: Add entry for Ada 2012 mode.
5687 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5688 features.
5689 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5690 Ada_2012.
5691 * sem_ch13.adb: Add handling for Ada 2012 mode.
5692 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5693 * switch-c.adb: Add handling for -gnat12 switch.
5694 Implement -gnat2005 and -gnat2012.
5695 * usage.adb: Add documentation for -gnat12 switch.
5696 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5697
5698 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5699
5700 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5701 No_Task_Hierarchy restriction. Add comment.
5702 * exp_ch9.adb, exp_ch3.adb: Update comments.
5703
5704 2010-06-23 Robert Dewar <dewar@adacore.com>
5705
5706 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5707 * sem_res.adb: Add comments.
5708 * sem_util.adb: Minor reformatting. Add comments.
5709 Change increment on Actuals_In_Call table.
5710 * opt.ads: Minor: add 'constant'.
5711
5712 2010-06-23 Javier Miranda <miranda@adacore.com>
5713
5714 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5715 TSD to Null_Address if No_Dispatching_Calls is active.
5716
5717 2010-06-23 Vincent Celier <celier@adacore.com>
5718
5719 * a-comlin.ads: Indicate that use of this package is not supported
5720 during the elaboration of an auto-initialized Stand-Alone Library.
5721
5722 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5723
5724 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5725 alignment clause on a record type to determine if a component may be
5726 misaligned. The decision must be taken in the back-end where target
5727 alignment information is known.
5728
5729 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5730
5731 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5732 systematically in CodePeer mode to simplify generated code.
5733 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5734 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5735 No_Task_Hierarchy is set instead of crasshing.
5736
5737 2010-06-23 Thomas Quinot <quinot@adacore.com>
5738
5739 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5740 testing just Chars attribute when checking whether a given scope is
5741 System.
5742 * exp_ch4.adb, einfo.adb: Minor reformatting.
5743
5744 2010-06-23 Vincent Celier <celier@adacore.com>
5745
5746 PR ada/44633
5747 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5748 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5749 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5750
5751 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5752
5753 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5754 operation with a universal real operand, and the right operand is a
5755 range with universal bounds, find unique fixed point that may be
5756 candidate, and warn appropriately.
5757
5758 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5759
5760 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5761 properly the rare cases where VMS operators are visible through
5762 Extend_System, but the default System is being used and Address is a
5763 private type.
5764 * sem_util.adb: Widen predicate Is_VMS_Operator.
5765
5766 2010-06-23 Vincent Celier <celier@adacore.com>
5767
5768 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5769 and -gnateS.
5770
5771 2010-06-23 Olivier Hainque <hainque@adacore.com>
5772
5773 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5774 Interface_Name as foreign. These are GCC builtin imports for
5775 which Ada specific processing doesn't apply.
5776
5777 2010-06-23 Thomas Quinot <quinot@adacore.com>
5778
5779 * sem_ch12.adb: Minor reformatting.
5780
5781 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5782
5783 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5784 determine whether an intrinsic subprogram is VMS specific.
5785
5786 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5787
5788 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5789 is present in the entity.
5790
5791 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5792
5793 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5794 Fix handling of parameters.
5795 Add protection against unexpected cases.
5796 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5797 access level, since "A" suffix is already used elsewhere. Similarly,
5798 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5799 for xxx'Class.
5800
5801 2010-06-23 Thomas Quinot <quinot@adacore.com>
5802
5803 * sem_util.adb, sem_util.ads: Minor reformatting.
5804
5805 2010-06-23 Vincent Celier <celier@adacore.com>
5806
5807 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5808 the previous behavior of gprclean when there are missing files.
5809
5810 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5811
5812 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5813 generic body is not a fatal error.
5814 (Mark_Context): Handle properly names of child units.
5815 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5816 instantiations.
5817
5818 2010-06-23 Vincent Celier <celier@adacore.com>
5819
5820 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5821 non-empty line.
5822
5823 2010-06-23 Bob Duff <duff@adacore.com>
5824
5825 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5826 Memory_Space, because CPU_Time doesn't seem to provide any significant
5827 speed advantage in practice. Cleanup: Get rid of constant
5828 Default_Optimization; doesn't seem to add anything. Use case
5829 statements instead of if statements; seems cleaner.
5830
5831 2010-06-23 Olivier Hainque <hainque@adacore.com>
5832
5833 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5834 Wshadow instead of Wextra to guard warning on absence of internal
5835 builtin decl for an import. Fix use of quote in warning text.
5836 (intrin_arglists_compatible_p): Remove processing of integer trailing
5837 args on the Ada side. Fix use of literal > in warning text.
5838 (intrin_return_compatible_p): Never warn on "function imported as
5839 procedure". Defer the void/void case to the common type compatibility
5840 check.
5841 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5842 of GCC builtin imports.
5843
5844 2010-06-23 Olivier Hainque <hainque@adacore.com>
5845
5846 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5847 helper for ...
5848 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5849 functions, helpers for ...
5850 (intrin_profiles_compatible_p): New function, replacement for ...
5851 (compatible_signatures_p): Removed.
5852 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5853 attempt to bind an unregistered builtin function. When we have
5854 one, use it and warn on profile incompatibilities.
5855
5856 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5857
5858 * gcc-interface/Make-lang.in: Update dependencies.
5859
5860 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5861
5862 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5863 for a coextension in an object declaration is a concatenation, treat
5864 coextension as dynamic.
5865
5866 2010-06-23 Javier Miranda <miranda@adacore.com>
5867
5868 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5869 internal entities are added to the scope of the tagged type.
5870 (Derive_Subprograms): Do not stop derivation when we find the first
5871 internal entity that has attribute Interface_Alias. After the change
5872 done to Override_Dispatching_Operations it is no longer true that
5873 these primirives are always located at the end of the list of
5874 primitives.
5875 * einfo.ads (Primitive_Operations): Add documentation.
5876 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5877 primitive a prefix indicating its corresponding tagged type.
5878 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5879 entity covers the primitive of an interface that is not an ancestor of
5880 this tagged type then the new primitive is added at the end of the list
5881 of primitives. Required to fulfill the C++ ABI.
5882
5883 2010-06-23 Javier Miranda <miranda@adacore.com>
5884
5885 * atree.ads (Set_Reporting_Proc): New subprogram.
5886 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5887 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5888 to routines of package Scil_ll by indirect call to the registered
5889 subprogram.
5890 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5891 that is invoked when a node is allocated, replaced or rewritten.
5892 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5893 the SCIL node. Used as argument for Set_Reporting_Proc.
5894 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5895 is invoked by atree.
5896
5897 2010-06-23 Thomas Quinot <quinot@adacore.com>
5898
5899 * sem_ch3.ads: Minor reformatting.
5900
5901 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5902
5903 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5904 always analyze the generic body and instance, because it may be needed
5905 downstream.
5906 (Mark_Context): Prepend the with clauses for needed generic units, so
5907 they appear in a better order for CodePeer.
5908 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5909
5910 2010-06-23 Emmanuel Briot <briot@adacore.com>
5911
5912 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5913
5914 2010-06-23 Robert Dewar <dewar@adacore.com>
5915
5916 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5917
5918 2010-06-23 Thomas Quinot <quinot@adacore.com>
5919
5920 * a-tags.ads: Fix description of TSD structure.
5921
5922 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5923
5924 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5925 generic unit is needed prior to the unit containing an instantiation,
5926 search recursively the context of the generic to add other generic
5927 bodies that may be instantiated indirectly through the current instance.
5928
5929 2010-06-23 Robert Dewar <dewar@adacore.com>
5930
5931 * freeze.adb: Minor reformatting.
5932
5933 2010-06-23 Bob Duff <duff@adacore.com>
5934
5935 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5936
5937 2010-06-23 Vincent Celier <celier@adacore.com>
5938
5939 * make.adb (Compile_Sources): Complete previous change.
5940
5941 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5942
5943 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5944 Constrained extra formal.
5945
5946 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5947
5948 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5949 Initialize_Scalars are enabled, compile the generated equality function
5950 for a composite type with full checks enabled, so that validity checks
5951 are performed on individual components.
5952
5953 2010-06-23 Emmanuel Briot <briot@adacore.com>
5954
5955 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5956 Missing_Source_Files.
5957
5958 2010-06-23 Robert Dewar <dewar@adacore.com>
5959
5960 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5961
5962 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5963
5964 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5965 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5966 Clock (without delays) use a run time which is properly initialized.
5967
5968 2010-06-23 Vincent Celier <celier@adacore.com>
5969
5970 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5971 when -f -u and a main is specified on the command line. However,
5972 attempt to compile even when the ALI file is read-only when
5973 Must_Compile is True.
5974
5975 2010-06-23 Thomas Quinot <quinot@adacore.com>
5976
5977 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5978
5979 2010-06-23 Javier Miranda <miranda@adacore.com>
5980
5981 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5982 entities for parent types that are interfaces. Needed in generics to
5983 handle formals that implement interfaces.
5984 (Derive_Subprograms): Add assertion for derivation of tagged types that
5985 do not cover interfaces. For generics, complete code that handles
5986 derivation of type that covers interfaces because the previous
5987 condition was weak (it required only name consistency; arguments were
5988 not checked). Add new code to locate primitives covering interfaces
5989 defined in generic units or instantiatons.
5990 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5991 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5992 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5993 interfaces that are parents of the type because they share the primary
5994 dispatch table.
5995 (Register_Primitive): Do not register primitives of interfaces that
5996 are parents of the type.
5997 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5998 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5999 primitives skip primitives of interfaces that are parents of the type.
6000
6001 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6002
6003 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
6004 attribute cannot be constant-folded if an index type is a formal type,
6005 or is derived from one.
6006 * checks.adb (Determine_Range): ditto.
6007
6008 2010-06-23 Arnaud Charlet <charlet@adacore.com>
6009
6010 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
6011
6012 2010-06-23 Bob Duff <duff@adacore.com>
6013
6014 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6015 (Insert): Disallow nul characters.
6016 (misc output routines): Assert no nul characters.
6017
6018 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6019
6020 * exp_ch4.adb: Use predefined unsigned type in all cases.
6021
6022 2010-06-23 Bob Duff <duff@adacore.com>
6023
6024 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6025 * g-pehage.ads: Minor comment fixes.
6026 * g-pehage.adb: Minor: Add some additional debugging printouts under
6027 Verbose flag.
6028
6029 2010-06-23 Robert Dewar <dewar@adacore.com>
6030
6031 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6032 (Worse_Choice): Always prefer Pure/Preelab.
6033
6034 2010-06-23 Vincent Celier <celier@adacore.com>
6035
6036 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6037
6038 2010-06-23 Robert Dewar <dewar@adacore.com>
6039
6040 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6041 checking returns in generic case.
6042 (Check_Missing_Return): New procedure.
6043
6044 2010-06-23 Robert Dewar <dewar@adacore.com>
6045
6046 * bindgen.adb, switch-b.adb: Minor reformatting.
6047
6048 2010-06-23 Javier Miranda <miranda@adacore.com>
6049
6050 * frontend.adb (Frontend): Add call to initialize the new package
6051 SCIL_LL.
6052 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6053 Adjust_SCIL_Node.
6054 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6055 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6056 Adjust_SCIL_Node.
6057 * exp_util.adb (Insert_Actions): Remove code for
6058 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6059 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6060 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6061 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6062 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6063 * sinfo.ads (SCIL_Related_Node): Field removed.
6064 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6065 (N_SCIL_Tag_Init): Node removed.
6066 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6067 (Check_SCIL_Node): New implementation.
6068 (Find_SCIL_Node): Removed.
6069 * sem.adb (Analyze): Remove management of
6070 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6071 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6072 Adjust_SCIL_Node.
6073 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6074 Set_SCIL_Related_Node and avoid adding the SCIL node before the
6075 referenced node using Insert_Action because this is not longer
6076 required.
6077 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6078 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6079 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6080 Adjust_SCIL_Node.
6081 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6082 because we no longer require to generate the SCIL node before the call.
6083 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6084 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6085 nodes before the referenced node using Insert_Action because this
6086 is not longer required.
6087 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6088 update the SCIL_Node field.
6089 * sprint.adb (Sprint_Node_Actual): Remove code for
6090 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6091 * treepr.adb (Print_Node): Print the SCIL node field (if available).
6092 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6093 SCIL_Tag_Init nodes.
6094 * scil_ll.ads, scil_ll.adb: New files.
6095 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6096 dependencies.
6097
6098 2010-06-23 Robert Dewar <dewar@adacore.com>
6099
6100 * sem_ch6.adb: Minor reformatting.
6101
6102 2010-06-23 Doug Rupp <rupp@adacore.com>
6103
6104 * bindusg.adb (Display): Write -Hnn line.
6105 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
6106 necessary.
6107 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6108 valid values to 32 and 64.
6109 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6110 ENABLE, DISABLE as valid settings.
6111 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6112 * opt.ads (Heap_Size): New global variable.
6113 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
6114 TARGET_MALLOC64 check. Fix comment.
6115
6116 2010-06-23 Robert Dewar <dewar@adacore.com>
6117
6118 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6119 reformatting. Add comments.
6120 * errout.adb (Finalize): Properly adjust warning count when deleting
6121 continuations.
6122
6123 2010-06-22 Robert Dewar <dewar@adacore.com>
6124
6125 * errout.adb (Finalize): Set Prev pointers.
6126 (Finalize): Delete continuations for deletion by warnings off(str).
6127 * erroutc.ads: Add Prev pointer to error message structure.
6128
6129 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6130
6131 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6132 child unit, examine context of parent units to locate instantiated
6133 generics whose bodies may be needed.
6134 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6135 with_clause for the instantiated generic, examine the context of its
6136 parents, to set Withed_Body flag, so that it can be visited earlier.
6137 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6138 an unsigned type, use a type of the proper size for the intermediate
6139 value, to prevent alignment problems on unchecked conversion.
6140
6141 2010-06-22 Geert Bosch <bosch@adacore.com>
6142
6143 * s-rannum.ads Change Generator type to be self-referential to allow
6144 Random to update its argument. Use "in" mode for the generator in the
6145 Reset procedures to allow them to be called from the Ada.Numerics
6146 packages without tricks.
6147 * s-rannum.adb: Use the self-referencing argument to get write access
6148 to the internal state of the random generator.
6149 * a-nudira.ads: Make Generator a derived type of
6150 System.Random_Numbers.Generator.
6151 * a-nudira.adb: Remove use of 'Unrestricted_Access.
6152 Put subprograms in alpha order and add headers.
6153 * g-mbdira.ads: Change Generator type to be self-referential.
6154 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6155
6156 2010-06-22 Robert Dewar <dewar@adacore.com>
6157
6158 * freeze.adb: Minor reformatting
6159 Minor code reorganization (use Nkind_In and Ekind_In).
6160
6161 2010-06-22 Bob Duff <duff@adacore.com>
6162
6163 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
6164 -gnatc when a file is compiled that we cannot generate code for, not
6165 helpful and confusing.
6166
6167 2010-06-22 Vincent Celier <celier@adacore.com>
6168
6169 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6170 switches -gnatknn.
6171
6172 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6173
6174 * s-rannum.adb: Replace constants with commented symbols.
6175 * s-rannum.ads: Explain significance of the initial value of the data
6176 structure.
6177
6178 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6179
6180 * a-ngcoty.adb: Clarify comment.
6181
6182 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6183
6184 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6185 expansion for indexing packed arrays with small power-of-2 component
6186 sizes when the target is AAMP.
6187 (Expand_Packed_Element_Reference): Return without expansion for
6188 indexing packed arrays with small power-of-2 component sizes when the
6189 target is AAMP.
6190
6191 2010-06-22 Geert Bosch <bosch@adacore.com>
6192
6193 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6194 Float'Range.
6195
6196 2010-06-22 Robert Dewar <dewar@adacore.com>
6197
6198 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6199 updates.
6200
6201 2010-06-22 Doug Rupp <rupp@adacore.com>
6202
6203 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6204 packages.
6205 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6206 (pragma Ident): Add a default ident string in the private part.
6207
6208 2010-06-22 Robert Dewar <dewar@adacore.com>
6209
6210 * cstand.adb: Minor reformatting.
6211
6212 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6213
6214 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6215 recognize the Shift and Rotation intrinsics that are known to the
6216 compiler but have no interface name.
6217
6218 2010-06-22 Geert Bosch <bosch@adacore.com>
6219
6220 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6221 scaling in case of overflow or NaN results.
6222
6223 2010-06-22 Robert Dewar <dewar@adacore.com>
6224
6225 * cstand.adb: Complete previous change.
6226 * g-dirope.ads: Add comment.
6227 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6228
6229 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6230
6231 * cstand.adb: Add tree nodes for pragma Pack on string types.
6232
6233 2010-06-22 Javier Miranda <miranda@adacore.com>
6234
6235 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6236 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6237 formal of a primitive.
6238 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6239 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6240 formal of a primitive.
6241 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6242 to obtain the last formal of a primitive.
6243
6244 2010-06-22 Geert Bosch <bosch@adacore.com>
6245
6246 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6247 depending on __EMX__ or MSDOS being defined.
6248 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6249 * a-excpol-abort.adb: Update comment indicating users of the file.
6250 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6251 Windows.
6252 * env.c: Remove empty conditional for MSDOS.
6253 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6254 of OS/2 in comment.
6255
6256 2010-06-22 Robert Dewar <dewar@adacore.com>
6257
6258 * s-rannum.adb: Minor reformatting.
6259
6260 2010-06-22 Javier Miranda <miranda@adacore.com>
6261
6262 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6263 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6264 package Sem_Util to package Sem_Aux.
6265
6266 2010-06-22 Javier Miranda <miranda@adacore.com>
6267
6268 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6269 remove useless restriction on imported routines when building the
6270 dispatch tables.
6271
6272 2010-06-22 Robert Dewar <dewar@adacore.com>
6273
6274 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6275 types.
6276
6277 2010-06-22 Javier Miranda <miranda@adacore.com>
6278
6279 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6280 generic subprogram declarations to ensure proper context. Add missing
6281 support for generic actuals.
6282 (Try_Primitive_Operation): Add missing support for concurrent types
6283 that have no Corresponding_Record_Type. Required to diagnose errors
6284 compiling
6285 generics or when compiling with no code generation (-gnatc).
6286 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6287 the corresponding record type.
6288 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6289 documentation. Do minimum decoration when processing a primitive of a
6290 concurrent tagged type that covers interfaces. Required to diagnose
6291 errors in the Object.Operation notation compiling generics or under
6292 -gnatc.
6293 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6294 propagation of attribute Interface_List to the corresponding record.
6295 (Expand_N_Task_Type_Declaration): Code cleanup.
6296 (Expand_N_Protected_Type_Declaration): Code cleanup.
6297
6298 2010-06-22 Matthew Heaney <heaney@adacore.com>
6299
6300 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6301
6302 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6303
6304 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6305 that is able to produce all representable floating-point numbers in the
6306 unit interval. Remove template parameter Shift_Right, no longer used.
6307 * gnat_rm.texi: Document the period of the pseudo-random number
6308 generator under the description of its algorithm.
6309 * gcc-interface/Make-lang.in: Update dependencies.
6310
6311 2010-06-22 Thomas Quinot <quinot@adacore.com>
6312
6313 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6314 reference to discriminant (can be an expanded name as well as an
6315 identifier).
6316
6317 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6318
6319 * exp_ch6.adb: Clarify comment.
6320
6321 2010-06-22 Geert Bosch <bosch@adacore.com>
6322
6323 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6324 with decimal small as decimal types, avoiding FP arithmetic.
6325 (Has_Decimal_Small): New function.
6326 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6327 fixed point types.
6328 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6329 callers to call the new function in Einfo that takes the entity as
6330 parameter.
6331
6332 2010-06-22 Robert Dewar <dewar@adacore.com>
6333
6334 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6335
6336 2010-06-22 Thomas Quinot <quinot@adacore.com>
6337
6338 * sem_elab.adb: Minor reformatting.
6339
6340 2010-06-22 Vincent Celier <celier@adacore.com>
6341
6342 * gnatsym.adb: Put the object files in the table in increasing
6343 aphabetical order of base names.
6344
6345 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6346
6347 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6348 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6349 the corresponding discriminal within a record declaration.
6350
6351 2010-06-22 Thomas Quinot <quinot@adacore.com>
6352
6353 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6354 expression referring to a discriminal of the type of the aggregate (not
6355 a discriminal of some other unrelated type), and the prefix in the
6356 generated selected component must come from Lhs, not Obj.
6357
6358 2010-06-22 Thomas Quinot <quinot@adacore.com>
6359
6360 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6361 when to freeze the parent type.
6362
6363 2010-06-22 Robert Dewar <dewar@adacore.com>
6364
6365 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6366 exp_aggr.adb: Minor reformatting.
6367 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6368 GNAT.MBSS_Float_Random.
6369 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6370
6371 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6372
6373 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6374 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6375 (Random_Float_Template, Random): New method of creating
6376 uniform floating-point variables that allow the creation of all machine
6377 values in [0 .. 1).
6378
6379 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6380
6381 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6382
6383 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6384 to abstract targets to check that the type is tagged and comes from
6385 source, rather than only testing for targets of interface types. Remove
6386 premature return.
6387
6388 2010-06-22 Vincent Celier <celier@adacore.com>
6389
6390 * vms_data.ads: Modify the declarations of qualifiers
6391 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6392 without error.
6393
6394 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6395
6396 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6397 expansion is disabled.
6398
6399 2010-06-22 Robert Dewar <dewar@adacore.com>
6400
6401 * makeusg.adb: Minor reformatting.
6402
6403 2010-06-22 Robert Dewar <dewar@adacore.com>
6404
6405 * types.ads: (Dint): Removed, no longer used anywhere.
6406 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6407 (UI_Mul): Avoid use of UI_From_Dint.
6408 (UI_From_Dint): Removed, not used.
6409 * uintp.ads (UI_From_Dint): Removed, not used.
6410 (Uint_Min/Max_Simple_Mul): New constants.
6411
6412 2010-06-22 Vincent Celier <celier@adacore.com>
6413
6414 * clean.adb (Parse_Cmd_Line): Recognize switch
6415 --unchecked-shared-lib-imports.
6416 (Usage): Add line for switch --unchecked-shared-lib-imports
6417 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6418 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6419 moved from GPR_Util.
6420 * switch-m.adb (Scan_Make_Switches): Recognize switch
6421 --unchecked-shared-lib-imports.
6422 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6423 * gnat_ugn.texi: Add documentation for new switch
6424 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6425
6426 2010-06-22 Javier Miranda <miranda@adacore.com>
6427
6428 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6429 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6430 this patch replaces duplication of code that traverses the chain of
6431 aliased primitives by a call to routine Ultimate_Alias that
6432 provides this functionality.
6433
6434 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6435
6436 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6437 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6438 Warnings Off/On.
6439
6440 2010-06-22 Thomas Quinot <quinot@adacore.com>
6441
6442 * einfo.ads: Minor reformatting.
6443
6444 2010-06-22 Javier Miranda <miranda@adacore.com>
6445
6446 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6447 eliminated primitives.
6448 (Make_DT): Avoid referencing eliminated primitives.
6449 (Register_Primitive): Do not register eliminated primitives in the
6450 dispatch table. Required to add this functionality when the program is
6451 compiled without static dispatch tables (-gnatd.t)
6452
6453 2010-06-22 Emmanuel Briot <briot@adacore.com>
6454
6455 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6456 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6457 warnings on use of internal GNAT units.
6458
6459 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6460
6461 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6462
6463 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6464
6465 * s-rannum.adb: Make stylistic change to remove mystery constant in
6466 Extract_Value. Image_Numeral_Length: new symbolic constant.
6467
6468 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6469
6470 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6471 Is_Synchronized_Interface, Is_Task_Interface into computable
6472 predicates, to free three flags in entity nodes.
6473 * sem_ch3.adb: Remove setting of these flags.
6474
6475 2010-06-22 Robert Dewar <dewar@adacore.com>
6476
6477 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6478 reformatting.
6479 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6480 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6481 * projects.texi: Move @cindex to the left margin, since otherwise we
6482 are missing entries in the index.
6483
6484 2010-06-22 Emmanuel Briot <briot@adacore.com>
6485
6486 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6487 packages from the GNAT hierarchy instead of System when possible.
6488 * gcc-interface/Make-lang.in: Update dependencies.
6489
6490 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6491
6492 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6493 previously in place to reorder the ready queue when a task drops its
6494 priority due to the loss of inherited priority.
6495
6496 2010-06-22 Vincent Celier <celier@adacore.com>
6497
6498 * projects.texi: Minor spelling error fixes.
6499 Minor reformatting.
6500
6501 2010-06-22 Emmanuel Briot <briot@adacore.com>
6502
6503 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6504 warnings for some with clauses.
6505
6506 2010-06-22 Robert Dewar <dewar@adacore.com>
6507
6508 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6509 test to catch more cases where first subtype is the results we want.
6510 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6511 error case, since Errout will now handle this correctly.
6512 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6513 Update dependencies.
6514
6515 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6516
6517 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6518 when calling Make_Temporary.
6519
6520 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6521
6522 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6523 subprogram can be associated with an entry body.
6524
6525 2010-06-22 Robert Dewar <dewar@adacore.com>
6526
6527 * scos.ads: Add note on membership test handling.
6528
6529 2010-06-22 Vincent Celier <celier@adacore.com>
6530
6531 * projects.texi: Minor spelling fixes.
6532 Minor reformatting.
6533
6534 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6535
6536 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6537
6538 2010-06-22 Vincent Celier <celier@adacore.com>
6539
6540 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6541 argument.
6542 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6543 gcc command if it is too long.
6544
6545 2010-06-22 Robert Dewar <dewar@adacore.com>
6546
6547 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6548
6549 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6550
6551 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6552 calling Make_Temporary.
6553
6554 2010-06-22 Robert Dewar <dewar@adacore.com>
6555
6556 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6557
6558 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6559
6560 * sem_res.adb: Additional special-case for VMS.
6561
6562 2010-06-22 Vincent Celier <celier@adacore.com>
6563
6564 * gnatsym.adb: Minor comment fix.
6565
6566 2010-06-22 Vincent Celier <celier@adacore.com>
6567
6568 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6569
6570 2010-06-22 Robert Dewar <dewar@adacore.com>
6571
6572 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6573 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6574 Ada 95 mode as an implementation defined attribute.
6575
6576 2010-06-22 Vincent Celier <celier@adacore.com>
6577
6578 * bindusg.adb (Display): Update line for -R
6579 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6580 generated files when -R is used.
6581
6582 2010-06-22 Vincent Celier <celier@adacore.com>
6583
6584 * prj-nmsc.adb (Lib_Data_Table): New table.
6585 (Check_Library_Attributes): Check if the same library name is used in
6586 two different projects that do not extend each other.
6587
6588 2010-06-22 Robert Dewar <dewar@adacore.com>
6589
6590 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6591
6592 2010-06-22 Vincent Celier <celier@adacore.com>
6593
6594 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6595 empty, make it the current working directory.
6596
6597 2010-06-22 Thomas Quinot <quinot@adacore.com>
6598
6599 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6600 private type with discriminants, make sure the parent type is frozen.
6601
6602 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6603
6604 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6605 with packed array references specially.
6606 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6607 to a component of a bit packed array if it is the prefix of 'Bit.
6608 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6609 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6610 'Bit reference, where the prefix involves a packed array reference.
6611 (Get_Base_And_Bit_Offset): New helper, extracted from...
6612 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6613 get the outer object and offset expression.
6614
6615 2010-06-22 Thomas Quinot <quinot@adacore.com>
6616
6617 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6618 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6619 assertions.
6620
6621 2010-06-22 Javier Miranda <miranda@adacore.com>
6622
6623 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6624 reorganization to properly check if the operation has been inherited as
6625 an abstract operation.
6626
6627 2010-06-22 Ed Falis <falis@adacore.com>
6628
6629 * s-osinte-vxworks.ads: Complete previous change.
6630
6631 2010-06-22 Thomas Quinot <quinot@adacore.com>
6632
6633 * sem_res.adb: Add comment.
6634 * projects.texi, gnat_ugn.texi: Remove macro.
6635
6636 2010-06-22 Vincent Celier <celier@adacore.com>
6637
6638 * prj-attr.adb: Remove project level attribute Main_Language.
6639
6640 2010-06-22 Robert Dewar <dewar@adacore.com>
6641
6642 * switch-b.adb, osint-b.adb: Minor reformatting.
6643
6644 2010-06-22 Pascal Obry <obry@adacore.com>
6645
6646 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6647 vector if previous send was not fully successful. If only part of
6648 the vector data was sent, we exit the loop.
6649
6650 2010-06-22 Thomas Quinot <quinot@adacore.com>
6651
6652 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6653 error reporting with generic types.
6654
6655 2010-06-22 Thomas Quinot <quinot@adacore.com>
6656
6657 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6658 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6659 vms_data.ads: Add a new command line switch -A to gnatbind to output
6660 the list of all ALI files for the partition.
6661
6662 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6663
6664 * s-osinte-vxworks.ads: Fix casing.
6665 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6666 change: Interfaces.C does not provide a long_long type.
6667
6668 2010-06-22 Emmanuel Briot <briot@adacore.com>
6669
6670 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6671 native user's guide, since this document contains the two versions.
6672 * gcc-interface/Make-lang.in: Update doc dependencies.
6673
6674 2010-06-22 Robert Dewar <dewar@adacore.com>
6675
6676 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6677
6678 2010-06-22 Emmanuel Briot <briot@adacore.com>
6679
6680 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6681 not build this file on its own (only through gnat_ugn.texi).
6682 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6683
6684 2010-06-22 Robert Dewar <dewar@adacore.com>
6685
6686 * ali-util.ads: Minor comment update.
6687 * g-socthi-mingw.adb: Minor reformatting.
6688
6689 2010-06-22 Ed Falis <falis@adacore.com>
6690
6691 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6692 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6693 for specific versions of VxWorks.
6694
6695 2010-06-22 Emmanuel Briot <briot@adacore.com>
6696
6697 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6698 related sections from user's guide and reference manual, since they
6699 have now been merged together into a separate document (projects.texi).
6700 This removes a lot of duplication where attributes where described
6701 in several places.
6702 The grammar for the project files is now in each of the sections
6703 (packages,expressions,...) instead of being duplicates in two other
6704 sections (one in the user's guide that contained the full grammar,
6705 and various sections in the rm that contained extracts of the same
6706 grammar).
6707 Added the full list of all supported attributes, since existing lists
6708 were incomplete
6709 Rename "associative array" into "indexed attribute"
6710 Remove sections that were duplicates ("External References in
6711 Project Files" and "External Values", and "Project Extensions"
6712 for instance). The list of valid packages in project files is now in
6713 a single place.
6714
6715 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6716
6717 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6718 Find_Primitive_Covering_Interface does not find the operation, it may
6719 be because of a name conflict between the inherited operation and a
6720 local non-overloadable name. In that case look for the operation among
6721 the primitive operations of the type. This search must succeed
6722 regardless of visibility.
6723
6724 2010-06-22 Pascal Obry <obry@adacore.com>
6725
6726 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6727 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6728 recvmsg emulation.
6729
6730 2010-06-22 Robert Dewar <dewar@adacore.com>
6731
6732 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6733 malformed tree.
6734 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6735 Ditto.
6736
6737 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6738
6739 * s-intman-vxworks.ads: Code clean up.
6740
6741 2010-06-22 Thomas Quinot <quinot@adacore.com>
6742
6743 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6744 dereference, construct actual subtype of designated object to generate
6745 proper bounds checks.
6746
6747 2010-06-22 Thomas Quinot <quinot@adacore.com>
6748
6749 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6750 Read_Withed_ALIs, which is more descriptive.
6751
6752 2010-06-22 Pascal Obry <obry@adacore.com>
6753
6754 * g-sothco.ads: Minor reformatting.
6755 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6756 C_Sendmsg implementation.
6757 (C_Sendmsg): Do not use lock (not needed).
6758 (C_Recvmsg): Likewise and also do not wait for incoming data.
6759
6760 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6761
6762 * uintp.adb: Fix scope error in operator call.
6763
6764 2010-06-22 Vincent Celier <celier@adacore.com>
6765
6766 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6767 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6768 autoconfiguration is needed, fail indicating that no config project
6769 file can be found, as there is no autoconfiguration on VMS.
6770
6771 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6772
6773 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6774 for an operator in a functional notation, when operands are universal.
6775
6776 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6777
6778 * gcc-interface/Make-lang.in: Update dependencies.
6779
6780 2010-06-22 Robert Dewar <dewar@adacore.com>
6781
6782 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6783 name.
6784 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6785 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6786 style check.
6787 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6788 literals.
6789
6790 2010-06-22 Vincent Celier <celier@adacore.com>
6791
6792 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6793 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6794
6795 2010-06-22 Pascal Obry <obry@adacore.com>
6796
6797 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6798 Windows.
6799 (C_Recvmsg): Make sure the routine is atomic. Also fully
6800 fill vectors in the proper order.
6801 (C_Sendmsg): Make sure the routine is atomic.
6802
6803 2010-06-22 Robert Dewar <dewar@adacore.com>
6804
6805 * sem_ch8.adb: Update comment.
6806 * sem_res.adb: Minor code reorganization (use Ekind_In).
6807
6808 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6809
6810 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6811 name is a call, use the number of actuals to determine whether this is
6812 a binary or unary operator, rather than relying on later information
6813 to resolve the overload.
6814
6815 2010-06-22 Robert Dewar <dewar@adacore.com>
6816
6817 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6818
6819 2010-06-22 Robert Dewar <dewar@adacore.com>
6820
6821 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6822 * sem_eval.adb: Minor reformatting.
6823
6824 2010-06-22 Vincent Celier <celier@adacore.com>
6825
6826 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6827 to gnatlink, except on Open VMS.
6828 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6829 object directories if -nostdlib is used.
6830
6831 2010-06-22 Robert Dewar <dewar@adacore.com>
6832
6833 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6834 * sem_eval.adb: Minor reformatting.
6835
6836 2010-06-22 Robert Dewar <dewar@adacore.com>
6837
6838 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6839 * exp_aggr.adb: Minor comment changes and reformatting.
6840 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6841 order.
6842 * sem_util.ads: Add some missing pragma Inline's.
6843
6844 2010-06-22 Thomas Quinot <quinot@adacore.com>
6845
6846 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6847 Related_Expression attribute of the constructed subtype.
6848 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6849 Node24 on types for...
6850 (Related_Expression): Make attribute available on types as well.
6851
6852 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6853
6854 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6855 of Directly_Designated_Type when the type argument is an access type.
6856 (Find_Interface_Tag): Retrieve Designated_Type instead of
6857 Directly_Designated_Type when the type argument is an access type.
6858 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6859 Directly_Designated_Type of each access discriminant.
6860 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6861 instead of Directly_Designated_Type when the operand and target types
6862 are access types.
6863
6864 2010-06-22 Thomas Quinot <quinot@adacore.com>
6865
6866 * exp_aggr.adb (Flatten): Return False if one choice is statically
6867 known to be out of bounds.
6868
6869 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6870
6871 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6872 a parameterless function call, preserve parentheses of original
6873 expression, for proper handling by pretty printer.
6874 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6875 procedure, to handle quietly identifiers that have no entity names.
6876 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6877 elsif_part is missing, it has been rewritten as a nested if, and there
6878 is no useful information on the current value of the variable.
6879
6880 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6881
6882 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6883 discriminals to the current scope.
6884 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6885 scope, which could overwrite a different already set value.
6886
6887 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6888
6889 * sem_res.adb (Valid_Conversion): If expression is a predefined
6890 operator, use sloc of type of interpretation to improve error message
6891 when operand is of some derived type.
6892 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6893
6894 2010-06-22 Emmanuel Briot <briot@adacore.com>
6895
6896 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6897 that it can set out parameters as well. When a process has died, reset
6898 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6899 can find out which process has died.
6900
6901 2010-06-22 Thomas Quinot <quinot@adacore.com>
6902
6903 * sem_eval.adb (Find_Universal_Operator_Type): New
6904 subprogram to identify the operand type of an operator on universal
6905 operands, when an explicit scope indication is present. Diagnose the
6906 case where such a call is ambiguous.
6907 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6908 Use the above to identify the operand type so it can be properly
6909 frozen.
6910 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6911 type, done in an arbitrary, possibly incorrect type (the presence of
6912 some numeric type in the scope is checked for legality, but when more
6913 than one such type is in the scope, we just pick a random one, not
6914 necessarily the expected one).
6915 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6916 subprogram.
6917
6918 2010-06-22 Robert Dewar <dewar@adacore.com>
6919
6920 * sem_eval.adb: Minor reformatting.
6921
6922 2010-06-22 Robert Dewar <dewar@adacore.com>
6923
6924 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6925 Expression_With_Actions to clean up the code generated when folding
6926 constant expressions.
6927
6928 2010-06-22 Vincent Celier <celier@adacore.com>
6929
6930 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6931 Has_Process.
6932
6933 2010-06-22 Vincent Celier <celier@adacore.com>
6934
6935 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6936 found, check if it's path has aready been found, whatever its index.
6937
6938 2010-06-22 Robert Dewar <dewar@adacore.com>
6939
6940 * atree.adb, gnatbind.adb: Minor reformatting.
6941 Minor code reorganization.
6942
6943 2010-06-21 Robert Dewar <dewar@adacore.com>
6944
6945 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6946 known at compile time.
6947
6948 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6949
6950 * atree.adb: Fix comment typo.
6951
6952 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6953
6954 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6955 whether a universal arithmetic expression in a conversion, which is
6956 rewritten from a function call with an expanded name, is ambiguous.
6957
6958 2010-06-21 Vincent Celier <celier@adacore.com>
6959
6960 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6961 source files in specified list of sources.
6962 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6963 are never used.
6964 (Add_Source): Set the Location of the new source
6965 (Process_Exceptions_File_Based): Call Add_Source with the Location
6966 (Get_Sources_From_File): If an exception is found, set its Listed to
6967 True
6968 (Find_Sources): When Source_Files is specified, if an exception is
6969 found, set its Listed to True. Remove any exception that is not in a
6970 specified list of sources.
6971 * prj.ads (Source_Data): New component Location
6972
6973 2010-06-21 Vincent Celier <celier@adacore.com>
6974
6975 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6976
6977 2010-06-21 Thomas Quinot <quinot@adacore.com>
6978
6979 * sem_res.adb: Minor reformatting.
6980 * atree.adb: New debugging hook "rr" for node rewrites.
6981
6982 2010-06-21 Robert Dewar <dewar@adacore.com>
6983
6984 * g-expect.ads, g-expect.adb: Minor reformatting.
6985
6986 2010-06-21 Emmanuel Briot <briot@adacore.com>
6987
6988 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6989
6990 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6991
6992 * gcc-interface/Make-lang.in: Update dependencies.
6993
6994 2010-06-21 Thomas Quinot <quinot@adacore.com>
6995
6996 * bindgen.ads: Update comments.
6997
6998 2010-06-21 Vincent Celier <celier@adacore.com>
6999
7000 * gnatbind.adb: Suppress dupicates when listing the sources in the
7001 closure (switch -R).
7002
7003 2010-06-21 Emmanuel Briot <briot@adacore.com>
7004
7005 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
7006 is too small.
7007
7008 2010-06-21 Emmanuel Briot <briot@adacore.com>
7009
7010 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
7011 New subprograms.
7012 (Expect_Internal): No longer raises an exception, so that it can set
7013 out parameters as well. When a process has died, reset its Input_Fd
7014 to Invalid_Fd, so that when using multiple processes we can find out
7015 which process has died.
7016
7017 2010-06-21 Robert Dewar <dewar@adacore.com>
7018
7019 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7020 checks.adb, sem_res.adb: Minor reformatting. Add comments.
7021
7022 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7023
7024 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7025 rederivation associated with a full declaration in a private part, and
7026 there is a partial view that derives the same parent subprogram, the
7027 new entity does not become visible. This check must be applied to
7028 interface operations as well.
7029
7030 2010-06-21 Thomas Quinot <quinot@adacore.com>
7031
7032 * checks.adb: Add comments.
7033 * prj-nmsc.adb: Minor reformatting.
7034
7035 2010-06-21 Thomas Quinot <quinot@adacore.com>
7036
7037 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7038 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7039 extract bounds, to ensure that we get the proper captured values,
7040 rather than an expression that may have changed value since the point
7041 where the subtype was elaborated.
7042 (Find_Body_Discriminal): New utility subprogram to share code
7043 between...
7044 (Eval_Attribute): For the case of a subtype bound that references a
7045 discriminant of the current concurrent type, insert appropriate
7046 discriminal reference.
7047 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7048 requeue to an entry in a family in the current task, use corresponding
7049 body discriminal.
7050 (Analyze_Accept_Statement): Rely on expansion of attribute references
7051 to insert proper discriminal references in range check for entry in
7052 family.
7053
7054 2010-06-21 Emmanuel Briot <briot@adacore.com>
7055
7056 * s-regpat.adb (Compile): Fix handling of big patterns.
7057
7058 2010-06-21 Robert Dewar <dewar@adacore.com>
7059
7060 * a-tifiio.adb: Minor reformatting.
7061
7062 2010-06-21 Pascal Obry <obry@adacore.com>
7063
7064 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7065 path to open it.
7066
7067 2010-06-21 Javier Miranda <miranda@adacore.com>
7068
7069 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7070 external name.
7071
7072 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7073
7074 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7075 to hold the result, indicate that the target of the declaration does
7076 not need an initialization, to prevent spurious errors when
7077 Initialize_Scalars is enabled.
7078
7079 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7080
7081 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7082 Fore is not bound by line length. The Fore parameter of the internal
7083 procedure that performs the operation is an integer.
7084
7085 2010-06-21 Thomas Quinot <quinot@adacore.com>
7086
7087 * sem_res.adb, checks.adb: Minor reformatting.
7088
7089 2010-06-21 Emmanuel Briot <briot@adacore.com>
7090
7091 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7092 into Get_Next.
7093 (Insert_Operator_Before): New subprogram, avoids duplicated code
7094 (Compile): Avoid doing two compilations when the pattern matcher ends
7095 up being small.
7096
7097 2010-06-21 Emmanuel Briot <briot@adacore.com>
7098
7099 * s-regpat.adb: Improve debug traces
7100 (Dump): Change output format to keep it smaller.
7101
7102 2010-06-21 Javier Miranda <miranda@adacore.com>
7103
7104 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7105 output to the output file when this routine completes its work.
7106
7107 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
7108
7109 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7110 for loop. Call build_constructor_from_list directly in the CICO case.
7111
7112 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7113
7114 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7115 declaration appears in the same unit and ealier than the renamed
7116 entity, retain generated body to prevent order-of-elaboration issues in
7117 gigi.
7118
7119 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7120
7121 * s-tpoben.adb: Update comments.
7122
7123 2010-06-18 Robert Dewar <dewar@adacore.com>
7124
7125 * debug.adb: Minor comment change.
7126
7127 2010-06-18 Javier Miranda <miranda@adacore.com>
7128
7129 * exp_cg.adb: Code clean up.
7130 * debug.adb: Complete documentation of switch -gnatd.Z.
7131 * gcc-interface/misc.c (callgraph_info_file): Declare.
7132
7133 2010-06-18 Javier Miranda <miranda@adacore.com>
7134
7135 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7136
7137 2010-06-18 Thomas Quinot <quinot@adacore.com>
7138
7139 * sprint.ads: Minor reformatting.
7140 * output.ads: Update obsolete comment.
7141
7142 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7143
7144 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7145 an external intrinsic operation (e.g. a GCC numeric function) indicate
7146 that the renaming entity has the same characteristics, so a call to it
7147 is properly expanded.
7148
7149 2010-06-18 Javier Miranda <miranda@adacore.com>
7150
7151 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7152 support for dispatch table/callgraph info generation.
7153 * gcc-interface/Make-lang.in: Update dependencies.
7154
7155 2010-06-18 Robert Dewar <dewar@adacore.com>
7156
7157 * exp_ch6.adb: Minor reformatting.
7158 * gnatname.adb: Add comment.
7159
7160 2010-06-18 Vincent Celier <celier@adacore.com>
7161
7162 * gnatname.adb (Scan_Args): When --and is used, make sure that the
7163 dynamic tables in the newly allocated Argument_Data are properly
7164 initialized.
7165
7166 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7167
7168 * gnat1drv.adb: Fix comment.
7169
7170 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7171
7172 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7173 renaming, re-expand the call with the renamed subprogram if that one
7174 is marked inlined as well.
7175
7176 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7177
7178 * gnat1drv.adb (Adjust_Global_Switches): Enable
7179 Use_Expression_With_Actions for AAMP and VM targets.
7180
7181 2010-06-18 Vincent Celier <celier@adacore.com>
7182
7183 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7184
7185 2010-06-18 Thomas Quinot <quinot@adacore.com>
7186
7187 * exp_ch4.adb: Minor reformatting.
7188
7189 2010-06-18 Javier Miranda <miranda@adacore.com>
7190
7191 * debug.ads Add documentation on -gnatd.Z.
7192
7193 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7194
7195 * sem_elim.adb: Proper error message on improperly eliminated instances
7196
7197 2010-06-18 Vincent Celier <celier@adacore.com>
7198
7199 * prj.ads (Response_File_Format): New value GCC.
7200
7201 2010-06-18 Thomas Quinot <quinot@adacore.com>
7202
7203 * gnat1drv.adb: Minor reformatting.
7204
7205 2010-06-18 Robert Dewar <dewar@adacore.com>
7206
7207 * make.adb, sem_cat.adb: Minor reformatting.
7208 * sem_eval.adb: Fix typos.
7209
7210 2010-06-18 Pascal Obry <obry@adacore.com>
7211
7212 * prj-nmsc.adb: Fix source filenames casing in debug output.
7213
7214 2010-06-18 Robert Dewar <dewar@adacore.com>
7215
7216 * gnatcmd.adb: Minor reformatting.
7217
7218 2010-06-18 Robert Dewar <dewar@adacore.com>
7219
7220 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7221 condition and both sub-expressions are static (and result is selected
7222 expression).
7223
7224 2010-06-18 Robert Dewar <dewar@adacore.com>
7225
7226 * g-pehage.adb: Minor reformatting
7227
7228 2010-06-18 Pascal Obry <obry@adacore.com>
7229
7230 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7231 source hash table.
7232
7233 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7234
7235 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7236 dependencies. Fix target pairs on darwin.
7237 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7238
7239 2010-06-18 Pascal Obry <obry@adacore.com>
7240
7241 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7242
7243 2010-06-18 Vincent Celier <celier@adacore.com>
7244
7245 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7246 configuration pragmas file and, if -U is not used, for a local one.
7247
7248 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7249
7250 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7251 when it is given in the pragma by a selected component.
7252 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7253 instance body that is itself within a generic unit.
7254 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7255 eliminated, mark as well the anonymous subprogram that is its alias
7256 and appears within the wrapper package.
7257
7258 2010-06-18 Bob Duff <duff@adacore.com>
7259
7260 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7261 Raise an exception if the output file cannot be opened. Add comments.
7262
7263 2010-06-18 Thomas Quinot <quinot@adacore.com>
7264
7265 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7266 not illegal per E.2.2(7) if it occurs in the private part of a
7267 Remote_Types unit.
7268
7269 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7270
7271 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7272 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7273 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7274 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7275 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7276 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7277 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7278 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7279 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7280 errout.ads: Update comments. Minor reformatting.
7281
7282 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7283 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7284 a-strunb.adb (Big_String. Big_String_Access): New type.
7285
7286 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7287 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7288 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7289
7290 2010-06-18 Geert Bosch <bosch@adacore.com>
7291
7292 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7293 Darwin.
7294
7295 2010-06-18 Robert Dewar <dewar@adacore.com>
7296
7297 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7298 true for gcc.
7299
7300 2010-06-18 Robert Dewar <dewar@adacore.com>
7301
7302 * sprint.adb: Minor format change for N_Expression_With_Actions.
7303 * repinfo.adb: Minor reformatting.
7304
7305 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7306
7307 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7308 Defining_Entity to obtain the name of the entity in the proper body, to
7309 properly handle both separate packages and subprograms.
7310
7311 2010-06-18 Emmanuel Briot <briot@adacore.com>
7312
7313 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7314
7315 2010-06-18 Thomas Quinot <quinot@adacore.com>
7316
7317 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7318
7319 2010-06-18 Pascal Obry <obry@adacore.com>
7320
7321 * gnat_ugn.texi: Minor clarification.
7322
7323 2010-06-18 Emmanuel Briot <briot@adacore.com>
7324
7325 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7326 code when using the project dir as the source dir.
7327 (Search_Directories): use the normalized name for the source directory,
7328 where symbolic names have potentially been resolved.
7329
7330 2010-06-18 Robert Dewar <dewar@adacore.com>
7331
7332 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7333 when we create N_Expression_With_Actions node.
7334 (Expand_Short_Circuit): Ditto.
7335
7336 2010-06-18 Robert Dewar <dewar@adacore.com>
7337
7338 * exp_util.adb: Minor reformatting.
7339
7340 2010-06-18 Thomas Quinot <quinot@adacore.com>
7341
7342 * types.ads: Clean up obsolete comments
7343 * tbuild.adb: Minor reformatting.
7344 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7345 exp_strm.adb, aa_drive.adb: Minor reformatting.
7346 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7347 intrinsic with an Interface_Name denotes an imported back-end builtin,
7348 and must be rewritten into a call, not left in the tree as an operator,
7349 so return False in that case.
7350
7351 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7352
7353 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7354
7355 2010-06-18 Robert Dewar <dewar@adacore.com>
7356
7357 * scos.ads: Add proposed output for case expression
7358
7359 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7360
7361 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7362 RTSS modules, we need to use the Microsoft linker.
7363
7364 2010-06-18 Robert Dewar <dewar@adacore.com>
7365
7366 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7367 expression (cannot count on a particular branch being executed).
7368 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7369 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7370 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7371 within case expression.
7372 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7373 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7374 (P_Case_Expression): New procedure
7375 (P_Case_Expression_Alternative): New procedure
7376 * par.adb (P_Case_Expression): New procedure
7377 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7378 N_Case_Expression.
7379 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7380 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7381 this is a documentation change only.
7382 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7383 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7384 expressions.
7385 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7386 * sem_res.adb (Resolve_Case_Expression): New procedure.
7387 * sem_scil.adb (Find_SCIL_Node): Add processing for
7388 N_Case_Expression_Alternative.
7389 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7390 (N_Case_Expression_Alternative): New node.
7391 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7392 N_Case_Expression and N_Case_Expression_Alternative.
7393
7394 2010-06-18 Robert Dewar <dewar@adacore.com>
7395
7396 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7397 reformatting.
7398 * gnat1drv.adb: Fix typo.
7399
7400 2010-06-18 Robert Dewar <dewar@adacore.com>
7401
7402 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7403 for -gnatg.
7404 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7405 gnat style for -gnatg.
7406 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7407
7408 2010-06-18 Thomas Quinot <quinot@adacore.com>
7409
7410 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7411 code between...
7412 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7413 Test_In_Range.
7414
7415 2010-06-18 Robert Dewar <dewar@adacore.com>
7416
7417 * sprint.adb: Minor change in output format for expression wi actions.
7418 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7419 * sem_ch5.adb: Minor comment fix.
7420
7421 2010-06-18 Robert Dewar <dewar@adacore.com>
7422
7423 * debug.adb: New debug flag -gnatd.L to control
7424 Back_End_Handles_Limited_Types.
7425 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7426 limited case if Back_End_Handles_Limited_Types is True.
7427 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7428 simplify expansion if Use_Expression_With_Actions is True.
7429 * gnat1drv.adb (Adjust_Global_Switches): Set
7430 Back_End_Handles_Limited_Types.
7431 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7432
7433 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7434
7435 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7436 intrinsic operator if expansion is not enabled, because in an
7437 instantiation the original operator must be present to verify the
7438 legality of the operation.
7439
7440 2010-06-18 Robert Dewar <dewar@adacore.com>
7441
7442 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7443
7444 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7445
7446 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7447 the class-wide type for a private extension, and the completion is a
7448 subtype, set the type of the class-wide type to the base type of the
7449 full view.
7450
7451 2010-06-18 Robert Dewar <dewar@adacore.com>
7452
7453 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7454 sem_intr.adb, sem_eval.adb: Minor reformatting
7455
7456 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7457
7458 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7459 view.
7460
7461 2010-06-18 Thomas Quinot <quinot@adacore.com>
7462
7463 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7464 parameter rather than IN OUT.
7465
7466 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7467
7468 * exp_ch6.adb: Add extra guard.
7469
7470 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7471
7472 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7473 accessibility level of a function call from the level of the innermost
7474 enclosing dynamic scope.
7475 (Innermost_Master_Scope_Depth): New function to find the depth of the
7476 nearest dynamic scope enclosing a node.
7477
7478 2010-06-18 Tristan Gingold <gingold@adacore.com>
7479
7480 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7481
7482 2010-06-18 Thomas Quinot <quinot@adacore.com>
7483
7484 * g-socket.ads: Minor reformatting.
7485
7486 2010-06-18 Vincent Celier <celier@adacore.com>
7487
7488 * make.adb (Must_Compile): New Boolean global variable
7489 (Main_On_Command_Line): New Boolean global variable
7490 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7491 even when the project is externally built.
7492 (Start_Compile_If_Possible): Compile in -aL directories if
7493 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7494 when the project is externally built.
7495 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7496 invoked with -f -u and one or several mains on the command line.
7497 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7498 main is specified on the command line.
7499
7500 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7501
7502 * sem_ch6.adb (Build_Body_For_Inline): Handle
7503 extended_return_statements.
7504 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7505 containing extented_return statements.
7506 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7507 constrained, do not build subtype declaration.
7508
7509 2010-06-18 Robert Dewar <dewar@adacore.com>
7510
7511 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7512 Warn on assigning to packed atomic component.
7513
7514 2010-06-18 Robert Dewar <dewar@adacore.com>
7515
7516 * sem_util.ads: Minor reformatting
7517 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7518 Expression_With_Actions).
7519 * snames.ads-tmpl: Minor comment fix
7520
7521 2010-06-18 Robert Dewar <dewar@adacore.com>
7522
7523 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7524 (Set_Imported): Use Import_Interface_Present to control message output
7525 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7526 * gnat_rm.texi: Document that we can have pragma Import and pragma
7527 Interface for the same subprogram.
7528
7529 2010-06-18 Robert Dewar <dewar@adacore.com>
7530
7531 * lib-xref.adb (Generate_Reference): Fix bad reference to
7532 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7533
7534 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7535
7536 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7537 function.
7538 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7539 Use set_gnu_expr_location_from_node to set location information on the
7540 result.
7541
7542 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7543
7544 * gcc-interface/Make-lang.in: Update dependencies.
7545
7546 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7547
7548 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7549 subprograms.
7550
7551 2010-06-17 Robert Dewar <dewar@adacore.com>
7552
7553 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7554 style check messages.
7555 * sem_res.adb (Resolve_Call): Don't call
7556 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7557 expression.
7558
7559 2010-06-17 Robert Dewar <dewar@adacore.com>
7560
7561 * debug.adb: Add documentation for debug flags .X and .Y
7562 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7563 Use_Expression_With_Actions.
7564 * gnat1drv.adb (Adjust_Global_Switches): Set
7565 Use_Expression_With_Actions.
7566 * opt.ads (Use_Expression_With_Actions): New switch.
7567
7568 2010-06-17 Robert Dewar <dewar@adacore.com>
7569
7570 * exp_intr.adb: Minor code reorganization (use UI_Max)
7571 * sem_intr.adb: use underlying type to check legality.
7572 * einfo.adb (Known_Static_Esize): False for generic types
7573 (Known_Static_RM_Size): False for generic types
7574 * einfo.ads (Known_Static_Esize): False for generic types
7575 (Known_Static_RM_Size): False for generic types
7576
7577 2010-06-17 Robert Dewar <dewar@adacore.com>
7578
7579 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7580
7581 2010-06-17 Robert Dewar <dewar@adacore.com>
7582
7583 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7584 node when expanding short circuit form with actions present for right
7585 opnd.
7586 * exp_ch4.adb: Minor reformatting
7587 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7588 if right opeand has actions present, and debug flag -gnatd.X is set.
7589 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7590 node.
7591 * nlists.adb (Prepend_List): New procedure
7592 (Prepend_List_To): New procedure
7593 * nlists.ads (Prepend_List): New procedure
7594 (Prepend_List_To): New procedure
7595 * sem.adb: Add processing for Expression_With_Actions
7596 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7597 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7598 * sem_res.adb: Add processing for Expression_With_Actions.
7599 * sem_scil.adb: Add processing for Expression_With_Actions
7600 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7601 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7602
7603 2010-06-17 Doug Rupp <rupp@adacore.com>
7604
7605 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7606 involved both have underlying integer types.
7607 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7608 to an intrinsic operator when the operand types or sizes are not
7609 identical.
7610 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7611 64/32 Address/Integer works.
7612
7613 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7614
7615 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7616 that it marks a unit as needed by a spec only if the corresponding
7617 instantiation appears in that spec (and not in the corresponding body).
7618 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7619 in the pragma Eliminate has been parsed as a child unit, but the
7620 current compilation unit is in fact the parent in which the subunit is
7621 embedded.
7622
7623 2010-06-17 Vincent Celier <celier@adacore.com>
7624
7625 * gnat_rm.texi: Fix typo
7626
7627 2010-06-17 Robert Dewar <dewar@adacore.com>
7628
7629 * sem_util.adb: Minor reformatting
7630
7631 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7632
7633 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7634 instance, the clause now denotes the instance body. Traverse the
7635 corresponding spec because there may be no other dependence that will
7636 force the traversal of its own context.
7637
7638 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7639
7640 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7641 Install_Limited_Context_Clauses, to determine whether a limited_with in
7642 some parent of the current unit designates some other parent, in which
7643 case the limited_with clause must not be installed.
7644 (In_Context): Refine test.
7645
7646 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7647
7648 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7649 type with a dispatching equality operator that is overridden (for a
7650 tagged full type), don't include the overridden equality in the list of
7651 primitives. The overridden equality is detected by testing for an
7652 Aliased field that references the overriding equality.
7653
7654 2010-06-17 Robert Dewar <dewar@adacore.com>
7655
7656 * freeze.adb: Minor reformatting.
7657
7658 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7659
7660 * gnat_ugn.texi: Add a section introducing gdbserver.
7661
7662 2010-06-17 Thomas Quinot <quinot@adacore.com>
7663
7664 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7665 reformatting.
7666
7667 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7668
7669 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7670 constrained discriminated parent that is a private type.
7671 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7672 handle properly an ancestor type that is a constrained private type.
7673
7674 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7675
7676 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7677 protected, use the protected_subprogram_body only if the original
7678 subprogram has not been eliminated.
7679
7680 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7681
7682 * freeze.adb (Freeze_Expression): The designated type of an
7683 access_to_suprogram type can only be frozen if all types in its profile
7684 are fully defined.
7685
7686 2010-06-17 Robert Dewar <dewar@adacore.com>
7687
7688 * par.adb: Minor comment fix
7689 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7690
7691 2010-06-17 Doug Rupp <rupp@adacore.com>
7692
7693 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7694 change Address to Short_Address in functions where both must be the
7695 same size for intrinsics to work.
7696
7697 2010-06-17 Thomas Quinot <quinot@adacore.com>
7698
7699 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7700 not denote a (private) component of a protected object.
7701
7702 2010-06-17 Bob Duff <duff@adacore.com>
7703
7704 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7705 the same list.
7706
7707 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7708
7709 * gnat_ugn.texi: Update the documentation about GDB re: exception
7710 catchpoints.
7711
7712 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7713
7714 * gnatvsn.ads: Bump to 4.6 version.
7715
7716 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7717
7718 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7719 designated type of the generated pointer is the type of the original
7720 expression, not that of the function call itself, because the return
7721 type may be an untagged derived type and the function may be an
7722 inherited operation.
7723
7724 2010-06-17 Robert Dewar <dewar@adacore.com>
7725
7726 * exp_ch4.adb: Minor reformatting.
7727
7728 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7729
7730 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7731 N_Component_Association nodes, to indicate that a component association
7732 of an extension aggregate denotes the value of a discriminant of an
7733 ancestor type that has been constrained by the derivation.
7734 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7735 double expansion of the aggregate appearing in a context that delays
7736 expansion, to prevent double insertion of discriminant values when the
7737 aggregate is reanalyzed.
7738
7739 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7740
7741 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7742 Allocator as the Related_Node of Return_Obj_Access in call to
7743 Make_Temporary below as this would create a sort of infinite
7744 "recursion".
7745
7746 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7747
7748 * gnat_ugn.texi: Update gnatcheck doc.
7749
7750 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7751
7752 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7753 incomplete view of the type that is not tagged, and the full type is a
7754 tagged extension, create class_wide type now, and warn that the
7755 incomplete view should be tagged as well.
7756
7757 2010-06-17 Vincent Celier <celier@adacore.com>
7758
7759 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7760 Update the last line of the usage, indicating what commands do not
7761 accept project file switches.
7762 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7763 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7764 GNAT ELIM.
7765 * gnat_ugn.texi: Document the relaxed rules for library directories in
7766 externally built library projects.
7767
7768 2010-06-17 Doug Rupp <rupp@adacore.com>
7769
7770 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7771 where possible.
7772 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7773 * gcc-interface/Makefile.in: Update VMS target pairs.
7774
7775 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7776
7777 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7778 compatible with Windows NT 4.0 which doesn't provide this function.
7779
7780 2010-06-17 Vincent Celier <celier@adacore.com>
7781
7782 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7783 different timestamps but the checksum is the same, issue a short
7784 message saying so.
7785
7786 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7787
7788 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7789 it means that we cannot reset interrupt handlers since this would
7790 require potentially sending the abort signal to the Server_Task.
7791
7792 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7793
7794 * exp_ch4.adb: expand NOT for VMS types.
7795 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7796
7797 2010-06-17 Sergey Rybin <rybin@adacore.com>
7798
7799 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7800 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7801 option.
7802
7803 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7804
7805 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7806 protected operation if the subprogram has been eliminated.
7807
7808 2010-06-17 Vincent Celier <celier@adacore.com>
7809
7810 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7811 directories associated with a library to be any directory when the
7812 library project is externally built.
7813
7814 2010-06-17 Vincent Celier <celier@adacore.com>
7815
7816 * make.adb (Check): If switch -m is used, deallocate the memory that
7817 may be allocated when computing the checksum.
7818
7819 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7820
7821 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7822 (C_Sendmsg): Likewise.
7823
7824 2010-06-17 Thomas Quinot <quinot@adacore.com>
7825
7826 * sem_res.adb: Update comments.
7827
7828 2010-06-17 Vincent Celier <celier@adacore.com>
7829
7830 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7831
7832 2010-06-17 Robert Dewar <dewar@adacore.com>
7833
7834 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7835 * layout.adb, freeze.adb: Use Make_Temporary.
7836
7837 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7838
7839 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7840 .NET/JVM normally as this is now perfectly supported by the backend.
7841
7842 2010-06-17 Pascal Obry <obry@adacore.com>
7843
7844 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7845
7846 2010-06-17 Vincent Celier <celier@adacore.com>
7847
7848 * make.adb (Collect_Arguments_And_Compile): Create include path file
7849 only when -x is specified.
7850 (Gnatmake): Ditto
7851 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7852 False.
7853 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7854 Objects_Path, defaulted to True. Only create include path file if
7855 Include_Path is True, only create objects path file if Objects_Path is
7856 True.
7857 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7858 Objects_Path, defaulted to True.
7859 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7860 when -x is used.
7861
7862 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7863
7864 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7865 determine whether it has the controlling type, when the formal is an
7866 access parameter.
7867
7868 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7869
7870 * s-crtl.ads (ssize_t): New type.
7871 (read): Fix signature.
7872 (write): Likewise.
7873 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7874 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7875 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7876 (C_Sendmsg): Likewise.
7877 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7878 (Syscall_Sendmsg): Likewise.
7879 (C_Recvmsg): Likewise.
7880 (C_Sendmsg): Likewise.
7881 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7882 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7883 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7884 (C_Sendmsg): Likewise.
7885 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7886 (C_Sendmsg): Likewise.
7887 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7888 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7889 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7890 (C_Sendmsg): Likewise.
7891 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7892 (C_Sendmsg): Likewise.
7893 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7894 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7895 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7896 (C_Sendmsg): Likewise.
7897 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7898 (C_Sendmsg): Likewise.
7899 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7900 (Write): Likewise to call 'write'.
7901 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7902 (Write): Use correct type to call System.CRTL.write.
7903 * s-tasdeb.adb (Write): Likewise.
7904
7905 2010-06-17 Vincent Celier <celier@adacore.com>
7906
7907 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7908 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7909 value of attribute Linker_Options.
7910
7911 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7912
7913 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7914 (Case_Statement_to_gnu): Adjust.
7915 (Loop_Statement_to_gnu): Likewise.
7916 (Subprogram_Body_to_gnu): Likewise.
7917 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7918 (Compilation_Unit_to_gnu): Likewise.
7919
7920 2010-06-17 Robert Dewar <dewar@adacore.com>
7921
7922 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7923 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7924 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7925 sem_dist.adb, sem_util.adb: Use Make_Temporary
7926 * itypes.ads, tbuild.ads: Minor comment update
7927 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7928
7929 2010-06-17 Thomas Quinot <quinot@adacore.com>
7930
7931 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7932
7933 2010-06-17 Robert Dewar <dewar@adacore.com>
7934
7935 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7936
7937 2010-06-17 Thomas Quinot <quinot@adacore.com>
7938
7939 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7940
7941 2010-06-17 Robert Dewar <dewar@adacore.com>
7942
7943 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7944 * tbuild.ads (Make_Temporary): More comment updates
7945 * tbuild.adb: Minor reformatting
7946
7947 2010-06-17 Robert Dewar <dewar@adacore.com>
7948
7949 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7950 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7951 Use Make_Temporary.
7952 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7953 instead of Node_Id.
7954 (Make_Temporary): Add more extensive documentation
7955
7956 2010-06-17 Robert Dewar <dewar@adacore.com>
7957
7958 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7959 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7960 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7961 where the slice's actions are inserted.
7962 (Decompose_Expr): Account for possible rewriting of slice bounds
7963 resulting from side effects suppression caused by the above freezing,
7964 so that folding of bounds is preserved by such rewriting.
7965
7966 2010-06-17 Robert Dewar <dewar@adacore.com>
7967
7968 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7969 function.
7970 * freeze.adb (Freeze_Record_Type): Add call to
7971 Check_Record_Representation_Clause.
7972 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7973 (Analyze_Record_Representation_Clause): Split out overlap code into
7974 this new function.
7975 (Check_Component_Overlap): Moved inside
7976 Check_Record_Representation_Clause.
7977 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7978
7979 2010-06-17 Robert Dewar <dewar@adacore.com>
7980
7981 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7982 reformatting.
7983 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7984 sem_eval.adb: Use Ekind_In
7985
7986 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7987
7988 * sem_ch8.adb: better error message for illegal inherited discriminant
7989
7990 2010-06-17 Vincent Celier <celier@adacore.com>
7991
7992 * bindusg.adb: Remove lines for -A and -C
7993 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7994 and -C for gnatbind and gnatlink.
7995 * gnatlink.adb (Usage): Remove lines for -A and -C
7996 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7997 specified.
7998 * gcc-interface/Make-lang.in: Update dependencies.
7999
8000 2010-06-17 Vincent Celier <celier@adacore.com>
8001
8002 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
8003 local Argument_List variable Args.
8004 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
8005 Args.
8006 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
8007 for subsequent switches in Args.
8008 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
8009 Args.
8010 * gcc-interface/Make-lang.in: Update dependencies.
8011
8012 2010-06-17 Robert Dewar <dewar@adacore.com>
8013
8014 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8015 Equivalent_Type to match documentation.
8016
8017 2010-06-17 Robert Dewar <dewar@adacore.com>
8018
8019 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8020 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8021 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8022
8023 2010-06-17 Thomas Quinot <quinot@adacore.com>
8024
8025 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8026
8027 2010-06-17 Thomas Quinot <quinot@adacore.com>
8028
8029 * freeze.adb (Freeze_Expression): Short circuit operators are valid
8030 freeze node insertion points.
8031
8032 2010-06-17 Robert Dewar <dewar@adacore.com>
8033
8034 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8035 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8036
8037 2010-06-17 Gary Dismukes <dismukes@adacore.com>
8038
8039 * layout.adb (Layout_Type): Broaden test for setting an array type's
8040 Component_Size to include all scalar types, not just discrete types
8041 (components of real types were missed).
8042 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8043 on the itype created for an index (consistent with Make_Index and
8044 avoids possible Assert_Failures).
8045
8046 2010-06-17 Robert Dewar <dewar@adacore.com>
8047
8048 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8049 * einfo.adb: Minor code reformatting (use Ekind_In)
8050
8051 2010-06-17 Robert Dewar <dewar@adacore.com>
8052
8053 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8054 found.
8055
8056 2010-06-17 Vincent Celier <celier@adacore.com>
8057
8058 * back_end.adb: Minor comment updates
8059 * switch-c.adb: Remove dependencies on gcc C sources
8060 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8061 for the compiler.
8062
8063 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8064
8065 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8066 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8067 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8068 Remove use of Node field in SCOs table
8069 (Output_Header): Set 'd' to initially disable pragma entry
8070 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8071 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8072 Use C2 field of pragma decision header to indicate enabled.
8073 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8074 * gcc-interface/Make-lang.in: Update dependencies.
8075
8076 2010-06-17 Vincent Celier <celier@adacore.com>
8077
8078 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8079 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8080 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8081 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8082 Switch.C.
8083 * switch-c.adb: Copied a number of global declarations from
8084 back_end.adb.
8085 (Len_Arg): New function copied from back_end.adb
8086 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8087 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8088 Switch_Subsequently_Cancelled.
8089 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8090 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8091 with -lexc on Tru64.
8092
8093 2010-06-17 Robert Dewar <dewar@adacore.com>
8094
8095 * prj.ads, prj.adb: Minor reformatting
8096
8097 2010-06-17 Thomas Quinot <quinot@adacore.com>
8098
8099 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8100 CP line for a disabled pragma.
8101
8102 2010-06-17 Emmanuel Briot <briot@adacore.com>
8103
8104 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8105 subprogram.
8106 (Process_Declarative_Item): An invalid value in an typed variable
8107 declaration is no longer always fatal.
8108
8109 2010-06-16 Arnaud Charlet <charlet@adacore.com>
8110
8111 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8112 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8113 documentation.
8114
8115 2010-06-16 Javier Miranda <miranda@adacore.com>
8116
8117 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8118 node referenced by the SCIL node of dispatching "=" to skip the tags
8119 comparison.
8120
8121 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8122
8123 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8124 to prevent cascaded errors and compilation aborts.
8125
8126 2010-06-16 Robert Dewar <dewar@adacore.com>
8127
8128 * back_end.adb (Switch_Subsequently_Cancelled): New function
8129 Move declarations to package body level to support this change
8130 * back_end.ads (Switch_Subsequently_Cancelled): New function
8131 * gnat_ugn.texi: Document -gnat-p switch
8132 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8133 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8134 * usage.adb: Add line for -gnat-p switch
8135 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8136
8137 2010-06-16 Robert Dewar <dewar@adacore.com>
8138
8139 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8140 modification.
8141
8142 2010-06-16 Robert Dewar <dewar@adacore.com>
8143
8144 * exp_disp.adb: Minor reformatting
8145
8146 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8147
8148 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8149 base type only if it was not previously created for the partial view.
8150
8151 2010-06-16 Thomas Quinot <quinot@adacore.com>
8152
8153 * tbuild.ads: Minor comment fix
8154
8155 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
8156
8157 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8158 (gnu_except_ptr_stack): Change type to VEC. Update comment.
8159 (gnu_elab_proc_stack): Likewise.
8160 (gnu_return_label_stack): Likewise.
8161 (gnu_loop_label_stack): Likewise.
8162 (gnu_switch_label_stack): Likewise.
8163 (gnu_constraint_label_stack): Likewise.
8164 (gnu_storage_error_label_stack): Likewise.
8165 (gnu_program_error_label_stack): Likewise.
8166 (push_exception_label_stack): Take a VEC ** instead of a tree *.
8167 (push_stack): Likewise. Remove unused second parameter. Update
8168 callers.
8169 (pop_stack): Take a VEC * instead of a tree *. Update callers.
8170 (gigi): Initialize stacks as VECs.
8171 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8172 (Case_Statement_to_gnu): Likewise.
8173 (Subprogram_Body_to_gnu): Likewise.
8174 (call_to_gnu): Likewise.
8175 (Exception_Handler_to_gnu_sjlj): Likewise.
8176 (gnat_to_gnu): Likewise.
8177 (get_exception_label): Likewise.
8178
8179 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8180
8181 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8182 anonymous base generated when the parent is a constrained discriminated
8183 type, propagate interface list to first subtype because it may appear
8184 in a current instance within the extension part of the derived type
8185 declaration, and its own subtype declaration has not been elaborated
8186 yet.
8187 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8188 determine whether it has the controlling type.
8189
8190 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8191
8192 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8193 raise of CE, SE and PE have the reason correctly set and are properly
8194 expanded before stopping the expansions of .NET/JVM exceptions.
8195
8196 2010-06-14 Robert Dewar <dewar@adacore.com>
8197
8198 * opt.ads (Check_Policy_List): Add some clarifying comments
8199 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8200 on rewritten Assert pragma.
8201
8202 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8203
8204 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8205 controlled operations, so that they will be treated as overriding even
8206 if the overridden subprogram is marked Is_Hidden, as long as the
8207 overridden subprogram's parent subprogram is not hidden.
8208
8209 2010-06-14 Robert Dewar <dewar@adacore.com>
8210
8211 * debug.adb: Entry for gnatw.d no longer specific for while loops
8212 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8213 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8214 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8215 new calling sequence to include test for EXIT WHEN.
8216 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8217 chain
8218 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8219 EXIT WHEN case.
8220 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8221 node.
8222 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8223 PRAGMA, not to pragma identifier).
8224 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8225
8226 2010-06-14 Robert Dewar <dewar@adacore.com>
8227
8228 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8229 would fail" msg.
8230
8231 2010-06-14 Robert Dewar <dewar@adacore.com>
8232
8233 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8234 missing pragma argument identifier.
8235
8236 2010-06-14 Robert Dewar <dewar@adacore.com>
8237
8238 * atree.ads, atree.adb (Ekind_In): New functions.
8239
8240 2010-06-14 Robert Dewar <dewar@adacore.com>
8241
8242 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8243
8244 2010-06-14 Robert Dewar <dewar@adacore.com>
8245
8246 * usage.adb (Usage): Redo documentation of -gnatwa.
8247
8248 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8249
8250 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8251 an untagged incomplete type that is a limited view.
8252
8253 2010-06-14 Sergey Rybin <rybin@adacore.com>
8254
8255 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8256 and gnatppa.
8257
8258 2010-06-14 Thomas Quinot <quinot@adacore.com>
8259
8260 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8261 factoring duplicated code between...
8262 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8263 * a-envvar.ads: Minor reformatting
8264
8265 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8266
8267 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8268 static entities.
8269 (Scan_ALI): Take into account new Visibility field.
8270 (Visibility_Kind): New type.
8271 (Xref_Entity_Record): Replace Lib field by Visibility.
8272
8273 * gcc-interface/Make-lang.in: Update dependencies.
8274
8275 2010-06-14 Pascal Obry <obry@adacore.com>
8276
8277 * raise.h: Remove unused defintions.
8278
8279 2010-06-14 Bob Duff <duff@adacore.com>
8280
8281 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8282 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8283 the incorrect error "proper body expected".
8284 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8285 allowed here" error in case of subunits, which was triggered by the
8286 above change to P_Subunit.
8287
8288 2010-06-14 Sergey Rybin <rybin@adacore.com>
8289
8290 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8291
8292 2010-06-14 Thomas Quinot <quinot@adacore.com>
8293
8294 * lib-util.adb: Minor code reorganization.
8295
8296 2010-06-14 Robert Dewar <dewar@adacore.com>
8297
8298 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8299 (Known_ALI_Lines): Add entry for 'N' (notes)
8300 * ali.ads (Notes): New table to store Notes information
8301 * alloc.ads: Add entries for Notes table
8302 * lib-util.adb (Write_Info_Int): New procedure
8303 (Write_Info_Slit): New procedure
8304 (Write_Info_Uint): New procedure
8305 * lib-util.ads (Write_Info_Int): New procedure
8306 (Write_Info_Slit): New procedure
8307 (Write_Info_Uint): New procedure
8308 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8309 * lib-writ.ads: Update documentation for N (Notes) lines
8310 * lib.adb (Store_Note): New procedure
8311 * lib.ads (Notes): New table
8312 (Store_Note): New procedure
8313 * sem_prag.adb: Call Store_Note for affected pragmas
8314
8315 2010-06-14 Thomas Quinot <quinot@adacore.com>
8316
8317 * socket.c: Fix wrong condition in #ifdef
8318 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8319 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8320 because on VMS this type is a 32-bit pointer which is not compatible
8321 with the default for C pointers for code compiled with gcc on that
8322 platform.
8323
8324 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8325
8326 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8327 operator is an intrinsic operator declared in the DEC system extension.
8328 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8329 if the operator is a VMS intrinsic.
8330 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8331 constant-folded if the operands are signed and the operator is a VMS
8332 intrinsic.
8333
8334 2010-06-14 Robert Dewar <dewar@adacore.com>
8335
8336 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8337
8338 2010-06-14 Pascal Obry <obry@adacore.com>
8339
8340 * s-finimp.adb: Fix typo.
8341 * raise.h: Remove duplicate blank line.
8342
8343 2010-06-14 Vincent Celier <celier@adacore.com>
8344
8345 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8346 switches file names, as the configuration of the language may change
8347 in an extending project.
8348 (Process_Naming_Scheme): For sources of projects that are extended, set
8349 the configuration of the language from the highest extending project
8350 where the language is declared.
8351
8352 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8353
8354 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8355 whether the called subprogram is inherited from a containing
8356 subprogram.
8357 (Same_Or_Aliased_Subprograms): New function
8358
8359 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8360
8361 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8362 use-visible, check whether it is a primitive for more than one type.
8363
8364 2010-06-14 Robert Dewar <dewar@adacore.com>
8365
8366 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8367
8368 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8369 Has_Pragma_Unmodified flag.
8370
8371 2010-06-14 Thomas Quinot <quinot@adacore.com>
8372
8373 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8374 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8375 now done in GNAT.Sockets if necessary.
8376 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8377 Ensure mutual exclusion for netdb operations if the target platform
8378 requires it.
8379 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8380 struct hostent as an opaque type to improve portability.
8381 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8382 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8383 is available for the Ada side.
8384 * gcc-interface/Makefile.in: Remove g-sttsne-*
8385 * gcc-interface/Make-lang.in: Update dependencies.
8386
8387 2010-06-14 Vincent Celier <celier@adacore.com>
8388
8389 * gnatcmd.adb (Mapping_File): New function.
8390
8391 2010-06-14 Javier Miranda <miranda@adacore.com>
8392
8393 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8394
8395 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8396
8397 * ali.adb: Fix typo.
8398 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8399
8400 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8401
8402 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8403 instances.
8404
8405 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8406 the context does not have a homonym of the selector, emit default
8407 error message.
8408
8409 2010-06-14 Robert Dewar <dewar@adacore.com>
8410
8411 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8412 comment addition.
8413
8414 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8415
8416 * lib-xref.ads: Doc updates:
8417 - Allocate 'Q' for #include entity kind
8418 - Free 'Z'
8419 - Allocate 'g' for regular macros
8420 - Allocate 'G' for function-like macros
8421
8422 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8423
8424 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8425 Indicates that there is an instantiation in the current unit that
8426 loaded the body of the unit denoted by the with_clause.
8427 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8428 whether a with_clause in the current context denotes the unit that
8429 holds the generic declaration, and mark the with_clause accordingly.
8430 (Instantiate_Package_Body): call Mark_Context.
8431 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8432 whether a given body should be traversed before the spec of the main
8433 unit.
8434
8435 2010-06-14 Ed Falis <falis@adacore.com>
8436
8437 * sysdep.c: Fix 653 build against vThreads headers.
8438
8439 2010-06-14 Robert Dewar <dewar@adacore.com>
8440
8441 * sinfo.ads: Minor reformatting.
8442
8443 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8444
8445 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8446 the spec has been generated for a body without spec that carries an
8447 Inline_Always pragma.
8448
8449 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8450
8451 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8452 macro.
8453
8454 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8455
8456 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8457 declaration for VMs, as those are useless and might lead to duplicated
8458 local variable names in the generated code.
8459 * gcc-interface/Make-lang.in: Update dependencies.
8460
8461 2010-06-14 Robert Dewar <dewar@adacore.com>
8462
8463 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8464
8465 2010-06-14 Robert Dewar <dewar@adacore.com>
8466
8467 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8468 is renamed as Has_Following_Address_Clause.
8469 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8470 to allow the caller to avoid Initialize_Scalars having an effect.
8471 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8472 scalars with an address clause specified.
8473 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8474 to allow the caller to avoid Initialize_Scalars having an effect.
8475 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8476 (where it was called Has_Address_Clause).
8477 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8478 (where it was called Has_Address_Clause).
8479 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8480 problems for Initialize_Scalars (since we no longer initialize objects
8481 with an address clause.
8482
8483 2010-06-14 Robert Dewar <dewar@adacore.com>
8484
8485 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8486 condition.
8487
8488 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8489
8490 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8491 on the entity of an implicitly generated postcondition procedure.
8492
8493 2010-06-14 Thomas Quinot <quinot@adacore.com>
8494
8495 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8496 Discriminant_Constraint elist from full view to private view.
8497
8498 2010-06-14 Robert Dewar <dewar@adacore.com>
8499
8500 * sem_res.adb: Minor reformatting.
8501
8502 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8503
8504 * sem.adb: New version of unit traversal.
8505
8506 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8507 within a generic unit in the table of delayed calls.
8508
8509 2010-06-14 Robert Dewar <dewar@adacore.com>
8510
8511 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8512
8513 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8514
8515 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8516 during analysis as an explicit dereference, keep the reference implicit
8517 in the generic, but preserve the entity if global. This prevents
8518 malformed generic trees in the presence of some nested generics.
8519
8520 2010-06-14 Sergey Rybin <rybin@adacore.com>
8521
8522 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8523 tool with '-files=' option. Also fix some small errors (wrong brackets)
8524
8525 2010-06-14 Vincent Celier <celier@adacore.com>
8526
8527 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8528 the ALI files on the command line.
8529
8530 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8531 the same value as the parameter of the same name.
8532 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8533 to False.
8534 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8535 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8536 emit version symbols only for the units of the library.
8537 (Gen_Versions_C): Ditto.
8538
8539 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8540
8541 * sem_ch4.adb: Fix typo.
8542
8543 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8544
8545 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8546 vector IO doesn't work at default value properly.
8547
8548 2010-06-14 Doug Rupp <rupp@adacore.com>
8549
8550 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8551
8552 2010-06-14 Vincent Celier <celier@adacore.com>
8553
8554 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8555 sources of the project if a switch -files= is used.
8556
8557 2010-06-14 Thomas Quinot <quinot@adacore.com>
8558
8559 * exp_attr.adb: Minor reformatting.
8560
8561 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8562
8563 * gnat_ugn.texi: Minor typo fixes and wording changes.
8564
8565 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8566
8567 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8568 prefixed form, do not re-analyze first actual, which may need an
8569 implicit dereference.
8570 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8571 prefixed notation, the analysis will rewrite the node, and possible
8572 errors appear in the rewritten name of the node.
8573 * sem_res.adb: If a call is ambiguous because its first parameter is
8574 an overloaded call, report list of candidates, to clarify ambiguity of
8575 enclosing call.
8576
8577 2010-06-14 Doug Rupp <rupp@adacore.com>
8578
8579 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8580 VAX instructions with Asm insertions.
8581 * s-auxdec-vms_64.ads: Inline VAX queue functions
8582 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8583 that show up only on VMS.
8584 * gcc-interface/Makefile.in: Provide translation for
8585 s-auxdec-vms-alpha.adb.
8586
8587 2010-06-14 Olivier Hainque <hainque@adacore.com>
8588
8589 * initialize.c (VxWorks section): Update comments.
8590
8591 2010-06-14 Robert Dewar <dewar@adacore.com>
8592
8593 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8594
8595 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8596
8597 * init.c: Code clean up.
8598
8599 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8600
8601 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8602 not insert address clause in table for later validation if type of
8603 entity is generic, to prevent possible spurious errors.
8604
8605 * sem_ch8.adb: Code clean up.
8606
8607 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8608
8609 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8610 texi2pdf and texi2html.
8611 Document how to change scheduling properties on HP-UX.
8612
8613 2010-06-14 Thomas Quinot <quinot@adacore.com>
8614
8615 * g-socket.ads: Remove misleading comments.
8616
8617 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8618
8619 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8620 CLI_Target as this prevents proper detection of exported names
8621 duplicates when the exported language is different to CIL.
8622 (Process_Interface_Name): Add check for CIL convention exports,
8623 replacing the old one from Check_Duplicated_Export_Name.
8624
8625 2010-06-14 Matthew Heaney <heaney@adacore.com>
8626
8627 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8628 and new last satisfy constraints.
8629 (Delete_Last): prevent overflow for subtraction of index values
8630 (To_Vector): prevent overflow for addition of index values
8631
8632 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8633
8634 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8635 rewritten call, preserve the resulting type to prevent spurious errors,
8636 when the call is implicitly dereferenced in the context of an in-out
8637 actual.
8638
8639 * checks.adb (Apply_Discriminant_Check): If the target of the
8640 assignment is a renaming of a heap object, create constrained type for
8641 it to apply check.
8642
8643 2010-06-14 Pascal Obry <obry@adacore.com>
8644
8645 * prj-proc.adb: Fix copy of object directory for extending projects.
8646
8647 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8648
8649 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8650 (__gnat_install_handler, PowerPC linux): Activate the alternative
8651 signal stack.
8652
8653 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8654
8655 * gnat_rm.texi: Move to GFDL version 1.3.
8656 * gnat-style.texi: Ditto.
8657 * gnat_ugn.texi: Ditto.
8658
8659 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8660
8661 PR ada/43731
8662 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8663 mingw targets.
8664
8665 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8666
8667 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8668
8669 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8670
8671 * gcc-interface/ada-tree.h: Fix formatting nits.
8672
8673 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8674
8675 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8676 allocation.
8677 (init_dummy_type): Likewise.
8678 (gnat_pushlevel): Likewise.
8679
8680 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8681 (Subprogram_Body_to_gnu): Likewise.
8682 (Compilation_Unit_to_gnu): Likewise.
8683 (start_stmt_group): Likewise.
8684 (extract_encoding): Likewise.
8685 (decode_name): Likewise.
8686
8687 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8688
8689 * gcc-interface/decl.c (annotate_value): Likewise.
8690
8691 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8692 GTY option.
8693 (struct lang_decl): Likewise.
8694 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8695 (SET_DECL_LANG_SPECIFIC): Likewise.
8696
8697 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8698
8699 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8700 * gcc-interface/lang-specs.h: Likewise.
8701
8702 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8703
8704 PR c++/44294
8705 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8706
8707 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8708
8709 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8710
8711 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8712
8713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8714 TYPE_DECL of the equivalent type instead of building a new one.
8715
8716 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8717
8718 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8719 Fix nits in comments.
8720 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8721 * gcc-interface/trans.c (gigi): Likewise.
8722 (Attribute_to_gnu): Likewise.
8723 (Case_Statement_to_gnu): Likewise.
8724 (gnat_to_gnu): Adjust warning message.
8725 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8726 (build_vms_descriptor32): Likewise.
8727
8728 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8729
8730 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8731 IN_GCC_FRONTEND (still need rtl.h here).
8732
8733 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8734
8735 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8736 (gigi): Adjust call to set_stack_check_libfunc.
8737
8738 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8739
8740 * gcc-interface/utils.c: Do not include rtl.h.
8741
8742 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8743
8744 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8745 and gimple.h. Explain why rtl.h has to be included.
8746 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8747 * gcc-interface/targtyps.c: Do not include tm_p.h
8748 * gcc-interface/utils2.c: Do not include flags.h.
8749 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8750 and explain why it has to be included.
8751 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8752 and optabs.h.
8753 Include function.h and explain why. Explain why except.h is included.
8754 (enumerate_modes): Remove unused function.
8755 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8756 * gcc-interface/Make-lang.in: Update dependencies.
8757
8758 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8759
8760 * gcc-interface/misc.c (internal_error_function): Add context
8761 parameter. Use it to access show_column flag and instead of using
8762 global_dc. Call warn_if_plugins.
8763 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8764
8765 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8766
8767 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8768 * gcc-interface/trans.c (unshare_save_expr): Delete.
8769 (gigi): Do not unshare trees under SAVE_EXPRs here.
8770
8771 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8772
8773 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8774 build_call_list.
8775 * gcc-interface/utils.c (build_function_stub): Likewise.
8776
8777 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8778
8779 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8780 for Wuninitialized without -O.
8781
8782 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8783
8784 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8785 ADT_exception_data_name_id.
8786 (exception_data_name_id): New define.
8787 * gcc-interface/trans.c (gigi): Initialize it.
8788 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8789 exception type for standard exception definitions. Do not make them
8790 volatile.
8791 <E_Record_Type>: Equate fields of types associated with an exception
8792 definition to those of the standard exception type.
8793
8794 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8795
8796 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8797
8798 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8799
8800 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8801 code, improve comments and fix formatting nits.
8802
8803 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8804
8805 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8806 pointer already points to the new type. Chain the old pointer and its
8807 variants at the end of new pointer's chain after updating them.
8808
8809 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8810
8811 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8812 built for interfaces.
8813 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8814 imported_p instead of Is_Imported when considering constants.
8815 Do not promote alignment of exported objects.
8816 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8817
8818 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8819
8820 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8821 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8822 constants really constant.
8823 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8824
8825 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8826
8827 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8828
8829 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8830
8831 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8832 expressions of variant part of record types declared at library level.
8833
8834 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8835
8836 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8837 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8838 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8839 (make_descriptor_field): Likewise and pass correctly typed constants.
8840 (build_unc_object_type): Likewise.
8841 (unchecked_convert): Likewise.
8842 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8843 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8844 Adjust call to create_field_decl.
8845 (make_aligning_type): Likewise.
8846 (make_packable_type): Likewise.
8847 (maybe_pad_type): Likewise.
8848 (gnat_to_gnu_field): Likewise.
8849 (components_to_record): Likewise.
8850 (create_field_decl_from): Likewise.
8851 (create_variant_part_from): Remove superfluous test.
8852 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8853
8854 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8855
8856 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8857 (build_unc_object_type_from_ptr): Likewise.
8858 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8859 and pass it to create_type_decl. Declare the type. Simplify.
8860 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8861 it to build_unc_object_type.
8862 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8863 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8864 (gnat_to_gnu): Likewise.
8865 * gcc-interface/utils2.c (build_allocator): Likewise.
8866
8867 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8868
8869 PR 40989
8870 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8871
8872 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8873
8874 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8875
8876 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8877
8878 PR 40989
8879 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8880
8881 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8882
8883 * gnathtml.pl: Use 755 as mask for new directories.
8884
8885 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8886
8887 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8888 constant constructors before taking their address.
8889
8890 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8891
8892 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8893 and XVZ objects.
8894 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8895 XVZ variable as unit size of XVS type.
8896 (maybe_pad_type): Likewise.
8897
8898 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8899
8900 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8901 use memmove if the array type is bit-packed.
8902
8903 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8904
8905 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8906 build_common_tree_nodes.
8907
8908 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8909
8910 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8911
8912 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8913
8914 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8915 issue warning.
8916
8917 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8918
8919 * uintp.h (UI_Lt): Declare.
8920 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8921 computation in sizetype.
8922 <E_Array_Subtype>: Use unified handling for all index types. Do not
8923 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8924 bypass for PATs.
8925 (annotate_value): Change test for negative values.
8926 (validate_size): Apply test for negative values on GNAT nodes.
8927 (set_rm_size): Likewise.
8928 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8929 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8930 for negative values.
8931 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8932 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8933 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8934 lengths against zero.
8935
8936 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8937
8938 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8939 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8940 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8941 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8942 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8943 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8944 rm_size.
8945 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8946 flag_signed_char. Tag sizetype with "size_type" moniker.
8947 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8948 Remove useless built-in types. Equate unsigned_char_type_node to
8949 Standard.Character. Use it instead of char_type_node throughout.
8950 (Attribute_to_gnu): Likewise.
8951 (gnat_to_gnu): Likewise.
8952 * gcc-interface/utils2.c (build_call_raise): Likewise.
8953
8954 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8955
8956 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8957 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8958 (sbitsize_one_node): New macro.
8959 (sbitsize_unit_node): Likewise.
8960 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8961 latent bug in the computation of subrange_p. Fold wider_p predicate.
8962 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8963 the final comparison.
8964 (make_aligning_type): Build real negation and use sizetype throughout
8965 the offset computation.
8966 (maybe_pad_type): Do not issue the warning when the new size expression
8967 is too complex.
8968 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8969 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8970 sbitsize_unit_node.
8971 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8972 double negation.
8973 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8974 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8975 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8976 constants in sizetype. Remove dead code and tweak comments. Generate
8977 equality instead of inequality comparisons for zero length tests.
8978
8979 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8980
8981 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8982 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8983 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8984 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8985 purposes if no debug info is needed.
8986 Fix formatting. Reorder and add comments.
8987 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8988 variable and remove obsolete comment.
8989 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8990 (convert_vms_descriptor32): Likewise.
8991 (convert): Remove dead code.
8992 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8993 the reference to the P_ARRAY pointer.
8994 <POINTER_TYPE>: Likewise.
8995 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8996 (gnat_init_decl_processing): Delete, move contents to...
8997 * gcc-interface/misc.c (gnat_init): ...here.
8998
8999 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9000
9001 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
9002 calls. Return true for conversion from a record subtype to its type.
9003
9004 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9005
9006 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
9007 lieu of integer_type_node for boolean operations.
9008 (choices_to_gnu): Likewise.
9009 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9010 (Loop_Statement_to_gnu): Likewise.
9011 (establish_gnat_vms_condition_handler): Likewise.
9012 (Exception_Handler_to_gnu_sjlj): Likewise.
9013 (gnat_to_gnu): Likewise.
9014 (build_unary_op_trapv): Likewise.
9015 (build_binary_op_trapv): Likewise.
9016 (emit_range_check): Likewise.
9017 (emit_index_check): Likewise.
9018 (convert_with_check): Likewise.
9019 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9020 (convert_vms_descriptor32): Likewise.
9021 (convert_vms_descriptor): Likewise.
9022 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9023 (compare_arrays): Use boolean instead of integer constants.
9024 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9025 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
9026 is a boolean type.
9027 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9028 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9029 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9030 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9031 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9032 for boolean operations.
9033 (fill_vms_descriptor): Likewise. Fix formatting nits.
9034
9035 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9036
9037 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9038 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9039 Merge into...
9040 (LOOP_STMT_COND): ...this.
9041 (LOOP_STMT_BOTTOM_COND_P): New flag.
9042 (LOOP_STMT_TOP_UPDATE_P): Likewise.
9043 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9044 (can_equal_min_val_p): New static inline function.
9045 (can_equal_max_val_p): Likewise.
9046 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9047 new LOOP_STMT semantics. Use two different strategies depending on
9048 whether optimization is enabled to translate the loop.
9049 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9050
9051 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9052
9053 * uintp.adb (UI_From_Dint): Remove useless code.
9054 (UI_From_Int): Likewise.
9055 * uintp.h: Reorder declarations.
9056 (UI_From_gnu): Declare.
9057 (UI_Base): Likewise.
9058 (Vector_Template): Likewise.
9059 (Vector_To_Uint): Likewise.
9060 (Uint_0): Remove.
9061 (Uint_1): Likewise.
9062 * gcc-interface/gigi.h: Tweak comments.
9063 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9064 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9065 overflows.
9066 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9067 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9068 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9069 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9070 TYPE_MAX_VALUE.
9071
9072 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9073
9074 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9075 TYPE_NAME.
9076 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9077 (smaller_form_type_p): ...this. Change parameter and variable names.
9078 (call_to_gnu): Use the nominal type of the parameter to create the
9079 temporary if it's a smaller form of the actual type.
9080 (addressable_p): Return false if the actual type is integral and its
9081 size is greater than that of the expected type.
9082
9083 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9084
9085 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9086 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9087 (process_attributes): Delete.
9088 (post_error_ne_num): Change parameter name.
9089 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9090 with -g3. Remove a couple of obsolete lines. Minor tweaks.
9091 If type annotating mode, operate on trees to compute the adjustment to
9092 the sizes of tagged types. Fix long line.
9093 (cannot_be_superflat_p): Tweak head comment.
9094 (annotate_value): Fold local constant.
9095 (set_rm_size): Fix long line.
9096 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9097 (Attribute_to_gnu): Fix long line.
9098 <Attr_Size>: Remove useless assertion.
9099 Reorder statements. Use size_binop routine.
9100 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9101 Create local variables for the label and the test. Tweak comments.
9102 (Subprogram_Body_to_gnu): Reset cfun to NULL.
9103 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9104 (process_inlined_subprograms): Integrate into...
9105 (Compilation_Unit_to_gnu): ...this.
9106 (gnat_to_gnu): Fix long line.
9107 (post_error_ne_num): Change parameter name.
9108 * gcc-interface/utils.c (process_attributes): Static-ify.
9109 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9110 (create_type_decl): Add comment.
9111 (create_var_decl_1): Process the attributes after adding the VAR_DECL
9112 to the current binding level.
9113 (create_subprog_decl): Likewise for the FUNCTION_DECL.
9114 (end_subprog_body): Do not reset cfun to NULL.
9115 (build_vms_descriptor32): Fix long line.
9116 (build_vms_descriptor): Likewise.
9117 (handle_nonnull_attribute): Likewise.
9118 (convert_vms_descriptor64): Likewise.
9119 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9120 (gnat_protect_expr): Fix thinko.
9121
9122 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9123
9124 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9125 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9126 before translating the top-level node.
9127 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9128 <N_Object_Declaration>: Likewise.
9129 <N_Assignment_Statement>: Likewise.
9130 <N_Unchecked_Type_Conversion>: Likewise.
9131 (call_to_gnu): Remove kludge.
9132 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9133 associated with user returns to be preserved.
9134 (gnat_to_gnu): Add special code to deal with boolean rvalues.
9135 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9136 comparisons.
9137 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9138 <INDIRECT_REF>: Call build_fold_indirect_ref.
9139
9140 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
9141
9142 * g-socket.adb: A target can have multiple missing errno's. This
9143 will result in multiple errno's being defined as -1. Because of this
9144 we can not use a case but must use a series of if's to avoid
9145 a duplicate case error in GNAT.Sockets.Resolve_Error.
9146
9147 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9148
9149 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9150 a statement. Otherwise, if at top-level, push the processing of the
9151 elaboration routine. In the misaligned case, issue the error messages
9152 again on entry and create the temporary explicitly. Do not issue them
9153 for CONSTRUCTORs.
9154 For a function call, emit the range check if necessary.
9155 In the copy-in copy-out case, create the temporary for the return
9156 value explicitly.
9157 Do not unnecessarily convert by-ref parameters to the formal's type.
9158 Remove obsolete guards in conditions.
9159 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9160 target to call_to_gnu in all cases.
9161 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9162 (addressable_p) <CONSTRUCTOR>: Return false if not static.
9163 <COMPOUND_EXPR>: New case.
9164 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9165 expression if it has unconstrained array type.
9166 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9167 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9168 individual basis.
9169
9170 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9171
9172 * gcc-interface/trans.c (gigi): Do not start statement group.
9173 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9174 Start statement group and push binding level here...
9175 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9176 Do not push fake contexts at top level. Remove redundant code.
9177 (call_to_gnu): Rename a local variable and constify another.
9178 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9179 (set_current_block_context): Set it as the group's block.
9180 (gnat_init_decl_processing): Delete unrelated init code.
9181 (end_subprog_body): Use NULL_TREE.
9182
9183 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9184
9185 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9186 side-effects of actual parameters before the call.
9187
9188 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9189
9190 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9191 and warning.
9192 (set_rm_size): Reorder and remove obsolete test.
9193
9194 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9195
9196 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9197 (gigi): Adjust ATTRIBUTE_UNUSED markers.
9198 * gcc-interface/gadaint.h: New file.
9199 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9200 (__gnat_to_canonical_file_spec): Remove declaration.
9201 (number_names): Delete.
9202 (number_files): Likewise.
9203 (gigi): Adjust.
9204 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9205 above change.
9206
9207 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9208
9209 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9210 comment.
9211 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9212 Ekind. Return early for class-wide types. Do not compute initializer
9213 unless necessary. Reuse the tree for an associated class-wide type
9214 only if processing its root type.
9215
9216 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9217
9218 * gsocket.h: Run-time can no longer be built without network
9219 OS headers available. Changing RTEMS GNAT build procedure to
9220 reflect this and letting run-time build use network .h files.
9221
9222 2010-04-13 Duncan Sands <baldrick@free.fr>
9223
9224 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9225 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9226
9227 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9228
9229 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9230 (parent_name_id): New macro.
9231 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9232 * gcc-interface/trans.c (gigi): Initialize it.
9233 (lvalue_required_p) <N_Type_Conversion>: New case.
9234 <N_Qualified_Expression>: Likewise.
9235 <N_Allocator>: Likewise.
9236 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9237
9238 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9239
9240 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9241 (DECL_CONST_ADDRESS_P): New macro.
9242 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9243 (SAME_FIELD_P): Likewise.
9244 * gcc-interface/decl.c (constructor_address_p): New static function.
9245 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9246 the return value of above function.
9247 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9248 passed by reference.
9249 <E_Record_Subtype>: Likewise.
9250 Set TREE_ADDRESSABLE on the type if it passed by reference.
9251 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9252 (create_field_decl_from): Likewise.
9253 (substitute_in_type): Likewise.
9254 (purpose_member_field): Use SAME_FIELD_P.
9255 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9256 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9257 parameter and adjust recursive calls.
9258 <N_Explicit_Dereference>: New case.
9259 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9260 Adjust calls to lvalue_required_p. Do not return the initializer of a
9261 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9262 (call_to_gnu): Delay issuing error message for a misaligned actual and
9263 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9264 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9265 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9266 type is passed by reference.
9267 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9268 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9269 (build_simple_component_ref): Use SAME_FIELD_P.
9270
9271 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9272
9273 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9274 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9275 front-end's predicate Is_By_Reference_Type. Use consistent order and
9276 remove ??? comment. Use original conversion in all cases, if any.
9277 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9278 (convert): Use local copy in more cases.
9279 <INDIRECT_REF>: Remove deactivated code.
9280 (unchecked_convert): Use a couple of local copies.
9281
9282 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9283
9284 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9285 function.
9286 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9287 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9288 folding the result only if lvalue_required_for_attribute_p is true.
9289 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9290 typed constant to build_component_ref.
9291 (unchecked_convert): Likewise.
9292 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9293 (build_allocator): Likewise.
9294
9295 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9296
9297 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9298 dereference if the result type is passed by reference.
9299
9300 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9301
9302 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9303 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9304 goto to the next statement.
9305
9306 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9307
9308 * gcc-interface/gigi.h (maybe_variable): Delete.
9309 (protect_multiple_eval): Likewise.
9310 (maybe_stabilize_reference): Likewise.
9311 (gnat_save_expr): Declare.
9312 (gnat_protect_expr): Likewise.
9313 (gnat_stabilize_reference): Likewise.
9314 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9315 gnat_stabilize_reference.
9316 (maybe_variable): Delete.
9317 (elaborate_expression_1): Use gnat_save_expr.
9318 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9319 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9320 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9321 <N_Slice>: Use gnat_protect_exp.
9322 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9323 <N_In>: Use gnat_protect_expr.
9324 Pass NULL to gnat_stabilize_reference.
9325 (build_unary_op_trapv): Use gnat_protect_expr.
9326 (build_binary_op_trapv): Likewise.
9327 (emit_range_check): Likewise.
9328 (emit_index_check): Likewise.
9329 (convert_with_check): Likewise.
9330 (protect_multiple_eval): Move to utils2.c file.
9331 (maybe_stabilize_reference): Merge into...
9332 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9333 (gnat_stabilize_reference_1): Likewise.
9334 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9335 instead of protect_multiple_eval.
9336 * gcc-interface/utils2.c (compare_arrays): Likewise.
9337 (nonbinary_modular_operation): Likewise.
9338 (maybe_wrap_malloc): Likewise.
9339 (build_allocator): Likewise.
9340 (gnat_save_expr): New function.
9341 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9342 in common cases. Propagate TREE_READONLY onto dereferences.
9343 (gnat_stabilize_reference_1): Move from trans.c file.
9344 (gnat_stabilize_reference): Likewise.
9345
9346 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9347
9348 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9349 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9350 node. Use the type of the operand to set TREE_READONLY.
9351 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9352 _REF node. Do not overwrite TREE_READONLY.
9353 (call_to_gnu): Rename local variable and fix various nits. In the
9354 copy-in/copy-out case, build the SAVE_EXPR manually.
9355 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9356 and fold the computations.
9357 (protect_multiple_eval): Always save entire fat pointers.
9358 (maybe_stabilize_reference): Minor tweaks.
9359 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9360 tcc_type and tcc_statement.
9361 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9362 protect_multiple_eval in lieu of save_expr.
9363 (convert): Minor tweaks.
9364 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9365 (builtin_type_for_size): Call gnat_type_for_size directly.
9366 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9367 (contains_null_expr): Likewise
9368 (gnat_build_constructor): Do not call it.
9369 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9370 instead of gnat_stabilize_reference to protect the operands.
9371 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9372 save_expr.
9373 (maybe_wrap_malloc): Likewise.
9374 (build_allocator): Likewise.
9375 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9376 (gnat_mark_addressable): Rename parameter.
9377
9378 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9379
9380 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9381 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9382 (TYPE_RETURNS_BY_REF_P): Rename into.
9383 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9384 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9385 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9386 (build_return_expr): Likewise.
9387 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9388 Rename local variables. If the return Mechanism is By_Reference, pass
9389 return_by_invisible_ref_p to create_subprog_type instead of toggling
9390 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9391 the mechanism. Use regular return for contrained types with non-static
9392 size and return by invisible reference for unconstrained return types
9393 with default discriminants. Update comment.
9394 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9395 returns by invisible reference, turn the RESULT_DECL into a pointer.
9396 Do not handle DECL_BY_REF_P in the CICO case here.
9397 (call_to_gnu): Remove code handling return by target pointer. For a
9398 function call, if the return type has non-constant size, generate the
9399 assignment with an INIT_EXPR.
9400 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9401 If the function returns by invisible reference, build the copy return
9402 operation manually.
9403 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9404 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9405 Adjust for renaming of macros. Copy the node only when necessary.
9406 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9407 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9408 (convert_from_reference): Delete.
9409 (is_byref_result): Likewise.
9410 (gnat_genericize_r): Likewise.
9411 (gnat_genericize): Likewise.
9412 (end_subprog_body): Do not call gnat_genericize.
9413 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9414 (build_return_expr): Adjust parameter names, logic and comment.
9415
9416 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9417
9418 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9419 if the size is small enough. Propagate the alignment if there is an
9420 alignment clause on the original array type.
9421 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9422 Deal with under-aligned packed array types. Copy the size onto the
9423 justified modular type and don't lay it out again. Likewise for the
9424 padding type built for other under-aligned subtypes.
9425 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9426 on the type.
9427
9428 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9429
9430 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9431 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9432
9433 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9434
9435 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9436 do not set the result type if there is a specified target and do not
9437 convert the result in any cases.
9438 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9439 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9440
9441 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9442
9443 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9444
9445 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9446
9447 PR ada/42253
9448 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9449 pointer base types are variant of each other. Apply special treatment
9450 for null to fat pointer types in all cases.
9451
9452 2010-01-28 Pascal Obry <obry@adacore.com>
9453
9454 * s-win32.ads: Add some missing constants.
9455
9456 2010-01-28 Vincent Celier <celier@adacore.com>
9457
9458 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9459 Unknown_Package.
9460
9461 2010-01-28 Robert Dewar <dewar@adacore.com>
9462
9463 * gnat_rm.texi: Minor correction
9464
9465 2010-01-27 Pascal Obry <obry@adacore.com>
9466
9467 * g-awk.adb: ensure that an AWK session is reusable.
9468
9469 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9470
9471 * g-regist.adb (For_Every_Key): Fix previous change.
9472 Minor reformatting.
9473
9474 2010-01-27 Thomas Quinot <quinot@adacore.com>
9475
9476 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9477
9478 2010-01-27 Yannick Moy <moy@adacore.com>
9479
9480 * a-cdlili.adb (Insert): Correct exception message when cursor
9481 designates wrong list.
9482
9483 2010-01-27 Vincent Celier <celier@adacore.com>
9484
9485 * gnatcmd.adb: When there is only one main specified, the package
9486 support Switches (<main>) and attribute Switches is specified for the
9487 main, use these switches, instead of Default_Switches ("Ada").
9488
9489 2010-01-27 Robert Dewar <dewar@adacore.com>
9490
9491 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9492 implementation.
9493 * exp_disp.adb: Minor reformatting
9494
9495 2010-01-27 Tristan Gingold <gingold@adacore.com>
9496
9497 * seh_init.c: Use __ImageBase instead of _ImageBase.
9498
9499 2010-01-27 Javier Miranda <miranda@adacore.com>
9500
9501 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9502 profile of interface thunks. The type of the controlling formal is now
9503 the covered interface type (instead of the target tagged type).
9504
9505 2010-01-27 Sergey Rybin <rybin@adacore.com>
9506
9507 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9508
9509 2010-01-27 Robert Dewar <dewar@adacore.com>
9510
9511 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9512 changed from Expr to N.
9513
9514 2010-01-26 Thomas Quinot <quinot@adacore.com>
9515
9516 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9517 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9518 -gnatzr.
9519
9520 2010-01-26 Vincent Celier <celier@adacore.com>
9521
9522 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9523 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9524 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9525 attributes Run_Path_Option and Library_Install_Name_Option.
9526 * prj.ads (Project_Configuration): Replace component
9527 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9528 component Library_Install_Name_Option.
9529 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9530 Replace Run_Path_Origin_Supported with Run_Path_Origin
9531
9532 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9533
9534 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9535 is not hidden by a homograph declared in another actual package.
9536
9537 2010-01-26 Robert Dewar <dewar@adacore.com>
9538
9539 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9540 decisions for pragmas Assert, Check, Precondition, Postcondition if
9541 -gnata set.
9542 * scos.ads: Update comments.
9543 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9544 Also remove obsolete code for CT (exit point) SCOs.
9545
9546 2010-01-26 Thomas Quinot <quinot@adacore.com>
9547
9548 * switch-c.adb: Fix handling of -gnatz*
9549
9550 2010-01-26 Robert Dewar <dewar@adacore.com>
9551
9552 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9553 qualifiers for FOR/WHILE loops
9554 * scos.ads: Use separate type letters F/W for for/while loops
9555
9556 2010-01-26 Robert Dewar <dewar@adacore.com>
9557
9558 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9559 entries per line, one for each statement in the sequence).
9560 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9561 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9562 overflow. Output decisions in for loops.
9563 Exclude labels from CS lines.
9564 * scos.ads: Clarify that label is not included in the entry point
9565
9566 2010-01-26 Robert Dewar <dewar@adacore.com>
9567
9568 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9569 format of statement sequence SCO entries (one location/statement).
9570 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9571 * scos.ads: Update comments.
9572 * sem_eval.adb: Minor reformatting.
9573
9574 2010-01-26 Robert Dewar <dewar@adacore.com>
9575
9576 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9577 (Extend_Statement_Sequence): New procedures
9578 (Traverse_Declarations_Or_Statements): New handling for exits.
9579
9580 2010-01-26 Robert Dewar <dewar@adacore.com>
9581
9582 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9583 Case.
9584
9585 2010-01-26 Robert Dewar <dewar@adacore.com>
9586
9587 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9588 * scos.ads: Clarify handling of logical operators
9589
9590 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9591
9592 * s-tpoben.adb: Update comments.
9593
9594 2010-01-26 Robert Dewar <dewar@adacore.com>
9595
9596 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9597 present.
9598
9599 2010-01-26 Robert Dewar <dewar@adacore.com>
9600
9601 * scos.ads: Clean up documentation, remove obsolete XOR references
9602 2010-01-26 Vincent Celier <celier@adacore.com>
9603
9604 * gnat_ugn.texi: Complete documentation on the restrictions for
9605 combined options in -gnatxxx switches.
9606 Fix typo.
9607
9608 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9609
9610 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9611 a controlled operation, abort is already deferred at this point, so we
9612 need to use Defer_Abort_Nestable.
9613
9614 2010-01-26 Vincent Celier <celier@adacore.com>
9615
9616 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9617 a project extending a project with no languages.
9618
9619 2010-01-26 Vincent Celier <celier@adacore.com>
9620
9621 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9622 that follow -gnatef.
9623 Allow -gnateG to be followed by other options.
9624
9625 2010-01-26 Robert Dewar <dewar@adacore.com>
9626
9627 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9628 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9629 reformatting.
9630
9631 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9632
9633 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9634 that allows to iterate over all subkeys of a key.
9635
9636 2010-01-26 Ed Falis <falis@adacore.com>
9637
9638 * sysdep.c: enable NFS for VxWorks MILS
9639 * env.c: enable __gnat_environ for VxWorks MILS
9640 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9641
9642 2010-01-25 Bob Duff <duff@adacore.com>
9643
9644 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9645 is an internally-generated positional aggregate, and the bounds are
9646 already correctly set. We don't want to overwrite those bounds with
9647 bounds determined by context.
9648
9649 2010-01-25 Robert Dewar <dewar@adacore.com>
9650
9651 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9652 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9653
9654 2010-01-25 Thomas Quinot <quinot@adacore.com>
9655
9656 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9657 integer type) before subtracting 1, otherwise the computation may wrap
9658 (because size_t is modular) and cause the conversion to fail.
9659
9660 2010-01-25 Ed Falis <falis@adacore.com>
9661
9662 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9663
9664 2010-01-25 Vincent Celier <celier@adacore.com>
9665
9666 * prj-attr.adb: New attribute Run_Path_Origin_Required
9667 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9668 attribute Run_Path_Origin_Required.
9669 * prj.ads (Project_Configuration): New component
9670 Run_Path_Origin_Supported.
9671 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9672
9673 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9674
9675 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9676 have errors, do not continue resolution of the aggregate.
9677 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9678 the array type indicates an error.
9679
9680 2010-01-25 Bob Duff <duff@adacore.com>
9681
9682 * sinfo.ads: Minor comment fixes.
9683
9684 2010-01-25 Bob Duff <duff@adacore.com>
9685
9686 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9687
9688 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9689
9690 * gnatvsn.ads (Current_Year): Update.
9691
9692 2010-01-25 Florian Villoing <villoing@adacore.com>
9693
9694 * gnat_ugn.texi: Fix typo.
9695
9696 2010-01-25 Thomas Quinot <quinot@adacore.com>
9697
9698 * scos.ads: Update specification.
9699
9700 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9701
9702 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9703 enclosing subprogram has no previous spec, attach postcondition
9704 procedure to the defining entity for the body.
9705
9706 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9707
9708 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9709 initialization procedure of the ancestor part of an extension aggregate
9710 if it is an interface type.
9711
9712 2010-01-25 Vincent Celier <celier@adacore.com>
9713
9714 * gnatlink.adb (Process_Binder_File): The directory for the shared
9715 version of libgcc in the run path options is found in the subdirectory
9716 indicated by __gnat_default_libgcc_subdir.
9717 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9718 each platform.
9719
9720 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9721
9722 * sem_prag.adb: More flexible pragma Annotate.
9723
9724 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9725
9726 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9727 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9728
9729 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9730
9731 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9732
9733 2010-01-18 Jan Hubicka <jh@suse.cz>
9734
9735 PR middle-end/42068
9736 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9737 unit local variables.
9738
9739 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9740
9741 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9742
9743 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9744
9745 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9746 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9747
9748 2010-01-09 Simon Wright <simon@pushface.org>
9749
9750 PR ada/42626
9751 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9752 end-quote.
9753
9754
9755 \f
9756 Copyright (C) 2010 Free Software Foundation, Inc.
9757
9758 Copying and distribution of this file, with or without modification,
9759 are permitted in any medium without royalty provided the copyright
9760 notice and this notice are preserved.