1 2010-08-05 Gary Dismukes <dismukes@adacore.com>
3 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
4 nested access type whose designated type has tasks or is a protected
5 object when the restrictions No_Task_Hierarchy or
6 No_Local_Protected_Objects apply. Add ??? comment.
7 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
8 type is not a library-level type and No_Local_Protected_Objects applies.
9 (Analyze_Task_Type): Give a warning when a task type is not a
10 library-level type and No_Task_Hierarchy applies.
12 2010-08-05 Arnaud Charlet <charlet@adacore.com>
14 * sem.adb: Minor reformatting
15 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
18 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
20 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
22 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
23 for the debug-only entity.
24 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
26 2010-08-03 Joseph Myers <joseph@codesourcery.com>
28 * gcc-interface/lang-specs.h: Don't pass -a options.
30 2010-07-28 Joseph Myers <joseph@codesourcery.com>
32 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
33 options. Check canonical_option_num_elements on options copied.
35 2010-07-27 Joseph Myers <joseph@codesourcery.com>
37 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
38 return value type. Don't check for missing arguments here.
40 2010-07-27 Joseph Myers <joseph@codesourcery.com>
42 * gcc-interface/misc.c (gnat_option_lang_mask): New.
43 (gnat_init_options): Update prototype. Reconstruct argv array
46 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
48 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
49 case, merge the alias set of the old pointer type.
51 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
53 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
54 and recurse only for multidimensional array types instead.
56 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
59 * gcc-interface/utils.c (convert): Fix thinko in test.
60 (unchecked_convert): When converting from a scalar type to a type with
61 a different size, pad to have the same size on both sides.
63 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
65 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
66 equality for the component type of array types.
68 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
70 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
71 * gcc-interface/trans.c: Likewise.
72 * gcc-interface/utils.c: Likewise.
73 * gcc-interface/utils2.c: Likewise.
75 2010-07-13 Laurent GUERBY <laurent@guerby.net>
78 * gcc-interface/targtyps.c: Include tm_p.h.
79 * gcc-interface/Make-lang.in: Update dependencies.
81 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
83 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
86 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
88 * gcc-interface/utils.c: Include diagnostic-core.h in every file
89 that includes toplev.h.
91 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
93 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
94 Branch to common code handling the alignment of discrete types.
95 <E_Signed_Integer_Type>: Likewise.
96 <E_Modular_Integer_Type>: Likewise.
98 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
100 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
101 (gnat_handle_option): Allocate only one element for gnat_argv.
102 (gnat_init): Do not populate gnat_argv.
104 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
106 * gcc-interface/trans.c: Do not include tree-flow.h.
107 * gcc-interface/Make-lang.in: Adjust dependencies.
109 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
111 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
112 of a TREE_LIST. Update comment.
113 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
114 Adjust call to gnat_build_constructor.
115 (Attribute_to_gnu): Likewise.
116 (gnat_to_gnu): Likewise.
117 (pos_to_constructor): Likewise.
118 (extract_values): Likewise.
119 * gcc-interface/utils.c (build_template): Likewise.
120 (convert_vms_descriptor64): Likewise.
121 (convert_vms_descriptor32): Likewise.
122 (convert_to_fat_pointer): Likewise.
124 (unchecked_convert): Likewise.
125 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
126 * gcc-interface/utils2.c (build_allocator): Likewise.
127 (fill_vms_descriptor): Likewise.
128 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
129 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
130 instead of TREE_LISTs.
132 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
134 * gcc-interface/misc.c: Do not include except.h.
135 * gcc-interface/Make-lang.in: Update dependencies.
137 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
139 * gcc-interface/trans.c: Include tree-flow.h.
140 (gnu_switch_label_stack): Delete.
141 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
142 its associated block cannot fall through. Do not emit the final label
143 if no cases branch to it.
144 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
146 2010-06-23 Thomas Quinot <quinot@adacore.com>
148 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
149 reference to a protected subprogram outside of the protected's scope,
150 ensure the corresponding external subprogram is frozen before the
153 2010-06-23 Ed Schonberg <schonberg@adacore.com>
155 * sem_prag.adb: Fix typo in error message.
156 * sem.adb: Refine previous change.
158 2010-06-23 Robert Dewar <dewar@adacore.com>
160 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
161 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
162 Implement Ada 2012 string encoding packages.
164 2010-06-23 Arnaud Charlet <charlet@adacore.com>
166 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
167 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
168 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
169 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
171 * gcc-interface/Makefile.in: Enable use of above files.
173 2010-06-23 Ed Schonberg <schonberg@adacore.com>
175 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
176 of address clauses if if Ignore_Rep_Clauses is active.
177 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
178 remove address clause from tree so that it does not reach the backend.
180 2010-06-23 Arnaud Charlet <charlet@adacore.com>
182 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
183 expand 'Valid from user code in CodePeer mode, will be handled by the
186 2010-06-23 Bob Duff <duff@adacore.com>
188 * g-comlin.ads: Minor comment improvements.
190 2010-06-23 Ed Schonberg <schonberg@adacore.com>
192 * sem_res.adb (Uses_SS): The expression that initializes a controlled
193 component of a record type may be a user-defined operator that is
194 rewritten as a function call.
196 2010-06-23 Bob Duff <duff@adacore.com>
198 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
200 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
202 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
203 label to the new sequence of statements. Set the sloc of the raise
204 statement onto the new goto statements.
206 2010-06-23 Robert Dewar <dewar@adacore.com>
208 * a-stuten.ads, a-stuten.adb: New files.
209 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
210 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
212 2010-06-23 Robert Dewar <dewar@adacore.com>
214 * gnat_ugn.texi: Add documentation of -gnat12 switch
215 Add documentation of -gnatX switch.
217 2010-06-23 Ed Schonberg <schonberg@adacore.com>
219 * inline.ads: Include the current Ada_Version in the info for pending
220 instance bodies, so that declaration and body are compiled with the
222 * inline.adb: Move with_clause for Opt to spec.
223 * sem_ch12.adb (Analyze_Package_Instantiation,
224 Analyze_Subprogram_Instantiation): Save current Ada_Version in
225 Pending_Instantiation information.
226 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
227 Inline_Package_Body): Use the Ada_Version present in the body
230 2010-06-23 Robert Dewar <dewar@adacore.com>
232 * usage.adb: Add documentation for -gnat12 switch.
233 * errout.ads: Add VMS alias entry for -gnat12 switch
234 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
235 Add documentation for pragma Extensions_Allowed.
236 * opt.ads: Add entry for Ada 2012 mode.
237 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
239 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
241 * sem_ch13.adb: Add handling for Ada 2012 mode.
242 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
243 * switch-c.adb: Add handling for -gnat12 switch.
244 Implement -gnat2005 and -gnat2012.
245 * usage.adb: Add documentation for -gnat12 switch.
246 * vms_data.ads: Add /12 switch for Ada 2012 mode.
248 2010-06-23 Arnaud Charlet <charlet@adacore.com>
250 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
251 No_Task_Hierarchy restriction. Add comment.
252 * exp_ch9.adb, exp_ch3.adb: Update comments.
254 2010-06-23 Robert Dewar <dewar@adacore.com>
256 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
257 * sem_res.adb: Add comments.
258 * sem_util.adb: Minor reformatting. Add comments.
259 Change increment on Actuals_In_Call table.
260 * opt.ads: Minor: add 'constant'.
262 2010-06-23 Javier Miranda <miranda@adacore.com>
264 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
265 TSD to Null_Address if No_Dispatching_Calls is active.
267 2010-06-23 Vincent Celier <celier@adacore.com>
269 * a-comlin.ads: Indicate that use of this package is not supported
270 during the elaboration of an auto-initialized Stand-Alone Library.
272 2010-06-23 Ed Schonberg <schonberg@adacore.com>
274 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
275 alignment clause on a record type to determine if a component may be
276 misaligned. The decision must be taken in the back-end where target
277 alignment information is known.
279 2010-06-23 Arnaud Charlet <charlet@adacore.com>
281 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
282 systematically in CodePeer mode to simplify generated code.
283 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
284 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
285 No_Task_Hierarchy is set instead of crasshing.
287 2010-06-23 Thomas Quinot <quinot@adacore.com>
289 * sem_util.adb: Minor code cleanup: test for proper entity instead of
290 testing just Chars attribute when checking whether a given scope is
292 * exp_ch4.adb, einfo.adb: Minor reformatting.
294 2010-06-23 Vincent Celier <celier@adacore.com>
297 * switch-m.adb (Normalize_Compiler_Switches): Take into account
298 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
299 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
301 2010-06-23 Ed Schonberg <schonberg@adacore.com>
303 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
304 operation with a universal real operand, and the right operand is a
305 range with universal bounds, find unique fixed point that may be
306 candidate, and warn appropriately.
308 2010-06-23 Ed Schonberg <schonberg@adacore.com>
310 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
311 properly the rare cases where VMS operators are visible through
312 Extend_System, but the default System is being used and Address is a
314 * sem_util.adb: Widen predicate Is_VMS_Operator.
316 2010-06-23 Vincent Celier <celier@adacore.com>
318 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
321 2010-06-23 Olivier Hainque <hainque@adacore.com>
323 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
324 Interface_Name as foreign. These are GCC builtin imports for
325 which Ada specific processing doesn't apply.
327 2010-06-23 Thomas Quinot <quinot@adacore.com>
329 * sem_ch12.adb: Minor reformatting.
331 2010-06-23 Ed Schonberg <schonberg@adacore.com>
333 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
334 determine whether an intrinsic subprogram is VMS specific.
336 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
338 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
339 is present in the entity.
341 2010-06-23 Arnaud Charlet <charlet@adacore.com>
343 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
344 Fix handling of parameters.
345 Add protection against unexpected cases.
346 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
347 access level, since "A" suffix is already used elsewhere. Similarly,
348 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
351 2010-06-23 Thomas Quinot <quinot@adacore.com>
353 * sem_util.adb, sem_util.ads: Minor reformatting.
355 2010-06-23 Vincent Celier <celier@adacore.com>
357 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
358 the previous behavior of gprclean when there are missing files.
360 2010-06-23 Ed Schonberg <schonberg@adacore.com>
362 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
363 generic body is not a fatal error.
364 (Mark_Context): Handle properly names of child units.
365 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
368 2010-06-23 Vincent Celier <celier@adacore.com>
370 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
373 2010-06-23 Bob Duff <duff@adacore.com>
375 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
376 Memory_Space, because CPU_Time doesn't seem to provide any significant
377 speed advantage in practice. Cleanup: Get rid of constant
378 Default_Optimization; doesn't seem to add anything. Use case
379 statements instead of if statements; seems cleaner.
381 2010-06-23 Olivier Hainque <hainque@adacore.com>
383 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
384 Wshadow instead of Wextra to guard warning on absence of internal
385 builtin decl for an import. Fix use of quote in warning text.
386 (intrin_arglists_compatible_p): Remove processing of integer trailing
387 args on the Ada side. Fix use of literal > in warning text.
388 (intrin_return_compatible_p): Never warn on "function imported as
389 procedure". Defer the void/void case to the common type compatibility
391 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
392 of GCC builtin imports.
394 2010-06-23 Olivier Hainque <hainque@adacore.com>
396 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
398 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
399 functions, helpers for ...
400 (intrin_profiles_compatible_p): New function, replacement for ...
401 (compatible_signatures_p): Removed.
402 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
403 attempt to bind an unregistered builtin function. When we have
404 one, use it and warn on profile incompatibilities.
406 2010-06-23 Arnaud Charlet <charlet@adacore.com>
408 * gcc-interface/Make-lang.in: Update dependencies.
410 2010-06-23 Ed Schonberg <schonberg@adacore.com>
412 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
413 for a coextension in an object declaration is a concatenation, treat
414 coextension as dynamic.
416 2010-06-23 Javier Miranda <miranda@adacore.com>
418 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
419 internal entities are added to the scope of the tagged type.
420 (Derive_Subprograms): Do not stop derivation when we find the first
421 internal entity that has attribute Interface_Alias. After the change
422 done to Override_Dispatching_Operations it is no longer true that
423 these primirives are always located at the end of the list of
425 * einfo.ads (Primitive_Operations): Add documentation.
426 * exp_disp.adb (Write_DT): Improve output adding to the name of the
427 primitive a prefix indicating its corresponding tagged type.
428 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
429 entity covers the primitive of an interface that is not an ancestor of
430 this tagged type then the new primitive is added at the end of the list
431 of primitives. Required to fulfill the C++ ABI.
433 2010-06-23 Javier Miranda <miranda@adacore.com>
435 * atree.ads (Set_Reporting_Proc): New subprogram.
436 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
437 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
438 to routines of package Scil_ll by indirect call to the registered
440 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
441 that is invoked when a node is allocated, replaced or rewritten.
442 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
443 the SCIL node. Used as argument for Set_Reporting_Proc.
444 (Initialize): Register Copy_SCIL_Node as the reporting routine that
447 2010-06-23 Thomas Quinot <quinot@adacore.com>
449 * sem_ch3.ads: Minor reformatting.
451 2010-06-23 Ed Schonberg <schonberg@adacore.com>
453 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
454 always analyze the generic body and instance, because it may be needed
456 (Mark_Context): Prepend the with clauses for needed generic units, so
457 they appear in a better order for CodePeer.
458 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
460 2010-06-23 Emmanuel Briot <briot@adacore.com>
462 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
464 2010-06-23 Robert Dewar <dewar@adacore.com>
466 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
468 2010-06-23 Thomas Quinot <quinot@adacore.com>
470 * a-tags.ads: Fix description of TSD structure.
472 2010-06-23 Ed Schonberg <schonberg@adacore.com>
474 * sem_ch12.adb (Mark_Context): When indicating that the body of a
475 generic unit is needed prior to the unit containing an instantiation,
476 search recursively the context of the generic to add other generic
477 bodies that may be instantiated indirectly through the current instance.
479 2010-06-23 Robert Dewar <dewar@adacore.com>
481 * freeze.adb: Minor reformatting.
483 2010-06-23 Bob Duff <duff@adacore.com>
485 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
487 2010-06-23 Vincent Celier <celier@adacore.com>
489 * make.adb (Compile_Sources): Complete previous change.
491 2010-06-23 Ed Schonberg <schonberg@adacore.com>
493 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
494 Constrained extra formal.
496 2010-06-23 Ed Schonberg <schonberg@adacore.com>
498 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
499 Initialize_Scalars are enabled, compile the generated equality function
500 for a composite type with full checks enabled, so that validity checks
501 are performed on individual components.
503 2010-06-23 Emmanuel Briot <briot@adacore.com>
505 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
506 Missing_Source_Files.
508 2010-06-23 Robert Dewar <dewar@adacore.com>
510 * exp_ch3.adb, exp_util.adb: Minor reformatting.
512 2010-06-23 Jose Ruiz <ruiz@adacore.com>
514 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
515 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
516 Clock (without delays) use a run time which is properly initialized.
518 2010-06-23 Vincent Celier <celier@adacore.com>
520 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
521 when -f -u and a main is specified on the command line. However,
522 attempt to compile even when the ALI file is read-only when
523 Must_Compile is True.
525 2010-06-23 Thomas Quinot <quinot@adacore.com>
527 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
529 2010-06-23 Javier Miranda <miranda@adacore.com>
531 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
532 entities for parent types that are interfaces. Needed in generics to
533 handle formals that implement interfaces.
534 (Derive_Subprograms): Add assertion for derivation of tagged types that
535 do not cover interfaces. For generics, complete code that handles
536 derivation of type that covers interfaces because the previous
537 condition was weak (it required only name consistency; arguments were
538 not checked). Add new code to locate primitives covering interfaces
539 defined in generic units or instantiatons.
540 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
541 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
542 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
543 interfaces that are parents of the type because they share the primary
545 (Register_Primitive): Do not register primitives of interfaces that
546 are parents of the type.
547 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
548 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
549 primitives skip primitives of interfaces that are parents of the type.
551 2010-06-23 Ed Schonberg <schonberg@adacore.com>
553 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
554 attribute cannot be constant-folded if an index type is a formal type,
555 or is derived from one.
556 * checks.adb (Determine_Range): ditto.
558 2010-06-23 Arnaud Charlet <charlet@adacore.com>
560 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
562 2010-06-23 Bob Duff <duff@adacore.com>
564 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
565 (Insert): Disallow nul characters.
566 (misc output routines): Assert no nul characters.
568 2010-06-23 Ed Schonberg <schonberg@adacore.com>
570 * exp_ch4.adb: Use predefined unsigned type in all cases.
572 2010-06-23 Bob Duff <duff@adacore.com>
574 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
575 * g-pehage.ads: Minor comment fixes.
576 * g-pehage.adb: Minor: Add some additional debugging printouts under
579 2010-06-23 Robert Dewar <dewar@adacore.com>
581 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
582 (Worse_Choice): Always prefer Pure/Preelab.
584 2010-06-23 Vincent Celier <celier@adacore.com>
586 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
588 2010-06-23 Robert Dewar <dewar@adacore.com>
590 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
591 checking returns in generic case.
592 (Check_Missing_Return): New procedure.
594 2010-06-23 Robert Dewar <dewar@adacore.com>
596 * bindgen.adb, switch-b.adb: Minor reformatting.
598 2010-06-23 Javier Miranda <miranda@adacore.com>
600 * frontend.adb (Frontend): Add call to initialize the new package
602 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
604 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
605 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
607 * exp_util.adb (Insert_Actions): Remove code for
608 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
609 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
610 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
611 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
612 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
613 * sinfo.ads (SCIL_Related_Node): Field removed.
614 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
615 (N_SCIL_Tag_Init): Node removed.
616 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
617 (Check_SCIL_Node): New implementation.
618 (Find_SCIL_Node): Removed.
619 * sem.adb (Analyze): Remove management of
620 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
621 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
623 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
624 Set_SCIL_Related_Node and avoid adding the SCIL node before the
625 referenced node using Insert_Action because this is not longer required.
626 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
627 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
628 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
629 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
630 because we no longer require to generate the SCIL node before the call.
631 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
632 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
633 nodes before the referenced node using Insert_Action because this
634 is not longer required.
635 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
636 update the SCIL_Node field.
637 * sprint.adb (Sprint_Node_Actual): Remove code for
638 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
639 * treepr.adb (Print_Node): Print the SCIL node field (if available).
640 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
642 * scil_ll.ads, scil_ll.adb: New files.
643 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
646 2010-06-23 Robert Dewar <dewar@adacore.com>
648 * sem_ch6.adb: Minor reformatting.
650 2010-06-23 Doug Rupp <rupp@adacore.com>
652 * bindusg.adb (Display): Write -Hnn line.
653 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
655 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
656 valid values to 32 and 64.
657 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
658 ENABLE, DISABLE as valid settings.
659 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
660 * opt.ads (Heap_Size): New global variable.
661 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
662 TARGET_MALLOC64 check. Fix comment.
664 2010-06-23 Robert Dewar <dewar@adacore.com>
666 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
667 reformatting. Add comments.
668 * errout.adb (Finalize): Properly adjust warning count when deleting
671 2010-06-22 Robert Dewar <dewar@adacore.com>
673 * errout.adb (Finalize): Set Prev pointers.
674 (Finalize): Delete continuations for deletion by warnings off(str).
675 * erroutc.ads: Add Prev pointer to error message structure.
677 2010-06-22 Ed Schonberg <schonberg@adacore.com>
679 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
680 child unit, examine context of parent units to locate instantiated
681 generics whose bodies may be needed.
682 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
683 with_clause for the instantiated generic, examine the context of its
684 parents, to set Withed_Body flag, so that it can be visited earlier.
685 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
686 an unsigned type, use a type of the proper size for the intermediate
687 value, to prevent alignment problems on unchecked conversion.
689 2010-06-22 Geert Bosch <bosch@adacore.com>
691 * s-rannum.ads Change Generator type to be self-referential to allow
692 Random to update its argument. Use "in" mode for the generator in the
693 Reset procedures to allow them to be called from the Ada.Numerics
694 packages without tricks.
695 * s-rannum.adb: Use the self-referencing argument to get write access
696 to the internal state of the random generator.
697 * a-nudira.ads: Make Generator a derived type of
698 System.Random_Numbers.Generator.
699 * a-nudira.adb: Remove use of 'Unrestricted_Access.
700 Put subprograms in alpha order and add headers.
701 * g-mbdira.ads: Change Generator type to be self-referential.
702 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
704 2010-06-22 Robert Dewar <dewar@adacore.com>
706 * freeze.adb: Minor reformatting
707 Minor code reorganization (use Nkind_In and Ekind_In).
709 2010-06-22 Bob Duff <duff@adacore.com>
711 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
712 -gnatc when a file is compiled that we cannot generate code for, not
713 helpful and confusing.
715 2010-06-22 Vincent Celier <celier@adacore.com>
717 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
720 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
722 * s-rannum.adb: Replace constants with commented symbols.
723 * s-rannum.ads: Explain significance of the initial value of the data
726 2010-06-22 Ed Schonberg <schonberg@adacore.com>
728 * a-ngcoty.adb: Clarify comment.
730 2010-06-22 Gary Dismukes <dismukes@adacore.com>
732 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
733 expansion for indexing packed arrays with small power-of-2 component
734 sizes when the target is AAMP.
735 (Expand_Packed_Element_Reference): Return without expansion for
736 indexing packed arrays with small power-of-2 component sizes when the
739 2010-06-22 Geert Bosch <bosch@adacore.com>
741 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
744 2010-06-22 Robert Dewar <dewar@adacore.com>
746 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
749 2010-06-22 Doug Rupp <rupp@adacore.com>
751 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
753 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
754 (pragma Ident): Add a default ident string in the private part.
756 2010-06-22 Robert Dewar <dewar@adacore.com>
758 * cstand.adb: Minor reformatting.
760 2010-06-22 Ed Schonberg <schonberg@adacore.com>
762 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
763 recognize the Shift and Rotation intrinsics that are known to the
764 compiler but have no interface name.
766 2010-06-22 Geert Bosch <bosch@adacore.com>
768 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
769 scaling in case of overflow or NaN results.
771 2010-06-22 Robert Dewar <dewar@adacore.com>
773 * cstand.adb: Complete previous change.
774 * g-dirope.ads: Add comment.
775 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
777 2010-06-22 Ed Schonberg <schonberg@adacore.com>
779 * cstand.adb: Add tree nodes for pragma Pack on string types.
781 2010-06-22 Javier Miranda <miranda@adacore.com>
783 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
784 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
785 formal of a primitive.
786 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
787 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
788 formal of a primitive.
789 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
790 to obtain the last formal of a primitive.
792 2010-06-22 Geert Bosch <bosch@adacore.com>
794 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
795 depending on __EMX__ or MSDOS being defined.
796 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
797 * a-excpol-abort.adb: Update comment indicating users of the file.
798 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
800 * env.c: Remove empty conditional for MSDOS.
801 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
804 2010-06-22 Robert Dewar <dewar@adacore.com>
806 * s-rannum.adb: Minor reformatting.
808 2010-06-22 Javier Miranda <miranda@adacore.com>
810 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
811 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
812 package Sem_Util to package Sem_Aux.
814 2010-06-22 Javier Miranda <miranda@adacore.com>
816 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
817 remove useless restriction on imported routines when building the
820 2010-06-22 Robert Dewar <dewar@adacore.com>
822 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
825 2010-06-22 Javier Miranda <miranda@adacore.com>
827 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
828 generic subprogram declarations to ensure proper context. Add missing
829 support for generic actuals.
830 (Try_Primitive_Operation): Add missing support for concurrent types that
831 have no Corresponding_Record_Type. Required to diagnose errors compiling
832 generics or when compiling with no code generation (-gnatc).
833 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
834 the corresponding record type.
835 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
836 documentation. Do minimum decoration when processing a primitive of a
837 concurrent tagged type that covers interfaces. Required to diagnose
838 errors in the Object.Operation notation compiling generics or under
840 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
841 propagation of attribute Interface_List to the corresponding record.
842 (Expand_N_Task_Type_Declaration): Code cleanup.
843 (Expand_N_Protected_Type_Declaration): Code cleanup.
845 2010-06-22 Matthew Heaney <heaney@adacore.com>
847 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
849 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
851 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
852 that is able to produce all representable floating-point numbers in the
853 unit interval. Remove template parameter Shift_Right, no longer used.
854 * gnat_rm.texi: Document the period of the pseudo-random number
855 generator under the description of its algorithm.
856 * gcc-interface/Make-lang.in: Update dependencies.
858 2010-06-22 Thomas Quinot <quinot@adacore.com>
860 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
861 reference to discriminant (can be an expanded name as well as an
864 2010-06-22 Ed Schonberg <schonberg@adacore.com>
866 * exp_ch6.adb: Clarify comment.
868 2010-06-22 Geert Bosch <bosch@adacore.com>
870 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
871 with decimal small as decimal types, avoiding floating-point arithmetic.
872 (Has_Decimal_Small): New function.
873 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
875 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
876 callers to call the new function in Einfo that takes the entity as
879 2010-06-22 Robert Dewar <dewar@adacore.com>
881 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
883 2010-06-22 Thomas Quinot <quinot@adacore.com>
885 * sem_elab.adb: Minor reformatting.
887 2010-06-22 Vincent Celier <celier@adacore.com>
889 * gnatsym.adb: Put the object files in the table in increasing
890 aphabetical order of base names.
892 2010-06-22 Ed Schonberg <schonberg@adacore.com>
894 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
895 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
896 the corresponding discriminal within a record declaration.
898 2010-06-22 Thomas Quinot <quinot@adacore.com>
900 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
901 expression referring to a discriminal of the type of the aggregate (not
902 a discriminal of some other unrelated type), and the prefix in the
903 generated selected component must come from Lhs, not Obj.
905 2010-06-22 Thomas Quinot <quinot@adacore.com>
907 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
908 when to freeze the parent type.
910 2010-06-22 Robert Dewar <dewar@adacore.com>
912 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
913 exp_aggr.adb: Minor reformatting.
914 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
915 GNAT.MBSS_Float_Random.
916 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
918 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
920 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
921 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
922 (Random_Float_Template, Random): New method of creating
923 uniform floating-point variables that allow the creation of all machine
926 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
928 2010-06-22 Gary Dismukes <dismukes@adacore.com>
930 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
931 to abstract targets to check that the type is tagged and comes from
932 source, rather than only testing for targets of interface types. Remove
935 2010-06-22 Vincent Celier <celier@adacore.com>
937 * vms_data.ads: Modify the declarations of qualifiers
938 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
941 2010-06-22 Ed Schonberg <schonberg@adacore.com>
943 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
944 expansion is disabled.
946 2010-06-22 Robert Dewar <dewar@adacore.com>
948 * makeusg.adb: Minor reformatting.
950 2010-06-22 Robert Dewar <dewar@adacore.com>
952 * types.ads: (Dint): Removed, no longer used anywhere.
953 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
954 (UI_Mul): Avoid use of UI_From_Dint.
955 (UI_From_Dint): Removed, not used.
956 * uintp.ads (UI_From_Dint): Removed, not used.
957 (Uint_Min/Max_Simple_Mul): New constants.
959 2010-06-22 Vincent Celier <celier@adacore.com>
961 * clean.adb (Parse_Cmd_Line): Recognize switch
962 --unchecked-shared-lib-imports.
963 (Usage): Add line for switch --unchecked-shared-lib-imports
964 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
965 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
967 * switch-m.adb (Scan_Make_Switches): Recognize switch
968 --unchecked-shared-lib-imports.
969 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
970 * gnat_ugn.texi: Add documentation for new switch
971 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
973 2010-06-22 Javier Miranda <miranda@adacore.com>
975 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
976 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
977 this patch replaces duplication of code that traverses the chain of
978 aliased primitives by a call to routine Ultimate_Alias that
979 provides this functionality.
981 2010-06-22 Arnaud Charlet <charlet@adacore.com>
983 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
984 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
987 2010-06-22 Thomas Quinot <quinot@adacore.com>
989 * einfo.ads: Minor reformatting.
991 2010-06-22 Javier Miranda <miranda@adacore.com>
993 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
994 eliminated primitives.
995 (Make_DT): Avoid referencing eliminated primitives.
996 (Register_Primitive): Do not register eliminated primitives in the
997 dispatch table. Required to add this functionality when the program is
998 compiled without static dispatch tables (-gnatd.t)
1000 2010-06-22 Emmanuel Briot <briot@adacore.com>
1002 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
1003 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
1004 warnings on use of internal GNAT units.
1006 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1008 * s-taprop-vxworks.adb (Set_Priority): Update comments.
1010 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1012 * s-rannum.adb: Make stylistic change to remove mystery constant in
1013 Extract_Value. Image_Numeral_Length: new symbolic constant.
1015 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1017 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
1018 Is_Synchronized_Interface, Is_Task_Interface into computable
1019 predicates, to free three flags in entity nodes.
1020 * sem_ch3.adb: Remove setting of these flags.
1022 2010-06-22 Robert Dewar <dewar@adacore.com>
1024 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
1026 * s-taprop-vxworks.adb: Add comment for Set_Priority.
1027 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
1028 * projects.texi: Move @cindex to the left margin, since otherwise we
1029 are missing entries in the index.
1031 2010-06-22 Emmanuel Briot <briot@adacore.com>
1033 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
1034 packages from the GNAT hierarchy instead of System when possible.
1035 * gcc-interface/Make-lang.in: Update dependencies.
1037 2010-06-22 Jose Ruiz <ruiz@adacore.com>
1039 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
1040 previously in place to reorder the ready queue when a task drops its
1041 priority due to the loss of inherited priority.
1043 2010-06-22 Vincent Celier <celier@adacore.com>
1045 * projects.texi: Minor spelling error fixes.
1048 2010-06-22 Emmanuel Briot <briot@adacore.com>
1050 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1051 warnings for some with clauses.
1053 2010-06-22 Robert Dewar <dewar@adacore.com>
1055 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
1056 test to catch more cases where first subtype is the results we want.
1057 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
1058 error case, since Errout will now handle this correctly.
1059 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
1060 Update dependencies.
1062 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1064 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1065 when calling Make_Temporary.
1067 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1069 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1070 subprogram can be associated with an entry body.
1072 2010-06-22 Robert Dewar <dewar@adacore.com>
1074 * scos.ads: Add note on membership test handling.
1076 2010-06-22 Vincent Celier <celier@adacore.com>
1078 * projects.texi: Minor spelling fixes.
1081 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1083 * s-rannum.adb: Correct off-by-one error in Extract_Value.
1085 2010-06-22 Vincent Celier <celier@adacore.com>
1087 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1089 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1090 gcc command if it is too long.
1092 2010-06-22 Robert Dewar <dewar@adacore.com>
1094 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1096 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1098 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1099 calling Make_Temporary.
1101 2010-06-22 Robert Dewar <dewar@adacore.com>
1103 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1105 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1107 * sem_res.adb: Additional special-case for VMS.
1109 2010-06-22 Vincent Celier <celier@adacore.com>
1111 * gnatsym.adb: Minor comment fix.
1113 2010-06-22 Vincent Celier <celier@adacore.com>
1115 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1117 2010-06-22 Robert Dewar <dewar@adacore.com>
1119 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
1120 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
1121 Ada 95 mode as an implementation defined attribute.
1123 2010-06-22 Vincent Celier <celier@adacore.com>
1125 * bindusg.adb (Display): Update line for -R
1126 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
1127 generated files when -R is used.
1129 2010-06-22 Vincent Celier <celier@adacore.com>
1131 * prj-nmsc.adb (Lib_Data_Table): New table.
1132 (Check_Library_Attributes): Check if the same library name is used in
1133 two different projects that do not extend each other.
1135 2010-06-22 Robert Dewar <dewar@adacore.com>
1137 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1139 2010-06-22 Vincent Celier <celier@adacore.com>
1141 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1142 empty, make it the current working directory.
1144 2010-06-22 Thomas Quinot <quinot@adacore.com>
1146 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1147 private type with discriminants, make sure the parent type is frozen.
1149 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1151 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1152 with packed array references specially.
1153 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1154 to a component of a bit packed array if it is the prefix of 'Bit.
1155 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1156 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
1157 'Bit reference, where the prefix involves a packed array reference.
1158 (Get_Base_And_Bit_Offset): New helper, extracted from...
1159 (Expand_Packed_Address_Reference): ...here. Call above procedure to
1160 get the outer object and offset expression.
1162 2010-06-22 Thomas Quinot <quinot@adacore.com>
1164 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1165 * einfo.adb (Related_Expression, Set_Related_Expression): Add
1168 2010-06-22 Javier Miranda <miranda@adacore.com>
1170 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1171 reorganization to properly check if the operation has been inherited as
1172 an abstract operation.
1174 2010-06-22 Ed Falis <falis@adacore.com>
1176 * s-osinte-vxworks.ads: Complete previous change.
1178 2010-06-22 Thomas Quinot <quinot@adacore.com>
1180 * sem_res.adb: Add comment.
1181 * projects.texi, gnat_ugn.texi: Remove macro.
1183 2010-06-22 Vincent Celier <celier@adacore.com>
1185 * prj-attr.adb: Remove project level attribute Main_Language.
1187 2010-06-22 Robert Dewar <dewar@adacore.com>
1189 * switch-b.adb, osint-b.adb: Minor reformatting.
1191 2010-06-22 Pascal Obry <obry@adacore.com>
1193 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1194 vector if previous send was not fully successful. If only part of
1195 the vector data was sent, we exit the loop.
1197 2010-06-22 Thomas Quinot <quinot@adacore.com>
1199 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1200 error reporting with generic types.
1202 2010-06-22 Thomas Quinot <quinot@adacore.com>
1204 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1205 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1206 vms_data.ads: Add a new command line switch -A to gnatbind to output
1207 the list of all ALI files for the partition.
1209 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1211 * s-osinte-vxworks.ads: Fix casing.
1212 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1213 change: Interfaces.C does not provide a long_long type.
1215 2010-06-22 Emmanuel Briot <briot@adacore.com>
1217 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1218 native user's guide, since this document contains the two versions.
1219 * gcc-interface/Make-lang.in: Update doc dependencies.
1221 2010-06-22 Robert Dewar <dewar@adacore.com>
1223 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
1225 2010-06-22 Emmanuel Briot <briot@adacore.com>
1227 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1228 not build this file on its own (only through gnat_ugn.texi).
1229 Remove macro definitions and insert simpler version in gnat_ugn.texi.
1231 2010-06-22 Robert Dewar <dewar@adacore.com>
1233 * ali-util.ads: Minor comment update.
1234 * g-socthi-mingw.adb: Minor reformatting.
1236 2010-06-22 Ed Falis <falis@adacore.com>
1238 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1239 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1240 for specific versions of VxWorks.
1242 2010-06-22 Emmanuel Briot <briot@adacore.com>
1244 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1245 related sections from user's guide and reference manual, since they
1246 have now been merged together into a separate document (projects.texi).
1247 This removes a lot of duplication where attributes where described
1249 The grammar for the project files is now in each of the sections
1250 (packages,expressions,...) instead of being duplicates in two other
1251 sections (one in the user's guide that contained the full grammar,
1252 and various sections in the rm that contained extracts of the same
1254 Added the full list of all supported attributes, since existing lists
1256 Rename "associative array" into "indexed attribute"
1257 Remove sections that were duplicates ("External References in
1258 Project Files" and "External Values", and "Project Extensions"
1259 for instance). The list of valid packages in project files is now in
1262 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1264 * sem_ch3.adb (Add_Internal_Interface_Entities): If
1265 Find_Primitive_Covering_Interface does not find the operation, it may
1266 be because of a name conflict between the inherited operation and a
1267 local non-overloadable name. In that case look for the operation among
1268 the primitive operations of the type. This search must succeed
1269 regardless of visibility.
1271 2010-06-22 Pascal Obry <obry@adacore.com>
1273 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1274 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1277 2010-06-22 Robert Dewar <dewar@adacore.com>
1279 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1281 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1283 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1285 * s-intman-vxworks.ads: Code clean up.
1287 2010-06-22 Thomas Quinot <quinot@adacore.com>
1289 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1290 dereference, construct actual subtype of designated object to generate
1291 proper bounds checks.
1293 2010-06-22 Thomas Quinot <quinot@adacore.com>
1295 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1296 Read_Withed_ALIs, which is more descriptive.
1298 2010-06-22 Pascal Obry <obry@adacore.com>
1300 * g-sothco.ads: Minor reformatting.
1301 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1302 C_Sendmsg implementation.
1303 (C_Sendmsg): Do not use lock (not needed).
1304 (C_Recvmsg): Likewise and also do not wait for incoming data.
1306 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1308 * uintp.adb: Fix scope error in operator call.
1310 2010-06-22 Vincent Celier <celier@adacore.com>
1312 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1313 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1314 autoconfiguration is needed, fail indicating that no config project
1315 file can be found, as there is no autoconfiguration on VMS.
1317 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1319 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1320 for an operator in a functional notation, when operands are universal.
1322 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1324 * gcc-interface/Make-lang.in: Update dependencies.
1326 2010-06-22 Robert Dewar <dewar@adacore.com>
1328 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1330 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1331 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1333 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1336 2010-06-22 Vincent Celier <celier@adacore.com>
1338 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1339 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1341 2010-06-22 Pascal Obry <obry@adacore.com>
1343 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1345 (C_Recvmsg): Make sure the routine is atomic. Also fully
1346 fill vectors in the proper order.
1347 (C_Sendmsg): Make sure the routine is atomic.
1349 2010-06-22 Robert Dewar <dewar@adacore.com>
1351 * sem_ch8.adb: Update comment.
1352 * sem_res.adb: Minor code reorganization (use Ekind_In).
1354 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1356 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1357 name is a call, use the number of actuals to determine whether this is
1358 a binary or unary operator, rather than relying on later information
1359 to resolve the overload.
1361 2010-06-22 Robert Dewar <dewar@adacore.com>
1363 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1365 2010-06-22 Robert Dewar <dewar@adacore.com>
1367 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1368 * sem_eval.adb: Minor reformatting.
1370 2010-06-22 Vincent Celier <celier@adacore.com>
1372 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1373 to gnatlink, except on Open VMS.
1374 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1375 object directories if -nostdlib is used.
1377 2010-06-22 Robert Dewar <dewar@adacore.com>
1379 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1380 * sem_eval.adb: Minor reformatting.
1382 2010-06-22 Robert Dewar <dewar@adacore.com>
1384 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1385 * exp_aggr.adb: Minor comment changes and reformatting.
1386 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1387 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1389 2010-06-22 Thomas Quinot <quinot@adacore.com>
1391 * sem_util.adb (Build_Actual_Subtype): Record original expression in
1392 Related_Expression attribute of the constructed subtype.
1393 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1394 Node24 on types for...
1395 (Related_Expression): Make attribute available on types as well.
1397 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1399 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1400 Directly_Designated_Type when the type argument is an access type.
1401 (Find_Interface_Tag): Retrieve Designated_Type instead of
1402 Directly_Designated_Type when the type argument is an access type.
1403 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1404 Directly_Designated_Type of each access discriminant.
1405 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1406 instead of Directly_Designated_Type when the operand and target types
1409 2010-06-22 Thomas Quinot <quinot@adacore.com>
1411 * exp_aggr.adb (Flatten): Return False if one choice is statically
1412 known to be out of bounds.
1414 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1416 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1417 a parameterless function call, preserve parentheses of original
1418 expression, for proper handling by pretty printer.
1419 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1420 procedure, to handle quietly identifiers that have no entity names.
1421 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1422 elsif_part is missing, it has been rewritten as a nested if, and there
1423 is no useful information on the current value of the variable.
1425 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1427 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1428 discriminals to the current scope.
1429 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1430 scope, which could overwrite a different already set value.
1432 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1434 * sem_res.adb (Valid_Conversion): If expression is a predefined
1435 operator, use sloc of type of interpretation to improve error message
1436 when operand is of some derived type.
1437 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1439 2010-06-22 Emmanuel Briot <briot@adacore.com>
1441 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1442 that it can set out parameters as well. When a process has died, reset
1443 its Input_Fd to Invalid_Fd, so that when using multiple processes we
1444 can find out which process has died.
1446 2010-06-22 Thomas Quinot <quinot@adacore.com>
1448 * sem_eval.adb (Find_Universal_Operator_Type): New
1449 subprogram to identify the operand type of an operator on universal
1450 operands, when an explicit scope indication is present. Diagnose the
1451 case where such a call is ambiguous.
1452 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1453 Use the above to identify the operand type so it can be properly frozen.
1454 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1455 type, done in an arbitrary, possibly incorrect type (the presence of
1456 some numeric type in the scope is checked for legality, but when more
1457 than one such type is in the scope, we just pick a random one, not
1458 necessarily the expected one).
1459 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1462 2010-06-22 Robert Dewar <dewar@adacore.com>
1464 * sem_eval.adb: Minor reformatting.
1466 2010-06-22 Robert Dewar <dewar@adacore.com>
1468 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1469 Expression_With_Actions to clean up the code generated when folding
1470 constant expressions.
1472 2010-06-22 Vincent Celier <celier@adacore.com>
1474 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1477 2010-06-22 Vincent Celier <celier@adacore.com>
1479 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1480 found, check if it's path has aready been found, whatever its index.
1482 2010-06-22 Robert Dewar <dewar@adacore.com>
1484 * atree.adb, gnatbind.adb: Minor reformatting.
1485 Minor code reorganization.
1487 2010-06-21 Robert Dewar <dewar@adacore.com>
1489 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1490 known at compile time.
1492 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1494 * atree.adb: Fix comment typo.
1496 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1498 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1499 whether a universal arithmetic expression in a conversion, which is
1500 rewritten from a function call with an expanded name, is ambiguous.
1502 2010-06-21 Vincent Celier <celier@adacore.com>
1504 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1505 source files in specified list of sources.
1506 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1508 (Add_Source): Set the Location of the new source
1509 (Process_Exceptions_File_Based): Call Add_Source with the Location
1510 (Get_Sources_From_File): If an exception is found, set its Listed to
1512 (Find_Sources): When Source_Files is specified, if an exception is
1513 found, set its Listed to True. Remove any exception that is not in a
1514 specified list of sources.
1515 * prj.ads (Source_Data): New component Location
1517 2010-06-21 Vincent Celier <celier@adacore.com>
1519 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1521 2010-06-21 Thomas Quinot <quinot@adacore.com>
1523 * sem_res.adb: Minor reformatting.
1524 * atree.adb: New debugging hook "rr" for node rewrites.
1526 2010-06-21 Robert Dewar <dewar@adacore.com>
1528 * g-expect.ads, g-expect.adb: Minor reformatting.
1530 2010-06-21 Emmanuel Briot <briot@adacore.com>
1532 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1534 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1536 * gcc-interface/Make-lang.in: Update dependencies.
1538 2010-06-21 Thomas Quinot <quinot@adacore.com>
1540 * bindgen.ads: Update comments.
1542 2010-06-21 Vincent Celier <celier@adacore.com>
1544 * gnatbind.adb: Suppress dupicates when listing the sources in the
1545 closure (switch -R).
1547 2010-06-21 Emmanuel Briot <briot@adacore.com>
1549 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1552 2010-06-21 Emmanuel Briot <briot@adacore.com>
1554 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1556 (Expect_Internal): No longer raises an exception, so that it can set
1557 out parameters as well. When a process has died, reset its Input_Fd
1558 to Invalid_Fd, so that when using multiple processes we can find out
1559 which process has died.
1561 2010-06-21 Robert Dewar <dewar@adacore.com>
1563 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1564 checks.adb, sem_res.adb: Minor reformatting. Add comments.
1566 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1568 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1569 rederivation associated with a full declaration in a private part, and
1570 there is a partial view that derives the same parent subprogram, the
1571 new entity does not become visible. This check must be applied to
1572 interface operations as well.
1574 2010-06-21 Thomas Quinot <quinot@adacore.com>
1576 * checks.adb: Add comments.
1577 * prj-nmsc.adb: Minor reformatting.
1579 2010-06-21 Thomas Quinot <quinot@adacore.com>
1581 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1582 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1583 extract bounds, to ensure that we get the proper captured values,
1584 rather than an expression that may have changed value since the point
1585 where the subtype was elaborated.
1586 (Find_Body_Discriminal): New utility subprogram to share code between...
1587 (Eval_Attribute): For the case of a subtype bound that references a
1588 discriminant of the current concurrent type, insert appropriate
1589 discriminal reference.
1590 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1591 requeue to an entry in a family in the current task, use corresponding
1593 (Analyze_Accept_Statement): Rely on expansion of attribute references
1594 to insert proper discriminal references in range check for entry in
1597 2010-06-21 Emmanuel Briot <briot@adacore.com>
1599 * s-regpat.adb (Compile): Fix handling of big patterns.
1601 2010-06-21 Robert Dewar <dewar@adacore.com>
1603 * a-tifiio.adb: Minor reformatting.
1605 2010-06-21 Pascal Obry <obry@adacore.com>
1607 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1610 2010-06-21 Javier Miranda <miranda@adacore.com>
1612 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1615 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1617 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1618 to hold the result, indicate that the target of the declaration does
1619 not need an initialization, to prevent spurious errors when
1620 Initialize_Scalars is enabled.
1622 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1624 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1625 Fore is not bound by line length. The Fore parameter of the internal
1626 procedure that performs the operation is an integer.
1628 2010-06-21 Thomas Quinot <quinot@adacore.com>
1630 * sem_res.adb, checks.adb: Minor reformatting.
1632 2010-06-21 Emmanuel Briot <briot@adacore.com>
1634 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1636 (Insert_Operator_Before): New subprogram, avoids duplicated code
1637 (Compile): Avoid doing two compilations when the pattern matcher ends
1640 2010-06-21 Emmanuel Briot <briot@adacore.com>
1642 * s-regpat.adb: Improve debug traces
1643 (Dump): Change output format to keep it smaller.
1645 2010-06-21 Javier Miranda <miranda@adacore.com>
1647 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1648 output to the output file when this routine completes its work.
1650 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
1652 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1653 for loop. Call build_constructor_from_list directly in the CICO case.
1655 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1657 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1658 declaration appears in the same unit and ealier than the renamed
1659 entity, retain generated body to prevent order-of-elaboration issues in
1662 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1664 * s-tpoben.adb: Update comments.
1666 2010-06-18 Robert Dewar <dewar@adacore.com>
1668 * debug.adb: Minor comment change.
1670 2010-06-18 Javier Miranda <miranda@adacore.com>
1672 * exp_cg.adb: Code clean up.
1673 * debug.adb: Complete documentation of switch -gnatd.Z.
1674 * gcc-interface/misc.c (callgraph_info_file): Declare.
1676 2010-06-18 Javier Miranda <miranda@adacore.com>
1678 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1680 2010-06-18 Thomas Quinot <quinot@adacore.com>
1682 * sprint.ads: Minor reformatting.
1683 * output.ads: Update obsolete comment.
1685 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1687 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
1688 an external intrinsic operation (e.g. a GCC numeric function) indicate
1689 that the renaming entity has the same characteristics, so a call to it
1690 is properly expanded.
1692 2010-06-18 Javier Miranda <miranda@adacore.com>
1694 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
1695 support for dispatch table/callgraph info generation.
1696 * gcc-interface/Make-lang.in: Update dependencies.
1698 2010-06-18 Robert Dewar <dewar@adacore.com>
1700 * exp_ch6.adb: Minor reformatting.
1701 * gnatname.adb: Add comment.
1703 2010-06-18 Vincent Celier <celier@adacore.com>
1705 * gnatname.adb (Scan_Args): When --and is used, make sure that the
1706 dynamic tables in the newly allocated Argument_Data are properly
1709 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1711 * gnat1drv.adb: Fix comment.
1713 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1715 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
1716 renaming, re-expand the call with the renamed subprogram if that one
1717 is marked inlined as well.
1719 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1721 * gnat1drv.adb (Adjust_Global_Switches): Enable
1722 Use_Expression_With_Actions for AAMP and VM targets.
1724 2010-06-18 Vincent Celier <celier@adacore.com>
1726 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
1728 2010-06-18 Thomas Quinot <quinot@adacore.com>
1730 * exp_ch4.adb: Minor reformatting.
1732 2010-06-18 Javier Miranda <miranda@adacore.com>
1734 * debug.ads Add documentation on -gnatd.Z.
1736 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1738 * sem_elim.adb: Proper error message on improperly eliminated instances
1740 2010-06-18 Vincent Celier <celier@adacore.com>
1742 * prj.ads (Response_File_Format): New value GCC.
1744 2010-06-18 Thomas Quinot <quinot@adacore.com>
1746 * gnat1drv.adb: Minor reformatting.
1748 2010-06-18 Robert Dewar <dewar@adacore.com>
1750 * make.adb, sem_cat.adb: Minor reformatting.
1751 * sem_eval.adb: Fix typos.
1753 2010-06-18 Pascal Obry <obry@adacore.com>
1755 * prj-nmsc.adb: Fix source filenames casing in debug output.
1757 2010-06-18 Robert Dewar <dewar@adacore.com>
1759 * gnatcmd.adb: Minor reformatting.
1761 2010-06-18 Robert Dewar <dewar@adacore.com>
1763 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
1764 condition and both sub-expressions are static (and result is selected
1767 2010-06-18 Robert Dewar <dewar@adacore.com>
1769 * g-pehage.adb: Minor reformatting
1771 2010-06-18 Pascal Obry <obry@adacore.com>
1773 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
1776 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1778 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1779 dependencies. Fix target pairs on darwin.
1780 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
1782 2010-06-18 Pascal Obry <obry@adacore.com>
1784 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
1786 2010-06-18 Vincent Celier <celier@adacore.com>
1788 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
1789 configuration pragmas file and, if -U is not used, for a local one.
1791 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1793 * sem_elim.adb (Check_Eliminated): Use full information on entity name
1794 when it is given in the pragma by a selected component.
1795 (Check_For_Eliminated_Subprogram): Do no emit error if within a
1796 instance body that is itself within a generic unit.
1797 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
1798 eliminated, mark as well the anonymous subprogram that is its alias
1799 and appears within the wrapper package.
1801 2010-06-18 Bob Duff <duff@adacore.com>
1803 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
1804 Raise an exception if the output file cannot be opened. Add comments.
1806 2010-06-18 Thomas Quinot <quinot@adacore.com>
1808 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
1809 not illegal per E.2.2(7) if it occurs in the private part of a
1812 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1814 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
1815 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
1816 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
1817 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
1818 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
1819 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
1820 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
1821 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
1822 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
1823 errout.ads: Update comments. Minor reformatting.
1825 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
1826 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
1827 a-strunb.adb (Big_String. Big_String_Access): New type.
1829 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
1830 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
1831 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
1833 2010-06-18 Geert Bosch <bosch@adacore.com>
1835 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
1838 2010-06-18 Robert Dewar <dewar@adacore.com>
1840 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
1843 2010-06-18 Robert Dewar <dewar@adacore.com>
1845 * sprint.adb: Minor format change for N_Expression_With_Actions.
1846 * repinfo.adb: Minor reformatting.
1848 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1850 * sem_elim.adb (Check_Eliminated): If within a subunit, use
1851 Defining_Entity to obtain the name of the entity in the proper body, to
1852 properly handle both separate packages and subprograms.
1854 2010-06-18 Emmanuel Briot <briot@adacore.com>
1856 * prj-nmsc.adb (Check_File): New parameter Display_Path.
1858 2010-06-18 Thomas Quinot <quinot@adacore.com>
1860 * g-socket.adb, g-socket.ads (Null_Selector): New object.
1862 2010-06-18 Pascal Obry <obry@adacore.com>
1864 * gnat_ugn.texi: Minor clarification.
1866 2010-06-18 Emmanuel Briot <briot@adacore.com>
1868 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
1869 code when using the project dir as the source dir.
1870 (Search_Directories): use the normalized name for the source directory,
1871 where symbolic names have potentially been resolved.
1873 2010-06-18 Robert Dewar <dewar@adacore.com>
1875 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
1876 when we create N_Expression_With_Actions node.
1877 (Expand_Short_Circuit): Ditto.
1879 2010-06-18 Robert Dewar <dewar@adacore.com>
1881 * exp_util.adb: Minor reformatting.
1883 2010-06-18 Thomas Quinot <quinot@adacore.com>
1885 * types.ads: Clean up obsolete comments
1886 * tbuild.adb: Minor reformatting.
1887 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
1888 exp_strm.adb, aa_drive.adb: Minor reformatting.
1889 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
1890 intrinsic with an Interface_Name denotes an imported back-end builtin,
1891 and must be rewritten into a call, not left in the tree as an operator,
1892 so return False in that case.
1894 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1896 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
1898 2010-06-18 Robert Dewar <dewar@adacore.com>
1900 * scos.ads: Add proposed output for case expression
1902 2010-06-18 Jose Ruiz <ruiz@adacore.com>
1904 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
1905 RTSS modules, we need to use the Microsoft linker.
1907 2010-06-18 Robert Dewar <dewar@adacore.com>
1909 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
1910 expression (cannot count on a particular branch being executed).
1911 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
1912 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
1913 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
1914 within case expression.
1915 * expander.adb (Expand): Add call to Expand_N_Case_Expression
1916 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
1917 (P_Case_Expression): New procedure
1918 (P_Case_Expression_Alternative): New procedure
1919 * par.adb (P_Case_Expression): New procedure
1920 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
1922 * sem.adb (Analyze): Add call to Analyze_Case_Expression
1923 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
1924 this is a documentation change only.
1925 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
1926 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
1928 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
1929 * sem_res.adb (Resolve_Case_Expression): New procedure.
1930 * sem_scil.adb (Find_SCIL_Node): Add processing for
1931 N_Case_Expression_Alternative.
1932 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
1933 (N_Case_Expression_Alternative): New node.
1934 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
1935 N_Case_Expression and N_Case_Expression_Alternative.
1937 2010-06-18 Robert Dewar <dewar@adacore.com>
1939 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
1940 * gnat1drv.adb: Fix typo.
1942 2010-06-18 Robert Dewar <dewar@adacore.com>
1944 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
1946 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
1947 gnat style for -gnatg.
1948 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
1950 2010-06-18 Thomas Quinot <quinot@adacore.com>
1952 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
1954 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
1957 2010-06-18 Robert Dewar <dewar@adacore.com>
1959 * sprint.adb: Minor change in output format for expression wi actions.
1960 * par-ch3.adb: Minor code reorganization. Minor reformatting.
1961 * sem_ch5.adb: Minor comment fix.
1963 2010-06-18 Robert Dewar <dewar@adacore.com>
1965 * debug.adb: New debug flag -gnatd.L to control
1966 Back_End_Handles_Limited_Types.
1967 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
1968 limited case if Back_End_Handles_Limited_Types is True.
1969 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
1970 simplify expansion if Use_Expression_With_Actions is True.
1971 * gnat1drv.adb (Adjust_Global_Switches): Set
1972 Back_End_Handles_Limited_Types.
1973 * opt.ads (Back_End_Handles_Limited_Types): New flag.
1975 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1977 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
1978 intrinsic operator if expansion is not enabled, because in an
1979 instantiation the original operator must be present to verify the
1980 legality of the operation.
1982 2010-06-18 Robert Dewar <dewar@adacore.com>
1984 * exp_disp.adb, sem_ch12.adb: Minor reformatting
1986 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1988 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
1989 the class-wide type for a private extension, and the completion is a
1990 subtype, set the type of the class-wide type to the base type of the
1993 2010-06-18 Robert Dewar <dewar@adacore.com>
1995 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
1996 sem_intr.adb, sem_eval.adb: Minor reformatting
1998 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2000 * sem_type.adb (Is_Ancestor): If either type is private, examine full
2003 2010-06-18 Thomas Quinot <quinot@adacore.com>
2005 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2006 parameter rather than IN OUT.
2008 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2010 * exp_ch6.adb: Add extra guard.
2012 2010-06-18 Gary Dismukes <dismukes@adacore.com>
2014 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
2015 accessibility level of a function call from the level of the innermost
2016 enclosing dynamic scope.
2017 (Innermost_Master_Scope_Depth): New function to find the depth of the
2018 nearest dynamic scope enclosing a node.
2020 2010-06-18 Tristan Gingold <gingold@adacore.com>
2022 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2024 2010-06-18 Thomas Quinot <quinot@adacore.com>
2026 * g-socket.ads: Minor reformatting.
2028 2010-06-18 Vincent Celier <celier@adacore.com>
2030 * make.adb (Must_Compile): New Boolean global variable
2031 (Main_On_Command_Line): New Boolean global variable
2032 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
2033 even when the project is externally built.
2034 (Start_Compile_If_Possible): Compile in -aL directories if
2035 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
2036 when the project is externally built.
2037 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
2038 invoked with -f -u and one or several mains on the command line.
2039 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
2040 is specified on the command line.
2042 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2044 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
2045 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
2046 containing extented_return statements.
2047 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
2048 constrained, do not build subtype declaration.
2050 2010-06-18 Robert Dewar <dewar@adacore.com>
2052 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2053 Warn on assigning to packed atomic component.
2055 2010-06-18 Robert Dewar <dewar@adacore.com>
2057 * sem_util.ads: Minor reformatting
2058 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
2059 Expression_With_Actions).
2060 * snames.ads-tmpl: Minor comment fix
2062 2010-06-18 Robert Dewar <dewar@adacore.com>
2064 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
2065 (Set_Imported): Use Import_Interface_Present to control message output
2066 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
2067 * gnat_rm.texi: Document that we can have pragma Import and pragma
2068 Interface for the same subprogram.
2070 2010-06-18 Robert Dewar <dewar@adacore.com>
2072 * lib-xref.adb (Generate_Reference): Fix bad reference to
2073 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2075 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2077 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2079 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2080 Use set_gnu_expr_location_from_node to set location information on the
2083 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2085 * gcc-interface/Make-lang.in: Update dependencies.
2087 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2089 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2092 2010-06-17 Robert Dewar <dewar@adacore.com>
2094 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
2095 style check messages.
2096 * sem_res.adb (Resolve_Call): Don't call
2097 Check_For_Eliminated_Subprogram if we are analyzing within a spec
2100 2010-06-17 Robert Dewar <dewar@adacore.com>
2102 * debug.adb: Add documentation for debug flags .X and .Y
2103 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
2104 Use_Expression_With_Actions.
2105 * gnat1drv.adb (Adjust_Global_Switches): Set
2106 Use_Expression_With_Actions.
2107 * opt.ads (Use_Expression_With_Actions): New switch.
2109 2010-06-17 Robert Dewar <dewar@adacore.com>
2111 * exp_intr.adb: Minor code reorganization (use UI_Max)
2112 * sem_intr.adb: use underlying type to check legality.
2113 * einfo.adb (Known_Static_Esize): False for generic types
2114 (Known_Static_RM_Size): False for generic types
2115 * einfo.ads (Known_Static_Esize): False for generic types
2116 (Known_Static_RM_Size): False for generic types
2118 2010-06-17 Robert Dewar <dewar@adacore.com>
2120 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2122 2010-06-17 Robert Dewar <dewar@adacore.com>
2124 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
2125 node when expanding short circuit form with actions present for right
2127 * exp_ch4.adb: Minor reformatting
2128 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
2129 right opeand has actions present, and debug flag -gnatd.X is set.
2130 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2132 * nlists.adb (Prepend_List): New procedure
2133 (Prepend_List_To): New procedure
2134 * nlists.ads (Prepend_List): New procedure
2135 (Prepend_List_To): New procedure
2136 * sem.adb: Add processing for Expression_With_Actions
2137 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2138 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2139 * sem_res.adb: Add processing for Expression_With_Actions.
2140 * sem_scil.adb: Add processing for Expression_With_Actions
2141 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2142 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2144 2010-06-17 Doug Rupp <rupp@adacore.com>
2146 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2147 involved both have underlying integer types.
2148 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2149 to an intrinsic operator when the operand types or sizes are not
2151 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2152 64/32 Address/Integer works.
2154 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2156 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2157 that it marks a unit as needed by a spec only if the corresponding
2158 instantiation appears in that spec (and not in the corresponding body).
2159 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2160 in the pragma Eliminate has been parsed as a child unit, but the
2161 current compilation unit is in fact the parent in which the subunit is
2164 2010-06-17 Vincent Celier <celier@adacore.com>
2166 * gnat_rm.texi: Fix typo
2168 2010-06-17 Robert Dewar <dewar@adacore.com>
2170 * sem_util.adb: Minor reformatting
2172 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2174 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2175 instance, the clause now denotes the instance body. Traverse the
2176 corresponding spec because there may be no other dependence that will
2177 force the traversal of its own context.
2179 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2181 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2182 Install_Limited_Context_Clauses, to determine whether a limited_with in
2183 some parent of the current unit designates some other parent, in which
2184 case the limited_with clause must not be installed.
2185 (In_Context): Refine test.
2187 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2189 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2190 type with a dispatching equality operator that is overridden (for a
2191 tagged full type), don't include the overridden equality in the list of
2192 primitives. The overridden equality is detected by testing for an
2193 Aliased field that references the overriding equality.
2195 2010-06-17 Robert Dewar <dewar@adacore.com>
2197 * freeze.adb: Minor reformatting.
2199 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2201 * gnat_ugn.texi: Add a section introducing gdbserver.
2203 2010-06-17 Thomas Quinot <quinot@adacore.com>
2205 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2208 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2210 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2211 constrained discriminated parent that is a private type.
2212 (Analyze_Record_Aggregate): when collecting inherited discriminants,
2213 handle properly an ancestor type that is a constrained private type.
2215 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2217 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2218 protected, use the protected_subprogram_body only if the original
2219 subprogram has not been eliminated.
2221 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2223 * freeze.adb (Freeze_Expression): The designated type of an
2224 access_to_suprogram type can only be frozen if all types in its profile
2227 2010-06-17 Robert Dewar <dewar@adacore.com>
2229 * par.adb: Minor comment fix
2230 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2232 2010-06-17 Doug Rupp <rupp@adacore.com>
2234 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2235 change Address to Short_Address in functions where both must be the
2236 same size for intrinsics to work.
2238 2010-06-17 Thomas Quinot <quinot@adacore.com>
2240 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2241 not denote a (private) component of a protected object.
2243 2010-06-17 Bob Duff <duff@adacore.com>
2245 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2248 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2250 * gnat_ugn.texi: Update the documentation about GDB re: exception
2253 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2255 * gnatvsn.ads: Bump to 4.6 version.
2257 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2259 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2260 designated type of the generated pointer is the type of the original
2261 expression, not that of the function call itself, because the return
2262 type may be an untagged derived type and the function may be an
2263 inherited operation.
2265 2010-06-17 Robert Dewar <dewar@adacore.com>
2267 * exp_ch4.adb: Minor reformatting.
2269 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2271 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2272 N_Component_Association nodes, to indicate that a component association
2273 of an extension aggregate denotes the value of a discriminant of an
2274 ancestor type that has been constrained by the derivation.
2275 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2276 double expansion of the aggregate appearing in a context that delays
2277 expansion, to prevent double insertion of discriminant values when the
2278 aggregate is reanalyzed.
2280 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2282 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2283 Allocator as the Related_Node of Return_Obj_Access in call to
2284 Make_Temporary below as this would create a sort of infinite
2287 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2289 * gnat_ugn.texi: Update gnatcheck doc.
2291 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2293 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2294 incomplete view of the type that is not tagged, and the full type is a
2295 tagged extension, create class_wide type now, and warn that the
2296 incomplete view should be tagged as well.
2298 2010-06-17 Vincent Celier <celier@adacore.com>
2300 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2301 Update the last line of the usage, indicating what commands do not
2302 accept project file switches.
2303 * vms_conv.adb: Do not issue usage line for GNAT SYNC
2304 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2306 * gnat_ugn.texi: Document the relaxed rules for library directories in
2307 externally built library projects.
2309 2010-06-17 Doug Rupp <rupp@adacore.com>
2311 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2313 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2314 * gcc-interface/Makefile.in: Update VMS target pairs.
2316 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
2318 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2319 compatible with Windows NT 4.0 which doesn't provide this function.
2321 2010-06-17 Vincent Celier <celier@adacore.com>
2323 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2324 different timestamps but the checksum is the same, issue a short
2327 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2329 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2330 it means that we cannot reset interrupt handlers since this would
2331 require potentially sending the abort signal to the Server_Task.
2333 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2335 * exp_ch4.adb: expand NOT for VMS types.
2336 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2338 2010-06-17 Sergey Rybin <rybin@adacore.com>
2340 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2341 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2344 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2346 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2347 protected operation if the subprogram has been eliminated.
2349 2010-06-17 Vincent Celier <celier@adacore.com>
2351 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2352 directories associated with a library to be any directory when the
2353 library project is externally built.
2355 2010-06-17 Vincent Celier <celier@adacore.com>
2357 * make.adb (Check): If switch -m is used, deallocate the memory that
2358 may be allocated when computing the checksum.
2360 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2362 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2363 (C_Sendmsg): Likewise.
2365 2010-06-17 Thomas Quinot <quinot@adacore.com>
2367 * sem_res.adb: Update comments.
2369 2010-06-17 Vincent Celier <celier@adacore.com>
2371 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2373 2010-06-17 Robert Dewar <dewar@adacore.com>
2375 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2376 * layout.adb, freeze.adb: Use Make_Temporary.
2378 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
2380 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2381 .NET/JVM normally as this is now perfectly supported by the backend.
2383 2010-06-17 Pascal Obry <obry@adacore.com>
2385 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2387 2010-06-17 Vincent Celier <celier@adacore.com>
2389 * make.adb (Collect_Arguments_And_Compile): Create include path file
2390 only when -x is specified.
2392 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2394 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2395 Objects_Path, defaulted to True. Only create include path file if
2396 Include_Path is True, only create objects path file if Objects_Path is
2398 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2399 Objects_Path, defaulted to True.
2400 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2403 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2405 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2406 determine whether it has the controlling type, when the formal is an
2409 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2411 * s-crtl.ads (ssize_t): New type.
2412 (read): Fix signature.
2414 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2415 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2416 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2417 (C_Sendmsg): Likewise.
2418 * g-socthi.adb (Syscall_Recvmsg): Likewise.
2419 (Syscall_Sendmsg): Likewise.
2420 (C_Recvmsg): Likewise.
2421 (C_Sendmsg): Likewise.
2422 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
2423 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2424 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2425 (C_Sendmsg): Likewise.
2426 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2427 (C_Sendmsg): Likewise.
2428 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2429 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2430 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2431 (C_Sendmsg): Likewise.
2432 * g-socthi-vms.adb (C_Recvmsg): Likewise.
2433 (C_Sendmsg): Likewise.
2434 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
2435 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2436 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2437 (C_Sendmsg): Likewise.
2438 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2439 (C_Sendmsg): Likewise.
2440 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2441 (Write): Likewise to call 'write'.
2442 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2443 (Write): Use correct type to call System.CRTL.write.
2444 * s-tasdeb.adb (Write): Likewise.
2446 2010-06-17 Vincent Celier <celier@adacore.com>
2448 * prj-proc.adb (Copy_Package_Declarations): Change argument name
2449 Naming_Restricted to Restricted. If Restricted is True, do not copy the
2450 value of attribute Linker_Options.
2452 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2454 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2455 (Case_Statement_to_gnu): Adjust.
2456 (Loop_Statement_to_gnu): Likewise.
2457 (Subprogram_Body_to_gnu): Likewise.
2458 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2459 (Compilation_Unit_to_gnu): Likewise.
2461 2010-06-17 Robert Dewar <dewar@adacore.com>
2463 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2464 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2465 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2466 sem_dist.adb, sem_util.adb: Use Make_Temporary
2467 * itypes.ads, tbuild.ads: Minor comment update
2468 * exp_ch9.adb, exp_dist.adb: Minor reformatting
2470 2010-06-17 Thomas Quinot <quinot@adacore.com>
2472 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2474 2010-06-17 Robert Dewar <dewar@adacore.com>
2476 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2478 2010-06-17 Thomas Quinot <quinot@adacore.com>
2480 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2482 2010-06-17 Robert Dewar <dewar@adacore.com>
2484 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2485 * tbuild.ads (Make_Temporary): More comment updates
2486 * tbuild.adb: Minor reformatting
2488 2010-06-17 Robert Dewar <dewar@adacore.com>
2490 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2491 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2493 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2495 (Make_Temporary): Add more extensive documentation
2497 2010-06-17 Robert Dewar <dewar@adacore.com>
2499 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2500 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
2501 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2502 where the slice's actions are inserted.
2503 (Decompose_Expr): Account for possible rewriting of slice bounds
2504 resulting from side effects suppression caused by the above freezing,
2505 so that folding of bounds is preserved by such rewriting.
2507 2010-06-17 Robert Dewar <dewar@adacore.com>
2509 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2510 * freeze.adb (Freeze_Record_Type): Add call to
2511 Check_Record_Representation_Clause.
2512 * sem_ch13.adb (Check_Record_Representation_Clause): New function
2513 (Analyze_Record_Representation_Clause): Split out overlap code into this
2515 (Check_Component_Overlap): Moved inside
2516 Check_Record_Representation_Clause.
2517 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2519 2010-06-17 Robert Dewar <dewar@adacore.com>
2521 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2523 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2524 sem_eval.adb: Use Ekind_In
2526 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2528 * sem_ch8.adb: better error message for illegal inherited discriminant
2530 2010-06-17 Vincent Celier <celier@adacore.com>
2532 * bindusg.adb: Remove lines for -A and -C
2533 * gnat_ugn.texi: Remove all documentation and examples of switches -A
2534 and -C for gnatbind and gnatlink.
2535 * gnatlink.adb (Usage): Remove lines for -A and -C
2536 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2538 * gcc-interface/Make-lang.in: Update dependencies.
2540 2010-06-17 Vincent Celier <celier@adacore.com>
2542 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2543 local Argument_List variable Args.
2544 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2546 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2547 for subsequent switches in Args.
2548 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2550 * gcc-interface/Make-lang.in: Update dependencies.
2552 2010-06-17 Robert Dewar <dewar@adacore.com>
2554 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2555 Equivalent_Type to match documentation.
2557 2010-06-17 Robert Dewar <dewar@adacore.com>
2559 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2560 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2561 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2563 2010-06-17 Thomas Quinot <quinot@adacore.com>
2565 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2567 2010-06-17 Thomas Quinot <quinot@adacore.com>
2569 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2570 freeze node insertion points.
2572 2010-06-17 Robert Dewar <dewar@adacore.com>
2574 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2575 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2577 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2579 * layout.adb (Layout_Type): Broaden test for setting an array type's
2580 Component_Size to include all scalar types, not just discrete types
2581 (components of real types were missed).
2582 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2583 on the itype created for an index (consistent with Make_Index and
2584 avoids possible Assert_Failures).
2586 2010-06-17 Robert Dewar <dewar@adacore.com>
2588 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2589 * einfo.adb: Minor code reformatting (use Ekind_In)
2591 2010-06-17 Robert Dewar <dewar@adacore.com>
2593 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2596 2010-06-17 Vincent Celier <celier@adacore.com>
2598 * back_end.adb: Minor comment updates
2599 * switch-c.adb: Remove dependencies on gcc C sources
2600 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2603 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2605 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2606 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2607 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2608 Remove use of Node field in SCOs table
2609 (Output_Header): Set 'd' to initially disable pragma entry
2610 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2611 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2612 Use C2 field of pragma decision header to indicate enabled.
2613 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2614 * gcc-interface/Make-lang.in: Update dependencies.
2616 2010-06-17 Vincent Celier <celier@adacore.com>
2618 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2619 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2620 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2621 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2623 * switch-c.adb: Copied a number of global declarations from back_end.adb
2624 (Len_Arg): New function copied from back_end.adb
2625 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2626 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2627 Switch_Subsequently_Cancelled.
2628 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2629 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2630 with -lexc on Tru64.
2632 2010-06-17 Robert Dewar <dewar@adacore.com>
2634 * prj.ads, prj.adb: Minor reformatting
2636 2010-06-17 Thomas Quinot <quinot@adacore.com>
2638 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2639 CP line for a disabled pragma.
2641 2010-06-17 Emmanuel Briot <briot@adacore.com>
2643 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2645 (Process_Declarative_Item): An invalid value in an typed variable
2646 declaration is no longer always fatal.
2648 2010-06-16 Arnaud Charlet <charlet@adacore.com>
2650 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2651 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2654 2010-06-16 Javier Miranda <miranda@adacore.com>
2656 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2657 node referenced by the SCIL node of dispatching "=" to skip the tags
2660 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2662 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2663 to prevent cascaded errors and compilation aborts.
2665 2010-06-16 Robert Dewar <dewar@adacore.com>
2667 * back_end.adb (Switch_Subsequently_Cancelled): New function
2668 Move declarations to package body level to support this change
2669 * back_end.ads (Switch_Subsequently_Cancelled): New function
2670 * gnat_ugn.texi: Document -gnat-p switch
2671 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
2672 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
2673 * usage.adb: Add line for -gnat-p switch
2674 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
2676 2010-06-16 Robert Dewar <dewar@adacore.com>
2678 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2681 2010-06-16 Robert Dewar <dewar@adacore.com>
2683 * exp_disp.adb: Minor reformatting
2685 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2687 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
2688 base type only if it was not previously created for the partial view.
2690 2010-06-16 Thomas Quinot <quinot@adacore.com>
2692 * tbuild.ads: Minor comment fix
2694 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
2696 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
2697 (gnu_except_ptr_stack): Change type to VEC. Update comment.
2698 (gnu_elab_proc_stack): Likewise.
2699 (gnu_return_label_stack): Likewise.
2700 (gnu_loop_label_stack): Likewise.
2701 (gnu_switch_label_stack): Likewise.
2702 (gnu_constraint_label_stack): Likewise.
2703 (gnu_storage_error_label_stack): Likewise.
2704 (gnu_program_error_label_stack): Likewise.
2705 (push_exception_label_stack): Take a VEC ** instead of a tree *.
2706 (push_stack): Likewise. Remove unused second parameter. Update
2708 (pop_stack): Take a VEC * instead of a tree *. Update callers.
2709 (gigi): Initialize stacks as VECs.
2710 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
2711 (Case_Statement_to_gnu): Likewise.
2712 (Subprogram_Body_to_gnu): Likewise.
2713 (call_to_gnu): Likewise.
2714 (Exception_Handler_to_gnu_sjlj): Likewise.
2715 (gnat_to_gnu): Likewise.
2716 (get_exception_label): Likewise.
2718 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2720 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
2721 anonymous base generated when the parent is a constrained discriminated
2722 type, propagate interface list to first subtype because it may appear
2723 in a current instance within the extension part of the derived type
2724 declaration, and its own subtype declaration has not been elaborated
2726 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2727 determine whether it has the controlling type.
2729 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2731 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
2732 raise of CE, SE and PE have the reason correctly set and are properly
2733 expanded before stopping the expansions of .NET/JVM exceptions.
2735 2010-06-14 Robert Dewar <dewar@adacore.com>
2737 * opt.ads (Check_Policy_List): Add some clarifying comments
2738 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
2739 on rewritten Assert pragma.
2741 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2743 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
2744 controlled operations, so that they will be treated as overriding even
2745 if the overridden subprogram is marked Is_Hidden, as long as the
2746 overridden subprogram's parent subprogram is not hidden.
2748 2010-06-14 Robert Dewar <dewar@adacore.com>
2750 * debug.adb: Entry for gnatw.d no longer specific for while loops
2751 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
2752 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
2753 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
2754 new calling sequence to include test for EXIT WHEN.
2755 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
2756 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
2758 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
2760 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
2761 PRAGMA, not to pragma identifier).
2762 (Next_Exit_Statement): New attribute of N_Exit_Statement node
2764 2010-06-14 Robert Dewar <dewar@adacore.com>
2766 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
2769 2010-06-14 Robert Dewar <dewar@adacore.com>
2771 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
2772 missing pragma argument identifier.
2774 2010-06-14 Robert Dewar <dewar@adacore.com>
2776 * atree.ads, atree.adb (Ekind_In): New functions.
2778 2010-06-14 Robert Dewar <dewar@adacore.com>
2780 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
2782 2010-06-14 Robert Dewar <dewar@adacore.com>
2784 * usage.adb (Usage): Redo documentation of -gnatwa.
2786 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2788 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
2789 an untagged incomplete type that is a limited view.
2791 2010-06-14 Sergey Rybin <rybin@adacore.com>
2793 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
2796 2010-06-14 Thomas Quinot <quinot@adacore.com>
2798 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
2799 factoring duplicated code between...
2800 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
2801 * a-envvar.ads: Minor reformatting
2803 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2805 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
2807 (Scan_ALI): Take into account new Visibility field.
2808 (Visibility_Kind): New type.
2809 (Xref_Entity_Record): Replace Lib field by Visibility.
2811 * gcc-interface/Make-lang.in: Update dependencies.
2813 2010-06-14 Pascal Obry <obry@adacore.com>
2815 * raise.h: Remove unused defintions.
2817 2010-06-14 Bob Duff <duff@adacore.com>
2819 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
2820 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
2821 the incorrect error "proper body expected".
2822 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
2823 allowed here" error in case of subunits, which was triggered by the
2824 above change to P_Subunit.
2826 2010-06-14 Sergey Rybin <rybin@adacore.com>
2828 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
2830 2010-06-14 Thomas Quinot <quinot@adacore.com>
2832 * lib-util.adb: Minor code reorganization.
2834 2010-06-14 Robert Dewar <dewar@adacore.com>
2836 * ali.adb (Scan_ALI): Implement reading and storing of N lines
2837 (Known_ALI_Lines): Add entry for 'N' (notes)
2838 * ali.ads (Notes): New table to store Notes information
2839 * alloc.ads: Add entries for Notes table
2840 * lib-util.adb (Write_Info_Int): New procedure
2841 (Write_Info_Slit): New procedure
2842 (Write_Info_Uint): New procedure
2843 * lib-util.ads (Write_Info_Int): New procedure
2844 (Write_Info_Slit): New procedure
2845 (Write_Info_Uint): New procedure
2846 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
2847 * lib-writ.ads: Update documentation for N (Notes) lines
2848 * lib.adb (Store_Note): New procedure
2849 * lib.ads (Notes): New table
2850 (Store_Note): New procedure
2851 * sem_prag.adb: Call Store_Note for affected pragmas
2853 2010-06-14 Thomas Quinot <quinot@adacore.com>
2855 * socket.c: Fix wrong condition in #ifdef
2856 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
2857 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
2858 because on VMS this type is a 32-bit pointer which is not compatible
2859 with the default for C pointers for code compiled with gcc on that
2862 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2864 * sem_util (Is_VMS_Operator): New predicate to determine whether an
2865 operator is an intrinsic operator declared in the DEC system extension.
2866 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
2867 if the operator is a VMS intrinsic.
2868 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
2869 constant-folded if the operands are signed and the operator is a VMS
2872 2010-06-14 Robert Dewar <dewar@adacore.com>
2874 * g-socket.adb, gnatcmd.adb: Minor reformatting.
2876 2010-06-14 Pascal Obry <obry@adacore.com>
2878 * s-finimp.adb: Fix typo.
2879 * raise.h: Remove duplicate blank line.
2881 2010-06-14 Vincent Celier <celier@adacore.com>
2883 * prj-nmsc.adb (Add_Sources): Always set the object file and the
2884 switches file names, as the configuration of the language may change
2885 in an extending project.
2886 (Process_Naming_Scheme): For sources of projects that are extended, set
2887 the configuration of the language from the highest extending project
2888 where the language is declared.
2890 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2892 * sem_res.adb (Resolve_Call): For infinite recursion check, test
2893 whether the called subprogram is inherited from a containing subprogram.
2894 (Same_Or_Aliased_Subprograms): New function
2896 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2898 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
2899 use-visible, check whether it is a primitive for more than one type.
2901 2010-06-14 Robert Dewar <dewar@adacore.com>
2903 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
2905 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
2906 Has_Pragma_Unmodified flag.
2908 2010-06-14 Thomas Quinot <quinot@adacore.com>
2910 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
2911 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
2912 now done in GNAT.Sockets if necessary.
2913 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
2914 Ensure mutual exclusion for netdb operations if the target platform
2916 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
2917 hostent as an opaque type to improve portability.
2918 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
2919 gethostbyYYY using proprietary VxWorks API so that a uniform interface
2920 is available for the Ada side.
2921 * gcc-interface/Makefile.in: Remove g-sttsne-*
2922 * gcc-interface/Make-lang.in: Update dependencies.
2924 2010-06-14 Vincent Celier <celier@adacore.com>
2926 * gnatcmd.adb (Mapping_File): New function.
2928 2010-06-14 Javier Miranda <miranda@adacore.com>
2930 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
2932 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2934 * ali.adb: Fix typo.
2935 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
2937 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2939 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
2942 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
2943 the context does not have a homonym of the selector, emit default
2946 2010-06-14 Robert Dewar <dewar@adacore.com>
2948 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
2951 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2953 * lib-xref.ads: Doc updates:
2954 - Allocate 'Q' for #include entity kind
2956 - Allocate 'g' for regular macros
2957 - Allocate 'G' for function-like macros
2959 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2961 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
2962 Indicates that there is an instantiation in the current unit that
2963 loaded the body of the unit denoted by the with_clause.
2964 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
2965 whether a with_clause in the current context denotes the unit that
2966 holds the generic declaration, and mark the with_clause accordingly.
2967 (Instantiate_Package_Body): call Mark_Context.
2968 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
2969 whether a given body should be traversed before the spec of the main
2972 2010-06-14 Ed Falis <falis@adacore.com>
2974 * sysdep.c: Fix 653 build against vThreads headers.
2976 2010-06-14 Robert Dewar <dewar@adacore.com>
2978 * sinfo.ads: Minor reformatting.
2980 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2982 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
2983 the spec has been generated for a body without spec that carries an
2984 Inline_Always pragma.
2986 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2988 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
2991 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2993 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
2994 declaration for VMs, as those are useless and might lead to duplicated
2995 local variable names in the generated code.
2996 * gcc-interface/Make-lang.in: Update dependencies.
2998 2010-06-14 Robert Dewar <dewar@adacore.com>
3000 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3002 2010-06-14 Robert Dewar <dewar@adacore.com>
3004 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
3005 is renamed as Has_Following_Address_Clause.
3006 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
3007 to allow the caller to avoid Initialize_Scalars having an effect.
3008 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
3009 scalars with an address clause specified.
3010 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
3011 to allow the caller to avoid Initialize_Scalars having an effect.
3012 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
3013 (where it was called Has_Address_Clause).
3014 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
3015 (where it was called Has_Address_Clause).
3016 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
3017 problems for Initialize_Scalars (since we no longer initialize objects
3018 with an address clause.
3020 2010-06-14 Robert Dewar <dewar@adacore.com>
3022 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3025 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3027 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3028 on the entity of an implicitly generated postcondition procedure.
3030 2010-06-14 Thomas Quinot <quinot@adacore.com>
3032 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3033 Discriminant_Constraint elist from full view to private view.
3035 2010-06-14 Robert Dewar <dewar@adacore.com>
3037 * sem_res.adb: Minor reformatting.
3039 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3041 * sem.adb: New version of unit traversal.
3043 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3044 within a generic unit in the table of delayed calls.
3046 2010-06-14 Robert Dewar <dewar@adacore.com>
3048 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3050 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3052 * sem_ch12.adb (Save_References): If an identifier has been rewritten
3053 during analysis as an explicit dereference, keep the reference implicit
3054 in the generic, but preserve the entity if global. This prevents
3055 malformed generic trees in the presence of some nested generics.
3057 2010-06-14 Sergey Rybin <rybin@adacore.com>
3059 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
3060 tool with '-files=' option. Also fix some small errors (wrong brackets)
3062 2010-06-14 Vincent Celier <celier@adacore.com>
3064 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3065 the ALI files on the command line.
3067 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
3068 the same value as the parameter of the same name.
3069 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
3071 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
3072 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
3073 emit version symbols only for the units of the library.
3074 (Gen_Versions_C): Ditto.
3076 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3078 * sem_ch4.adb: Fix typo.
3080 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
3082 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3083 vector IO doesn't work at default value properly.
3085 2010-06-14 Doug Rupp <rupp@adacore.com>
3087 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3089 2010-06-14 Vincent Celier <celier@adacore.com>
3091 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3092 sources of the project if a switch -files= is used.
3094 2010-06-14 Thomas Quinot <quinot@adacore.com>
3096 * exp_attr.adb: Minor reformatting.
3098 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3100 * gnat_ugn.texi: Minor typo fixes and wording changes.
3102 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3104 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
3105 prefixed form, do not re-analyze first actual, which may need an
3106 implicit dereference.
3107 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
3108 prefixed notation, the analysis will rewrite the node, and possible
3109 errors appear in the rewritten name of the node.
3110 * sem_res.adb: If a call is ambiguous because its first parameter is
3111 an overloaded call, report list of candidates, to clarify ambiguity of
3114 2010-06-14 Doug Rupp <rupp@adacore.com>
3116 * s-auxdec-vms-alpha.adb: New package body implementing legacy
3117 VAX instructions with Asm insertions.
3118 * s-auxdec-vms_64.ads: Inline VAX queue functions
3119 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
3120 that show up only on VMS.
3121 * gcc-interface/Makefile.in: Provide translation for
3122 s-auxdec-vms-alpha.adb.
3124 2010-06-14 Olivier Hainque <hainque@adacore.com>
3126 * initialize.c (VxWorks section): Update comments.
3128 2010-06-14 Robert Dewar <dewar@adacore.com>
3130 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3132 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
3134 * init.c: Code clean up.
3136 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3138 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3139 not insert address clause in table for later validation if type of
3140 entity is generic, to prevent possible spurious errors.
3142 * sem_ch8.adb: Code clean up.
3144 2010-06-14 Ben Brosgol <brosgol@adacore.com>
3146 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3147 texi2pdf and texi2html.
3148 Document how to change scheduling properties on HP-UX.
3150 2010-06-14 Thomas Quinot <quinot@adacore.com>
3152 * g-socket.ads: Remove misleading comments.
3154 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3156 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3157 CLI_Target as this prevents proper detection of exported names
3158 duplicates when the exported language is different to CIL.
3159 (Process_Interface_Name): Add check for CIL convention exports,
3160 replacing the old one from Check_Duplicated_Export_Name.
3162 2010-06-14 Matthew Heaney <heaney@adacore.com>
3164 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3165 and new last satisfy constraints.
3166 (Delete_Last): prevent overflow for subtraction of index values
3167 (To_Vector): prevent overflow for addition of index values
3169 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3171 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3172 rewritten call, preserve the resulting type to prevent spurious errors,
3173 when the call is implicitly dereferenced in the context of an in-out
3176 * checks.adb (Apply_Discriminant_Check): If the target of the
3177 assignment is a renaming of a heap object, create constrained type for
3180 2010-06-14 Pascal Obry <obry@adacore.com>
3182 * prj-proc.adb: Fix copy of object directory for extending projects.
3184 2010-06-14 Jose Ruiz <ruiz@adacore.com>
3186 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3187 (__gnat_install_handler, PowerPC linux): Activate the alternative
3190 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
3192 * gnat_rm.texi: Move to GFDL version 1.3.
3193 * gnat-style.texi: Ditto.
3194 * gnat_ugn.texi: Ditto.
3196 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
3199 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3202 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
3204 * gcc-interface/utils.c (update_pointer_to): Initialize last.
3206 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3208 * gcc-interface/ada-tree.h: Fix formatting nits.
3210 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3212 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3214 (init_dummy_type): Likewise.
3215 (gnat_pushlevel): Likewise.
3217 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3218 (Subprogram_Body_to_gnu): Likewise.
3219 (Compilation_Unit_to_gnu): Likewise.
3220 (start_stmt_group): Likewise.
3221 (extract_encoding): Likewise.
3222 (decode_name): Likewise.
3224 * gcc-interface/misc.c (gnat_printable_name): Likewise.
3226 * gcc-interface/decl.c (annotate_value): Likewise.
3228 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3230 (struct lang_decl): Likewise.
3231 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3232 (SET_DECL_LANG_SPECIFIC): Likewise.
3234 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
3236 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3237 * gcc-interface/lang-specs.h: Likewise.
3239 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3242 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3244 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3246 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3248 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3250 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3251 TYPE_DECL of the equivalent type instead of building a new one.
3253 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3255 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3256 Fix nits in comments.
3257 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3258 * gcc-interface/trans.c (gigi): Likewise.
3259 (Attribute_to_gnu): Likewise.
3260 (Case_Statement_to_gnu): Likewise.
3261 (gnat_to_gnu): Adjust warning message.
3262 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3263 (build_vms_descriptor32): Likewise.
3265 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3267 * gcc-interface/decl.c: Pretend to be a backend file by undefining
3268 IN_GCC_FRONTEND (still need rtl.h here).
3270 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3272 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3273 (gigi): Adjust call to set_stack_check_libfunc.
3275 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3277 * gcc-interface/utils.c: Do not include rtl.h.
3279 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3281 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3282 and gimple.h. Explain why rtl.h has to be included.
3283 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3284 * gcc-interface/targtyps.c: Do not include tm_p.h
3285 * gcc-interface/utils2.c: Do not include flags.h.
3286 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
3287 and explain why it has to be included.
3288 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3290 Include function.h and explain why. Explain why except.h is included.
3291 (enumerate_modes): Remove unused function.
3292 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3293 * gcc-interface/Make-lang.in: Update dependencies.
3295 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3297 * gcc-interface/misc.c (internal_error_function): Add context
3298 parameter. Use it to access show_column flag and instead of using
3299 global_dc. Call warn_if_plugins.
3300 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3302 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3304 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3305 * gcc-interface/trans.c (unshare_save_expr): Delete.
3306 (gigi): Do not unshare trees under SAVE_EXPRs here.
3308 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3310 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3312 * gcc-interface/utils.c (build_function_stub): Likewise.
3314 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3316 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3317 for Wuninitialized without -O.
3319 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3321 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3322 ADT_exception_data_name_id.
3323 (exception_data_name_id): New define.
3324 * gcc-interface/trans.c (gigi): Initialize it.
3325 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3326 exception type for standard exception definitions. Do not make them
3328 <E_Record_Type>: Equate fields of types associated with an exception
3329 definition to those of the standard exception type.
3331 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3333 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3335 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3337 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3338 code, improve comments and fix formatting nits.
3340 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3342 * gcc-interface/utils.c (update_pointer_to): Return early if the old
3343 pointer already points to the new type. Chain the old pointer and its
3344 variants at the end of new pointer's chain after updating them.
3346 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
3348 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3349 built for interfaces.
3350 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3351 imported_p instead of Is_Imported when considering constants.
3352 Do not promote alignment of exported objects.
3353 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3355 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3357 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3358 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3359 constants really constant.
3360 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3362 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3364 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3366 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3368 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3369 expressions of variant part of record types declared at library level.
3371 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3373 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3374 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3375 (rest_of_record_type_compilation): Adjust call to create_field_decl.
3376 (make_descriptor_field): Likewise and pass correctly typed constants.
3377 (build_unc_object_type): Likewise.
3378 (unchecked_convert): Likewise.
3379 * gcc-interface/decl.c (elaborate_expression_2): New static function.
3380 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3381 Adjust call to create_field_decl.
3382 (make_aligning_type): Likewise.
3383 (make_packable_type): Likewise.
3384 (maybe_pad_type): Likewise.
3385 (gnat_to_gnu_field): Likewise.
3386 (components_to_record): Likewise.
3387 (create_field_decl_from): Likewise.
3388 (create_variant_part_from): Remove superfluous test.
3389 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3391 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3393 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3394 (build_unc_object_type_from_ptr): Likewise.
3395 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3396 and pass it to create_type_decl. Declare the type. Simplify.
3397 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3398 it to build_unc_object_type.
3399 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3400 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3401 (gnat_to_gnu): Likewise.
3402 * gcc-interface/utils2.c (build_allocator): Likewise.
3404 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3407 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3409 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3411 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3413 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3416 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3418 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3420 * gnathtml.pl: Use 755 as mask for new directories.
3422 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3424 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3425 constant constructors before taking their address.
3427 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3429 * exp_dbug.ads: Fix outdated description. Mention link between XVS
3431 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3432 XVZ variable as unit size of XVS type.
3433 (maybe_pad_type): Likewise.
3435 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3437 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3438 use memmove if the array type is bit-packed.
3440 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3442 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3443 build_common_tree_nodes.
3445 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3447 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3449 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3451 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3454 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3456 * uintp.h (UI_Lt): Declare.
3457 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3458 computation in sizetype.
3459 <E_Array_Subtype>: Use unified handling for all index types. Do not
3460 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
3462 (annotate_value): Change test for negative values.
3463 (validate_size): Apply test for negative values on GNAT nodes.
3464 (set_rm_size): Likewise.
3465 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3466 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3467 for negative values.
3468 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3469 (builtin_type_for_size): Adjust definition of signed_size_type_node.
3470 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3471 lengths against zero.
3473 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3475 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3476 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3477 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
3478 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3479 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3480 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3482 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3483 flag_signed_char. Tag sizetype with "size_type" moniker.
3484 * gcc-interface/trans.c (gigi): Add standard_character parameter.
3485 Remove useless built-in types. Equate unsigned_char_type_node to
3486 Standard.Character. Use it instead of char_type_node throughout.
3487 (Attribute_to_gnu): Likewise.
3488 (gnat_to_gnu): Likewise.
3489 * gcc-interface/utils2.c (build_call_raise): Likewise.
3491 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3493 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3494 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3495 (sbitsize_one_node): New macro.
3496 (sbitsize_unit_node): Likewise.
3497 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3498 latent bug in the computation of subrange_p. Fold wider_p predicate.
3499 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3500 the final comparison.
3501 (make_aligning_type): Build real negation and use sizetype throughout
3502 the offset computation.
3503 (maybe_pad_type): Do not issue the warning when the new size expression
3505 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3506 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3508 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3510 (gnat_to_gnu) <N_Free_Statement>: Likewise.
3511 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3512 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3513 constants in sizetype. Remove dead code and tweak comments. Generate
3514 equality instead of inequality comparisons for zero length tests.
3516 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3518 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3519 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3520 <object>: Do not create the fake PARM_DECL if no debug info is needed.
3521 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3522 purposes if no debug info is needed.
3523 Fix formatting. Reorder and add comments.
3524 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3525 variable and remove obsolete comment.
3526 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3527 (convert_vms_descriptor32): Likewise.
3528 (convert): Remove dead code.
3529 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3530 the reference to the P_ARRAY pointer.
3531 <POINTER_TYPE>: Likewise.
3532 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3533 (gnat_init_decl_processing): Delete, move contents to...
3534 * gcc-interface/misc.c (gnat_init): ...here.
3536 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3538 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3539 calls. Return true for conversion from a record subtype to its type.
3541 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3543 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3544 lieu of integer_type_node for boolean operations.
3545 (choices_to_gnu): Likewise.
3546 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3547 (Loop_Statement_to_gnu): Likewise.
3548 (establish_gnat_vms_condition_handler): Likewise.
3549 (Exception_Handler_to_gnu_sjlj): Likewise.
3550 (gnat_to_gnu): Likewise.
3551 (build_unary_op_trapv): Likewise.
3552 (build_binary_op_trapv): Likewise.
3553 (emit_range_check): Likewise.
3554 (emit_index_check): Likewise.
3555 (convert_with_check): Likewise.
3556 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3557 (convert_vms_descriptor32): Likewise.
3558 (convert_vms_descriptor): Likewise.
3559 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3560 (compare_arrays): Use boolean instead of integer constants.
3561 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3562 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
3564 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3565 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3566 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3567 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3568 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3569 for boolean operations.
3570 (fill_vms_descriptor): Likewise. Fix formatting nits.
3572 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3574 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3575 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3577 (LOOP_STMT_COND): ...this.
3578 (LOOP_STMT_BOTTOM_COND_P): New flag.
3579 (LOOP_STMT_TOP_UPDATE_P): Likewise.
3580 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3581 (can_equal_min_val_p): New static inline function.
3582 (can_equal_max_val_p): Likewise.
3583 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3584 new LOOP_STMT semantics. Use two different strategies depending on
3585 whether optimization is enabled to translate the loop.
3586 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3588 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3590 * uintp.adb (UI_From_Dint): Remove useless code.
3591 (UI_From_Int): Likewise.
3592 * uintp.h: Reorder declarations.
3593 (UI_From_gnu): Declare.
3594 (UI_Base): Likewise.
3595 (Vector_Template): Likewise.
3596 (Vector_To_Uint): Likewise.
3599 * gcc-interface/gigi.h: Tweak comments.
3600 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3601 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3603 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3604 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3605 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3606 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3609 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3611 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3613 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3614 (smaller_form_type_p): ...this. Change parameter and variable names.
3615 (call_to_gnu): Use the nominal type of the parameter to create the
3616 temporary if it's a smaller form of the actual type.
3617 (addressable_p): Return false if the actual type is integral and its
3618 size is greater than that of the expected type.
3620 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3622 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3623 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3624 (process_attributes): Delete.
3625 (post_error_ne_num): Change parameter name.
3626 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3627 with -g3. Remove a couple of obsolete lines. Minor tweaks.
3628 If type annotating mode, operate on trees to compute the adjustment to
3629 the sizes of tagged types. Fix long line.
3630 (cannot_be_superflat_p): Tweak head comment.
3631 (annotate_value): Fold local constant.
3632 (set_rm_size): Fix long line.
3633 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3634 (Attribute_to_gnu): Fix long line.
3635 <Attr_Size>: Remove useless assertion.
3636 Reorder statements. Use size_binop routine.
3637 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3638 Create local variables for the label and the test. Tweak comments.
3639 (Subprogram_Body_to_gnu): Reset cfun to NULL.
3640 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3641 (process_inlined_subprograms): Integrate into...
3642 (Compilation_Unit_to_gnu): ...this.
3643 (gnat_to_gnu): Fix long line.
3644 (post_error_ne_num): Change parameter name.
3645 * gcc-interface/utils.c (process_attributes): Static-ify.
3646 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3647 (create_type_decl): Add comment.
3648 (create_var_decl_1): Process the attributes after adding the VAR_DECL
3649 to the current binding level.
3650 (create_subprog_decl): Likewise for the FUNCTION_DECL.
3651 (end_subprog_body): Do not reset cfun to NULL.
3652 (build_vms_descriptor32): Fix long line.
3653 (build_vms_descriptor): Likewise.
3654 (handle_nonnull_attribute): Likewise.
3655 (convert_vms_descriptor64): Likewise.
3656 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3657 (gnat_protect_expr): Fix thinko.
3659 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3661 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3662 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3663 before translating the top-level node.
3664 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3665 <N_Object_Declaration>: Likewise.
3666 <N_Assignment_Statement>: Likewise.
3667 <N_Unchecked_Type_Conversion>: Likewise.
3668 (call_to_gnu): Remove kludge.
3669 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
3670 associated with user returns to be preserved.
3671 (gnat_to_gnu): Add special code to deal with boolean rvalues.
3672 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
3674 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3675 <INDIRECT_REF>: Call build_fold_indirect_ref.
3677 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
3679 * g-socket.adb: A target can have multiple missing errno's. This
3680 will result in multiple errno's being defined as -1. Because of this
3681 we can not use a case but must use a series of if's to avoid
3682 a duplicate case error in GNAT.Sockets.Resolve_Error.
3684 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3686 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
3687 a statement. Otherwise, if at top-level, push the processing of the
3688 elaboration routine. In the misaligned case, issue the error messages
3689 again on entry and create the temporary explicitly. Do not issue them
3691 For a function call, emit the range check if necessary.
3692 In the copy-in copy-out case, create the temporary for the return
3694 Do not unnecessarily convert by-ref parameters to the formal's type.
3695 Remove obsolete guards in conditions.
3696 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
3697 target to call_to_gnu in all cases.
3698 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
3699 (addressable_p) <CONSTRUCTOR>: Return false if not static.
3700 <COMPOUND_EXPR>: New case.
3701 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
3702 expression if it has unconstrained array type.
3703 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
3704 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
3707 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3709 * gcc-interface/trans.c (gigi): Do not start statement group.
3710 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
3711 Start statement group and push binding level here...
3712 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
3713 Do not push fake contexts at top level. Remove redundant code.
3714 (call_to_gnu): Rename a local variable and constify another.
3715 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
3716 (set_current_block_context): Set it as the group's block.
3717 (gnat_init_decl_processing): Delete unrelated init code.
3718 (end_subprog_body): Use NULL_TREE.
3720 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3722 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
3723 side-effects of actual parameters before the call.
3725 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3727 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
3729 (set_rm_size): Reorder and remove obsolete test.
3731 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3733 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
3734 (gigi): Adjust ATTRIBUTE_UNUSED markers.
3735 * gcc-interface/gadaint.h: New file.
3736 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
3737 (__gnat_to_canonical_file_spec): Remove declaration.
3738 (number_names): Delete.
3739 (number_files): Likewise.
3741 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
3744 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3746 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
3748 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
3749 Ekind. Return early for class-wide types. Do not compute initializer
3750 unless necessary. Reuse the tree for an associated class-wide type
3751 only if processing its root type.
3753 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
3755 * gsocket.h: Run-time can no longer be built without network
3756 OS headers available. Changing RTEMS GNAT build procedure to
3757 reflect this and letting run-time build use network .h files.
3759 2010-04-13 Duncan Sands <baldrick@free.fr>
3761 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
3762 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
3764 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3766 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
3767 (parent_name_id): New macro.
3768 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
3769 * gcc-interface/trans.c (gigi): Initialize it.
3770 (lvalue_required_p) <N_Type_Conversion>: New case.
3771 <N_Qualified_Expression>: Likewise.
3772 <N_Allocator>: Likewise.
3773 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
3775 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3777 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
3778 (DECL_CONST_ADDRESS_P): New macro.
3779 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
3780 (SAME_FIELD_P): Likewise.
3781 * gcc-interface/decl.c (constructor_address_p): New static function.
3782 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
3783 the return value of above function.
3784 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
3785 passed by reference.
3786 <E_Record_Subtype>: Likewise.
3787 Set TREE_ADDRESSABLE on the type if it passed by reference.
3788 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
3789 (create_field_decl_from): Likewise.
3790 (substitute_in_type): Likewise.
3791 (purpose_member_field): Use SAME_FIELD_P.
3792 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
3793 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
3794 parameter and adjust recursive calls.
3795 <N_Explicit_Dereference>: New case.
3796 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
3797 Adjust calls to lvalue_required_p. Do not return the initializer of a
3798 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
3799 (call_to_gnu): Delay issuing error message for a misaligned actual and
3800 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
3801 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
3802 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
3803 type is passed by reference.
3804 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
3805 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
3806 (build_simple_component_ref): Use SAME_FIELD_P.
3808 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
3810 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
3811 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
3812 front-end's predicate Is_By_Reference_Type. Use consistent order and
3813 remove ??? comment. Use original conversion in all cases, if any.
3814 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
3815 (convert): Use local copy in more cases.
3816 <INDIRECT_REF>: Remove deactivated code.
3817 (unchecked_convert): Use a couple of local copies.
3819 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3821 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
3823 (lvalue_required_p) <N_Attribute_Reference>: Call it.
3824 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
3825 folding the result only if lvalue_required_for_attribute_p is true.
3826 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
3827 typed constant to build_component_ref.
3828 (unchecked_convert): Likewise.
3829 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
3830 (build_allocator): Likewise.
3832 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3834 * gcc-interface/utils2.c (build_cond_expr): Take the address and
3835 dereference if the result type is passed by reference.
3837 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3839 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
3840 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
3841 goto to the next statement.
3843 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3845 * gcc-interface/gigi.h (maybe_variable): Delete.
3846 (protect_multiple_eval): Likewise.
3847 (maybe_stabilize_reference): Likewise.
3848 (gnat_save_expr): Declare.
3849 (gnat_protect_expr): Likewise.
3850 (gnat_stabilize_reference): Likewise.
3851 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
3852 gnat_stabilize_reference.
3853 (maybe_variable): Delete.
3854 (elaborate_expression_1): Use gnat_save_expr.
3855 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
3856 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
3857 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
3858 <N_Slice>: Use gnat_protect_exp.
3859 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
3860 <N_In>: Use gnat_protect_expr.
3861 Pass NULL to gnat_stabilize_reference.
3862 (build_unary_op_trapv): Use gnat_protect_expr.
3863 (build_binary_op_trapv): Likewise.
3864 (emit_range_check): Likewise.
3865 (emit_index_check): Likewise.
3866 (convert_with_check): Likewise.
3867 (protect_multiple_eval): Move to utils2.c file.
3868 (maybe_stabilize_reference): Merge into...
3869 (gnat_stabilize_reference): ...this. Move to utils2.c file.
3870 (gnat_stabilize_reference_1): Likewise.
3871 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
3872 instead of protect_multiple_eval.
3873 * gcc-interface/utils2.c (compare_arrays): Likewise.
3874 (nonbinary_modular_operation): Likewise.
3875 (maybe_wrap_malloc): Likewise.
3876 (build_allocator): Likewise.
3877 (gnat_save_expr): New function.
3878 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
3879 in common cases. Propagate TREE_READONLY onto dereferences.
3880 (gnat_stabilize_reference_1): Move from trans.c file.
3881 (gnat_stabilize_reference): Likewise.
3883 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3885 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
3886 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
3887 node. Use the type of the operand to set TREE_READONLY.
3888 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
3889 _REF node. Do not overwrite TREE_READONLY.
3890 (call_to_gnu): Rename local variable and fix various nits. In the
3891 copy-in/copy-out case, build the SAVE_EXPR manually.
3892 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
3893 and fold the computations.
3894 (protect_multiple_eval): Always save entire fat pointers.
3895 (maybe_stabilize_reference): Minor tweaks.
3896 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
3897 tcc_type and tcc_statement.
3898 * gcc-interface/utils.c (convert_to_fat_pointer): Call
3899 protect_multiple_eval in lieu of save_expr.
3900 (convert): Minor tweaks.
3901 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
3902 (builtin_type_for_size): Call gnat_type_for_size directly.
3903 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
3904 (contains_null_expr): Likewise
3905 (gnat_build_constructor): Do not call it.
3906 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
3907 instead of gnat_stabilize_reference to protect the operands.
3908 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
3910 (maybe_wrap_malloc): Likewise.
3911 (build_allocator): Likewise.
3912 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
3913 (gnat_mark_addressable): Rename parameter.
3915 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
3917 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
3918 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
3919 (TYPE_RETURNS_BY_REF_P): Rename into.
3920 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
3921 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
3922 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
3923 (build_return_expr): Likewise.
3924 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
3925 Rename local variables. If the return Mechanism is By_Reference, pass
3926 return_by_invisible_ref_p to create_subprog_type instead of toggling
3927 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
3928 the mechanism. Use regular return for contrained types with non-static
3929 size and return by invisible reference for unconstrained return types
3930 with default discriminants. Update comment.
3931 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
3932 returns by invisible reference, turn the RESULT_DECL into a pointer.
3933 Do not handle DECL_BY_REF_P in the CICO case here.
3934 (call_to_gnu): Remove code handling return by target pointer. For a
3935 function call, if the return type has non-constant size, generate the
3936 assignment with an INIT_EXPR.
3937 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
3938 If the function returns by invisible reference, build the copy return
3940 (add_decl_expr): Initialize the variable with an INIT_EXPR.
3941 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
3942 Adjust for renaming of macros. Copy the node only when necessary.
3943 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
3944 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
3945 (convert_from_reference): Delete.
3946 (is_byref_result): Likewise.
3947 (gnat_genericize_r): Likewise.
3948 (gnat_genericize): Likewise.
3949 (end_subprog_body): Do not call gnat_genericize.
3950 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
3951 (build_return_expr): Adjust parameter names, logic and comment.
3953 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3955 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
3956 if the size is small enough. Propagate the alignment if there is an
3957 alignment clause on the original array type.
3958 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3959 Deal with under-aligned packed array types. Copy the size onto the
3960 justified modular type and don't lay it out again. Likewise for the
3961 padding type built for other under-aligned subtypes.
3962 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
3965 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3967 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
3968 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
3970 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3972 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
3973 do not set the result type if there is a specified target and do not
3974 convert the result in any cases.
3975 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
3976 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
3978 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
3980 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
3982 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
3985 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
3986 pointer base types are variant of each other. Apply special treatment
3987 for null to fat pointer types in all cases.
3989 2010-01-28 Pascal Obry <obry@adacore.com>
3991 * s-win32.ads: Add some missing constants.
3993 2010-01-28 Vincent Celier <celier@adacore.com>
3995 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
3998 2010-01-28 Robert Dewar <dewar@adacore.com>
4000 * gnat_rm.texi: Minor correction
4002 2010-01-27 Pascal Obry <obry@adacore.com>
4004 * g-awk.adb: ensure that an AWK session is reusable.
4006 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
4008 * g-regist.adb (For_Every_Key): Fix previous change.
4011 2010-01-27 Thomas Quinot <quinot@adacore.com>
4013 * lib-writ.ads: Current version of spec for new N (note) ALI lines
4015 2010-01-27 Yannick Moy <moy@adacore.com>
4017 * a-cdlili.adb (Insert): Correct exception message when cursor
4018 designates wrong list.
4020 2010-01-27 Vincent Celier <celier@adacore.com>
4022 * gnatcmd.adb: When there is only one main specified, the package
4023 support Switches (<main>) and attribute Switches is specified for the
4024 main, use these switches, instead of Default_Switches ("Ada").
4026 2010-01-27 Robert Dewar <dewar@adacore.com>
4028 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4030 * exp_disp.adb: Minor reformatting
4032 2010-01-27 Tristan Gingold <gingold@adacore.com>
4034 * seh_init.c: Use __ImageBase instead of _ImageBase.
4036 2010-01-27 Javier Miranda <miranda@adacore.com>
4038 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
4039 profile of interface thunks. The type of the controlling formal is now
4040 the covered interface type (instead of the target tagged type).
4042 2010-01-27 Sergey Rybin <rybin@adacore.com>
4044 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4046 2010-01-27 Robert Dewar <dewar@adacore.com>
4048 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4049 changed from Expr to N.
4051 2010-01-26 Thomas Quinot <quinot@adacore.com>
4053 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4054 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4057 2010-01-26 Vincent Celier <celier@adacore.com>
4059 * prj-attr.adb: Add new attribute Library_Install_Name_Option
4060 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
4061 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4062 attributes Run_Path_Option and Library_Install_Name_Option.
4063 * prj.ads (Project_Configuration): Replace component
4064 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
4065 component Library_Install_Name_Option.
4066 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
4067 Replace Run_Path_Origin_Supported with Run_Path_Origin
4069 2010-01-26 Ed Schonberg <schonberg@adacore.com>
4071 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
4072 is not hidden by a homograph declared in another actual package.
4074 2010-01-26 Robert Dewar <dewar@adacore.com>
4076 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4077 decisions for pragmas Assert, Check, Precondition, Postcondition if
4079 * scos.ads: Update comments.
4080 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
4081 Also remove obsolete code for CT (exit point) SCOs.
4083 2010-01-26 Thomas Quinot <quinot@adacore.com>
4085 * switch-c.adb: Fix handling of -gnatz*
4087 2010-01-26 Robert Dewar <dewar@adacore.com>
4089 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
4090 qualifiers for FOR/WHILE loops
4091 * scos.ads: Use separate type letters F/W for for/while loops
4093 2010-01-26 Robert Dewar <dewar@adacore.com>
4095 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
4096 entries per line, one for each statement in the sequence).
4097 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
4098 size from 100 to 10_000 for SC_Array to avoid any real possibility of
4099 overflow. Output decisions in for loops.
4100 Exclude labels from CS lines.
4101 * scos.ads: Clarify that label is not included in the entry point
4103 2010-01-26 Robert Dewar <dewar@adacore.com>
4105 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
4106 format of statement sequence SCO entries (one location/statement).
4107 * put_scos.adb (Put_SCOs): Implement new format of CS lines
4108 * scos.ads: Update comments.
4109 * sem_eval.adb: Minor reformatting.
4111 2010-01-26 Robert Dewar <dewar@adacore.com>
4113 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
4114 (Extend_Statement_Sequence): New procedures
4115 (Traverse_Declarations_Or_Statements): New handling for exits.
4117 2010-01-26 Robert Dewar <dewar@adacore.com>
4119 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4122 2010-01-26 Robert Dewar <dewar@adacore.com>
4124 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4125 * scos.ads: Clarify handling of logical operators
4127 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4129 * s-tpoben.adb: Update comments.
4131 2010-01-26 Robert Dewar <dewar@adacore.com>
4133 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4136 2010-01-26 Robert Dewar <dewar@adacore.com>
4138 * scos.ads: Clean up documentation, remove obsolete XOR references
4139 2010-01-26 Vincent Celier <celier@adacore.com>
4141 * gnat_ugn.texi: Complete documentation on the restrictions for
4142 combined options in -gnatxxx switches.
4145 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4147 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4148 a controlled operation, abort is already deferred at this point, so we
4149 need to use Defer_Abort_Nestable.
4151 2010-01-26 Vincent Celier <celier@adacore.com>
4153 * prj-conf.adb (Get_Config_Switches): Check for a default language for
4154 a project extending a project with no languages.
4156 2010-01-26 Vincent Celier <celier@adacore.com>
4158 * switch-c.adb (Scan_Front_End_Switches): Take into account options
4159 that follow -gnatef.
4160 Allow -gnateG to be followed by other options.
4162 2010-01-26 Robert Dewar <dewar@adacore.com>
4164 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4165 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4168 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
4170 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4171 that allows to iterate over all subkeys of a key.
4173 2010-01-26 Ed Falis <falis@adacore.com>
4175 * sysdep.c: enable NFS for VxWorks MILS
4176 * env.c: enable __gnat_environ for VxWorks MILS
4177 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4179 2010-01-25 Bob Duff <duff@adacore.com>
4181 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4182 is an internally-generated positional aggregate, and the bounds are
4183 already correctly set. We don't want to overwrite those bounds with
4184 bounds determined by context.
4186 2010-01-25 Robert Dewar <dewar@adacore.com>
4188 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4189 exp_ch9.adb, g-sechas.ads: Minor reformatting.
4191 2010-01-25 Thomas Quinot <quinot@adacore.com>
4193 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4194 integer type) before subtracting 1, otherwise the computation may wrap
4195 (because size_t is modular) and cause the conversion to fail.
4197 2010-01-25 Ed Falis <falis@adacore.com>
4199 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4201 2010-01-25 Vincent Celier <celier@adacore.com>
4203 * prj-attr.adb: New attribute Run_Path_Origin_Required
4204 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4205 attribute Run_Path_Origin_Required.
4206 * prj.ads (Project_Configuration): New component
4207 Run_Path_Origin_Supported.
4208 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4210 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4212 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4213 have errors, do not continue resolution of the aggregate.
4214 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4215 the array type indicates an error.
4217 2010-01-25 Bob Duff <duff@adacore.com>
4219 * sinfo.ads: Minor comment fixes.
4221 2010-01-25 Bob Duff <duff@adacore.com>
4223 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4225 2010-01-25 Arnaud Charlet <charlet@adacore.com>
4227 * gnatvsn.ads (Current_Year): Update.
4229 2010-01-25 Florian Villoing <villoing@adacore.com>
4231 * gnat_ugn.texi: Fix typo.
4233 2010-01-25 Thomas Quinot <quinot@adacore.com>
4235 * scos.ads: Update specification.
4237 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4239 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4240 enclosing subprogram has no previous spec, attach postcondition
4241 procedure to the defining entity for the body.
4243 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4245 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4246 initialization procedure of the ancestor part of an extension aggregate
4247 if it is an interface type.
4249 2010-01-25 Vincent Celier <celier@adacore.com>
4251 * gnatlink.adb (Process_Binder_File): The directory for the shared
4252 version of libgcc in the run path options is found in the subdirectory
4253 indicated by __gnat_default_libgcc_subdir.
4254 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4257 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4259 * sem_prag.adb: More flexible pragma Annotate.
4261 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
4263 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4264 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4266 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
4268 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4270 2010-01-18 Jan Hubicka <jh@suse.cz>
4273 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4274 unit local variables.
4276 2010-01-17 Laurent GUERBY <laurent@guerby.net>
4278 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4280 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
4282 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4283 * system-linux-armeb.ads, system-linux-armel.ads: New files.
4285 2010-01-09 Simon Wright <simon@pushface.org>
4288 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4293 Copyright (C) 2010 Free Software Foundation, Inc.
4295 Copying and distribution of this file, with or without modification,
4296 are permitted in any medium without royalty provided the copyright
4297 notice and this notice are preserved.