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