[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
1 2010-08-10 Thomas Quinot <quinot@adacore.com>
2
3 * exp_attr.adb: Add comments.
4
5 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
6
7 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
8
9 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10
11 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
12
13 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
14
15 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
16 (build_vms_descriptor): Likewise.
17
18 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
19
20 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
21 (build_vms_descriptor32): Adjust calls to it for new parameter.
22 (build_vms_descriptor): Likewise.
23
24 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
25
26 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
27 (build_variant_list): Take and return a VEC instead of a tree.
28 (create_variant_part_from): Take a VEC instead of a tree for
29 variant_list. Adjust accordingly.
30 (gnat_to_gnu_entity): Adjust for changes to previous functions.
31
32 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
33
34 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
35 of alloca.
36 (components_to_record): Likewise.
37 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
38 * gcc-interface/utils.c (max_size): Likewise.
39 (build_vms_descriptor32): Likewise.
40 (build_vms_descriptor): Likewise.
41
42 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
43
44 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
45 (build_subst_list): Return a VEC instead of a tree.
46 (build_variant_list): Take a VEC for subst_list. Adjust
47 accordingly.
48 (create_field_decl_from): Likewise.
49 (create_variant_part_from): Likewise.
50 (copy_and_substitute_in_size): Likewise.
51 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
52 Free the built vector.
53
54 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
55
56 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
57 allocator for large imported objects.
58
59 2010-08-05 Robert Dewar <dewar@adacore.com>
60
61 * gnat1drv.adb: Minor reformatting.
62
63 2010-08-05 Ed Schonberg <schonberg@adacore.com>
64
65 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
66 instantiation, process its body before the spec of the main unit,
67 because it may contain subprograms invoked in the spec of main.
68 * einfo.ads: Add documention of delayed freeze.
69
70 2010-08-05 Vincent Celier <celier@adacore.com>
71
72 * prj-nmsc.adb (Process_Linker): Take into account new values for
73 attribute Response_File_Format.
74 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
75 GCC_Object_List and GCC_Option_List.
76
77 2010-08-05 Ed Schonberg <schonberg@adacore.com>
78
79 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
80 selected component that denotes a discriminant if it is the
81 discriminant of a component of an unconstrained record type.
82
83 2010-08-05 Ed Schonberg <schonberg@adacore.com>
84
85 * exp_util.adb (Insert_Actions): If the action appears within a
86 conditional expression that is already analyzed, insert action further
87 out.
88
89 2010-08-05 Robert Dewar <dewar@adacore.com>
90
91 * exp_ch4.adb: Minor reformatting.
92
93 2010-08-05 Thomas Quinot <quinot@adacore.com>
94
95 * exp_ch4.adb: Minor reformatting
96 * gnat1drv.adb: Minor reformatting.
97 Minor code reorganization (use Nkind_In).
98
99 2010-08-05 Ed Schonberg <schonberg@adacore.com>
100
101 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
102 determine whether the expression in an address clause for an
103 initialized object must be constant. Code moved from freeze.adb.
104 (Remove_Side_Effects): When the temporary is initialized with a
105 reference, indicate that the temporary is a constant as done in all
106 other cases.
107 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
108 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
109 If object does not need a constant address, remove side effects from
110 address expression, so it is elaborated at the point of the address
111 clause and not at the freeze point of the object, so that elaboration
112 order is respected.
113
114 2010-08-05 Vincent Celier <celier@adacore.com>
115
116 * prj.adb (Is_Compilable): Return False for header files of non Ada
117 languages.
118
119 2010-08-05 Emmanuel Briot <briot@adacore.com>
120
121 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
122 exec directory as a warning rather than an error.
123
124 2010-08-05 Thomas Quinot <quinot@adacore.com>
125
126 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
127 reformatting.
128
129 2010-08-05 Steve Baird <baird@adacore.com>
130
131 * exp_util.adb (Remove_Side_Effects): An access value which designates
132 a volatile object of a nonvolatile type is prohibited.
133 Do not call Make_Reference to construct a reference to such an object.
134
135 2010-08-05 Robert Dewar <dewar@adacore.com>
136
137 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
138 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
139 a-suewen.adb, a-suewen.ads: New files.
140 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
141 encoding packages.
142 * sem_elab.adb: Minor reformatting.
143
144 2010-08-05 Arnaud Charlet <charlet@adacore.com>
145
146 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
147 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
148 in case of null Comp.
149
150 2010-08-05 Robert Dewar <dewar@adacore.com>
151
152 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
153
154 2010-08-05 Gary Dismukes <dismukes@adacore.com>
155
156 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
157 nested access type whose designated type has tasks or is a protected
158 object when the restrictions No_Task_Hierarchy or
159 No_Local_Protected_Objects apply. Add ??? comment.
160 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
161 type is not a library-level type and No_Local_Protected_Objects applies.
162 (Analyze_Task_Type): Give a warning when a task type is not a
163 library-level type and No_Task_Hierarchy applies.
164
165 2010-08-05 Arnaud Charlet <charlet@adacore.com>
166
167 * sem.adb: Minor reformatting
168 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
169 mode, not useful.
170
171 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
172
173 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
174 include expr.h.
175 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
176 for the debug-only entity.
177 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
178
179 2010-08-03 Joseph Myers <joseph@codesourcery.com>
180
181 * gcc-interface/lang-specs.h: Don't pass -a options.
182
183 2010-07-28 Joseph Myers <joseph@codesourcery.com>
184
185 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
186 options. Check canonical_option_num_elements on options copied.
187
188 2010-07-27 Joseph Myers <joseph@codesourcery.com>
189
190 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
191 return value type. Don't check for missing arguments here.
192
193 2010-07-27 Joseph Myers <joseph@codesourcery.com>
194
195 * gcc-interface/misc.c (gnat_option_lang_mask): New.
196 (gnat_init_options): Update prototype. Reconstruct argv array
197 from decoded options.
198
199 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
200
201 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
202 case, merge the alias set of the old pointer type.
203
204 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
205
206 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
207 and recurse only for multidimensional array types instead.
208
209 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
210
211 PR ada/44892
212 * gcc-interface/utils.c (convert): Fix thinko in test.
213 (unchecked_convert): When converting from a scalar type to a type with
214 a different size, pad to have the same size on both sides.
215
216 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
217
218 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
219 equality for the component type of array types.
220
221 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
222
223 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
224 * gcc-interface/trans.c: Likewise.
225 * gcc-interface/utils.c: Likewise.
226 * gcc-interface/utils2.c: Likewise.
227
228 2010-07-13 Laurent GUERBY <laurent@guerby.net>
229
230 PR bootstrap/44458
231 * gcc-interface/targtyps.c: Include tm_p.h.
232 * gcc-interface/Make-lang.in: Update dependencies.
233
234 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
235
236 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
237 CALL_EXPR.
238
239 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
240
241 * gcc-interface/utils.c: Include diagnostic-core.h in every file
242 that includes toplev.h.
243
244 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
245
246 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
247 Branch to common code handling the alignment of discrete types.
248 <E_Signed_Integer_Type>: Likewise.
249 <E_Modular_Integer_Type>: Likewise.
250
251 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
252
253 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
254 (gnat_handle_option): Allocate only one element for gnat_argv.
255 (gnat_init): Do not populate gnat_argv.
256
257 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
258
259 * gcc-interface/trans.c: Do not include tree-flow.h.
260 * gcc-interface/Make-lang.in: Adjust dependencies.
261
262 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
263
264 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
265 of a TREE_LIST. Update comment.
266 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
267 Adjust call to gnat_build_constructor.
268 (Attribute_to_gnu): Likewise.
269 (gnat_to_gnu): Likewise.
270 (pos_to_constructor): Likewise.
271 (extract_values): Likewise.
272 * gcc-interface/utils.c (build_template): Likewise.
273 (convert_vms_descriptor64): Likewise.
274 (convert_vms_descriptor32): Likewise.
275 (convert_to_fat_pointer): Likewise.
276 (convert): Likewise.
277 (unchecked_convert): Likewise.
278 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
279 * gcc-interface/utils2.c (build_allocator): Likewise.
280 (fill_vms_descriptor): Likewise.
281 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
282 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
283 instead of TREE_LISTs.
284
285 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
286
287 * gcc-interface/misc.c: Do not include except.h.
288 * gcc-interface/Make-lang.in: Update dependencies.
289
290 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
291
292 * gcc-interface/trans.c: Include tree-flow.h.
293 (gnu_switch_label_stack): Delete.
294 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
295 its associated block cannot fall through. Do not emit the final label
296 if no cases branch to it.
297 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
298
299 2010-06-23 Thomas Quinot <quinot@adacore.com>
300
301 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
302 reference to a protected subprogram outside of the protected's scope,
303 ensure the corresponding external subprogram is frozen before the
304 reference.
305
306 2010-06-23 Ed Schonberg <schonberg@adacore.com>
307
308 * sem_prag.adb: Fix typo in error message.
309 * sem.adb: Refine previous change.
310
311 2010-06-23 Robert Dewar <dewar@adacore.com>
312
313 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
314 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
315 Implement Ada 2012 string encoding packages.
316
317 2010-06-23 Arnaud Charlet <charlet@adacore.com>
318
319 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
320 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
321 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
322 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
323 files.
324 * gcc-interface/Makefile.in: Enable use of above files.
325
326 2010-06-23 Ed Schonberg <schonberg@adacore.com>
327
328 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
329 of address clauses if if Ignore_Rep_Clauses is active.
330 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
331 remove address clause from tree so that it does not reach the backend.
332
333 2010-06-23 Arnaud Charlet <charlet@adacore.com>
334
335 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
336 expand 'Valid from user code in CodePeer mode, will be handled by the
337 back-end directly.
338
339 2010-06-23 Bob Duff <duff@adacore.com>
340
341 * g-comlin.ads: Minor comment improvements.
342
343 2010-06-23 Ed Schonberg <schonberg@adacore.com>
344
345 * sem_res.adb (Uses_SS): The expression that initializes a controlled
346 component of a record type may be a user-defined operator that is
347 rewritten as a function call.
348
349 2010-06-23 Bob Duff <duff@adacore.com>
350
351 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
352
353 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
354
355 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
356 label to the new sequence of statements. Set the sloc of the raise
357 statement onto the new goto statements.
358
359 2010-06-23 Robert Dewar <dewar@adacore.com>
360
361 * a-stuten.ads, a-stuten.adb: New files.
362 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
363 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
364
365 2010-06-23 Robert Dewar <dewar@adacore.com>
366
367 * gnat_ugn.texi: Add documentation of -gnat12 switch
368 Add documentation of -gnatX switch.
369
370 2010-06-23 Ed Schonberg <schonberg@adacore.com>
371
372 * inline.ads: Include the current Ada_Version in the info for pending
373 instance bodies, so that declaration and body are compiled with the
374 same Ada_Version.
375 * inline.adb: Move with_clause for Opt to spec.
376 * sem_ch12.adb (Analyze_Package_Instantiation,
377 Analyze_Subprogram_Instantiation): Save current Ada_Version in
378 Pending_Instantiation information.
379 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
380 Inline_Package_Body): Use the Ada_Version present in the body
381 information.
382
383 2010-06-23 Robert Dewar <dewar@adacore.com>
384
385 * usage.adb: Add documentation for -gnat12 switch.
386 * errout.ads: Add VMS alias entry for -gnat12 switch
387 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
388 Add documentation for pragma Extensions_Allowed.
389 * opt.ads: Add entry for Ada 2012 mode.
390 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
391 features.
392 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
393 Ada_2012.
394 * sem_ch13.adb: Add handling for Ada 2012 mode.
395 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
396 * switch-c.adb: Add handling for -gnat12 switch.
397 Implement -gnat2005 and -gnat2012.
398 * usage.adb: Add documentation for -gnat12 switch.
399 * vms_data.ads: Add /12 switch for Ada 2012 mode.
400
401 2010-06-23 Arnaud Charlet <charlet@adacore.com>
402
403 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
404 No_Task_Hierarchy restriction. Add comment.
405 * exp_ch9.adb, exp_ch3.adb: Update comments.
406
407 2010-06-23 Robert Dewar <dewar@adacore.com>
408
409 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
410 * sem_res.adb: Add comments.
411 * sem_util.adb: Minor reformatting. Add comments.
412 Change increment on Actuals_In_Call table.
413 * opt.ads: Minor: add 'constant'.
414
415 2010-06-23 Javier Miranda <miranda@adacore.com>
416
417 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
418 TSD to Null_Address if No_Dispatching_Calls is active.
419
420 2010-06-23 Vincent Celier <celier@adacore.com>
421
422 * a-comlin.ads: Indicate that use of this package is not supported
423 during the elaboration of an auto-initialized Stand-Alone Library.
424
425 2010-06-23 Ed Schonberg <schonberg@adacore.com>
426
427 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
428 alignment clause on a record type to determine if a component may be
429 misaligned. The decision must be taken in the back-end where target
430 alignment information is known.
431
432 2010-06-23 Arnaud Charlet <charlet@adacore.com>
433
434 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
435 systematically in CodePeer mode to simplify generated code.
436 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
437 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
438 No_Task_Hierarchy is set instead of crasshing.
439
440 2010-06-23 Thomas Quinot <quinot@adacore.com>
441
442 * sem_util.adb: Minor code cleanup: test for proper entity instead of
443 testing just Chars attribute when checking whether a given scope is
444 System.
445 * exp_ch4.adb, einfo.adb: Minor reformatting.
446
447 2010-06-23 Vincent Celier <celier@adacore.com>
448
449 PR ada/44633
450 * switch-m.adb (Normalize_Compiler_Switches): Take into account
451 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
452 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
453
454 2010-06-23 Ed Schonberg <schonberg@adacore.com>
455
456 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
457 operation with a universal real operand, and the right operand is a
458 range with universal bounds, find unique fixed point that may be
459 candidate, and warn appropriately.
460
461 2010-06-23 Ed Schonberg <schonberg@adacore.com>
462
463 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
464 properly the rare cases where VMS operators are visible through
465 Extend_System, but the default System is being used and Address is a
466 private type.
467 * sem_util.adb: Widen predicate Is_VMS_Operator.
468
469 2010-06-23 Vincent Celier <celier@adacore.com>
470
471 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
472 and -gnateS.
473
474 2010-06-23 Olivier Hainque <hainque@adacore.com>
475
476 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
477 Interface_Name as foreign. These are GCC builtin imports for
478 which Ada specific processing doesn't apply.
479
480 2010-06-23 Thomas Quinot <quinot@adacore.com>
481
482 * sem_ch12.adb: Minor reformatting.
483
484 2010-06-23 Ed Schonberg <schonberg@adacore.com>
485
486 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
487 determine whether an intrinsic subprogram is VMS specific.
488
489 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
490
491 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
492 is present in the entity.
493
494 2010-06-23 Arnaud Charlet <charlet@adacore.com>
495
496 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
497 Fix handling of parameters.
498 Add protection against unexpected cases.
499 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
500 access level, since "A" suffix is already used elsewhere. Similarly,
501 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
502 for xxx'Class.
503
504 2010-06-23 Thomas Quinot <quinot@adacore.com>
505
506 * sem_util.adb, sem_util.ads: Minor reformatting.
507
508 2010-06-23 Vincent Celier <celier@adacore.com>
509
510 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
511 the previous behavior of gprclean when there are missing files.
512
513 2010-06-23 Ed Schonberg <schonberg@adacore.com>
514
515 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
516 generic body is not a fatal error.
517 (Mark_Context): Handle properly names of child units.
518 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
519 instantiations.
520
521 2010-06-23 Vincent Celier <celier@adacore.com>
522
523 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
524 non-empty line.
525
526 2010-06-23 Bob Duff <duff@adacore.com>
527
528 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
529 Memory_Space, because CPU_Time doesn't seem to provide any significant
530 speed advantage in practice. Cleanup: Get rid of constant
531 Default_Optimization; doesn't seem to add anything. Use case
532 statements instead of if statements; seems cleaner.
533
534 2010-06-23 Olivier Hainque <hainque@adacore.com>
535
536 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
537 Wshadow instead of Wextra to guard warning on absence of internal
538 builtin decl for an import. Fix use of quote in warning text.
539 (intrin_arglists_compatible_p): Remove processing of integer trailing
540 args on the Ada side. Fix use of literal > in warning text.
541 (intrin_return_compatible_p): Never warn on "function imported as
542 procedure". Defer the void/void case to the common type compatibility
543 check.
544 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
545 of GCC builtin imports.
546
547 2010-06-23 Olivier Hainque <hainque@adacore.com>
548
549 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
550 helper for ...
551 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
552 functions, helpers for ...
553 (intrin_profiles_compatible_p): New function, replacement for ...
554 (compatible_signatures_p): Removed.
555 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
556 attempt to bind an unregistered builtin function. When we have
557 one, use it and warn on profile incompatibilities.
558
559 2010-06-23 Arnaud Charlet <charlet@adacore.com>
560
561 * gcc-interface/Make-lang.in: Update dependencies.
562
563 2010-06-23 Ed Schonberg <schonberg@adacore.com>
564
565 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
566 for a coextension in an object declaration is a concatenation, treat
567 coextension as dynamic.
568
569 2010-06-23 Javier Miranda <miranda@adacore.com>
570
571 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
572 internal entities are added to the scope of the tagged type.
573 (Derive_Subprograms): Do not stop derivation when we find the first
574 internal entity that has attribute Interface_Alias. After the change
575 done to Override_Dispatching_Operations it is no longer true that
576 these primirives are always located at the end of the list of
577 primitives.
578 * einfo.ads (Primitive_Operations): Add documentation.
579 * exp_disp.adb (Write_DT): Improve output adding to the name of the
580 primitive a prefix indicating its corresponding tagged type.
581 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
582 entity covers the primitive of an interface that is not an ancestor of
583 this tagged type then the new primitive is added at the end of the list
584 of primitives. Required to fulfill the C++ ABI.
585
586 2010-06-23 Javier Miranda <miranda@adacore.com>
587
588 * atree.ads (Set_Reporting_Proc): New subprogram.
589 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
590 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
591 to routines of package Scil_ll by indirect call to the registered
592 subprogram.
593 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
594 that is invoked when a node is allocated, replaced or rewritten.
595 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
596 the SCIL node. Used as argument for Set_Reporting_Proc.
597 (Initialize): Register Copy_SCIL_Node as the reporting routine that
598 is invoked by atree.
599
600 2010-06-23 Thomas Quinot <quinot@adacore.com>
601
602 * sem_ch3.ads: Minor reformatting.
603
604 2010-06-23 Ed Schonberg <schonberg@adacore.com>
605
606 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
607 always analyze the generic body and instance, because it may be needed
608 downstream.
609 (Mark_Context): Prepend the with clauses for needed generic units, so
610 they appear in a better order for CodePeer.
611 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
612
613 2010-06-23 Emmanuel Briot <briot@adacore.com>
614
615 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
616
617 2010-06-23 Robert Dewar <dewar@adacore.com>
618
619 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
620
621 2010-06-23 Thomas Quinot <quinot@adacore.com>
622
623 * a-tags.ads: Fix description of TSD structure.
624
625 2010-06-23 Ed Schonberg <schonberg@adacore.com>
626
627 * sem_ch12.adb (Mark_Context): When indicating that the body of a
628 generic unit is needed prior to the unit containing an instantiation,
629 search recursively the context of the generic to add other generic
630 bodies that may be instantiated indirectly through the current instance.
631
632 2010-06-23 Robert Dewar <dewar@adacore.com>
633
634 * freeze.adb: Minor reformatting.
635
636 2010-06-23 Bob Duff <duff@adacore.com>
637
638 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
639
640 2010-06-23 Vincent Celier <celier@adacore.com>
641
642 * make.adb (Compile_Sources): Complete previous change.
643
644 2010-06-23 Ed Schonberg <schonberg@adacore.com>
645
646 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
647 Constrained extra formal.
648
649 2010-06-23 Ed Schonberg <schonberg@adacore.com>
650
651 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
652 Initialize_Scalars are enabled, compile the generated equality function
653 for a composite type with full checks enabled, so that validity checks
654 are performed on individual components.
655
656 2010-06-23 Emmanuel Briot <briot@adacore.com>
657
658 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
659 Missing_Source_Files.
660
661 2010-06-23 Robert Dewar <dewar@adacore.com>
662
663 * exp_ch3.adb, exp_util.adb: Minor reformatting.
664
665 2010-06-23 Jose Ruiz <ruiz@adacore.com>
666
667 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
668 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
669 Clock (without delays) use a run time which is properly initialized.
670
671 2010-06-23 Vincent Celier <celier@adacore.com>
672
673 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
674 when -f -u and a main is specified on the command line. However,
675 attempt to compile even when the ALI file is read-only when
676 Must_Compile is True.
677
678 2010-06-23 Thomas Quinot <quinot@adacore.com>
679
680 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
681
682 2010-06-23 Javier Miranda <miranda@adacore.com>
683
684 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
685 entities for parent types that are interfaces. Needed in generics to
686 handle formals that implement interfaces.
687 (Derive_Subprograms): Add assertion for derivation of tagged types that
688 do not cover interfaces. For generics, complete code that handles
689 derivation of type that covers interfaces because the previous
690 condition was weak (it required only name consistency; arguments were
691 not checked). Add new code to locate primitives covering interfaces
692 defined in generic units or instantiatons.
693 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
694 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
695 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
696 interfaces that are parents of the type because they share the primary
697 dispatch table.
698 (Register_Primitive): Do not register primitives of interfaces that
699 are parents of the type.
700 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
701 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
702 primitives skip primitives of interfaces that are parents of the type.
703
704 2010-06-23 Ed Schonberg <schonberg@adacore.com>
705
706 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
707 attribute cannot be constant-folded if an index type is a formal type,
708 or is derived from one.
709 * checks.adb (Determine_Range): ditto.
710
711 2010-06-23 Arnaud Charlet <charlet@adacore.com>
712
713 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
714
715 2010-06-23 Bob Duff <duff@adacore.com>
716
717 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
718 (Insert): Disallow nul characters.
719 (misc output routines): Assert no nul characters.
720
721 2010-06-23 Ed Schonberg <schonberg@adacore.com>
722
723 * exp_ch4.adb: Use predefined unsigned type in all cases.
724
725 2010-06-23 Bob Duff <duff@adacore.com>
726
727 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
728 * g-pehage.ads: Minor comment fixes.
729 * g-pehage.adb: Minor: Add some additional debugging printouts under
730 Verbose flag.
731
732 2010-06-23 Robert Dewar <dewar@adacore.com>
733
734 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
735 (Worse_Choice): Always prefer Pure/Preelab.
736
737 2010-06-23 Vincent Celier <celier@adacore.com>
738
739 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
740
741 2010-06-23 Robert Dewar <dewar@adacore.com>
742
743 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
744 checking returns in generic case.
745 (Check_Missing_Return): New procedure.
746
747 2010-06-23 Robert Dewar <dewar@adacore.com>
748
749 * bindgen.adb, switch-b.adb: Minor reformatting.
750
751 2010-06-23 Javier Miranda <miranda@adacore.com>
752
753 * frontend.adb (Frontend): Add call to initialize the new package
754 SCIL_LL.
755 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
756 Adjust_SCIL_Node.
757 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
758 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
759 Adjust_SCIL_Node.
760 * exp_util.adb (Insert_Actions): Remove code for
761 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
762 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
763 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
764 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
765 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
766 * sinfo.ads (SCIL_Related_Node): Field removed.
767 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
768 (N_SCIL_Tag_Init): Node removed.
769 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
770 (Check_SCIL_Node): New implementation.
771 (Find_SCIL_Node): Removed.
772 * sem.adb (Analyze): Remove management of
773 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
774 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
775 Adjust_SCIL_Node.
776 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
777 Set_SCIL_Related_Node and avoid adding the SCIL node before the
778 referenced node using Insert_Action because this is not longer required.
779 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
780 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
781 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
782 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
783 because we no longer require to generate the SCIL node before the call.
784 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
785 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
786 nodes before the referenced node using Insert_Action because this
787 is not longer required.
788 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
789 update the SCIL_Node field.
790 * sprint.adb (Sprint_Node_Actual): Remove code for
791 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
792 * treepr.adb (Print_Node): Print the SCIL node field (if available).
793 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
794 SCIL_Tag_Init nodes.
795 * scil_ll.ads, scil_ll.adb: New files.
796 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
797 dependencies.
798
799 2010-06-23 Robert Dewar <dewar@adacore.com>
800
801 * sem_ch6.adb: Minor reformatting.
802
803 2010-06-23 Doug Rupp <rupp@adacore.com>
804
805 * bindusg.adb (Display): Write -Hnn line.
806 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
807 necessary.
808 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
809 valid values to 32 and 64.
810 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
811 ENABLE, DISABLE as valid settings.
812 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
813 * opt.ads (Heap_Size): New global variable.
814 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
815 TARGET_MALLOC64 check. Fix comment.
816
817 2010-06-23 Robert Dewar <dewar@adacore.com>
818
819 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
820 reformatting. Add comments.
821 * errout.adb (Finalize): Properly adjust warning count when deleting
822 continuations.
823
824 2010-06-22 Robert Dewar <dewar@adacore.com>
825
826 * errout.adb (Finalize): Set Prev pointers.
827 (Finalize): Delete continuations for deletion by warnings off(str).
828 * erroutc.ads: Add Prev pointer to error message structure.
829
830 2010-06-22 Ed Schonberg <schonberg@adacore.com>
831
832 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
833 child unit, examine context of parent units to locate instantiated
834 generics whose bodies may be needed.
835 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
836 with_clause for the instantiated generic, examine the context of its
837 parents, to set Withed_Body flag, so that it can be visited earlier.
838 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
839 an unsigned type, use a type of the proper size for the intermediate
840 value, to prevent alignment problems on unchecked conversion.
841
842 2010-06-22 Geert Bosch <bosch@adacore.com>
843
844 * s-rannum.ads Change Generator type to be self-referential to allow
845 Random to update its argument. Use "in" mode for the generator in the
846 Reset procedures to allow them to be called from the Ada.Numerics
847 packages without tricks.
848 * s-rannum.adb: Use the self-referencing argument to get write access
849 to the internal state of the random generator.
850 * a-nudira.ads: Make Generator a derived type of
851 System.Random_Numbers.Generator.
852 * a-nudira.adb: Remove use of 'Unrestricted_Access.
853 Put subprograms in alpha order and add headers.
854 * g-mbdira.ads: Change Generator type to be self-referential.
855 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
856
857 2010-06-22 Robert Dewar <dewar@adacore.com>
858
859 * freeze.adb: Minor reformatting
860 Minor code reorganization (use Nkind_In and Ekind_In).
861
862 2010-06-22 Bob Duff <duff@adacore.com>
863
864 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
865 -gnatc when a file is compiled that we cannot generate code for, not
866 helpful and confusing.
867
868 2010-06-22 Vincent Celier <celier@adacore.com>
869
870 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
871 switches -gnatknn.
872
873 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
874
875 * s-rannum.adb: Replace constants with commented symbols.
876 * s-rannum.ads: Explain significance of the initial value of the data
877 structure.
878
879 2010-06-22 Ed Schonberg <schonberg@adacore.com>
880
881 * a-ngcoty.adb: Clarify comment.
882
883 2010-06-22 Gary Dismukes <dismukes@adacore.com>
884
885 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
886 expansion for indexing packed arrays with small power-of-2 component
887 sizes when the target is AAMP.
888 (Expand_Packed_Element_Reference): Return without expansion for
889 indexing packed arrays with small power-of-2 component sizes when the
890 target is AAMP.
891
892 2010-06-22 Geert Bosch <bosch@adacore.com>
893
894 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
895 Float'Range.
896
897 2010-06-22 Robert Dewar <dewar@adacore.com>
898
899 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
900 updates.
901
902 2010-06-22 Doug Rupp <rupp@adacore.com>
903
904 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
905 packages.
906 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
907 (pragma Ident): Add a default ident string in the private part.
908
909 2010-06-22 Robert Dewar <dewar@adacore.com>
910
911 * cstand.adb: Minor reformatting.
912
913 2010-06-22 Ed Schonberg <schonberg@adacore.com>
914
915 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
916 recognize the Shift and Rotation intrinsics that are known to the
917 compiler but have no interface name.
918
919 2010-06-22 Geert Bosch <bosch@adacore.com>
920
921 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
922 scaling in case of overflow or NaN results.
923
924 2010-06-22 Robert Dewar <dewar@adacore.com>
925
926 * cstand.adb: Complete previous change.
927 * g-dirope.ads: Add comment.
928 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
929
930 2010-06-22 Ed Schonberg <schonberg@adacore.com>
931
932 * cstand.adb: Add tree nodes for pragma Pack on string types.
933
934 2010-06-22 Javier Miranda <miranda@adacore.com>
935
936 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
937 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
938 formal of a primitive.
939 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
940 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
941 formal of a primitive.
942 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
943 to obtain the last formal of a primitive.
944
945 2010-06-22 Geert Bosch <bosch@adacore.com>
946
947 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
948 depending on __EMX__ or MSDOS being defined.
949 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
950 * a-excpol-abort.adb: Update comment indicating users of the file.
951 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
952 Windows.
953 * env.c: Remove empty conditional for MSDOS.
954 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
955 of OS/2 in comment.
956
957 2010-06-22 Robert Dewar <dewar@adacore.com>
958
959 * s-rannum.adb: Minor reformatting.
960
961 2010-06-22 Javier Miranda <miranda@adacore.com>
962
963 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
964 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
965 package Sem_Util to package Sem_Aux.
966
967 2010-06-22 Javier Miranda <miranda@adacore.com>
968
969 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
970 remove useless restriction on imported routines when building the
971 dispatch tables.
972
973 2010-06-22 Robert Dewar <dewar@adacore.com>
974
975 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
976 types.
977
978 2010-06-22 Javier Miranda <miranda@adacore.com>
979
980 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
981 generic subprogram declarations to ensure proper context. Add missing
982 support for generic actuals.
983 (Try_Primitive_Operation): Add missing support for concurrent types that
984 have no Corresponding_Record_Type. Required to diagnose errors compiling
985 generics or when compiling with no code generation (-gnatc).
986 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
987 the corresponding record type.
988 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
989 documentation. Do minimum decoration when processing a primitive of a
990 concurrent tagged type that covers interfaces. Required to diagnose
991 errors in the Object.Operation notation compiling generics or under
992 -gnatc.
993 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
994 propagation of attribute Interface_List to the corresponding record.
995 (Expand_N_Task_Type_Declaration): Code cleanup.
996 (Expand_N_Protected_Type_Declaration): Code cleanup.
997
998 2010-06-22 Matthew Heaney <heaney@adacore.com>
999
1000 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1001
1002 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1003
1004 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
1005 that is able to produce all representable floating-point numbers in the
1006 unit interval. Remove template parameter Shift_Right, no longer used.
1007 * gnat_rm.texi: Document the period of the pseudo-random number
1008 generator under the description of its algorithm.
1009 * gcc-interface/Make-lang.in: Update dependencies.
1010
1011 2010-06-22 Thomas Quinot <quinot@adacore.com>
1012
1013 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1014 reference to discriminant (can be an expanded name as well as an
1015 identifier).
1016
1017 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1018
1019 * exp_ch6.adb: Clarify comment.
1020
1021 2010-06-22 Geert Bosch <bosch@adacore.com>
1022
1023 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
1024 with decimal small as decimal types, avoiding floating-point arithmetic.
1025 (Has_Decimal_Small): New function.
1026 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
1027 fixed point types.
1028 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
1029 callers to call the new function in Einfo that takes the entity as
1030 parameter.
1031
1032 2010-06-22 Robert Dewar <dewar@adacore.com>
1033
1034 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1035
1036 2010-06-22 Thomas Quinot <quinot@adacore.com>
1037
1038 * sem_elab.adb: Minor reformatting.
1039
1040 2010-06-22 Vincent Celier <celier@adacore.com>
1041
1042 * gnatsym.adb: Put the object files in the table in increasing
1043 aphabetical order of base names.
1044
1045 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1046
1047 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
1048 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
1049 the corresponding discriminal within a record declaration.
1050
1051 2010-06-22 Thomas Quinot <quinot@adacore.com>
1052
1053 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
1054 expression referring to a discriminal of the type of the aggregate (not
1055 a discriminal of some other unrelated type), and the prefix in the
1056 generated selected component must come from Lhs, not Obj.
1057
1058 2010-06-22 Thomas Quinot <quinot@adacore.com>
1059
1060 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1061 when to freeze the parent type.
1062
1063 2010-06-22 Robert Dewar <dewar@adacore.com>
1064
1065 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
1066 exp_aggr.adb: Minor reformatting.
1067 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
1068 GNAT.MBSS_Float_Random.
1069 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
1070
1071 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1072
1073 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
1074 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
1075 (Random_Float_Template, Random): New method of creating
1076 uniform floating-point variables that allow the creation of all machine
1077 values in [0 .. 1).
1078
1079 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1080
1081 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1082
1083 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
1084 to abstract targets to check that the type is tagged and comes from
1085 source, rather than only testing for targets of interface types. Remove
1086 premature return.
1087
1088 2010-06-22 Vincent Celier <celier@adacore.com>
1089
1090 * vms_data.ads: Modify the declarations of qualifiers
1091 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1092 without error.
1093
1094 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1095
1096 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1097 expansion is disabled.
1098
1099 2010-06-22 Robert Dewar <dewar@adacore.com>
1100
1101 * makeusg.adb: Minor reformatting.
1102
1103 2010-06-22 Robert Dewar <dewar@adacore.com>
1104
1105 * types.ads: (Dint): Removed, no longer used anywhere.
1106 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
1107 (UI_Mul): Avoid use of UI_From_Dint.
1108 (UI_From_Dint): Removed, not used.
1109 * uintp.ads (UI_From_Dint): Removed, not used.
1110 (Uint_Min/Max_Simple_Mul): New constants.
1111
1112 2010-06-22 Vincent Celier <celier@adacore.com>
1113
1114 * clean.adb (Parse_Cmd_Line): Recognize switch
1115 --unchecked-shared-lib-imports.
1116 (Usage): Add line for switch --unchecked-shared-lib-imports
1117 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
1118 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
1119 moved from GPR_Util.
1120 * switch-m.adb (Scan_Make_Switches): Recognize switch
1121 --unchecked-shared-lib-imports.
1122 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
1123 * gnat_ugn.texi: Add documentation for new switch
1124 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
1125
1126 2010-06-22 Javier Miranda <miranda@adacore.com>
1127
1128 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
1129 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
1130 this patch replaces duplication of code that traverses the chain of
1131 aliased primitives by a call to routine Ultimate_Alias that
1132 provides this functionality.
1133
1134 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1135
1136 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
1137 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
1138 Warnings Off/On.
1139
1140 2010-06-22 Thomas Quinot <quinot@adacore.com>
1141
1142 * einfo.ads: Minor reformatting.
1143
1144 2010-06-22 Javier Miranda <miranda@adacore.com>
1145
1146 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
1147 eliminated primitives.
1148 (Make_DT): Avoid referencing eliminated primitives.
1149 (Register_Primitive): Do not register eliminated primitives in the
1150 dispatch table. Required to add this functionality when the program is
1151 compiled without static dispatch tables (-gnatd.t)
1152
1153 2010-06-22 Emmanuel Briot <briot@adacore.com>
1154
1155 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
1156 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
1157 warnings on use of internal GNAT units.
1158
1159 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1160
1161 * s-taprop-vxworks.adb (Set_Priority): Update comments.
1162
1163 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1164
1165 * s-rannum.adb: Make stylistic change to remove mystery constant in
1166 Extract_Value. Image_Numeral_Length: new symbolic constant.
1167
1168 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1169
1170 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
1171 Is_Synchronized_Interface, Is_Task_Interface into computable
1172 predicates, to free three flags in entity nodes.
1173 * sem_ch3.adb: Remove setting of these flags.
1174
1175 2010-06-22 Robert Dewar <dewar@adacore.com>
1176
1177 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
1178 reformatting.
1179 * s-taprop-vxworks.adb: Add comment for Set_Priority.
1180 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
1181 * projects.texi: Move @cindex to the left margin, since otherwise we
1182 are missing entries in the index.
1183
1184 2010-06-22 Emmanuel Briot <briot@adacore.com>
1185
1186 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
1187 packages from the GNAT hierarchy instead of System when possible.
1188 * gcc-interface/Make-lang.in: Update dependencies.
1189
1190 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1191
1192 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
1193 previously in place to reorder the ready queue when a task drops its
1194 priority due to the loss of inherited priority.
1195
1196 2010-06-22 Vincent Celier <celier@adacore.com>
1197
1198 * projects.texi: Minor spelling error fixes.
1199 Minor reformatting.
1200
1201 2010-06-22 Emmanuel Briot <briot@adacore.com>
1202
1203 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1204 warnings for some with clauses.
1205
1206 2010-06-22 Robert Dewar <dewar@adacore.com>
1207
1208 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
1209 test to catch more cases where first subtype is the results we want.
1210 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
1211 error case, since Errout will now handle this correctly.
1212 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
1213 Update dependencies.
1214
1215 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1216
1217 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1218 when calling Make_Temporary.
1219
1220 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1221
1222 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1223 subprogram can be associated with an entry body.
1224
1225 2010-06-22 Robert Dewar <dewar@adacore.com>
1226
1227 * scos.ads: Add note on membership test handling.
1228
1229 2010-06-22 Vincent Celier <celier@adacore.com>
1230
1231 * projects.texi: Minor spelling fixes.
1232 Minor reformatting.
1233
1234 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1235
1236 * s-rannum.adb: Correct off-by-one error in Extract_Value.
1237
1238 2010-06-22 Vincent Celier <celier@adacore.com>
1239
1240 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1241 argument.
1242 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1243 gcc command if it is too long.
1244
1245 2010-06-22 Robert Dewar <dewar@adacore.com>
1246
1247 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1248
1249 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1250
1251 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1252 calling Make_Temporary.
1253
1254 2010-06-22 Robert Dewar <dewar@adacore.com>
1255
1256 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1257
1258 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1259
1260 * sem_res.adb: Additional special-case for VMS.
1261
1262 2010-06-22 Vincent Celier <celier@adacore.com>
1263
1264 * gnatsym.adb: Minor comment fix.
1265
1266 2010-06-22 Vincent Celier <celier@adacore.com>
1267
1268 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1269
1270 2010-06-22 Robert Dewar <dewar@adacore.com>
1271
1272 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
1273 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
1274 Ada 95 mode as an implementation defined attribute.
1275
1276 2010-06-22 Vincent Celier <celier@adacore.com>
1277
1278 * bindusg.adb (Display): Update line for -R
1279 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
1280 generated files when -R is used.
1281
1282 2010-06-22 Vincent Celier <celier@adacore.com>
1283
1284 * prj-nmsc.adb (Lib_Data_Table): New table.
1285 (Check_Library_Attributes): Check if the same library name is used in
1286 two different projects that do not extend each other.
1287
1288 2010-06-22 Robert Dewar <dewar@adacore.com>
1289
1290 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1291
1292 2010-06-22 Vincent Celier <celier@adacore.com>
1293
1294 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1295 empty, make it the current working directory.
1296
1297 2010-06-22 Thomas Quinot <quinot@adacore.com>
1298
1299 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1300 private type with discriminants, make sure the parent type is frozen.
1301
1302 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1303
1304 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1305 with packed array references specially.
1306 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1307 to a component of a bit packed array if it is the prefix of 'Bit.
1308 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1309 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
1310 'Bit reference, where the prefix involves a packed array reference.
1311 (Get_Base_And_Bit_Offset): New helper, extracted from...
1312 (Expand_Packed_Address_Reference): ...here. Call above procedure to
1313 get the outer object and offset expression.
1314
1315 2010-06-22 Thomas Quinot <quinot@adacore.com>
1316
1317 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1318 * einfo.adb (Related_Expression, Set_Related_Expression): Add
1319 assertions.
1320
1321 2010-06-22 Javier Miranda <miranda@adacore.com>
1322
1323 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1324 reorganization to properly check if the operation has been inherited as
1325 an abstract operation.
1326
1327 2010-06-22 Ed Falis <falis@adacore.com>
1328
1329 * s-osinte-vxworks.ads: Complete previous change.
1330
1331 2010-06-22 Thomas Quinot <quinot@adacore.com>
1332
1333 * sem_res.adb: Add comment.
1334 * projects.texi, gnat_ugn.texi: Remove macro.
1335
1336 2010-06-22 Vincent Celier <celier@adacore.com>
1337
1338 * prj-attr.adb: Remove project level attribute Main_Language.
1339
1340 2010-06-22 Robert Dewar <dewar@adacore.com>
1341
1342 * switch-b.adb, osint-b.adb: Minor reformatting.
1343
1344 2010-06-22 Pascal Obry <obry@adacore.com>
1345
1346 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1347 vector if previous send was not fully successful. If only part of
1348 the vector data was sent, we exit the loop.
1349
1350 2010-06-22 Thomas Quinot <quinot@adacore.com>
1351
1352 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1353 error reporting with generic types.
1354
1355 2010-06-22 Thomas Quinot <quinot@adacore.com>
1356
1357 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1358 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1359 vms_data.ads: Add a new command line switch -A to gnatbind to output
1360 the list of all ALI files for the partition.
1361
1362 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1363
1364 * s-osinte-vxworks.ads: Fix casing.
1365 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1366 change: Interfaces.C does not provide a long_long type.
1367
1368 2010-06-22 Emmanuel Briot <briot@adacore.com>
1369
1370 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1371 native user's guide, since this document contains the two versions.
1372 * gcc-interface/Make-lang.in: Update doc dependencies.
1373
1374 2010-06-22 Robert Dewar <dewar@adacore.com>
1375
1376 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
1377
1378 2010-06-22 Emmanuel Briot <briot@adacore.com>
1379
1380 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1381 not build this file on its own (only through gnat_ugn.texi).
1382 Remove macro definitions and insert simpler version in gnat_ugn.texi.
1383
1384 2010-06-22 Robert Dewar <dewar@adacore.com>
1385
1386 * ali-util.ads: Minor comment update.
1387 * g-socthi-mingw.adb: Minor reformatting.
1388
1389 2010-06-22 Ed Falis <falis@adacore.com>
1390
1391 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1392 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1393 for specific versions of VxWorks.
1394
1395 2010-06-22 Emmanuel Briot <briot@adacore.com>
1396
1397 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1398 related sections from user's guide and reference manual, since they
1399 have now been merged together into a separate document (projects.texi).
1400 This removes a lot of duplication where attributes where described
1401 in several places.
1402 The grammar for the project files is now in each of the sections
1403 (packages,expressions,...) instead of being duplicates in two other
1404 sections (one in the user's guide that contained the full grammar,
1405 and various sections in the rm that contained extracts of the same
1406 grammar).
1407 Added the full list of all supported attributes, since existing lists
1408 were incomplete
1409 Rename "associative array" into "indexed attribute"
1410 Remove sections that were duplicates ("External References in
1411 Project Files" and "External Values", and "Project Extensions"
1412 for instance). The list of valid packages in project files is now in
1413 a single place.
1414
1415 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1416
1417 * sem_ch3.adb (Add_Internal_Interface_Entities): If
1418 Find_Primitive_Covering_Interface does not find the operation, it may
1419 be because of a name conflict between the inherited operation and a
1420 local non-overloadable name. In that case look for the operation among
1421 the primitive operations of the type. This search must succeed
1422 regardless of visibility.
1423
1424 2010-06-22 Pascal Obry <obry@adacore.com>
1425
1426 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1427 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1428 recvmsg emulation.
1429
1430 2010-06-22 Robert Dewar <dewar@adacore.com>
1431
1432 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1433 malformed tree.
1434 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1435
1436 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1437
1438 * s-intman-vxworks.ads: Code clean up.
1439
1440 2010-06-22 Thomas Quinot <quinot@adacore.com>
1441
1442 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1443 dereference, construct actual subtype of designated object to generate
1444 proper bounds checks.
1445
1446 2010-06-22 Thomas Quinot <quinot@adacore.com>
1447
1448 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1449 Read_Withed_ALIs, which is more descriptive.
1450
1451 2010-06-22 Pascal Obry <obry@adacore.com>
1452
1453 * g-sothco.ads: Minor reformatting.
1454 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1455 C_Sendmsg implementation.
1456 (C_Sendmsg): Do not use lock (not needed).
1457 (C_Recvmsg): Likewise and also do not wait for incoming data.
1458
1459 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1460
1461 * uintp.adb: Fix scope error in operator call.
1462
1463 2010-06-22 Vincent Celier <celier@adacore.com>
1464
1465 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1466 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1467 autoconfiguration is needed, fail indicating that no config project
1468 file can be found, as there is no autoconfiguration on VMS.
1469
1470 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1471
1472 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1473 for an operator in a functional notation, when operands are universal.
1474
1475 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1476
1477 * gcc-interface/Make-lang.in: Update dependencies.
1478
1479 2010-06-22 Robert Dewar <dewar@adacore.com>
1480
1481 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1482 name.
1483 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1484 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1485 style check.
1486 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1487 literals.
1488
1489 2010-06-22 Vincent Celier <celier@adacore.com>
1490
1491 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1492 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1493
1494 2010-06-22 Pascal Obry <obry@adacore.com>
1495
1496 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1497 Windows.
1498 (C_Recvmsg): Make sure the routine is atomic. Also fully
1499 fill vectors in the proper order.
1500 (C_Sendmsg): Make sure the routine is atomic.
1501
1502 2010-06-22 Robert Dewar <dewar@adacore.com>
1503
1504 * sem_ch8.adb: Update comment.
1505 * sem_res.adb: Minor code reorganization (use Ekind_In).
1506
1507 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1508
1509 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1510 name is a call, use the number of actuals to determine whether this is
1511 a binary or unary operator, rather than relying on later information
1512 to resolve the overload.
1513
1514 2010-06-22 Robert Dewar <dewar@adacore.com>
1515
1516 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1517
1518 2010-06-22 Robert Dewar <dewar@adacore.com>
1519
1520 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1521 * sem_eval.adb: Minor reformatting.
1522
1523 2010-06-22 Vincent Celier <celier@adacore.com>
1524
1525 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1526 to gnatlink, except on Open VMS.
1527 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1528 object directories if -nostdlib is used.
1529
1530 2010-06-22 Robert Dewar <dewar@adacore.com>
1531
1532 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1533 * sem_eval.adb: Minor reformatting.
1534
1535 2010-06-22 Robert Dewar <dewar@adacore.com>
1536
1537 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1538 * exp_aggr.adb: Minor comment changes and reformatting.
1539 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1540 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1541
1542 2010-06-22 Thomas Quinot <quinot@adacore.com>
1543
1544 * sem_util.adb (Build_Actual_Subtype): Record original expression in
1545 Related_Expression attribute of the constructed subtype.
1546 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1547 Node24 on types for...
1548 (Related_Expression): Make attribute available on types as well.
1549
1550 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1551
1552 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1553 Directly_Designated_Type when the type argument is an access type.
1554 (Find_Interface_Tag): Retrieve Designated_Type instead of
1555 Directly_Designated_Type when the type argument is an access type.
1556 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1557 Directly_Designated_Type of each access discriminant.
1558 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1559 instead of Directly_Designated_Type when the operand and target types
1560 are access types.
1561
1562 2010-06-22 Thomas Quinot <quinot@adacore.com>
1563
1564 * exp_aggr.adb (Flatten): Return False if one choice is statically
1565 known to be out of bounds.
1566
1567 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1568
1569 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1570 a parameterless function call, preserve parentheses of original
1571 expression, for proper handling by pretty printer.
1572 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1573 procedure, to handle quietly identifiers that have no entity names.
1574 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1575 elsif_part is missing, it has been rewritten as a nested if, and there
1576 is no useful information on the current value of the variable.
1577
1578 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1579
1580 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1581 discriminals to the current scope.
1582 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1583 scope, which could overwrite a different already set value.
1584
1585 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1586
1587 * sem_res.adb (Valid_Conversion): If expression is a predefined
1588 operator, use sloc of type of interpretation to improve error message
1589 when operand is of some derived type.
1590 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1591
1592 2010-06-22 Emmanuel Briot <briot@adacore.com>
1593
1594 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1595 that it can set out parameters as well. When a process has died, reset
1596 its Input_Fd to Invalid_Fd, so that when using multiple processes we
1597 can find out which process has died.
1598
1599 2010-06-22 Thomas Quinot <quinot@adacore.com>
1600
1601 * sem_eval.adb (Find_Universal_Operator_Type): New
1602 subprogram to identify the operand type of an operator on universal
1603 operands, when an explicit scope indication is present. Diagnose the
1604 case where such a call is ambiguous.
1605 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1606 Use the above to identify the operand type so it can be properly frozen.
1607 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1608 type, done in an arbitrary, possibly incorrect type (the presence of
1609 some numeric type in the scope is checked for legality, but when more
1610 than one such type is in the scope, we just pick a random one, not
1611 necessarily the expected one).
1612 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1613 subprogram.
1614
1615 2010-06-22 Robert Dewar <dewar@adacore.com>
1616
1617 * sem_eval.adb: Minor reformatting.
1618
1619 2010-06-22 Robert Dewar <dewar@adacore.com>
1620
1621 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1622 Expression_With_Actions to clean up the code generated when folding
1623 constant expressions.
1624
1625 2010-06-22 Vincent Celier <celier@adacore.com>
1626
1627 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1628 Has_Process.
1629
1630 2010-06-22 Vincent Celier <celier@adacore.com>
1631
1632 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1633 found, check if it's path has aready been found, whatever its index.
1634
1635 2010-06-22 Robert Dewar <dewar@adacore.com>
1636
1637 * atree.adb, gnatbind.adb: Minor reformatting.
1638 Minor code reorganization.
1639
1640 2010-06-21 Robert Dewar <dewar@adacore.com>
1641
1642 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1643 known at compile time.
1644
1645 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1646
1647 * atree.adb: Fix comment typo.
1648
1649 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1650
1651 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1652 whether a universal arithmetic expression in a conversion, which is
1653 rewritten from a function call with an expanded name, is ambiguous.
1654
1655 2010-06-21 Vincent Celier <celier@adacore.com>
1656
1657 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1658 source files in specified list of sources.
1659 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1660 are never used.
1661 (Add_Source): Set the Location of the new source
1662 (Process_Exceptions_File_Based): Call Add_Source with the Location
1663 (Get_Sources_From_File): If an exception is found, set its Listed to
1664 True
1665 (Find_Sources): When Source_Files is specified, if an exception is
1666 found, set its Listed to True. Remove any exception that is not in a
1667 specified list of sources.
1668 * prj.ads (Source_Data): New component Location
1669
1670 2010-06-21 Vincent Celier <celier@adacore.com>
1671
1672 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1673
1674 2010-06-21 Thomas Quinot <quinot@adacore.com>
1675
1676 * sem_res.adb: Minor reformatting.
1677 * atree.adb: New debugging hook "rr" for node rewrites.
1678
1679 2010-06-21 Robert Dewar <dewar@adacore.com>
1680
1681 * g-expect.ads, g-expect.adb: Minor reformatting.
1682
1683 2010-06-21 Emmanuel Briot <briot@adacore.com>
1684
1685 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1686
1687 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1688
1689 * gcc-interface/Make-lang.in: Update dependencies.
1690
1691 2010-06-21 Thomas Quinot <quinot@adacore.com>
1692
1693 * bindgen.ads: Update comments.
1694
1695 2010-06-21 Vincent Celier <celier@adacore.com>
1696
1697 * gnatbind.adb: Suppress dupicates when listing the sources in the
1698 closure (switch -R).
1699
1700 2010-06-21 Emmanuel Briot <briot@adacore.com>
1701
1702 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1703 is too small.
1704
1705 2010-06-21 Emmanuel Briot <briot@adacore.com>
1706
1707 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1708 New subprograms.
1709 (Expect_Internal): No longer raises an exception, so that it can set
1710 out parameters as well. When a process has died, reset its Input_Fd
1711 to Invalid_Fd, so that when using multiple processes we can find out
1712 which process has died.
1713
1714 2010-06-21 Robert Dewar <dewar@adacore.com>
1715
1716 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1717 checks.adb, sem_res.adb: Minor reformatting. Add comments.
1718
1719 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1720
1721 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1722 rederivation associated with a full declaration in a private part, and
1723 there is a partial view that derives the same parent subprogram, the
1724 new entity does not become visible. This check must be applied to
1725 interface operations as well.
1726
1727 2010-06-21 Thomas Quinot <quinot@adacore.com>
1728
1729 * checks.adb: Add comments.
1730 * prj-nmsc.adb: Minor reformatting.
1731
1732 2010-06-21 Thomas Quinot <quinot@adacore.com>
1733
1734 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1735 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1736 extract bounds, to ensure that we get the proper captured values,
1737 rather than an expression that may have changed value since the point
1738 where the subtype was elaborated.
1739 (Find_Body_Discriminal): New utility subprogram to share code between...
1740 (Eval_Attribute): For the case of a subtype bound that references a
1741 discriminant of the current concurrent type, insert appropriate
1742 discriminal reference.
1743 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1744 requeue to an entry in a family in the current task, use corresponding
1745 body discriminal.
1746 (Analyze_Accept_Statement): Rely on expansion of attribute references
1747 to insert proper discriminal references in range check for entry in
1748 family.
1749
1750 2010-06-21 Emmanuel Briot <briot@adacore.com>
1751
1752 * s-regpat.adb (Compile): Fix handling of big patterns.
1753
1754 2010-06-21 Robert Dewar <dewar@adacore.com>
1755
1756 * a-tifiio.adb: Minor reformatting.
1757
1758 2010-06-21 Pascal Obry <obry@adacore.com>
1759
1760 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1761 path to open it.
1762
1763 2010-06-21 Javier Miranda <miranda@adacore.com>
1764
1765 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1766 external name.
1767
1768 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1769
1770 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1771 to hold the result, indicate that the target of the declaration does
1772 not need an initialization, to prevent spurious errors when
1773 Initialize_Scalars is enabled.
1774
1775 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1776
1777 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1778 Fore is not bound by line length. The Fore parameter of the internal
1779 procedure that performs the operation is an integer.
1780
1781 2010-06-21 Thomas Quinot <quinot@adacore.com>
1782
1783 * sem_res.adb, checks.adb: Minor reformatting.
1784
1785 2010-06-21 Emmanuel Briot <briot@adacore.com>
1786
1787 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1788 into Get_Next.
1789 (Insert_Operator_Before): New subprogram, avoids duplicated code
1790 (Compile): Avoid doing two compilations when the pattern matcher ends
1791 up being small.
1792
1793 2010-06-21 Emmanuel Briot <briot@adacore.com>
1794
1795 * s-regpat.adb: Improve debug traces
1796 (Dump): Change output format to keep it smaller.
1797
1798 2010-06-21 Javier Miranda <miranda@adacore.com>
1799
1800 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1801 output to the output file when this routine completes its work.
1802
1803 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
1804
1805 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1806 for loop. Call build_constructor_from_list directly in the CICO case.
1807
1808 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1809
1810 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1811 declaration appears in the same unit and ealier than the renamed
1812 entity, retain generated body to prevent order-of-elaboration issues in
1813 gigi.
1814
1815 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1816
1817 * s-tpoben.adb: Update comments.
1818
1819 2010-06-18 Robert Dewar <dewar@adacore.com>
1820
1821 * debug.adb: Minor comment change.
1822
1823 2010-06-18 Javier Miranda <miranda@adacore.com>
1824
1825 * exp_cg.adb: Code clean up.
1826 * debug.adb: Complete documentation of switch -gnatd.Z.
1827 * gcc-interface/misc.c (callgraph_info_file): Declare.
1828
1829 2010-06-18 Javier Miranda <miranda@adacore.com>
1830
1831 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1832
1833 2010-06-18 Thomas Quinot <quinot@adacore.com>
1834
1835 * sprint.ads: Minor reformatting.
1836 * output.ads: Update obsolete comment.
1837
1838 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1839
1840 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
1841 an external intrinsic operation (e.g. a GCC numeric function) indicate
1842 that the renaming entity has the same characteristics, so a call to it
1843 is properly expanded.
1844
1845 2010-06-18 Javier Miranda <miranda@adacore.com>
1846
1847 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
1848 support for dispatch table/callgraph info generation.
1849 * gcc-interface/Make-lang.in: Update dependencies.
1850
1851 2010-06-18 Robert Dewar <dewar@adacore.com>
1852
1853 * exp_ch6.adb: Minor reformatting.
1854 * gnatname.adb: Add comment.
1855
1856 2010-06-18 Vincent Celier <celier@adacore.com>
1857
1858 * gnatname.adb (Scan_Args): When --and is used, make sure that the
1859 dynamic tables in the newly allocated Argument_Data are properly
1860 initialized.
1861
1862 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1863
1864 * gnat1drv.adb: Fix comment.
1865
1866 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1867
1868 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
1869 renaming, re-expand the call with the renamed subprogram if that one
1870 is marked inlined as well.
1871
1872 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1873
1874 * gnat1drv.adb (Adjust_Global_Switches): Enable
1875 Use_Expression_With_Actions for AAMP and VM targets.
1876
1877 2010-06-18 Vincent Celier <celier@adacore.com>
1878
1879 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
1880
1881 2010-06-18 Thomas Quinot <quinot@adacore.com>
1882
1883 * exp_ch4.adb: Minor reformatting.
1884
1885 2010-06-18 Javier Miranda <miranda@adacore.com>
1886
1887 * debug.ads Add documentation on -gnatd.Z.
1888
1889 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1890
1891 * sem_elim.adb: Proper error message on improperly eliminated instances
1892
1893 2010-06-18 Vincent Celier <celier@adacore.com>
1894
1895 * prj.ads (Response_File_Format): New value GCC.
1896
1897 2010-06-18 Thomas Quinot <quinot@adacore.com>
1898
1899 * gnat1drv.adb: Minor reformatting.
1900
1901 2010-06-18 Robert Dewar <dewar@adacore.com>
1902
1903 * make.adb, sem_cat.adb: Minor reformatting.
1904 * sem_eval.adb: Fix typos.
1905
1906 2010-06-18 Pascal Obry <obry@adacore.com>
1907
1908 * prj-nmsc.adb: Fix source filenames casing in debug output.
1909
1910 2010-06-18 Robert Dewar <dewar@adacore.com>
1911
1912 * gnatcmd.adb: Minor reformatting.
1913
1914 2010-06-18 Robert Dewar <dewar@adacore.com>
1915
1916 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
1917 condition and both sub-expressions are static (and result is selected
1918 expression).
1919
1920 2010-06-18 Robert Dewar <dewar@adacore.com>
1921
1922 * g-pehage.adb: Minor reformatting
1923
1924 2010-06-18 Pascal Obry <obry@adacore.com>
1925
1926 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
1927 source hash table.
1928
1929 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1930
1931 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1932 dependencies. Fix target pairs on darwin.
1933 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
1934
1935 2010-06-18 Pascal Obry <obry@adacore.com>
1936
1937 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
1938
1939 2010-06-18 Vincent Celier <celier@adacore.com>
1940
1941 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
1942 configuration pragmas file and, if -U is not used, for a local one.
1943
1944 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1945
1946 * sem_elim.adb (Check_Eliminated): Use full information on entity name
1947 when it is given in the pragma by a selected component.
1948 (Check_For_Eliminated_Subprogram): Do no emit error if within a
1949 instance body that is itself within a generic unit.
1950 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
1951 eliminated, mark as well the anonymous subprogram that is its alias
1952 and appears within the wrapper package.
1953
1954 2010-06-18 Bob Duff <duff@adacore.com>
1955
1956 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
1957 Raise an exception if the output file cannot be opened. Add comments.
1958
1959 2010-06-18 Thomas Quinot <quinot@adacore.com>
1960
1961 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
1962 not illegal per E.2.2(7) if it occurs in the private part of a
1963 Remote_Types unit.
1964
1965 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1966
1967 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
1968 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
1969 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
1970 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
1971 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
1972 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
1973 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
1974 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
1975 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
1976 errout.ads: Update comments. Minor reformatting.
1977
1978 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
1979 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
1980 a-strunb.adb (Big_String. Big_String_Access): New type.
1981
1982 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
1983 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
1984 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
1985
1986 2010-06-18 Geert Bosch <bosch@adacore.com>
1987
1988 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
1989 Darwin.
1990
1991 2010-06-18 Robert Dewar <dewar@adacore.com>
1992
1993 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
1994 true for gcc.
1995
1996 2010-06-18 Robert Dewar <dewar@adacore.com>
1997
1998 * sprint.adb: Minor format change for N_Expression_With_Actions.
1999 * repinfo.adb: Minor reformatting.
2000
2001 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2002
2003 * sem_elim.adb (Check_Eliminated): If within a subunit, use
2004 Defining_Entity to obtain the name of the entity in the proper body, to
2005 properly handle both separate packages and subprograms.
2006
2007 2010-06-18 Emmanuel Briot <briot@adacore.com>
2008
2009 * prj-nmsc.adb (Check_File): New parameter Display_Path.
2010
2011 2010-06-18 Thomas Quinot <quinot@adacore.com>
2012
2013 * g-socket.adb, g-socket.ads (Null_Selector): New object.
2014
2015 2010-06-18 Pascal Obry <obry@adacore.com>
2016
2017 * gnat_ugn.texi: Minor clarification.
2018
2019 2010-06-18 Emmanuel Briot <briot@adacore.com>
2020
2021 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
2022 code when using the project dir as the source dir.
2023 (Search_Directories): use the normalized name for the source directory,
2024 where symbolic names have potentially been resolved.
2025
2026 2010-06-18 Robert Dewar <dewar@adacore.com>
2027
2028 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
2029 when we create N_Expression_With_Actions node.
2030 (Expand_Short_Circuit): Ditto.
2031
2032 2010-06-18 Robert Dewar <dewar@adacore.com>
2033
2034 * exp_util.adb: Minor reformatting.
2035
2036 2010-06-18 Thomas Quinot <quinot@adacore.com>
2037
2038 * types.ads: Clean up obsolete comments
2039 * tbuild.adb: Minor reformatting.
2040 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
2041 exp_strm.adb, aa_drive.adb: Minor reformatting.
2042 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
2043 intrinsic with an Interface_Name denotes an imported back-end builtin,
2044 and must be rewritten into a call, not left in the tree as an operator,
2045 so return False in that case.
2046
2047 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2048
2049 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2050
2051 2010-06-18 Robert Dewar <dewar@adacore.com>
2052
2053 * scos.ads: Add proposed output for case expression
2054
2055 2010-06-18 Jose Ruiz <ruiz@adacore.com>
2056
2057 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2058 RTSS modules, we need to use the Microsoft linker.
2059
2060 2010-06-18 Robert Dewar <dewar@adacore.com>
2061
2062 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
2063 expression (cannot count on a particular branch being executed).
2064 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
2065 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
2066 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
2067 within case expression.
2068 * expander.adb (Expand): Add call to Expand_N_Case_Expression
2069 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
2070 (P_Case_Expression): New procedure
2071 (P_Case_Expression_Alternative): New procedure
2072 * par.adb (P_Case_Expression): New procedure
2073 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
2074 N_Case_Expression.
2075 * sem.adb (Analyze): Add call to Analyze_Case_Expression
2076 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
2077 this is a documentation change only.
2078 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
2079 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
2080 expressions.
2081 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
2082 * sem_res.adb (Resolve_Case_Expression): New procedure.
2083 * sem_scil.adb (Find_SCIL_Node): Add processing for
2084 N_Case_Expression_Alternative.
2085 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
2086 (N_Case_Expression_Alternative): New node.
2087 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
2088 N_Case_Expression and N_Case_Expression_Alternative.
2089
2090 2010-06-18 Robert Dewar <dewar@adacore.com>
2091
2092 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2093 * gnat1drv.adb: Fix typo.
2094
2095 2010-06-18 Robert Dewar <dewar@adacore.com>
2096
2097 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
2098 for -gnatg.
2099 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
2100 gnat style for -gnatg.
2101 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
2102
2103 2010-06-18 Thomas Quinot <quinot@adacore.com>
2104
2105 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2106 code between...
2107 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2108 Test_In_Range.
2109
2110 2010-06-18 Robert Dewar <dewar@adacore.com>
2111
2112 * sprint.adb: Minor change in output format for expression wi actions.
2113 * par-ch3.adb: Minor code reorganization. Minor reformatting.
2114 * sem_ch5.adb: Minor comment fix.
2115
2116 2010-06-18 Robert Dewar <dewar@adacore.com>
2117
2118 * debug.adb: New debug flag -gnatd.L to control
2119 Back_End_Handles_Limited_Types.
2120 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
2121 limited case if Back_End_Handles_Limited_Types is True.
2122 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
2123 simplify expansion if Use_Expression_With_Actions is True.
2124 * gnat1drv.adb (Adjust_Global_Switches): Set
2125 Back_End_Handles_Limited_Types.
2126 * opt.ads (Back_End_Handles_Limited_Types): New flag.
2127
2128 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2129
2130 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
2131 intrinsic operator if expansion is not enabled, because in an
2132 instantiation the original operator must be present to verify the
2133 legality of the operation.
2134
2135 2010-06-18 Robert Dewar <dewar@adacore.com>
2136
2137 * exp_disp.adb, sem_ch12.adb: Minor reformatting
2138
2139 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2140
2141 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
2142 the class-wide type for a private extension, and the completion is a
2143 subtype, set the type of the class-wide type to the base type of the
2144 full view.
2145
2146 2010-06-18 Robert Dewar <dewar@adacore.com>
2147
2148 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
2149 sem_intr.adb, sem_eval.adb: Minor reformatting
2150
2151 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2152
2153 * sem_type.adb (Is_Ancestor): If either type is private, examine full
2154 view.
2155
2156 2010-06-18 Thomas Quinot <quinot@adacore.com>
2157
2158 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2159 parameter rather than IN OUT.
2160
2161 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2162
2163 * exp_ch6.adb: Add extra guard.
2164
2165 2010-06-18 Gary Dismukes <dismukes@adacore.com>
2166
2167 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
2168 accessibility level of a function call from the level of the innermost
2169 enclosing dynamic scope.
2170 (Innermost_Master_Scope_Depth): New function to find the depth of the
2171 nearest dynamic scope enclosing a node.
2172
2173 2010-06-18 Tristan Gingold <gingold@adacore.com>
2174
2175 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2176
2177 2010-06-18 Thomas Quinot <quinot@adacore.com>
2178
2179 * g-socket.ads: Minor reformatting.
2180
2181 2010-06-18 Vincent Celier <celier@adacore.com>
2182
2183 * make.adb (Must_Compile): New Boolean global variable
2184 (Main_On_Command_Line): New Boolean global variable
2185 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
2186 even when the project is externally built.
2187 (Start_Compile_If_Possible): Compile in -aL directories if
2188 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
2189 when the project is externally built.
2190 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
2191 invoked with -f -u and one or several mains on the command line.
2192 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
2193 is specified on the command line.
2194
2195 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2196
2197 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
2198 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
2199 containing extented_return statements.
2200 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
2201 constrained, do not build subtype declaration.
2202
2203 2010-06-18 Robert Dewar <dewar@adacore.com>
2204
2205 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2206 Warn on assigning to packed atomic component.
2207
2208 2010-06-18 Robert Dewar <dewar@adacore.com>
2209
2210 * sem_util.ads: Minor reformatting
2211 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
2212 Expression_With_Actions).
2213 * snames.ads-tmpl: Minor comment fix
2214
2215 2010-06-18 Robert Dewar <dewar@adacore.com>
2216
2217 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
2218 (Set_Imported): Use Import_Interface_Present to control message output
2219 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
2220 * gnat_rm.texi: Document that we can have pragma Import and pragma
2221 Interface for the same subprogram.
2222
2223 2010-06-18 Robert Dewar <dewar@adacore.com>
2224
2225 * lib-xref.adb (Generate_Reference): Fix bad reference to
2226 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2227
2228 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2229
2230 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2231 function.
2232 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2233 Use set_gnu_expr_location_from_node to set location information on the
2234 result.
2235
2236 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2237
2238 * gcc-interface/Make-lang.in: Update dependencies.
2239
2240 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2241
2242 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2243 subprograms.
2244
2245 2010-06-17 Robert Dewar <dewar@adacore.com>
2246
2247 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
2248 style check messages.
2249 * sem_res.adb (Resolve_Call): Don't call
2250 Check_For_Eliminated_Subprogram if we are analyzing within a spec
2251 expression.
2252
2253 2010-06-17 Robert Dewar <dewar@adacore.com>
2254
2255 * debug.adb: Add documentation for debug flags .X and .Y
2256 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
2257 Use_Expression_With_Actions.
2258 * gnat1drv.adb (Adjust_Global_Switches): Set
2259 Use_Expression_With_Actions.
2260 * opt.ads (Use_Expression_With_Actions): New switch.
2261
2262 2010-06-17 Robert Dewar <dewar@adacore.com>
2263
2264 * exp_intr.adb: Minor code reorganization (use UI_Max)
2265 * sem_intr.adb: use underlying type to check legality.
2266 * einfo.adb (Known_Static_Esize): False for generic types
2267 (Known_Static_RM_Size): False for generic types
2268 * einfo.ads (Known_Static_Esize): False for generic types
2269 (Known_Static_RM_Size): False for generic types
2270
2271 2010-06-17 Robert Dewar <dewar@adacore.com>
2272
2273 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2274
2275 2010-06-17 Robert Dewar <dewar@adacore.com>
2276
2277 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
2278 node when expanding short circuit form with actions present for right
2279 opnd.
2280 * exp_ch4.adb: Minor reformatting
2281 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
2282 right opeand has actions present, and debug flag -gnatd.X is set.
2283 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2284 node.
2285 * nlists.adb (Prepend_List): New procedure
2286 (Prepend_List_To): New procedure
2287 * nlists.ads (Prepend_List): New procedure
2288 (Prepend_List_To): New procedure
2289 * sem.adb: Add processing for Expression_With_Actions
2290 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2291 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2292 * sem_res.adb: Add processing for Expression_With_Actions.
2293 * sem_scil.adb: Add processing for Expression_With_Actions
2294 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2295 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2296
2297 2010-06-17 Doug Rupp <rupp@adacore.com>
2298
2299 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2300 involved both have underlying integer types.
2301 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2302 to an intrinsic operator when the operand types or sizes are not
2303 identical.
2304 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2305 64/32 Address/Integer works.
2306
2307 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2308
2309 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2310 that it marks a unit as needed by a spec only if the corresponding
2311 instantiation appears in that spec (and not in the corresponding body).
2312 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2313 in the pragma Eliminate has been parsed as a child unit, but the
2314 current compilation unit is in fact the parent in which the subunit is
2315 embedded.
2316
2317 2010-06-17 Vincent Celier <celier@adacore.com>
2318
2319 * gnat_rm.texi: Fix typo
2320
2321 2010-06-17 Robert Dewar <dewar@adacore.com>
2322
2323 * sem_util.adb: Minor reformatting
2324
2325 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2326
2327 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2328 instance, the clause now denotes the instance body. Traverse the
2329 corresponding spec because there may be no other dependence that will
2330 force the traversal of its own context.
2331
2332 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2333
2334 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2335 Install_Limited_Context_Clauses, to determine whether a limited_with in
2336 some parent of the current unit designates some other parent, in which
2337 case the limited_with clause must not be installed.
2338 (In_Context): Refine test.
2339
2340 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2341
2342 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2343 type with a dispatching equality operator that is overridden (for a
2344 tagged full type), don't include the overridden equality in the list of
2345 primitives. The overridden equality is detected by testing for an
2346 Aliased field that references the overriding equality.
2347
2348 2010-06-17 Robert Dewar <dewar@adacore.com>
2349
2350 * freeze.adb: Minor reformatting.
2351
2352 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2353
2354 * gnat_ugn.texi: Add a section introducing gdbserver.
2355
2356 2010-06-17 Thomas Quinot <quinot@adacore.com>
2357
2358 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2359 reformatting.
2360
2361 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2362
2363 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2364 constrained discriminated parent that is a private type.
2365 (Analyze_Record_Aggregate): when collecting inherited discriminants,
2366 handle properly an ancestor type that is a constrained private type.
2367
2368 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2369
2370 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2371 protected, use the protected_subprogram_body only if the original
2372 subprogram has not been eliminated.
2373
2374 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2375
2376 * freeze.adb (Freeze_Expression): The designated type of an
2377 access_to_suprogram type can only be frozen if all types in its profile
2378 are fully defined.
2379
2380 2010-06-17 Robert Dewar <dewar@adacore.com>
2381
2382 * par.adb: Minor comment fix
2383 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2384
2385 2010-06-17 Doug Rupp <rupp@adacore.com>
2386
2387 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2388 change Address to Short_Address in functions where both must be the
2389 same size for intrinsics to work.
2390
2391 2010-06-17 Thomas Quinot <quinot@adacore.com>
2392
2393 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2394 not denote a (private) component of a protected object.
2395
2396 2010-06-17 Bob Duff <duff@adacore.com>
2397
2398 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2399 the same list.
2400
2401 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2402
2403 * gnat_ugn.texi: Update the documentation about GDB re: exception
2404 catchpoints.
2405
2406 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2407
2408 * gnatvsn.ads: Bump to 4.6 version.
2409
2410 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2411
2412 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2413 designated type of the generated pointer is the type of the original
2414 expression, not that of the function call itself, because the return
2415 type may be an untagged derived type and the function may be an
2416 inherited operation.
2417
2418 2010-06-17 Robert Dewar <dewar@adacore.com>
2419
2420 * exp_ch4.adb: Minor reformatting.
2421
2422 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2423
2424 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2425 N_Component_Association nodes, to indicate that a component association
2426 of an extension aggregate denotes the value of a discriminant of an
2427 ancestor type that has been constrained by the derivation.
2428 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2429 double expansion of the aggregate appearing in a context that delays
2430 expansion, to prevent double insertion of discriminant values when the
2431 aggregate is reanalyzed.
2432
2433 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2434
2435 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2436 Allocator as the Related_Node of Return_Obj_Access in call to
2437 Make_Temporary below as this would create a sort of infinite
2438 "recursion".
2439
2440 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2441
2442 * gnat_ugn.texi: Update gnatcheck doc.
2443
2444 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2445
2446 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2447 incomplete view of the type that is not tagged, and the full type is a
2448 tagged extension, create class_wide type now, and warn that the
2449 incomplete view should be tagged as well.
2450
2451 2010-06-17 Vincent Celier <celier@adacore.com>
2452
2453 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2454 Update the last line of the usage, indicating what commands do not
2455 accept project file switches.
2456 * vms_conv.adb: Do not issue usage line for GNAT SYNC
2457 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2458 GNAT ELIM.
2459 * gnat_ugn.texi: Document the relaxed rules for library directories in
2460 externally built library projects.
2461
2462 2010-06-17 Doug Rupp <rupp@adacore.com>
2463
2464 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2465 where possible.
2466 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2467 * gcc-interface/Makefile.in: Update VMS target pairs.
2468
2469 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
2470
2471 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2472 compatible with Windows NT 4.0 which doesn't provide this function.
2473
2474 2010-06-17 Vincent Celier <celier@adacore.com>
2475
2476 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2477 different timestamps but the checksum is the same, issue a short
2478 message saying so.
2479
2480 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2481
2482 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2483 it means that we cannot reset interrupt handlers since this would
2484 require potentially sending the abort signal to the Server_Task.
2485
2486 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2487
2488 * exp_ch4.adb: expand NOT for VMS types.
2489 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2490
2491 2010-06-17 Sergey Rybin <rybin@adacore.com>
2492
2493 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2494 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2495 option.
2496
2497 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2498
2499 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2500 protected operation if the subprogram has been eliminated.
2501
2502 2010-06-17 Vincent Celier <celier@adacore.com>
2503
2504 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2505 directories associated with a library to be any directory when the
2506 library project is externally built.
2507
2508 2010-06-17 Vincent Celier <celier@adacore.com>
2509
2510 * make.adb (Check): If switch -m is used, deallocate the memory that
2511 may be allocated when computing the checksum.
2512
2513 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2514
2515 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2516 (C_Sendmsg): Likewise.
2517
2518 2010-06-17 Thomas Quinot <quinot@adacore.com>
2519
2520 * sem_res.adb: Update comments.
2521
2522 2010-06-17 Vincent Celier <celier@adacore.com>
2523
2524 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2525
2526 2010-06-17 Robert Dewar <dewar@adacore.com>
2527
2528 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2529 * layout.adb, freeze.adb: Use Make_Temporary.
2530
2531 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
2532
2533 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2534 .NET/JVM normally as this is now perfectly supported by the backend.
2535
2536 2010-06-17 Pascal Obry <obry@adacore.com>
2537
2538 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2539
2540 2010-06-17 Vincent Celier <celier@adacore.com>
2541
2542 * make.adb (Collect_Arguments_And_Compile): Create include path file
2543 only when -x is specified.
2544 (Gnatmake): Ditto
2545 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2546 False.
2547 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2548 Objects_Path, defaulted to True. Only create include path file if
2549 Include_Path is True, only create objects path file if Objects_Path is
2550 True.
2551 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2552 Objects_Path, defaulted to True.
2553 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2554 when -x is used.
2555
2556 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2557
2558 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2559 determine whether it has the controlling type, when the formal is an
2560 access parameter.
2561
2562 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2563
2564 * s-crtl.ads (ssize_t): New type.
2565 (read): Fix signature.
2566 (write): Likewise.
2567 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2568 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2569 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2570 (C_Sendmsg): Likewise.
2571 * g-socthi.adb (Syscall_Recvmsg): Likewise.
2572 (Syscall_Sendmsg): Likewise.
2573 (C_Recvmsg): Likewise.
2574 (C_Sendmsg): Likewise.
2575 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
2576 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2577 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2578 (C_Sendmsg): Likewise.
2579 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2580 (C_Sendmsg): Likewise.
2581 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2582 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2583 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2584 (C_Sendmsg): Likewise.
2585 * g-socthi-vms.adb (C_Recvmsg): Likewise.
2586 (C_Sendmsg): Likewise.
2587 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
2588 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2589 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2590 (C_Sendmsg): Likewise.
2591 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2592 (C_Sendmsg): Likewise.
2593 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2594 (Write): Likewise to call 'write'.
2595 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2596 (Write): Use correct type to call System.CRTL.write.
2597 * s-tasdeb.adb (Write): Likewise.
2598
2599 2010-06-17 Vincent Celier <celier@adacore.com>
2600
2601 * prj-proc.adb (Copy_Package_Declarations): Change argument name
2602 Naming_Restricted to Restricted. If Restricted is True, do not copy the
2603 value of attribute Linker_Options.
2604
2605 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2606
2607 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2608 (Case_Statement_to_gnu): Adjust.
2609 (Loop_Statement_to_gnu): Likewise.
2610 (Subprogram_Body_to_gnu): Likewise.
2611 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2612 (Compilation_Unit_to_gnu): Likewise.
2613
2614 2010-06-17 Robert Dewar <dewar@adacore.com>
2615
2616 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2617 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2618 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2619 sem_dist.adb, sem_util.adb: Use Make_Temporary
2620 * itypes.ads, tbuild.ads: Minor comment update
2621 * exp_ch9.adb, exp_dist.adb: Minor reformatting
2622
2623 2010-06-17 Thomas Quinot <quinot@adacore.com>
2624
2625 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2626
2627 2010-06-17 Robert Dewar <dewar@adacore.com>
2628
2629 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2630
2631 2010-06-17 Thomas Quinot <quinot@adacore.com>
2632
2633 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2634
2635 2010-06-17 Robert Dewar <dewar@adacore.com>
2636
2637 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2638 * tbuild.ads (Make_Temporary): More comment updates
2639 * tbuild.adb: Minor reformatting
2640
2641 2010-06-17 Robert Dewar <dewar@adacore.com>
2642
2643 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2644 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2645 Use Make_Temporary.
2646 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2647 instead of Node_Id.
2648 (Make_Temporary): Add more extensive documentation
2649
2650 2010-06-17 Robert Dewar <dewar@adacore.com>
2651
2652 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2653 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
2654 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2655 where the slice's actions are inserted.
2656 (Decompose_Expr): Account for possible rewriting of slice bounds
2657 resulting from side effects suppression caused by the above freezing,
2658 so that folding of bounds is preserved by such rewriting.
2659
2660 2010-06-17 Robert Dewar <dewar@adacore.com>
2661
2662 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2663 * freeze.adb (Freeze_Record_Type): Add call to
2664 Check_Record_Representation_Clause.
2665 * sem_ch13.adb (Check_Record_Representation_Clause): New function
2666 (Analyze_Record_Representation_Clause): Split out overlap code into this
2667 new function.
2668 (Check_Component_Overlap): Moved inside
2669 Check_Record_Representation_Clause.
2670 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2671
2672 2010-06-17 Robert Dewar <dewar@adacore.com>
2673
2674 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2675 reformatting.
2676 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2677 sem_eval.adb: Use Ekind_In
2678
2679 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2680
2681 * sem_ch8.adb: better error message for illegal inherited discriminant
2682
2683 2010-06-17 Vincent Celier <celier@adacore.com>
2684
2685 * bindusg.adb: Remove lines for -A and -C
2686 * gnat_ugn.texi: Remove all documentation and examples of switches -A
2687 and -C for gnatbind and gnatlink.
2688 * gnatlink.adb (Usage): Remove lines for -A and -C
2689 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2690 specified.
2691 * gcc-interface/Make-lang.in: Update dependencies.
2692
2693 2010-06-17 Vincent Celier <celier@adacore.com>
2694
2695 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2696 local Argument_List variable Args.
2697 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2698 Args.
2699 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2700 for subsequent switches in Args.
2701 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2702 Args.
2703 * gcc-interface/Make-lang.in: Update dependencies.
2704
2705 2010-06-17 Robert Dewar <dewar@adacore.com>
2706
2707 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2708 Equivalent_Type to match documentation.
2709
2710 2010-06-17 Robert Dewar <dewar@adacore.com>
2711
2712 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2713 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2714 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2715
2716 2010-06-17 Thomas Quinot <quinot@adacore.com>
2717
2718 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2719
2720 2010-06-17 Thomas Quinot <quinot@adacore.com>
2721
2722 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2723 freeze node insertion points.
2724
2725 2010-06-17 Robert Dewar <dewar@adacore.com>
2726
2727 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2728 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2729
2730 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2731
2732 * layout.adb (Layout_Type): Broaden test for setting an array type's
2733 Component_Size to include all scalar types, not just discrete types
2734 (components of real types were missed).
2735 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2736 on the itype created for an index (consistent with Make_Index and
2737 avoids possible Assert_Failures).
2738
2739 2010-06-17 Robert Dewar <dewar@adacore.com>
2740
2741 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2742 * einfo.adb: Minor code reformatting (use Ekind_In)
2743
2744 2010-06-17 Robert Dewar <dewar@adacore.com>
2745
2746 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2747 found.
2748
2749 2010-06-17 Vincent Celier <celier@adacore.com>
2750
2751 * back_end.adb: Minor comment updates
2752 * switch-c.adb: Remove dependencies on gcc C sources
2753 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2754 for the compiler.
2755
2756 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2757
2758 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2759 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2760 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2761 Remove use of Node field in SCOs table
2762 (Output_Header): Set 'd' to initially disable pragma entry
2763 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2764 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2765 Use C2 field of pragma decision header to indicate enabled.
2766 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2767 * gcc-interface/Make-lang.in: Update dependencies.
2768
2769 2010-06-17 Vincent Celier <celier@adacore.com>
2770
2771 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2772 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2773 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2774 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2775 Switch.C.
2776 * switch-c.adb: Copied a number of global declarations from back_end.adb
2777 (Len_Arg): New function copied from back_end.adb
2778 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2779 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2780 Switch_Subsequently_Cancelled.
2781 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2782 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2783 with -lexc on Tru64.
2784
2785 2010-06-17 Robert Dewar <dewar@adacore.com>
2786
2787 * prj.ads, prj.adb: Minor reformatting
2788
2789 2010-06-17 Thomas Quinot <quinot@adacore.com>
2790
2791 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2792 CP line for a disabled pragma.
2793
2794 2010-06-17 Emmanuel Briot <briot@adacore.com>
2795
2796 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2797 subprogram.
2798 (Process_Declarative_Item): An invalid value in an typed variable
2799 declaration is no longer always fatal.
2800
2801 2010-06-16 Arnaud Charlet <charlet@adacore.com>
2802
2803 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2804 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2805 documentation.
2806
2807 2010-06-16 Javier Miranda <miranda@adacore.com>
2808
2809 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2810 node referenced by the SCIL node of dispatching "=" to skip the tags
2811 comparison.
2812
2813 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2814
2815 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2816 to prevent cascaded errors and compilation aborts.
2817
2818 2010-06-16 Robert Dewar <dewar@adacore.com>
2819
2820 * back_end.adb (Switch_Subsequently_Cancelled): New function
2821 Move declarations to package body level to support this change
2822 * back_end.ads (Switch_Subsequently_Cancelled): New function
2823 * gnat_ugn.texi: Document -gnat-p switch
2824 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
2825 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
2826 * usage.adb: Add line for -gnat-p switch
2827 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
2828
2829 2010-06-16 Robert Dewar <dewar@adacore.com>
2830
2831 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2832 modification.
2833
2834 2010-06-16 Robert Dewar <dewar@adacore.com>
2835
2836 * exp_disp.adb: Minor reformatting
2837
2838 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2839
2840 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
2841 base type only if it was not previously created for the partial view.
2842
2843 2010-06-16 Thomas Quinot <quinot@adacore.com>
2844
2845 * tbuild.ads: Minor comment fix
2846
2847 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
2848
2849 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
2850 (gnu_except_ptr_stack): Change type to VEC. Update comment.
2851 (gnu_elab_proc_stack): Likewise.
2852 (gnu_return_label_stack): Likewise.
2853 (gnu_loop_label_stack): Likewise.
2854 (gnu_switch_label_stack): Likewise.
2855 (gnu_constraint_label_stack): Likewise.
2856 (gnu_storage_error_label_stack): Likewise.
2857 (gnu_program_error_label_stack): Likewise.
2858 (push_exception_label_stack): Take a VEC ** instead of a tree *.
2859 (push_stack): Likewise. Remove unused second parameter. Update
2860 callers.
2861 (pop_stack): Take a VEC * instead of a tree *. Update callers.
2862 (gigi): Initialize stacks as VECs.
2863 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
2864 (Case_Statement_to_gnu): Likewise.
2865 (Subprogram_Body_to_gnu): Likewise.
2866 (call_to_gnu): Likewise.
2867 (Exception_Handler_to_gnu_sjlj): Likewise.
2868 (gnat_to_gnu): Likewise.
2869 (get_exception_label): Likewise.
2870
2871 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2872
2873 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
2874 anonymous base generated when the parent is a constrained discriminated
2875 type, propagate interface list to first subtype because it may appear
2876 in a current instance within the extension part of the derived type
2877 declaration, and its own subtype declaration has not been elaborated
2878 yet.
2879 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2880 determine whether it has the controlling type.
2881
2882 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2883
2884 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
2885 raise of CE, SE and PE have the reason correctly set and are properly
2886 expanded before stopping the expansions of .NET/JVM exceptions.
2887
2888 2010-06-14 Robert Dewar <dewar@adacore.com>
2889
2890 * opt.ads (Check_Policy_List): Add some clarifying comments
2891 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
2892 on rewritten Assert pragma.
2893
2894 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2895
2896 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
2897 controlled operations, so that they will be treated as overriding even
2898 if the overridden subprogram is marked Is_Hidden, as long as the
2899 overridden subprogram's parent subprogram is not hidden.
2900
2901 2010-06-14 Robert Dewar <dewar@adacore.com>
2902
2903 * debug.adb: Entry for gnatw.d no longer specific for while loops
2904 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
2905 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
2906 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
2907 new calling sequence to include test for EXIT WHEN.
2908 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
2909 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
2910 EXIT WHEN case.
2911 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
2912 node.
2913 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
2914 PRAGMA, not to pragma identifier).
2915 (Next_Exit_Statement): New attribute of N_Exit_Statement node
2916
2917 2010-06-14 Robert Dewar <dewar@adacore.com>
2918
2919 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
2920 would fail" msg.
2921
2922 2010-06-14 Robert Dewar <dewar@adacore.com>
2923
2924 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
2925 missing pragma argument identifier.
2926
2927 2010-06-14 Robert Dewar <dewar@adacore.com>
2928
2929 * atree.ads, atree.adb (Ekind_In): New functions.
2930
2931 2010-06-14 Robert Dewar <dewar@adacore.com>
2932
2933 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
2934
2935 2010-06-14 Robert Dewar <dewar@adacore.com>
2936
2937 * usage.adb (Usage): Redo documentation of -gnatwa.
2938
2939 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2940
2941 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
2942 an untagged incomplete type that is a limited view.
2943
2944 2010-06-14 Sergey Rybin <rybin@adacore.com>
2945
2946 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
2947 and gnatppa.
2948
2949 2010-06-14 Thomas Quinot <quinot@adacore.com>
2950
2951 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
2952 factoring duplicated code between...
2953 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
2954 * a-envvar.ads: Minor reformatting
2955
2956 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2957
2958 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
2959 static entities.
2960 (Scan_ALI): Take into account new Visibility field.
2961 (Visibility_Kind): New type.
2962 (Xref_Entity_Record): Replace Lib field by Visibility.
2963
2964 * gcc-interface/Make-lang.in: Update dependencies.
2965
2966 2010-06-14 Pascal Obry <obry@adacore.com>
2967
2968 * raise.h: Remove unused defintions.
2969
2970 2010-06-14 Bob Duff <duff@adacore.com>
2971
2972 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
2973 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
2974 the incorrect error "proper body expected".
2975 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
2976 allowed here" error in case of subunits, which was triggered by the
2977 above change to P_Subunit.
2978
2979 2010-06-14 Sergey Rybin <rybin@adacore.com>
2980
2981 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
2982
2983 2010-06-14 Thomas Quinot <quinot@adacore.com>
2984
2985 * lib-util.adb: Minor code reorganization.
2986
2987 2010-06-14 Robert Dewar <dewar@adacore.com>
2988
2989 * ali.adb (Scan_ALI): Implement reading and storing of N lines
2990 (Known_ALI_Lines): Add entry for 'N' (notes)
2991 * ali.ads (Notes): New table to store Notes information
2992 * alloc.ads: Add entries for Notes table
2993 * lib-util.adb (Write_Info_Int): New procedure
2994 (Write_Info_Slit): New procedure
2995 (Write_Info_Uint): New procedure
2996 * lib-util.ads (Write_Info_Int): New procedure
2997 (Write_Info_Slit): New procedure
2998 (Write_Info_Uint): New procedure
2999 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
3000 * lib-writ.ads: Update documentation for N (Notes) lines
3001 * lib.adb (Store_Note): New procedure
3002 * lib.ads (Notes): New table
3003 (Store_Note): New procedure
3004 * sem_prag.adb: Call Store_Note for affected pragmas
3005
3006 2010-06-14 Thomas Quinot <quinot@adacore.com>
3007
3008 * socket.c: Fix wrong condition in #ifdef
3009 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
3010 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
3011 because on VMS this type is a 32-bit pointer which is not compatible
3012 with the default for C pointers for code compiled with gcc on that
3013 platform.
3014
3015 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3016
3017 * sem_util (Is_VMS_Operator): New predicate to determine whether an
3018 operator is an intrinsic operator declared in the DEC system extension.
3019 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
3020 if the operator is a VMS intrinsic.
3021 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
3022 constant-folded if the operands are signed and the operator is a VMS
3023 intrinsic.
3024
3025 2010-06-14 Robert Dewar <dewar@adacore.com>
3026
3027 * g-socket.adb, gnatcmd.adb: Minor reformatting.
3028
3029 2010-06-14 Pascal Obry <obry@adacore.com>
3030
3031 * s-finimp.adb: Fix typo.
3032 * raise.h: Remove duplicate blank line.
3033
3034 2010-06-14 Vincent Celier <celier@adacore.com>
3035
3036 * prj-nmsc.adb (Add_Sources): Always set the object file and the
3037 switches file names, as the configuration of the language may change
3038 in an extending project.
3039 (Process_Naming_Scheme): For sources of projects that are extended, set
3040 the configuration of the language from the highest extending project
3041 where the language is declared.
3042
3043 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3044
3045 * sem_res.adb (Resolve_Call): For infinite recursion check, test
3046 whether the called subprogram is inherited from a containing subprogram.
3047 (Same_Or_Aliased_Subprograms): New function
3048
3049 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3050
3051 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
3052 use-visible, check whether it is a primitive for more than one type.
3053
3054 2010-06-14 Robert Dewar <dewar@adacore.com>
3055
3056 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3057
3058 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3059 Has_Pragma_Unmodified flag.
3060
3061 2010-06-14 Thomas Quinot <quinot@adacore.com>
3062
3063 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
3064 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
3065 now done in GNAT.Sockets if necessary.
3066 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
3067 Ensure mutual exclusion for netdb operations if the target platform
3068 requires it.
3069 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
3070 hostent as an opaque type to improve portability.
3071 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
3072 gethostbyYYY using proprietary VxWorks API so that a uniform interface
3073 is available for the Ada side.
3074 * gcc-interface/Makefile.in: Remove g-sttsne-*
3075 * gcc-interface/Make-lang.in: Update dependencies.
3076
3077 2010-06-14 Vincent Celier <celier@adacore.com>
3078
3079 * gnatcmd.adb (Mapping_File): New function.
3080
3081 2010-06-14 Javier Miranda <miranda@adacore.com>
3082
3083 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3084
3085 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3086
3087 * ali.adb: Fix typo.
3088 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3089
3090 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3091
3092 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
3093 instances.
3094
3095 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
3096 the context does not have a homonym of the selector, emit default
3097 error message.
3098
3099 2010-06-14 Robert Dewar <dewar@adacore.com>
3100
3101 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3102 comment addition.
3103
3104 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3105
3106 * lib-xref.ads: Doc updates:
3107 - Allocate 'Q' for #include entity kind
3108 - Free 'Z'
3109 - Allocate 'g' for regular macros
3110 - Allocate 'G' for function-like macros
3111
3112 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3113
3114 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
3115 Indicates that there is an instantiation in the current unit that
3116 loaded the body of the unit denoted by the with_clause.
3117 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
3118 whether a with_clause in the current context denotes the unit that
3119 holds the generic declaration, and mark the with_clause accordingly.
3120 (Instantiate_Package_Body): call Mark_Context.
3121 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
3122 whether a given body should be traversed before the spec of the main
3123 unit.
3124
3125 2010-06-14 Ed Falis <falis@adacore.com>
3126
3127 * sysdep.c: Fix 653 build against vThreads headers.
3128
3129 2010-06-14 Robert Dewar <dewar@adacore.com>
3130
3131 * sinfo.ads: Minor reformatting.
3132
3133 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3134
3135 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
3136 the spec has been generated for a body without spec that carries an
3137 Inline_Always pragma.
3138
3139 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3140
3141 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
3142 macro.
3143
3144 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3145
3146 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
3147 declaration for VMs, as those are useless and might lead to duplicated
3148 local variable names in the generated code.
3149 * gcc-interface/Make-lang.in: Update dependencies.
3150
3151 2010-06-14 Robert Dewar <dewar@adacore.com>
3152
3153 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3154
3155 2010-06-14 Robert Dewar <dewar@adacore.com>
3156
3157 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
3158 is renamed as Has_Following_Address_Clause.
3159 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
3160 to allow the caller to avoid Initialize_Scalars having an effect.
3161 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
3162 scalars with an address clause specified.
3163 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
3164 to allow the caller to avoid Initialize_Scalars having an effect.
3165 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
3166 (where it was called Has_Address_Clause).
3167 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
3168 (where it was called Has_Address_Clause).
3169 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
3170 problems for Initialize_Scalars (since we no longer initialize objects
3171 with an address clause.
3172
3173 2010-06-14 Robert Dewar <dewar@adacore.com>
3174
3175 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3176 condition.
3177
3178 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3179
3180 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3181 on the entity of an implicitly generated postcondition procedure.
3182
3183 2010-06-14 Thomas Quinot <quinot@adacore.com>
3184
3185 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3186 Discriminant_Constraint elist from full view to private view.
3187
3188 2010-06-14 Robert Dewar <dewar@adacore.com>
3189
3190 * sem_res.adb: Minor reformatting.
3191
3192 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3193
3194 * sem.adb: New version of unit traversal.
3195
3196 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3197 within a generic unit in the table of delayed calls.
3198
3199 2010-06-14 Robert Dewar <dewar@adacore.com>
3200
3201 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3202
3203 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3204
3205 * sem_ch12.adb (Save_References): If an identifier has been rewritten
3206 during analysis as an explicit dereference, keep the reference implicit
3207 in the generic, but preserve the entity if global. This prevents
3208 malformed generic trees in the presence of some nested generics.
3209
3210 2010-06-14 Sergey Rybin <rybin@adacore.com>
3211
3212 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
3213 tool with '-files=' option. Also fix some small errors (wrong brackets)
3214
3215 2010-06-14 Vincent Celier <celier@adacore.com>
3216
3217 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3218 the ALI files on the command line.
3219
3220 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
3221 the same value as the parameter of the same name.
3222 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
3223 to False.
3224 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
3225 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
3226 emit version symbols only for the units of the library.
3227 (Gen_Versions_C): Ditto.
3228
3229 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3230
3231 * sem_ch4.adb: Fix typo.
3232
3233 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
3234
3235 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3236 vector IO doesn't work at default value properly.
3237
3238 2010-06-14 Doug Rupp <rupp@adacore.com>
3239
3240 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3241
3242 2010-06-14 Vincent Celier <celier@adacore.com>
3243
3244 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3245 sources of the project if a switch -files= is used.
3246
3247 2010-06-14 Thomas Quinot <quinot@adacore.com>
3248
3249 * exp_attr.adb: Minor reformatting.
3250
3251 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3252
3253 * gnat_ugn.texi: Minor typo fixes and wording changes.
3254
3255 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3256
3257 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
3258 prefixed form, do not re-analyze first actual, which may need an
3259 implicit dereference.
3260 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
3261 prefixed notation, the analysis will rewrite the node, and possible
3262 errors appear in the rewritten name of the node.
3263 * sem_res.adb: If a call is ambiguous because its first parameter is
3264 an overloaded call, report list of candidates, to clarify ambiguity of
3265 enclosing call.
3266
3267 2010-06-14 Doug Rupp <rupp@adacore.com>
3268
3269 * s-auxdec-vms-alpha.adb: New package body implementing legacy
3270 VAX instructions with Asm insertions.
3271 * s-auxdec-vms_64.ads: Inline VAX queue functions
3272 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
3273 that show up only on VMS.
3274 * gcc-interface/Makefile.in: Provide translation for
3275 s-auxdec-vms-alpha.adb.
3276
3277 2010-06-14 Olivier Hainque <hainque@adacore.com>
3278
3279 * initialize.c (VxWorks section): Update comments.
3280
3281 2010-06-14 Robert Dewar <dewar@adacore.com>
3282
3283 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3284
3285 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
3286
3287 * init.c: Code clean up.
3288
3289 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3290
3291 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3292 not insert address clause in table for later validation if type of
3293 entity is generic, to prevent possible spurious errors.
3294
3295 * sem_ch8.adb: Code clean up.
3296
3297 2010-06-14 Ben Brosgol <brosgol@adacore.com>
3298
3299 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3300 texi2pdf and texi2html.
3301 Document how to change scheduling properties on HP-UX.
3302
3303 2010-06-14 Thomas Quinot <quinot@adacore.com>
3304
3305 * g-socket.ads: Remove misleading comments.
3306
3307 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3308
3309 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3310 CLI_Target as this prevents proper detection of exported names
3311 duplicates when the exported language is different to CIL.
3312 (Process_Interface_Name): Add check for CIL convention exports,
3313 replacing the old one from Check_Duplicated_Export_Name.
3314
3315 2010-06-14 Matthew Heaney <heaney@adacore.com>
3316
3317 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3318 and new last satisfy constraints.
3319 (Delete_Last): prevent overflow for subtraction of index values
3320 (To_Vector): prevent overflow for addition of index values
3321
3322 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3323
3324 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3325 rewritten call, preserve the resulting type to prevent spurious errors,
3326 when the call is implicitly dereferenced in the context of an in-out
3327 actual.
3328
3329 * checks.adb (Apply_Discriminant_Check): If the target of the
3330 assignment is a renaming of a heap object, create constrained type for
3331 it to apply check.
3332
3333 2010-06-14 Pascal Obry <obry@adacore.com>
3334
3335 * prj-proc.adb: Fix copy of object directory for extending projects.
3336
3337 2010-06-14 Jose Ruiz <ruiz@adacore.com>
3338
3339 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3340 (__gnat_install_handler, PowerPC linux): Activate the alternative
3341 signal stack.
3342
3343 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
3344
3345 * gnat_rm.texi: Move to GFDL version 1.3.
3346 * gnat-style.texi: Ditto.
3347 * gnat_ugn.texi: Ditto.
3348
3349 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
3350
3351 PR ada/43731
3352 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3353 mingw targets.
3354
3355 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
3356
3357 * gcc-interface/utils.c (update_pointer_to): Initialize last.
3358
3359 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3360
3361 * gcc-interface/ada-tree.h: Fix formatting nits.
3362
3363 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3364
3365 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3366 allocation.
3367 (init_dummy_type): Likewise.
3368 (gnat_pushlevel): Likewise.
3369
3370 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3371 (Subprogram_Body_to_gnu): Likewise.
3372 (Compilation_Unit_to_gnu): Likewise.
3373 (start_stmt_group): Likewise.
3374 (extract_encoding): Likewise.
3375 (decode_name): Likewise.
3376
3377 * gcc-interface/misc.c (gnat_printable_name): Likewise.
3378
3379 * gcc-interface/decl.c (annotate_value): Likewise.
3380
3381 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3382 GTY option.
3383 (struct lang_decl): Likewise.
3384 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3385 (SET_DECL_LANG_SPECIFIC): Likewise.
3386
3387 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
3388
3389 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3390 * gcc-interface/lang-specs.h: Likewise.
3391
3392 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3393
3394 PR c++/44294
3395 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3396
3397 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3398
3399 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3400
3401 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3402
3403 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3404 TYPE_DECL of the equivalent type instead of building a new one.
3405
3406 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3407
3408 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3409 Fix nits in comments.
3410 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3411 * gcc-interface/trans.c (gigi): Likewise.
3412 (Attribute_to_gnu): Likewise.
3413 (Case_Statement_to_gnu): Likewise.
3414 (gnat_to_gnu): Adjust warning message.
3415 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3416 (build_vms_descriptor32): Likewise.
3417
3418 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3419
3420 * gcc-interface/decl.c: Pretend to be a backend file by undefining
3421 IN_GCC_FRONTEND (still need rtl.h here).
3422
3423 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3424
3425 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3426 (gigi): Adjust call to set_stack_check_libfunc.
3427
3428 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3429
3430 * gcc-interface/utils.c: Do not include rtl.h.
3431
3432 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3433
3434 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3435 and gimple.h. Explain why rtl.h has to be included.
3436 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3437 * gcc-interface/targtyps.c: Do not include tm_p.h
3438 * gcc-interface/utils2.c: Do not include flags.h.
3439 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
3440 and explain why it has to be included.
3441 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3442 and optabs.h.
3443 Include function.h and explain why. Explain why except.h is included.
3444 (enumerate_modes): Remove unused function.
3445 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3446 * gcc-interface/Make-lang.in: Update dependencies.
3447
3448 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3449
3450 * gcc-interface/misc.c (internal_error_function): Add context
3451 parameter. Use it to access show_column flag and instead of using
3452 global_dc. Call warn_if_plugins.
3453 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3454
3455 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3456
3457 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3458 * gcc-interface/trans.c (unshare_save_expr): Delete.
3459 (gigi): Do not unshare trees under SAVE_EXPRs here.
3460
3461 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3462
3463 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3464 build_call_list.
3465 * gcc-interface/utils.c (build_function_stub): Likewise.
3466
3467 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3468
3469 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3470 for Wuninitialized without -O.
3471
3472 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3473
3474 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3475 ADT_exception_data_name_id.
3476 (exception_data_name_id): New define.
3477 * gcc-interface/trans.c (gigi): Initialize it.
3478 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3479 exception type for standard exception definitions. Do not make them
3480 volatile.
3481 <E_Record_Type>: Equate fields of types associated with an exception
3482 definition to those of the standard exception type.
3483
3484 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3485
3486 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3487
3488 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3489
3490 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3491 code, improve comments and fix formatting nits.
3492
3493 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3494
3495 * gcc-interface/utils.c (update_pointer_to): Return early if the old
3496 pointer already points to the new type. Chain the old pointer and its
3497 variants at the end of new pointer's chain after updating them.
3498
3499 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
3500
3501 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3502 built for interfaces.
3503 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3504 imported_p instead of Is_Imported when considering constants.
3505 Do not promote alignment of exported objects.
3506 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3507
3508 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3509
3510 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3511 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3512 constants really constant.
3513 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3514
3515 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3516
3517 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3518
3519 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3520
3521 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3522 expressions of variant part of record types declared at library level.
3523
3524 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3525
3526 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3527 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3528 (rest_of_record_type_compilation): Adjust call to create_field_decl.
3529 (make_descriptor_field): Likewise and pass correctly typed constants.
3530 (build_unc_object_type): Likewise.
3531 (unchecked_convert): Likewise.
3532 * gcc-interface/decl.c (elaborate_expression_2): New static function.
3533 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3534 Adjust call to create_field_decl.
3535 (make_aligning_type): Likewise.
3536 (make_packable_type): Likewise.
3537 (maybe_pad_type): Likewise.
3538 (gnat_to_gnu_field): Likewise.
3539 (components_to_record): Likewise.
3540 (create_field_decl_from): Likewise.
3541 (create_variant_part_from): Remove superfluous test.
3542 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3543
3544 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3545
3546 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3547 (build_unc_object_type_from_ptr): Likewise.
3548 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3549 and pass it to create_type_decl. Declare the type. Simplify.
3550 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3551 it to build_unc_object_type.
3552 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3553 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3554 (gnat_to_gnu): Likewise.
3555 * gcc-interface/utils2.c (build_allocator): Likewise.
3556
3557 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3558
3559 PR 40989
3560 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3561
3562 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3563
3564 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3565
3566 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3567
3568 PR 40989
3569 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3570
3571 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3572
3573 * gnathtml.pl: Use 755 as mask for new directories.
3574
3575 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3576
3577 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3578 constant constructors before taking their address.
3579
3580 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3581
3582 * exp_dbug.ads: Fix outdated description. Mention link between XVS
3583 and XVZ objects.
3584 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3585 XVZ variable as unit size of XVS type.
3586 (maybe_pad_type): Likewise.
3587
3588 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3589
3590 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3591 use memmove if the array type is bit-packed.
3592
3593 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3594
3595 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3596 build_common_tree_nodes.
3597
3598 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3599
3600 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3601
3602 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3603
3604 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3605 issue warning.
3606
3607 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3608
3609 * uintp.h (UI_Lt): Declare.
3610 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3611 computation in sizetype.
3612 <E_Array_Subtype>: Use unified handling for all index types. Do not
3613 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
3614 bypass for PATs.
3615 (annotate_value): Change test for negative values.
3616 (validate_size): Apply test for negative values on GNAT nodes.
3617 (set_rm_size): Likewise.
3618 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3619 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3620 for negative values.
3621 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3622 (builtin_type_for_size): Adjust definition of signed_size_type_node.
3623 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3624 lengths against zero.
3625
3626 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3627
3628 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3629 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3630 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
3631 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3632 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3633 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3634 rm_size.
3635 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3636 flag_signed_char. Tag sizetype with "size_type" moniker.
3637 * gcc-interface/trans.c (gigi): Add standard_character parameter.
3638 Remove useless built-in types. Equate unsigned_char_type_node to
3639 Standard.Character. Use it instead of char_type_node throughout.
3640 (Attribute_to_gnu): Likewise.
3641 (gnat_to_gnu): Likewise.
3642 * gcc-interface/utils2.c (build_call_raise): Likewise.
3643
3644 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3645
3646 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3647 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3648 (sbitsize_one_node): New macro.
3649 (sbitsize_unit_node): Likewise.
3650 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3651 latent bug in the computation of subrange_p. Fold wider_p predicate.
3652 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3653 the final comparison.
3654 (make_aligning_type): Build real negation and use sizetype throughout
3655 the offset computation.
3656 (maybe_pad_type): Do not issue the warning when the new size expression
3657 is too complex.
3658 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3659 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3660 sbitsize_unit_node.
3661 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3662 double negation.
3663 (gnat_to_gnu) <N_Free_Statement>: Likewise.
3664 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3665 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3666 constants in sizetype. Remove dead code and tweak comments. Generate
3667 equality instead of inequality comparisons for zero length tests.
3668
3669 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3670
3671 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3672 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3673 <object>: Do not create the fake PARM_DECL if no debug info is needed.
3674 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3675 purposes if no debug info is needed.
3676 Fix formatting. Reorder and add comments.
3677 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3678 variable and remove obsolete comment.
3679 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3680 (convert_vms_descriptor32): Likewise.
3681 (convert): Remove dead code.
3682 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3683 the reference to the P_ARRAY pointer.
3684 <POINTER_TYPE>: Likewise.
3685 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3686 (gnat_init_decl_processing): Delete, move contents to...
3687 * gcc-interface/misc.c (gnat_init): ...here.
3688
3689 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3690
3691 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3692 calls. Return true for conversion from a record subtype to its type.
3693
3694 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3695
3696 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3697 lieu of integer_type_node for boolean operations.
3698 (choices_to_gnu): Likewise.
3699 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3700 (Loop_Statement_to_gnu): Likewise.
3701 (establish_gnat_vms_condition_handler): Likewise.
3702 (Exception_Handler_to_gnu_sjlj): Likewise.
3703 (gnat_to_gnu): Likewise.
3704 (build_unary_op_trapv): Likewise.
3705 (build_binary_op_trapv): Likewise.
3706 (emit_range_check): Likewise.
3707 (emit_index_check): Likewise.
3708 (convert_with_check): Likewise.
3709 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3710 (convert_vms_descriptor32): Likewise.
3711 (convert_vms_descriptor): Likewise.
3712 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3713 (compare_arrays): Use boolean instead of integer constants.
3714 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3715 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
3716 is a boolean type.
3717 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3718 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3719 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3720 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3721 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3722 for boolean operations.
3723 (fill_vms_descriptor): Likewise. Fix formatting nits.
3724
3725 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3726
3727 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3728 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3729 Merge into...
3730 (LOOP_STMT_COND): ...this.
3731 (LOOP_STMT_BOTTOM_COND_P): New flag.
3732 (LOOP_STMT_TOP_UPDATE_P): Likewise.
3733 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3734 (can_equal_min_val_p): New static inline function.
3735 (can_equal_max_val_p): Likewise.
3736 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3737 new LOOP_STMT semantics. Use two different strategies depending on
3738 whether optimization is enabled to translate the loop.
3739 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3740
3741 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3742
3743 * uintp.adb (UI_From_Dint): Remove useless code.
3744 (UI_From_Int): Likewise.
3745 * uintp.h: Reorder declarations.
3746 (UI_From_gnu): Declare.
3747 (UI_Base): Likewise.
3748 (Vector_Template): Likewise.
3749 (Vector_To_Uint): Likewise.
3750 (Uint_0): Remove.
3751 (Uint_1): Likewise.
3752 * gcc-interface/gigi.h: Tweak comments.
3753 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3754 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3755 overflows.
3756 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3757 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3758 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3759 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3760 TYPE_MAX_VALUE.
3761
3762 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3763
3764 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3765 TYPE_NAME.
3766 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3767 (smaller_form_type_p): ...this. Change parameter and variable names.
3768 (call_to_gnu): Use the nominal type of the parameter to create the
3769 temporary if it's a smaller form of the actual type.
3770 (addressable_p): Return false if the actual type is integral and its
3771 size is greater than that of the expected type.
3772
3773 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3774
3775 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3776 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3777 (process_attributes): Delete.
3778 (post_error_ne_num): Change parameter name.
3779 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3780 with -g3. Remove a couple of obsolete lines. Minor tweaks.
3781 If type annotating mode, operate on trees to compute the adjustment to
3782 the sizes of tagged types. Fix long line.
3783 (cannot_be_superflat_p): Tweak head comment.
3784 (annotate_value): Fold local constant.
3785 (set_rm_size): Fix long line.
3786 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3787 (Attribute_to_gnu): Fix long line.
3788 <Attr_Size>: Remove useless assertion.
3789 Reorder statements. Use size_binop routine.
3790 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3791 Create local variables for the label and the test. Tweak comments.
3792 (Subprogram_Body_to_gnu): Reset cfun to NULL.
3793 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3794 (process_inlined_subprograms): Integrate into...
3795 (Compilation_Unit_to_gnu): ...this.
3796 (gnat_to_gnu): Fix long line.
3797 (post_error_ne_num): Change parameter name.
3798 * gcc-interface/utils.c (process_attributes): Static-ify.
3799 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3800 (create_type_decl): Add comment.
3801 (create_var_decl_1): Process the attributes after adding the VAR_DECL
3802 to the current binding level.
3803 (create_subprog_decl): Likewise for the FUNCTION_DECL.
3804 (end_subprog_body): Do not reset cfun to NULL.
3805 (build_vms_descriptor32): Fix long line.
3806 (build_vms_descriptor): Likewise.
3807 (handle_nonnull_attribute): Likewise.
3808 (convert_vms_descriptor64): Likewise.
3809 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3810 (gnat_protect_expr): Fix thinko.
3811
3812 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3813
3814 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3815 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3816 before translating the top-level node.
3817 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3818 <N_Object_Declaration>: Likewise.
3819 <N_Assignment_Statement>: Likewise.
3820 <N_Unchecked_Type_Conversion>: Likewise.
3821 (call_to_gnu): Remove kludge.
3822 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
3823 associated with user returns to be preserved.
3824 (gnat_to_gnu): Add special code to deal with boolean rvalues.
3825 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
3826 comparisons.
3827 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3828 <INDIRECT_REF>: Call build_fold_indirect_ref.
3829
3830 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
3831
3832 * g-socket.adb: A target can have multiple missing errno's. This
3833 will result in multiple errno's being defined as -1. Because of this
3834 we can not use a case but must use a series of if's to avoid
3835 a duplicate case error in GNAT.Sockets.Resolve_Error.
3836
3837 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3838
3839 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
3840 a statement. Otherwise, if at top-level, push the processing of the
3841 elaboration routine. In the misaligned case, issue the error messages
3842 again on entry and create the temporary explicitly. Do not issue them
3843 for CONSTRUCTORs.
3844 For a function call, emit the range check if necessary.
3845 In the copy-in copy-out case, create the temporary for the return
3846 value explicitly.
3847 Do not unnecessarily convert by-ref parameters to the formal's type.
3848 Remove obsolete guards in conditions.
3849 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
3850 target to call_to_gnu in all cases.
3851 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
3852 (addressable_p) <CONSTRUCTOR>: Return false if not static.
3853 <COMPOUND_EXPR>: New case.
3854 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
3855 expression if it has unconstrained array type.
3856 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
3857 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
3858 individual basis.
3859
3860 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3861
3862 * gcc-interface/trans.c (gigi): Do not start statement group.
3863 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
3864 Start statement group and push binding level here...
3865 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
3866 Do not push fake contexts at top level. Remove redundant code.
3867 (call_to_gnu): Rename a local variable and constify another.
3868 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
3869 (set_current_block_context): Set it as the group's block.
3870 (gnat_init_decl_processing): Delete unrelated init code.
3871 (end_subprog_body): Use NULL_TREE.
3872
3873 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3874
3875 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
3876 side-effects of actual parameters before the call.
3877
3878 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3879
3880 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
3881 and warning.
3882 (set_rm_size): Reorder and remove obsolete test.
3883
3884 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3885
3886 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
3887 (gigi): Adjust ATTRIBUTE_UNUSED markers.
3888 * gcc-interface/gadaint.h: New file.
3889 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
3890 (__gnat_to_canonical_file_spec): Remove declaration.
3891 (number_names): Delete.
3892 (number_files): Likewise.
3893 (gigi): Adjust.
3894 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
3895 above change.
3896
3897 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3898
3899 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
3900 comment.
3901 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
3902 Ekind. Return early for class-wide types. Do not compute initializer
3903 unless necessary. Reuse the tree for an associated class-wide type
3904 only if processing its root type.
3905
3906 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
3907
3908 * gsocket.h: Run-time can no longer be built without network
3909 OS headers available. Changing RTEMS GNAT build procedure to
3910 reflect this and letting run-time build use network .h files.
3911
3912 2010-04-13 Duncan Sands <baldrick@free.fr>
3913
3914 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
3915 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
3916
3917 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3918
3919 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
3920 (parent_name_id): New macro.
3921 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
3922 * gcc-interface/trans.c (gigi): Initialize it.
3923 (lvalue_required_p) <N_Type_Conversion>: New case.
3924 <N_Qualified_Expression>: Likewise.
3925 <N_Allocator>: Likewise.
3926 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
3927
3928 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3929
3930 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
3931 (DECL_CONST_ADDRESS_P): New macro.
3932 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
3933 (SAME_FIELD_P): Likewise.
3934 * gcc-interface/decl.c (constructor_address_p): New static function.
3935 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
3936 the return value of above function.
3937 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
3938 passed by reference.
3939 <E_Record_Subtype>: Likewise.
3940 Set TREE_ADDRESSABLE on the type if it passed by reference.
3941 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
3942 (create_field_decl_from): Likewise.
3943 (substitute_in_type): Likewise.
3944 (purpose_member_field): Use SAME_FIELD_P.
3945 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
3946 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
3947 parameter and adjust recursive calls.
3948 <N_Explicit_Dereference>: New case.
3949 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
3950 Adjust calls to lvalue_required_p. Do not return the initializer of a
3951 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
3952 (call_to_gnu): Delay issuing error message for a misaligned actual and
3953 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
3954 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
3955 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
3956 type is passed by reference.
3957 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
3958 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
3959 (build_simple_component_ref): Use SAME_FIELD_P.
3960
3961 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
3962
3963 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
3964 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
3965 front-end's predicate Is_By_Reference_Type. Use consistent order and
3966 remove ??? comment. Use original conversion in all cases, if any.
3967 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
3968 (convert): Use local copy in more cases.
3969 <INDIRECT_REF>: Remove deactivated code.
3970 (unchecked_convert): Use a couple of local copies.
3971
3972 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3973
3974 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
3975 function.
3976 (lvalue_required_p) <N_Attribute_Reference>: Call it.
3977 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
3978 folding the result only if lvalue_required_for_attribute_p is true.
3979 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
3980 typed constant to build_component_ref.
3981 (unchecked_convert): Likewise.
3982 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
3983 (build_allocator): Likewise.
3984
3985 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3986
3987 * gcc-interface/utils2.c (build_cond_expr): Take the address and
3988 dereference if the result type is passed by reference.
3989
3990 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3991
3992 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
3993 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
3994 goto to the next statement.
3995
3996 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3997
3998 * gcc-interface/gigi.h (maybe_variable): Delete.
3999 (protect_multiple_eval): Likewise.
4000 (maybe_stabilize_reference): Likewise.
4001 (gnat_save_expr): Declare.
4002 (gnat_protect_expr): Likewise.
4003 (gnat_stabilize_reference): Likewise.
4004 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
4005 gnat_stabilize_reference.
4006 (maybe_variable): Delete.
4007 (elaborate_expression_1): Use gnat_save_expr.
4008 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
4009 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
4010 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
4011 <N_Slice>: Use gnat_protect_exp.
4012 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
4013 <N_In>: Use gnat_protect_expr.
4014 Pass NULL to gnat_stabilize_reference.
4015 (build_unary_op_trapv): Use gnat_protect_expr.
4016 (build_binary_op_trapv): Likewise.
4017 (emit_range_check): Likewise.
4018 (emit_index_check): Likewise.
4019 (convert_with_check): Likewise.
4020 (protect_multiple_eval): Move to utils2.c file.
4021 (maybe_stabilize_reference): Merge into...
4022 (gnat_stabilize_reference): ...this. Move to utils2.c file.
4023 (gnat_stabilize_reference_1): Likewise.
4024 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
4025 instead of protect_multiple_eval.
4026 * gcc-interface/utils2.c (compare_arrays): Likewise.
4027 (nonbinary_modular_operation): Likewise.
4028 (maybe_wrap_malloc): Likewise.
4029 (build_allocator): Likewise.
4030 (gnat_save_expr): New function.
4031 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
4032 in common cases. Propagate TREE_READONLY onto dereferences.
4033 (gnat_stabilize_reference_1): Move from trans.c file.
4034 (gnat_stabilize_reference): Likewise.
4035
4036 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4037
4038 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
4039 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
4040 node. Use the type of the operand to set TREE_READONLY.
4041 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
4042 _REF node. Do not overwrite TREE_READONLY.
4043 (call_to_gnu): Rename local variable and fix various nits. In the
4044 copy-in/copy-out case, build the SAVE_EXPR manually.
4045 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
4046 and fold the computations.
4047 (protect_multiple_eval): Always save entire fat pointers.
4048 (maybe_stabilize_reference): Minor tweaks.
4049 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
4050 tcc_type and tcc_statement.
4051 * gcc-interface/utils.c (convert_to_fat_pointer): Call
4052 protect_multiple_eval in lieu of save_expr.
4053 (convert): Minor tweaks.
4054 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
4055 (builtin_type_for_size): Call gnat_type_for_size directly.
4056 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
4057 (contains_null_expr): Likewise
4058 (gnat_build_constructor): Do not call it.
4059 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
4060 instead of gnat_stabilize_reference to protect the operands.
4061 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
4062 save_expr.
4063 (maybe_wrap_malloc): Likewise.
4064 (build_allocator): Likewise.
4065 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
4066 (gnat_mark_addressable): Rename parameter.
4067
4068 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4069
4070 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
4071 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
4072 (TYPE_RETURNS_BY_REF_P): Rename into.
4073 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
4074 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
4075 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
4076 (build_return_expr): Likewise.
4077 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
4078 Rename local variables. If the return Mechanism is By_Reference, pass
4079 return_by_invisible_ref_p to create_subprog_type instead of toggling
4080 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
4081 the mechanism. Use regular return for contrained types with non-static
4082 size and return by invisible reference for unconstrained return types
4083 with default discriminants. Update comment.
4084 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
4085 returns by invisible reference, turn the RESULT_DECL into a pointer.
4086 Do not handle DECL_BY_REF_P in the CICO case here.
4087 (call_to_gnu): Remove code handling return by target pointer. For a
4088 function call, if the return type has non-constant size, generate the
4089 assignment with an INIT_EXPR.
4090 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
4091 If the function returns by invisible reference, build the copy return
4092 operation manually.
4093 (add_decl_expr): Initialize the variable with an INIT_EXPR.
4094 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
4095 Adjust for renaming of macros. Copy the node only when necessary.
4096 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
4097 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
4098 (convert_from_reference): Delete.
4099 (is_byref_result): Likewise.
4100 (gnat_genericize_r): Likewise.
4101 (gnat_genericize): Likewise.
4102 (end_subprog_body): Do not call gnat_genericize.
4103 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
4104 (build_return_expr): Adjust parameter names, logic and comment.
4105
4106 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4107
4108 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
4109 if the size is small enough. Propagate the alignment if there is an
4110 alignment clause on the original array type.
4111 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4112 Deal with under-aligned packed array types. Copy the size onto the
4113 justified modular type and don't lay it out again. Likewise for the
4114 padding type built for other under-aligned subtypes.
4115 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
4116 on the type.
4117
4118 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4119
4120 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
4121 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
4122
4123 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4124
4125 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
4126 do not set the result type if there is a specified target and do not
4127 convert the result in any cases.
4128 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
4129 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
4130
4131 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
4132
4133 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4134
4135 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
4136
4137 PR ada/42253
4138 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
4139 pointer base types are variant of each other. Apply special treatment
4140 for null to fat pointer types in all cases.
4141
4142 2010-01-28 Pascal Obry <obry@adacore.com>
4143
4144 * s-win32.ads: Add some missing constants.
4145
4146 2010-01-28 Vincent Celier <celier@adacore.com>
4147
4148 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
4149 Unknown_Package.
4150
4151 2010-01-28 Robert Dewar <dewar@adacore.com>
4152
4153 * gnat_rm.texi: Minor correction
4154
4155 2010-01-27 Pascal Obry <obry@adacore.com>
4156
4157 * g-awk.adb: ensure that an AWK session is reusable.
4158
4159 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
4160
4161 * g-regist.adb (For_Every_Key): Fix previous change.
4162 Minor reformatting.
4163
4164 2010-01-27 Thomas Quinot <quinot@adacore.com>
4165
4166 * lib-writ.ads: Current version of spec for new N (note) ALI lines
4167
4168 2010-01-27 Yannick Moy <moy@adacore.com>
4169
4170 * a-cdlili.adb (Insert): Correct exception message when cursor
4171 designates wrong list.
4172
4173 2010-01-27 Vincent Celier <celier@adacore.com>
4174
4175 * gnatcmd.adb: When there is only one main specified, the package
4176 support Switches (<main>) and attribute Switches is specified for the
4177 main, use these switches, instead of Default_Switches ("Ada").
4178
4179 2010-01-27 Robert Dewar <dewar@adacore.com>
4180
4181 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4182 implementation.
4183 * exp_disp.adb: Minor reformatting
4184
4185 2010-01-27 Tristan Gingold <gingold@adacore.com>
4186
4187 * seh_init.c: Use __ImageBase instead of _ImageBase.
4188
4189 2010-01-27 Javier Miranda <miranda@adacore.com>
4190
4191 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
4192 profile of interface thunks. The type of the controlling formal is now
4193 the covered interface type (instead of the target tagged type).
4194
4195 2010-01-27 Sergey Rybin <rybin@adacore.com>
4196
4197 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4198
4199 2010-01-27 Robert Dewar <dewar@adacore.com>
4200
4201 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4202 changed from Expr to N.
4203
4204 2010-01-26 Thomas Quinot <quinot@adacore.com>
4205
4206 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4207 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4208 -gnatzr.
4209
4210 2010-01-26 Vincent Celier <celier@adacore.com>
4211
4212 * prj-attr.adb: Add new attribute Library_Install_Name_Option
4213 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
4214 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4215 attributes Run_Path_Option and Library_Install_Name_Option.
4216 * prj.ads (Project_Configuration): Replace component
4217 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
4218 component Library_Install_Name_Option.
4219 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
4220 Replace Run_Path_Origin_Supported with Run_Path_Origin
4221
4222 2010-01-26 Ed Schonberg <schonberg@adacore.com>
4223
4224 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
4225 is not hidden by a homograph declared in another actual package.
4226
4227 2010-01-26 Robert Dewar <dewar@adacore.com>
4228
4229 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4230 decisions for pragmas Assert, Check, Precondition, Postcondition if
4231 -gnata set.
4232 * scos.ads: Update comments.
4233 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
4234 Also remove obsolete code for CT (exit point) SCOs.
4235
4236 2010-01-26 Thomas Quinot <quinot@adacore.com>
4237
4238 * switch-c.adb: Fix handling of -gnatz*
4239
4240 2010-01-26 Robert Dewar <dewar@adacore.com>
4241
4242 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
4243 qualifiers for FOR/WHILE loops
4244 * scos.ads: Use separate type letters F/W for for/while loops
4245
4246 2010-01-26 Robert Dewar <dewar@adacore.com>
4247
4248 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
4249 entries per line, one for each statement in the sequence).
4250 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
4251 size from 100 to 10_000 for SC_Array to avoid any real possibility of
4252 overflow. Output decisions in for loops.
4253 Exclude labels from CS lines.
4254 * scos.ads: Clarify that label is not included in the entry point
4255
4256 2010-01-26 Robert Dewar <dewar@adacore.com>
4257
4258 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
4259 format of statement sequence SCO entries (one location/statement).
4260 * put_scos.adb (Put_SCOs): Implement new format of CS lines
4261 * scos.ads: Update comments.
4262 * sem_eval.adb: Minor reformatting.
4263
4264 2010-01-26 Robert Dewar <dewar@adacore.com>
4265
4266 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
4267 (Extend_Statement_Sequence): New procedures
4268 (Traverse_Declarations_Or_Statements): New handling for exits.
4269
4270 2010-01-26 Robert Dewar <dewar@adacore.com>
4271
4272 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4273 Case.
4274
4275 2010-01-26 Robert Dewar <dewar@adacore.com>
4276
4277 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4278 * scos.ads: Clarify handling of logical operators
4279
4280 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4281
4282 * s-tpoben.adb: Update comments.
4283
4284 2010-01-26 Robert Dewar <dewar@adacore.com>
4285
4286 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4287 present.
4288
4289 2010-01-26 Robert Dewar <dewar@adacore.com>
4290
4291 * scos.ads: Clean up documentation, remove obsolete XOR references
4292 2010-01-26 Vincent Celier <celier@adacore.com>
4293
4294 * gnat_ugn.texi: Complete documentation on the restrictions for
4295 combined options in -gnatxxx switches.
4296 Fix typo.
4297
4298 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4299
4300 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4301 a controlled operation, abort is already deferred at this point, so we
4302 need to use Defer_Abort_Nestable.
4303
4304 2010-01-26 Vincent Celier <celier@adacore.com>
4305
4306 * prj-conf.adb (Get_Config_Switches): Check for a default language for
4307 a project extending a project with no languages.
4308
4309 2010-01-26 Vincent Celier <celier@adacore.com>
4310
4311 * switch-c.adb (Scan_Front_End_Switches): Take into account options
4312 that follow -gnatef.
4313 Allow -gnateG to be followed by other options.
4314
4315 2010-01-26 Robert Dewar <dewar@adacore.com>
4316
4317 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4318 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4319 reformatting.
4320
4321 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
4322
4323 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4324 that allows to iterate over all subkeys of a key.
4325
4326 2010-01-26 Ed Falis <falis@adacore.com>
4327
4328 * sysdep.c: enable NFS for VxWorks MILS
4329 * env.c: enable __gnat_environ for VxWorks MILS
4330 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4331
4332 2010-01-25 Bob Duff <duff@adacore.com>
4333
4334 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4335 is an internally-generated positional aggregate, and the bounds are
4336 already correctly set. We don't want to overwrite those bounds with
4337 bounds determined by context.
4338
4339 2010-01-25 Robert Dewar <dewar@adacore.com>
4340
4341 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4342 exp_ch9.adb, g-sechas.ads: Minor reformatting.
4343
4344 2010-01-25 Thomas Quinot <quinot@adacore.com>
4345
4346 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4347 integer type) before subtracting 1, otherwise the computation may wrap
4348 (because size_t is modular) and cause the conversion to fail.
4349
4350 2010-01-25 Ed Falis <falis@adacore.com>
4351
4352 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4353
4354 2010-01-25 Vincent Celier <celier@adacore.com>
4355
4356 * prj-attr.adb: New attribute Run_Path_Origin_Required
4357 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4358 attribute Run_Path_Origin_Required.
4359 * prj.ads (Project_Configuration): New component
4360 Run_Path_Origin_Supported.
4361 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4362
4363 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4364
4365 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4366 have errors, do not continue resolution of the aggregate.
4367 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4368 the array type indicates an error.
4369
4370 2010-01-25 Bob Duff <duff@adacore.com>
4371
4372 * sinfo.ads: Minor comment fixes.
4373
4374 2010-01-25 Bob Duff <duff@adacore.com>
4375
4376 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4377
4378 2010-01-25 Arnaud Charlet <charlet@adacore.com>
4379
4380 * gnatvsn.ads (Current_Year): Update.
4381
4382 2010-01-25 Florian Villoing <villoing@adacore.com>
4383
4384 * gnat_ugn.texi: Fix typo.
4385
4386 2010-01-25 Thomas Quinot <quinot@adacore.com>
4387
4388 * scos.ads: Update specification.
4389
4390 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4391
4392 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4393 enclosing subprogram has no previous spec, attach postcondition
4394 procedure to the defining entity for the body.
4395
4396 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4397
4398 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4399 initialization procedure of the ancestor part of an extension aggregate
4400 if it is an interface type.
4401
4402 2010-01-25 Vincent Celier <celier@adacore.com>
4403
4404 * gnatlink.adb (Process_Binder_File): The directory for the shared
4405 version of libgcc in the run path options is found in the subdirectory
4406 indicated by __gnat_default_libgcc_subdir.
4407 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4408 each platform.
4409
4410 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4411
4412 * sem_prag.adb: More flexible pragma Annotate.
4413
4414 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
4415
4416 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4417 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4418
4419 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
4420
4421 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4422
4423 2010-01-18 Jan Hubicka <jh@suse.cz>
4424
4425 PR middle-end/42068
4426 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4427 unit local variables.
4428
4429 2010-01-17 Laurent GUERBY <laurent@guerby.net>
4430
4431 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4432
4433 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
4434
4435 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4436 * system-linux-armeb.ads, system-linux-armel.ads: New files.
4437
4438 2010-01-09 Simon Wright <simon@pushface.org>
4439
4440 PR ada/42626
4441 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4442 end-quote.
4443
4444
4445 \f
4446 Copyright (C) 2010 Free Software Foundation, Inc.
4447
4448 Copying and distribution of this file, with or without modification,
4449 are permitted in any medium without royalty provided the copyright
4450 notice and this notice are preserved.