1 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4 * gcc-interface/misc.c (gnat_init_options): Allow options with
5 empty canonical form. Generate a single save_argv element from -I
8 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
10 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
11 Attach fake PARM_DECLs to the topmost block of the function.
13 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
15 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
16 for the call to a function whose return type was unconstrained.
18 2010-08-30 Olivier Hainque <hainque@adacore.com>
20 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
21 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
22 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
24 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
26 * tracebak.c: Fix typo in comment.
28 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
30 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
31 * gcc-interface/trans.c: Likewise.
32 * gcc-interface/utils.c: Likewise.
34 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
36 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
38 2010-08-10 Robert Dewar <dewar@adacore.com>
40 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
41 * sem_util.adb: Minor reformatting.
43 2010-08-10 Javier Miranda <miranda@adacore.com>
45 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
46 constructors that leave the object partially initialized.
47 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
48 that copies from parent of Typ the dispatch table slots of inherited
49 C++ primitives. It handles primary and secondary dispatch tables.
50 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
51 use this attribute with E_Variable entities.
52 (Set_Is_Tag): Relax assertion to allow its use with variables that
54 (Set_Related_Type): Relax assertion to allow its use with variables
55 that store the tag of a C++ class.
56 (Write_26_Field_Name): Remove Related_Type.
57 (Write_27_Field_Name): Add Related_Type.
58 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
59 with E_Variable entities.
60 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
62 * sem_util.adb (Search_Tag): Add missing support for CPP types.
63 (Enclosing_CPP_Parent): New subprogram.
64 (Has_Suffix): New subprogram.
65 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
66 closest ancestor of a type that is a C++ type.
67 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
69 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
70 instance in derivations of C++ types.
71 * exp_tss.adb (CPP_Init_Proc): New subprogram.
72 (Is_CPP_Init_Proc): New subprogram.
73 (Set_TSS): Handle new C++ init routines.
74 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
76 (CPP_Init_Proc): New subprogram.
77 (Is_CPP_Init_Proc): New subprogram.
78 * exp_disp.adb (CPP_Num_Prims): New subprogram.
79 (Has_CPP_Constructors): New subprogram.
80 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
81 initialize slots located in the C++ part of the dispatch table.
82 (Make_Tags): For CPP types declare variables used by the IP routine to
83 store the C++ tag values after the first invocation of the C++
85 (Build_CPP_Init_DT): New subprogram.
86 (Set_CPP_Constructors): New implementation that builds an IP for each
87 CPP constructor. These IP are wrappers of the C++ constructors that,
88 after the first invocation of the constructor, read the C++ tags from
89 the object and save them locally. These copies of the C++ tags are used
90 by the IC routines to initialize tables of Ada derivations of CPP types.
91 (Write_DT): Indicate what primitives are imported from C++
92 * exp_disp.ads (CPP_Num_Prims): New subprogram.
93 (Has_CPP_Constructors): New subprogram.
94 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
95 invoke the IC routine to inherit the slots of the parents.
96 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
97 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
98 (Is_Variable_Size_Record): Factorize code calling
99 Is_Variable_Size_Array.
100 (Build_CPP_Init_Procedure): New subprogram that builds the tree
101 corresponding to the procedure that initializes the C++ part of the
102 dispatch table of an Ada tagged type that is a derivation of a CPP type.
103 (Build_Init_Procedure): Adding documentation plus code reorganization to
104 leave more clear the construction of the IP with C++ types.
105 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
106 it cannot be called after Make_Tags has been invoked.
107 (Inherit_CPP_Tag): Removed.
108 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
109 located at variable offset.
110 * freeze.ads: Minor reformating.
111 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
113 * gcc-interface/Make-lang.in: Update dependencies.
115 2010-08-10 Robert Dewar <dewar@adacore.com>
117 * a-chahan.ads: Add comments on handling of obsolescent entries.
118 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
119 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
120 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
121 * sem_attr.adb (Analyze_Access_Attribute): Call
122 Check_Obsolescent_2005_Entity to check for access to obsolescent
123 Ada.Characters.Handling subprogram.
124 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
125 type is obsolescent in Ada 2005.
126 (Analyze_Attribute, case Constrained): Better placement of flag when
127 flagged as obsolescent feature.
128 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
129 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
130 is an obsolescent feature.
131 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
133 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
134 Check_Obsolescent_2005_Entity to check for renaming obsolete
135 Ada.Characters.Handling subprogram.
136 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
137 for obsolescent restrictions in Ada 2005.
138 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
139 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
140 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
141 check for obsolescent references to Ada.Characters.Handling subprograms
143 2010-08-10 Robert Dewar <dewar@adacore.com>
145 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
147 2010-08-10 Robert Dewar <dewar@adacore.com>
149 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
150 * par-ch4.adb: Change wording of Ada 2012 messages
151 * vms_data.ads: Add VMS entries for /2005, /12, /2012
153 2010-08-10 Robert Dewar <dewar@adacore.com>
155 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
156 codes in the range 16#80#..16#7FF#.
157 * sem_ch10.adb: Minor reformatting.
159 2010-08-10 Arnaud Charlet <charlet@adacore.com>
161 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
162 generate ali files in CodePeer mode, so that a gnatmake -c -k will
163 proceed further when possible
164 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
165 messages when ignoring representation clauses (-gnatI).
167 2010-08-10 Ed Schonberg <schonberg@adacore.com>
169 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
170 constant-fold discriminant reference if the constraint is an object
171 with non-static expression. Expression may contain volatile references
172 in the presence of renamings.
174 2010-08-10 Vincent Celier <celier@adacore.com>
176 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
178 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
179 index for an associative array where it is allowed.
181 2010-08-10 Thomas Quinot <quinot@adacore.com>
183 * exp_attr.adb: Add comments.
185 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
187 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
189 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
191 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
193 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
195 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
196 (build_vms_descriptor): Likewise.
198 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
200 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
201 (build_vms_descriptor32): Adjust calls to it for new parameter.
202 (build_vms_descriptor): Likewise.
204 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
206 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
207 (build_variant_list): Take and return a VEC instead of a tree.
208 (create_variant_part_from): Take a VEC instead of a tree for
209 variant_list. Adjust accordingly.
210 (gnat_to_gnu_entity): Adjust for changes to previous functions.
212 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
214 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
216 (components_to_record): Likewise.
217 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
218 * gcc-interface/utils.c (max_size): Likewise.
219 (build_vms_descriptor32): Likewise.
220 (build_vms_descriptor): Likewise.
222 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
224 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
225 (build_subst_list): Return a VEC instead of a tree.
226 (build_variant_list): Take a VEC for subst_list. Adjust
228 (create_field_decl_from): Likewise.
229 (create_variant_part_from): Likewise.
230 (copy_and_substitute_in_size): Likewise.
231 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
232 Free the built vector.
234 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
236 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
237 allocator for large imported objects.
239 2010-08-05 Robert Dewar <dewar@adacore.com>
241 * gnat1drv.adb: Minor reformatting.
243 2010-08-05 Ed Schonberg <schonberg@adacore.com>
245 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
246 instantiation, process its body before the spec of the main unit,
247 because it may contain subprograms invoked in the spec of main.
248 * einfo.ads: Add documention of delayed freeze.
250 2010-08-05 Vincent Celier <celier@adacore.com>
252 * prj-nmsc.adb (Process_Linker): Take into account new values for
253 attribute Response_File_Format.
254 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
255 GCC_Object_List and GCC_Option_List.
257 2010-08-05 Ed Schonberg <schonberg@adacore.com>
259 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
260 selected component that denotes a discriminant if it is the
261 discriminant of a component of an unconstrained record type.
263 2010-08-05 Ed Schonberg <schonberg@adacore.com>
265 * exp_util.adb (Insert_Actions): If the action appears within a
266 conditional expression that is already analyzed, insert action further
269 2010-08-05 Robert Dewar <dewar@adacore.com>
271 * exp_ch4.adb: Minor reformatting.
273 2010-08-05 Thomas Quinot <quinot@adacore.com>
275 * exp_ch4.adb: Minor reformatting
276 * gnat1drv.adb: Minor reformatting.
277 Minor code reorganization (use Nkind_In).
279 2010-08-05 Ed Schonberg <schonberg@adacore.com>
281 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
282 determine whether the expression in an address clause for an
283 initialized object must be constant. Code moved from freeze.adb.
284 (Remove_Side_Effects): When the temporary is initialized with a
285 reference, indicate that the temporary is a constant as done in all
287 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
288 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
289 If object does not need a constant address, remove side effects from
290 address expression, so it is elaborated at the point of the address
291 clause and not at the freeze point of the object, so that elaboration
294 2010-08-05 Vincent Celier <celier@adacore.com>
296 * prj.adb (Is_Compilable): Return False for header files of non Ada
299 2010-08-05 Emmanuel Briot <briot@adacore.com>
301 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
302 exec directory as a warning rather than an error.
304 2010-08-05 Thomas Quinot <quinot@adacore.com>
306 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
309 2010-08-05 Steve Baird <baird@adacore.com>
311 * exp_util.adb (Remove_Side_Effects): An access value which designates
312 a volatile object of a nonvolatile type is prohibited.
313 Do not call Make_Reference to construct a reference to such an object.
315 2010-08-05 Robert Dewar <dewar@adacore.com>
317 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
318 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
319 a-suewen.adb, a-suewen.ads: New files.
320 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
322 * sem_elab.adb: Minor reformatting.
324 2010-08-05 Arnaud Charlet <charlet@adacore.com>
326 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
327 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
328 in case of null Comp.
330 2010-08-05 Robert Dewar <dewar@adacore.com>
332 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
334 2010-08-05 Gary Dismukes <dismukes@adacore.com>
336 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
337 nested access type whose designated type has tasks or is a protected
338 object when the restrictions No_Task_Hierarchy or
339 No_Local_Protected_Objects apply. Add ??? comment.
340 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
341 type is not a library-level type and No_Local_Protected_Objects applies.
342 (Analyze_Task_Type): Give a warning when a task type is not a
343 library-level type and No_Task_Hierarchy applies.
345 2010-08-05 Arnaud Charlet <charlet@adacore.com>
347 * sem.adb: Minor reformatting
348 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
351 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
353 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
355 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
356 for the debug-only entity.
357 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
359 2010-08-03 Joseph Myers <joseph@codesourcery.com>
361 * gcc-interface/lang-specs.h: Don't pass -a options.
363 2010-07-28 Joseph Myers <joseph@codesourcery.com>
365 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
366 options. Check canonical_option_num_elements on options copied.
368 2010-07-27 Joseph Myers <joseph@codesourcery.com>
370 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
371 return value type. Don't check for missing arguments here.
373 2010-07-27 Joseph Myers <joseph@codesourcery.com>
375 * gcc-interface/misc.c (gnat_option_lang_mask): New.
376 (gnat_init_options): Update prototype. Reconstruct argv array
377 from decoded options.
379 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
381 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
382 case, merge the alias set of the old pointer type.
384 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
386 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
387 and recurse only for multidimensional array types instead.
389 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
392 * gcc-interface/utils.c (convert): Fix thinko in test.
393 (unchecked_convert): When converting from a scalar type to a type with
394 a different size, pad to have the same size on both sides.
396 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
398 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
399 equality for the component type of array types.
401 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
403 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
404 * gcc-interface/trans.c: Likewise.
405 * gcc-interface/utils.c: Likewise.
406 * gcc-interface/utils2.c: Likewise.
408 2010-07-13 Laurent GUERBY <laurent@guerby.net>
411 * gcc-interface/targtyps.c: Include tm_p.h.
412 * gcc-interface/Make-lang.in: Update dependencies.
414 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
416 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
419 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
421 * gcc-interface/utils.c: Include diagnostic-core.h in every file
422 that includes toplev.h.
424 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
426 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
427 Branch to common code handling the alignment of discrete types.
428 <E_Signed_Integer_Type>: Likewise.
429 <E_Modular_Integer_Type>: Likewise.
431 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
433 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
434 (gnat_handle_option): Allocate only one element for gnat_argv.
435 (gnat_init): Do not populate gnat_argv.
437 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
439 * gcc-interface/trans.c: Do not include tree-flow.h.
440 * gcc-interface/Make-lang.in: Adjust dependencies.
442 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
444 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
445 of a TREE_LIST. Update comment.
446 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
447 Adjust call to gnat_build_constructor.
448 (Attribute_to_gnu): Likewise.
449 (gnat_to_gnu): Likewise.
450 (pos_to_constructor): Likewise.
451 (extract_values): Likewise.
452 * gcc-interface/utils.c (build_template): Likewise.
453 (convert_vms_descriptor64): Likewise.
454 (convert_vms_descriptor32): Likewise.
455 (convert_to_fat_pointer): Likewise.
457 (unchecked_convert): Likewise.
458 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
459 * gcc-interface/utils2.c (build_allocator): Likewise.
460 (fill_vms_descriptor): Likewise.
461 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
462 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
463 instead of TREE_LISTs.
465 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
467 * gcc-interface/misc.c: Do not include except.h.
468 * gcc-interface/Make-lang.in: Update dependencies.
470 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
472 * gcc-interface/trans.c: Include tree-flow.h.
473 (gnu_switch_label_stack): Delete.
474 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
475 its associated block cannot fall through. Do not emit the final label
476 if no cases branch to it.
477 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
479 2010-06-23 Thomas Quinot <quinot@adacore.com>
481 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
482 reference to a protected subprogram outside of the protected's scope,
483 ensure the corresponding external subprogram is frozen before the
486 2010-06-23 Ed Schonberg <schonberg@adacore.com>
488 * sem_prag.adb: Fix typo in error message.
489 * sem.adb: Refine previous change.
491 2010-06-23 Robert Dewar <dewar@adacore.com>
493 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
494 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
495 Implement Ada 2012 string encoding packages.
497 2010-06-23 Arnaud Charlet <charlet@adacore.com>
499 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
500 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
501 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
502 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
504 * gcc-interface/Makefile.in: Enable use of above files.
506 2010-06-23 Ed Schonberg <schonberg@adacore.com>
508 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
509 of address clauses if if Ignore_Rep_Clauses is active.
510 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
511 remove address clause from tree so that it does not reach the backend.
513 2010-06-23 Arnaud Charlet <charlet@adacore.com>
515 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
516 expand 'Valid from user code in CodePeer mode, will be handled by the
519 2010-06-23 Bob Duff <duff@adacore.com>
521 * g-comlin.ads: Minor comment improvements.
523 2010-06-23 Ed Schonberg <schonberg@adacore.com>
525 * sem_res.adb (Uses_SS): The expression that initializes a controlled
526 component of a record type may be a user-defined operator that is
527 rewritten as a function call.
529 2010-06-23 Bob Duff <duff@adacore.com>
531 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
533 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
535 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
536 label to the new sequence of statements. Set the sloc of the raise
537 statement onto the new goto statements.
539 2010-06-23 Robert Dewar <dewar@adacore.com>
541 * a-stuten.ads, a-stuten.adb: New files.
542 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
543 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
545 2010-06-23 Robert Dewar <dewar@adacore.com>
547 * gnat_ugn.texi: Add documentation of -gnat12 switch
548 Add documentation of -gnatX switch.
550 2010-06-23 Ed Schonberg <schonberg@adacore.com>
552 * inline.ads: Include the current Ada_Version in the info for pending
553 instance bodies, so that declaration and body are compiled with the
555 * inline.adb: Move with_clause for Opt to spec.
556 * sem_ch12.adb (Analyze_Package_Instantiation,
557 Analyze_Subprogram_Instantiation): Save current Ada_Version in
558 Pending_Instantiation information.
559 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
560 Inline_Package_Body): Use the Ada_Version present in the body
563 2010-06-23 Robert Dewar <dewar@adacore.com>
565 * usage.adb: Add documentation for -gnat12 switch.
566 * errout.ads: Add VMS alias entry for -gnat12 switch
567 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
568 Add documentation for pragma Extensions_Allowed.
569 * opt.ads: Add entry for Ada 2012 mode.
570 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
572 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
574 * sem_ch13.adb: Add handling for Ada 2012 mode.
575 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
576 * switch-c.adb: Add handling for -gnat12 switch.
577 Implement -gnat2005 and -gnat2012.
578 * usage.adb: Add documentation for -gnat12 switch.
579 * vms_data.ads: Add /12 switch for Ada 2012 mode.
581 2010-06-23 Arnaud Charlet <charlet@adacore.com>
583 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
584 No_Task_Hierarchy restriction. Add comment.
585 * exp_ch9.adb, exp_ch3.adb: Update comments.
587 2010-06-23 Robert Dewar <dewar@adacore.com>
589 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
590 * sem_res.adb: Add comments.
591 * sem_util.adb: Minor reformatting. Add comments.
592 Change increment on Actuals_In_Call table.
593 * opt.ads: Minor: add 'constant'.
595 2010-06-23 Javier Miranda <miranda@adacore.com>
597 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
598 TSD to Null_Address if No_Dispatching_Calls is active.
600 2010-06-23 Vincent Celier <celier@adacore.com>
602 * a-comlin.ads: Indicate that use of this package is not supported
603 during the elaboration of an auto-initialized Stand-Alone Library.
605 2010-06-23 Ed Schonberg <schonberg@adacore.com>
607 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
608 alignment clause on a record type to determine if a component may be
609 misaligned. The decision must be taken in the back-end where target
610 alignment information is known.
612 2010-06-23 Arnaud Charlet <charlet@adacore.com>
614 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
615 systematically in CodePeer mode to simplify generated code.
616 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
617 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
618 No_Task_Hierarchy is set instead of crasshing.
620 2010-06-23 Thomas Quinot <quinot@adacore.com>
622 * sem_util.adb: Minor code cleanup: test for proper entity instead of
623 testing just Chars attribute when checking whether a given scope is
625 * exp_ch4.adb, einfo.adb: Minor reformatting.
627 2010-06-23 Vincent Celier <celier@adacore.com>
630 * switch-m.adb (Normalize_Compiler_Switches): Take into account
631 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
632 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
634 2010-06-23 Ed Schonberg <schonberg@adacore.com>
636 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
637 operation with a universal real operand, and the right operand is a
638 range with universal bounds, find unique fixed point that may be
639 candidate, and warn appropriately.
641 2010-06-23 Ed Schonberg <schonberg@adacore.com>
643 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
644 properly the rare cases where VMS operators are visible through
645 Extend_System, but the default System is being used and Address is a
647 * sem_util.adb: Widen predicate Is_VMS_Operator.
649 2010-06-23 Vincent Celier <celier@adacore.com>
651 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
654 2010-06-23 Olivier Hainque <hainque@adacore.com>
656 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
657 Interface_Name as foreign. These are GCC builtin imports for
658 which Ada specific processing doesn't apply.
660 2010-06-23 Thomas Quinot <quinot@adacore.com>
662 * sem_ch12.adb: Minor reformatting.
664 2010-06-23 Ed Schonberg <schonberg@adacore.com>
666 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
667 determine whether an intrinsic subprogram is VMS specific.
669 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
671 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
672 is present in the entity.
674 2010-06-23 Arnaud Charlet <charlet@adacore.com>
676 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
677 Fix handling of parameters.
678 Add protection against unexpected cases.
679 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
680 access level, since "A" suffix is already used elsewhere. Similarly,
681 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
684 2010-06-23 Thomas Quinot <quinot@adacore.com>
686 * sem_util.adb, sem_util.ads: Minor reformatting.
688 2010-06-23 Vincent Celier <celier@adacore.com>
690 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
691 the previous behavior of gprclean when there are missing files.
693 2010-06-23 Ed Schonberg <schonberg@adacore.com>
695 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
696 generic body is not a fatal error.
697 (Mark_Context): Handle properly names of child units.
698 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
701 2010-06-23 Vincent Celier <celier@adacore.com>
703 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
706 2010-06-23 Bob Duff <duff@adacore.com>
708 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
709 Memory_Space, because CPU_Time doesn't seem to provide any significant
710 speed advantage in practice. Cleanup: Get rid of constant
711 Default_Optimization; doesn't seem to add anything. Use case
712 statements instead of if statements; seems cleaner.
714 2010-06-23 Olivier Hainque <hainque@adacore.com>
716 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
717 Wshadow instead of Wextra to guard warning on absence of internal
718 builtin decl for an import. Fix use of quote in warning text.
719 (intrin_arglists_compatible_p): Remove processing of integer trailing
720 args on the Ada side. Fix use of literal > in warning text.
721 (intrin_return_compatible_p): Never warn on "function imported as
722 procedure". Defer the void/void case to the common type compatibility
724 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
725 of GCC builtin imports.
727 2010-06-23 Olivier Hainque <hainque@adacore.com>
729 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
731 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
732 functions, helpers for ...
733 (intrin_profiles_compatible_p): New function, replacement for ...
734 (compatible_signatures_p): Removed.
735 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
736 attempt to bind an unregistered builtin function. When we have
737 one, use it and warn on profile incompatibilities.
739 2010-06-23 Arnaud Charlet <charlet@adacore.com>
741 * gcc-interface/Make-lang.in: Update dependencies.
743 2010-06-23 Ed Schonberg <schonberg@adacore.com>
745 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
746 for a coextension in an object declaration is a concatenation, treat
747 coextension as dynamic.
749 2010-06-23 Javier Miranda <miranda@adacore.com>
751 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
752 internal entities are added to the scope of the tagged type.
753 (Derive_Subprograms): Do not stop derivation when we find the first
754 internal entity that has attribute Interface_Alias. After the change
755 done to Override_Dispatching_Operations it is no longer true that
756 these primirives are always located at the end of the list of
758 * einfo.ads (Primitive_Operations): Add documentation.
759 * exp_disp.adb (Write_DT): Improve output adding to the name of the
760 primitive a prefix indicating its corresponding tagged type.
761 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
762 entity covers the primitive of an interface that is not an ancestor of
763 this tagged type then the new primitive is added at the end of the list
764 of primitives. Required to fulfill the C++ ABI.
766 2010-06-23 Javier Miranda <miranda@adacore.com>
768 * atree.ads (Set_Reporting_Proc): New subprogram.
769 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
770 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
771 to routines of package Scil_ll by indirect call to the registered
773 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
774 that is invoked when a node is allocated, replaced or rewritten.
775 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
776 the SCIL node. Used as argument for Set_Reporting_Proc.
777 (Initialize): Register Copy_SCIL_Node as the reporting routine that
780 2010-06-23 Thomas Quinot <quinot@adacore.com>
782 * sem_ch3.ads: Minor reformatting.
784 2010-06-23 Ed Schonberg <schonberg@adacore.com>
786 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
787 always analyze the generic body and instance, because it may be needed
789 (Mark_Context): Prepend the with clauses for needed generic units, so
790 they appear in a better order for CodePeer.
791 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
793 2010-06-23 Emmanuel Briot <briot@adacore.com>
795 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
797 2010-06-23 Robert Dewar <dewar@adacore.com>
799 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
801 2010-06-23 Thomas Quinot <quinot@adacore.com>
803 * a-tags.ads: Fix description of TSD structure.
805 2010-06-23 Ed Schonberg <schonberg@adacore.com>
807 * sem_ch12.adb (Mark_Context): When indicating that the body of a
808 generic unit is needed prior to the unit containing an instantiation,
809 search recursively the context of the generic to add other generic
810 bodies that may be instantiated indirectly through the current instance.
812 2010-06-23 Robert Dewar <dewar@adacore.com>
814 * freeze.adb: Minor reformatting.
816 2010-06-23 Bob Duff <duff@adacore.com>
818 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
820 2010-06-23 Vincent Celier <celier@adacore.com>
822 * make.adb (Compile_Sources): Complete previous change.
824 2010-06-23 Ed Schonberg <schonberg@adacore.com>
826 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
827 Constrained extra formal.
829 2010-06-23 Ed Schonberg <schonberg@adacore.com>
831 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
832 Initialize_Scalars are enabled, compile the generated equality function
833 for a composite type with full checks enabled, so that validity checks
834 are performed on individual components.
836 2010-06-23 Emmanuel Briot <briot@adacore.com>
838 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
839 Missing_Source_Files.
841 2010-06-23 Robert Dewar <dewar@adacore.com>
843 * exp_ch3.adb, exp_util.adb: Minor reformatting.
845 2010-06-23 Jose Ruiz <ruiz@adacore.com>
847 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
848 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
849 Clock (without delays) use a run time which is properly initialized.
851 2010-06-23 Vincent Celier <celier@adacore.com>
853 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
854 when -f -u and a main is specified on the command line. However,
855 attempt to compile even when the ALI file is read-only when
856 Must_Compile is True.
858 2010-06-23 Thomas Quinot <quinot@adacore.com>
860 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
862 2010-06-23 Javier Miranda <miranda@adacore.com>
864 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
865 entities for parent types that are interfaces. Needed in generics to
866 handle formals that implement interfaces.
867 (Derive_Subprograms): Add assertion for derivation of tagged types that
868 do not cover interfaces. For generics, complete code that handles
869 derivation of type that covers interfaces because the previous
870 condition was weak (it required only name consistency; arguments were
871 not checked). Add new code to locate primitives covering interfaces
872 defined in generic units or instantiatons.
873 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
874 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
875 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
876 interfaces that are parents of the type because they share the primary
878 (Register_Primitive): Do not register primitives of interfaces that
879 are parents of the type.
880 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
881 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
882 primitives skip primitives of interfaces that are parents of the type.
884 2010-06-23 Ed Schonberg <schonberg@adacore.com>
886 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
887 attribute cannot be constant-folded if an index type is a formal type,
888 or is derived from one.
889 * checks.adb (Determine_Range): ditto.
891 2010-06-23 Arnaud Charlet <charlet@adacore.com>
893 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
895 2010-06-23 Bob Duff <duff@adacore.com>
897 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
898 (Insert): Disallow nul characters.
899 (misc output routines): Assert no nul characters.
901 2010-06-23 Ed Schonberg <schonberg@adacore.com>
903 * exp_ch4.adb: Use predefined unsigned type in all cases.
905 2010-06-23 Bob Duff <duff@adacore.com>
907 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
908 * g-pehage.ads: Minor comment fixes.
909 * g-pehage.adb: Minor: Add some additional debugging printouts under
912 2010-06-23 Robert Dewar <dewar@adacore.com>
914 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
915 (Worse_Choice): Always prefer Pure/Preelab.
917 2010-06-23 Vincent Celier <celier@adacore.com>
919 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
921 2010-06-23 Robert Dewar <dewar@adacore.com>
923 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
924 checking returns in generic case.
925 (Check_Missing_Return): New procedure.
927 2010-06-23 Robert Dewar <dewar@adacore.com>
929 * bindgen.adb, switch-b.adb: Minor reformatting.
931 2010-06-23 Javier Miranda <miranda@adacore.com>
933 * frontend.adb (Frontend): Add call to initialize the new package
935 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
937 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
938 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
940 * exp_util.adb (Insert_Actions): Remove code for
941 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
942 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
943 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
944 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
945 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
946 * sinfo.ads (SCIL_Related_Node): Field removed.
947 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
948 (N_SCIL_Tag_Init): Node removed.
949 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
950 (Check_SCIL_Node): New implementation.
951 (Find_SCIL_Node): Removed.
952 * sem.adb (Analyze): Remove management of
953 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
954 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
956 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
957 Set_SCIL_Related_Node and avoid adding the SCIL node before the
958 referenced node using Insert_Action because this is not longer required.
959 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
960 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
961 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
962 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
963 because we no longer require to generate the SCIL node before the call.
964 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
965 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
966 nodes before the referenced node using Insert_Action because this
967 is not longer required.
968 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
969 update the SCIL_Node field.
970 * sprint.adb (Sprint_Node_Actual): Remove code for
971 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
972 * treepr.adb (Print_Node): Print the SCIL node field (if available).
973 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
975 * scil_ll.ads, scil_ll.adb: New files.
976 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
979 2010-06-23 Robert Dewar <dewar@adacore.com>
981 * sem_ch6.adb: Minor reformatting.
983 2010-06-23 Doug Rupp <rupp@adacore.com>
985 * bindusg.adb (Display): Write -Hnn line.
986 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
988 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
989 valid values to 32 and 64.
990 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
991 ENABLE, DISABLE as valid settings.
992 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
993 * opt.ads (Heap_Size): New global variable.
994 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
995 TARGET_MALLOC64 check. Fix comment.
997 2010-06-23 Robert Dewar <dewar@adacore.com>
999 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
1000 reformatting. Add comments.
1001 * errout.adb (Finalize): Properly adjust warning count when deleting
1004 2010-06-22 Robert Dewar <dewar@adacore.com>
1006 * errout.adb (Finalize): Set Prev pointers.
1007 (Finalize): Delete continuations for deletion by warnings off(str).
1008 * erroutc.ads: Add Prev pointer to error message structure.
1010 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1012 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
1013 child unit, examine context of parent units to locate instantiated
1014 generics whose bodies may be needed.
1015 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
1016 with_clause for the instantiated generic, examine the context of its
1017 parents, to set Withed_Body flag, so that it can be visited earlier.
1018 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
1019 an unsigned type, use a type of the proper size for the intermediate
1020 value, to prevent alignment problems on unchecked conversion.
1022 2010-06-22 Geert Bosch <bosch@adacore.com>
1024 * s-rannum.ads Change Generator type to be self-referential to allow
1025 Random to update its argument. Use "in" mode for the generator in the
1026 Reset procedures to allow them to be called from the Ada.Numerics
1027 packages without tricks.
1028 * s-rannum.adb: Use the self-referencing argument to get write access
1029 to the internal state of the random generator.
1030 * a-nudira.ads: Make Generator a derived type of
1031 System.Random_Numbers.Generator.
1032 * a-nudira.adb: Remove use of 'Unrestricted_Access.
1033 Put subprograms in alpha order and add headers.
1034 * g-mbdira.ads: Change Generator type to be self-referential.
1035 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
1037 2010-06-22 Robert Dewar <dewar@adacore.com>
1039 * freeze.adb: Minor reformatting
1040 Minor code reorganization (use Nkind_In and Ekind_In).
1042 2010-06-22 Bob Duff <duff@adacore.com>
1044 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
1045 -gnatc when a file is compiled that we cannot generate code for, not
1046 helpful and confusing.
1048 2010-06-22 Vincent Celier <celier@adacore.com>
1050 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
1053 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1055 * s-rannum.adb: Replace constants with commented symbols.
1056 * s-rannum.ads: Explain significance of the initial value of the data
1059 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1061 * a-ngcoty.adb: Clarify comment.
1063 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1065 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
1066 expansion for indexing packed arrays with small power-of-2 component
1067 sizes when the target is AAMP.
1068 (Expand_Packed_Element_Reference): Return without expansion for
1069 indexing packed arrays with small power-of-2 component sizes when the
1072 2010-06-22 Geert Bosch <bosch@adacore.com>
1074 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
1077 2010-06-22 Robert Dewar <dewar@adacore.com>
1079 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
1082 2010-06-22 Doug Rupp <rupp@adacore.com>
1084 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
1086 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
1087 (pragma Ident): Add a default ident string in the private part.
1089 2010-06-22 Robert Dewar <dewar@adacore.com>
1091 * cstand.adb: Minor reformatting.
1093 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1095 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
1096 recognize the Shift and Rotation intrinsics that are known to the
1097 compiler but have no interface name.
1099 2010-06-22 Geert Bosch <bosch@adacore.com>
1101 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
1102 scaling in case of overflow or NaN results.
1104 2010-06-22 Robert Dewar <dewar@adacore.com>
1106 * cstand.adb: Complete previous change.
1107 * g-dirope.ads: Add comment.
1108 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
1110 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1112 * cstand.adb: Add tree nodes for pragma Pack on string types.
1114 2010-06-22 Javier Miranda <miranda@adacore.com>
1116 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
1117 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
1118 formal of a primitive.
1119 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
1120 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
1121 formal of a primitive.
1122 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
1123 to obtain the last formal of a primitive.
1125 2010-06-22 Geert Bosch <bosch@adacore.com>
1127 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
1128 depending on __EMX__ or MSDOS being defined.
1129 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
1130 * a-excpol-abort.adb: Update comment indicating users of the file.
1131 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
1133 * env.c: Remove empty conditional for MSDOS.
1134 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
1137 2010-06-22 Robert Dewar <dewar@adacore.com>
1139 * s-rannum.adb: Minor reformatting.
1141 2010-06-22 Javier Miranda <miranda@adacore.com>
1143 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
1144 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
1145 package Sem_Util to package Sem_Aux.
1147 2010-06-22 Javier Miranda <miranda@adacore.com>
1149 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
1150 remove useless restriction on imported routines when building the
1153 2010-06-22 Robert Dewar <dewar@adacore.com>
1155 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
1158 2010-06-22 Javier Miranda <miranda@adacore.com>
1160 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
1161 generic subprogram declarations to ensure proper context. Add missing
1162 support for generic actuals.
1163 (Try_Primitive_Operation): Add missing support for concurrent types that
1164 have no Corresponding_Record_Type. Required to diagnose errors compiling
1165 generics or when compiling with no code generation (-gnatc).
1166 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
1167 the corresponding record type.
1168 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
1169 documentation. Do minimum decoration when processing a primitive of a
1170 concurrent tagged type that covers interfaces. Required to diagnose
1171 errors in the Object.Operation notation compiling generics or under
1173 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
1174 propagation of attribute Interface_List to the corresponding record.
1175 (Expand_N_Task_Type_Declaration): Code cleanup.
1176 (Expand_N_Protected_Type_Declaration): Code cleanup.
1178 2010-06-22 Matthew Heaney <heaney@adacore.com>
1180 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1182 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1184 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
1185 that is able to produce all representable floating-point numbers in the
1186 unit interval. Remove template parameter Shift_Right, no longer used.
1187 * gnat_rm.texi: Document the period of the pseudo-random number
1188 generator under the description of its algorithm.
1189 * gcc-interface/Make-lang.in: Update dependencies.
1191 2010-06-22 Thomas Quinot <quinot@adacore.com>
1193 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1194 reference to discriminant (can be an expanded name as well as an
1197 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1199 * exp_ch6.adb: Clarify comment.
1201 2010-06-22 Geert Bosch <bosch@adacore.com>
1203 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
1204 with decimal small as decimal types, avoiding floating-point arithmetic.
1205 (Has_Decimal_Small): New function.
1206 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
1208 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
1209 callers to call the new function in Einfo that takes the entity as
1212 2010-06-22 Robert Dewar <dewar@adacore.com>
1214 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1216 2010-06-22 Thomas Quinot <quinot@adacore.com>
1218 * sem_elab.adb: Minor reformatting.
1220 2010-06-22 Vincent Celier <celier@adacore.com>
1222 * gnatsym.adb: Put the object files in the table in increasing
1223 aphabetical order of base names.
1225 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1227 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
1228 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
1229 the corresponding discriminal within a record declaration.
1231 2010-06-22 Thomas Quinot <quinot@adacore.com>
1233 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
1234 expression referring to a discriminal of the type of the aggregate (not
1235 a discriminal of some other unrelated type), and the prefix in the
1236 generated selected component must come from Lhs, not Obj.
1238 2010-06-22 Thomas Quinot <quinot@adacore.com>
1240 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1241 when to freeze the parent type.
1243 2010-06-22 Robert Dewar <dewar@adacore.com>
1245 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
1246 exp_aggr.adb: Minor reformatting.
1247 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
1248 GNAT.MBSS_Float_Random.
1249 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
1251 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1253 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
1254 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
1255 (Random_Float_Template, Random): New method of creating
1256 uniform floating-point variables that allow the creation of all machine
1259 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1261 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1263 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
1264 to abstract targets to check that the type is tagged and comes from
1265 source, rather than only testing for targets of interface types. Remove
1268 2010-06-22 Vincent Celier <celier@adacore.com>
1270 * vms_data.ads: Modify the declarations of qualifiers
1271 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1274 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1276 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1277 expansion is disabled.
1279 2010-06-22 Robert Dewar <dewar@adacore.com>
1281 * makeusg.adb: Minor reformatting.
1283 2010-06-22 Robert Dewar <dewar@adacore.com>
1285 * types.ads: (Dint): Removed, no longer used anywhere.
1286 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
1287 (UI_Mul): Avoid use of UI_From_Dint.
1288 (UI_From_Dint): Removed, not used.
1289 * uintp.ads (UI_From_Dint): Removed, not used.
1290 (Uint_Min/Max_Simple_Mul): New constants.
1292 2010-06-22 Vincent Celier <celier@adacore.com>
1294 * clean.adb (Parse_Cmd_Line): Recognize switch
1295 --unchecked-shared-lib-imports.
1296 (Usage): Add line for switch --unchecked-shared-lib-imports
1297 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
1298 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
1299 moved from GPR_Util.
1300 * switch-m.adb (Scan_Make_Switches): Recognize switch
1301 --unchecked-shared-lib-imports.
1302 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
1303 * gnat_ugn.texi: Add documentation for new switch
1304 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
1306 2010-06-22 Javier Miranda <miranda@adacore.com>
1308 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
1309 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
1310 this patch replaces duplication of code that traverses the chain of
1311 aliased primitives by a call to routine Ultimate_Alias that
1312 provides this functionality.
1314 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1316 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
1317 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
1320 2010-06-22 Thomas Quinot <quinot@adacore.com>
1322 * einfo.ads: Minor reformatting.
1324 2010-06-22 Javier Miranda <miranda@adacore.com>
1326 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
1327 eliminated primitives.
1328 (Make_DT): Avoid referencing eliminated primitives.
1329 (Register_Primitive): Do not register eliminated primitives in the
1330 dispatch table. Required to add this functionality when the program is
1331 compiled without static dispatch tables (-gnatd.t)
1333 2010-06-22 Emmanuel Briot <briot@adacore.com>
1335 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
1336 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
1337 warnings on use of internal GNAT units.
1339 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1341 * s-taprop-vxworks.adb (Set_Priority): Update comments.
1343 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1345 * s-rannum.adb: Make stylistic change to remove mystery constant in
1346 Extract_Value. Image_Numeral_Length: new symbolic constant.
1348 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1350 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
1351 Is_Synchronized_Interface, Is_Task_Interface into computable
1352 predicates, to free three flags in entity nodes.
1353 * sem_ch3.adb: Remove setting of these flags.
1355 2010-06-22 Robert Dewar <dewar@adacore.com>
1357 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
1359 * s-taprop-vxworks.adb: Add comment for Set_Priority.
1360 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
1361 * projects.texi: Move @cindex to the left margin, since otherwise we
1362 are missing entries in the index.
1364 2010-06-22 Emmanuel Briot <briot@adacore.com>
1366 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
1367 packages from the GNAT hierarchy instead of System when possible.
1368 * gcc-interface/Make-lang.in: Update dependencies.
1370 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1372 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
1373 previously in place to reorder the ready queue when a task drops its
1374 priority due to the loss of inherited priority.
1376 2010-06-22 Vincent Celier <celier@adacore.com>
1378 * projects.texi: Minor spelling error fixes.
1381 2010-06-22 Emmanuel Briot <briot@adacore.com>
1383 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1384 warnings for some with clauses.
1386 2010-06-22 Robert Dewar <dewar@adacore.com>
1388 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
1389 test to catch more cases where first subtype is the results we want.
1390 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
1391 error case, since Errout will now handle this correctly.
1392 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
1393 Update dependencies.
1395 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1397 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1398 when calling Make_Temporary.
1400 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1402 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1403 subprogram can be associated with an entry body.
1405 2010-06-22 Robert Dewar <dewar@adacore.com>
1407 * scos.ads: Add note on membership test handling.
1409 2010-06-22 Vincent Celier <celier@adacore.com>
1411 * projects.texi: Minor spelling fixes.
1414 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1416 * s-rannum.adb: Correct off-by-one error in Extract_Value.
1418 2010-06-22 Vincent Celier <celier@adacore.com>
1420 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1422 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1423 gcc command if it is too long.
1425 2010-06-22 Robert Dewar <dewar@adacore.com>
1427 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1429 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1431 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1432 calling Make_Temporary.
1434 2010-06-22 Robert Dewar <dewar@adacore.com>
1436 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1438 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1440 * sem_res.adb: Additional special-case for VMS.
1442 2010-06-22 Vincent Celier <celier@adacore.com>
1444 * gnatsym.adb: Minor comment fix.
1446 2010-06-22 Vincent Celier <celier@adacore.com>
1448 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1450 2010-06-22 Robert Dewar <dewar@adacore.com>
1452 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
1453 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
1454 Ada 95 mode as an implementation defined attribute.
1456 2010-06-22 Vincent Celier <celier@adacore.com>
1458 * bindusg.adb (Display): Update line for -R
1459 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
1460 generated files when -R is used.
1462 2010-06-22 Vincent Celier <celier@adacore.com>
1464 * prj-nmsc.adb (Lib_Data_Table): New table.
1465 (Check_Library_Attributes): Check if the same library name is used in
1466 two different projects that do not extend each other.
1468 2010-06-22 Robert Dewar <dewar@adacore.com>
1470 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1472 2010-06-22 Vincent Celier <celier@adacore.com>
1474 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1475 empty, make it the current working directory.
1477 2010-06-22 Thomas Quinot <quinot@adacore.com>
1479 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1480 private type with discriminants, make sure the parent type is frozen.
1482 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1484 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1485 with packed array references specially.
1486 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1487 to a component of a bit packed array if it is the prefix of 'Bit.
1488 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1489 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
1490 'Bit reference, where the prefix involves a packed array reference.
1491 (Get_Base_And_Bit_Offset): New helper, extracted from...
1492 (Expand_Packed_Address_Reference): ...here. Call above procedure to
1493 get the outer object and offset expression.
1495 2010-06-22 Thomas Quinot <quinot@adacore.com>
1497 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1498 * einfo.adb (Related_Expression, Set_Related_Expression): Add
1501 2010-06-22 Javier Miranda <miranda@adacore.com>
1503 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1504 reorganization to properly check if the operation has been inherited as
1505 an abstract operation.
1507 2010-06-22 Ed Falis <falis@adacore.com>
1509 * s-osinte-vxworks.ads: Complete previous change.
1511 2010-06-22 Thomas Quinot <quinot@adacore.com>
1513 * sem_res.adb: Add comment.
1514 * projects.texi, gnat_ugn.texi: Remove macro.
1516 2010-06-22 Vincent Celier <celier@adacore.com>
1518 * prj-attr.adb: Remove project level attribute Main_Language.
1520 2010-06-22 Robert Dewar <dewar@adacore.com>
1522 * switch-b.adb, osint-b.adb: Minor reformatting.
1524 2010-06-22 Pascal Obry <obry@adacore.com>
1526 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1527 vector if previous send was not fully successful. If only part of
1528 the vector data was sent, we exit the loop.
1530 2010-06-22 Thomas Quinot <quinot@adacore.com>
1532 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1533 error reporting with generic types.
1535 2010-06-22 Thomas Quinot <quinot@adacore.com>
1537 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1538 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1539 vms_data.ads: Add a new command line switch -A to gnatbind to output
1540 the list of all ALI files for the partition.
1542 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1544 * s-osinte-vxworks.ads: Fix casing.
1545 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1546 change: Interfaces.C does not provide a long_long type.
1548 2010-06-22 Emmanuel Briot <briot@adacore.com>
1550 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1551 native user's guide, since this document contains the two versions.
1552 * gcc-interface/Make-lang.in: Update doc dependencies.
1554 2010-06-22 Robert Dewar <dewar@adacore.com>
1556 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
1558 2010-06-22 Emmanuel Briot <briot@adacore.com>
1560 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1561 not build this file on its own (only through gnat_ugn.texi).
1562 Remove macro definitions and insert simpler version in gnat_ugn.texi.
1564 2010-06-22 Robert Dewar <dewar@adacore.com>
1566 * ali-util.ads: Minor comment update.
1567 * g-socthi-mingw.adb: Minor reformatting.
1569 2010-06-22 Ed Falis <falis@adacore.com>
1571 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1572 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1573 for specific versions of VxWorks.
1575 2010-06-22 Emmanuel Briot <briot@adacore.com>
1577 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1578 related sections from user's guide and reference manual, since they
1579 have now been merged together into a separate document (projects.texi).
1580 This removes a lot of duplication where attributes where described
1582 The grammar for the project files is now in each of the sections
1583 (packages,expressions,...) instead of being duplicates in two other
1584 sections (one in the user's guide that contained the full grammar,
1585 and various sections in the rm that contained extracts of the same
1587 Added the full list of all supported attributes, since existing lists
1589 Rename "associative array" into "indexed attribute"
1590 Remove sections that were duplicates ("External References in
1591 Project Files" and "External Values", and "Project Extensions"
1592 for instance). The list of valid packages in project files is now in
1595 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1597 * sem_ch3.adb (Add_Internal_Interface_Entities): If
1598 Find_Primitive_Covering_Interface does not find the operation, it may
1599 be because of a name conflict between the inherited operation and a
1600 local non-overloadable name. In that case look for the operation among
1601 the primitive operations of the type. This search must succeed
1602 regardless of visibility.
1604 2010-06-22 Pascal Obry <obry@adacore.com>
1606 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1607 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1610 2010-06-22 Robert Dewar <dewar@adacore.com>
1612 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1614 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1616 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1618 * s-intman-vxworks.ads: Code clean up.
1620 2010-06-22 Thomas Quinot <quinot@adacore.com>
1622 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1623 dereference, construct actual subtype of designated object to generate
1624 proper bounds checks.
1626 2010-06-22 Thomas Quinot <quinot@adacore.com>
1628 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1629 Read_Withed_ALIs, which is more descriptive.
1631 2010-06-22 Pascal Obry <obry@adacore.com>
1633 * g-sothco.ads: Minor reformatting.
1634 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1635 C_Sendmsg implementation.
1636 (C_Sendmsg): Do not use lock (not needed).
1637 (C_Recvmsg): Likewise and also do not wait for incoming data.
1639 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1641 * uintp.adb: Fix scope error in operator call.
1643 2010-06-22 Vincent Celier <celier@adacore.com>
1645 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1646 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1647 autoconfiguration is needed, fail indicating that no config project
1648 file can be found, as there is no autoconfiguration on VMS.
1650 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1652 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1653 for an operator in a functional notation, when operands are universal.
1655 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1657 * gcc-interface/Make-lang.in: Update dependencies.
1659 2010-06-22 Robert Dewar <dewar@adacore.com>
1661 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1663 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1664 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1666 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1669 2010-06-22 Vincent Celier <celier@adacore.com>
1671 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1672 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1674 2010-06-22 Pascal Obry <obry@adacore.com>
1676 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1678 (C_Recvmsg): Make sure the routine is atomic. Also fully
1679 fill vectors in the proper order.
1680 (C_Sendmsg): Make sure the routine is atomic.
1682 2010-06-22 Robert Dewar <dewar@adacore.com>
1684 * sem_ch8.adb: Update comment.
1685 * sem_res.adb: Minor code reorganization (use Ekind_In).
1687 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1689 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1690 name is a call, use the number of actuals to determine whether this is
1691 a binary or unary operator, rather than relying on later information
1692 to resolve the overload.
1694 2010-06-22 Robert Dewar <dewar@adacore.com>
1696 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1698 2010-06-22 Robert Dewar <dewar@adacore.com>
1700 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1701 * sem_eval.adb: Minor reformatting.
1703 2010-06-22 Vincent Celier <celier@adacore.com>
1705 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1706 to gnatlink, except on Open VMS.
1707 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1708 object directories if -nostdlib is used.
1710 2010-06-22 Robert Dewar <dewar@adacore.com>
1712 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1713 * sem_eval.adb: Minor reformatting.
1715 2010-06-22 Robert Dewar <dewar@adacore.com>
1717 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1718 * exp_aggr.adb: Minor comment changes and reformatting.
1719 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1720 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1722 2010-06-22 Thomas Quinot <quinot@adacore.com>
1724 * sem_util.adb (Build_Actual_Subtype): Record original expression in
1725 Related_Expression attribute of the constructed subtype.
1726 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1727 Node24 on types for...
1728 (Related_Expression): Make attribute available on types as well.
1730 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1732 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1733 Directly_Designated_Type when the type argument is an access type.
1734 (Find_Interface_Tag): Retrieve Designated_Type instead of
1735 Directly_Designated_Type when the type argument is an access type.
1736 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1737 Directly_Designated_Type of each access discriminant.
1738 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1739 instead of Directly_Designated_Type when the operand and target types
1742 2010-06-22 Thomas Quinot <quinot@adacore.com>
1744 * exp_aggr.adb (Flatten): Return False if one choice is statically
1745 known to be out of bounds.
1747 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1749 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1750 a parameterless function call, preserve parentheses of original
1751 expression, for proper handling by pretty printer.
1752 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1753 procedure, to handle quietly identifiers that have no entity names.
1754 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1755 elsif_part is missing, it has been rewritten as a nested if, and there
1756 is no useful information on the current value of the variable.
1758 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1760 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1761 discriminals to the current scope.
1762 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1763 scope, which could overwrite a different already set value.
1765 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1767 * sem_res.adb (Valid_Conversion): If expression is a predefined
1768 operator, use sloc of type of interpretation to improve error message
1769 when operand is of some derived type.
1770 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1772 2010-06-22 Emmanuel Briot <briot@adacore.com>
1774 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1775 that it can set out parameters as well. When a process has died, reset
1776 its Input_Fd to Invalid_Fd, so that when using multiple processes we
1777 can find out which process has died.
1779 2010-06-22 Thomas Quinot <quinot@adacore.com>
1781 * sem_eval.adb (Find_Universal_Operator_Type): New
1782 subprogram to identify the operand type of an operator on universal
1783 operands, when an explicit scope indication is present. Diagnose the
1784 case where such a call is ambiguous.
1785 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1786 Use the above to identify the operand type so it can be properly frozen.
1787 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1788 type, done in an arbitrary, possibly incorrect type (the presence of
1789 some numeric type in the scope is checked for legality, but when more
1790 than one such type is in the scope, we just pick a random one, not
1791 necessarily the expected one).
1792 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1795 2010-06-22 Robert Dewar <dewar@adacore.com>
1797 * sem_eval.adb: Minor reformatting.
1799 2010-06-22 Robert Dewar <dewar@adacore.com>
1801 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1802 Expression_With_Actions to clean up the code generated when folding
1803 constant expressions.
1805 2010-06-22 Vincent Celier <celier@adacore.com>
1807 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1810 2010-06-22 Vincent Celier <celier@adacore.com>
1812 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1813 found, check if it's path has aready been found, whatever its index.
1815 2010-06-22 Robert Dewar <dewar@adacore.com>
1817 * atree.adb, gnatbind.adb: Minor reformatting.
1818 Minor code reorganization.
1820 2010-06-21 Robert Dewar <dewar@adacore.com>
1822 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1823 known at compile time.
1825 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1827 * atree.adb: Fix comment typo.
1829 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1831 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1832 whether a universal arithmetic expression in a conversion, which is
1833 rewritten from a function call with an expanded name, is ambiguous.
1835 2010-06-21 Vincent Celier <celier@adacore.com>
1837 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1838 source files in specified list of sources.
1839 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1841 (Add_Source): Set the Location of the new source
1842 (Process_Exceptions_File_Based): Call Add_Source with the Location
1843 (Get_Sources_From_File): If an exception is found, set its Listed to
1845 (Find_Sources): When Source_Files is specified, if an exception is
1846 found, set its Listed to True. Remove any exception that is not in a
1847 specified list of sources.
1848 * prj.ads (Source_Data): New component Location
1850 2010-06-21 Vincent Celier <celier@adacore.com>
1852 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1854 2010-06-21 Thomas Quinot <quinot@adacore.com>
1856 * sem_res.adb: Minor reformatting.
1857 * atree.adb: New debugging hook "rr" for node rewrites.
1859 2010-06-21 Robert Dewar <dewar@adacore.com>
1861 * g-expect.ads, g-expect.adb: Minor reformatting.
1863 2010-06-21 Emmanuel Briot <briot@adacore.com>
1865 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1867 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1869 * gcc-interface/Make-lang.in: Update dependencies.
1871 2010-06-21 Thomas Quinot <quinot@adacore.com>
1873 * bindgen.ads: Update comments.
1875 2010-06-21 Vincent Celier <celier@adacore.com>
1877 * gnatbind.adb: Suppress dupicates when listing the sources in the
1878 closure (switch -R).
1880 2010-06-21 Emmanuel Briot <briot@adacore.com>
1882 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1885 2010-06-21 Emmanuel Briot <briot@adacore.com>
1887 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1889 (Expect_Internal): No longer raises an exception, so that it can set
1890 out parameters as well. When a process has died, reset its Input_Fd
1891 to Invalid_Fd, so that when using multiple processes we can find out
1892 which process has died.
1894 2010-06-21 Robert Dewar <dewar@adacore.com>
1896 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1897 checks.adb, sem_res.adb: Minor reformatting. Add comments.
1899 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1901 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1902 rederivation associated with a full declaration in a private part, and
1903 there is a partial view that derives the same parent subprogram, the
1904 new entity does not become visible. This check must be applied to
1905 interface operations as well.
1907 2010-06-21 Thomas Quinot <quinot@adacore.com>
1909 * checks.adb: Add comments.
1910 * prj-nmsc.adb: Minor reformatting.
1912 2010-06-21 Thomas Quinot <quinot@adacore.com>
1914 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1915 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1916 extract bounds, to ensure that we get the proper captured values,
1917 rather than an expression that may have changed value since the point
1918 where the subtype was elaborated.
1919 (Find_Body_Discriminal): New utility subprogram to share code between...
1920 (Eval_Attribute): For the case of a subtype bound that references a
1921 discriminant of the current concurrent type, insert appropriate
1922 discriminal reference.
1923 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1924 requeue to an entry in a family in the current task, use corresponding
1926 (Analyze_Accept_Statement): Rely on expansion of attribute references
1927 to insert proper discriminal references in range check for entry in
1930 2010-06-21 Emmanuel Briot <briot@adacore.com>
1932 * s-regpat.adb (Compile): Fix handling of big patterns.
1934 2010-06-21 Robert Dewar <dewar@adacore.com>
1936 * a-tifiio.adb: Minor reformatting.
1938 2010-06-21 Pascal Obry <obry@adacore.com>
1940 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1943 2010-06-21 Javier Miranda <miranda@adacore.com>
1945 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1948 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1950 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1951 to hold the result, indicate that the target of the declaration does
1952 not need an initialization, to prevent spurious errors when
1953 Initialize_Scalars is enabled.
1955 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1957 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1958 Fore is not bound by line length. The Fore parameter of the internal
1959 procedure that performs the operation is an integer.
1961 2010-06-21 Thomas Quinot <quinot@adacore.com>
1963 * sem_res.adb, checks.adb: Minor reformatting.
1965 2010-06-21 Emmanuel Briot <briot@adacore.com>
1967 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1969 (Insert_Operator_Before): New subprogram, avoids duplicated code
1970 (Compile): Avoid doing two compilations when the pattern matcher ends
1973 2010-06-21 Emmanuel Briot <briot@adacore.com>
1975 * s-regpat.adb: Improve debug traces
1976 (Dump): Change output format to keep it smaller.
1978 2010-06-21 Javier Miranda <miranda@adacore.com>
1980 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1981 output to the output file when this routine completes its work.
1983 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
1985 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1986 for loop. Call build_constructor_from_list directly in the CICO case.
1988 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1990 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1991 declaration appears in the same unit and ealier than the renamed
1992 entity, retain generated body to prevent order-of-elaboration issues in
1995 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1997 * s-tpoben.adb: Update comments.
1999 2010-06-18 Robert Dewar <dewar@adacore.com>
2001 * debug.adb: Minor comment change.
2003 2010-06-18 Javier Miranda <miranda@adacore.com>
2005 * exp_cg.adb: Code clean up.
2006 * debug.adb: Complete documentation of switch -gnatd.Z.
2007 * gcc-interface/misc.c (callgraph_info_file): Declare.
2009 2010-06-18 Javier Miranda <miranda@adacore.com>
2011 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
2013 2010-06-18 Thomas Quinot <quinot@adacore.com>
2015 * sprint.ads: Minor reformatting.
2016 * output.ads: Update obsolete comment.
2018 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2020 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
2021 an external intrinsic operation (e.g. a GCC numeric function) indicate
2022 that the renaming entity has the same characteristics, so a call to it
2023 is properly expanded.
2025 2010-06-18 Javier Miranda <miranda@adacore.com>
2027 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
2028 support for dispatch table/callgraph info generation.
2029 * gcc-interface/Make-lang.in: Update dependencies.
2031 2010-06-18 Robert Dewar <dewar@adacore.com>
2033 * exp_ch6.adb: Minor reformatting.
2034 * gnatname.adb: Add comment.
2036 2010-06-18 Vincent Celier <celier@adacore.com>
2038 * gnatname.adb (Scan_Args): When --and is used, make sure that the
2039 dynamic tables in the newly allocated Argument_Data are properly
2042 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2044 * gnat1drv.adb: Fix comment.
2046 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2048 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
2049 renaming, re-expand the call with the renamed subprogram if that one
2050 is marked inlined as well.
2052 2010-06-18 Gary Dismukes <dismukes@adacore.com>
2054 * gnat1drv.adb (Adjust_Global_Switches): Enable
2055 Use_Expression_With_Actions for AAMP and VM targets.
2057 2010-06-18 Vincent Celier <celier@adacore.com>
2059 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
2061 2010-06-18 Thomas Quinot <quinot@adacore.com>
2063 * exp_ch4.adb: Minor reformatting.
2065 2010-06-18 Javier Miranda <miranda@adacore.com>
2067 * debug.ads Add documentation on -gnatd.Z.
2069 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2071 * sem_elim.adb: Proper error message on improperly eliminated instances
2073 2010-06-18 Vincent Celier <celier@adacore.com>
2075 * prj.ads (Response_File_Format): New value GCC.
2077 2010-06-18 Thomas Quinot <quinot@adacore.com>
2079 * gnat1drv.adb: Minor reformatting.
2081 2010-06-18 Robert Dewar <dewar@adacore.com>
2083 * make.adb, sem_cat.adb: Minor reformatting.
2084 * sem_eval.adb: Fix typos.
2086 2010-06-18 Pascal Obry <obry@adacore.com>
2088 * prj-nmsc.adb: Fix source filenames casing in debug output.
2090 2010-06-18 Robert Dewar <dewar@adacore.com>
2092 * gnatcmd.adb: Minor reformatting.
2094 2010-06-18 Robert Dewar <dewar@adacore.com>
2096 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
2097 condition and both sub-expressions are static (and result is selected
2100 2010-06-18 Robert Dewar <dewar@adacore.com>
2102 * g-pehage.adb: Minor reformatting
2104 2010-06-18 Pascal Obry <obry@adacore.com>
2106 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
2109 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2111 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2112 dependencies. Fix target pairs on darwin.
2113 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
2115 2010-06-18 Pascal Obry <obry@adacore.com>
2117 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
2119 2010-06-18 Vincent Celier <celier@adacore.com>
2121 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
2122 configuration pragmas file and, if -U is not used, for a local one.
2124 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2126 * sem_elim.adb (Check_Eliminated): Use full information on entity name
2127 when it is given in the pragma by a selected component.
2128 (Check_For_Eliminated_Subprogram): Do no emit error if within a
2129 instance body that is itself within a generic unit.
2130 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
2131 eliminated, mark as well the anonymous subprogram that is its alias
2132 and appears within the wrapper package.
2134 2010-06-18 Bob Duff <duff@adacore.com>
2136 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
2137 Raise an exception if the output file cannot be opened. Add comments.
2139 2010-06-18 Thomas Quinot <quinot@adacore.com>
2141 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
2142 not illegal per E.2.2(7) if it occurs in the private part of a
2145 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2147 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
2148 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
2149 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
2150 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
2151 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
2152 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
2153 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
2154 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
2155 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
2156 errout.ads: Update comments. Minor reformatting.
2158 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
2159 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
2160 a-strunb.adb (Big_String. Big_String_Access): New type.
2162 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
2163 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
2164 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
2166 2010-06-18 Geert Bosch <bosch@adacore.com>
2168 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
2171 2010-06-18 Robert Dewar <dewar@adacore.com>
2173 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
2176 2010-06-18 Robert Dewar <dewar@adacore.com>
2178 * sprint.adb: Minor format change for N_Expression_With_Actions.
2179 * repinfo.adb: Minor reformatting.
2181 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2183 * sem_elim.adb (Check_Eliminated): If within a subunit, use
2184 Defining_Entity to obtain the name of the entity in the proper body, to
2185 properly handle both separate packages and subprograms.
2187 2010-06-18 Emmanuel Briot <briot@adacore.com>
2189 * prj-nmsc.adb (Check_File): New parameter Display_Path.
2191 2010-06-18 Thomas Quinot <quinot@adacore.com>
2193 * g-socket.adb, g-socket.ads (Null_Selector): New object.
2195 2010-06-18 Pascal Obry <obry@adacore.com>
2197 * gnat_ugn.texi: Minor clarification.
2199 2010-06-18 Emmanuel Briot <briot@adacore.com>
2201 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
2202 code when using the project dir as the source dir.
2203 (Search_Directories): use the normalized name for the source directory,
2204 where symbolic names have potentially been resolved.
2206 2010-06-18 Robert Dewar <dewar@adacore.com>
2208 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
2209 when we create N_Expression_With_Actions node.
2210 (Expand_Short_Circuit): Ditto.
2212 2010-06-18 Robert Dewar <dewar@adacore.com>
2214 * exp_util.adb: Minor reformatting.
2216 2010-06-18 Thomas Quinot <quinot@adacore.com>
2218 * types.ads: Clean up obsolete comments
2219 * tbuild.adb: Minor reformatting.
2220 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
2221 exp_strm.adb, aa_drive.adb: Minor reformatting.
2222 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
2223 intrinsic with an Interface_Name denotes an imported back-end builtin,
2224 and must be rewritten into a call, not left in the tree as an operator,
2225 so return False in that case.
2227 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2229 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2231 2010-06-18 Robert Dewar <dewar@adacore.com>
2233 * scos.ads: Add proposed output for case expression
2235 2010-06-18 Jose Ruiz <ruiz@adacore.com>
2237 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2238 RTSS modules, we need to use the Microsoft linker.
2240 2010-06-18 Robert Dewar <dewar@adacore.com>
2242 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
2243 expression (cannot count on a particular branch being executed).
2244 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
2245 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
2246 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
2247 within case expression.
2248 * expander.adb (Expand): Add call to Expand_N_Case_Expression
2249 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
2250 (P_Case_Expression): New procedure
2251 (P_Case_Expression_Alternative): New procedure
2252 * par.adb (P_Case_Expression): New procedure
2253 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
2255 * sem.adb (Analyze): Add call to Analyze_Case_Expression
2256 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
2257 this is a documentation change only.
2258 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
2259 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
2261 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
2262 * sem_res.adb (Resolve_Case_Expression): New procedure.
2263 * sem_scil.adb (Find_SCIL_Node): Add processing for
2264 N_Case_Expression_Alternative.
2265 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
2266 (N_Case_Expression_Alternative): New node.
2267 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
2268 N_Case_Expression and N_Case_Expression_Alternative.
2270 2010-06-18 Robert Dewar <dewar@adacore.com>
2272 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2273 * gnat1drv.adb: Fix typo.
2275 2010-06-18 Robert Dewar <dewar@adacore.com>
2277 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
2279 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
2280 gnat style for -gnatg.
2281 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
2283 2010-06-18 Thomas Quinot <quinot@adacore.com>
2285 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2287 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2290 2010-06-18 Robert Dewar <dewar@adacore.com>
2292 * sprint.adb: Minor change in output format for expression wi actions.
2293 * par-ch3.adb: Minor code reorganization. Minor reformatting.
2294 * sem_ch5.adb: Minor comment fix.
2296 2010-06-18 Robert Dewar <dewar@adacore.com>
2298 * debug.adb: New debug flag -gnatd.L to control
2299 Back_End_Handles_Limited_Types.
2300 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
2301 limited case if Back_End_Handles_Limited_Types is True.
2302 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
2303 simplify expansion if Use_Expression_With_Actions is True.
2304 * gnat1drv.adb (Adjust_Global_Switches): Set
2305 Back_End_Handles_Limited_Types.
2306 * opt.ads (Back_End_Handles_Limited_Types): New flag.
2308 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2310 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
2311 intrinsic operator if expansion is not enabled, because in an
2312 instantiation the original operator must be present to verify the
2313 legality of the operation.
2315 2010-06-18 Robert Dewar <dewar@adacore.com>
2317 * exp_disp.adb, sem_ch12.adb: Minor reformatting
2319 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2321 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
2322 the class-wide type for a private extension, and the completion is a
2323 subtype, set the type of the class-wide type to the base type of the
2326 2010-06-18 Robert Dewar <dewar@adacore.com>
2328 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
2329 sem_intr.adb, sem_eval.adb: Minor reformatting
2331 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2333 * sem_type.adb (Is_Ancestor): If either type is private, examine full
2336 2010-06-18 Thomas Quinot <quinot@adacore.com>
2338 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2339 parameter rather than IN OUT.
2341 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2343 * exp_ch6.adb: Add extra guard.
2345 2010-06-18 Gary Dismukes <dismukes@adacore.com>
2347 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
2348 accessibility level of a function call from the level of the innermost
2349 enclosing dynamic scope.
2350 (Innermost_Master_Scope_Depth): New function to find the depth of the
2351 nearest dynamic scope enclosing a node.
2353 2010-06-18 Tristan Gingold <gingold@adacore.com>
2355 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2357 2010-06-18 Thomas Quinot <quinot@adacore.com>
2359 * g-socket.ads: Minor reformatting.
2361 2010-06-18 Vincent Celier <celier@adacore.com>
2363 * make.adb (Must_Compile): New Boolean global variable
2364 (Main_On_Command_Line): New Boolean global variable
2365 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
2366 even when the project is externally built.
2367 (Start_Compile_If_Possible): Compile in -aL directories if
2368 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
2369 when the project is externally built.
2370 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
2371 invoked with -f -u and one or several mains on the command line.
2372 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
2373 is specified on the command line.
2375 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2377 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
2378 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
2379 containing extented_return statements.
2380 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
2381 constrained, do not build subtype declaration.
2383 2010-06-18 Robert Dewar <dewar@adacore.com>
2385 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2386 Warn on assigning to packed atomic component.
2388 2010-06-18 Robert Dewar <dewar@adacore.com>
2390 * sem_util.ads: Minor reformatting
2391 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
2392 Expression_With_Actions).
2393 * snames.ads-tmpl: Minor comment fix
2395 2010-06-18 Robert Dewar <dewar@adacore.com>
2397 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
2398 (Set_Imported): Use Import_Interface_Present to control message output
2399 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
2400 * gnat_rm.texi: Document that we can have pragma Import and pragma
2401 Interface for the same subprogram.
2403 2010-06-18 Robert Dewar <dewar@adacore.com>
2405 * lib-xref.adb (Generate_Reference): Fix bad reference to
2406 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2408 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2410 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2412 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2413 Use set_gnu_expr_location_from_node to set location information on the
2416 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2418 * gcc-interface/Make-lang.in: Update dependencies.
2420 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2422 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2425 2010-06-17 Robert Dewar <dewar@adacore.com>
2427 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
2428 style check messages.
2429 * sem_res.adb (Resolve_Call): Don't call
2430 Check_For_Eliminated_Subprogram if we are analyzing within a spec
2433 2010-06-17 Robert Dewar <dewar@adacore.com>
2435 * debug.adb: Add documentation for debug flags .X and .Y
2436 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
2437 Use_Expression_With_Actions.
2438 * gnat1drv.adb (Adjust_Global_Switches): Set
2439 Use_Expression_With_Actions.
2440 * opt.ads (Use_Expression_With_Actions): New switch.
2442 2010-06-17 Robert Dewar <dewar@adacore.com>
2444 * exp_intr.adb: Minor code reorganization (use UI_Max)
2445 * sem_intr.adb: use underlying type to check legality.
2446 * einfo.adb (Known_Static_Esize): False for generic types
2447 (Known_Static_RM_Size): False for generic types
2448 * einfo.ads (Known_Static_Esize): False for generic types
2449 (Known_Static_RM_Size): False for generic types
2451 2010-06-17 Robert Dewar <dewar@adacore.com>
2453 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2455 2010-06-17 Robert Dewar <dewar@adacore.com>
2457 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
2458 node when expanding short circuit form with actions present for right
2460 * exp_ch4.adb: Minor reformatting
2461 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
2462 right opeand has actions present, and debug flag -gnatd.X is set.
2463 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2465 * nlists.adb (Prepend_List): New procedure
2466 (Prepend_List_To): New procedure
2467 * nlists.ads (Prepend_List): New procedure
2468 (Prepend_List_To): New procedure
2469 * sem.adb: Add processing for Expression_With_Actions
2470 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2471 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2472 * sem_res.adb: Add processing for Expression_With_Actions.
2473 * sem_scil.adb: Add processing for Expression_With_Actions
2474 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2475 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2477 2010-06-17 Doug Rupp <rupp@adacore.com>
2479 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2480 involved both have underlying integer types.
2481 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2482 to an intrinsic operator when the operand types or sizes are not
2484 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2485 64/32 Address/Integer works.
2487 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2489 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2490 that it marks a unit as needed by a spec only if the corresponding
2491 instantiation appears in that spec (and not in the corresponding body).
2492 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2493 in the pragma Eliminate has been parsed as a child unit, but the
2494 current compilation unit is in fact the parent in which the subunit is
2497 2010-06-17 Vincent Celier <celier@adacore.com>
2499 * gnat_rm.texi: Fix typo
2501 2010-06-17 Robert Dewar <dewar@adacore.com>
2503 * sem_util.adb: Minor reformatting
2505 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2507 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2508 instance, the clause now denotes the instance body. Traverse the
2509 corresponding spec because there may be no other dependence that will
2510 force the traversal of its own context.
2512 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2514 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2515 Install_Limited_Context_Clauses, to determine whether a limited_with in
2516 some parent of the current unit designates some other parent, in which
2517 case the limited_with clause must not be installed.
2518 (In_Context): Refine test.
2520 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2522 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2523 type with a dispatching equality operator that is overridden (for a
2524 tagged full type), don't include the overridden equality in the list of
2525 primitives. The overridden equality is detected by testing for an
2526 Aliased field that references the overriding equality.
2528 2010-06-17 Robert Dewar <dewar@adacore.com>
2530 * freeze.adb: Minor reformatting.
2532 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2534 * gnat_ugn.texi: Add a section introducing gdbserver.
2536 2010-06-17 Thomas Quinot <quinot@adacore.com>
2538 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2541 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2543 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2544 constrained discriminated parent that is a private type.
2545 (Analyze_Record_Aggregate): when collecting inherited discriminants,
2546 handle properly an ancestor type that is a constrained private type.
2548 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2550 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2551 protected, use the protected_subprogram_body only if the original
2552 subprogram has not been eliminated.
2554 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2556 * freeze.adb (Freeze_Expression): The designated type of an
2557 access_to_suprogram type can only be frozen if all types in its profile
2560 2010-06-17 Robert Dewar <dewar@adacore.com>
2562 * par.adb: Minor comment fix
2563 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2565 2010-06-17 Doug Rupp <rupp@adacore.com>
2567 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2568 change Address to Short_Address in functions where both must be the
2569 same size for intrinsics to work.
2571 2010-06-17 Thomas Quinot <quinot@adacore.com>
2573 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2574 not denote a (private) component of a protected object.
2576 2010-06-17 Bob Duff <duff@adacore.com>
2578 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2581 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2583 * gnat_ugn.texi: Update the documentation about GDB re: exception
2586 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2588 * gnatvsn.ads: Bump to 4.6 version.
2590 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2592 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2593 designated type of the generated pointer is the type of the original
2594 expression, not that of the function call itself, because the return
2595 type may be an untagged derived type and the function may be an
2596 inherited operation.
2598 2010-06-17 Robert Dewar <dewar@adacore.com>
2600 * exp_ch4.adb: Minor reformatting.
2602 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2604 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2605 N_Component_Association nodes, to indicate that a component association
2606 of an extension aggregate denotes the value of a discriminant of an
2607 ancestor type that has been constrained by the derivation.
2608 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2609 double expansion of the aggregate appearing in a context that delays
2610 expansion, to prevent double insertion of discriminant values when the
2611 aggregate is reanalyzed.
2613 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2615 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2616 Allocator as the Related_Node of Return_Obj_Access in call to
2617 Make_Temporary below as this would create a sort of infinite
2620 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2622 * gnat_ugn.texi: Update gnatcheck doc.
2624 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2626 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2627 incomplete view of the type that is not tagged, and the full type is a
2628 tagged extension, create class_wide type now, and warn that the
2629 incomplete view should be tagged as well.
2631 2010-06-17 Vincent Celier <celier@adacore.com>
2633 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2634 Update the last line of the usage, indicating what commands do not
2635 accept project file switches.
2636 * vms_conv.adb: Do not issue usage line for GNAT SYNC
2637 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2639 * gnat_ugn.texi: Document the relaxed rules for library directories in
2640 externally built library projects.
2642 2010-06-17 Doug Rupp <rupp@adacore.com>
2644 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2646 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2647 * gcc-interface/Makefile.in: Update VMS target pairs.
2649 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
2651 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2652 compatible with Windows NT 4.0 which doesn't provide this function.
2654 2010-06-17 Vincent Celier <celier@adacore.com>
2656 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2657 different timestamps but the checksum is the same, issue a short
2660 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2662 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2663 it means that we cannot reset interrupt handlers since this would
2664 require potentially sending the abort signal to the Server_Task.
2666 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2668 * exp_ch4.adb: expand NOT for VMS types.
2669 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2671 2010-06-17 Sergey Rybin <rybin@adacore.com>
2673 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2674 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2677 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2679 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2680 protected operation if the subprogram has been eliminated.
2682 2010-06-17 Vincent Celier <celier@adacore.com>
2684 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2685 directories associated with a library to be any directory when the
2686 library project is externally built.
2688 2010-06-17 Vincent Celier <celier@adacore.com>
2690 * make.adb (Check): If switch -m is used, deallocate the memory that
2691 may be allocated when computing the checksum.
2693 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2695 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2696 (C_Sendmsg): Likewise.
2698 2010-06-17 Thomas Quinot <quinot@adacore.com>
2700 * sem_res.adb: Update comments.
2702 2010-06-17 Vincent Celier <celier@adacore.com>
2704 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2706 2010-06-17 Robert Dewar <dewar@adacore.com>
2708 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2709 * layout.adb, freeze.adb: Use Make_Temporary.
2711 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
2713 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2714 .NET/JVM normally as this is now perfectly supported by the backend.
2716 2010-06-17 Pascal Obry <obry@adacore.com>
2718 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2720 2010-06-17 Vincent Celier <celier@adacore.com>
2722 * make.adb (Collect_Arguments_And_Compile): Create include path file
2723 only when -x is specified.
2725 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2727 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2728 Objects_Path, defaulted to True. Only create include path file if
2729 Include_Path is True, only create objects path file if Objects_Path is
2731 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2732 Objects_Path, defaulted to True.
2733 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2736 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2738 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2739 determine whether it has the controlling type, when the formal is an
2742 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2744 * s-crtl.ads (ssize_t): New type.
2745 (read): Fix signature.
2747 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2748 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2749 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2750 (C_Sendmsg): Likewise.
2751 * g-socthi.adb (Syscall_Recvmsg): Likewise.
2752 (Syscall_Sendmsg): Likewise.
2753 (C_Recvmsg): Likewise.
2754 (C_Sendmsg): Likewise.
2755 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
2756 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2757 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2758 (C_Sendmsg): Likewise.
2759 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2760 (C_Sendmsg): Likewise.
2761 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2762 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2763 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2764 (C_Sendmsg): Likewise.
2765 * g-socthi-vms.adb (C_Recvmsg): Likewise.
2766 (C_Sendmsg): Likewise.
2767 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
2768 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2769 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2770 (C_Sendmsg): Likewise.
2771 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2772 (C_Sendmsg): Likewise.
2773 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2774 (Write): Likewise to call 'write'.
2775 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2776 (Write): Use correct type to call System.CRTL.write.
2777 * s-tasdeb.adb (Write): Likewise.
2779 2010-06-17 Vincent Celier <celier@adacore.com>
2781 * prj-proc.adb (Copy_Package_Declarations): Change argument name
2782 Naming_Restricted to Restricted. If Restricted is True, do not copy the
2783 value of attribute Linker_Options.
2785 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2787 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2788 (Case_Statement_to_gnu): Adjust.
2789 (Loop_Statement_to_gnu): Likewise.
2790 (Subprogram_Body_to_gnu): Likewise.
2791 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2792 (Compilation_Unit_to_gnu): Likewise.
2794 2010-06-17 Robert Dewar <dewar@adacore.com>
2796 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2797 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2798 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2799 sem_dist.adb, sem_util.adb: Use Make_Temporary
2800 * itypes.ads, tbuild.ads: Minor comment update
2801 * exp_ch9.adb, exp_dist.adb: Minor reformatting
2803 2010-06-17 Thomas Quinot <quinot@adacore.com>
2805 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2807 2010-06-17 Robert Dewar <dewar@adacore.com>
2809 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2811 2010-06-17 Thomas Quinot <quinot@adacore.com>
2813 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2815 2010-06-17 Robert Dewar <dewar@adacore.com>
2817 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2818 * tbuild.ads (Make_Temporary): More comment updates
2819 * tbuild.adb: Minor reformatting
2821 2010-06-17 Robert Dewar <dewar@adacore.com>
2823 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2824 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2826 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2828 (Make_Temporary): Add more extensive documentation
2830 2010-06-17 Robert Dewar <dewar@adacore.com>
2832 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2833 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
2834 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2835 where the slice's actions are inserted.
2836 (Decompose_Expr): Account for possible rewriting of slice bounds
2837 resulting from side effects suppression caused by the above freezing,
2838 so that folding of bounds is preserved by such rewriting.
2840 2010-06-17 Robert Dewar <dewar@adacore.com>
2842 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2843 * freeze.adb (Freeze_Record_Type): Add call to
2844 Check_Record_Representation_Clause.
2845 * sem_ch13.adb (Check_Record_Representation_Clause): New function
2846 (Analyze_Record_Representation_Clause): Split out overlap code into this
2848 (Check_Component_Overlap): Moved inside
2849 Check_Record_Representation_Clause.
2850 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2852 2010-06-17 Robert Dewar <dewar@adacore.com>
2854 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2856 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2857 sem_eval.adb: Use Ekind_In
2859 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2861 * sem_ch8.adb: better error message for illegal inherited discriminant
2863 2010-06-17 Vincent Celier <celier@adacore.com>
2865 * bindusg.adb: Remove lines for -A and -C
2866 * gnat_ugn.texi: Remove all documentation and examples of switches -A
2867 and -C for gnatbind and gnatlink.
2868 * gnatlink.adb (Usage): Remove lines for -A and -C
2869 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2871 * gcc-interface/Make-lang.in: Update dependencies.
2873 2010-06-17 Vincent Celier <celier@adacore.com>
2875 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2876 local Argument_List variable Args.
2877 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2879 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2880 for subsequent switches in Args.
2881 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2883 * gcc-interface/Make-lang.in: Update dependencies.
2885 2010-06-17 Robert Dewar <dewar@adacore.com>
2887 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2888 Equivalent_Type to match documentation.
2890 2010-06-17 Robert Dewar <dewar@adacore.com>
2892 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2893 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2894 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2896 2010-06-17 Thomas Quinot <quinot@adacore.com>
2898 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2900 2010-06-17 Thomas Quinot <quinot@adacore.com>
2902 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2903 freeze node insertion points.
2905 2010-06-17 Robert Dewar <dewar@adacore.com>
2907 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2908 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2910 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2912 * layout.adb (Layout_Type): Broaden test for setting an array type's
2913 Component_Size to include all scalar types, not just discrete types
2914 (components of real types were missed).
2915 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2916 on the itype created for an index (consistent with Make_Index and
2917 avoids possible Assert_Failures).
2919 2010-06-17 Robert Dewar <dewar@adacore.com>
2921 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2922 * einfo.adb: Minor code reformatting (use Ekind_In)
2924 2010-06-17 Robert Dewar <dewar@adacore.com>
2926 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2929 2010-06-17 Vincent Celier <celier@adacore.com>
2931 * back_end.adb: Minor comment updates
2932 * switch-c.adb: Remove dependencies on gcc C sources
2933 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2936 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2938 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2939 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2940 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2941 Remove use of Node field in SCOs table
2942 (Output_Header): Set 'd' to initially disable pragma entry
2943 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2944 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2945 Use C2 field of pragma decision header to indicate enabled.
2946 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2947 * gcc-interface/Make-lang.in: Update dependencies.
2949 2010-06-17 Vincent Celier <celier@adacore.com>
2951 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2952 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2953 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2954 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2956 * switch-c.adb: Copied a number of global declarations from back_end.adb
2957 (Len_Arg): New function copied from back_end.adb
2958 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2959 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2960 Switch_Subsequently_Cancelled.
2961 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2962 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2963 with -lexc on Tru64.
2965 2010-06-17 Robert Dewar <dewar@adacore.com>
2967 * prj.ads, prj.adb: Minor reformatting
2969 2010-06-17 Thomas Quinot <quinot@adacore.com>
2971 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2972 CP line for a disabled pragma.
2974 2010-06-17 Emmanuel Briot <briot@adacore.com>
2976 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2978 (Process_Declarative_Item): An invalid value in an typed variable
2979 declaration is no longer always fatal.
2981 2010-06-16 Arnaud Charlet <charlet@adacore.com>
2983 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2984 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2987 2010-06-16 Javier Miranda <miranda@adacore.com>
2989 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2990 node referenced by the SCIL node of dispatching "=" to skip the tags
2993 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2995 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2996 to prevent cascaded errors and compilation aborts.
2998 2010-06-16 Robert Dewar <dewar@adacore.com>
3000 * back_end.adb (Switch_Subsequently_Cancelled): New function
3001 Move declarations to package body level to support this change
3002 * back_end.ads (Switch_Subsequently_Cancelled): New function
3003 * gnat_ugn.texi: Document -gnat-p switch
3004 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
3005 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
3006 * usage.adb: Add line for -gnat-p switch
3007 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
3009 2010-06-16 Robert Dewar <dewar@adacore.com>
3011 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
3014 2010-06-16 Robert Dewar <dewar@adacore.com>
3016 * exp_disp.adb: Minor reformatting
3018 2010-06-16 Ed Schonberg <schonberg@adacore.com>
3020 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
3021 base type only if it was not previously created for the partial view.
3023 2010-06-16 Thomas Quinot <quinot@adacore.com>
3025 * tbuild.ads: Minor comment fix
3027 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
3029 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
3030 (gnu_except_ptr_stack): Change type to VEC. Update comment.
3031 (gnu_elab_proc_stack): Likewise.
3032 (gnu_return_label_stack): Likewise.
3033 (gnu_loop_label_stack): Likewise.
3034 (gnu_switch_label_stack): Likewise.
3035 (gnu_constraint_label_stack): Likewise.
3036 (gnu_storage_error_label_stack): Likewise.
3037 (gnu_program_error_label_stack): Likewise.
3038 (push_exception_label_stack): Take a VEC ** instead of a tree *.
3039 (push_stack): Likewise. Remove unused second parameter. Update
3041 (pop_stack): Take a VEC * instead of a tree *. Update callers.
3042 (gigi): Initialize stacks as VECs.
3043 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
3044 (Case_Statement_to_gnu): Likewise.
3045 (Subprogram_Body_to_gnu): Likewise.
3046 (call_to_gnu): Likewise.
3047 (Exception_Handler_to_gnu_sjlj): Likewise.
3048 (gnat_to_gnu): Likewise.
3049 (get_exception_label): Likewise.
3051 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3053 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
3054 anonymous base generated when the parent is a constrained discriminated
3055 type, propagate interface list to first subtype because it may appear
3056 in a current instance within the extension part of the derived type
3057 declaration, and its own subtype declaration has not been elaborated
3059 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3060 determine whether it has the controlling type.
3062 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3064 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
3065 raise of CE, SE and PE have the reason correctly set and are properly
3066 expanded before stopping the expansions of .NET/JVM exceptions.
3068 2010-06-14 Robert Dewar <dewar@adacore.com>
3070 * opt.ads (Check_Policy_List): Add some clarifying comments
3071 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
3072 on rewritten Assert pragma.
3074 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3076 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
3077 controlled operations, so that they will be treated as overriding even
3078 if the overridden subprogram is marked Is_Hidden, as long as the
3079 overridden subprogram's parent subprogram is not hidden.
3081 2010-06-14 Robert Dewar <dewar@adacore.com>
3083 * debug.adb: Entry for gnatw.d no longer specific for while loops
3084 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
3085 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
3086 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
3087 new calling sequence to include test for EXIT WHEN.
3088 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
3089 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
3091 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
3093 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
3094 PRAGMA, not to pragma identifier).
3095 (Next_Exit_Statement): New attribute of N_Exit_Statement node
3097 2010-06-14 Robert Dewar <dewar@adacore.com>
3099 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
3102 2010-06-14 Robert Dewar <dewar@adacore.com>
3104 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
3105 missing pragma argument identifier.
3107 2010-06-14 Robert Dewar <dewar@adacore.com>
3109 * atree.ads, atree.adb (Ekind_In): New functions.
3111 2010-06-14 Robert Dewar <dewar@adacore.com>
3113 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
3115 2010-06-14 Robert Dewar <dewar@adacore.com>
3117 * usage.adb (Usage): Redo documentation of -gnatwa.
3119 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3121 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
3122 an untagged incomplete type that is a limited view.
3124 2010-06-14 Sergey Rybin <rybin@adacore.com>
3126 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
3129 2010-06-14 Thomas Quinot <quinot@adacore.com>
3131 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
3132 factoring duplicated code between...
3133 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
3134 * a-envvar.ads: Minor reformatting
3136 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3138 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
3140 (Scan_ALI): Take into account new Visibility field.
3141 (Visibility_Kind): New type.
3142 (Xref_Entity_Record): Replace Lib field by Visibility.
3144 * gcc-interface/Make-lang.in: Update dependencies.
3146 2010-06-14 Pascal Obry <obry@adacore.com>
3148 * raise.h: Remove unused defintions.
3150 2010-06-14 Bob Duff <duff@adacore.com>
3152 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
3153 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
3154 the incorrect error "proper body expected".
3155 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
3156 allowed here" error in case of subunits, which was triggered by the
3157 above change to P_Subunit.
3159 2010-06-14 Sergey Rybin <rybin@adacore.com>
3161 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
3163 2010-06-14 Thomas Quinot <quinot@adacore.com>
3165 * lib-util.adb: Minor code reorganization.
3167 2010-06-14 Robert Dewar <dewar@adacore.com>
3169 * ali.adb (Scan_ALI): Implement reading and storing of N lines
3170 (Known_ALI_Lines): Add entry for 'N' (notes)
3171 * ali.ads (Notes): New table to store Notes information
3172 * alloc.ads: Add entries for Notes table
3173 * lib-util.adb (Write_Info_Int): New procedure
3174 (Write_Info_Slit): New procedure
3175 (Write_Info_Uint): New procedure
3176 * lib-util.ads (Write_Info_Int): New procedure
3177 (Write_Info_Slit): New procedure
3178 (Write_Info_Uint): New procedure
3179 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
3180 * lib-writ.ads: Update documentation for N (Notes) lines
3181 * lib.adb (Store_Note): New procedure
3182 * lib.ads (Notes): New table
3183 (Store_Note): New procedure
3184 * sem_prag.adb: Call Store_Note for affected pragmas
3186 2010-06-14 Thomas Quinot <quinot@adacore.com>
3188 * socket.c: Fix wrong condition in #ifdef
3189 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
3190 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
3191 because on VMS this type is a 32-bit pointer which is not compatible
3192 with the default for C pointers for code compiled with gcc on that
3195 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3197 * sem_util (Is_VMS_Operator): New predicate to determine whether an
3198 operator is an intrinsic operator declared in the DEC system extension.
3199 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
3200 if the operator is a VMS intrinsic.
3201 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
3202 constant-folded if the operands are signed and the operator is a VMS
3205 2010-06-14 Robert Dewar <dewar@adacore.com>
3207 * g-socket.adb, gnatcmd.adb: Minor reformatting.
3209 2010-06-14 Pascal Obry <obry@adacore.com>
3211 * s-finimp.adb: Fix typo.
3212 * raise.h: Remove duplicate blank line.
3214 2010-06-14 Vincent Celier <celier@adacore.com>
3216 * prj-nmsc.adb (Add_Sources): Always set the object file and the
3217 switches file names, as the configuration of the language may change
3218 in an extending project.
3219 (Process_Naming_Scheme): For sources of projects that are extended, set
3220 the configuration of the language from the highest extending project
3221 where the language is declared.
3223 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3225 * sem_res.adb (Resolve_Call): For infinite recursion check, test
3226 whether the called subprogram is inherited from a containing subprogram.
3227 (Same_Or_Aliased_Subprograms): New function
3229 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3231 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
3232 use-visible, check whether it is a primitive for more than one type.
3234 2010-06-14 Robert Dewar <dewar@adacore.com>
3236 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3238 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3239 Has_Pragma_Unmodified flag.
3241 2010-06-14 Thomas Quinot <quinot@adacore.com>
3243 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
3244 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
3245 now done in GNAT.Sockets if necessary.
3246 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
3247 Ensure mutual exclusion for netdb operations if the target platform
3249 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
3250 hostent as an opaque type to improve portability.
3251 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
3252 gethostbyYYY using proprietary VxWorks API so that a uniform interface
3253 is available for the Ada side.
3254 * gcc-interface/Makefile.in: Remove g-sttsne-*
3255 * gcc-interface/Make-lang.in: Update dependencies.
3257 2010-06-14 Vincent Celier <celier@adacore.com>
3259 * gnatcmd.adb (Mapping_File): New function.
3261 2010-06-14 Javier Miranda <miranda@adacore.com>
3263 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3265 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3267 * ali.adb: Fix typo.
3268 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3270 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3272 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
3275 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
3276 the context does not have a homonym of the selector, emit default
3279 2010-06-14 Robert Dewar <dewar@adacore.com>
3281 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3284 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3286 * lib-xref.ads: Doc updates:
3287 - Allocate 'Q' for #include entity kind
3289 - Allocate 'g' for regular macros
3290 - Allocate 'G' for function-like macros
3292 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3294 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
3295 Indicates that there is an instantiation in the current unit that
3296 loaded the body of the unit denoted by the with_clause.
3297 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
3298 whether a with_clause in the current context denotes the unit that
3299 holds the generic declaration, and mark the with_clause accordingly.
3300 (Instantiate_Package_Body): call Mark_Context.
3301 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
3302 whether a given body should be traversed before the spec of the main
3305 2010-06-14 Ed Falis <falis@adacore.com>
3307 * sysdep.c: Fix 653 build against vThreads headers.
3309 2010-06-14 Robert Dewar <dewar@adacore.com>
3311 * sinfo.ads: Minor reformatting.
3313 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3315 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
3316 the spec has been generated for a body without spec that carries an
3317 Inline_Always pragma.
3319 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3321 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
3324 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3326 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
3327 declaration for VMs, as those are useless and might lead to duplicated
3328 local variable names in the generated code.
3329 * gcc-interface/Make-lang.in: Update dependencies.
3331 2010-06-14 Robert Dewar <dewar@adacore.com>
3333 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3335 2010-06-14 Robert Dewar <dewar@adacore.com>
3337 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
3338 is renamed as Has_Following_Address_Clause.
3339 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
3340 to allow the caller to avoid Initialize_Scalars having an effect.
3341 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
3342 scalars with an address clause specified.
3343 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
3344 to allow the caller to avoid Initialize_Scalars having an effect.
3345 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
3346 (where it was called Has_Address_Clause).
3347 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
3348 (where it was called Has_Address_Clause).
3349 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
3350 problems for Initialize_Scalars (since we no longer initialize objects
3351 with an address clause.
3353 2010-06-14 Robert Dewar <dewar@adacore.com>
3355 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3358 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3360 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3361 on the entity of an implicitly generated postcondition procedure.
3363 2010-06-14 Thomas Quinot <quinot@adacore.com>
3365 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3366 Discriminant_Constraint elist from full view to private view.
3368 2010-06-14 Robert Dewar <dewar@adacore.com>
3370 * sem_res.adb: Minor reformatting.
3372 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3374 * sem.adb: New version of unit traversal.
3376 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3377 within a generic unit in the table of delayed calls.
3379 2010-06-14 Robert Dewar <dewar@adacore.com>
3381 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3383 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3385 * sem_ch12.adb (Save_References): If an identifier has been rewritten
3386 during analysis as an explicit dereference, keep the reference implicit
3387 in the generic, but preserve the entity if global. This prevents
3388 malformed generic trees in the presence of some nested generics.
3390 2010-06-14 Sergey Rybin <rybin@adacore.com>
3392 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
3393 tool with '-files=' option. Also fix some small errors (wrong brackets)
3395 2010-06-14 Vincent Celier <celier@adacore.com>
3397 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3398 the ALI files on the command line.
3400 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
3401 the same value as the parameter of the same name.
3402 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
3404 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
3405 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
3406 emit version symbols only for the units of the library.
3407 (Gen_Versions_C): Ditto.
3409 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3411 * sem_ch4.adb: Fix typo.
3413 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
3415 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3416 vector IO doesn't work at default value properly.
3418 2010-06-14 Doug Rupp <rupp@adacore.com>
3420 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3422 2010-06-14 Vincent Celier <celier@adacore.com>
3424 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3425 sources of the project if a switch -files= is used.
3427 2010-06-14 Thomas Quinot <quinot@adacore.com>
3429 * exp_attr.adb: Minor reformatting.
3431 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3433 * gnat_ugn.texi: Minor typo fixes and wording changes.
3435 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3437 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
3438 prefixed form, do not re-analyze first actual, which may need an
3439 implicit dereference.
3440 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
3441 prefixed notation, the analysis will rewrite the node, and possible
3442 errors appear in the rewritten name of the node.
3443 * sem_res.adb: If a call is ambiguous because its first parameter is
3444 an overloaded call, report list of candidates, to clarify ambiguity of
3447 2010-06-14 Doug Rupp <rupp@adacore.com>
3449 * s-auxdec-vms-alpha.adb: New package body implementing legacy
3450 VAX instructions with Asm insertions.
3451 * s-auxdec-vms_64.ads: Inline VAX queue functions
3452 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
3453 that show up only on VMS.
3454 * gcc-interface/Makefile.in: Provide translation for
3455 s-auxdec-vms-alpha.adb.
3457 2010-06-14 Olivier Hainque <hainque@adacore.com>
3459 * initialize.c (VxWorks section): Update comments.
3461 2010-06-14 Robert Dewar <dewar@adacore.com>
3463 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3465 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
3467 * init.c: Code clean up.
3469 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3471 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3472 not insert address clause in table for later validation if type of
3473 entity is generic, to prevent possible spurious errors.
3475 * sem_ch8.adb: Code clean up.
3477 2010-06-14 Ben Brosgol <brosgol@adacore.com>
3479 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3480 texi2pdf and texi2html.
3481 Document how to change scheduling properties on HP-UX.
3483 2010-06-14 Thomas Quinot <quinot@adacore.com>
3485 * g-socket.ads: Remove misleading comments.
3487 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3489 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3490 CLI_Target as this prevents proper detection of exported names
3491 duplicates when the exported language is different to CIL.
3492 (Process_Interface_Name): Add check for CIL convention exports,
3493 replacing the old one from Check_Duplicated_Export_Name.
3495 2010-06-14 Matthew Heaney <heaney@adacore.com>
3497 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3498 and new last satisfy constraints.
3499 (Delete_Last): prevent overflow for subtraction of index values
3500 (To_Vector): prevent overflow for addition of index values
3502 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3504 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3505 rewritten call, preserve the resulting type to prevent spurious errors,
3506 when the call is implicitly dereferenced in the context of an in-out
3509 * checks.adb (Apply_Discriminant_Check): If the target of the
3510 assignment is a renaming of a heap object, create constrained type for
3513 2010-06-14 Pascal Obry <obry@adacore.com>
3515 * prj-proc.adb: Fix copy of object directory for extending projects.
3517 2010-06-14 Jose Ruiz <ruiz@adacore.com>
3519 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3520 (__gnat_install_handler, PowerPC linux): Activate the alternative
3523 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
3525 * gnat_rm.texi: Move to GFDL version 1.3.
3526 * gnat-style.texi: Ditto.
3527 * gnat_ugn.texi: Ditto.
3529 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
3532 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3535 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
3537 * gcc-interface/utils.c (update_pointer_to): Initialize last.
3539 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3541 * gcc-interface/ada-tree.h: Fix formatting nits.
3543 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3545 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3547 (init_dummy_type): Likewise.
3548 (gnat_pushlevel): Likewise.
3550 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3551 (Subprogram_Body_to_gnu): Likewise.
3552 (Compilation_Unit_to_gnu): Likewise.
3553 (start_stmt_group): Likewise.
3554 (extract_encoding): Likewise.
3555 (decode_name): Likewise.
3557 * gcc-interface/misc.c (gnat_printable_name): Likewise.
3559 * gcc-interface/decl.c (annotate_value): Likewise.
3561 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3563 (struct lang_decl): Likewise.
3564 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3565 (SET_DECL_LANG_SPECIFIC): Likewise.
3567 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
3569 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3570 * gcc-interface/lang-specs.h: Likewise.
3572 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3575 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3577 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3579 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3581 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3583 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3584 TYPE_DECL of the equivalent type instead of building a new one.
3586 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3588 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3589 Fix nits in comments.
3590 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3591 * gcc-interface/trans.c (gigi): Likewise.
3592 (Attribute_to_gnu): Likewise.
3593 (Case_Statement_to_gnu): Likewise.
3594 (gnat_to_gnu): Adjust warning message.
3595 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3596 (build_vms_descriptor32): Likewise.
3598 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3600 * gcc-interface/decl.c: Pretend to be a backend file by undefining
3601 IN_GCC_FRONTEND (still need rtl.h here).
3603 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3605 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3606 (gigi): Adjust call to set_stack_check_libfunc.
3608 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3610 * gcc-interface/utils.c: Do not include rtl.h.
3612 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3614 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3615 and gimple.h. Explain why rtl.h has to be included.
3616 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3617 * gcc-interface/targtyps.c: Do not include tm_p.h
3618 * gcc-interface/utils2.c: Do not include flags.h.
3619 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
3620 and explain why it has to be included.
3621 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3623 Include function.h and explain why. Explain why except.h is included.
3624 (enumerate_modes): Remove unused function.
3625 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3626 * gcc-interface/Make-lang.in: Update dependencies.
3628 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3630 * gcc-interface/misc.c (internal_error_function): Add context
3631 parameter. Use it to access show_column flag and instead of using
3632 global_dc. Call warn_if_plugins.
3633 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3635 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3637 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3638 * gcc-interface/trans.c (unshare_save_expr): Delete.
3639 (gigi): Do not unshare trees under SAVE_EXPRs here.
3641 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3643 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3645 * gcc-interface/utils.c (build_function_stub): Likewise.
3647 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3649 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3650 for Wuninitialized without -O.
3652 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3654 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3655 ADT_exception_data_name_id.
3656 (exception_data_name_id): New define.
3657 * gcc-interface/trans.c (gigi): Initialize it.
3658 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3659 exception type for standard exception definitions. Do not make them
3661 <E_Record_Type>: Equate fields of types associated with an exception
3662 definition to those of the standard exception type.
3664 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3666 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3668 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3670 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3671 code, improve comments and fix formatting nits.
3673 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3675 * gcc-interface/utils.c (update_pointer_to): Return early if the old
3676 pointer already points to the new type. Chain the old pointer and its
3677 variants at the end of new pointer's chain after updating them.
3679 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
3681 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3682 built for interfaces.
3683 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3684 imported_p instead of Is_Imported when considering constants.
3685 Do not promote alignment of exported objects.
3686 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3688 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3690 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3691 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3692 constants really constant.
3693 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3695 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3697 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3699 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3701 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3702 expressions of variant part of record types declared at library level.
3704 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3706 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3707 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3708 (rest_of_record_type_compilation): Adjust call to create_field_decl.
3709 (make_descriptor_field): Likewise and pass correctly typed constants.
3710 (build_unc_object_type): Likewise.
3711 (unchecked_convert): Likewise.
3712 * gcc-interface/decl.c (elaborate_expression_2): New static function.
3713 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3714 Adjust call to create_field_decl.
3715 (make_aligning_type): Likewise.
3716 (make_packable_type): Likewise.
3717 (maybe_pad_type): Likewise.
3718 (gnat_to_gnu_field): Likewise.
3719 (components_to_record): Likewise.
3720 (create_field_decl_from): Likewise.
3721 (create_variant_part_from): Remove superfluous test.
3722 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3724 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3726 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3727 (build_unc_object_type_from_ptr): Likewise.
3728 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3729 and pass it to create_type_decl. Declare the type. Simplify.
3730 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3731 it to build_unc_object_type.
3732 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3733 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3734 (gnat_to_gnu): Likewise.
3735 * gcc-interface/utils2.c (build_allocator): Likewise.
3737 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3740 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3742 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3744 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3746 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3749 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3751 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3753 * gnathtml.pl: Use 755 as mask for new directories.
3755 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3757 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3758 constant constructors before taking their address.
3760 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3762 * exp_dbug.ads: Fix outdated description. Mention link between XVS
3764 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3765 XVZ variable as unit size of XVS type.
3766 (maybe_pad_type): Likewise.
3768 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3770 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3771 use memmove if the array type is bit-packed.
3773 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3775 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3776 build_common_tree_nodes.
3778 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3780 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3782 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3784 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3787 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3789 * uintp.h (UI_Lt): Declare.
3790 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3791 computation in sizetype.
3792 <E_Array_Subtype>: Use unified handling for all index types. Do not
3793 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
3795 (annotate_value): Change test for negative values.
3796 (validate_size): Apply test for negative values on GNAT nodes.
3797 (set_rm_size): Likewise.
3798 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3799 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3800 for negative values.
3801 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3802 (builtin_type_for_size): Adjust definition of signed_size_type_node.
3803 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3804 lengths against zero.
3806 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3808 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3809 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3810 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
3811 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3812 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3813 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3815 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3816 flag_signed_char. Tag sizetype with "size_type" moniker.
3817 * gcc-interface/trans.c (gigi): Add standard_character parameter.
3818 Remove useless built-in types. Equate unsigned_char_type_node to
3819 Standard.Character. Use it instead of char_type_node throughout.
3820 (Attribute_to_gnu): Likewise.
3821 (gnat_to_gnu): Likewise.
3822 * gcc-interface/utils2.c (build_call_raise): Likewise.
3824 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3826 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3827 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3828 (sbitsize_one_node): New macro.
3829 (sbitsize_unit_node): Likewise.
3830 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3831 latent bug in the computation of subrange_p. Fold wider_p predicate.
3832 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3833 the final comparison.
3834 (make_aligning_type): Build real negation and use sizetype throughout
3835 the offset computation.
3836 (maybe_pad_type): Do not issue the warning when the new size expression
3838 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3839 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3841 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3843 (gnat_to_gnu) <N_Free_Statement>: Likewise.
3844 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3845 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3846 constants in sizetype. Remove dead code and tweak comments. Generate
3847 equality instead of inequality comparisons for zero length tests.
3849 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3851 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3852 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3853 <object>: Do not create the fake PARM_DECL if no debug info is needed.
3854 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3855 purposes if no debug info is needed.
3856 Fix formatting. Reorder and add comments.
3857 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3858 variable and remove obsolete comment.
3859 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3860 (convert_vms_descriptor32): Likewise.
3861 (convert): Remove dead code.
3862 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3863 the reference to the P_ARRAY pointer.
3864 <POINTER_TYPE>: Likewise.
3865 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3866 (gnat_init_decl_processing): Delete, move contents to...
3867 * gcc-interface/misc.c (gnat_init): ...here.
3869 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3871 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3872 calls. Return true for conversion from a record subtype to its type.
3874 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3876 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3877 lieu of integer_type_node for boolean operations.
3878 (choices_to_gnu): Likewise.
3879 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3880 (Loop_Statement_to_gnu): Likewise.
3881 (establish_gnat_vms_condition_handler): Likewise.
3882 (Exception_Handler_to_gnu_sjlj): Likewise.
3883 (gnat_to_gnu): Likewise.
3884 (build_unary_op_trapv): Likewise.
3885 (build_binary_op_trapv): Likewise.
3886 (emit_range_check): Likewise.
3887 (emit_index_check): Likewise.
3888 (convert_with_check): Likewise.
3889 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3890 (convert_vms_descriptor32): Likewise.
3891 (convert_vms_descriptor): Likewise.
3892 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3893 (compare_arrays): Use boolean instead of integer constants.
3894 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3895 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
3897 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3898 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3899 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3900 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3901 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3902 for boolean operations.
3903 (fill_vms_descriptor): Likewise. Fix formatting nits.
3905 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3907 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3908 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3910 (LOOP_STMT_COND): ...this.
3911 (LOOP_STMT_BOTTOM_COND_P): New flag.
3912 (LOOP_STMT_TOP_UPDATE_P): Likewise.
3913 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3914 (can_equal_min_val_p): New static inline function.
3915 (can_equal_max_val_p): Likewise.
3916 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3917 new LOOP_STMT semantics. Use two different strategies depending on
3918 whether optimization is enabled to translate the loop.
3919 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3921 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3923 * uintp.adb (UI_From_Dint): Remove useless code.
3924 (UI_From_Int): Likewise.
3925 * uintp.h: Reorder declarations.
3926 (UI_From_gnu): Declare.
3927 (UI_Base): Likewise.
3928 (Vector_Template): Likewise.
3929 (Vector_To_Uint): Likewise.
3932 * gcc-interface/gigi.h: Tweak comments.
3933 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3934 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3936 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3937 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3938 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3939 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3942 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3944 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3946 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3947 (smaller_form_type_p): ...this. Change parameter and variable names.
3948 (call_to_gnu): Use the nominal type of the parameter to create the
3949 temporary if it's a smaller form of the actual type.
3950 (addressable_p): Return false if the actual type is integral and its
3951 size is greater than that of the expected type.
3953 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3955 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3956 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3957 (process_attributes): Delete.
3958 (post_error_ne_num): Change parameter name.
3959 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3960 with -g3. Remove a couple of obsolete lines. Minor tweaks.
3961 If type annotating mode, operate on trees to compute the adjustment to
3962 the sizes of tagged types. Fix long line.
3963 (cannot_be_superflat_p): Tweak head comment.
3964 (annotate_value): Fold local constant.
3965 (set_rm_size): Fix long line.
3966 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3967 (Attribute_to_gnu): Fix long line.
3968 <Attr_Size>: Remove useless assertion.
3969 Reorder statements. Use size_binop routine.
3970 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3971 Create local variables for the label and the test. Tweak comments.
3972 (Subprogram_Body_to_gnu): Reset cfun to NULL.
3973 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3974 (process_inlined_subprograms): Integrate into...
3975 (Compilation_Unit_to_gnu): ...this.
3976 (gnat_to_gnu): Fix long line.
3977 (post_error_ne_num): Change parameter name.
3978 * gcc-interface/utils.c (process_attributes): Static-ify.
3979 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3980 (create_type_decl): Add comment.
3981 (create_var_decl_1): Process the attributes after adding the VAR_DECL
3982 to the current binding level.
3983 (create_subprog_decl): Likewise for the FUNCTION_DECL.
3984 (end_subprog_body): Do not reset cfun to NULL.
3985 (build_vms_descriptor32): Fix long line.
3986 (build_vms_descriptor): Likewise.
3987 (handle_nonnull_attribute): Likewise.
3988 (convert_vms_descriptor64): Likewise.
3989 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3990 (gnat_protect_expr): Fix thinko.
3992 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3994 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3995 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3996 before translating the top-level node.
3997 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3998 <N_Object_Declaration>: Likewise.
3999 <N_Assignment_Statement>: Likewise.
4000 <N_Unchecked_Type_Conversion>: Likewise.
4001 (call_to_gnu): Remove kludge.
4002 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
4003 associated with user returns to be preserved.
4004 (gnat_to_gnu): Add special code to deal with boolean rvalues.
4005 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
4007 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
4008 <INDIRECT_REF>: Call build_fold_indirect_ref.
4010 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
4012 * g-socket.adb: A target can have multiple missing errno's. This
4013 will result in multiple errno's being defined as -1. Because of this
4014 we can not use a case but must use a series of if's to avoid
4015 a duplicate case error in GNAT.Sockets.Resolve_Error.
4017 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4019 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
4020 a statement. Otherwise, if at top-level, push the processing of the
4021 elaboration routine. In the misaligned case, issue the error messages
4022 again on entry and create the temporary explicitly. Do not issue them
4024 For a function call, emit the range check if necessary.
4025 In the copy-in copy-out case, create the temporary for the return
4027 Do not unnecessarily convert by-ref parameters to the formal's type.
4028 Remove obsolete guards in conditions.
4029 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
4030 target to call_to_gnu in all cases.
4031 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
4032 (addressable_p) <CONSTRUCTOR>: Return false if not static.
4033 <COMPOUND_EXPR>: New case.
4034 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
4035 expression if it has unconstrained array type.
4036 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
4037 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
4040 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4042 * gcc-interface/trans.c (gigi): Do not start statement group.
4043 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
4044 Start statement group and push binding level here...
4045 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
4046 Do not push fake contexts at top level. Remove redundant code.
4047 (call_to_gnu): Rename a local variable and constify another.
4048 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
4049 (set_current_block_context): Set it as the group's block.
4050 (gnat_init_decl_processing): Delete unrelated init code.
4051 (end_subprog_body): Use NULL_TREE.
4053 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4055 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
4056 side-effects of actual parameters before the call.
4058 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4060 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
4062 (set_rm_size): Reorder and remove obsolete test.
4064 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
4066 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
4067 (gigi): Adjust ATTRIBUTE_UNUSED markers.
4068 * gcc-interface/gadaint.h: New file.
4069 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
4070 (__gnat_to_canonical_file_spec): Remove declaration.
4071 (number_names): Delete.
4072 (number_files): Likewise.
4074 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
4077 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
4079 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
4081 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
4082 Ekind. Return early for class-wide types. Do not compute initializer
4083 unless necessary. Reuse the tree for an associated class-wide type
4084 only if processing its root type.
4086 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
4088 * gsocket.h: Run-time can no longer be built without network
4089 OS headers available. Changing RTEMS GNAT build procedure to
4090 reflect this and letting run-time build use network .h files.
4092 2010-04-13 Duncan Sands <baldrick@free.fr>
4094 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
4095 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
4097 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4099 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
4100 (parent_name_id): New macro.
4101 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
4102 * gcc-interface/trans.c (gigi): Initialize it.
4103 (lvalue_required_p) <N_Type_Conversion>: New case.
4104 <N_Qualified_Expression>: Likewise.
4105 <N_Allocator>: Likewise.
4106 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
4108 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4110 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
4111 (DECL_CONST_ADDRESS_P): New macro.
4112 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
4113 (SAME_FIELD_P): Likewise.
4114 * gcc-interface/decl.c (constructor_address_p): New static function.
4115 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
4116 the return value of above function.
4117 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
4118 passed by reference.
4119 <E_Record_Subtype>: Likewise.
4120 Set TREE_ADDRESSABLE on the type if it passed by reference.
4121 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
4122 (create_field_decl_from): Likewise.
4123 (substitute_in_type): Likewise.
4124 (purpose_member_field): Use SAME_FIELD_P.
4125 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
4126 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
4127 parameter and adjust recursive calls.
4128 <N_Explicit_Dereference>: New case.
4129 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
4130 Adjust calls to lvalue_required_p. Do not return the initializer of a
4131 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
4132 (call_to_gnu): Delay issuing error message for a misaligned actual and
4133 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
4134 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
4135 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
4136 type is passed by reference.
4137 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
4138 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
4139 (build_simple_component_ref): Use SAME_FIELD_P.
4141 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
4143 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
4144 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
4145 front-end's predicate Is_By_Reference_Type. Use consistent order and
4146 remove ??? comment. Use original conversion in all cases, if any.
4147 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
4148 (convert): Use local copy in more cases.
4149 <INDIRECT_REF>: Remove deactivated code.
4150 (unchecked_convert): Use a couple of local copies.
4152 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4154 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
4156 (lvalue_required_p) <N_Attribute_Reference>: Call it.
4157 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
4158 folding the result only if lvalue_required_for_attribute_p is true.
4159 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
4160 typed constant to build_component_ref.
4161 (unchecked_convert): Likewise.
4162 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
4163 (build_allocator): Likewise.
4165 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4167 * gcc-interface/utils2.c (build_cond_expr): Take the address and
4168 dereference if the result type is passed by reference.
4170 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4172 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
4173 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
4174 goto to the next statement.
4176 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4178 * gcc-interface/gigi.h (maybe_variable): Delete.
4179 (protect_multiple_eval): Likewise.
4180 (maybe_stabilize_reference): Likewise.
4181 (gnat_save_expr): Declare.
4182 (gnat_protect_expr): Likewise.
4183 (gnat_stabilize_reference): Likewise.
4184 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
4185 gnat_stabilize_reference.
4186 (maybe_variable): Delete.
4187 (elaborate_expression_1): Use gnat_save_expr.
4188 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
4189 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
4190 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
4191 <N_Slice>: Use gnat_protect_exp.
4192 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
4193 <N_In>: Use gnat_protect_expr.
4194 Pass NULL to gnat_stabilize_reference.
4195 (build_unary_op_trapv): Use gnat_protect_expr.
4196 (build_binary_op_trapv): Likewise.
4197 (emit_range_check): Likewise.
4198 (emit_index_check): Likewise.
4199 (convert_with_check): Likewise.
4200 (protect_multiple_eval): Move to utils2.c file.
4201 (maybe_stabilize_reference): Merge into...
4202 (gnat_stabilize_reference): ...this. Move to utils2.c file.
4203 (gnat_stabilize_reference_1): Likewise.
4204 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
4205 instead of protect_multiple_eval.
4206 * gcc-interface/utils2.c (compare_arrays): Likewise.
4207 (nonbinary_modular_operation): Likewise.
4208 (maybe_wrap_malloc): Likewise.
4209 (build_allocator): Likewise.
4210 (gnat_save_expr): New function.
4211 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
4212 in common cases. Propagate TREE_READONLY onto dereferences.
4213 (gnat_stabilize_reference_1): Move from trans.c file.
4214 (gnat_stabilize_reference): Likewise.
4216 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4218 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
4219 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
4220 node. Use the type of the operand to set TREE_READONLY.
4221 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
4222 _REF node. Do not overwrite TREE_READONLY.
4223 (call_to_gnu): Rename local variable and fix various nits. In the
4224 copy-in/copy-out case, build the SAVE_EXPR manually.
4225 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
4226 and fold the computations.
4227 (protect_multiple_eval): Always save entire fat pointers.
4228 (maybe_stabilize_reference): Minor tweaks.
4229 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
4230 tcc_type and tcc_statement.
4231 * gcc-interface/utils.c (convert_to_fat_pointer): Call
4232 protect_multiple_eval in lieu of save_expr.
4233 (convert): Minor tweaks.
4234 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
4235 (builtin_type_for_size): Call gnat_type_for_size directly.
4236 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
4237 (contains_null_expr): Likewise
4238 (gnat_build_constructor): Do not call it.
4239 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
4240 instead of gnat_stabilize_reference to protect the operands.
4241 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
4243 (maybe_wrap_malloc): Likewise.
4244 (build_allocator): Likewise.
4245 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
4246 (gnat_mark_addressable): Rename parameter.
4248 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4250 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
4251 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
4252 (TYPE_RETURNS_BY_REF_P): Rename into.
4253 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
4254 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
4255 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
4256 (build_return_expr): Likewise.
4257 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
4258 Rename local variables. If the return Mechanism is By_Reference, pass
4259 return_by_invisible_ref_p to create_subprog_type instead of toggling
4260 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
4261 the mechanism. Use regular return for contrained types with non-static
4262 size and return by invisible reference for unconstrained return types
4263 with default discriminants. Update comment.
4264 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
4265 returns by invisible reference, turn the RESULT_DECL into a pointer.
4266 Do not handle DECL_BY_REF_P in the CICO case here.
4267 (call_to_gnu): Remove code handling return by target pointer. For a
4268 function call, if the return type has non-constant size, generate the
4269 assignment with an INIT_EXPR.
4270 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
4271 If the function returns by invisible reference, build the copy return
4273 (add_decl_expr): Initialize the variable with an INIT_EXPR.
4274 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
4275 Adjust for renaming of macros. Copy the node only when necessary.
4276 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
4277 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
4278 (convert_from_reference): Delete.
4279 (is_byref_result): Likewise.
4280 (gnat_genericize_r): Likewise.
4281 (gnat_genericize): Likewise.
4282 (end_subprog_body): Do not call gnat_genericize.
4283 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
4284 (build_return_expr): Adjust parameter names, logic and comment.
4286 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4288 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
4289 if the size is small enough. Propagate the alignment if there is an
4290 alignment clause on the original array type.
4291 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4292 Deal with under-aligned packed array types. Copy the size onto the
4293 justified modular type and don't lay it out again. Likewise for the
4294 padding type built for other under-aligned subtypes.
4295 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
4298 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4300 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
4301 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
4303 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4305 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
4306 do not set the result type if there is a specified target and do not
4307 convert the result in any cases.
4308 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
4309 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
4311 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
4313 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4315 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
4318 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
4319 pointer base types are variant of each other. Apply special treatment
4320 for null to fat pointer types in all cases.
4322 2010-01-28 Pascal Obry <obry@adacore.com>
4324 * s-win32.ads: Add some missing constants.
4326 2010-01-28 Vincent Celier <celier@adacore.com>
4328 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
4331 2010-01-28 Robert Dewar <dewar@adacore.com>
4333 * gnat_rm.texi: Minor correction
4335 2010-01-27 Pascal Obry <obry@adacore.com>
4337 * g-awk.adb: ensure that an AWK session is reusable.
4339 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
4341 * g-regist.adb (For_Every_Key): Fix previous change.
4344 2010-01-27 Thomas Quinot <quinot@adacore.com>
4346 * lib-writ.ads: Current version of spec for new N (note) ALI lines
4348 2010-01-27 Yannick Moy <moy@adacore.com>
4350 * a-cdlili.adb (Insert): Correct exception message when cursor
4351 designates wrong list.
4353 2010-01-27 Vincent Celier <celier@adacore.com>
4355 * gnatcmd.adb: When there is only one main specified, the package
4356 support Switches (<main>) and attribute Switches is specified for the
4357 main, use these switches, instead of Default_Switches ("Ada").
4359 2010-01-27 Robert Dewar <dewar@adacore.com>
4361 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4363 * exp_disp.adb: Minor reformatting
4365 2010-01-27 Tristan Gingold <gingold@adacore.com>
4367 * seh_init.c: Use __ImageBase instead of _ImageBase.
4369 2010-01-27 Javier Miranda <miranda@adacore.com>
4371 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
4372 profile of interface thunks. The type of the controlling formal is now
4373 the covered interface type (instead of the target tagged type).
4375 2010-01-27 Sergey Rybin <rybin@adacore.com>
4377 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4379 2010-01-27 Robert Dewar <dewar@adacore.com>
4381 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4382 changed from Expr to N.
4384 2010-01-26 Thomas Quinot <quinot@adacore.com>
4386 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4387 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4390 2010-01-26 Vincent Celier <celier@adacore.com>
4392 * prj-attr.adb: Add new attribute Library_Install_Name_Option
4393 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
4394 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4395 attributes Run_Path_Option and Library_Install_Name_Option.
4396 * prj.ads (Project_Configuration): Replace component
4397 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
4398 component Library_Install_Name_Option.
4399 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
4400 Replace Run_Path_Origin_Supported with Run_Path_Origin
4402 2010-01-26 Ed Schonberg <schonberg@adacore.com>
4404 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
4405 is not hidden by a homograph declared in another actual package.
4407 2010-01-26 Robert Dewar <dewar@adacore.com>
4409 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4410 decisions for pragmas Assert, Check, Precondition, Postcondition if
4412 * scos.ads: Update comments.
4413 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
4414 Also remove obsolete code for CT (exit point) SCOs.
4416 2010-01-26 Thomas Quinot <quinot@adacore.com>
4418 * switch-c.adb: Fix handling of -gnatz*
4420 2010-01-26 Robert Dewar <dewar@adacore.com>
4422 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
4423 qualifiers for FOR/WHILE loops
4424 * scos.ads: Use separate type letters F/W for for/while loops
4426 2010-01-26 Robert Dewar <dewar@adacore.com>
4428 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
4429 entries per line, one for each statement in the sequence).
4430 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
4431 size from 100 to 10_000 for SC_Array to avoid any real possibility of
4432 overflow. Output decisions in for loops.
4433 Exclude labels from CS lines.
4434 * scos.ads: Clarify that label is not included in the entry point
4436 2010-01-26 Robert Dewar <dewar@adacore.com>
4438 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
4439 format of statement sequence SCO entries (one location/statement).
4440 * put_scos.adb (Put_SCOs): Implement new format of CS lines
4441 * scos.ads: Update comments.
4442 * sem_eval.adb: Minor reformatting.
4444 2010-01-26 Robert Dewar <dewar@adacore.com>
4446 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
4447 (Extend_Statement_Sequence): New procedures
4448 (Traverse_Declarations_Or_Statements): New handling for exits.
4450 2010-01-26 Robert Dewar <dewar@adacore.com>
4452 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4455 2010-01-26 Robert Dewar <dewar@adacore.com>
4457 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4458 * scos.ads: Clarify handling of logical operators
4460 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4462 * s-tpoben.adb: Update comments.
4464 2010-01-26 Robert Dewar <dewar@adacore.com>
4466 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4469 2010-01-26 Robert Dewar <dewar@adacore.com>
4471 * scos.ads: Clean up documentation, remove obsolete XOR references
4472 2010-01-26 Vincent Celier <celier@adacore.com>
4474 * gnat_ugn.texi: Complete documentation on the restrictions for
4475 combined options in -gnatxxx switches.
4478 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4480 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4481 a controlled operation, abort is already deferred at this point, so we
4482 need to use Defer_Abort_Nestable.
4484 2010-01-26 Vincent Celier <celier@adacore.com>
4486 * prj-conf.adb (Get_Config_Switches): Check for a default language for
4487 a project extending a project with no languages.
4489 2010-01-26 Vincent Celier <celier@adacore.com>
4491 * switch-c.adb (Scan_Front_End_Switches): Take into account options
4492 that follow -gnatef.
4493 Allow -gnateG to be followed by other options.
4495 2010-01-26 Robert Dewar <dewar@adacore.com>
4497 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4498 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4501 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
4503 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4504 that allows to iterate over all subkeys of a key.
4506 2010-01-26 Ed Falis <falis@adacore.com>
4508 * sysdep.c: enable NFS for VxWorks MILS
4509 * env.c: enable __gnat_environ for VxWorks MILS
4510 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4512 2010-01-25 Bob Duff <duff@adacore.com>
4514 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4515 is an internally-generated positional aggregate, and the bounds are
4516 already correctly set. We don't want to overwrite those bounds with
4517 bounds determined by context.
4519 2010-01-25 Robert Dewar <dewar@adacore.com>
4521 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4522 exp_ch9.adb, g-sechas.ads: Minor reformatting.
4524 2010-01-25 Thomas Quinot <quinot@adacore.com>
4526 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4527 integer type) before subtracting 1, otherwise the computation may wrap
4528 (because size_t is modular) and cause the conversion to fail.
4530 2010-01-25 Ed Falis <falis@adacore.com>
4532 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4534 2010-01-25 Vincent Celier <celier@adacore.com>
4536 * prj-attr.adb: New attribute Run_Path_Origin_Required
4537 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4538 attribute Run_Path_Origin_Required.
4539 * prj.ads (Project_Configuration): New component
4540 Run_Path_Origin_Supported.
4541 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4543 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4545 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4546 have errors, do not continue resolution of the aggregate.
4547 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4548 the array type indicates an error.
4550 2010-01-25 Bob Duff <duff@adacore.com>
4552 * sinfo.ads: Minor comment fixes.
4554 2010-01-25 Bob Duff <duff@adacore.com>
4556 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4558 2010-01-25 Arnaud Charlet <charlet@adacore.com>
4560 * gnatvsn.ads (Current_Year): Update.
4562 2010-01-25 Florian Villoing <villoing@adacore.com>
4564 * gnat_ugn.texi: Fix typo.
4566 2010-01-25 Thomas Quinot <quinot@adacore.com>
4568 * scos.ads: Update specification.
4570 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4572 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4573 enclosing subprogram has no previous spec, attach postcondition
4574 procedure to the defining entity for the body.
4576 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4578 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4579 initialization procedure of the ancestor part of an extension aggregate
4580 if it is an interface type.
4582 2010-01-25 Vincent Celier <celier@adacore.com>
4584 * gnatlink.adb (Process_Binder_File): The directory for the shared
4585 version of libgcc in the run path options is found in the subdirectory
4586 indicated by __gnat_default_libgcc_subdir.
4587 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4590 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4592 * sem_prag.adb: More flexible pragma Annotate.
4594 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
4596 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4597 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4599 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
4601 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4603 2010-01-18 Jan Hubicka <jh@suse.cz>
4606 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4607 unit local variables.
4609 2010-01-17 Laurent GUERBY <laurent@guerby.net>
4611 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4613 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
4615 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4616 * system-linux-armeb.ads, system-linux-armel.ads: New files.
4618 2010-01-09 Simon Wright <simon@pushface.org>
4621 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4626 Copyright (C) 2010 Free Software Foundation, Inc.
4628 Copying and distribution of this file, with or without modification,
4629 are permitted in any medium without royalty provided the copyright
4630 notice and this notice are preserved.