1 2010-08-10 Thomas Quinot <quinot@adacore.com>
3 * exp_attr.adb: Add comments.
5 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
7 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
9 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
13 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
15 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
16 (build_vms_descriptor): Likewise.
18 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
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.
24 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
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.
32 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
34 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
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.
42 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
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
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.
54 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
56 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
57 allocator for large imported objects.
59 2010-08-05 Robert Dewar <dewar@adacore.com>
61 * gnat1drv.adb: Minor reformatting.
63 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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.
70 2010-08-05 Vincent Celier <celier@adacore.com>
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.
77 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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.
83 2010-08-05 Ed Schonberg <schonberg@adacore.com>
85 * exp_util.adb (Insert_Actions): If the action appears within a
86 conditional expression that is already analyzed, insert action further
89 2010-08-05 Robert Dewar <dewar@adacore.com>
91 * exp_ch4.adb: Minor reformatting.
93 2010-08-05 Thomas Quinot <quinot@adacore.com>
95 * exp_ch4.adb: Minor reformatting
96 * gnat1drv.adb: Minor reformatting.
97 Minor code reorganization (use Nkind_In).
99 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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
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
114 2010-08-05 Vincent Celier <celier@adacore.com>
116 * prj.adb (Is_Compilable): Return False for header files of non Ada
119 2010-08-05 Emmanuel Briot <briot@adacore.com>
121 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
122 exec directory as a warning rather than an error.
124 2010-08-05 Thomas Quinot <quinot@adacore.com>
126 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
129 2010-08-05 Steve Baird <baird@adacore.com>
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.
135 2010-08-05 Robert Dewar <dewar@adacore.com>
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
142 * sem_elab.adb: Minor reformatting.
144 2010-08-05 Arnaud Charlet <charlet@adacore.com>
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.
150 2010-08-05 Robert Dewar <dewar@adacore.com>
152 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
154 2010-08-05 Gary Dismukes <dismukes@adacore.com>
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.
165 2010-08-05 Arnaud Charlet <charlet@adacore.com>
167 * sem.adb: Minor reformatting
168 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
171 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
173 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
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.
179 2010-08-03 Joseph Myers <joseph@codesourcery.com>
181 * gcc-interface/lang-specs.h: Don't pass -a options.
183 2010-07-28 Joseph Myers <joseph@codesourcery.com>
185 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
186 options. Check canonical_option_num_elements on options copied.
188 2010-07-27 Joseph Myers <joseph@codesourcery.com>
190 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
191 return value type. Don't check for missing arguments here.
193 2010-07-27 Joseph Myers <joseph@codesourcery.com>
195 * gcc-interface/misc.c (gnat_option_lang_mask): New.
196 (gnat_init_options): Update prototype. Reconstruct argv array
197 from decoded options.
199 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
201 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
202 case, merge the alias set of the old pointer type.
204 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
206 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
207 and recurse only for multidimensional array types instead.
209 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
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.
216 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
218 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
219 equality for the component type of array types.
221 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
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.
228 2010-07-13 Laurent GUERBY <laurent@guerby.net>
231 * gcc-interface/targtyps.c: Include tm_p.h.
232 * gcc-interface/Make-lang.in: Update dependencies.
234 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
236 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
239 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
241 * gcc-interface/utils.c: Include diagnostic-core.h in every file
242 that includes toplev.h.
244 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
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.
251 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
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.
257 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
259 * gcc-interface/trans.c: Do not include tree-flow.h.
260 * gcc-interface/Make-lang.in: Adjust dependencies.
262 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
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.
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.
285 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
287 * gcc-interface/misc.c: Do not include except.h.
288 * gcc-interface/Make-lang.in: Update dependencies.
290 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
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).
299 2010-06-23 Thomas Quinot <quinot@adacore.com>
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
306 2010-06-23 Ed Schonberg <schonberg@adacore.com>
308 * sem_prag.adb: Fix typo in error message.
309 * sem.adb: Refine previous change.
311 2010-06-23 Robert Dewar <dewar@adacore.com>
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.
317 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
324 * gcc-interface/Makefile.in: Enable use of above files.
326 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
333 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
339 2010-06-23 Bob Duff <duff@adacore.com>
341 * g-comlin.ads: Minor comment improvements.
343 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
349 2010-06-23 Bob Duff <duff@adacore.com>
351 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
353 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
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.
359 2010-06-23 Robert Dewar <dewar@adacore.com>
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)
365 2010-06-23 Robert Dewar <dewar@adacore.com>
367 * gnat_ugn.texi: Add documentation of -gnat12 switch
368 Add documentation of -gnatX switch.
370 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
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
383 2010-06-23 Robert Dewar <dewar@adacore.com>
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
392 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
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.
401 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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.
407 2010-06-23 Robert Dewar <dewar@adacore.com>
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'.
415 2010-06-23 Javier Miranda <miranda@adacore.com>
417 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
418 TSD to Null_Address if No_Dispatching_Calls is active.
420 2010-06-23 Vincent Celier <celier@adacore.com>
422 * a-comlin.ads: Indicate that use of this package is not supported
423 during the elaboration of an auto-initialized Stand-Alone Library.
425 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
432 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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.
440 2010-06-23 Thomas Quinot <quinot@adacore.com>
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
445 * exp_ch4.adb, einfo.adb: Minor reformatting.
447 2010-06-23 Vincent Celier <celier@adacore.com>
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.
454 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
461 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
467 * sem_util.adb: Widen predicate Is_VMS_Operator.
469 2010-06-23 Vincent Celier <celier@adacore.com>
471 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
474 2010-06-23 Olivier Hainque <hainque@adacore.com>
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.
480 2010-06-23 Thomas Quinot <quinot@adacore.com>
482 * sem_ch12.adb: Minor reformatting.
484 2010-06-23 Ed Schonberg <schonberg@adacore.com>
486 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
487 determine whether an intrinsic subprogram is VMS specific.
489 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
491 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
492 is present in the entity.
494 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
504 2010-06-23 Thomas Quinot <quinot@adacore.com>
506 * sem_util.adb, sem_util.ads: Minor reformatting.
508 2010-06-23 Vincent Celier <celier@adacore.com>
510 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
511 the previous behavior of gprclean when there are missing files.
513 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
521 2010-06-23 Vincent Celier <celier@adacore.com>
523 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
526 2010-06-23 Bob Duff <duff@adacore.com>
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.
534 2010-06-23 Olivier Hainque <hainque@adacore.com>
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
544 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
545 of GCC builtin imports.
547 2010-06-23 Olivier Hainque <hainque@adacore.com>
549 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
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.
559 2010-06-23 Arnaud Charlet <charlet@adacore.com>
561 * gcc-interface/Make-lang.in: Update dependencies.
563 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
569 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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.
586 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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
600 2010-06-23 Thomas Quinot <quinot@adacore.com>
602 * sem_ch3.ads: Minor reformatting.
604 2010-06-23 Ed Schonberg <schonberg@adacore.com>
606 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
607 always analyze the generic body and instance, because it may be needed
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.
613 2010-06-23 Emmanuel Briot <briot@adacore.com>
615 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
617 2010-06-23 Robert Dewar <dewar@adacore.com>
619 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
621 2010-06-23 Thomas Quinot <quinot@adacore.com>
623 * a-tags.ads: Fix description of TSD structure.
625 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
632 2010-06-23 Robert Dewar <dewar@adacore.com>
634 * freeze.adb: Minor reformatting.
636 2010-06-23 Bob Duff <duff@adacore.com>
638 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
640 2010-06-23 Vincent Celier <celier@adacore.com>
642 * make.adb (Compile_Sources): Complete previous change.
644 2010-06-23 Ed Schonberg <schonberg@adacore.com>
646 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
647 Constrained extra formal.
649 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
656 2010-06-23 Emmanuel Briot <briot@adacore.com>
658 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
659 Missing_Source_Files.
661 2010-06-23 Robert Dewar <dewar@adacore.com>
663 * exp_ch3.adb, exp_util.adb: Minor reformatting.
665 2010-06-23 Jose Ruiz <ruiz@adacore.com>
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.
671 2010-06-23 Vincent Celier <celier@adacore.com>
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.
678 2010-06-23 Thomas Quinot <quinot@adacore.com>
680 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
682 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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.
704 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
711 2010-06-23 Arnaud Charlet <charlet@adacore.com>
713 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
715 2010-06-23 Bob Duff <duff@adacore.com>
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.
721 2010-06-23 Ed Schonberg <schonberg@adacore.com>
723 * exp_ch4.adb: Use predefined unsigned type in all cases.
725 2010-06-23 Bob Duff <duff@adacore.com>
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
732 2010-06-23 Robert Dewar <dewar@adacore.com>
734 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
735 (Worse_Choice): Always prefer Pure/Preelab.
737 2010-06-23 Vincent Celier <celier@adacore.com>
739 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
741 2010-06-23 Robert Dewar <dewar@adacore.com>
743 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
744 checking returns in generic case.
745 (Check_Missing_Return): New procedure.
747 2010-06-23 Robert Dewar <dewar@adacore.com>
749 * bindgen.adb, switch-b.adb: Minor reformatting.
751 2010-06-23 Javier Miranda <miranda@adacore.com>
753 * frontend.adb (Frontend): Add call to initialize the new package
755 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
757 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
758 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
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
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
795 * scil_ll.ads, scil_ll.adb: New files.
796 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
799 2010-06-23 Robert Dewar <dewar@adacore.com>
801 * sem_ch6.adb: Minor reformatting.
803 2010-06-23 Doug Rupp <rupp@adacore.com>
805 * bindusg.adb (Display): Write -Hnn line.
806 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
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.
817 2010-06-23 Robert Dewar <dewar@adacore.com>
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
824 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
830 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
842 2010-06-22 Geert Bosch <bosch@adacore.com>
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.
857 2010-06-22 Robert Dewar <dewar@adacore.com>
859 * freeze.adb: Minor reformatting
860 Minor code reorganization (use Nkind_In and Ekind_In).
862 2010-06-22 Bob Duff <duff@adacore.com>
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.
868 2010-06-22 Vincent Celier <celier@adacore.com>
870 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
873 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
875 * s-rannum.adb: Replace constants with commented symbols.
876 * s-rannum.ads: Explain significance of the initial value of the data
879 2010-06-22 Ed Schonberg <schonberg@adacore.com>
881 * a-ngcoty.adb: Clarify comment.
883 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
892 2010-06-22 Geert Bosch <bosch@adacore.com>
894 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
897 2010-06-22 Robert Dewar <dewar@adacore.com>
899 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
902 2010-06-22 Doug Rupp <rupp@adacore.com>
904 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
906 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
907 (pragma Ident): Add a default ident string in the private part.
909 2010-06-22 Robert Dewar <dewar@adacore.com>
911 * cstand.adb: Minor reformatting.
913 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
919 2010-06-22 Geert Bosch <bosch@adacore.com>
921 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
922 scaling in case of overflow or NaN results.
924 2010-06-22 Robert Dewar <dewar@adacore.com>
926 * cstand.adb: Complete previous change.
927 * g-dirope.ads: Add comment.
928 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
930 2010-06-22 Ed Schonberg <schonberg@adacore.com>
932 * cstand.adb: Add tree nodes for pragma Pack on string types.
934 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
945 2010-06-22 Geert Bosch <bosch@adacore.com>
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
953 * env.c: Remove empty conditional for MSDOS.
954 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
957 2010-06-22 Robert Dewar <dewar@adacore.com>
959 * s-rannum.adb: Minor reformatting.
961 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
967 2010-06-22 Javier Miranda <miranda@adacore.com>
969 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
970 remove useless restriction on imported routines when building the
973 2010-06-22 Robert Dewar <dewar@adacore.com>
975 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
978 2010-06-22 Javier Miranda <miranda@adacore.com>
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
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.
998 2010-06-22 Matthew Heaney <heaney@adacore.com>
1000 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1002 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
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.
1011 2010-06-22 Thomas Quinot <quinot@adacore.com>
1013 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1014 reference to discriminant (can be an expanded name as well as an
1017 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1019 * exp_ch6.adb: Clarify comment.
1021 2010-06-22 Geert Bosch <bosch@adacore.com>
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
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
1032 2010-06-22 Robert Dewar <dewar@adacore.com>
1034 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1036 2010-06-22 Thomas Quinot <quinot@adacore.com>
1038 * sem_elab.adb: Minor reformatting.
1040 2010-06-22 Vincent Celier <celier@adacore.com>
1042 * gnatsym.adb: Put the object files in the table in increasing
1043 aphabetical order of base names.
1045 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1051 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
1058 2010-06-22 Thomas Quinot <quinot@adacore.com>
1060 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1061 when to freeze the parent type.
1063 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
1071 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
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
1079 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1081 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
1088 2010-06-22 Vincent Celier <celier@adacore.com>
1090 * vms_data.ads: Modify the declarations of qualifiers
1091 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1094 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1096 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1097 expansion is disabled.
1099 2010-06-22 Robert Dewar <dewar@adacore.com>
1101 * makeusg.adb: Minor reformatting.
1103 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
1112 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1126 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
1134 2010-06-22 Arnaud Charlet <charlet@adacore.com>
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
1140 2010-06-22 Thomas Quinot <quinot@adacore.com>
1142 * einfo.ads: Minor reformatting.
1144 2010-06-22 Javier Miranda <miranda@adacore.com>
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)
1153 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
1159 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1161 * s-taprop-vxworks.adb (Set_Priority): Update comments.
1163 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1165 * s-rannum.adb: Make stylistic change to remove mystery constant in
1166 Extract_Value. Image_Numeral_Length: new symbolic constant.
1168 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1175 2010-06-22 Robert Dewar <dewar@adacore.com>
1177 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
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.
1184 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
1190 2010-06-22 Jose Ruiz <ruiz@adacore.com>
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.
1196 2010-06-22 Vincent Celier <celier@adacore.com>
1198 * projects.texi: Minor spelling error fixes.
1201 2010-06-22 Emmanuel Briot <briot@adacore.com>
1203 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1204 warnings for some with clauses.
1206 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
1215 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1217 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1218 when calling Make_Temporary.
1220 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1222 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1223 subprogram can be associated with an entry body.
1225 2010-06-22 Robert Dewar <dewar@adacore.com>
1227 * scos.ads: Add note on membership test handling.
1229 2010-06-22 Vincent Celier <celier@adacore.com>
1231 * projects.texi: Minor spelling fixes.
1234 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1236 * s-rannum.adb: Correct off-by-one error in Extract_Value.
1238 2010-06-22 Vincent Celier <celier@adacore.com>
1240 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1242 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1243 gcc command if it is too long.
1245 2010-06-22 Robert Dewar <dewar@adacore.com>
1247 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1249 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1251 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1252 calling Make_Temporary.
1254 2010-06-22 Robert Dewar <dewar@adacore.com>
1256 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1258 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1260 * sem_res.adb: Additional special-case for VMS.
1262 2010-06-22 Vincent Celier <celier@adacore.com>
1264 * gnatsym.adb: Minor comment fix.
1266 2010-06-22 Vincent Celier <celier@adacore.com>
1268 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1270 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
1276 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1282 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1288 2010-06-22 Robert Dewar <dewar@adacore.com>
1290 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1292 2010-06-22 Vincent Celier <celier@adacore.com>
1294 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1295 empty, make it the current working directory.
1297 2010-06-22 Thomas Quinot <quinot@adacore.com>
1299 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1300 private type with discriminants, make sure the parent type is frozen.
1302 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
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.
1315 2010-06-22 Thomas Quinot <quinot@adacore.com>
1317 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1318 * einfo.adb (Related_Expression, Set_Related_Expression): Add
1321 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
1327 2010-06-22 Ed Falis <falis@adacore.com>
1329 * s-osinte-vxworks.ads: Complete previous change.
1331 2010-06-22 Thomas Quinot <quinot@adacore.com>
1333 * sem_res.adb: Add comment.
1334 * projects.texi, gnat_ugn.texi: Remove macro.
1336 2010-06-22 Vincent Celier <celier@adacore.com>
1338 * prj-attr.adb: Remove project level attribute Main_Language.
1340 2010-06-22 Robert Dewar <dewar@adacore.com>
1342 * switch-b.adb, osint-b.adb: Minor reformatting.
1344 2010-06-22 Pascal Obry <obry@adacore.com>
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.
1350 2010-06-22 Thomas Quinot <quinot@adacore.com>
1352 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1353 error reporting with generic types.
1355 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
1362 2010-06-22 Arnaud Charlet <charlet@adacore.com>
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.
1368 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
1374 2010-06-22 Robert Dewar <dewar@adacore.com>
1376 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
1378 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
1384 2010-06-22 Robert Dewar <dewar@adacore.com>
1386 * ali-util.ads: Minor comment update.
1387 * g-socthi-mingw.adb: Minor reformatting.
1389 2010-06-22 Ed Falis <falis@adacore.com>
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.
1395 2010-06-22 Emmanuel Briot <briot@adacore.com>
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
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
1407 Added the full list of all supported attributes, since existing lists
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
1415 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1424 2010-06-22 Pascal Obry <obry@adacore.com>
1426 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1427 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1430 2010-06-22 Robert Dewar <dewar@adacore.com>
1432 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1434 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1436 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1438 * s-intman-vxworks.ads: Code clean up.
1440 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
1446 2010-06-22 Thomas Quinot <quinot@adacore.com>
1448 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1449 Read_Withed_ALIs, which is more descriptive.
1451 2010-06-22 Pascal Obry <obry@adacore.com>
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.
1459 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1461 * uintp.adb: Fix scope error in operator call.
1463 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1470 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1472 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1473 for an operator in a functional notation, when operands are universal.
1475 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1477 * gcc-interface/Make-lang.in: Update dependencies.
1479 2010-06-22 Robert Dewar <dewar@adacore.com>
1481 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
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
1486 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1489 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1494 2010-06-22 Pascal Obry <obry@adacore.com>
1496 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
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.
1502 2010-06-22 Robert Dewar <dewar@adacore.com>
1504 * sem_ch8.adb: Update comment.
1505 * sem_res.adb: Minor code reorganization (use Ekind_In).
1507 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1514 2010-06-22 Robert Dewar <dewar@adacore.com>
1516 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1518 2010-06-22 Robert Dewar <dewar@adacore.com>
1520 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1521 * sem_eval.adb: Minor reformatting.
1523 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1530 2010-06-22 Robert Dewar <dewar@adacore.com>
1532 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1533 * sem_eval.adb: Minor reformatting.
1535 2010-06-22 Robert Dewar <dewar@adacore.com>
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)
1542 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
1550 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
1562 2010-06-22 Thomas Quinot <quinot@adacore.com>
1564 * exp_aggr.adb (Flatten): Return False if one choice is statically
1565 known to be out of bounds.
1567 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1578 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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.
1585 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
1592 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
1599 2010-06-22 Thomas Quinot <quinot@adacore.com>
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
1615 2010-06-22 Robert Dewar <dewar@adacore.com>
1617 * sem_eval.adb: Minor reformatting.
1619 2010-06-22 Robert Dewar <dewar@adacore.com>
1621 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1622 Expression_With_Actions to clean up the code generated when folding
1623 constant expressions.
1625 2010-06-22 Vincent Celier <celier@adacore.com>
1627 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1630 2010-06-22 Vincent Celier <celier@adacore.com>
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.
1635 2010-06-22 Robert Dewar <dewar@adacore.com>
1637 * atree.adb, gnatbind.adb: Minor reformatting.
1638 Minor code reorganization.
1640 2010-06-21 Robert Dewar <dewar@adacore.com>
1642 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1643 known at compile time.
1645 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1647 * atree.adb: Fix comment typo.
1649 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
1655 2010-06-21 Vincent Celier <celier@adacore.com>
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
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
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
1670 2010-06-21 Vincent Celier <celier@adacore.com>
1672 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1674 2010-06-21 Thomas Quinot <quinot@adacore.com>
1676 * sem_res.adb: Minor reformatting.
1677 * atree.adb: New debugging hook "rr" for node rewrites.
1679 2010-06-21 Robert Dewar <dewar@adacore.com>
1681 * g-expect.ads, g-expect.adb: Minor reformatting.
1683 2010-06-21 Emmanuel Briot <briot@adacore.com>
1685 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1687 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1689 * gcc-interface/Make-lang.in: Update dependencies.
1691 2010-06-21 Thomas Quinot <quinot@adacore.com>
1693 * bindgen.ads: Update comments.
1695 2010-06-21 Vincent Celier <celier@adacore.com>
1697 * gnatbind.adb: Suppress dupicates when listing the sources in the
1698 closure (switch -R).
1700 2010-06-21 Emmanuel Briot <briot@adacore.com>
1702 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1705 2010-06-21 Emmanuel Briot <briot@adacore.com>
1707 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
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.
1714 2010-06-21 Robert Dewar <dewar@adacore.com>
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.
1719 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
1727 2010-06-21 Thomas Quinot <quinot@adacore.com>
1729 * checks.adb: Add comments.
1730 * prj-nmsc.adb: Minor reformatting.
1732 2010-06-21 Thomas Quinot <quinot@adacore.com>
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
1746 (Analyze_Accept_Statement): Rely on expansion of attribute references
1747 to insert proper discriminal references in range check for entry in
1750 2010-06-21 Emmanuel Briot <briot@adacore.com>
1752 * s-regpat.adb (Compile): Fix handling of big patterns.
1754 2010-06-21 Robert Dewar <dewar@adacore.com>
1756 * a-tifiio.adb: Minor reformatting.
1758 2010-06-21 Pascal Obry <obry@adacore.com>
1760 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1763 2010-06-21 Javier Miranda <miranda@adacore.com>
1765 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1768 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
1775 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
1781 2010-06-21 Thomas Quinot <quinot@adacore.com>
1783 * sem_res.adb, checks.adb: Minor reformatting.
1785 2010-06-21 Emmanuel Briot <briot@adacore.com>
1787 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1789 (Insert_Operator_Before): New subprogram, avoids duplicated code
1790 (Compile): Avoid doing two compilations when the pattern matcher ends
1793 2010-06-21 Emmanuel Briot <briot@adacore.com>
1795 * s-regpat.adb: Improve debug traces
1796 (Dump): Change output format to keep it smaller.
1798 2010-06-21 Javier Miranda <miranda@adacore.com>
1800 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1801 output to the output file when this routine completes its work.
1803 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
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.
1808 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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
1815 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1817 * s-tpoben.adb: Update comments.
1819 2010-06-18 Robert Dewar <dewar@adacore.com>
1821 * debug.adb: Minor comment change.
1823 2010-06-18 Javier Miranda <miranda@adacore.com>
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.
1829 2010-06-18 Javier Miranda <miranda@adacore.com>
1831 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1833 2010-06-18 Thomas Quinot <quinot@adacore.com>
1835 * sprint.ads: Minor reformatting.
1836 * output.ads: Update obsolete comment.
1838 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
1845 2010-06-18 Javier Miranda <miranda@adacore.com>
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.
1851 2010-06-18 Robert Dewar <dewar@adacore.com>
1853 * exp_ch6.adb: Minor reformatting.
1854 * gnatname.adb: Add comment.
1856 2010-06-18 Vincent Celier <celier@adacore.com>
1858 * gnatname.adb (Scan_Args): When --and is used, make sure that the
1859 dynamic tables in the newly allocated Argument_Data are properly
1862 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1864 * gnat1drv.adb: Fix comment.
1866 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
1872 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1874 * gnat1drv.adb (Adjust_Global_Switches): Enable
1875 Use_Expression_With_Actions for AAMP and VM targets.
1877 2010-06-18 Vincent Celier <celier@adacore.com>
1879 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
1881 2010-06-18 Thomas Quinot <quinot@adacore.com>
1883 * exp_ch4.adb: Minor reformatting.
1885 2010-06-18 Javier Miranda <miranda@adacore.com>
1887 * debug.ads Add documentation on -gnatd.Z.
1889 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1891 * sem_elim.adb: Proper error message on improperly eliminated instances
1893 2010-06-18 Vincent Celier <celier@adacore.com>
1895 * prj.ads (Response_File_Format): New value GCC.
1897 2010-06-18 Thomas Quinot <quinot@adacore.com>
1899 * gnat1drv.adb: Minor reformatting.
1901 2010-06-18 Robert Dewar <dewar@adacore.com>
1903 * make.adb, sem_cat.adb: Minor reformatting.
1904 * sem_eval.adb: Fix typos.
1906 2010-06-18 Pascal Obry <obry@adacore.com>
1908 * prj-nmsc.adb: Fix source filenames casing in debug output.
1910 2010-06-18 Robert Dewar <dewar@adacore.com>
1912 * gnatcmd.adb: Minor reformatting.
1914 2010-06-18 Robert Dewar <dewar@adacore.com>
1916 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
1917 condition and both sub-expressions are static (and result is selected
1920 2010-06-18 Robert Dewar <dewar@adacore.com>
1922 * g-pehage.adb: Minor reformatting
1924 2010-06-18 Pascal Obry <obry@adacore.com>
1926 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
1929 2010-06-18 Arnaud Charlet <charlet@adacore.com>
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.
1935 2010-06-18 Pascal Obry <obry@adacore.com>
1937 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
1939 2010-06-18 Vincent Celier <celier@adacore.com>
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.
1944 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
1954 2010-06-18 Bob Duff <duff@adacore.com>
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.
1959 2010-06-18 Thomas Quinot <quinot@adacore.com>
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
1965 2010-06-18 Arnaud Charlet <charlet@adacore.com>
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.
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.
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.
1986 2010-06-18 Geert Bosch <bosch@adacore.com>
1988 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
1991 2010-06-18 Robert Dewar <dewar@adacore.com>
1993 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
1996 2010-06-18 Robert Dewar <dewar@adacore.com>
1998 * sprint.adb: Minor format change for N_Expression_With_Actions.
1999 * repinfo.adb: Minor reformatting.
2001 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
2007 2010-06-18 Emmanuel Briot <briot@adacore.com>
2009 * prj-nmsc.adb (Check_File): New parameter Display_Path.
2011 2010-06-18 Thomas Quinot <quinot@adacore.com>
2013 * g-socket.adb, g-socket.ads (Null_Selector): New object.
2015 2010-06-18 Pascal Obry <obry@adacore.com>
2017 * gnat_ugn.texi: Minor clarification.
2019 2010-06-18 Emmanuel Briot <briot@adacore.com>
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.
2026 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
2032 2010-06-18 Robert Dewar <dewar@adacore.com>
2034 * exp_util.adb: Minor reformatting.
2036 2010-06-18 Thomas Quinot <quinot@adacore.com>
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.
2047 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2049 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2051 2010-06-18 Robert Dewar <dewar@adacore.com>
2053 * scos.ads: Add proposed output for case expression
2055 2010-06-18 Jose Ruiz <ruiz@adacore.com>
2057 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2058 RTSS modules, we need to use the Microsoft linker.
2060 2010-06-18 Robert Dewar <dewar@adacore.com>
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
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
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.
2090 2010-06-18 Robert Dewar <dewar@adacore.com>
2092 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2093 * gnat1drv.adb: Fix typo.
2095 2010-06-18 Robert Dewar <dewar@adacore.com>
2097 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
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.
2103 2010-06-18 Thomas Quinot <quinot@adacore.com>
2105 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2107 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2110 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
2116 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
2128 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
2135 2010-06-18 Robert Dewar <dewar@adacore.com>
2137 * exp_disp.adb, sem_ch12.adb: Minor reformatting
2139 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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
2146 2010-06-18 Robert Dewar <dewar@adacore.com>
2148 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
2149 sem_intr.adb, sem_eval.adb: Minor reformatting
2151 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2153 * sem_type.adb (Is_Ancestor): If either type is private, examine full
2156 2010-06-18 Thomas Quinot <quinot@adacore.com>
2158 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2159 parameter rather than IN OUT.
2161 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2163 * exp_ch6.adb: Add extra guard.
2165 2010-06-18 Gary Dismukes <dismukes@adacore.com>
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.
2173 2010-06-18 Tristan Gingold <gingold@adacore.com>
2175 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2177 2010-06-18 Thomas Quinot <quinot@adacore.com>
2179 * g-socket.ads: Minor reformatting.
2181 2010-06-18 Vincent Celier <celier@adacore.com>
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.
2195 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
2203 2010-06-18 Robert Dewar <dewar@adacore.com>
2205 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2206 Warn on assigning to packed atomic component.
2208 2010-06-18 Robert Dewar <dewar@adacore.com>
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
2215 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
2223 2010-06-18 Robert Dewar <dewar@adacore.com>
2225 * lib-xref.adb (Generate_Reference): Fix bad reference to
2226 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2228 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2230 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2232 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2233 Use set_gnu_expr_location_from_node to set location information on the
2236 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2238 * gcc-interface/Make-lang.in: Update dependencies.
2240 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2242 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2245 2010-06-17 Robert Dewar <dewar@adacore.com>
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
2253 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
2262 2010-06-17 Robert Dewar <dewar@adacore.com>
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
2271 2010-06-17 Robert Dewar <dewar@adacore.com>
2273 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2275 2010-06-17 Robert Dewar <dewar@adacore.com>
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
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
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
2297 2010-06-17 Doug Rupp <rupp@adacore.com>
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
2304 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2305 64/32 Address/Integer works.
2307 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
2317 2010-06-17 Vincent Celier <celier@adacore.com>
2319 * gnat_rm.texi: Fix typo
2321 2010-06-17 Robert Dewar <dewar@adacore.com>
2323 * sem_util.adb: Minor reformatting
2325 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2332 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2340 2010-06-17 Gary Dismukes <dismukes@adacore.com>
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.
2348 2010-06-17 Robert Dewar <dewar@adacore.com>
2350 * freeze.adb: Minor reformatting.
2352 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2354 * gnat_ugn.texi: Add a section introducing gdbserver.
2356 2010-06-17 Thomas Quinot <quinot@adacore.com>
2358 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2361 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2368 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2374 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
2380 2010-06-17 Robert Dewar <dewar@adacore.com>
2382 * par.adb: Minor comment fix
2383 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2385 2010-06-17 Doug Rupp <rupp@adacore.com>
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.
2391 2010-06-17 Thomas Quinot <quinot@adacore.com>
2393 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2394 not denote a (private) component of a protected object.
2396 2010-06-17 Bob Duff <duff@adacore.com>
2398 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2401 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2403 * gnat_ugn.texi: Update the documentation about GDB re: exception
2406 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2408 * gnatvsn.ads: Bump to 4.6 version.
2410 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2418 2010-06-17 Robert Dewar <dewar@adacore.com>
2420 * exp_ch4.adb: Minor reformatting.
2422 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2433 2010-06-17 Arnaud Charlet <charlet@adacore.com>
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
2440 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2442 * gnat_ugn.texi: Update gnatcheck doc.
2444 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2451 2010-06-17 Vincent Celier <celier@adacore.com>
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
2459 * gnat_ugn.texi: Document the relaxed rules for library directories in
2460 externally built library projects.
2462 2010-06-17 Doug Rupp <rupp@adacore.com>
2464 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2466 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2467 * gcc-interface/Makefile.in: Update VMS target pairs.
2469 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
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.
2474 2010-06-17 Vincent Celier <celier@adacore.com>
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
2480 2010-06-17 Arnaud Charlet <charlet@adacore.com>
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.
2486 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2488 * exp_ch4.adb: expand NOT for VMS types.
2489 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2491 2010-06-17 Sergey Rybin <rybin@adacore.com>
2493 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2494 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2497 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2499 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2500 protected operation if the subprogram has been eliminated.
2502 2010-06-17 Vincent Celier <celier@adacore.com>
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.
2508 2010-06-17 Vincent Celier <celier@adacore.com>
2510 * make.adb (Check): If switch -m is used, deallocate the memory that
2511 may be allocated when computing the checksum.
2513 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2515 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2516 (C_Sendmsg): Likewise.
2518 2010-06-17 Thomas Quinot <quinot@adacore.com>
2520 * sem_res.adb: Update comments.
2522 2010-06-17 Vincent Celier <celier@adacore.com>
2524 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2526 2010-06-17 Robert Dewar <dewar@adacore.com>
2528 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2529 * layout.adb, freeze.adb: Use Make_Temporary.
2531 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
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.
2536 2010-06-17 Pascal Obry <obry@adacore.com>
2538 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2540 2010-06-17 Vincent Celier <celier@adacore.com>
2542 * make.adb (Collect_Arguments_And_Compile): Create include path file
2543 only when -x is specified.
2545 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
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
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
2556 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
2562 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2564 * s-crtl.ads (ssize_t): New type.
2565 (read): Fix signature.
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.
2599 2010-06-17 Vincent Celier <celier@adacore.com>
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.
2605 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
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.
2614 2010-06-17 Robert Dewar <dewar@adacore.com>
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
2623 2010-06-17 Thomas Quinot <quinot@adacore.com>
2625 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2627 2010-06-17 Robert Dewar <dewar@adacore.com>
2629 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2631 2010-06-17 Thomas Quinot <quinot@adacore.com>
2633 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2635 2010-06-17 Robert Dewar <dewar@adacore.com>
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
2641 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
2646 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2648 (Make_Temporary): Add more extensive documentation
2650 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
2660 2010-06-17 Robert Dewar <dewar@adacore.com>
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
2668 (Check_Component_Overlap): Moved inside
2669 Check_Record_Representation_Clause.
2670 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2672 2010-06-17 Robert Dewar <dewar@adacore.com>
2674 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2676 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2677 sem_eval.adb: Use Ekind_In
2679 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2681 * sem_ch8.adb: better error message for illegal inherited discriminant
2683 2010-06-17 Vincent Celier <celier@adacore.com>
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
2691 * gcc-interface/Make-lang.in: Update dependencies.
2693 2010-06-17 Vincent Celier <celier@adacore.com>
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
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
2703 * gcc-interface/Make-lang.in: Update dependencies.
2705 2010-06-17 Robert Dewar <dewar@adacore.com>
2707 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2708 Equivalent_Type to match documentation.
2710 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
2716 2010-06-17 Thomas Quinot <quinot@adacore.com>
2718 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2720 2010-06-17 Thomas Quinot <quinot@adacore.com>
2722 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2723 freeze node insertion points.
2725 2010-06-17 Robert Dewar <dewar@adacore.com>
2727 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2728 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2730 2010-06-17 Gary Dismukes <dismukes@adacore.com>
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).
2739 2010-06-17 Robert Dewar <dewar@adacore.com>
2741 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2742 * einfo.adb: Minor code reformatting (use Ekind_In)
2744 2010-06-17 Robert Dewar <dewar@adacore.com>
2746 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2749 2010-06-17 Vincent Celier <celier@adacore.com>
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
2756 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
2769 2010-06-17 Vincent Celier <celier@adacore.com>
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
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.
2785 2010-06-17 Robert Dewar <dewar@adacore.com>
2787 * prj.ads, prj.adb: Minor reformatting
2789 2010-06-17 Thomas Quinot <quinot@adacore.com>
2791 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2792 CP line for a disabled pragma.
2794 2010-06-17 Emmanuel Briot <briot@adacore.com>
2796 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2798 (Process_Declarative_Item): An invalid value in an typed variable
2799 declaration is no longer always fatal.
2801 2010-06-16 Arnaud Charlet <charlet@adacore.com>
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
2807 2010-06-16 Javier Miranda <miranda@adacore.com>
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
2813 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2815 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2816 to prevent cascaded errors and compilation aborts.
2818 2010-06-16 Robert Dewar <dewar@adacore.com>
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)
2829 2010-06-16 Robert Dewar <dewar@adacore.com>
2831 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2834 2010-06-16 Robert Dewar <dewar@adacore.com>
2836 * exp_disp.adb: Minor reformatting
2838 2010-06-16 Ed Schonberg <schonberg@adacore.com>
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.
2843 2010-06-16 Thomas Quinot <quinot@adacore.com>
2845 * tbuild.ads: Minor comment fix
2847 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
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
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.
2871 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
2879 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2880 determine whether it has the controlling type.
2882 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
2888 2010-06-14 Robert Dewar <dewar@adacore.com>
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.
2894 2010-06-14 Gary Dismukes <dismukes@adacore.com>
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.
2901 2010-06-14 Robert Dewar <dewar@adacore.com>
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
2911 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
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
2917 2010-06-14 Robert Dewar <dewar@adacore.com>
2919 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
2922 2010-06-14 Robert Dewar <dewar@adacore.com>
2924 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
2925 missing pragma argument identifier.
2927 2010-06-14 Robert Dewar <dewar@adacore.com>
2929 * atree.ads, atree.adb (Ekind_In): New functions.
2931 2010-06-14 Robert Dewar <dewar@adacore.com>
2933 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
2935 2010-06-14 Robert Dewar <dewar@adacore.com>
2937 * usage.adb (Usage): Redo documentation of -gnatwa.
2939 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2941 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
2942 an untagged incomplete type that is a limited view.
2944 2010-06-14 Sergey Rybin <rybin@adacore.com>
2946 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
2949 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
2956 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2958 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
2960 (Scan_ALI): Take into account new Visibility field.
2961 (Visibility_Kind): New type.
2962 (Xref_Entity_Record): Replace Lib field by Visibility.
2964 * gcc-interface/Make-lang.in: Update dependencies.
2966 2010-06-14 Pascal Obry <obry@adacore.com>
2968 * raise.h: Remove unused defintions.
2970 2010-06-14 Bob Duff <duff@adacore.com>
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.
2979 2010-06-14 Sergey Rybin <rybin@adacore.com>
2981 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
2983 2010-06-14 Thomas Quinot <quinot@adacore.com>
2985 * lib-util.adb: Minor code reorganization.
2987 2010-06-14 Robert Dewar <dewar@adacore.com>
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
3006 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
3015 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
3025 2010-06-14 Robert Dewar <dewar@adacore.com>
3027 * g-socket.adb, gnatcmd.adb: Minor reformatting.
3029 2010-06-14 Pascal Obry <obry@adacore.com>
3031 * s-finimp.adb: Fix typo.
3032 * raise.h: Remove duplicate blank line.
3034 2010-06-14 Vincent Celier <celier@adacore.com>
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.
3043 2010-06-14 Gary Dismukes <dismukes@adacore.com>
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
3049 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
3054 2010-06-14 Robert Dewar <dewar@adacore.com>
3056 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3058 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3059 Has_Pragma_Unmodified flag.
3061 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
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.
3077 2010-06-14 Vincent Celier <celier@adacore.com>
3079 * gnatcmd.adb (Mapping_File): New function.
3081 2010-06-14 Javier Miranda <miranda@adacore.com>
3083 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3085 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3087 * ali.adb: Fix typo.
3088 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3090 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3092 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
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
3099 2010-06-14 Robert Dewar <dewar@adacore.com>
3101 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3104 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3106 * lib-xref.ads: Doc updates:
3107 - Allocate 'Q' for #include entity kind
3109 - Allocate 'g' for regular macros
3110 - Allocate 'G' for function-like macros
3112 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
3125 2010-06-14 Ed Falis <falis@adacore.com>
3127 * sysdep.c: Fix 653 build against vThreads headers.
3129 2010-06-14 Robert Dewar <dewar@adacore.com>
3131 * sinfo.ads: Minor reformatting.
3133 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
3139 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3141 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
3144 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
3151 2010-06-14 Robert Dewar <dewar@adacore.com>
3153 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3155 2010-06-14 Robert Dewar <dewar@adacore.com>
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.
3173 2010-06-14 Robert Dewar <dewar@adacore.com>
3175 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3178 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3180 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3181 on the entity of an implicitly generated postcondition procedure.
3183 2010-06-14 Thomas Quinot <quinot@adacore.com>
3185 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3186 Discriminant_Constraint elist from full view to private view.
3188 2010-06-14 Robert Dewar <dewar@adacore.com>
3190 * sem_res.adb: Minor reformatting.
3192 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3194 * sem.adb: New version of unit traversal.
3196 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3197 within a generic unit in the table of delayed calls.
3199 2010-06-14 Robert Dewar <dewar@adacore.com>
3201 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3203 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
3210 2010-06-14 Sergey Rybin <rybin@adacore.com>
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)
3215 2010-06-14 Vincent Celier <celier@adacore.com>
3217 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3218 the ALI files on the command line.
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
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.
3229 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3231 * sem_ch4.adb: Fix typo.
3233 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
3235 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3236 vector IO doesn't work at default value properly.
3238 2010-06-14 Doug Rupp <rupp@adacore.com>
3240 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3242 2010-06-14 Vincent Celier <celier@adacore.com>
3244 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3245 sources of the project if a switch -files= is used.
3247 2010-06-14 Thomas Quinot <quinot@adacore.com>
3249 * exp_attr.adb: Minor reformatting.
3251 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3253 * gnat_ugn.texi: Minor typo fixes and wording changes.
3255 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
3267 2010-06-14 Doug Rupp <rupp@adacore.com>
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.
3277 2010-06-14 Olivier Hainque <hainque@adacore.com>
3279 * initialize.c (VxWorks section): Update comments.
3281 2010-06-14 Robert Dewar <dewar@adacore.com>
3283 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3285 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
3287 * init.c: Code clean up.
3289 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
3295 * sem_ch8.adb: Code clean up.
3297 2010-06-14 Ben Brosgol <brosgol@adacore.com>
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.
3303 2010-06-14 Thomas Quinot <quinot@adacore.com>
3305 * g-socket.ads: Remove misleading comments.
3307 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
3315 2010-06-14 Matthew Heaney <heaney@adacore.com>
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
3322 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
3329 * checks.adb (Apply_Discriminant_Check): If the target of the
3330 assignment is a renaming of a heap object, create constrained type for
3333 2010-06-14 Pascal Obry <obry@adacore.com>
3335 * prj-proc.adb: Fix copy of object directory for extending projects.
3337 2010-06-14 Jose Ruiz <ruiz@adacore.com>
3339 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3340 (__gnat_install_handler, PowerPC linux): Activate the alternative
3343 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
3345 * gnat_rm.texi: Move to GFDL version 1.3.
3346 * gnat-style.texi: Ditto.
3347 * gnat_ugn.texi: Ditto.
3349 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
3352 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3355 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
3357 * gcc-interface/utils.c (update_pointer_to): Initialize last.
3359 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3361 * gcc-interface/ada-tree.h: Fix formatting nits.
3363 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3365 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3367 (init_dummy_type): Likewise.
3368 (gnat_pushlevel): Likewise.
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.
3377 * gcc-interface/misc.c (gnat_printable_name): Likewise.
3379 * gcc-interface/decl.c (annotate_value): Likewise.
3381 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3383 (struct lang_decl): Likewise.
3384 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3385 (SET_DECL_LANG_SPECIFIC): Likewise.
3387 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
3389 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3390 * gcc-interface/lang-specs.h: Likewise.
3392 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3395 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3397 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3399 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3401 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
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.
3406 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
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.
3418 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3420 * gcc-interface/decl.c: Pretend to be a backend file by undefining
3421 IN_GCC_FRONTEND (still need rtl.h here).
3423 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3425 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3426 (gigi): Adjust call to set_stack_check_libfunc.
3428 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3430 * gcc-interface/utils.c: Do not include rtl.h.
3432 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
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,
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.
3448 2010-05-25 Joseph Myers <joseph@codesourcery.com>
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.
3455 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
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.
3461 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3463 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3465 * gcc-interface/utils.c (build_function_stub): Likewise.
3467 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3469 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3470 for Wuninitialized without -O.
3472 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
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
3481 <E_Record_Type>: Equate fields of types associated with an exception
3482 definition to those of the standard exception type.
3484 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3486 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3488 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3490 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3491 code, improve comments and fix formatting nits.
3493 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
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.
3499 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
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.
3508 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
3515 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3517 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3519 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
3524 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
3544 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
3557 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3560 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3562 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3564 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3566 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3569 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3571 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3573 * gnathtml.pl: Use 755 as mask for new directories.
3575 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3577 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3578 constant constructors before taking their address.
3580 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3582 * exp_dbug.ads: Fix outdated description. Mention link between XVS
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.
3588 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3590 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3591 use memmove if the array type is bit-packed.
3593 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3595 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3596 build_common_tree_nodes.
3598 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3600 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3602 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3604 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3607 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
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.
3626 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
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.
3644 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
3658 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3659 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3661 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
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.
3669 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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.
3689 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3691 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3692 calls. Return true for conversion from a record subtype to its type.
3694 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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
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.
3725 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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):
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.
3741 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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.
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
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
3762 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3764 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
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.
3773 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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.
3812 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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
3827 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3828 <INDIRECT_REF>: Call build_fold_indirect_ref.
3830 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
3837 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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
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
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
3860 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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.
3873 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3875 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
3876 side-effects of actual parameters before the call.
3878 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3880 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
3882 (set_rm_size): Reorder and remove obsolete test.
3884 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
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.
3894 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
3897 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3899 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
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.
3906 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
3912 2010-04-13 Duncan Sands <baldrick@free.fr>
3914 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
3915 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
3917 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
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.
3928 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
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.
3961 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
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.
3972 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3974 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
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.
3985 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3987 * gcc-interface/utils2.c (build_cond_expr): Take the address and
3988 dereference if the result type is passed by reference.
3990 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
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.
3996 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
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.
4036 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
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
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.
4068 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
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
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.
4106 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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
4118 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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.
4123 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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.
4131 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
4133 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4135 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
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.
4142 2010-01-28 Pascal Obry <obry@adacore.com>
4144 * s-win32.ads: Add some missing constants.
4146 2010-01-28 Vincent Celier <celier@adacore.com>
4148 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
4151 2010-01-28 Robert Dewar <dewar@adacore.com>
4153 * gnat_rm.texi: Minor correction
4155 2010-01-27 Pascal Obry <obry@adacore.com>
4157 * g-awk.adb: ensure that an AWK session is reusable.
4159 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
4161 * g-regist.adb (For_Every_Key): Fix previous change.
4164 2010-01-27 Thomas Quinot <quinot@adacore.com>
4166 * lib-writ.ads: Current version of spec for new N (note) ALI lines
4168 2010-01-27 Yannick Moy <moy@adacore.com>
4170 * a-cdlili.adb (Insert): Correct exception message when cursor
4171 designates wrong list.
4173 2010-01-27 Vincent Celier <celier@adacore.com>
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").
4179 2010-01-27 Robert Dewar <dewar@adacore.com>
4181 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4183 * exp_disp.adb: Minor reformatting
4185 2010-01-27 Tristan Gingold <gingold@adacore.com>
4187 * seh_init.c: Use __ImageBase instead of _ImageBase.
4189 2010-01-27 Javier Miranda <miranda@adacore.com>
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).
4195 2010-01-27 Sergey Rybin <rybin@adacore.com>
4197 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4199 2010-01-27 Robert Dewar <dewar@adacore.com>
4201 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4202 changed from Expr to N.
4204 2010-01-26 Thomas Quinot <quinot@adacore.com>
4206 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4207 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4210 2010-01-26 Vincent Celier <celier@adacore.com>
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
4222 2010-01-26 Ed Schonberg <schonberg@adacore.com>
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.
4227 2010-01-26 Robert Dewar <dewar@adacore.com>
4229 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4230 decisions for pragmas Assert, Check, Precondition, Postcondition if
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.
4236 2010-01-26 Thomas Quinot <quinot@adacore.com>
4238 * switch-c.adb: Fix handling of -gnatz*
4240 2010-01-26 Robert Dewar <dewar@adacore.com>
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
4246 2010-01-26 Robert Dewar <dewar@adacore.com>
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
4256 2010-01-26 Robert Dewar <dewar@adacore.com>
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.
4264 2010-01-26 Robert Dewar <dewar@adacore.com>
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.
4270 2010-01-26 Robert Dewar <dewar@adacore.com>
4272 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4275 2010-01-26 Robert Dewar <dewar@adacore.com>
4277 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4278 * scos.ads: Clarify handling of logical operators
4280 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4282 * s-tpoben.adb: Update comments.
4284 2010-01-26 Robert Dewar <dewar@adacore.com>
4286 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4289 2010-01-26 Robert Dewar <dewar@adacore.com>
4291 * scos.ads: Clean up documentation, remove obsolete XOR references
4292 2010-01-26 Vincent Celier <celier@adacore.com>
4294 * gnat_ugn.texi: Complete documentation on the restrictions for
4295 combined options in -gnatxxx switches.
4298 2010-01-26 Arnaud Charlet <charlet@adacore.com>
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.
4304 2010-01-26 Vincent Celier <celier@adacore.com>
4306 * prj-conf.adb (Get_Config_Switches): Check for a default language for
4307 a project extending a project with no languages.
4309 2010-01-26 Vincent Celier <celier@adacore.com>
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.
4315 2010-01-26 Robert Dewar <dewar@adacore.com>
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
4321 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
4323 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4324 that allows to iterate over all subkeys of a key.
4326 2010-01-26 Ed Falis <falis@adacore.com>
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.
4332 2010-01-25 Bob Duff <duff@adacore.com>
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.
4339 2010-01-25 Robert Dewar <dewar@adacore.com>
4341 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4342 exp_ch9.adb, g-sechas.ads: Minor reformatting.
4344 2010-01-25 Thomas Quinot <quinot@adacore.com>
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.
4350 2010-01-25 Ed Falis <falis@adacore.com>
4352 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4354 2010-01-25 Vincent Celier <celier@adacore.com>
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
4363 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
4370 2010-01-25 Bob Duff <duff@adacore.com>
4372 * sinfo.ads: Minor comment fixes.
4374 2010-01-25 Bob Duff <duff@adacore.com>
4376 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4378 2010-01-25 Arnaud Charlet <charlet@adacore.com>
4380 * gnatvsn.ads (Current_Year): Update.
4382 2010-01-25 Florian Villoing <villoing@adacore.com>
4384 * gnat_ugn.texi: Fix typo.
4386 2010-01-25 Thomas Quinot <quinot@adacore.com>
4388 * scos.ads: Update specification.
4390 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
4396 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
4402 2010-01-25 Vincent Celier <celier@adacore.com>
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
4410 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4412 * sem_prag.adb: More flexible pragma Annotate.
4414 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
4416 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4417 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4419 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
4421 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4423 2010-01-18 Jan Hubicka <jh@suse.cz>
4426 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4427 unit local variables.
4429 2010-01-17 Laurent GUERBY <laurent@guerby.net>
4431 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4433 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
4435 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4436 * system-linux-armeb.ads, system-linux-armel.ads: New files.
4438 2010-01-09 Simon Wright <simon@pushface.org>
4441 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4446 Copyright (C) 2010 Free Software Foundation, Inc.
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.