1 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3 * gcc-interface/misc.c: Do not include except.h.
4 * gcc-interface/Make-lang.in: Update dependencies.
6 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
8 * gcc-interface/trans.c: Include tree-flow.h.
9 (gnu_switch_label_stack): Delete.
10 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
11 its associated block cannot fall through. Do not emit the final label
12 if no cases branch to it.
13 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
15 2010-06-23 Thomas Quinot <quinot@adacore.com>
17 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
18 reference to a protected subprogram outside of the protected's scope,
19 ensure the corresponding external subprogram is frozen before the
22 2010-06-23 Ed Schonberg <schonberg@adacore.com>
24 * sem_prag.adb: Fix typo in error message.
25 * sem.adb: Refine previous change.
27 2010-06-23 Robert Dewar <dewar@adacore.com>
29 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
30 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
31 Implement Ada 2012 string encoding packages.
33 2010-06-23 Arnaud Charlet <charlet@adacore.com>
35 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
36 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
37 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
38 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
40 * gcc-interface/Makefile.in: Enable use of above files.
42 2010-06-23 Ed Schonberg <schonberg@adacore.com>
44 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
45 of address clauses if if Ignore_Rep_Clauses is active.
46 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
47 remove address clause from tree so that it does not reach the backend.
49 2010-06-23 Arnaud Charlet <charlet@adacore.com>
51 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
52 expand 'Valid from user code in CodePeer mode, will be handled by the
55 2010-06-23 Bob Duff <duff@adacore.com>
57 * g-comlin.ads: Minor comment improvements.
59 2010-06-23 Ed Schonberg <schonberg@adacore.com>
61 * sem_res.adb (Uses_SS): The expression that initializes a controlled
62 component of a record type may be a user-defined operator that is
63 rewritten as a function call.
65 2010-06-23 Bob Duff <duff@adacore.com>
67 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
69 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
71 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
72 label to the new sequence of statements. Set the sloc of the raise
73 statement onto the new goto statements.
75 2010-06-23 Robert Dewar <dewar@adacore.com>
77 * a-stuten.ads, a-stuten.adb: New files.
78 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
79 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
81 2010-06-23 Robert Dewar <dewar@adacore.com>
83 * gnat_ugn.texi: Add documentation of -gnat12 switch
84 Add documentation of -gnatX switch.
86 2010-06-23 Ed Schonberg <schonberg@adacore.com>
88 * inline.ads: Include the current Ada_Version in the info for pending
89 instance bodies, so that declaration and body are compiled with the
91 * inline.adb: Move with_clause for Opt to spec.
92 * sem_ch12.adb (Analyze_Package_Instantiation,
93 Analyze_Subprogram_Instantiation): Save current Ada_Version in
94 Pending_Instantiation information.
95 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
96 Inline_Package_Body): Use the Ada_Version present in the body
99 2010-06-23 Robert Dewar <dewar@adacore.com>
101 * usage.adb: Add documentation for -gnat12 switch.
102 * errout.ads: Add VMS alias entry for -gnat12 switch
103 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
104 Add documentation for pragma Extensions_Allowed.
105 * opt.ads: Add entry for Ada 2012 mode.
106 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
108 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
110 * sem_ch13.adb: Add handling for Ada 2012 mode.
111 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
112 * switch-c.adb: Add handling for -gnat12 switch.
113 Implement -gnat2005 and -gnat2012.
114 * usage.adb: Add documentation for -gnat12 switch.
115 * vms_data.ads: Add /12 switch for Ada 2012 mode.
117 2010-06-23 Arnaud Charlet <charlet@adacore.com>
119 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
120 No_Task_Hierarchy restriction. Add comment.
121 * exp_ch9.adb, exp_ch3.adb: Update comments.
123 2010-06-23 Robert Dewar <dewar@adacore.com>
125 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
126 * sem_res.adb: Add comments.
127 * sem_util.adb: Minor reformatting. Add comments.
128 Change increment on Actuals_In_Call table.
129 * opt.ads: Minor: add 'constant'.
131 2010-06-23 Javier Miranda <miranda@adacore.com>
133 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
134 TSD to Null_Address if No_Dispatching_Calls is active.
136 2010-06-23 Vincent Celier <celier@adacore.com>
138 * a-comlin.ads: Indicate that use of this package is not supported
139 during the elaboration of an auto-initialized Stand-Alone Library.
141 2010-06-23 Ed Schonberg <schonberg@adacore.com>
143 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
144 alignment clause on a record type to determine if a component may be
145 misaligned. The decision must be taken in the back-end where target
146 alignment information is known.
148 2010-06-23 Arnaud Charlet <charlet@adacore.com>
150 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
151 systematically in CodePeer mode to simplify generated code.
152 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
153 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
154 No_Task_Hierarchy is set instead of crasshing.
156 2010-06-23 Thomas Quinot <quinot@adacore.com>
158 * sem_util.adb: Minor code cleanup: test for proper entity instead of
159 testing just Chars attribute when checking whether a given scope is
161 * exp_ch4.adb, einfo.adb: Minor reformatting.
163 2010-06-23 Vincent Celier <celier@adacore.com>
166 * switch-m.adb (Normalize_Compiler_Switches): Take into account
167 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
168 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
170 2010-06-23 Ed Schonberg <schonberg@adacore.com>
172 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
173 operation with a universal real operand, and the right operand is a
174 range with universal bounds, find unique fixed point that may be
175 candidate, and warn appropriately.
177 2010-06-23 Ed Schonberg <schonberg@adacore.com>
179 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
180 properly the rare cases where VMS operators are visible through
181 Extend_System, but the default System is being used and Address is a
183 * sem_util.adb: Widen predicate Is_VMS_Operator.
185 2010-06-23 Vincent Celier <celier@adacore.com>
187 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
190 2010-06-23 Olivier Hainque <hainque@adacore.com>
192 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
193 Interface_Name as foreign. These are GCC builtin imports for
194 which Ada specific processing doesn't apply.
196 2010-06-23 Thomas Quinot <quinot@adacore.com>
198 * sem_ch12.adb: Minor reformatting.
200 2010-06-23 Ed Schonberg <schonberg@adacore.com>
202 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
203 determine whether an intrinsic subprogram is VMS specific.
205 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
207 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
208 is present in the entity.
210 2010-06-23 Arnaud Charlet <charlet@adacore.com>
212 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
213 Fix handling of parameters.
214 Add protection against unexpected cases.
215 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
216 access level, since "A" suffix is already used elsewhere. Similarly,
217 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
220 2010-06-23 Thomas Quinot <quinot@adacore.com>
222 * sem_util.adb, sem_util.ads: Minor reformatting.
224 2010-06-23 Vincent Celier <celier@adacore.com>
226 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
227 the previous behavior of gprclean when there are missing files.
229 2010-06-23 Ed Schonberg <schonberg@adacore.com>
231 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
232 generic body is not a fatal error.
233 (Mark_Context): Handle properly names of child units.
234 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
237 2010-06-23 Vincent Celier <celier@adacore.com>
239 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
242 2010-06-23 Bob Duff <duff@adacore.com>
244 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
245 Memory_Space, because CPU_Time doesn't seem to provide any significant
246 speed advantage in practice. Cleanup: Get rid of constant
247 Default_Optimization; doesn't seem to add anything. Use case
248 statements instead of if statements; seems cleaner.
250 2010-06-23 Olivier Hainque <hainque@adacore.com>
252 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
253 Wshadow instead of Wextra to guard warning on absence of internal
254 builtin decl for an import. Fix use of quote in warning text.
255 (intrin_arglists_compatible_p): Remove processing of integer trailing
256 args on the Ada side. Fix use of literal > in warning text.
257 (intrin_return_compatible_p): Never warn on "function imported as
258 procedure". Defer the void/void case to the common type compatibility
260 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
261 of GCC builtin imports.
263 2010-06-23 Olivier Hainque <hainque@adacore.com>
265 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
267 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
268 functions, helpers for ...
269 (intrin_profiles_compatible_p): New function, replacement for ...
270 (compatible_signatures_p): Removed.
271 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
272 attempt to bind an unregistered builtin function. When we have
273 one, use it and warn on profile incompatibilities.
275 2010-06-23 Arnaud Charlet <charlet@adacore.com>
277 * gcc-interface/Make-lang.in: Update dependencies.
279 2010-06-23 Ed Schonberg <schonberg@adacore.com>
281 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
282 for a coextension in an object declaration is a concatenation, treat
283 coextension as dynamic.
285 2010-06-23 Javier Miranda <miranda@adacore.com>
287 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
288 internal entities are added to the scope of the tagged type.
289 (Derive_Subprograms): Do not stop derivation when we find the first
290 internal entity that has attribute Interface_Alias. After the change
291 done to Override_Dispatching_Operations it is no longer true that
292 these primirives are always located at the end of the list of
294 * einfo.ads (Primitive_Operations): Add documentation.
295 * exp_disp.adb (Write_DT): Improve output adding to the name of the
296 primitive a prefix indicating its corresponding tagged type.
297 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
298 entity covers the primitive of an interface that is not an ancestor of
299 this tagged type then the new primitive is added at the end of the list
300 of primitives. Required to fulfill the C++ ABI.
302 2010-06-23 Javier Miranda <miranda@adacore.com>
304 * atree.ads (Set_Reporting_Proc): New subprogram.
305 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
306 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
307 to routines of package Scil_ll by indirect call to the registered
309 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
310 that is invoked when a node is allocated, replaced or rewritten.
311 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
312 the SCIL node. Used as argument for Set_Reporting_Proc.
313 (Initialize): Register Copy_SCIL_Node as the reporting routine that
316 2010-06-23 Thomas Quinot <quinot@adacore.com>
318 * sem_ch3.ads: Minor reformatting.
320 2010-06-23 Ed Schonberg <schonberg@adacore.com>
322 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
323 always analyze the generic body and instance, because it may be needed
325 (Mark_Context): Prepend the with clauses for needed generic units, so
326 they appear in a better order for CodePeer.
327 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
329 2010-06-23 Emmanuel Briot <briot@adacore.com>
331 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
333 2010-06-23 Robert Dewar <dewar@adacore.com>
335 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
337 2010-06-23 Thomas Quinot <quinot@adacore.com>
339 * a-tags.ads: Fix description of TSD structure.
341 2010-06-23 Ed Schonberg <schonberg@adacore.com>
343 * sem_ch12.adb (Mark_Context): When indicating that the body of a
344 generic unit is needed prior to the unit containing an instantiation,
345 search recursively the context of the generic to add other generic
346 bodies that may be instantiated indirectly through the current instance.
348 2010-06-23 Robert Dewar <dewar@adacore.com>
350 * freeze.adb: Minor reformatting.
352 2010-06-23 Bob Duff <duff@adacore.com>
354 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
356 2010-06-23 Vincent Celier <celier@adacore.com>
358 * make.adb (Compile_Sources): Complete previous change.
360 2010-06-23 Ed Schonberg <schonberg@adacore.com>
362 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
363 Constrained extra formal.
365 2010-06-23 Ed Schonberg <schonberg@adacore.com>
367 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
368 Initialize_Scalars are enabled, compile the generated equality function
369 for a composite type with full checks enabled, so that validity checks
370 are performed on individual components.
372 2010-06-23 Emmanuel Briot <briot@adacore.com>
374 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
375 Missing_Source_Files.
377 2010-06-23 Robert Dewar <dewar@adacore.com>
379 * exp_ch3.adb, exp_util.adb: Minor reformatting.
381 2010-06-23 Jose Ruiz <ruiz@adacore.com>
383 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
384 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
385 Clock (without delays) use a run time which is properly initialized.
387 2010-06-23 Vincent Celier <celier@adacore.com>
389 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
390 when -f -u and a main is specified on the command line. However,
391 attempt to compile even when the ALI file is read-only when
392 Must_Compile is True.
394 2010-06-23 Thomas Quinot <quinot@adacore.com>
396 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
398 2010-06-23 Javier Miranda <miranda@adacore.com>
400 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
401 entities for parent types that are interfaces. Needed in generics to
402 handle formals that implement interfaces.
403 (Derive_Subprograms): Add assertion for derivation of tagged types that
404 do not cover interfaces. For generics, complete code that handles
405 derivation of type that covers interfaces because the previous
406 condition was weak (it required only name consistency; arguments were
407 not checked). Add new code to locate primitives covering interfaces
408 defined in generic units or instantiatons.
409 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
410 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
411 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
412 interfaces that are parents of the type because they share the primary
414 (Register_Primitive): Do not register primitives of interfaces that
415 are parents of the type.
416 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
417 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
418 primitives skip primitives of interfaces that are parents of the type.
420 2010-06-23 Ed Schonberg <schonberg@adacore.com>
422 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
423 attribute cannot be constant-folded if an index type is a formal type,
424 or is derived from one.
425 * checks.adb (Determine_Range): ditto.
427 2010-06-23 Arnaud Charlet <charlet@adacore.com>
429 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
431 2010-06-23 Bob Duff <duff@adacore.com>
433 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
434 (Insert): Disallow nul characters.
435 (misc output routines): Assert no nul characters.
437 2010-06-23 Ed Schonberg <schonberg@adacore.com>
439 * exp_ch4.adb: Use predefined unsigned type in all cases.
441 2010-06-23 Bob Duff <duff@adacore.com>
443 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
444 * g-pehage.ads: Minor comment fixes.
445 * g-pehage.adb: Minor: Add some additional debugging printouts under
448 2010-06-23 Robert Dewar <dewar@adacore.com>
450 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
451 (Worse_Choice): Always prefer Pure/Preelab.
453 2010-06-23 Vincent Celier <celier@adacore.com>
455 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
457 2010-06-23 Robert Dewar <dewar@adacore.com>
459 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
460 checking returns in generic case.
461 (Check_Missing_Return): New procedure.
463 2010-06-23 Robert Dewar <dewar@adacore.com>
465 * bindgen.adb, switch-b.adb: Minor reformatting.
467 2010-06-23 Javier Miranda <miranda@adacore.com>
469 * frontend.adb (Frontend): Add call to initialize the new package
471 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
473 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
474 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
476 * exp_util.adb (Insert_Actions): Remove code for
477 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
478 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
479 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
480 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
481 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
482 * sinfo.ads (SCIL_Related_Node): Field removed.
483 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
484 (N_SCIL_Tag_Init): Node removed.
485 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
486 (Check_SCIL_Node): New implementation.
487 (Find_SCIL_Node): Removed.
488 * sem.adb (Analyze): Remove management of
489 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
490 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
492 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
493 Set_SCIL_Related_Node and avoid adding the SCIL node before the
494 referenced node using Insert_Action because this is not longer required.
495 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
496 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
497 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
498 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
499 because we no longer require to generate the SCIL node before the call.
500 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
501 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
502 nodes before the referenced node using Insert_Action because this
503 is not longer required.
504 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
505 update the SCIL_Node field.
506 * sprint.adb (Sprint_Node_Actual): Remove code for
507 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
508 * treepr.adb (Print_Node): Print the SCIL node field (if available).
509 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
511 * scil_ll.ads, scil_ll.adb: New files.
512 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
515 2010-06-23 Robert Dewar <dewar@adacore.com>
517 * sem_ch6.adb: Minor reformatting.
519 2010-06-23 Doug Rupp <rupp@adacore.com>
521 * bindusg.adb (Display): Write -Hnn line.
522 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
524 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
525 valid values to 32 and 64.
526 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
527 ENABLE, DISABLE as valid settings.
528 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
529 * opt.ads (Heap_Size): New global variable.
530 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
531 TARGET_MALLOC64 check. Fix comment.
533 2010-06-23 Robert Dewar <dewar@adacore.com>
535 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
536 reformatting. Add comments.
537 * errout.adb (Finalize): Properly adjust warning count when deleting
540 2010-06-22 Robert Dewar <dewar@adacore.com>
542 * errout.adb (Finalize): Set Prev pointers.
543 (Finalize): Delete continuations for deletion by warnings off(str).
544 * erroutc.ads: Add Prev pointer to error message structure.
546 2010-06-22 Ed Schonberg <schonberg@adacore.com>
548 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
549 child unit, examine context of parent units to locate instantiated
550 generics whose bodies may be needed.
551 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
552 with_clause for the instantiated generic, examine the context of its
553 parents, to set Withed_Body flag, so that it can be visited earlier.
554 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
555 an unsigned type, use a type of the proper size for the intermediate
556 value, to prevent alignment problems on unchecked conversion.
558 2010-06-22 Geert Bosch <bosch@adacore.com>
560 * s-rannum.ads Change Generator type to be self-referential to allow
561 Random to update its argument. Use "in" mode for the generator in the
562 Reset procedures to allow them to be called from the Ada.Numerics
563 packages without tricks.
564 * s-rannum.adb: Use the self-referencing argument to get write access
565 to the internal state of the random generator.
566 * a-nudira.ads: Make Generator a derived type of
567 System.Random_Numbers.Generator.
568 * a-nudira.adb: Remove use of 'Unrestricted_Access.
569 Put subprograms in alpha order and add headers.
570 * g-mbdira.ads: Change Generator type to be self-referential.
571 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
573 2010-06-22 Robert Dewar <dewar@adacore.com>
575 * freeze.adb: Minor reformatting
576 Minor code reorganization (use Nkind_In and Ekind_In).
578 2010-06-22 Bob Duff <duff@adacore.com>
580 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
581 -gnatc when a file is compiled that we cannot generate code for, not
582 helpful and confusing.
584 2010-06-22 Vincent Celier <celier@adacore.com>
586 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
589 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
591 * s-rannum.adb: Replace constants with commented symbols.
592 * s-rannum.ads: Explain significance of the initial value of the data
595 2010-06-22 Ed Schonberg <schonberg@adacore.com>
597 * a-ngcoty.adb: Clarify comment.
599 2010-06-22 Gary Dismukes <dismukes@adacore.com>
601 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
602 expansion for indexing packed arrays with small power-of-2 component
603 sizes when the target is AAMP.
604 (Expand_Packed_Element_Reference): Return without expansion for
605 indexing packed arrays with small power-of-2 component sizes when the
608 2010-06-22 Geert Bosch <bosch@adacore.com>
610 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
613 2010-06-22 Robert Dewar <dewar@adacore.com>
615 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
618 2010-06-22 Doug Rupp <rupp@adacore.com>
620 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
622 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
623 (pragma Ident): Add a default ident string in the private part.
625 2010-06-22 Robert Dewar <dewar@adacore.com>
627 * cstand.adb: Minor reformatting.
629 2010-06-22 Ed Schonberg <schonberg@adacore.com>
631 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
632 recognize the Shift and Rotation intrinsics that are known to the
633 compiler but have no interface name.
635 2010-06-22 Geert Bosch <bosch@adacore.com>
637 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
638 scaling in case of overflow or NaN results.
640 2010-06-22 Robert Dewar <dewar@adacore.com>
642 * cstand.adb: Complete previous change.
643 * g-dirope.ads: Add comment.
644 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
646 2010-06-22 Ed Schonberg <schonberg@adacore.com>
648 * cstand.adb: Add tree nodes for pragma Pack on string types.
650 2010-06-22 Javier Miranda <miranda@adacore.com>
652 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
653 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
654 formal of a primitive.
655 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
656 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
657 formal of a primitive.
658 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
659 to obtain the last formal of a primitive.
661 2010-06-22 Geert Bosch <bosch@adacore.com>
663 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
664 depending on __EMX__ or MSDOS being defined.
665 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
666 * a-excpol-abort.adb: Update comment indicating users of the file.
667 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
669 * env.c: Remove empty conditional for MSDOS.
670 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
673 2010-06-22 Robert Dewar <dewar@adacore.com>
675 * s-rannum.adb: Minor reformatting.
677 2010-06-22 Javier Miranda <miranda@adacore.com>
679 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
680 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
681 package Sem_Util to package Sem_Aux.
683 2010-06-22 Javier Miranda <miranda@adacore.com>
685 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
686 remove useless restriction on imported routines when building the
689 2010-06-22 Robert Dewar <dewar@adacore.com>
691 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
694 2010-06-22 Javier Miranda <miranda@adacore.com>
696 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
697 generic subprogram declarations to ensure proper context. Add missing
698 support for generic actuals.
699 (Try_Primitive_Operation): Add missing support for concurrent types that
700 have no Corresponding_Record_Type. Required to diagnose errors compiling
701 generics or when compiling with no code generation (-gnatc).
702 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
703 the corresponding record type.
704 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
705 documentation. Do minimum decoration when processing a primitive of a
706 concurrent tagged type that covers interfaces. Required to diagnose
707 errors in the Object.Operation notation compiling generics or under
709 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
710 propagation of attribute Interface_List to the corresponding record.
711 (Expand_N_Task_Type_Declaration): Code cleanup.
712 (Expand_N_Protected_Type_Declaration): Code cleanup.
714 2010-06-22 Matthew Heaney <heaney@adacore.com>
716 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
718 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
720 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
721 that is able to produce all representable floating-point numbers in the
722 unit interval. Remove template parameter Shift_Right, no longer used.
723 * gnat_rm.texi: Document the period of the pseudo-random number
724 generator under the description of its algorithm.
725 * gcc-interface/Make-lang.in: Update dependencies.
727 2010-06-22 Thomas Quinot <quinot@adacore.com>
729 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
730 reference to discriminant (can be an expanded name as well as an
733 2010-06-22 Ed Schonberg <schonberg@adacore.com>
735 * exp_ch6.adb: Clarify comment.
737 2010-06-22 Geert Bosch <bosch@adacore.com>
739 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
740 with decimal small as decimal types, avoiding floating-point arithmetic.
741 (Has_Decimal_Small): New function.
742 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
744 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
745 callers to call the new function in Einfo that takes the entity as
748 2010-06-22 Robert Dewar <dewar@adacore.com>
750 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
752 2010-06-22 Thomas Quinot <quinot@adacore.com>
754 * sem_elab.adb: Minor reformatting.
756 2010-06-22 Vincent Celier <celier@adacore.com>
758 * gnatsym.adb: Put the object files in the table in increasing
759 aphabetical order of base names.
761 2010-06-22 Ed Schonberg <schonberg@adacore.com>
763 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
764 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
765 the corresponding discriminal within a record declaration.
767 2010-06-22 Thomas Quinot <quinot@adacore.com>
769 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
770 expression referring to a discriminal of the type of the aggregate (not
771 a discriminal of some other unrelated type), and the prefix in the
772 generated selected component must come from Lhs, not Obj.
774 2010-06-22 Thomas Quinot <quinot@adacore.com>
776 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
777 when to freeze the parent type.
779 2010-06-22 Robert Dewar <dewar@adacore.com>
781 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
782 exp_aggr.adb: Minor reformatting.
783 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
784 GNAT.MBSS_Float_Random.
785 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
787 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
789 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
790 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
791 (Random_Float_Template, Random): New method of creating
792 uniform floating-point variables that allow the creation of all machine
795 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
797 2010-06-22 Gary Dismukes <dismukes@adacore.com>
799 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
800 to abstract targets to check that the type is tagged and comes from
801 source, rather than only testing for targets of interface types. Remove
804 2010-06-22 Vincent Celier <celier@adacore.com>
806 * vms_data.ads: Modify the declarations of qualifiers
807 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
810 2010-06-22 Ed Schonberg <schonberg@adacore.com>
812 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
813 expansion is disabled.
815 2010-06-22 Robert Dewar <dewar@adacore.com>
817 * makeusg.adb: Minor reformatting.
819 2010-06-22 Robert Dewar <dewar@adacore.com>
821 * types.ads: (Dint): Removed, no longer used anywhere.
822 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
823 (UI_Mul): Avoid use of UI_From_Dint.
824 (UI_From_Dint): Removed, not used.
825 * uintp.ads (UI_From_Dint): Removed, not used.
826 (Uint_Min/Max_Simple_Mul): New constants.
828 2010-06-22 Vincent Celier <celier@adacore.com>
830 * clean.adb (Parse_Cmd_Line): Recognize switch
831 --unchecked-shared-lib-imports.
832 (Usage): Add line for switch --unchecked-shared-lib-imports
833 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
834 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
836 * switch-m.adb (Scan_Make_Switches): Recognize switch
837 --unchecked-shared-lib-imports.
838 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
839 * gnat_ugn.texi: Add documentation for new switch
840 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
842 2010-06-22 Javier Miranda <miranda@adacore.com>
844 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
845 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
846 this patch replaces duplication of code that traverses the chain of
847 aliased primitives by a call to routine Ultimate_Alias that
848 provides this functionality.
850 2010-06-22 Arnaud Charlet <charlet@adacore.com>
852 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
853 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
856 2010-06-22 Thomas Quinot <quinot@adacore.com>
858 * einfo.ads: Minor reformatting.
860 2010-06-22 Javier Miranda <miranda@adacore.com>
862 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
863 eliminated primitives.
864 (Make_DT): Avoid referencing eliminated primitives.
865 (Register_Primitive): Do not register eliminated primitives in the
866 dispatch table. Required to add this functionality when the program is
867 compiled without static dispatch tables (-gnatd.t)
869 2010-06-22 Emmanuel Briot <briot@adacore.com>
871 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
872 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
873 warnings on use of internal GNAT units.
875 2010-06-22 Jose Ruiz <ruiz@adacore.com>
877 * s-taprop-vxworks.adb (Set_Priority): Update comments.
879 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
881 * s-rannum.adb: Make stylistic change to remove mystery constant in
882 Extract_Value. Image_Numeral_Length: new symbolic constant.
884 2010-06-22 Ed Schonberg <schonberg@adacore.com>
886 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
887 Is_Synchronized_Interface, Is_Task_Interface into computable
888 predicates, to free three flags in entity nodes.
889 * sem_ch3.adb: Remove setting of these flags.
891 2010-06-22 Robert Dewar <dewar@adacore.com>
893 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
895 * s-taprop-vxworks.adb: Add comment for Set_Priority.
896 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
897 * projects.texi: Move @cindex to the left margin, since otherwise we
898 are missing entries in the index.
900 2010-06-22 Emmanuel Briot <briot@adacore.com>
902 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
903 packages from the GNAT hierarchy instead of System when possible.
904 * gcc-interface/Make-lang.in: Update dependencies.
906 2010-06-22 Jose Ruiz <ruiz@adacore.com>
908 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
909 previously in place to reorder the ready queue when a task drops its
910 priority due to the loss of inherited priority.
912 2010-06-22 Vincent Celier <celier@adacore.com>
914 * projects.texi: Minor spelling error fixes.
917 2010-06-22 Emmanuel Briot <briot@adacore.com>
919 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
920 warnings for some with clauses.
922 2010-06-22 Robert Dewar <dewar@adacore.com>
924 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
925 test to catch more cases where first subtype is the results we want.
926 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
927 error case, since Errout will now handle this correctly.
928 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
931 2010-06-22 Arnaud Charlet <charlet@adacore.com>
933 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
934 when calling Make_Temporary.
936 2010-06-22 Ed Schonberg <schonberg@adacore.com>
938 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
939 subprogram can be associated with an entry body.
941 2010-06-22 Robert Dewar <dewar@adacore.com>
943 * scos.ads: Add note on membership test handling.
945 2010-06-22 Vincent Celier <celier@adacore.com>
947 * projects.texi: Minor spelling fixes.
950 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
952 * s-rannum.adb: Correct off-by-one error in Extract_Value.
954 2010-06-22 Vincent Celier <celier@adacore.com>
956 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
958 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
959 gcc command if it is too long.
961 2010-06-22 Robert Dewar <dewar@adacore.com>
963 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
965 2010-06-22 Arnaud Charlet <charlet@adacore.com>
967 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
968 calling Make_Temporary.
970 2010-06-22 Robert Dewar <dewar@adacore.com>
972 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
974 2010-06-22 Ed Schonberg <schonberg@adacore.com>
976 * sem_res.adb: Additional special-case for VMS.
978 2010-06-22 Vincent Celier <celier@adacore.com>
980 * gnatsym.adb: Minor comment fix.
982 2010-06-22 Vincent Celier <celier@adacore.com>
984 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
986 2010-06-22 Robert Dewar <dewar@adacore.com>
988 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
989 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
990 Ada 95 mode as an implementation defined attribute.
992 2010-06-22 Vincent Celier <celier@adacore.com>
994 * bindusg.adb (Display): Update line for -R
995 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
996 generated files when -R is used.
998 2010-06-22 Vincent Celier <celier@adacore.com>
1000 * prj-nmsc.adb (Lib_Data_Table): New table.
1001 (Check_Library_Attributes): Check if the same library name is used in
1002 two different projects that do not extend each other.
1004 2010-06-22 Robert Dewar <dewar@adacore.com>
1006 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1008 2010-06-22 Vincent Celier <celier@adacore.com>
1010 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1011 empty, make it the current working directory.
1013 2010-06-22 Thomas Quinot <quinot@adacore.com>
1015 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1016 private type with discriminants, make sure the parent type is frozen.
1018 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1020 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1021 with packed array references specially.
1022 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1023 to a component of a bit packed array if it is the prefix of 'Bit.
1024 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1025 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
1026 'Bit reference, where the prefix involves a packed array reference.
1027 (Get_Base_And_Bit_Offset): New helper, extracted from...
1028 (Expand_Packed_Address_Reference): ...here. Call above procedure to
1029 get the outer object and offset expression.
1031 2010-06-22 Thomas Quinot <quinot@adacore.com>
1033 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1034 * einfo.adb (Related_Expression, Set_Related_Expression): Add
1037 2010-06-22 Javier Miranda <miranda@adacore.com>
1039 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1040 reorganization to properly check if the operation has been inherited as
1041 an abstract operation.
1043 2010-06-22 Ed Falis <falis@adacore.com>
1045 * s-osinte-vxworks.ads: Complete previous change.
1047 2010-06-22 Thomas Quinot <quinot@adacore.com>
1049 * sem_res.adb: Add comment.
1050 * projects.texi, gnat_ugn.texi: Remove macro.
1052 2010-06-22 Vincent Celier <celier@adacore.com>
1054 * prj-attr.adb: Remove project level attribute Main_Language.
1056 2010-06-22 Robert Dewar <dewar@adacore.com>
1058 * switch-b.adb, osint-b.adb: Minor reformatting.
1060 2010-06-22 Pascal Obry <obry@adacore.com>
1062 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1063 vector if previous send was not fully successful. If only part of
1064 the vector data was sent, we exit the loop.
1066 2010-06-22 Thomas Quinot <quinot@adacore.com>
1068 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1069 error reporting with generic types.
1071 2010-06-22 Thomas Quinot <quinot@adacore.com>
1073 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1074 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1075 vms_data.ads: Add a new command line switch -A to gnatbind to output
1076 the list of all ALI files for the partition.
1078 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1080 * s-osinte-vxworks.ads: Fix casing.
1081 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1082 change: Interfaces.C does not provide a long_long type.
1084 2010-06-22 Emmanuel Briot <briot@adacore.com>
1086 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1087 native user's guide, since this document contains the two versions.
1088 * gcc-interface/Make-lang.in: Update doc dependencies.
1090 2010-06-22 Robert Dewar <dewar@adacore.com>
1092 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
1094 2010-06-22 Emmanuel Briot <briot@adacore.com>
1096 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1097 not build this file on its own (only through gnat_ugn.texi).
1098 Remove macro definitions and insert simpler version in gnat_ugn.texi.
1100 2010-06-22 Robert Dewar <dewar@adacore.com>
1102 * ali-util.ads: Minor comment update.
1103 * g-socthi-mingw.adb: Minor reformatting.
1105 2010-06-22 Ed Falis <falis@adacore.com>
1107 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1108 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1109 for specific versions of VxWorks.
1111 2010-06-22 Emmanuel Briot <briot@adacore.com>
1113 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1114 related sections from user's guide and reference manual, since they
1115 have now been merged together into a separate document (projects.texi).
1116 This removes a lot of duplication where attributes where described
1118 The grammar for the project files is now in each of the sections
1119 (packages,expressions,...) instead of being duplicates in two other
1120 sections (one in the user's guide that contained the full grammar,
1121 and various sections in the rm that contained extracts of the same
1123 Added the full list of all supported attributes, since existing lists
1125 Rename "associative array" into "indexed attribute"
1126 Remove sections that were duplicates ("External References in
1127 Project Files" and "External Values", and "Project Extensions"
1128 for instance). The list of valid packages in project files is now in
1131 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1133 * sem_ch3.adb (Add_Internal_Interface_Entities): If
1134 Find_Primitive_Covering_Interface does not find the operation, it may
1135 be because of a name conflict between the inherited operation and a
1136 local non-overloadable name. In that case look for the operation among
1137 the primitive operations of the type. This search must succeed
1138 regardless of visibility.
1140 2010-06-22 Pascal Obry <obry@adacore.com>
1142 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1143 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1146 2010-06-22 Robert Dewar <dewar@adacore.com>
1148 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1150 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1152 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1154 * s-intman-vxworks.ads: Code clean up.
1156 2010-06-22 Thomas Quinot <quinot@adacore.com>
1158 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1159 dereference, construct actual subtype of designated object to generate
1160 proper bounds checks.
1162 2010-06-22 Thomas Quinot <quinot@adacore.com>
1164 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1165 Read_Withed_ALIs, which is more descriptive.
1167 2010-06-22 Pascal Obry <obry@adacore.com>
1169 * g-sothco.ads: Minor reformatting.
1170 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1171 C_Sendmsg implementation.
1172 (C_Sendmsg): Do not use lock (not needed).
1173 (C_Recvmsg): Likewise and also do not wait for incoming data.
1175 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1177 * uintp.adb: Fix scope error in operator call.
1179 2010-06-22 Vincent Celier <celier@adacore.com>
1181 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1182 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1183 autoconfiguration is needed, fail indicating that no config project
1184 file can be found, as there is no autoconfiguration on VMS.
1186 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1188 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1189 for an operator in a functional notation, when operands are universal.
1191 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1193 * gcc-interface/Make-lang.in: Update dependencies.
1195 2010-06-22 Robert Dewar <dewar@adacore.com>
1197 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1199 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1200 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1202 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1205 2010-06-22 Vincent Celier <celier@adacore.com>
1207 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1208 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1210 2010-06-22 Pascal Obry <obry@adacore.com>
1212 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1214 (C_Recvmsg): Make sure the routine is atomic. Also fully
1215 fill vectors in the proper order.
1216 (C_Sendmsg): Make sure the routine is atomic.
1218 2010-06-22 Robert Dewar <dewar@adacore.com>
1220 * sem_ch8.adb: Update comment.
1221 * sem_res.adb: Minor code reorganization (use Ekind_In).
1223 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1225 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1226 name is a call, use the number of actuals to determine whether this is
1227 a binary or unary operator, rather than relying on later information
1228 to resolve the overload.
1230 2010-06-22 Robert Dewar <dewar@adacore.com>
1232 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1234 2010-06-22 Robert Dewar <dewar@adacore.com>
1236 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1237 * sem_eval.adb: Minor reformatting.
1239 2010-06-22 Vincent Celier <celier@adacore.com>
1241 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1242 to gnatlink, except on Open VMS.
1243 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1244 object directories if -nostdlib is used.
1246 2010-06-22 Robert Dewar <dewar@adacore.com>
1248 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1249 * sem_eval.adb: Minor reformatting.
1251 2010-06-22 Robert Dewar <dewar@adacore.com>
1253 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1254 * exp_aggr.adb: Minor comment changes and reformatting.
1255 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1256 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1258 2010-06-22 Thomas Quinot <quinot@adacore.com>
1260 * sem_util.adb (Build_Actual_Subtype): Record original expression in
1261 Related_Expression attribute of the constructed subtype.
1262 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1263 Node24 on types for...
1264 (Related_Expression): Make attribute available on types as well.
1266 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1268 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1269 Directly_Designated_Type when the type argument is an access type.
1270 (Find_Interface_Tag): Retrieve Designated_Type instead of
1271 Directly_Designated_Type when the type argument is an access type.
1272 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1273 Directly_Designated_Type of each access discriminant.
1274 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1275 instead of Directly_Designated_Type when the operand and target types
1278 2010-06-22 Thomas Quinot <quinot@adacore.com>
1280 * exp_aggr.adb (Flatten): Return False if one choice is statically
1281 known to be out of bounds.
1283 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1285 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1286 a parameterless function call, preserve parentheses of original
1287 expression, for proper handling by pretty printer.
1288 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1289 procedure, to handle quietly identifiers that have no entity names.
1290 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1291 elsif_part is missing, it has been rewritten as a nested if, and there
1292 is no useful information on the current value of the variable.
1294 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1296 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1297 discriminals to the current scope.
1298 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1299 scope, which could overwrite a different already set value.
1301 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1303 * sem_res.adb (Valid_Conversion): If expression is a predefined
1304 operator, use sloc of type of interpretation to improve error message
1305 when operand is of some derived type.
1306 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1308 2010-06-22 Emmanuel Briot <briot@adacore.com>
1310 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1311 that it can set out parameters as well. When a process has died, reset
1312 its Input_Fd to Invalid_Fd, so that when using multiple processes we
1313 can find out which process has died.
1315 2010-06-22 Thomas Quinot <quinot@adacore.com>
1317 * sem_eval.adb (Find_Universal_Operator_Type): New
1318 subprogram to identify the operand type of an operator on universal
1319 operands, when an explicit scope indication is present. Diagnose the
1320 case where such a call is ambiguous.
1321 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1322 Use the above to identify the operand type so it can be properly frozen.
1323 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1324 type, done in an arbitrary, possibly incorrect type (the presence of
1325 some numeric type in the scope is checked for legality, but when more
1326 than one such type is in the scope, we just pick a random one, not
1327 necessarily the expected one).
1328 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1331 2010-06-22 Robert Dewar <dewar@adacore.com>
1333 * sem_eval.adb: Minor reformatting.
1335 2010-06-22 Robert Dewar <dewar@adacore.com>
1337 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1338 Expression_With_Actions to clean up the code generated when folding
1339 constant expressions.
1341 2010-06-22 Vincent Celier <celier@adacore.com>
1343 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1346 2010-06-22 Vincent Celier <celier@adacore.com>
1348 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1349 found, check if it's path has aready been found, whatever its index.
1351 2010-06-22 Robert Dewar <dewar@adacore.com>
1353 * atree.adb, gnatbind.adb: Minor reformatting.
1354 Minor code reorganization.
1356 2010-06-21 Robert Dewar <dewar@adacore.com>
1358 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1359 known at compile time.
1361 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1363 * atree.adb: Fix comment typo.
1365 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1367 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1368 whether a universal arithmetic expression in a conversion, which is
1369 rewritten from a function call with an expanded name, is ambiguous.
1371 2010-06-21 Vincent Celier <celier@adacore.com>
1373 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1374 source files in specified list of sources.
1375 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1377 (Add_Source): Set the Location of the new source
1378 (Process_Exceptions_File_Based): Call Add_Source with the Location
1379 (Get_Sources_From_File): If an exception is found, set its Listed to
1381 (Find_Sources): When Source_Files is specified, if an exception is
1382 found, set its Listed to True. Remove any exception that is not in a
1383 specified list of sources.
1384 * prj.ads (Source_Data): New component Location
1386 2010-06-21 Vincent Celier <celier@adacore.com>
1388 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1390 2010-06-21 Thomas Quinot <quinot@adacore.com>
1392 * sem_res.adb: Minor reformatting.
1393 * atree.adb: New debugging hook "rr" for node rewrites.
1395 2010-06-21 Robert Dewar <dewar@adacore.com>
1397 * g-expect.ads, g-expect.adb: Minor reformatting.
1399 2010-06-21 Emmanuel Briot <briot@adacore.com>
1401 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1403 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1405 * gcc-interface/Make-lang.in: Update dependencies.
1407 2010-06-21 Thomas Quinot <quinot@adacore.com>
1409 * bindgen.ads: Update comments.
1411 2010-06-21 Vincent Celier <celier@adacore.com>
1413 * gnatbind.adb: Suppress dupicates when listing the sources in the
1414 closure (switch -R).
1416 2010-06-21 Emmanuel Briot <briot@adacore.com>
1418 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1421 2010-06-21 Emmanuel Briot <briot@adacore.com>
1423 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1425 (Expect_Internal): No longer raises an exception, so that it can set
1426 out parameters as well. When a process has died, reset its Input_Fd
1427 to Invalid_Fd, so that when using multiple processes we can find out
1428 which process has died.
1430 2010-06-21 Robert Dewar <dewar@adacore.com>
1432 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1433 checks.adb, sem_res.adb: Minor reformatting. Add comments.
1435 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1437 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1438 rederivation associated with a full declaration in a private part, and
1439 there is a partial view that derives the same parent subprogram, the
1440 new entity does not become visible. This check must be applied to
1441 interface operations as well.
1443 2010-06-21 Thomas Quinot <quinot@adacore.com>
1445 * checks.adb: Add comments.
1446 * prj-nmsc.adb: Minor reformatting.
1448 2010-06-21 Thomas Quinot <quinot@adacore.com>
1450 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1451 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1452 extract bounds, to ensure that we get the proper captured values,
1453 rather than an expression that may have changed value since the point
1454 where the subtype was elaborated.
1455 (Find_Body_Discriminal): New utility subprogram to share code between...
1456 (Eval_Attribute): For the case of a subtype bound that references a
1457 discriminant of the current concurrent type, insert appropriate
1458 discriminal reference.
1459 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1460 requeue to an entry in a family in the current task, use corresponding
1462 (Analyze_Accept_Statement): Rely on expansion of attribute references
1463 to insert proper discriminal references in range check for entry in
1466 2010-06-21 Emmanuel Briot <briot@adacore.com>
1468 * s-regpat.adb (Compile): Fix handling of big patterns.
1470 2010-06-21 Robert Dewar <dewar@adacore.com>
1472 * a-tifiio.adb: Minor reformatting.
1474 2010-06-21 Pascal Obry <obry@adacore.com>
1476 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1479 2010-06-21 Javier Miranda <miranda@adacore.com>
1481 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1484 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1486 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1487 to hold the result, indicate that the target of the declaration does
1488 not need an initialization, to prevent spurious errors when
1489 Initialize_Scalars is enabled.
1491 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1493 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1494 Fore is not bound by line length. The Fore parameter of the internal
1495 procedure that performs the operation is an integer.
1497 2010-06-21 Thomas Quinot <quinot@adacore.com>
1499 * sem_res.adb, checks.adb: Minor reformatting.
1501 2010-06-21 Emmanuel Briot <briot@adacore.com>
1503 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1505 (Insert_Operator_Before): New subprogram, avoids duplicated code
1506 (Compile): Avoid doing two compilations when the pattern matcher ends
1509 2010-06-21 Emmanuel Briot <briot@adacore.com>
1511 * s-regpat.adb: Improve debug traces
1512 (Dump): Change output format to keep it smaller.
1514 2010-06-21 Javier Miranda <miranda@adacore.com>
1516 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1517 output to the output file when this routine completes its work.
1519 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
1521 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1522 for loop. Call build_constructor_from_list directly in the CICO case.
1524 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1526 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1527 declaration appears in the same unit and ealier than the renamed
1528 entity, retain generated body to prevent order-of-elaboration issues in
1531 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1533 * s-tpoben.adb: Update comments.
1535 2010-06-18 Robert Dewar <dewar@adacore.com>
1537 * debug.adb: Minor comment change.
1539 2010-06-18 Javier Miranda <miranda@adacore.com>
1541 * exp_cg.adb: Code clean up.
1542 * debug.adb: Complete documentation of switch -gnatd.Z.
1543 * gcc-interface/misc.c (callgraph_info_file): Declare.
1545 2010-06-18 Javier Miranda <miranda@adacore.com>
1547 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1549 2010-06-18 Thomas Quinot <quinot@adacore.com>
1551 * sprint.ads: Minor reformatting.
1552 * output.ads: Update obsolete comment.
1554 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1556 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
1557 an external intrinsic operation (e.g. a GCC numeric function) indicate
1558 that the renaming entity has the same characteristics, so a call to it
1559 is properly expanded.
1561 2010-06-18 Javier Miranda <miranda@adacore.com>
1563 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
1564 support for dispatch table/callgraph info generation.
1565 * gcc-interface/Make-lang.in: Update dependencies.
1567 2010-06-18 Robert Dewar <dewar@adacore.com>
1569 * exp_ch6.adb: Minor reformatting.
1570 * gnatname.adb: Add comment.
1572 2010-06-18 Vincent Celier <celier@adacore.com>
1574 * gnatname.adb (Scan_Args): When --and is used, make sure that the
1575 dynamic tables in the newly allocated Argument_Data are properly
1578 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1580 * gnat1drv.adb: Fix comment.
1582 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1584 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
1585 renaming, re-expand the call with the renamed subprogram if that one
1586 is marked inlined as well.
1588 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1590 * gnat1drv.adb (Adjust_Global_Switches): Enable
1591 Use_Expression_With_Actions for AAMP and VM targets.
1593 2010-06-18 Vincent Celier <celier@adacore.com>
1595 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
1597 2010-06-18 Thomas Quinot <quinot@adacore.com>
1599 * exp_ch4.adb: Minor reformatting.
1601 2010-06-18 Javier Miranda <miranda@adacore.com>
1603 * debug.ads Add documentation on -gnatd.Z.
1605 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1607 * sem_elim.adb: Proper error message on improperly eliminated instances
1609 2010-06-18 Vincent Celier <celier@adacore.com>
1611 * prj.ads (Response_File_Format): New value GCC.
1613 2010-06-18 Thomas Quinot <quinot@adacore.com>
1615 * gnat1drv.adb: Minor reformatting.
1617 2010-06-18 Robert Dewar <dewar@adacore.com>
1619 * make.adb, sem_cat.adb: Minor reformatting.
1620 * sem_eval.adb: Fix typos.
1622 2010-06-18 Pascal Obry <obry@adacore.com>
1624 * prj-nmsc.adb: Fix source filenames casing in debug output.
1626 2010-06-18 Robert Dewar <dewar@adacore.com>
1628 * gnatcmd.adb: Minor reformatting.
1630 2010-06-18 Robert Dewar <dewar@adacore.com>
1632 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
1633 condition and both sub-expressions are static (and result is selected
1636 2010-06-18 Robert Dewar <dewar@adacore.com>
1638 * g-pehage.adb: Minor reformatting
1640 2010-06-18 Pascal Obry <obry@adacore.com>
1642 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
1645 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1647 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1648 dependencies. Fix target pairs on darwin.
1649 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
1651 2010-06-18 Pascal Obry <obry@adacore.com>
1653 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
1655 2010-06-18 Vincent Celier <celier@adacore.com>
1657 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
1658 configuration pragmas file and, if -U is not used, for a local one.
1660 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1662 * sem_elim.adb (Check_Eliminated): Use full information on entity name
1663 when it is given in the pragma by a selected component.
1664 (Check_For_Eliminated_Subprogram): Do no emit error if within a
1665 instance body that is itself within a generic unit.
1666 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
1667 eliminated, mark as well the anonymous subprogram that is its alias
1668 and appears within the wrapper package.
1670 2010-06-18 Bob Duff <duff@adacore.com>
1672 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
1673 Raise an exception if the output file cannot be opened. Add comments.
1675 2010-06-18 Thomas Quinot <quinot@adacore.com>
1677 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
1678 not illegal per E.2.2(7) if it occurs in the private part of a
1681 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1683 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
1684 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
1685 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
1686 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
1687 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
1688 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
1689 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
1690 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
1691 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
1692 errout.ads: Update comments. Minor reformatting.
1694 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
1695 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
1696 a-strunb.adb (Big_String. Big_String_Access): New type.
1698 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
1699 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
1700 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
1702 2010-06-18 Geert Bosch <bosch@adacore.com>
1704 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
1707 2010-06-18 Robert Dewar <dewar@adacore.com>
1709 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
1712 2010-06-18 Robert Dewar <dewar@adacore.com>
1714 * sprint.adb: Minor format change for N_Expression_With_Actions.
1715 * repinfo.adb: Minor reformatting.
1717 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1719 * sem_elim.adb (Check_Eliminated): If within a subunit, use
1720 Defining_Entity to obtain the name of the entity in the proper body, to
1721 properly handle both separate packages and subprograms.
1723 2010-06-18 Emmanuel Briot <briot@adacore.com>
1725 * prj-nmsc.adb (Check_File): New parameter Display_Path.
1727 2010-06-18 Thomas Quinot <quinot@adacore.com>
1729 * g-socket.adb, g-socket.ads (Null_Selector): New object.
1731 2010-06-18 Pascal Obry <obry@adacore.com>
1733 * gnat_ugn.texi: Minor clarification.
1735 2010-06-18 Emmanuel Briot <briot@adacore.com>
1737 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
1738 code when using the project dir as the source dir.
1739 (Search_Directories): use the normalized name for the source directory,
1740 where symbolic names have potentially been resolved.
1742 2010-06-18 Robert Dewar <dewar@adacore.com>
1744 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
1745 when we create N_Expression_With_Actions node.
1746 (Expand_Short_Circuit): Ditto.
1748 2010-06-18 Robert Dewar <dewar@adacore.com>
1750 * exp_util.adb: Minor reformatting.
1752 2010-06-18 Thomas Quinot <quinot@adacore.com>
1754 * types.ads: Clean up obsolete comments
1755 * tbuild.adb: Minor reformatting.
1756 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
1757 exp_strm.adb, aa_drive.adb: Minor reformatting.
1758 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
1759 intrinsic with an Interface_Name denotes an imported back-end builtin,
1760 and must be rewritten into a call, not left in the tree as an operator,
1761 so return False in that case.
1763 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1765 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
1767 2010-06-18 Robert Dewar <dewar@adacore.com>
1769 * scos.ads: Add proposed output for case expression
1771 2010-06-18 Jose Ruiz <ruiz@adacore.com>
1773 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
1774 RTSS modules, we need to use the Microsoft linker.
1776 2010-06-18 Robert Dewar <dewar@adacore.com>
1778 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
1779 expression (cannot count on a particular branch being executed).
1780 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
1781 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
1782 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
1783 within case expression.
1784 * expander.adb (Expand): Add call to Expand_N_Case_Expression
1785 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
1786 (P_Case_Expression): New procedure
1787 (P_Case_Expression_Alternative): New procedure
1788 * par.adb (P_Case_Expression): New procedure
1789 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
1791 * sem.adb (Analyze): Add call to Analyze_Case_Expression
1792 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
1793 this is a documentation change only.
1794 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
1795 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
1797 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
1798 * sem_res.adb (Resolve_Case_Expression): New procedure.
1799 * sem_scil.adb (Find_SCIL_Node): Add processing for
1800 N_Case_Expression_Alternative.
1801 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
1802 (N_Case_Expression_Alternative): New node.
1803 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
1804 N_Case_Expression and N_Case_Expression_Alternative.
1806 2010-06-18 Robert Dewar <dewar@adacore.com>
1808 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
1809 * gnat1drv.adb: Fix typo.
1811 2010-06-18 Robert Dewar <dewar@adacore.com>
1813 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
1815 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
1816 gnat style for -gnatg.
1817 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
1819 2010-06-18 Thomas Quinot <quinot@adacore.com>
1821 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
1823 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
1826 2010-06-18 Robert Dewar <dewar@adacore.com>
1828 * sprint.adb: Minor change in output format for expression wi actions.
1829 * par-ch3.adb: Minor code reorganization. Minor reformatting.
1830 * sem_ch5.adb: Minor comment fix.
1832 2010-06-18 Robert Dewar <dewar@adacore.com>
1834 * debug.adb: New debug flag -gnatd.L to control
1835 Back_End_Handles_Limited_Types.
1836 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
1837 limited case if Back_End_Handles_Limited_Types is True.
1838 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
1839 simplify expansion if Use_Expression_With_Actions is True.
1840 * gnat1drv.adb (Adjust_Global_Switches): Set
1841 Back_End_Handles_Limited_Types.
1842 * opt.ads (Back_End_Handles_Limited_Types): New flag.
1844 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1846 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
1847 intrinsic operator if expansion is not enabled, because in an
1848 instantiation the original operator must be present to verify the
1849 legality of the operation.
1851 2010-06-18 Robert Dewar <dewar@adacore.com>
1853 * exp_disp.adb, sem_ch12.adb: Minor reformatting
1855 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1857 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
1858 the class-wide type for a private extension, and the completion is a
1859 subtype, set the type of the class-wide type to the base type of the
1862 2010-06-18 Robert Dewar <dewar@adacore.com>
1864 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
1865 sem_intr.adb, sem_eval.adb: Minor reformatting
1867 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1869 * sem_type.adb (Is_Ancestor): If either type is private, examine full
1872 2010-06-18 Thomas Quinot <quinot@adacore.com>
1874 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
1875 parameter rather than IN OUT.
1877 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1879 * exp_ch6.adb: Add extra guard.
1881 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1883 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
1884 accessibility level of a function call from the level of the innermost
1885 enclosing dynamic scope.
1886 (Innermost_Master_Scope_Depth): New function to find the depth of the
1887 nearest dynamic scope enclosing a node.
1889 2010-06-18 Tristan Gingold <gingold@adacore.com>
1891 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
1893 2010-06-18 Thomas Quinot <quinot@adacore.com>
1895 * g-socket.ads: Minor reformatting.
1897 2010-06-18 Vincent Celier <celier@adacore.com>
1899 * make.adb (Must_Compile): New Boolean global variable
1900 (Main_On_Command_Line): New Boolean global variable
1901 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
1902 even when the project is externally built.
1903 (Start_Compile_If_Possible): Compile in -aL directories if
1904 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
1905 when the project is externally built.
1906 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
1907 invoked with -f -u and one or several mains on the command line.
1908 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
1909 is specified on the command line.
1911 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1913 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
1914 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
1915 containing extented_return statements.
1916 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
1917 constrained, do not build subtype declaration.
1919 2010-06-18 Robert Dewar <dewar@adacore.com>
1921 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
1922 Warn on assigning to packed atomic component.
1924 2010-06-18 Robert Dewar <dewar@adacore.com>
1926 * sem_util.ads: Minor reformatting
1927 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
1928 Expression_With_Actions).
1929 * snames.ads-tmpl: Minor comment fix
1931 2010-06-18 Robert Dewar <dewar@adacore.com>
1933 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
1934 (Set_Imported): Use Import_Interface_Present to control message output
1935 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
1936 * gnat_rm.texi: Document that we can have pragma Import and pragma
1937 Interface for the same subprogram.
1939 2010-06-18 Robert Dewar <dewar@adacore.com>
1941 * lib-xref.adb (Generate_Reference): Fix bad reference to
1942 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
1944 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
1946 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
1948 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
1949 Use set_gnu_expr_location_from_node to set location information on the
1952 2010-06-17 Arnaud Charlet <charlet@adacore.com>
1954 * gcc-interface/Make-lang.in: Update dependencies.
1956 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1958 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
1961 2010-06-17 Robert Dewar <dewar@adacore.com>
1963 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
1964 style check messages.
1965 * sem_res.adb (Resolve_Call): Don't call
1966 Check_For_Eliminated_Subprogram if we are analyzing within a spec
1969 2010-06-17 Robert Dewar <dewar@adacore.com>
1971 * debug.adb: Add documentation for debug flags .X and .Y
1972 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
1973 Use_Expression_With_Actions.
1974 * gnat1drv.adb (Adjust_Global_Switches): Set
1975 Use_Expression_With_Actions.
1976 * opt.ads (Use_Expression_With_Actions): New switch.
1978 2010-06-17 Robert Dewar <dewar@adacore.com>
1980 * exp_intr.adb: Minor code reorganization (use UI_Max)
1981 * sem_intr.adb: use underlying type to check legality.
1982 * einfo.adb (Known_Static_Esize): False for generic types
1983 (Known_Static_RM_Size): False for generic types
1984 * einfo.ads (Known_Static_Esize): False for generic types
1985 (Known_Static_RM_Size): False for generic types
1987 2010-06-17 Robert Dewar <dewar@adacore.com>
1989 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
1991 2010-06-17 Robert Dewar <dewar@adacore.com>
1993 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
1994 node when expanding short circuit form with actions present for right
1996 * exp_ch4.adb: Minor reformatting
1997 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
1998 right opeand has actions present, and debug flag -gnatd.X is set.
1999 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2001 * nlists.adb (Prepend_List): New procedure
2002 (Prepend_List_To): New procedure
2003 * nlists.ads (Prepend_List): New procedure
2004 (Prepend_List_To): New procedure
2005 * sem.adb: Add processing for Expression_With_Actions
2006 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2007 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2008 * sem_res.adb: Add processing for Expression_With_Actions.
2009 * sem_scil.adb: Add processing for Expression_With_Actions
2010 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2011 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2013 2010-06-17 Doug Rupp <rupp@adacore.com>
2015 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2016 involved both have underlying integer types.
2017 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2018 to an intrinsic operator when the operand types or sizes are not
2020 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2021 64/32 Address/Integer works.
2023 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2025 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2026 that it marks a unit as needed by a spec only if the corresponding
2027 instantiation appears in that spec (and not in the corresponding body).
2028 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2029 in the pragma Eliminate has been parsed as a child unit, but the
2030 current compilation unit is in fact the parent in which the subunit is
2033 2010-06-17 Vincent Celier <celier@adacore.com>
2035 * gnat_rm.texi: Fix typo
2037 2010-06-17 Robert Dewar <dewar@adacore.com>
2039 * sem_util.adb: Minor reformatting
2041 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2043 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2044 instance, the clause now denotes the instance body. Traverse the
2045 corresponding spec because there may be no other dependence that will
2046 force the traversal of its own context.
2048 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2050 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2051 Install_Limited_Context_Clauses, to determine whether a limited_with in
2052 some parent of the current unit designates some other parent, in which
2053 case the limited_with clause must not be installed.
2054 (In_Context): Refine test.
2056 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2058 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2059 type with a dispatching equality operator that is overridden (for a
2060 tagged full type), don't include the overridden equality in the list of
2061 primitives. The overridden equality is detected by testing for an
2062 Aliased field that references the overriding equality.
2064 2010-06-17 Robert Dewar <dewar@adacore.com>
2066 * freeze.adb: Minor reformatting.
2068 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2070 * gnat_ugn.texi: Add a section introducing gdbserver.
2072 2010-06-17 Thomas Quinot <quinot@adacore.com>
2074 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2077 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2079 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2080 constrained discriminated parent that is a private type.
2081 (Analyze_Record_Aggregate): when collecting inherited discriminants,
2082 handle properly an ancestor type that is a constrained private type.
2084 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2086 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2087 protected, use the protected_subprogram_body only if the original
2088 subprogram has not been eliminated.
2090 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2092 * freeze.adb (Freeze_Expression): The designated type of an
2093 access_to_suprogram type can only be frozen if all types in its profile
2096 2010-06-17 Robert Dewar <dewar@adacore.com>
2098 * par.adb: Minor comment fix
2099 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2101 2010-06-17 Doug Rupp <rupp@adacore.com>
2103 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2104 change Address to Short_Address in functions where both must be the
2105 same size for intrinsics to work.
2107 2010-06-17 Thomas Quinot <quinot@adacore.com>
2109 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2110 not denote a (private) component of a protected object.
2112 2010-06-17 Bob Duff <duff@adacore.com>
2114 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2117 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
2119 * gnat_ugn.texi: Update the documentation about GDB re: exception
2122 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2124 * gnatvsn.ads: Bump to 4.6 version.
2126 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2128 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2129 designated type of the generated pointer is the type of the original
2130 expression, not that of the function call itself, because the return
2131 type may be an untagged derived type and the function may be an
2132 inherited operation.
2134 2010-06-17 Robert Dewar <dewar@adacore.com>
2136 * exp_ch4.adb: Minor reformatting.
2138 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2140 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2141 N_Component_Association nodes, to indicate that a component association
2142 of an extension aggregate denotes the value of a discriminant of an
2143 ancestor type that has been constrained by the derivation.
2144 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2145 double expansion of the aggregate appearing in a context that delays
2146 expansion, to prevent double insertion of discriminant values when the
2147 aggregate is reanalyzed.
2149 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2151 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2152 Allocator as the Related_Node of Return_Obj_Access in call to
2153 Make_Temporary below as this would create a sort of infinite
2156 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2158 * gnat_ugn.texi: Update gnatcheck doc.
2160 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2162 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2163 incomplete view of the type that is not tagged, and the full type is a
2164 tagged extension, create class_wide type now, and warn that the
2165 incomplete view should be tagged as well.
2167 2010-06-17 Vincent Celier <celier@adacore.com>
2169 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2170 Update the last line of the usage, indicating what commands do not
2171 accept project file switches.
2172 * vms_conv.adb: Do not issue usage line for GNAT SYNC
2173 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2175 * gnat_ugn.texi: Document the relaxed rules for library directories in
2176 externally built library projects.
2178 2010-06-17 Doug Rupp <rupp@adacore.com>
2180 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2182 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2183 * gcc-interface/Makefile.in: Update VMS target pairs.
2185 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
2187 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2188 compatible with Windows NT 4.0 which doesn't provide this function.
2190 2010-06-17 Vincent Celier <celier@adacore.com>
2192 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2193 different timestamps but the checksum is the same, issue a short
2196 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2198 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2199 it means that we cannot reset interrupt handlers since this would
2200 require potentially sending the abort signal to the Server_Task.
2202 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2204 * exp_ch4.adb: expand NOT for VMS types.
2205 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2207 2010-06-17 Sergey Rybin <rybin@adacore.com>
2209 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2210 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2213 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2215 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2216 protected operation if the subprogram has been eliminated.
2218 2010-06-17 Vincent Celier <celier@adacore.com>
2220 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2221 directories associated with a library to be any directory when the
2222 library project is externally built.
2224 2010-06-17 Vincent Celier <celier@adacore.com>
2226 * make.adb (Check): If switch -m is used, deallocate the memory that
2227 may be allocated when computing the checksum.
2229 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2231 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2232 (C_Sendmsg): Likewise.
2234 2010-06-17 Thomas Quinot <quinot@adacore.com>
2236 * sem_res.adb: Update comments.
2238 2010-06-17 Vincent Celier <celier@adacore.com>
2240 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2242 2010-06-17 Robert Dewar <dewar@adacore.com>
2244 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2245 * layout.adb, freeze.adb: Use Make_Temporary.
2247 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
2249 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2250 .NET/JVM normally as this is now perfectly supported by the backend.
2252 2010-06-17 Pascal Obry <obry@adacore.com>
2254 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2256 2010-06-17 Vincent Celier <celier@adacore.com>
2258 * make.adb (Collect_Arguments_And_Compile): Create include path file
2259 only when -x is specified.
2261 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2263 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2264 Objects_Path, defaulted to True. Only create include path file if
2265 Include_Path is True, only create objects path file if Objects_Path is
2267 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2268 Objects_Path, defaulted to True.
2269 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2272 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2274 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2275 determine whether it has the controlling type, when the formal is an
2278 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2280 * s-crtl.ads (ssize_t): New type.
2281 (read): Fix signature.
2283 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2284 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2285 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2286 (C_Sendmsg): Likewise.
2287 * g-socthi.adb (Syscall_Recvmsg): Likewise.
2288 (Syscall_Sendmsg): Likewise.
2289 (C_Recvmsg): Likewise.
2290 (C_Sendmsg): Likewise.
2291 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
2292 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2293 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2294 (C_Sendmsg): Likewise.
2295 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2296 (C_Sendmsg): Likewise.
2297 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2298 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2299 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2300 (C_Sendmsg): Likewise.
2301 * g-socthi-vms.adb (C_Recvmsg): Likewise.
2302 (C_Sendmsg): Likewise.
2303 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
2304 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2305 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2306 (C_Sendmsg): Likewise.
2307 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2308 (C_Sendmsg): Likewise.
2309 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2310 (Write): Likewise to call 'write'.
2311 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2312 (Write): Use correct type to call System.CRTL.write.
2313 * s-tasdeb.adb (Write): Likewise.
2315 2010-06-17 Vincent Celier <celier@adacore.com>
2317 * prj-proc.adb (Copy_Package_Declarations): Change argument name
2318 Naming_Restricted to Restricted. If Restricted is True, do not copy the
2319 value of attribute Linker_Options.
2321 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2323 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2324 (Case_Statement_to_gnu): Adjust.
2325 (Loop_Statement_to_gnu): Likewise.
2326 (Subprogram_Body_to_gnu): Likewise.
2327 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2328 (Compilation_Unit_to_gnu): Likewise.
2330 2010-06-17 Robert Dewar <dewar@adacore.com>
2332 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2333 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2334 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2335 sem_dist.adb, sem_util.adb: Use Make_Temporary
2336 * itypes.ads, tbuild.ads: Minor comment update
2337 * exp_ch9.adb, exp_dist.adb: Minor reformatting
2339 2010-06-17 Thomas Quinot <quinot@adacore.com>
2341 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2343 2010-06-17 Robert Dewar <dewar@adacore.com>
2345 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2347 2010-06-17 Thomas Quinot <quinot@adacore.com>
2349 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2351 2010-06-17 Robert Dewar <dewar@adacore.com>
2353 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2354 * tbuild.ads (Make_Temporary): More comment updates
2355 * tbuild.adb: Minor reformatting
2357 2010-06-17 Robert Dewar <dewar@adacore.com>
2359 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2360 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2362 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2364 (Make_Temporary): Add more extensive documentation
2366 2010-06-17 Robert Dewar <dewar@adacore.com>
2368 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2369 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
2370 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2371 where the slice's actions are inserted.
2372 (Decompose_Expr): Account for possible rewriting of slice bounds
2373 resulting from side effects suppression caused by the above freezing,
2374 so that folding of bounds is preserved by such rewriting.
2376 2010-06-17 Robert Dewar <dewar@adacore.com>
2378 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2379 * freeze.adb (Freeze_Record_Type): Add call to
2380 Check_Record_Representation_Clause.
2381 * sem_ch13.adb (Check_Record_Representation_Clause): New function
2382 (Analyze_Record_Representation_Clause): Split out overlap code into this
2384 (Check_Component_Overlap): Moved inside
2385 Check_Record_Representation_Clause.
2386 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2388 2010-06-17 Robert Dewar <dewar@adacore.com>
2390 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2392 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2393 sem_eval.adb: Use Ekind_In
2395 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2397 * sem_ch8.adb: better error message for illegal inherited discriminant
2399 2010-06-17 Vincent Celier <celier@adacore.com>
2401 * bindusg.adb: Remove lines for -A and -C
2402 * gnat_ugn.texi: Remove all documentation and examples of switches -A
2403 and -C for gnatbind and gnatlink.
2404 * gnatlink.adb (Usage): Remove lines for -A and -C
2405 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2407 * gcc-interface/Make-lang.in: Update dependencies.
2409 2010-06-17 Vincent Celier <celier@adacore.com>
2411 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2412 local Argument_List variable Args.
2413 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2415 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2416 for subsequent switches in Args.
2417 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2419 * gcc-interface/Make-lang.in: Update dependencies.
2421 2010-06-17 Robert Dewar <dewar@adacore.com>
2423 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2424 Equivalent_Type to match documentation.
2426 2010-06-17 Robert Dewar <dewar@adacore.com>
2428 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2429 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2430 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2432 2010-06-17 Thomas Quinot <quinot@adacore.com>
2434 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2436 2010-06-17 Thomas Quinot <quinot@adacore.com>
2438 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2439 freeze node insertion points.
2441 2010-06-17 Robert Dewar <dewar@adacore.com>
2443 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2444 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2446 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2448 * layout.adb (Layout_Type): Broaden test for setting an array type's
2449 Component_Size to include all scalar types, not just discrete types
2450 (components of real types were missed).
2451 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2452 on the itype created for an index (consistent with Make_Index and
2453 avoids possible Assert_Failures).
2455 2010-06-17 Robert Dewar <dewar@adacore.com>
2457 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2458 * einfo.adb: Minor code reformatting (use Ekind_In)
2460 2010-06-17 Robert Dewar <dewar@adacore.com>
2462 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2465 2010-06-17 Vincent Celier <celier@adacore.com>
2467 * back_end.adb: Minor comment updates
2468 * switch-c.adb: Remove dependencies on gcc C sources
2469 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2472 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2474 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2475 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2476 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2477 Remove use of Node field in SCOs table
2478 (Output_Header): Set 'd' to initially disable pragma entry
2479 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2480 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2481 Use C2 field of pragma decision header to indicate enabled.
2482 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2483 * gcc-interface/Make-lang.in: Update dependencies.
2485 2010-06-17 Vincent Celier <celier@adacore.com>
2487 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2488 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2489 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2490 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2492 * switch-c.adb: Copied a number of global declarations from back_end.adb
2493 (Len_Arg): New function copied from back_end.adb
2494 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2495 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2496 Switch_Subsequently_Cancelled.
2497 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2498 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2499 with -lexc on Tru64.
2501 2010-06-17 Robert Dewar <dewar@adacore.com>
2503 * prj.ads, prj.adb: Minor reformatting
2505 2010-06-17 Thomas Quinot <quinot@adacore.com>
2507 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2508 CP line for a disabled pragma.
2510 2010-06-17 Emmanuel Briot <briot@adacore.com>
2512 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2514 (Process_Declarative_Item): An invalid value in an typed variable
2515 declaration is no longer always fatal.
2517 2010-06-16 Arnaud Charlet <charlet@adacore.com>
2519 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2520 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2523 2010-06-16 Javier Miranda <miranda@adacore.com>
2525 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2526 node referenced by the SCIL node of dispatching "=" to skip the tags
2529 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2531 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2532 to prevent cascaded errors and compilation aborts.
2534 2010-06-16 Robert Dewar <dewar@adacore.com>
2536 * back_end.adb (Switch_Subsequently_Cancelled): New function
2537 Move declarations to package body level to support this change
2538 * back_end.ads (Switch_Subsequently_Cancelled): New function
2539 * gnat_ugn.texi: Document -gnat-p switch
2540 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
2541 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
2542 * usage.adb: Add line for -gnat-p switch
2543 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
2545 2010-06-16 Robert Dewar <dewar@adacore.com>
2547 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2550 2010-06-16 Robert Dewar <dewar@adacore.com>
2552 * exp_disp.adb: Minor reformatting
2554 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2556 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
2557 base type only if it was not previously created for the partial view.
2559 2010-06-16 Thomas Quinot <quinot@adacore.com>
2561 * tbuild.ads: Minor comment fix
2563 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
2565 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
2566 (gnu_except_ptr_stack): Change type to VEC. Update comment.
2567 (gnu_elab_proc_stack): Likewise.
2568 (gnu_return_label_stack): Likewise.
2569 (gnu_loop_label_stack): Likewise.
2570 (gnu_switch_label_stack): Likewise.
2571 (gnu_constraint_label_stack): Likewise.
2572 (gnu_storage_error_label_stack): Likewise.
2573 (gnu_program_error_label_stack): Likewise.
2574 (push_exception_label_stack): Take a VEC ** instead of a tree *.
2575 (push_stack): Likewise. Remove unused second parameter. Update
2577 (pop_stack): Take a VEC * instead of a tree *. Update callers.
2578 (gigi): Initialize stacks as VECs.
2579 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
2580 (Case_Statement_to_gnu): Likewise.
2581 (Subprogram_Body_to_gnu): Likewise.
2582 (call_to_gnu): Likewise.
2583 (Exception_Handler_to_gnu_sjlj): Likewise.
2584 (gnat_to_gnu): Likewise.
2585 (get_exception_label): Likewise.
2587 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2589 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
2590 anonymous base generated when the parent is a constrained discriminated
2591 type, propagate interface list to first subtype because it may appear
2592 in a current instance within the extension part of the derived type
2593 declaration, and its own subtype declaration has not been elaborated
2595 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2596 determine whether it has the controlling type.
2598 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2600 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
2601 raise of CE, SE and PE have the reason correctly set and are properly
2602 expanded before stopping the expansions of .NET/JVM exceptions.
2604 2010-06-14 Robert Dewar <dewar@adacore.com>
2606 * opt.ads (Check_Policy_List): Add some clarifying comments
2607 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
2608 on rewritten Assert pragma.
2610 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2612 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
2613 controlled operations, so that they will be treated as overriding even
2614 if the overridden subprogram is marked Is_Hidden, as long as the
2615 overridden subprogram's parent subprogram is not hidden.
2617 2010-06-14 Robert Dewar <dewar@adacore.com>
2619 * debug.adb: Entry for gnatw.d no longer specific for while loops
2620 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
2621 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
2622 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
2623 new calling sequence to include test for EXIT WHEN.
2624 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
2625 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
2627 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
2629 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
2630 PRAGMA, not to pragma identifier).
2631 (Next_Exit_Statement): New attribute of N_Exit_Statement node
2633 2010-06-14 Robert Dewar <dewar@adacore.com>
2635 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
2638 2010-06-14 Robert Dewar <dewar@adacore.com>
2640 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
2641 missing pragma argument identifier.
2643 2010-06-14 Robert Dewar <dewar@adacore.com>
2645 * atree.ads, atree.adb (Ekind_In): New functions.
2647 2010-06-14 Robert Dewar <dewar@adacore.com>
2649 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
2651 2010-06-14 Robert Dewar <dewar@adacore.com>
2653 * usage.adb (Usage): Redo documentation of -gnatwa.
2655 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2657 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
2658 an untagged incomplete type that is a limited view.
2660 2010-06-14 Sergey Rybin <rybin@adacore.com>
2662 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
2665 2010-06-14 Thomas Quinot <quinot@adacore.com>
2667 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
2668 factoring duplicated code between...
2669 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
2670 * a-envvar.ads: Minor reformatting
2672 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2674 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
2676 (Scan_ALI): Take into account new Visibility field.
2677 (Visibility_Kind): New type.
2678 (Xref_Entity_Record): Replace Lib field by Visibility.
2680 * gcc-interface/Make-lang.in: Update dependencies.
2682 2010-06-14 Pascal Obry <obry@adacore.com>
2684 * raise.h: Remove unused defintions.
2686 2010-06-14 Bob Duff <duff@adacore.com>
2688 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
2689 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
2690 the incorrect error "proper body expected".
2691 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
2692 allowed here" error in case of subunits, which was triggered by the
2693 above change to P_Subunit.
2695 2010-06-14 Sergey Rybin <rybin@adacore.com>
2697 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
2699 2010-06-14 Thomas Quinot <quinot@adacore.com>
2701 * lib-util.adb: Minor code reorganization.
2703 2010-06-14 Robert Dewar <dewar@adacore.com>
2705 * ali.adb (Scan_ALI): Implement reading and storing of N lines
2706 (Known_ALI_Lines): Add entry for 'N' (notes)
2707 * ali.ads (Notes): New table to store Notes information
2708 * alloc.ads: Add entries for Notes table
2709 * lib-util.adb (Write_Info_Int): New procedure
2710 (Write_Info_Slit): New procedure
2711 (Write_Info_Uint): New procedure
2712 * lib-util.ads (Write_Info_Int): New procedure
2713 (Write_Info_Slit): New procedure
2714 (Write_Info_Uint): New procedure
2715 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
2716 * lib-writ.ads: Update documentation for N (Notes) lines
2717 * lib.adb (Store_Note): New procedure
2718 * lib.ads (Notes): New table
2719 (Store_Note): New procedure
2720 * sem_prag.adb: Call Store_Note for affected pragmas
2722 2010-06-14 Thomas Quinot <quinot@adacore.com>
2724 * socket.c: Fix wrong condition in #ifdef
2725 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
2726 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
2727 because on VMS this type is a 32-bit pointer which is not compatible
2728 with the default for C pointers for code compiled with gcc on that
2731 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2733 * sem_util (Is_VMS_Operator): New predicate to determine whether an
2734 operator is an intrinsic operator declared in the DEC system extension.
2735 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
2736 if the operator is a VMS intrinsic.
2737 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
2738 constant-folded if the operands are signed and the operator is a VMS
2741 2010-06-14 Robert Dewar <dewar@adacore.com>
2743 * g-socket.adb, gnatcmd.adb: Minor reformatting.
2745 2010-06-14 Pascal Obry <obry@adacore.com>
2747 * s-finimp.adb: Fix typo.
2748 * raise.h: Remove duplicate blank line.
2750 2010-06-14 Vincent Celier <celier@adacore.com>
2752 * prj-nmsc.adb (Add_Sources): Always set the object file and the
2753 switches file names, as the configuration of the language may change
2754 in an extending project.
2755 (Process_Naming_Scheme): For sources of projects that are extended, set
2756 the configuration of the language from the highest extending project
2757 where the language is declared.
2759 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2761 * sem_res.adb (Resolve_Call): For infinite recursion check, test
2762 whether the called subprogram is inherited from a containing subprogram.
2763 (Same_Or_Aliased_Subprograms): New function
2765 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2767 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
2768 use-visible, check whether it is a primitive for more than one type.
2770 2010-06-14 Robert Dewar <dewar@adacore.com>
2772 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
2774 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
2775 Has_Pragma_Unmodified flag.
2777 2010-06-14 Thomas Quinot <quinot@adacore.com>
2779 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
2780 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
2781 now done in GNAT.Sockets if necessary.
2782 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
2783 Ensure mutual exclusion for netdb operations if the target platform
2785 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
2786 hostent as an opaque type to improve portability.
2787 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
2788 gethostbyYYY using proprietary VxWorks API so that a uniform interface
2789 is available for the Ada side.
2790 * gcc-interface/Makefile.in: Remove g-sttsne-*
2791 * gcc-interface/Make-lang.in: Update dependencies.
2793 2010-06-14 Vincent Celier <celier@adacore.com>
2795 * gnatcmd.adb (Mapping_File): New function.
2797 2010-06-14 Javier Miranda <miranda@adacore.com>
2799 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
2801 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2803 * ali.adb: Fix typo.
2804 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
2806 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2808 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
2811 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
2812 the context does not have a homonym of the selector, emit default
2815 2010-06-14 Robert Dewar <dewar@adacore.com>
2817 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
2820 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2822 * lib-xref.ads: Doc updates:
2823 - Allocate 'Q' for #include entity kind
2825 - Allocate 'g' for regular macros
2826 - Allocate 'G' for function-like macros
2828 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2830 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
2831 Indicates that there is an instantiation in the current unit that
2832 loaded the body of the unit denoted by the with_clause.
2833 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
2834 whether a with_clause in the current context denotes the unit that
2835 holds the generic declaration, and mark the with_clause accordingly.
2836 (Instantiate_Package_Body): call Mark_Context.
2837 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
2838 whether a given body should be traversed before the spec of the main
2841 2010-06-14 Ed Falis <falis@adacore.com>
2843 * sysdep.c: Fix 653 build against vThreads headers.
2845 2010-06-14 Robert Dewar <dewar@adacore.com>
2847 * sinfo.ads: Minor reformatting.
2849 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2851 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
2852 the spec has been generated for a body without spec that carries an
2853 Inline_Always pragma.
2855 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2857 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
2860 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2862 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
2863 declaration for VMs, as those are useless and might lead to duplicated
2864 local variable names in the generated code.
2865 * gcc-interface/Make-lang.in: Update dependencies.
2867 2010-06-14 Robert Dewar <dewar@adacore.com>
2869 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
2871 2010-06-14 Robert Dewar <dewar@adacore.com>
2873 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
2874 is renamed as Has_Following_Address_Clause.
2875 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
2876 to allow the caller to avoid Initialize_Scalars having an effect.
2877 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
2878 scalars with an address clause specified.
2879 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
2880 to allow the caller to avoid Initialize_Scalars having an effect.
2881 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
2882 (where it was called Has_Address_Clause).
2883 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
2884 (where it was called Has_Address_Clause).
2885 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
2886 problems for Initialize_Scalars (since we no longer initialize objects
2887 with an address clause.
2889 2010-06-14 Robert Dewar <dewar@adacore.com>
2891 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
2894 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2896 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
2897 on the entity of an implicitly generated postcondition procedure.
2899 2010-06-14 Thomas Quinot <quinot@adacore.com>
2901 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
2902 Discriminant_Constraint elist from full view to private view.
2904 2010-06-14 Robert Dewar <dewar@adacore.com>
2906 * sem_res.adb: Minor reformatting.
2908 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2910 * sem.adb: New version of unit traversal.
2912 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
2913 within a generic unit in the table of delayed calls.
2915 2010-06-14 Robert Dewar <dewar@adacore.com>
2917 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
2919 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2921 * sem_ch12.adb (Save_References): If an identifier has been rewritten
2922 during analysis as an explicit dereference, keep the reference implicit
2923 in the generic, but preserve the entity if global. This prevents
2924 malformed generic trees in the presence of some nested generics.
2926 2010-06-14 Sergey Rybin <rybin@adacore.com>
2928 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
2929 tool with '-files=' option. Also fix some small errors (wrong brackets)
2931 2010-06-14 Vincent Celier <celier@adacore.com>
2933 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
2934 the ALI files on the command line.
2936 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
2937 the same value as the parameter of the same name.
2938 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
2940 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
2941 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
2942 emit version symbols only for the units of the library.
2943 (Gen_Versions_C): Ditto.
2945 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2947 * sem_ch4.adb: Fix typo.
2949 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
2951 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
2952 vector IO doesn't work at default value properly.
2954 2010-06-14 Doug Rupp <rupp@adacore.com>
2956 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
2958 2010-06-14 Vincent Celier <celier@adacore.com>
2960 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
2961 sources of the project if a switch -files= is used.
2963 2010-06-14 Thomas Quinot <quinot@adacore.com>
2965 * exp_attr.adb: Minor reformatting.
2967 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2969 * gnat_ugn.texi: Minor typo fixes and wording changes.
2971 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2973 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
2974 prefixed form, do not re-analyze first actual, which may need an
2975 implicit dereference.
2976 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
2977 prefixed notation, the analysis will rewrite the node, and possible
2978 errors appear in the rewritten name of the node.
2979 * sem_res.adb: If a call is ambiguous because its first parameter is
2980 an overloaded call, report list of candidates, to clarify ambiguity of
2983 2010-06-14 Doug Rupp <rupp@adacore.com>
2985 * s-auxdec-vms-alpha.adb: New package body implementing legacy
2986 VAX instructions with Asm insertions.
2987 * s-auxdec-vms_64.ads: Inline VAX queue functions
2988 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
2989 that show up only on VMS.
2990 * gcc-interface/Makefile.in: Provide translation for
2991 s-auxdec-vms-alpha.adb.
2993 2010-06-14 Olivier Hainque <hainque@adacore.com>
2995 * initialize.c (VxWorks section): Update comments.
2997 2010-06-14 Robert Dewar <dewar@adacore.com>
2999 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3001 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
3003 * init.c: Code clean up.
3005 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3007 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3008 not insert address clause in table for later validation if type of
3009 entity is generic, to prevent possible spurious errors.
3011 * sem_ch8.adb: Code clean up.
3013 2010-06-14 Ben Brosgol <brosgol@adacore.com>
3015 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3016 texi2pdf and texi2html.
3017 Document how to change scheduling properties on HP-UX.
3019 2010-06-14 Thomas Quinot <quinot@adacore.com>
3021 * g-socket.ads: Remove misleading comments.
3023 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3025 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3026 CLI_Target as this prevents proper detection of exported names
3027 duplicates when the exported language is different to CIL.
3028 (Process_Interface_Name): Add check for CIL convention exports,
3029 replacing the old one from Check_Duplicated_Export_Name.
3031 2010-06-14 Matthew Heaney <heaney@adacore.com>
3033 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3034 and new last satisfy constraints.
3035 (Delete_Last): prevent overflow for subtraction of index values
3036 (To_Vector): prevent overflow for addition of index values
3038 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3040 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3041 rewritten call, preserve the resulting type to prevent spurious errors,
3042 when the call is implicitly dereferenced in the context of an in-out
3045 * checks.adb (Apply_Discriminant_Check): If the target of the
3046 assignment is a renaming of a heap object, create constrained type for
3049 2010-06-14 Pascal Obry <obry@adacore.com>
3051 * prj-proc.adb: Fix copy of object directory for extending projects.
3053 2010-06-14 Jose Ruiz <ruiz@adacore.com>
3055 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3056 (__gnat_install_handler, PowerPC linux): Activate the alternative
3059 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
3061 * gnat_rm.texi: Move to GFDL version 1.3.
3062 * gnat-style.texi: Ditto.
3063 * gnat_ugn.texi: Ditto.
3065 2010-06-12 Kai Tietz
3068 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3071 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
3073 * gcc-interface/utils.c (update_pointer_to): Initialize last.
3075 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3077 * gcc-interface/ada-tree.h: Fix formatting nits.
3079 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3081 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3083 (init_dummy_type): Likewise.
3084 (gnat_pushlevel): Likewise.
3086 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3087 (Subprogram_Body_to_gnu): Likewise.
3088 (Compilation_Unit_to_gnu): Likewise.
3089 (start_stmt_group): Likewise.
3090 (extract_encoding): Likewise.
3091 (decode_name): Likewise.
3093 * gcc-interface/misc.c (gnat_printable_name): Likewise.
3095 * gcc-interface/decl.c (annotate_value): Likewise.
3097 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3099 (struct lang_decl): Likewise.
3100 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3101 (SET_DECL_LANG_SPECIFIC): Likewise.
3103 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
3105 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3106 * gcc-interface/lang-specs.h: Likewise.
3108 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3111 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3113 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3115 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3117 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3119 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3120 TYPE_DECL of the equivalent type instead of building a new one.
3122 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3124 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3125 Fix nits in comments.
3126 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3127 * gcc-interface/trans.c (gigi): Likewise.
3128 (Attribute_to_gnu): Likewise.
3129 (Case_Statement_to_gnu): Likewise.
3130 (gnat_to_gnu): Adjust warning message.
3131 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3132 (build_vms_descriptor32): Likewise.
3134 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3136 * gcc-interface/decl.c: Pretend to be a backend file by undefining
3137 IN_GCC_FRONTEND (still need rtl.h here).
3139 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3141 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3142 (gigi): Adjust call to set_stack_check_libfunc.
3144 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3146 * gcc-interface/utils.c: Do not include rtl.h.
3148 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3150 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3151 and gimple.h. Explain why rtl.h has to be included.
3152 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3153 * gcc-interface/targtyps.c: Do not include tm_p.h
3154 * gcc-interface/utils2.c: Do not include flags.h.
3155 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
3156 and explain why it has to be included.
3157 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3159 Include function.h and explain why. Explain why except.h is included.
3160 (enumerate_modes): Remove unused function.
3161 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3162 * gcc-interface/Make-lang.in: Update dependencies.
3164 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3166 * gcc-interface/misc.c (internal_error_function): Add context
3167 parameter. Use it to access show_column flag and instead of using
3168 global_dc. Call warn_if_plugins.
3169 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3171 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3173 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3174 * gcc-interface/trans.c (unshare_save_expr): Delete.
3175 (gigi): Do not unshare trees under SAVE_EXPRs here.
3177 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3179 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3181 * gcc-interface/utils.c (build_function_stub): Likewise.
3183 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3185 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3186 for Wuninitialized without -O.
3188 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3190 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3191 ADT_exception_data_name_id.
3192 (exception_data_name_id): New define.
3193 * gcc-interface/trans.c (gigi): Initialize it.
3194 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3195 exception type for standard exception definitions. Do not make them
3197 <E_Record_Type>: Equate fields of types associated with an exception
3198 definition to those of the standard exception type.
3200 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3202 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3204 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3206 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3207 code, improve comments and fix formatting nits.
3209 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3211 * gcc-interface/utils.c (update_pointer_to): Return early if the old
3212 pointer already points to the new type. Chain the old pointer and its
3213 variants at the end of new pointer's chain after updating them.
3215 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
3217 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3218 built for interfaces.
3219 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3220 imported_p instead of Is_Imported when considering constants.
3221 Do not promote alignment of exported objects.
3222 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3224 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3226 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3227 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3228 constants really constant.
3229 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3231 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3233 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3235 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3237 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3238 expressions of variant part of record types declared at library level.
3240 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3242 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3243 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3244 (rest_of_record_type_compilation): Adjust call to create_field_decl.
3245 (make_descriptor_field): Likewise and pass correctly typed constants.
3246 (build_unc_object_type): Likewise.
3247 (unchecked_convert): Likewise.
3248 * gcc-interface/decl.c (elaborate_expression_2): New static function.
3249 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3250 Adjust call to create_field_decl.
3251 (make_aligning_type): Likewise.
3252 (make_packable_type): Likewise.
3253 (maybe_pad_type): Likewise.
3254 (gnat_to_gnu_field): Likewise.
3255 (components_to_record): Likewise.
3256 (create_field_decl_from): Likewise.
3257 (create_variant_part_from): Remove superfluous test.
3258 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3260 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3262 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3263 (build_unc_object_type_from_ptr): Likewise.
3264 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3265 and pass it to create_type_decl. Declare the type. Simplify.
3266 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3267 it to build_unc_object_type.
3268 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3269 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3270 (gnat_to_gnu): Likewise.
3271 * gcc-interface/utils2.c (build_allocator): Likewise.
3273 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3276 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3278 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3280 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3282 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3285 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3287 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3289 * gnathtml.pl: Use 755 as mask for new directories.
3291 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3293 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3294 constant constructors before taking their address.
3296 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3298 * exp_dbug.ads: Fix outdated description. Mention link between XVS
3300 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3301 XVZ variable as unit size of XVS type.
3302 (maybe_pad_type): Likewise.
3304 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3306 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3307 use memmove if the array type is bit-packed.
3309 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3311 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3312 build_common_tree_nodes.
3314 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3316 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3318 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3320 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3323 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3325 * uintp.h (UI_Lt): Declare.
3326 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3327 computation in sizetype.
3328 <E_Array_Subtype>: Use unified handling for all index types. Do not
3329 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
3331 (annotate_value): Change test for negative values.
3332 (validate_size): Apply test for negative values on GNAT nodes.
3333 (set_rm_size): Likewise.
3334 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3335 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3336 for negative values.
3337 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3338 (builtin_type_for_size): Adjust definition of signed_size_type_node.
3339 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3340 lengths against zero.
3342 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3344 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3345 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3346 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
3347 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3348 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3349 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3351 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3352 flag_signed_char. Tag sizetype with "size_type" moniker.
3353 * gcc-interface/trans.c (gigi): Add standard_character parameter.
3354 Remove useless built-in types. Equate unsigned_char_type_node to
3355 Standard.Character. Use it instead of char_type_node throughout.
3356 (Attribute_to_gnu): Likewise.
3357 (gnat_to_gnu): Likewise.
3358 * gcc-interface/utils2.c (build_call_raise): Likewise.
3360 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3362 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3363 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3364 (sbitsize_one_node): New macro.
3365 (sbitsize_unit_node): Likewise.
3366 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3367 latent bug in the computation of subrange_p. Fold wider_p predicate.
3368 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3369 the final comparison.
3370 (make_aligning_type): Build real negation and use sizetype throughout
3371 the offset computation.
3372 (maybe_pad_type): Do not issue the warning when the new size expression
3374 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3375 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3377 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3379 (gnat_to_gnu) <N_Free_Statement>: Likewise.
3380 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3381 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3382 constants in sizetype. Remove dead code and tweak comments. Generate
3383 equality instead of inequality comparisons for zero length tests.
3385 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3387 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3388 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3389 <object>: Do not create the fake PARM_DECL if no debug info is needed.
3390 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3391 purposes if no debug info is needed.
3392 Fix formatting. Reorder and add comments.
3393 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3394 variable and remove obsolete comment.
3395 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3396 (convert_vms_descriptor32): Likewise.
3397 (convert): Remove dead code.
3398 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3399 the reference to the P_ARRAY pointer.
3400 <POINTER_TYPE>: Likewise.
3401 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3402 (gnat_init_decl_processing): Delete, move contents to...
3403 * gcc-interface/misc.c (gnat_init): ...here.
3405 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3407 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3408 calls. Return true for conversion from a record subtype to its type.
3410 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3412 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3413 lieu of integer_type_node for boolean operations.
3414 (choices_to_gnu): Likewise.
3415 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3416 (Loop_Statement_to_gnu): Likewise.
3417 (establish_gnat_vms_condition_handler): Likewise.
3418 (Exception_Handler_to_gnu_sjlj): Likewise.
3419 (gnat_to_gnu): Likewise.
3420 (build_unary_op_trapv): Likewise.
3421 (build_binary_op_trapv): Likewise.
3422 (emit_range_check): Likewise.
3423 (emit_index_check): Likewise.
3424 (convert_with_check): Likewise.
3425 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3426 (convert_vms_descriptor32): Likewise.
3427 (convert_vms_descriptor): Likewise.
3428 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3429 (compare_arrays): Use boolean instead of integer constants.
3430 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3431 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
3433 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3434 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3435 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3436 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3437 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3438 for boolean operations.
3439 (fill_vms_descriptor): Likewise. Fix formatting nits.
3441 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3443 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3444 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3446 (LOOP_STMT_COND): ...this.
3447 (LOOP_STMT_BOTTOM_COND_P): New flag.
3448 (LOOP_STMT_TOP_UPDATE_P): Likewise.
3449 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3450 (can_equal_min_val_p): New static inline function.
3451 (can_equal_max_val_p): Likewise.
3452 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3453 new LOOP_STMT semantics. Use two different strategies depending on
3454 whether optimization is enabled to translate the loop.
3455 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3457 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3459 * uintp.adb (UI_From_Dint): Remove useless code.
3460 (UI_From_Int): Likewise.
3461 * uintp.h: Reorder declarations.
3462 (UI_From_gnu): Declare.
3463 (UI_Base): Likewise.
3464 (Vector_Template): Likewise.
3465 (Vector_To_Uint): Likewise.
3468 * gcc-interface/gigi.h: Tweak comments.
3469 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3470 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3472 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3473 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3474 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3475 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3478 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3480 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3482 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3483 (smaller_form_type_p): ...this. Change parameter and variable names.
3484 (call_to_gnu): Use the nominal type of the parameter to create the
3485 temporary if it's a smaller form of the actual type.
3486 (addressable_p): Return false if the actual type is integral and its
3487 size is greater than that of the expected type.
3489 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3491 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3492 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3493 (process_attributes): Delete.
3494 (post_error_ne_num): Change parameter name.
3495 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3496 with -g3. Remove a couple of obsolete lines. Minor tweaks.
3497 If type annotating mode, operate on trees to compute the adjustment to
3498 the sizes of tagged types. Fix long line.
3499 (cannot_be_superflat_p): Tweak head comment.
3500 (annotate_value): Fold local constant.
3501 (set_rm_size): Fix long line.
3502 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3503 (Attribute_to_gnu): Fix long line.
3504 <Attr_Size>: Remove useless assertion.
3505 Reorder statements. Use size_binop routine.
3506 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3507 Create local variables for the label and the test. Tweak comments.
3508 (Subprogram_Body_to_gnu): Reset cfun to NULL.
3509 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3510 (process_inlined_subprograms): Integrate into...
3511 (Compilation_Unit_to_gnu): ...this.
3512 (gnat_to_gnu): Fix long line.
3513 (post_error_ne_num): Change parameter name.
3514 * gcc-interface/utils.c (process_attributes): Static-ify.
3515 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3516 (create_type_decl): Add comment.
3517 (create_var_decl_1): Process the attributes after adding the VAR_DECL
3518 to the current binding level.
3519 (create_subprog_decl): Likewise for the FUNCTION_DECL.
3520 (end_subprog_body): Do not reset cfun to NULL.
3521 (build_vms_descriptor32): Fix long line.
3522 (build_vms_descriptor): Likewise.
3523 (handle_nonnull_attribute): Likewise.
3524 (convert_vms_descriptor64): Likewise.
3525 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3526 (gnat_protect_expr): Fix thinko.
3528 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3530 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3531 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3532 before translating the top-level node.
3533 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3534 <N_Object_Declaration>: Likewise.
3535 <N_Assignment_Statement>: Likewise.
3536 <N_Unchecked_Type_Conversion>: Likewise.
3537 (call_to_gnu): Remove kludge.
3538 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
3539 associated with user returns to be preserved.
3540 (gnat_to_gnu): Add special code to deal with boolean rvalues.
3541 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
3543 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3544 <INDIRECT_REF>: Call build_fold_indirect_ref.
3546 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
3548 * g-socket.adb: A target can have multiple missing errno's. This
3549 will result in multiple errno's being defined as -1. Because of this
3550 we can not use a case but must use a series of if's to avoid
3551 a duplicate case error in GNAT.Sockets.Resolve_Error.
3553 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3555 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
3556 a statement. Otherwise, if at top-level, push the processing of the
3557 elaboration routine. In the misaligned case, issue the error messages
3558 again on entry and create the temporary explicitly. Do not issue them
3560 For a function call, emit the range check if necessary.
3561 In the copy-in copy-out case, create the temporary for the return
3563 Do not unnecessarily convert by-ref parameters to the formal's type.
3564 Remove obsolete guards in conditions.
3565 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
3566 target to call_to_gnu in all cases.
3567 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
3568 (addressable_p) <CONSTRUCTOR>: Return false if not static.
3569 <COMPOUND_EXPR>: New case.
3570 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
3571 expression if it has unconstrained array type.
3572 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
3573 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
3576 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3578 * gcc-interface/trans.c (gigi): Do not start statement group.
3579 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
3580 Start statement group and push binding level here...
3581 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
3582 Do not push fake contexts at top level. Remove redundant code.
3583 (call_to_gnu): Rename a local variable and constify another.
3584 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
3585 (set_current_block_context): Set it as the group's block.
3586 (gnat_init_decl_processing): Delete unrelated init code.
3587 (end_subprog_body): Use NULL_TREE.
3589 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3591 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
3592 side-effects of actual parameters before the call.
3594 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3596 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
3598 (set_rm_size): Reorder and remove obsolete test.
3600 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3602 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
3603 (gigi): Adjust ATTRIBUTE_UNUSED markers.
3604 * gcc-interface/gadaint.h: New file.
3605 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
3606 (__gnat_to_canonical_file_spec): Remove declaration.
3607 (number_names): Delete.
3608 (number_files): Likewise.
3610 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
3613 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3615 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
3617 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
3618 Ekind. Return early for class-wide types. Do not compute initializer
3619 unless necessary. Reuse the tree for an associated class-wide type
3620 only if processing its root type.
3622 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
3624 * gsocket.h: Run-time can no longer be built without network
3625 OS headers available. Changing RTEMS GNAT build procedure to
3626 reflect this and letting run-time build use network .h files.
3628 2010-04-13 Duncan Sands <baldrick@free.fr>
3630 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
3631 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
3633 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3635 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
3636 (parent_name_id): New macro.
3637 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
3638 * gcc-interface/trans.c (gigi): Initialize it.
3639 (lvalue_required_p) <N_Type_Conversion>: New case.
3640 <N_Qualified_Expression>: Likewise.
3641 <N_Allocator>: Likewise.
3642 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
3644 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3646 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
3647 (DECL_CONST_ADDRESS_P): New macro.
3648 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
3649 (SAME_FIELD_P): Likewise.
3650 * gcc-interface/decl.c (constructor_address_p): New static function.
3651 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
3652 the return value of above function.
3653 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
3654 passed by reference.
3655 <E_Record_Subtype>: Likewise.
3656 Set TREE_ADDRESSABLE on the type if it passed by reference.
3657 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
3658 (create_field_decl_from): Likewise.
3659 (substitute_in_type): Likewise.
3660 (purpose_member_field): Use SAME_FIELD_P.
3661 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
3662 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
3663 parameter and adjust recursive calls.
3664 <N_Explicit_Dereference>: New case.
3665 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
3666 Adjust calls to lvalue_required_p. Do not return the initializer of a
3667 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
3668 (call_to_gnu): Delay issuing error message for a misaligned actual and
3669 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
3670 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
3671 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
3672 type is passed by reference.
3673 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
3674 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
3675 (build_simple_component_ref): Use SAME_FIELD_P.
3677 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
3679 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
3680 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
3681 front-end's predicate Is_By_Reference_Type. Use consistent order and
3682 remove ??? comment. Use original conversion in all cases, if any.
3683 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
3684 (convert): Use local copy in more cases.
3685 <INDIRECT_REF>: Remove deactivated code.
3686 (unchecked_convert): Use a couple of local copies.
3688 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3690 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
3692 (lvalue_required_p) <N_Attribute_Reference>: Call it.
3693 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
3694 folding the result only if lvalue_required_for_attribute_p is true.
3695 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
3696 typed constant to build_component_ref.
3697 (unchecked_convert): Likewise.
3698 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
3699 (build_allocator): Likewise.
3701 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3703 * gcc-interface/utils2.c (build_cond_expr): Take the address and
3704 dereference if the result type is passed by reference.
3706 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3708 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
3709 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
3710 goto to the next statement.
3712 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3714 * gcc-interface/gigi.h (maybe_variable): Delete.
3715 (protect_multiple_eval): Likewise.
3716 (maybe_stabilize_reference): Likewise.
3717 (gnat_save_expr): Declare.
3718 (gnat_protect_expr): Likewise.
3719 (gnat_stabilize_reference): Likewise.
3720 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
3721 gnat_stabilize_reference.
3722 (maybe_variable): Delete.
3723 (elaborate_expression_1): Use gnat_save_expr.
3724 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
3725 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
3726 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
3727 <N_Slice>: Use gnat_protect_exp.
3728 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
3729 <N_In>: Use gnat_protect_expr.
3730 Pass NULL to gnat_stabilize_reference.
3731 (build_unary_op_trapv): Use gnat_protect_expr.
3732 (build_binary_op_trapv): Likewise.
3733 (emit_range_check): Likewise.
3734 (emit_index_check): Likewise.
3735 (convert_with_check): Likewise.
3736 (protect_multiple_eval): Move to utils2.c file.
3737 (maybe_stabilize_reference): Merge into...
3738 (gnat_stabilize_reference): ...this. Move to utils2.c file.
3739 (gnat_stabilize_reference_1): Likewise.
3740 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
3741 instead of protect_multiple_eval.
3742 * gcc-interface/utils2.c (compare_arrays): Likewise.
3743 (nonbinary_modular_operation): Likewise.
3744 (maybe_wrap_malloc): Likewise.
3745 (build_allocator): Likewise.
3746 (gnat_save_expr): New function.
3747 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
3748 in common cases. Propagate TREE_READONLY onto dereferences.
3749 (gnat_stabilize_reference_1): Move from trans.c file.
3750 (gnat_stabilize_reference): Likewise.
3752 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3754 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
3755 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
3756 node. Use the type of the operand to set TREE_READONLY.
3757 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
3758 _REF node. Do not overwrite TREE_READONLY.
3759 (call_to_gnu): Rename local variable and fix various nits. In the
3760 copy-in/copy-out case, build the SAVE_EXPR manually.
3761 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
3762 and fold the computations.
3763 (protect_multiple_eval): Always save entire fat pointers.
3764 (maybe_stabilize_reference): Minor tweaks.
3765 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
3766 tcc_type and tcc_statement.
3767 * gcc-interface/utils.c (convert_to_fat_pointer): Call
3768 protect_multiple_eval in lieu of save_expr.
3769 (convert): Minor tweaks.
3770 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
3771 (builtin_type_for_size): Call gnat_type_for_size directly.
3772 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
3773 (contains_null_expr): Likewise
3774 (gnat_build_constructor): Do not call it.
3775 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
3776 instead of gnat_stabilize_reference to protect the operands.
3777 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
3779 (maybe_wrap_malloc): Likewise.
3780 (build_allocator): Likewise.
3781 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
3782 (gnat_mark_addressable): Rename parameter.
3784 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
3786 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
3787 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
3788 (TYPE_RETURNS_BY_REF_P): Rename into.
3789 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
3790 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
3791 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
3792 (build_return_expr): Likewise.
3793 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
3794 Rename local variables. If the return Mechanism is By_Reference, pass
3795 return_by_invisible_ref_p to create_subprog_type instead of toggling
3796 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
3797 the mechanism. Use regular return for contrained types with non-static
3798 size and return by invisible reference for unconstrained return types
3799 with default discriminants. Update comment.
3800 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
3801 returns by invisible reference, turn the RESULT_DECL into a pointer.
3802 Do not handle DECL_BY_REF_P in the CICO case here.
3803 (call_to_gnu): Remove code handling return by target pointer. For a
3804 function call, if the return type has non-constant size, generate the
3805 assignment with an INIT_EXPR.
3806 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
3807 If the function returns by invisible reference, build the copy return
3809 (add_decl_expr): Initialize the variable with an INIT_EXPR.
3810 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
3811 Adjust for renaming of macros. Copy the node only when necessary.
3812 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
3813 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
3814 (convert_from_reference): Delete.
3815 (is_byref_result): Likewise.
3816 (gnat_genericize_r): Likewise.
3817 (gnat_genericize): Likewise.
3818 (end_subprog_body): Do not call gnat_genericize.
3819 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
3820 (build_return_expr): Adjust parameter names, logic and comment.
3822 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3824 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
3825 if the size is small enough. Propagate the alignment if there is an
3826 alignment clause on the original array type.
3827 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3828 Deal with under-aligned packed array types. Copy the size onto the
3829 justified modular type and don't lay it out again. Likewise for the
3830 padding type built for other under-aligned subtypes.
3831 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
3834 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3836 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
3837 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
3839 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3841 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
3842 do not set the result type if there is a specified target and do not
3843 convert the result in any cases.
3844 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
3845 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
3847 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
3849 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
3851 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
3854 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
3855 pointer base types are variant of each other. Apply special treatment
3856 for null to fat pointer types in all cases.
3858 2010-01-28 Pascal Obry <obry@adacore.com>
3860 * s-win32.ads: Add some missing constants.
3862 2010-01-28 Vincent Celier <celier@adacore.com>
3864 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
3867 2010-01-28 Robert Dewar <dewar@adacore.com>
3869 * gnat_rm.texi: Minor correction
3871 2010-01-27 Pascal Obry <obry@adacore.com>
3873 * g-awk.adb: ensure that an AWK session is reusable.
3875 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
3877 * g-regist.adb (For_Every_Key): Fix previous change.
3880 2010-01-27 Thomas Quinot <quinot@adacore.com>
3882 * lib-writ.ads: Current version of spec for new N (note) ALI lines
3884 2010-01-27 Yannick Moy <moy@adacore.com>
3886 * a-cdlili.adb (Insert): Correct exception message when cursor
3887 designates wrong list.
3889 2010-01-27 Vincent Celier <celier@adacore.com>
3891 * gnatcmd.adb: When there is only one main specified, the package
3892 support Switches (<main>) and attribute Switches is specified for the
3893 main, use these switches, instead of Default_Switches ("Ada").
3895 2010-01-27 Robert Dewar <dewar@adacore.com>
3897 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
3899 * exp_disp.adb: Minor reformatting
3901 2010-01-27 Tristan Gingold <gingold@adacore.com>
3903 * seh_init.c: Use __ImageBase instead of _ImageBase.
3905 2010-01-27 Javier Miranda <miranda@adacore.com>
3907 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
3908 profile of interface thunks. The type of the controlling formal is now
3909 the covered interface type (instead of the target tagged type).
3911 2010-01-27 Sergey Rybin <rybin@adacore.com>
3913 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
3915 2010-01-27 Robert Dewar <dewar@adacore.com>
3917 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
3918 changed from Expr to N.
3920 2010-01-26 Thomas Quinot <quinot@adacore.com>
3922 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
3923 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
3926 2010-01-26 Vincent Celier <celier@adacore.com>
3928 * prj-attr.adb: Add new attribute Library_Install_Name_Option
3929 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
3930 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3931 attributes Run_Path_Option and Library_Install_Name_Option.
3932 * prj.ads (Project_Configuration): Replace component
3933 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
3934 component Library_Install_Name_Option.
3935 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
3936 Replace Run_Path_Origin_Supported with Run_Path_Origin
3938 2010-01-26 Ed Schonberg <schonberg@adacore.com>
3940 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
3941 is not hidden by a homograph declared in another actual package.
3943 2010-01-26 Robert Dewar <dewar@adacore.com>
3945 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
3946 decisions for pragmas Assert, Check, Precondition, Postcondition if
3948 * scos.ads: Update comments.
3949 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
3950 Also remove obsolete code for CT (exit point) SCOs.
3952 2010-01-26 Thomas Quinot <quinot@adacore.com>
3954 * switch-c.adb: Fix handling of -gnatz*
3956 2010-01-26 Robert Dewar <dewar@adacore.com>
3958 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
3959 qualifiers for FOR/WHILE loops
3960 * scos.ads: Use separate type letters F/W for for/while loops
3962 2010-01-26 Robert Dewar <dewar@adacore.com>
3964 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
3965 entries per line, one for each statement in the sequence).
3966 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
3967 size from 100 to 10_000 for SC_Array to avoid any real possibility of
3968 overflow. Output decisions in for loops.
3969 Exclude labels from CS lines.
3970 * scos.ads: Clarify that label is not included in the entry point
3972 2010-01-26 Robert Dewar <dewar@adacore.com>
3974 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
3975 format of statement sequence SCO entries (one location/statement).
3976 * put_scos.adb (Put_SCOs): Implement new format of CS lines
3977 * scos.ads: Update comments.
3978 * sem_eval.adb: Minor reformatting.
3980 2010-01-26 Robert Dewar <dewar@adacore.com>
3982 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
3983 (Extend_Statement_Sequence): New procedures
3984 (Traverse_Declarations_Or_Statements): New handling for exits.
3986 2010-01-26 Robert Dewar <dewar@adacore.com>
3988 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
3991 2010-01-26 Robert Dewar <dewar@adacore.com>
3993 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
3994 * scos.ads: Clarify handling of logical operators
3996 2010-01-26 Arnaud Charlet <charlet@adacore.com>
3998 * s-tpoben.adb: Update comments.
4000 2010-01-26 Robert Dewar <dewar@adacore.com>
4002 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4005 2010-01-26 Robert Dewar <dewar@adacore.com>
4007 * scos.ads: Clean up documentation, remove obsolete XOR references
4008 2010-01-26 Vincent Celier <celier@adacore.com>
4010 * gnat_ugn.texi: Complete documentation on the restrictions for
4011 combined options in -gnatxxx switches.
4014 2010-01-26 Arnaud Charlet <charlet@adacore.com>
4016 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4017 a controlled operation, abort is already deferred at this point, so we
4018 need to use Defer_Abort_Nestable.
4020 2010-01-26 Vincent Celier <celier@adacore.com>
4022 * prj-conf.adb (Get_Config_Switches): Check for a default language for
4023 a project extending a project with no languages.
4025 2010-01-26 Vincent Celier <celier@adacore.com>
4027 * switch-c.adb (Scan_Front_End_Switches): Take into account options
4028 that follow -gnatef.
4029 Allow -gnateG to be followed by other options.
4031 2010-01-26 Robert Dewar <dewar@adacore.com>
4033 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4034 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4037 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
4039 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4040 that allows to iterate over all subkeys of a key.
4042 2010-01-26 Ed Falis <falis@adacore.com>
4044 * sysdep.c: enable NFS for VxWorks MILS
4045 * env.c: enable __gnat_environ for VxWorks MILS
4046 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4048 2010-01-25 Bob Duff <duff@adacore.com>
4050 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4051 is an internally-generated positional aggregate, and the bounds are
4052 already correctly set. We don't want to overwrite those bounds with
4053 bounds determined by context.
4055 2010-01-25 Robert Dewar <dewar@adacore.com>
4057 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4058 exp_ch9.adb, g-sechas.ads: Minor reformatting.
4060 2010-01-25 Thomas Quinot <quinot@adacore.com>
4062 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4063 integer type) before subtracting 1, otherwise the computation may wrap
4064 (because size_t is modular) and cause the conversion to fail.
4066 2010-01-25 Ed Falis <falis@adacore.com>
4068 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4070 2010-01-25 Vincent Celier <celier@adacore.com>
4072 * prj-attr.adb: New attribute Run_Path_Origin_Required
4073 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4074 attribute Run_Path_Origin_Required.
4075 * prj.ads (Project_Configuration): New component
4076 Run_Path_Origin_Supported.
4077 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4079 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4081 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4082 have errors, do not continue resolution of the aggregate.
4083 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4084 the array type indicates an error.
4086 2010-01-25 Bob Duff <duff@adacore.com>
4088 * sinfo.ads: Minor comment fixes.
4090 2010-01-25 Bob Duff <duff@adacore.com>
4092 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4094 2010-01-25 Arnaud Charlet <charlet@adacore.com>
4096 * gnatvsn.ads (Current_Year): Update.
4098 2010-01-25 Florian Villoing <villoing@adacore.com>
4100 * gnat_ugn.texi: Fix typo.
4102 2010-01-25 Thomas Quinot <quinot@adacore.com>
4104 * scos.ads: Update specification.
4106 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4108 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4109 enclosing subprogram has no previous spec, attach postcondition
4110 procedure to the defining entity for the body.
4112 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4114 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4115 initialization procedure of the ancestor part of an extension aggregate
4116 if it is an interface type.
4118 2010-01-25 Vincent Celier <celier@adacore.com>
4120 * gnatlink.adb (Process_Binder_File): The directory for the shared
4121 version of libgcc in the run path options is found in the subdirectory
4122 indicated by __gnat_default_libgcc_subdir.
4123 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4126 2010-01-25 Ed Schonberg <schonberg@adacore.com>
4128 * sem_prag.adb: More flexible pragma Annotate.
4130 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
4132 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4133 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4135 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
4137 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4139 2010-01-18 Jan Hubicka <jh@suse.cz>
4142 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4143 unit local variables.
4145 2010-01-17 Laurent GUERBY <laurent@guerby.net>
4147 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4149 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
4151 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4152 * system-linux-armeb.ads, system-linux-armel.ads: New files.
4154 2010-01-09 Simon Wright <simon@pushface.org>
4157 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4162 Copyright (C) 2010 Free Software Foundation, Inc.
4164 Copying and distribution of this file, with or without modification,
4165 are permitted in any medium without royalty provided the copyright
4166 notice and this notice are preserved.