1 2009-07-27 Robert Dewar <dewar@adacore.com>
3 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
5 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
7 2009-07-27 Geert Bosch <bosch@adacore.com>
9 * checks.adb (Find_Check): Minor streamlining of logic.
10 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
11 * debug.adb: Document -gnatdX debug flag
12 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
13 list information about reads from scalar entities.
14 Also slightly simplify condition for Expand_Current_Value.
15 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
18 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
21 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
22 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
24 (__gnat_stat): Adjust reference to STAT in prototype.
25 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
26 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
27 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
28 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
29 __gnat_is_writable_file, __gnat_is_executable_file,
30 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
31 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
32 __gnat_copy_attribs): Adjust all references to the above.
33 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
35 2009-07-23 Ed Schonberg <schonberg@adacore.com>
37 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
38 done at the same time, guard against listing a body more than once.
40 2009-07-23 Robert Dewar <dewar@adacore.com>
42 * exp_ch6.adb: Minor reformatting
44 2009-07-23 Ed Schonberg <schonberg@adacore.com>
46 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
47 static expression is known valid.
48 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
49 operands of a subtype with a single value.
51 2009-07-23 Ed Schonberg <schonberg@adacore.com>
53 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
54 are in the context of the main unit body.
56 2009-07-23 Sergey Rybin <rybin@adacore.com>
58 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
59 misprint in rule description.
61 2009-07-23 Gary Dismukes <dismukes@adacore.com>
63 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
64 test that the object declaration is within an extended return statement
65 with direct test of whether the declared object associated with the
66 build-in-place call is a return object, since the enclosing function
67 might not even be a build-in-place function.
69 2009-07-23 Robert Dewar <dewar@adacore.com>
71 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
72 Minor code reorganization
74 2009-07-23 Arnaud Charlet <charlet@adacore.com>
76 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
77 for static analysis, only packed arrays are causing troubles.
79 2009-07-23 Gary Dismukes <dismukes@adacore.com>
81 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
82 ancestor part is a call to a limited function with an unconstrained
83 result subtype unless the aggregate has a null extension type.
84 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
85 the parent type declaration to avoid blowups on subtype cases.
87 2009-07-23 Robert Dewar <dewar@adacore.com>
89 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
92 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
94 * s-regexp.adb: Minor reformatting
95 * scos.ads: Minor reformatting.
97 2009-07-23 Arnaud Charlet <charlet@adacore.com>
99 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
100 other similar messages.
101 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
102 messages/implicit packing in CodePeer mode.
103 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
104 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
107 2009-07-23 Pascal Obry <obry@adacore.com>
109 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
112 2009-07-23 Robert Dewar <dewar@adacore.com>
114 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
117 2009-07-23 Yannick Moy <moy@adacore.com>
119 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
121 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
123 (Raise_Exception): Ditto.
125 2009-07-23 Olivier Hainque <hainque@adacore.com>
127 * g-sse.ads: Simplify comment.
129 2009-07-23 Olivier Hainque <hainque@adacore.com>
131 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
132 low level internal type definitions for distinct higher level
133 binding development activities (user type definitions and
135 * gnat_rm.texi: Document it.
136 * g-ssvety.ads: Use it.
137 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
138 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
139 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
140 for the "may_alias" attribute.
142 2009-07-23 Thomas Quinot <quinot@adacore.com>
144 * scos.ads: Minor typo fix
145 * gcc-interface/decl.c (validate_alignment): For the case of an
146 implicit array base type, look for alignment clause on first subtype.
149 2009-07-23 Ed Schonberg <schonberg@adacore.com>
151 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
152 in the context depends on the spec of the main unit, by delaying
153 processing of the main unit body until all other units have been
156 2009-07-23 Arnaud Charlet <charlet@adacore.com>
158 * a-convec.adb: Add comments about suspicious/subtle code.
160 2009-07-23 Ed Schonberg <schonberg@adacore.com>
162 * einfo.ads: Document use of Alias in private overriding
164 2009-07-23 Thomas Quinot <quinot@adacore.com>
166 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
167 an array type, propagate alignment from first subtype to implicit base
168 type so that other subtypes (such as the itypes for aggregates of the
169 type) also receive the expected alignment.
171 * g-comlin.ads: Minor documentation clarification/rewording.
172 * scos.ads: Minor comments update.
173 * lib-writ.ads: Minor reformatting
175 2009-07-23 Gary Dismukes <dismukes@adacore.com>
177 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
178 of a class-wide interface type that is a return object of a
179 build-in-place function, bypass the interface-related expansions into
180 renamings with displacement conversions, etc.
181 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
182 for the case where a renaming occurs in a build-in-place context, to
183 assert that the bypassing of the build-in-place treatment only occurs
184 in the case of a renaming that is an expansion of a return expression
185 that is itself a build-in-place function call.
187 2009-07-23 Ed Schonberg <schonberg@adacore.com>
189 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
190 valid candidate interpretation in a prefixed view if it is hidden, but
191 overrides an inherited operation declared in the visible part.
193 2009-07-23 Robert Dewar <dewar@adacore.com>
195 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
196 division operands to 64-bit at all in any circumstances.
198 2009-07-23 Robert Dewar <dewar@adacore.com>
200 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
201 checking ranges for mod/rem to see if conditional jump will be
203 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
204 generating special -1 test for rem, generate it whenever both
205 operands can be negative (match circuit in Sem_Res).
206 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
207 destroys memory of positive range.
208 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
209 checking ranges for mod/rem to see if conditional jump will be generated
211 2009-07-23 Ed Schonberg <schonberg@adacore.com>
213 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
214 scalar components has non-static bounds, the equivalent aggregate
215 cannot be built, even if the expression is static, because range checks
218 2009-07-23 Robert Dewar <dewar@adacore.com>
220 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
221 division operands to 64-bit inside a conversion if 64-bit division not
224 2009-07-23 Sergey Rybin <rybin@adacore.com>
226 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
228 2009-07-23 Javier Miranda <miranda@adacore.com>
230 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
231 (Entity/Set_Entity): not available in N_Null_Statement nodes
232 (Is_Scil_Node): renamed as Is_SCIL_Node
233 (Scil_Nkind): renamed as SCIL_Nkind
234 (Scil_Related_Node): renamed as SCIL_Related_Node
235 (Scil_Target_Prim): renamed as SCIL_Target_Prim
236 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
237 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
238 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
240 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
241 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
242 (New_Scil_Node): Renamed as New_SCIL_Node
243 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
244 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
245 (New_Scil_Node): Renamed as New_SCIL_Node
246 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
248 2009-07-23 Robert Dewar <dewar@adacore.com>
250 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
251 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
252 * einfo.adb: Minor reformatting
254 2009-07-23 Robert Dewar <dewar@adacore.com>
256 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
257 cross-referencing the new related code in
258 Exp_Ch4.Expand_N_Type_Conversion.
259 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
261 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
264 2009-07-23 Javier Miranda <miranda@adacore.com>
266 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
267 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
268 * exp_disp.ads (Scil_Node_Kind): Ditto.
269 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
270 * exp_ch3.adb (Build_Init_Procedure): Ditto.
272 2009-07-23 Javier Miranda <miranda@adacore.com>
274 * einfo.adb (Component_Type): Add missing assertion.
275 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
276 reading attribute Component_Size.
277 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
278 before reading attributes Component_Size and Component_Type.
279 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
280 before reading attribute Component_Type.
282 2009-07-23 Olivier Hainque <hainque@adacore.com>
284 * gnat_rm.texi: Document the GNAT.SSE units.
286 2009-07-23 Ed Schonberg <schonberg@adacore.com>
288 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
289 not null return if it appears on a subunit.
291 2009-07-23 Robert Dewar <dewar@adacore.com>
293 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
294 check right away so it does not get skipped for early returns, e.g.
296 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
297 left-side unless we really know the value is valid.
299 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
300 reformatting. Minor code reorganization. Add comments.
302 2009-07-23 Robert Dewar <dewar@adacore.com>
304 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
307 2009-07-23 Gary Dismukes <dismukes@adacore.com>
309 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
310 with test of coverage, to allow specific type objects in extended
311 returns of class-wide functions. Remove now-unnecessary special-case
312 tests that allowed this in certain cases of expanded extended returns.
314 2009-07-23 Javier Miranda <miranda@adacore.com>
316 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
317 N_Null_Statements (for SCIL nodes).
318 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
319 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
320 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
322 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
323 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
324 associated with dispatching call.
325 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
326 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
327 initialization of dispatch tables and initialization of tags.
328 (New_Scil_Node): New function that creates a new SCIL node.
329 (Build_Init_Procedure): Add generation of SCIL node associated with the
330 initialization of tags done in the IP subprogram.
332 2009-07-23 Ed Schonberg <schonberg@adacore.com>
334 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
335 Warnings_Off, do not emit continuation messages.
337 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
340 2009-07-23 Emmanuel Briot <briot@adacore.com>
342 * ali.adb: Minor comment update
344 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
346 * s-win32.ads (HANDLE): Define to be the same size as address type.
349 2009-07-23 Olivier Hainque <hainque@adacore.com>
351 * g-sse.ads: New file. Root of the SSE facilities trees, with
352 general description and common declarations.
353 * g-ssvety.ads: New file. Expose user level SSE vector types.
354 * impunit.adb (Non_Imp_File_Names_95): Register new units.
355 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
356 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
358 2009-07-23 Ben Brosgol <brosgol@adacore.com>
360 * gnat_ugn.texi: Wordsmithing.
362 2009-07-23 Arnaud Charlet <charlet@adacore.com>
364 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
366 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
368 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
369 they are already of the base type of the index.
371 2009-07-22 Brett Porter <porter@adacore.com>
373 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
375 2009-07-22 Robert Dewar <dewar@adacore.com>
377 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
378 * gnat_ugn.texi: Add documentation for -gnateS switch
379 * ug_words: Add entry for -gnateS /SCO_OUTPUT
380 * gcc-interface/Make-lang.in: Update dependenciest.3
382 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
383 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
384 complete information for SCO input/output.
386 2009-07-22 Sergey Rybin <rybin@adacore.com>
388 * gnat_ugn.texi: Update doc for some gnatcheck rules.
390 2009-07-22 Robert Dewar <dewar@adacore.com>
392 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
393 contents of SCO tables.
394 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
395 scos.adb, scos.ads: New files.
396 * gcc-interface/Make-lang.in: Update dependencies.
398 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
399 fixes and reformatting.
401 2009-07-22 Robert Dewar <dewar@adacore.com>
403 * g-socket.ads: Minor reformatting
405 2009-07-22 Gary Dismukes <dismukes@adacore.com>
407 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
408 include the entity kind for following cases of unreferenced entities:
409 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
411 2009-07-22 Ed Falis <falis@adacore.com>
413 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
416 2009-07-22 Arnaud Charlet <charlet@adacore.com>
418 * adadecode.c: Make this file compilable outside of GCC.
420 2009-07-22 Thomas Quinot <quinot@adacore.com>
422 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
423 (partially) default-initialized socket sets are handled properly by
424 clearing their Set component.
426 2009-07-22 Bob Duff <duff@adacore.com>
428 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
430 2009-07-22 Robert Dewar <dewar@adacore.com>
432 * gnat_ugn.texi: Minor reformatting
434 2009-07-22 Ed Schonberg <schonberg@adacore.com>
436 * errout.adb (Error_Msg): A style message within an instantiation
437 should not be labelled as an error.
439 2009-07-22 Ed Schonberg <schonberg@adacore.com>
441 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
442 in initialization expression if function does not have convention Ada.
444 2009-07-22 Sergey Rybin <rybin@adacore.com>
446 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
447 '--separate-label' to control label layout.
449 2009-07-22 Robert Dewar <dewar@adacore.com>
451 * exp_tss.ads, sem_eval.adb: Minor reformatting
453 2009-07-22 Bob Duff <duff@adacore.com>
455 * exp_dist.adb, exp_dist.ads: Update comments.
457 2009-07-22 Brett Porter <porter@adacore.com>
459 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
461 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
463 2009-07-22 Gary Dismukes <dismukes@adacore.com>
465 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
466 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
468 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
469 used poor terminology.
471 2009-07-22 Robert Dewar <dewar@adacore.com>
473 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
474 * sem_eval.adb, exp_tss.adb: Minor comment update.
475 * stylesw.adb: Code clean up.
477 2009-07-22 Ed Schonberg <schonberg@adacore.com>
479 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
480 component size is an exact number of bytes, an array type can have a
481 size clause that forces packing even though the array type itself is
484 2009-07-22 Thomas Quinot <quinot@adacore.com>
486 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
487 if there is a previous entity with the same name in the scope, ignore
488 it if it is the renaming declaration for a generic package introduced
491 2009-07-22 Nicolas Roche <roche@adacore.com>
493 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
494 handler on x86_64 windows.
496 2009-07-22 Arnaud Charlet <charlet@adacore.com>
498 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
499 false positives in CodePeer, so ignore this pragma in this mode.
501 2009-07-22 Thomas Quinot <quinot@adacore.com>
503 * sem_util.adb, sem_ch10.adb: Minor reformatting
505 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
506 special handling for the case of no data received and Item'First =
507 Stream_Element_Offset'First.
508 (Last_Index): New subprogram factoring the above special handling
509 over the various locations where it is required.
511 2009-07-22 Arnaud Charlet <charlet@adacore.com>
513 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
514 checks in CodePeer_Mode.
515 * gcc-interface/Make-lang.in: Update dependencies.
517 2009-07-22 Ed Schonberg <schonberg@adacore.com>
519 * sem_aggr.adb: Improve error message.
521 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
522 of an address representation clause.
523 * freeze.adb (Freeze_Static_Object): An local imported object is legal
524 if it has an address clause.
526 2009-07-22 Thomas Quinot <quinot@adacore.com>
528 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
529 expression to insert an elab check using a conditional expression, be
530 sure to carry the original list of interpretations to the new location.
532 2009-07-22 Gary Dismukes <dismukes@adacore.com>
534 * gnat1drv.adb: Fix spelling error.
536 2009-07-22 Javier Miranda <miranda@adacore.com>
538 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
539 at the library level and fix a hidden bug in its implementation: its
540 functionality for renaming objects was broken because
541 N_Object_Renaming_Declarations nodes are not a subclass of
542 N_Declaration nodes (as documented in sinfo.ads).
543 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
544 check nodes that are actuals of generic instantiations.
546 2009-07-22 Ed Schonberg <schonberg@adacore.com>
548 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
549 context of a compilation unit is being analyzed. Used to detect
550 circularities created by with_clauses that are not detected by the
552 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
553 analyzing the context of the current compilation unit, to detect
554 possible circularities created by with_clauses.
556 2009-07-22 Thomas Quinot <quinot@adacore.com>
558 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
560 2009-07-22 Robert Dewar <dewar@adacore.com>
562 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
563 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
565 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
566 * gnat_ugn.texi: Add documentation of -gnatyB
567 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
569 2009-07-22 Robert Dewar <dewar@adacore.com>
571 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
572 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
573 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
574 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
575 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
576 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
577 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
578 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
579 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
580 obey short-circuit style rule.
582 2009-07-20 Bob Duff <duff@adacore.com>
584 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
585 instead of "and", because otherwise Parent_Last_Bit is read
586 uninitialized in the case where it's not a tagged type, or the tagged
587 parent does not have a complete rep clause.
589 2009-07-20 Robert Dewar <dewar@adacore.com>
591 * stylesw.ads: Minor documentation change.
593 * types.ads: Minor reformatting
595 2009-07-20 Javier Miranda <miranda@adacore.com>
597 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
598 generating the tag checks associated with dispatching calls.
599 * exp_disp.adb (Apply_Access_Checks): New subprogram.
600 (New_Value): This routine was previously local to expand dispatching
601 calls but it is now used also by Apply_Access_Checks.
602 (Expand_Dispatching_Calls): Cleanup code because the functionality of
603 tag checks is now provided by Apply_Access_Checks.
604 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
605 case of dispatching calls.
607 2009-07-20 Arnaud Charlet <charlet@adacore.com>
609 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
612 2009-07-20 Gary Dismukes <dismukes@adacore.com>
614 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
615 for VMS, only rewrite the first component of the associated exception's
616 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
617 and third components that were being replaced with 'M' and 'S'.
619 2009-07-20 Arnaud Charlet <charlet@adacore.com>
621 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
622 Also do not generate error when parsing a spec in CodePeer mode.
624 2009-07-20 Javier Miranda <miranda@adacore.com>
626 * checks.adb (Apply_Access_Check): Avoid checks on availability of
627 runtime function Offset_To_Top_Ptr when compiling with no tagged
629 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
630 adding code to the init proc when compiling for VM backends.
632 2009-07-20 Vincent Celier <celier@adacore.com>
634 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
635 account switches -gnatw.?
637 2009-07-20 Thomas Quinot <quinot@adacore.com>
639 * sem_dist.adb, exp_dist.adb: Minor reformatting
641 * Make-generated.in: New file.
643 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
645 2009-07-20 Javier Miranda <miranda@adacore.com>
647 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
649 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
650 dynamically tagged expression.
651 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
653 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
654 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
656 2009-07-20 Arnaud Charlet <charlet@adacore.com>
658 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
659 CodePeer_Mode is set, to benefit from full front-end expansion
662 2009-07-20 Ed Schonberg <schonberg@adacore.com>
664 * sem_res.adb: Add guard.
666 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
667 for possible attribute definition of External_Tag, in case clause
668 appears in the private part of a package.
670 2009-07-20 Jerome Guitton <guitton@adacore.com>
672 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
674 2009-07-20 Vadim Godunko <godunko@adacore.com>
676 * a-coorma.adb: Minor reformatting.
678 2009-07-20 Ed Schonberg <schonberg@adacore.com>
680 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
682 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
683 provide an itype reference to gigi to force elaboration of the subtype
686 2009-07-20 Tristan Gingold <gingold@adacore.com>
688 * g-expect.adb: Avoid closeing already closed handle.
690 2009-07-20 Robert Dewar <dewar@adacore.com>
692 * sprint.adb (Write_Subprogram_Name): New procedure to output
693 subprogram name with possible preceding $ (replaces
694 Note_Implicit_Run_Time_Call).
696 2009-07-20 Robert Dewar <dewar@adacore.com>
698 * vms_data.ads: Minor reformatting
700 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
701 applies to base type.
702 (Parent_Subtype): Now allowed on record subtype, applies to base type
703 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
704 for case of fully repped tagged type.
705 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
706 tag save/restore for fully repped tagged type case.
707 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
708 * fe.h (Is_Fully_Repped_Tagged_Type): New function
709 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
710 overlap of tagged type components with parent type if parent type is
712 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
714 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
716 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
717 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
719 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
720 logical operators (AND/OR/XOR), not comparison operators.
722 * sprint.ads: Minor reformatting
724 2009-07-20 Ed Schonberg <schonberg@adacore.com>
726 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
727 intrinsics, check that argument is a string literal, rather than
728 checking for staticness.
730 2009-07-20 Robert Dewar <dewar@adacore.com>
732 * sem_ch13.adb: Minor reformatting
734 * einfo.ads: Minor reformatting
735 Component_Bit_Offset is no longer considered obsolescent
737 2009-07-20 Nicolas Roche <roche@adacore.com>
739 * a-calend.adb: Redefine time_t as signed integer with same size as
741 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
743 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
746 2009-07-20 Javier Miranda <miranda@adacore.com>
748 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
749 constructors that have anonymous access type formals.
751 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
752 class-wide arguments in case of imported C++ subprograms.
754 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
756 2009-07-20 Sergey Rybin <rybin@adacore.com>
758 * vms_data.ads: Update qualifiers.
760 2009-07-20 Robert Dewar <dewar@adacore.com>
762 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
765 2009-07-17 Richard Guenther <rguenther@suse.de>
768 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
769 state. Remove unused parameter.
770 (gnat_gimplify_function): Do not gimplify here.
771 Fold into its only caller and remove.
772 (gnat_builtin_function): Adjust for end_subprog_body signature change.
773 (gnat_write_global_declarations): Also finalize the CU.
774 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
775 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
776 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
778 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
780 2009-07-15 Arnaud Charlet <charlet@adacore.com>
782 * gcc-interface/Make-lang.in: Update dependencies
784 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
786 2009-07-15 Robert Dewar <dewar@adacore.com>
788 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
789 N_Label. Remove SCO table entry for entry point (not used).
791 * par_sco.ads: Remove SCO entry point type (not used)
793 * switch.adb: Minor code clean up.
795 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
797 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
799 2009-07-15 Thomas Quinot <quinot@adacore.com>
801 * gnatls.adb: Minor reformatting
803 * gnatcmd.adb: Minor code reorganization
805 2009-07-15 Ed Schonberg <schonberg@adacore.com>
807 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
808 determine whether a component of a private type has a composite type.
810 2009-07-15 Robert Dewar <dewar@adacore.com>
812 * sem_ch10.adb: Minor reformatting throughout
813 Minor code reorganization (put nested subprograms in alpha order)
815 2009-07-15 Ed Schonberg <schonberg@adacore.com>
817 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
818 when compiling a call to a protected function that returns a controlled
821 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
823 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
824 one. Add task locking and unlocking around the critical region which
825 mentions localtime_r and global variable timezone for various targets.
826 Comment reformatting.
828 2009-07-15 Robert Dewar <dewar@adacore.com>
830 * gnat_rm.texi: Document s-ststop.ads
832 * impunit.ad: (Map_Array): New table of alternative names
833 (Get_Kind_Of_Unit): Return possible suggested alternative name
835 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
838 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
839 alternative unit if an implementation unit is with'ed.
841 2009-07-15 Robert Dewar <dewar@adacore.com>
843 * gnat_ugn.texi: Minor updates.
845 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
847 2009-07-15 Ed Schonberg <schonberg@adacore.com>
849 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
850 conditions of a derived boolean type.
853 2009-07-15 Robert Dewar <dewar@adacore.com>
855 * gnat1drv.adb: Initialize SCO tables
857 * par-load.adb: Call SCO_Record for main unit spec
859 * par.adb: Make call to SCO_Record for main unit
861 * par_sco.adb (Unit_Table): Change format to facilitate sort
862 (Process_Decisions): New procedure with list argument
863 (Traverse_Generic_Package_Declaration): New procedure
864 (Initialize): New procedure, replaces Init
865 (SCO_Output): Sort unit table before output
866 (SCO_Record): Avoid duplications
867 (SCO_Record): Handle remaining cases of units
868 (Traverse_Declarations_Or_Statements): Handle generics
870 * par_sco.ads (Initialize): New peocedure (replaces Init)
872 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
875 2009-07-15 Arnaud Charlet <charlet@adacore.com>
877 * debug.adb: Add -gnatd.J switch for now to support scil generation in
878 parallel. Add missing doc for -gnatd.I and -gnatd.O
880 2009-07-15 Robert Dewar <dewar@adacore.com>
882 * lib-load.adb: Minor reformatting
884 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
886 2009-07-15 Robert Dewar <dewar@adacore.com>
888 * par.adb: Minor reformatting
889 Add ??? comment for possible bad comment
891 * par-ch10.adb: Minor reformatting
893 2009-07-15 Ed Schonberg <schonberg@adacore.com>
895 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
896 is a literal of a derived boolean type, it appears as an unchecked
897 conversion. Retrieve actual value from expression of conversion.
899 2009-07-15 Robert Dewar <dewar@adacore.com>
901 * sem_ch3.adb: Minor reformatting
903 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
904 lib-writ.ads, lib-writ.adb: Minor reformatting.
905 Fix problem with SCO format in ALI files
907 2009-07-15 Robert Dewar <dewar@adacore.com>
909 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
910 exp_aggr.adb: Minor code reorganization (better calling sequence for
913 2009-07-15 Thomas Quinot <quinot@adacore.com>
915 * opt.ads: Minor comment edits
917 2009-07-15 Tristan Gingold <gingold@adacore.com>
919 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
922 2009-07-15 Robert Dewar <dewar@adacore.com>
924 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
927 * lib-writ.ads: Document addition of SCO lines to ALI file
929 * par_sco.ads, par_sco.adb: New files.
931 * opt.ads (Generate_SCO): New switch
933 * par.adb (Par): Call SCO_Record to record SCO information
935 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
937 * switch-c.adb: Recognize -gnateS to generate SCO information
939 * usage.adb: Add line for -gnateS
941 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
943 2009-07-15 Robert Dewar <dewar@adacore.com>
945 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
948 2009-07-15 Thomas Quinot <quinot@adacore.com>
950 * g-socthi-mingw.adb: Minor comment addition
952 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
954 2009-07-15 Robert Dewar <dewar@adacore.com>
956 * g-htable.ads, s-htable.ads: Minor reformatting
958 2009-07-15 Robert Dewar <dewar@adacore.com>
960 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
962 (Set_GNAT_Mode_Warnings): New procedure.
964 * lib-xref.adb: Minor reformatting
966 2009-07-15 Robert Dewar <dewar@adacore.com>
968 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
969 Minor code reorganization
971 2009-07-14 Taras Glek <tglek@mozilla.com>
972 Rafael Espindola <espindola@google.com>
974 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
975 installing plugin headers.
977 2009-07-13 Ed Schonberg <schonberg@adacore.com>
979 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
980 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
981 and link it to the expression whose value it captures.
983 2009-07-13 Robert Dewar <dewar@adacore.com>
985 * output.adb: Minor comment addition for last change
987 * sinfo.ads: Minor reformatting
989 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
991 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
992 spawn failed like on all other targets.
994 2009-07-13 Ed Schonberg <schonberg@adacore.com>
996 * exp_ch7.adb: Indicate origin of temporary for transient expression.
998 2009-07-13 Thomas Quinot <quinot@adacore.com>
1000 * s-oscons-tmplt.c: Add comment.
1002 2009-07-13 Robert Dewar <dewar@adacore.com>
1004 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1005 reformatting. Minor code reorganization (add 9 argument version of
1008 * impunit.adb: Remove s-os_lib from list of system extensions.
1010 * sem_util.ads: Minor reformatting
1012 * output.adb: Add warnings off/on around System.OS_Lib.
1014 2009-07-13 Bob Duff <duff@adacore.com>
1016 * exp_dist.adb: Minor comment updates.
1018 2009-07-13 Gary Dismukes <dismukes@adacore.com>
1020 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
1021 several references to CodePeer.
1023 2009-07-13 Bob Duff <duff@adacore.com>
1025 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
1026 Build_TypeCode_Function_All): Do not recurse if the type is the base
1029 2009-07-13 Robert Dewar <dewar@adacore.com>
1031 * exp_ch4.adb: Minor comment change
1033 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1035 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1036 type of iteration, to prevent spurious warnings.
1038 2009-07-13 Nicolas Roche <roche@adacore.com>
1040 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1043 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1045 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1046 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1048 (CodePeer_Mode): New -gnatC switch.
1049 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1052 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
1054 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1055 integer bound forces the check if it is compared to its subtype range.
1057 2009-07-13 Robert Dewar <dewar@adacore.com>
1059 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1060 prj-strt.ads: Minor reformatting
1062 2009-07-13 Thomas Quinot <quinot@adacore.com>
1064 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1065 set the type of the From_Any call to the base type.
1067 2009-07-13 Doug Rupp <rupp@adacore.com>
1069 * symbols-processing-vms-ia64.adb (Process): Add variables and
1070 constants to retrieve and check for symbol visibility.
1072 2009-07-13 Javier Miranda <miranda@adacore.com>
1074 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1075 the identical type we remove the conversion completely because
1078 2009-07-13 Emmanuel Briot <briot@adacore.com>
1080 * prj-err.adb (Error_Msg): One more case where a message should be
1081 considered as a warning.
1083 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1085 2009-07-13 Thomas Quinot <quinot@adacore.com>
1087 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1088 calling stubs in the (library level) scope of the RCI locator, where it
1089 is attached, not in the caller's scope.
1091 2009-07-13 Javier Miranda <miranda@adacore.com>
1093 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1094 interface object declarations we delay the generation of the equivalent
1095 record type declarations until its expansion because there are cases in
1096 which they are not required.
1098 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1100 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1101 addition of assertion.
1103 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1104 interface types require no equivalent constrained type declarations
1105 because the expanded code only references the tag component associated
1107 (Find_Interface_Tag): Improve management of interfaces that are
1108 ancestors of tagged types.
1110 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1111 class-wide object declarations to add missing support to statically
1112 displace the pointer to the object to reference the tag component
1113 associated with the interface.
1115 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1116 auxiliary types associated with user-defined dispatching calls if the
1117 type has no user-defined primitives.
1119 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1121 * mingw32.h: Make it explicit that we need XP or later.
1123 * initialize.c: Remove useless extern symbol declaration.
1125 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1126 code reuse in expect.c.
1128 * adaint.c: Changes throughout the Windows section to redesign storage
1129 of the child process list and the process identification.
1131 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1132 for interfacing, fix errors.
1133 (__gnat_expect_portable_execvp): use function in adaint.c
1135 2009-07-13 Emmanuel Briot <briot@adacore.com>
1137 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1138 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1139 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1140 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1141 (Prj.Nmsc.Report_Error): Removed, no longer needed.
1142 Always use Prj.Err.Report_Message.
1144 2009-07-13 Robert Dewar <dewar@adacore.com>
1146 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1149 2009-07-13 Robert Dewar <dewar@adacore.com>
1151 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1152 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1154 2009-07-13 Emmanuel Briot <briot@adacore.com>
1156 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1157 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1158 Ada_Prj_Include_File_Set): Removed, since not needed
1161 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1163 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1164 Analyze_Membership_Op.
1166 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1167 Resolve_Membership_Op.
1169 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1172 2009-07-13 Robert Dewar <dewar@adacore.com>
1174 * clean.adb: Minor reformattting
1176 2009-07-13 Emmanuel Briot <briot@adacore.com>
1178 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1179 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1180 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1181 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1182 and attributes in a project tree.
1183 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1184 Remove last remaining mode-specific code (ada_only or
1185 multi_language). This was duplicating code
1186 (Get_Mode, Set_Mode): removed, no longer used.
1187 (Initialize_Project_Path): all tools will now take into account both
1188 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1189 Remove some global variables and subprograms no longer used
1190 Make temporary files tree-specific, to avoid interferences between
1191 trees loaded in memory at the same time.
1192 (Prj.Delete_Temporary_File): new subprogram
1193 (Object_Paths, Source_Paths): fields no longer stored in the project
1194 tree, since they are only needed locally in Set_Ada_Paths.
1195 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1197 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1198 by local variables in the appropriate subprograms
1199 (Has_Foreign_Sources): removed.
1201 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1203 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1205 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1206 Back_Annotate_Rep_Info in inspector mode.
1207 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1209 * opt.ads: Update comment.
1211 2009-07-13 Robert Dewar <dewar@adacore.com>
1213 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1214 prj.ads: Minor reformatting and code reorganization.
1216 * par-ch3.adb (Check_Restricted_Expression): New procedure
1218 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1220 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1221 attribute into a call of the corresponding suprogram, create extra
1222 formals for the subprogram, because it may be a renaming whose
1223 analysis does not create extra formals.
1225 2009-07-13 Emmanuel Briot <briot@adacore.com>
1227 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1228 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1229 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1230 prj-tree.ads: Minor reformatting.
1231 (Processing_Flags): new record to encapsulate the set of common
1232 parameters to several subprograms in the project manager.
1233 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1234 Remove the need for the Current_Dir parameter in subprograms.
1235 (Look_For_Sources): minor refactoring, now that we no longer need to
1236 share subprograms between the two Ada_Only and Multi_Language modes
1237 (Processing_Flags): New field Error_On_Unknown_Language.
1238 Merge tests for library project between gnatmake and gprbuild.
1240 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1242 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1245 2009-07-13 Emmanuel Briot <briot@adacore.com>
1247 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1250 2009-07-13 Thomas Quinot <quinot@adacore.com>
1252 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1253 Write,Input,Output} from private view to full view.
1255 * sem_type.adb, sem_type.ads: Minor reformatting
1257 2009-07-13 Nicolas Setton <setton@adacore.com>
1259 * exp_dbug.ads: Add documentation note on the utility of
1260 DW_AT_GNAT_encoding for IDEs.
1262 2009-07-13 Robert Dewar <dewar@adacore.com>
1264 * g-socthi-vxworks.adb: Minor reformatting
1266 * gnatcmd.adb: Minor reformatting
1268 2009-07-13 Thomas Quinot <quinot@adacore.com>
1270 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1271 removed, not used anymore.
1272 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1273 New subprogram, implements copy of an Any value into a limited object.
1274 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1275 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1276 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1277 of parameters of a limited type, use the above new subprogram.
1279 2009-07-13 Emmanuel Briot <briot@adacore.com>
1281 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1283 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1285 (Error_Report): Remove global variable, replaced by parameters.
1287 2009-07-13 Thomas Quinot <quinot@adacore.com>
1289 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1290 standard sendto(2) interface for connected sockets (passing a null
1291 destination address). Use send(2) instead for that case.
1293 2009-07-13 Pascal Obry <obry@adacore.com>
1295 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1297 2009-07-13 Emmanuel Briot <briot@adacore.com>
1299 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1300 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1301 variables and tables in prj-nmsc.adb.
1302 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1303 (Project_Processing_Data): New record
1304 Simplify/unify check for missing sources.
1306 2009-07-13 Emmanuel Briot <briot@adacore.com>
1308 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1309 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1310 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1311 prj-tree.ads (Immediate_Directory_Of): Removed.
1312 (Prj.Pars): Now parse the project simulating a default config file.
1313 (Add_Default_GNAT_Naming_Scheme): New subprogram
1314 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1315 Remove gnatmake-specific parsing of source files.
1316 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1317 the error itself to provide more precise diagnostics.
1318 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1319 a unit belongs to several projects.
1320 (Copy_Interface_Sources): Search the full path of files to copy in the
1321 list of sources of the application rather than in the list of units.
1322 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1324 (Check_File): Use htables to find out whether a source is duplicated.
1325 (Add_Source): check whether the source or unit were already seen earlier
1327 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1329 2009-07-13 Robert Dewar <dewar@adacore.com>
1331 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1332 expression if extensions permitted.
1334 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1336 (P_Relation): Use P_Membership_Test
1338 * par.adb (P_Membership_Test): New procedure (implement membership set
1341 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1343 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1345 2009-07-13 Thomas Quinot <quinot@adacore.com>
1347 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1348 Do not attempt to generate stubs for predefined primitives of
1349 synchronized interfaces.
1350 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1353 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1355 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1356 Controlling_Result flag from the operation they override.
1358 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1360 * gcc-interface/Make-lang.in: Update dependencies
1362 2009-07-13 Robert Dewar <dewar@adacore.com>
1364 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1365 details on unsupported constructs.
1367 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1370 * s-trafor-default.adb: Correct some warnings
1372 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1373 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1376 * par-ch4.adb (Conditional_Expression): Capture proper location for
1377 conditional expression, should point to IF.
1379 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1380 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1381 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1382 reorganization (use conditional expressions).
1384 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1386 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1387 build-in-place function that returns an inherently limited type (not
1388 just a task type) create proper object declaration so that extra
1389 build-in-place actuals are properly added to the call.
1391 2009-07-13 Robert Dewar <dewar@adacore.com>
1393 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1395 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1397 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1399 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1400 Warn_On_Suspicious_Modulus_Value.
1402 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1404 * usage.adb: Add lines for -gnatw.m/.M switches.
1406 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1408 2009-07-13 Javier Miranda <miranda@adacore.com>
1410 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1411 reading the Is_Interface attribute of the dispatching type.
1413 2009-07-13 Robert Dewar <dewar@adacore.com>
1415 * a-convec.adb: Minor code reorganization (use conditional expressions)
1417 2009-07-13 Robert Dewar <dewar@adacore.com>
1419 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1421 2009-07-13 Robert Dewar <dewar@adacore.com>
1423 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1426 * par-ch4.adb: Minor reformatting
1428 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1430 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1431 => Is_Atomic_Aggregate
1433 2009-07-13 Emmanuel Briot <briot@adacore.com>
1435 * prj-nmsc.adb: Avoid traversing the list of source files if
1436 we have already processed all locally removed files.
1438 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1440 * gnat_ugn.texi: Fix typo.
1442 2009-07-13 Robert Dewar <dewar@adacore.com>
1444 * freeze.adb: Minor reformatting
1445 Minor code reorganization (use Nkind_In)
1447 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1449 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1451 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1452 local variable and do not test it in Compile_Time_Bad_Alignment.
1453 Do not issue size or alignment warnings for the X'Address form.
1454 * sem_util.ads (Find_Overlaid_Object): Delete.
1455 (Find_Overlaid_Entity): New procedure.
1456 * sem_util.adb (Find_Overlaid_Object): Rename to...
1457 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1458 whether the address is offseted within the overlaid entity.
1459 (Has_Compatible_Alignment): Track the offset globally instead of
1460 passing it to Check_Offset. For an indexed component, compute the
1461 full offset when possible. If the resulting offset is zero, only
1463 (Check_Offset): Delete.
1464 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1465 (Address_Aliased_Entity): Delete.
1466 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1467 Find_Overlaid_Entity to find the overlaid entity and the offset.
1468 Adjust throughout for above change.
1469 (Validate_Address_Clauses): Always use attributes of entities, not of
1470 their type. Tweak message for warning. Call Has_Compatible_Alignment
1471 if the address is offseted to warn about incompatible alignments.
1472 * gcc-interface/gigi.h (annotate_object): Declare.
1473 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1474 entity. Call annotate_object instead of annotating manually objects.
1475 (annotate_object): New function.
1476 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1479 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1481 * gcc-interface/ada-tree.h: Minor reorganization.
1482 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1483 (gnat_print_type): Likewise.
1485 2009-07-11 Thomas Quinot <quinot@adacore.com>
1487 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1490 * exp_ch6.adb: Minor reformatting
1492 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1494 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1495 account possible type qualification to determine whether aggregate
1496 needs a target temporary to respect atomic type or object.
1498 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1499 Expand_Atomic_Aggregate.
1501 2009-07-11 Emmanuel Briot <briot@adacore.com>
1503 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1505 (Excluded_Sources_Htable): No longer a global table.
1506 Change error message to indicate which files are illegal in the list
1507 of excluded files, as opposed to only the location in the project
1509 (Find_Source): New subprogram.
1511 2009-07-10 Thomas Quinot <quinot@adacore.com>
1513 * exp_ch7.adb: Update comments.
1515 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1517 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1518 clause if -gnatI is set instead of crashing.
1520 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1522 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1523 Additional work to remove redundant successive raise statements, in
1524 this case access checks.
1526 2009-07-10 Vincent Celier <celier@adacore.com>
1528 * make.adb (Compile): Always create a deep copy of the mapping file
1529 argument (-gnatem=...) as it may be deallocate/reallocate by
1530 Normalize_Arguments.
1532 2009-07-10 Javier Miranda <miranda@adacore.com>
1534 * einfo.adb (Directly_Designated_Type): Add assertion.
1536 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1537 access types before using attribute Directly_Designated_Type.
1539 2009-07-10 Emmanuel Briot <briot@adacore.com>
1541 * prj.ads: Minor typo fix
1543 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1545 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1548 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1549 subprogram is a function call, resolve properly, to ensure that extra
1550 actuals are added as needed.
1552 2009-07-10 Thomas Quinot <quinot@adacore.com>
1554 * sem_aggr.adb: Minor comments editing
1556 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1558 2009-07-10 Robert Dewar <dewar@adacore.com>
1560 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1562 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1565 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1566 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1567 case of conditional expressions that may not be elaborated.
1569 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1570 conditional expression where we may not execute then then or else
1573 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1575 * i-cexten.ads (bool): New type.
1577 2009-07-10 Robert Dewar <dewar@adacore.com>
1579 * sinfo.ads (N_Short_Circuit): New definition
1581 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1582 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1584 2009-07-10 Javier Miranda <miranda@adacore.com>
1586 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1587 non-tagged record types.
1590 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1591 with non-tagged types. Required to import C++ classes that have no
1593 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1594 returning non-tagged types. For backward compatibility, if the
1595 constructor returns a class wide type we internally change the
1596 returned type to the corresponding non class-wide type.
1599 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1600 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1601 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1602 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1605 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1607 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1609 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1611 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1613 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1616 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1619 (pragma CPP_Class): Document that it can be used now with non-tagged
1621 (pragma CPP_Constructor): Document that it can be used now with
1622 functions returning specific types. For backward compatibility
1623 we also support functions returning class-wide types.
1626 (Interfacing with C++ constructors): Update the examples to incorporate
1627 the new syntax in which the functions used to import C++ constructors
1628 return specific types.
1629 (Interfacing with C++ at the Class Level): Update the examples to
1630 incorporate the new syntax in which the functions used to import
1631 C++ constructors return specific types.
1633 2009-07-10 Thomas Quinot <quinot@adacore.com>
1635 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1636 Make_Disp_Conditional_Select_Body,
1637 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1638 interface nor a concurrent type, the primitive body is empty. Generate
1639 a null statement so that it remains well formed.
1641 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1643 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1644 replace references to them in defaulted component expressions with
1645 references to the values of the discriminants of the target object.
1647 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1649 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1650 pragma, to capture global references if the context is generic.
1652 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1653 appears within the initialization procedure for the corresponding
1654 record, replace it with the proper discriminal.
1656 2009-07-10 Vincent Celier <celier@adacore.com>
1658 * make.adb: Do not include object directories or library ALI
1659 directories of library projects in the object path.
1661 2009-07-10 Javier Miranda <miranda@adacore.com>
1663 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1664 Typ argument to ensure proper management of access types.
1666 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1668 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1669 Taft-Amendment type, place the finalization list in the package body,
1670 to ensure that the tree for the spec is identical whenever it is
1673 2009-07-10 Javier Miranda <miranda@adacore.com>
1675 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1676 inheriting attributes from a private Parent_Base.
1678 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1680 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1681 statements with the same condition.
1683 2009-07-10 Robert Dewar <dewar@adacore.com>
1685 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1687 2009-07-09 Tom Tromey <tromey@redhat.com>
1689 * raise-gcc.c: Include dwarf2h (unconditionally).
1691 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1693 * sem_ch10.adb (Install_Context): If the unit is a package body,
1694 install the private with_clauses of the corresponding package
1697 2009-07-09 Robert Dewar <dewar@adacore.com>
1699 * checks.adb: Minor reformatting
1701 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1703 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1706 2009-07-09 Thomas Quinot <quinot@adacore.com>
1708 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1709 Do not warn for a constant overlaying any constant object
1711 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1713 * sem_ch10.adb (Install_Context): If the unit is a package body,
1714 install the private with_clauses of the corresponding package
1717 2009-07-09 Robert Dewar <dewar@adacore.com>
1719 * checks.adb: Minor reformatting
1721 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1723 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1726 2009-07-09 Thomas Quinot <quinot@adacore.com>
1728 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1729 Do not warn for a constant overlaying any constant object
1731 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1733 * gcc-interface/Make-lang.in: Update dependencies
1735 2009-07-09 Thomas Quinot <quinot@adacore.com>
1737 * g-socket.adb (Check_Selector): Do not create local copies of the
1738 socket sets on the stack.
1740 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1742 * gnat_ugn.texi: Add missing VMS translations.
1744 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1746 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1747 condition, to prevent generation of visible code during expansion,
1748 when Check is not enabled.
1750 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1752 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1753 the check gets registered for any available local handler
1756 * sem_util.adb: Add with and use of Exp_Ch11.
1757 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1758 that the check gets registered for any available local handler.
1760 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1763 2009-07-09 Steve Baird <baird@adacore.com>
1765 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1767 (Expand_N_Exception_Declaration): Fix handling of exceptions
1768 declared in a subprogram.
1770 2009-07-09 Emmanuel Briot <briot@adacore.com>
1772 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1775 2009-07-09 Thomas Quinot <quinot@adacore.com>
1777 * freeze.adb: Minor reformatting
1779 * exp_ch3.adb: Minor comment fix.
1781 * sinfo.ads: Minor comment fix
1783 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1785 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1787 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1789 * freeze.adb (Freeze_Expression): If the expression is the name of a
1790 function in a call, and the function has not been frozen yet, create
1791 extra formals for it to ensure that the proper actuals are created
1792 when expanding the call.
1794 2009-07-09 Emmanuel Briot <briot@adacore.com>
1796 * prj-pp.adb (Print): Fix handling of source index when set on a
1799 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1801 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1802 a temporary to the source expression whose value it captures.
1804 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1806 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1808 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1811 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1813 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1814 parameters when the subtype of the actual is not known to be a subrange
1815 of the formal's subtype.
1816 (Expand_Call): Generate a range check only in the E_In_parameter case
1817 (in out parameter range checks are now handled in Expand_Actuals).
1819 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1822 2009-07-07 Robert Dewar <dewar@adacore.com>
1824 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1826 2009-07-07 Javier Miranda <miranda@adacore.com>
1828 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1829 designated type comes from a limited views.
1831 2009-07-07 Emmanuel Briot <briot@adacore.com>
1833 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1834 locally removed files that are later made visible again in an importing
1837 2009-07-07 Robert Dewar <dewar@adacore.com>
1839 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1841 2009-07-07 Sergey Rybin <rybin@adacore.com>
1843 * gnat_ugn.texi: Add an example to the description of gnatcheck
1844 'Style_Checks' rule option.
1846 2009-07-07 Tristan Gingold <gingold@adacore.com>
1848 * seh_init.c: Fix inline assembly statement in seh_init.c
1850 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1852 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1853 an entry body. Only the formals of the entry declaration are traced.
1855 2009-07-07 Robert Dewar <dewar@adacore.com>
1857 * s-osprim-mingw.adb: Minor code reorganization
1859 2009-07-07 Robert Dewar <dewar@adacore.com>
1861 * prj-nmsc.adb: Minor reformatting
1863 2009-07-07 Pascal Obry <obry@adacore.com>
1865 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1866 cases where Pattern is longer than Source.
1868 2009-07-07 Pascal Obry <obry@adacore.com>
1870 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1872 2009-07-07 Emmanuel Briot <briot@adacore.com>
1874 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1877 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1879 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1880 primitive operations, in case one of them is called in the
1881 initialization procedure for the type.
1883 2009-07-07 Robert Dewar <dewar@adacore.com>
1885 * a-calend.adb: Minor code reorganization (use conditional expressions)
1887 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1888 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1889 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1890 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1891 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1892 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1894 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1896 * checks.adb (Generate_Range_Check): Replace type conversions with
1897 unchecked conversions to support the case of performing range checks
1898 on Enum'Val (permits integer values to be converted to enumeration).
1900 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1901 Attribute_Succ): Set Do_Range_Check to False before calling
1902 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1903 (Expand_N_Attribute_Reference, case Attribute_Val):
1904 Generate a range check when needed (and set Do_Range_Check to False).
1906 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1907 scalar object initialization if needed.
1909 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1910 when needed on scalar allocators.
1911 (Expand_N_Qualified_Expression): Generate range check when needed.
1912 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1913 Checks on slice ranges handled in Resolve_Slice.
1915 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1916 when needed, for all scalar assignments, not just discrete.
1917 (Expand_Simple_Function_Return): Resolve the conversion created for a
1918 scalar function return so that the conversion will get expanded to
1919 generate a possible constraint check.
1921 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
1922 in out scalar actuals when subtypes don't match, to ensure generation
1923 of return checks (and set Do_Range_Check to False).
1924 (Expand_Call): Uncomment code to perform range checks, but make it apply
1925 only to in and in out parameters (checks on parameter returns are
1926 handled in Expand_Actuals). If a scalar actual for a call to a derived
1927 subprogram is marked as needing a range check, peform it here (and set
1928 Do_Range_Check to False).
1930 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
1931 range check on scalar component associations when needed.
1933 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
1934 infinities but the second type does not, as these aren't compatible
1935 floating-point types.
1937 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
1938 slice is itself a slice, pick up the Etype of the prefix. This handles
1939 the case where the prefix was an Image attribute expanded to a slice,
1940 and ensures that we get the subtype with the slice constraint rather
1941 than the unconstrained subbtype of the 'Image.
1943 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1945 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
1946 overloaded expressions in a conditional expressions.
1948 * sem_res.adb (Resolve): Handle properly overloaded conditional
1951 2009-07-07 Robert Dewar <dewar@adacore.com>
1953 * scng.adb: Minor reformattting
1955 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
1956 association allows conditional expression without parens.
1958 * par-ch4.adb (P_Name): Attribute arguments can be conditional
1959 expressions without enclosing parentheses, and also as parameters,
1960 indexing expressions etc.
1961 (P_Conditional_Expression): New procedure
1962 (P_Expression_If_OK): New procedure
1964 * par.adb (P_Conditional_Expression): New procedure
1965 (P_Expression_If_OK): New procedure
1967 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
1968 form of conditional expression.
1970 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
1971 missing True argument if ELSE argument missing.
1973 * sinfo.adb (Is_Elsif): New flag
1975 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
1976 part of the language, and the documentation is modified accordingly.
1977 (Is_Elsif): New flag
1979 2009-07-06 Olivier Hainque <hainque@adacore.com>
1981 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
1982 setjmp_longjmp): Attach the exception propagation reraise fallback
1983 to the sequence end label location when we have it.
1985 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1988 * init.c (APPLE): Include <mach/mach_init.h>.
1989 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
1991 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
1993 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
1994 (SET_DECL_LANG_SPECIFIC): Likewise.
1995 (TYPE_RM_VALUE): New macro.
1996 (SET_TYPE_RM_VALUE): Likewise.
1997 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
1998 (TYPE_RM_MIN_VALUE): Likewise.
1999 (TYPE_RM_MAX_VALUE): Likewise.
2000 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2001 (SET_TYPE_RM_MIN_VALUE): Likewise.
2002 (SET_TYPE_RM_MAX_VALUE): Likewise.
2003 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2005 2009-07-04 Laurent GUERBY <laurent@guerby.net>
2008 * tracebak.c (__gnat_backtrace): Fix old-style definition.
2010 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2012 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2014 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2017 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
2020 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
2022 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
2024 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2026 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
2027 the type of the left operand if it pads a self-referential type when
2028 the right operand is a constructor.
2030 * gcc-interface/lang-specs.h: Fix copyright date.
2032 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2034 * gcc-interface/decl.c: Include tree-inline.h.
2035 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2036 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2037 * gcc-interface/utils2.c: Include tree-inline.
2038 (known_alignment) <CALL_EXPR>: Likewise.
2040 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2042 * raise-gcc.c: Include dwarf2.h conditionally.
2044 2009-06-29 Tom Tromey <tromey@redhat.com>
2046 * raise-gcc.c: Include elf/dwarf2.h.
2048 2009-06-27 Laurent GUERBY <laurent@guerby.net>
2050 * tb-gcc.c (trace_callback): Add casts to silence warning.
2052 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2054 * tb-gcc.c: Fix copyright notice.
2056 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2058 * init.c (__gnat_set_globals): Add prototype.
2059 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2060 (__gnat_sals_init_using_constructors): Likewise.
2061 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2062 (get_block_jmpbuf_decl): Likewise.
2063 (gnat_poplevel): Likewise.
2064 (merge_sizes): Rename local variable.
2065 (copy_type): Likewise.
2066 (build_vms_descriptor32): Likewise.
2067 (build_vms_descriptor): Likewise.
2068 (convert_vms_descriptor64): Likewise.
2069 (convert_vms_descriptor32): Likewise.
2070 (convert_to_fat_pointer): Likewise.
2071 (maybe_unconstrained_array): Likewise.
2072 (def_fn_type): Use promoted type with va_arg.
2073 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2074 (substitute_in_type): Rename local variable.
2075 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2077 2009-06-26 Laurent GUERBY <laurent@guerby.net>
2079 * tb-gcc.c (trace_callback): Use char* instead of void*.
2080 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2081 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2082 (Attribute_to_gnu): Adjust for above change.
2083 (Subprogram_Body_to_gnu): Likewise.
2084 * gcc-interface/utils.c (merge_sizes): Rename local variable.
2085 (copy_type): Likewise.
2086 (build_vms_descriptor32): Likewise.
2087 (build_vms_descriptor): Likewise.
2088 (convert_vms_descriptor64): Likewise.
2089 (convert_vms_descriptor32): Likewise.
2090 (convert_to_fat_pointer): Likewise.
2091 (maybe_unconstrained_array): Likewise.
2092 * gcc-interface/decl.c (substitute_in_type): Likewise.
2094 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2096 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2097 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2098 of the upper bound of the index types.
2100 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2102 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2103 out common predicate. Use the maximum to compute the upper bound of
2104 the index type only when it is not wider than sizetype. Perform the
2105 comparison in the index type for the generic expression. Use real
2106 precision to decide whether to generate special types for debugging
2109 2009-06-26 Matthew Gingell <gingell@adacore.com>
2111 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2113 2009-06-26 Vincent Celier <celier@adacore.com>
2115 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2118 2009-06-26 Robert Dewar <dewar@adacore.com>
2120 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2122 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2124 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2125 correct arguments to create_field_decl. Remove redundant iteration.
2126 Rewrite computation of the maximum size.
2127 <E_Array_Subtype>: Reorder and simplify handling of special cases.
2128 Rewrite computation of the maximum size. Use consistent naming.
2129 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2130 comparison order for consistency. Use generic integer node to
2131 build the operator and fold the result.
2133 2009-06-25 Vincent Celier <celier@adacore.com>
2135 * vms_data.ads: Minor comment change
2137 2009-06-25 Gary Dismukes <dismukes@adacore.com>
2139 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2140 assignment statement to targeting a caller-provided object when the
2141 result type is an interface type.
2143 * exp_ch6.adb (Expand_Call): Remove redundant test of
2144 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2145 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2147 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2148 to OK_For_Limited_Init.
2150 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2151 condition so that True is returned for all limited interfaces, not
2152 just synchronized ones. Ignore components of an interface type when
2153 checking for limited components (such a component can be a parent
2156 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2157 (OK_For_Limited_Init): Add type parameter.
2159 * sem_ch3.adb (Check_Initialization): Add type in call to
2160 OK_For_Limited_Init.
2161 (OK_For_Limited_Init): Add new type param in call to
2162 OK_For_Limited_Init_In_05.
2163 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2164 nonlimited type when the context type is a limited interface. Add type
2167 * sem_ch4.adb (Analyze_Allocator): Add type in call to
2168 OK_For_Limited_Init.
2170 * sem_ch6.adb (Check_Limited_Return): Add type in call to
2171 OK_For_Limited_Init.
2173 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2174 OK_For_Limited_Init.
2175 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2177 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2178 class-wide interface, get the base type before applying Etype, in order
2179 to account for class-wide subtypes.
2181 2009-06-25 Emmanuel Briot <briot@adacore.com>
2183 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2184 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2185 between gnatmake and gprbuild.
2186 (Naming_Data): Removed, no longer used
2187 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2188 needed locally in one subprogram, no need to store forever in the
2190 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2192 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2193 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2194 Spec_Suffix_Id_Of): removed, no longer used.
2196 2009-06-25 Javier Miranda <miranda@adacore.com>
2198 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2199 types on qualified expression in calls to imported C++ constructors.
2201 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2202 imported C++ constructors.
2204 2009-06-25 Sergey Rybin <rybin@adacore.com>
2206 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2208 2009-06-25 Vincent Celier <celier@adacore.com>
2210 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2211 provided, on Windows change all '/' to '\'.
2213 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2214 used. Minor comment changes
2216 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2217 Remove_Forbidden_File_Name.
2219 2009-06-25 Quentin Ochem <ochem@adacore.com>
2221 * prj.ads (Unit_Index): Now general access type.
2223 2009-06-25 Pascal Obry <obry@adacore.com>
2225 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2227 2009-06-25 Emmanuel Briot <briot@adacore.com>
2229 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2230 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2231 computed efficiently from the other fields.
2232 (Object_To_Global_Archive): New subprogram
2233 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2234 (Override_Kind): Fix handling of separates in Ada.
2235 (Create_Mapping_File): Remove duplicate code
2236 (Naming_Data.Implementation_Exception, Specification_Exception):
2237 field removed, since never used.
2238 (Naming_Data.Specs, .Bodies): field removed, since this is only
2239 used while processing the project and is not needed once the tree
2240 is in memory. This brings Naming_Data and Lang_Naming_Data
2241 closer (same content now, but different use still).
2243 2009-06-25 Pascal Obry <obry@adacore.com>
2245 * sem_ch4.adb: Minor reformatting.
2247 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2249 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2251 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2252 Unchecked_Access): If the context is an interface type, and the prefix
2253 is of the corresponding class-wide type, do not insert a conversion
2254 because the pointer displacement has already taken place, and we must
2255 retain the class-wide type in a dispatching context.
2257 2009-06-25 Emmanuel Briot <briot@adacore.com>
2259 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2260 the previous source file.
2261 (Create_Mapping): Iterate on sources rather than on units.
2263 2009-06-25 Emmanuel Briot <briot@adacore.com>
2265 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2266 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2267 (Source_Data): no longer use Path.Name to point to a locally removed
2268 file. Instead we use the field Locally_Removed which is clearer
2270 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2272 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2274 * sem_maps.adb, sem_maps.ads: Removed, not used.
2276 2009-06-25 Ed Falis <falis@adacore.com>
2278 * s-vxwext-rtp.ads: Add missing declaration
2280 2009-06-25 Matthew Gingell <gingell@adacore.com>
2282 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2283 speed up unmapped case.
2285 2009-06-25 Vincent Celier <celier@adacore.com>
2287 * prj-nmsc.adb (Check): Change error message for illegal abstract
2290 2009-06-25 Robert Dewar <dewar@adacore.com>
2292 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2294 2009-06-25 Emmanuel Briot <briot@adacore.com>
2296 * fmap.ads: Add documentation on mapping files
2298 2009-06-25 Robert Dewar <dewar@adacore.com>
2300 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2303 2009-06-24 Robert Dewar <dewar@adacore.com>
2305 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2307 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2311 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2313 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2314 present when checking whether a call may be interpreted as an indexing
2315 of the result of a call.
2317 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2318 body for a null procedure on the freeze actions for the procedure, so
2319 that it will be analyzed at the proper place without premature freezing
2322 * sem_ch3.adb (Check_Completion): Code cleanup.
2323 Do not diagnose a null procedure without a body, if previous errors
2324 have disabled expansion.
2326 2009-06-24 Doug Rupp <rupp@adacore.com>
2328 * init.c [VMS] Resignal C$_SIGKILL
2330 2009-06-24 Ed Falis <falis@adacore.com>
2332 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2333 Define ERROR in body for VxWorks 6 kernel
2335 2009-06-24 Pascal Obry <obry@adacore.com>
2337 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2338 in [Send/Receive]_Socket.
2340 2009-06-24 Emmanuel Briot <briot@adacore.com>
2342 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2343 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2344 to several subprograms.
2345 (Source_Data.Other_Part): Removed, since can be computed from the
2347 (Other_Part): New subprogram.
2349 2009-06-24 Emmanuel Briot <briot@adacore.com>
2351 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2352 the full base name of the file when the suffix doesn't start with a '.'.
2354 2009-06-24 Vincent Celier <celier@adacore.com>
2356 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2357 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2360 2009-06-24 Robert Dewar <dewar@adacore.com>
2362 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2363 prj-env.adb: Minor reformatting
2365 2009-06-24 Ed Falis <falis@adacore.com>
2367 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2368 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2369 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2370 support for VxWorks SMP.
2372 * gcc-interface/Make-lang.in: Update dependencies
2374 2009-06-24 Emmanuel Briot <briot@adacore.com>
2376 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2377 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2379 (Source_Data.Lang_Kind): Removed, since it duplicates information
2380 already available through Language.Config.
2381 (Source_Data.Compile): Removed, since information is already available
2382 through the language.
2383 (Is_Compilable): New subprogram.
2384 (Source_Data.Dependency): Removed, since already available through
2386 (Source_Data.Object_Exist, Object_Linked): Removed since available
2387 through the language already.
2388 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2389 bring the two modes closer in the resulting data structures.
2390 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2391 just the name that would point into a hash table.
2392 (Get_Language_From_Name): New subprogram.
2394 2009-06-24 Javier Miranda <miranda@adacore.com>
2396 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2397 visible through limited-with context clauses. In addition, avoid an
2398 extra tag check that is not required when the class-wide
2399 designated types of the operand and target types are
2401 (Tagged_Membership): Handle entities from the limited view.
2403 2009-06-24 Emmanuel Briot <briot@adacore.com>
2405 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2406 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2407 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2408 different vocabularies for similar concepts (Impl/Body_Part and
2409 Spec/Specification).
2410 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2411 some of the information in File_Name_Data. This also saves a bit of
2412 memory. However, since we are now using a pointer we need to test
2413 for null explicitly in several places of the code
2415 2009-06-24 Javier Miranda <miranda@adacore.com>
2417 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2418 from processing the type conversion when the node is
2419 replaced by an N_Raise_Program_Error node.
2421 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2423 * sem_ch6.adb (Designates_From_With_Type): New routine.
2424 (Process_Formals): Since anonymous access types are no longer flagged
2425 as from with types, traverse the designated type to determine whether
2426 it is coming from a limited view.
2428 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2429 (Full_Designated_Type): Use Available_View to extract the non-limited /
2430 full view of a type.
2432 2009-06-24 Robert Dewar <dewar@adacore.com>
2434 * exp_ch6.adb: Minor reformatting
2436 * layout.adb: Minor reformatting
2438 * make.adb: Minor reformatting
2440 2009-06-24 Thomas Quinot <quinot@adacore.com>
2442 * sem_ch10.adb: Minor code reorganization.
2444 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2446 * ttypes.ads: Minor editing.
2448 2009-06-24 Robert Dewar <dewar@adacore.com>
2450 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2451 in deciding to do call-by-copy code.
2453 2009-06-24 Vincent Celier <celier@adacore.com>
2455 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2456 check if an externally built library file is more current than the
2459 2009-06-23 Olivier Hainque <hainque@adacore.com>
2461 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2462 c-common.c and populate in gnat_internal_attribute_table.
2464 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2466 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2467 Available_View only when designated type of an anonymous access type
2470 2009-06-23 Robert Dewar <dewar@adacore.com>
2472 * sem_ch10.adb: Minor reformatting
2474 * ali.ads: Mino reformatting.
2476 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2477 turning off inlining if ASIS mode active).
2479 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2480 This belongs in gnat1drv.adb after switches are scanned.
2482 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2484 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2485 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2486 when dealing with class-wide types. Detect a legal shadow entity and
2487 retrieve its non-limited view.
2489 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2490 subprogram to top package level from Intall_Limited_Withed_Unit.
2491 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2492 Add check which prevents the installation of a limited view if the
2493 non-limited view is already visible through a with clause.
2494 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2495 legal shadow entity which may occur in subprogram formals of anonymous
2498 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2500 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2501 From_With_Type from the designated type to the generated anonymous
2502 access type. Remove associated comment.
2504 * sem_res.adb Add with and use clauses for Sem_Ch10.
2505 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2506 non-limited view. Since the shadow entity may replace a regular
2507 incomplete type, return the available full view.
2509 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2511 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2512 incomplete type declarations. Previous code was potentially quadratic
2513 in the number of visible declarations in any package appearing in a
2514 limited_with_clause.
2516 2009-06-23 Robert Dewar <dewar@adacore.com>
2518 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2519 xref_lib.adb: Minor reformatting
2521 2009-06-23 Robert Dewar <dewar@adacore.com>
2523 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2524 versions which did have a body for this unit.
2526 2009-06-23 Vincent Celier <celier@adacore.com>
2528 * prj-attr.adb: Attribute names Initial_Required_Switches and
2529 Final_Required_Switches changed to Leading_Required_Switches and
2530 Trailing_Required_Switches.
2532 * prj-nmsc.adb (Process_Compiler): Attribute names
2533 Initial_Required_Switches and Final_Required_Switches changed to
2534 Leading_Required_Switches and Trailing_Required_Switches.
2536 * prj.ads (Language_Config): Component Initial_Required_Switches and
2537 Final_Required_Switches changed to Leading_Required_Switches and
2538 Trailing_Required_Switches.
2540 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2541 Final_Required_Switches; add standard names Leading_Required_Switches
2542 and Trailing_Required_Switches.
2544 2009-06-23 Thomas Quinot <quinot@adacore.com>
2546 * prj-conf.adb: Minor reformatting
2548 * xref_lib.adb: Minor cleanup
2550 2009-06-23 Emmanuel Briot <briot@adacore.com>
2552 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2553 prj-conf.ads (Check_Configuration): New parameter
2554 Compiler_Driver_Mandatory.
2556 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2558 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2559 context of the current unit has an inline pragma, the instance is not
2560 rewritten as the declaration of the package wrapper. Handle both
2561 possibilities when retrieving the visible subprogram that renames the
2562 instantiation itself.
2564 2009-06-23 Javier Miranda <miranda@adacore.com>
2566 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2567 designated types referencing entities from the limited view.
2569 2009-06-23 Robert Dewar <dewar@adacore.com>
2571 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2573 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2576 * prj-conf.ads: Minor reformatting
2578 * prj-conf.adb: Minor reformatting
2580 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2582 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2583 to correspond to the log format that gnatmem now expects.
2585 2009-06-23 Vincent Celier <celier@adacore.com>
2587 * prj-attr.adb: New attributes Initial_Required_Switches,
2588 Final_Required_Switches and Object_File_Switches
2590 * prj-nmsc.adb (Process_Compiler): Process new attributes
2591 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2592 Name_Object_File_Switches.
2594 * prj.ads (Language_Config): New component
2595 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2596 Compiler_Final_Required_Switches and Object_File_Switches.
2598 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2599 Final_Required_Switches and Object_File_Switches
2601 2009-06-23 Pascal Obry <obry@adacore.com>
2603 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2605 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2607 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2608 not indicate that the enclosing unit needs a body.
2610 2009-06-23 Emmanuel Briot <briot@adacore.com>
2612 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2614 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2616 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2617 primitive equality include it with its source name even if the
2618 operation is currently invisible, to make sure that the corresponding
2619 slot in the dispatch table is reserved for the internal equality
2620 subsequently generated during expansion.
2622 2009-06-23 Matthew Gingell <gingell@adacore.com>
2624 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2626 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2628 * sysdep.c (__gnat_localtime_tzoff for RTX):
2629 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2630 GetTimeZoneInformation instead.
2632 2009-06-22 Robert Dewar <dewar@adacore.com>
2634 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2636 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2638 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2639 instantiations declared in a previous generic package body.
2641 2009-06-22 Robert Dewar <dewar@adacore.com>
2643 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2644 restriction No_Direct_Boolean_Operators.
2646 2009-06-22 Thomas Quinot <quinot@adacore.com>
2648 * bindusg.adb: Minor fixes to gnatbind usage message
2650 * sem_eval.adb: Minor reformatting
2652 2009-06-22 Javier Miranda <miranda@adacore.com>
2654 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2655 freezing point the check on the use of abstract types in object
2656 declarations. Done to allow the declaration of C++ imported variables
2657 or constants whose type corresponds with an imported C++ classes for
2658 which the constructor is not imported.
2660 2009-06-22 Thomas Quinot <quinot@adacore.com>
2662 * sem_ch6.adb: Minor reformatting
2664 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2666 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2667 component is constrained with an expression rather than with a
2668 discriminant of the enclosing type, use that expression when building
2669 the call to default-initialize the component, when the call is part of
2670 an aggregate with box initialization.
2672 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2674 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2675 unconditional rather than a style check, because a formal name out of
2676 order is suspicious.
2678 2009-06-22 Vincent Celier <celier@adacore.com>
2680 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2681 creating a directory automatically.
2683 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2685 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2686 untagged derived type, add a hidden component for every constrained
2687 discriminant of the parent type to keep record layout consistent.
2689 2009-06-22 Thomas Quinot <quinot@adacore.com>
2691 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2694 2009-06-22 Matthew Gingell <gingell@adacore.com>
2696 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2697 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2698 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2699 a-swuwha.adb: New unit System.String_Hash.
2700 Refactor redundant cut and pasted hash functions with instances of a
2701 new generic hash function.
2702 Implement a new string hashing algorithm which appears in testing to
2703 be move effective than to previous approach.
2705 2009-06-22 Ed Falis <falis@adacore.com>
2707 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2708 message for VxWorks 653 vThreads: not supported by the OS.
2710 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2712 2009-06-22 Robert Dewar <dewar@adacore.com>
2714 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2716 2009-06-22 Robert Dewar <dewar@adacore.com>
2718 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2721 * freeze.adb: Minor comment updates
2723 * s-valrea.adb (Bad_Based_Value): New procedure
2724 (Scan_Real): Raise exceptions with messages
2726 2009-06-22 Matthew Gingell <gingell@adacore.com>
2728 * adaint.h: Complete previous change.
2730 2009-06-22 Thomas Quinot <quinot@adacore.com>
2732 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2734 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2736 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2737 enabled, emit warning when a non-controlling argument of the overriding
2738 operation appears out of place vis-a-vis of the formal of the
2739 overridden operation.
2741 2009-06-22 Vincent Celier <celier@adacore.com>
2743 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2744 have been written into it.
2746 2009-06-22 Matthew Gingell <gingell@adacore.com>
2748 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2751 2009-06-22 Thomas Quinot <quinot@adacore.com>
2753 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2754 view of the root type is visible at the point of the call.
2756 2009-06-22 Pat Rogers <rogers@adacore.com>
2758 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2760 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2762 * freeze.adb: Add comments.
2764 2009-06-21 Thomas Quinot <quinot@adacore.com>
2766 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2767 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2768 Factor out code to new subprogram...
2769 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2770 for a default initialized variable.
2771 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2772 entity that has an associated freeze node.
2773 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2774 If there is an init call for the object, defer it to the object freeze
2776 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2777 name clash with new subprogram introduced in Exp_Util.
2779 2009-06-21 Robert Dewar <dewar@adacore.com>
2781 * einfo.ads: Minor reformatting
2783 2009-06-21 Ed Falis <falis@adacore.com>
2785 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2787 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2789 * einfo.ads: Update comments.
2791 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2793 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2794 where the controlling formal is of private class-wide type whose
2795 completion is a synchronized type can be converted into direct calls.
2797 2009-06-21 Vincent Celier <celier@adacore.com>
2799 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2800 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2801 of sources using -files=, so that the distinction can be made by the
2802 tool of a call with no source (to display the usage) from a call with
2803 a project file that contains no source.
2805 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2807 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2808 case of VM convention arrays.
2810 2009-06-20 Robert Dewar <dewar@adacore.com>
2812 * a-nudira.adb: Minor reformatting
2814 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2816 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2817 expressions (possibly from a parent type) indicate that the scope of
2818 the new itypes is the initialization procedure being built.
2820 2009-06-20 Robert Dewar <dewar@adacore.com>
2822 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2823 Needs_64, and now computed without anomolies for some dynamic types.
2825 2009-06-20 Thomas Quinot <quinot@adacore.com>
2827 * sem_prag.adb: Minor reformatting
2829 * exp_disp.ads: Minor reformatting
2831 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2833 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2834 function call is a legal expression to initialize a limited object.
2836 * exp_ch3.adb: Rename various freeze operations that perform expansion
2837 actions, to prevent confusion with subprograms in the freeze package.
2839 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2841 * sem.adb (Walk_Library_Units): Check instantiations first.
2843 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2844 private primitive if it is a function with a controlling result that is
2845 a type extension with progenitors.
2847 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2848 a primitive operation of a synchronized tagged type that has a
2851 2009-06-20 Thomas Quinot <quinot@adacore.com>
2853 * einfo.ads: Fix typo.
2855 2009-06-20 Ed Falis <falis@adacore.com>
2857 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2859 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2861 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2863 (protect_multiple_eval): Always protect complex expressions.
2865 2009-06-19 Emmanuel Briot <briot@adacore.com>
2867 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2868 make sure we always return a name ending with a path separator.
2870 2009-06-19 Javier Miranda <miranda@adacore.com>
2872 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2873 Save and restore the visibility of the parent when installed.
2875 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2877 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2878 by Common which contains all these fields.
2880 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2881 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2882 Remove code duplication in this package by means of calling the
2883 equivalent code in s-taprob.
2885 2009-06-19 Robert Dewar <dewar@adacore.com>
2887 * a-einuoc.ads: Minor reformatting
2889 2009-06-19 Ed Falis <falis@adacore.com>
2891 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2892 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2894 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2896 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2898 2009-06-19 Robert Dewar <dewar@adacore.com>
2900 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2903 * checks.adb (Determine_Range): Move the test for generic types later.
2905 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2907 (Eval_Relational_Op): Fold more cases including string compares
2909 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2912 2009-06-19 Robert Dewar <dewar@adacore.com>
2914 * sem_type.ads, sem_ch12.adb: Minor reformatting
2916 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2918 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2920 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
2921 primitive operation of a rivate extension whose controlling argument
2922 is an out parameter.
2924 * sem.adb (Walk_Library_Units): exclude generic package declarations
2927 2009-06-19 Thomas Quinot <quinot@adacore.com>
2929 * i-vxwoio.ads: Add comments
2931 2009-06-19 Thomas Quinot <quinot@adacore.com>
2933 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2934 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2935 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
2936 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
2937 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
2938 Thin_Common.Socket_Ioctl.
2939 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
2940 __gnat_socket_ioctl.
2941 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
2942 argument after the file descriptor and request code.
2944 2009-06-19 Robert Dewar <dewar@adacore.com>
2946 * checks.adb: Minor reformatting
2948 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2950 * env.c (__gnat_environ): RTX does not support this functionality.
2952 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2954 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
2955 traverse, to account for front-end inlining and instantiations in a
2956 spec or in the main unit.
2958 2009-06-19 Robert Dewar <dewar@adacore.com>
2960 * checks.adb (Determine_Range): Do not attempt to get range of generic
2963 2009-06-19 Sergey Rybin <rybin@adacore.com>
2965 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
2966 gnatmetric option for generating the schema file for gnatmetric XML
2967 output. Add corresponding VMS qualifier.
2969 2009-06-19 Robert Dewar <dewar@adacore.com>
2971 * g-cgi.adb: Minor reformatting
2973 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2975 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
2976 signal code for SIGFPE and raise Program_Error for SIGILL.
2978 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
2980 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2982 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
2983 generic package if there is a visibility candidate that is declared in
2986 2009-06-18 Olivier Hainque <hainque@adacore.com>
2988 * system-aix64.ads: New file.
2989 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
2990 64bit system.ads for ppc64 multilib variants.
2992 2009-06-16 Robert Dewar <dewar@adacore.com>
2993 Olivier Hainque <hainque@adacore.com>
2995 Relax constraints on Machine_Attribute argument types:
2996 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
2998 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
2999 * gcc-interface/decl.c (prepend_attributes): Accept static
3000 expressions of any type as attribute arguments, not only string
3002 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3003 the relaxation of the restriction on the Info argument type.
3005 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3007 * gcc-interface/utils.c (record_builtin_type): Pass location
3008 argument to build_decl.
3009 (create_type_stub_decl): Same.
3010 (create_type_decl): Same.
3011 (create_var_decl_1): Same.
3012 (create_field_decl): Same.
3013 (create_param_decl): Same.
3014 (create_label_decl): Same.
3015 (create_subprog_decl): Same.
3016 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
3017 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
3018 argument to create_artificial_label.
3019 (Loop_Statement_to_gnu): Same.
3020 (Subprogram_Body_to_gnu): Same.
3021 (gnat_gimplify_stmt): Same.
3023 2009-06-11 Richard Henderson <rth@redhat.com>
3025 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
3028 2009-06-11 Ed Schonberg <schonberg@adacore.com>
3030 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
3031 accessibiliy check on access_to_subprogram in the context of an
3032 anonymous access that is not an access parameter.
3034 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
3036 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3038 2009-06-11 Quentin Ochem <ochem@adacore.com>
3040 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3041 comments for message handled by GPS.
3043 2009-06-11 Matthew Gingell <gingell@adacore.com>
3045 * adaint.c: Use fopen64 instead of fopen on platforms where we know
3048 2009-06-11 Pascal Obry <obry@adacore.com>
3050 * g-cgi.ads: Fix comment typo.
3052 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3054 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
3056 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3057 a reference to the original type for the type of the field of the
3059 (maybe_pad_type): Likewise.
3061 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3062 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3063 Pass correctly typed arguments to create_field_decl.
3064 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3065 case of contrained discriminants as well. Use the padded base type
3066 in the other case as well. Rename temporary variable. Tweak test.
3067 Factor common access pattern. Set GNU_SIZE only once.
3069 2009-06-09 Olivier Hainque <hainque@adacore.com>
3071 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3072 helper for build_call_alloc_dealloc with arguments to be interpreted
3073 identically. Process the case where a GNAT_PROC to call is provided.
3074 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3075 and return an allocator for DATA_SIZE bytes aimed at containing a
3076 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
3077 DATA_TYPE alignments greater than what the latter offers.
3078 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3079 release a DATA_TYPE object designated by DATA_PTR using the
3080 __gnat_free entry point.
3081 (build_call_alloc_dealloc): Expect object data type instead of naked
3082 alignment constraint. Use the new helpers.
3083 (build_allocator): Remove special processing for the super-aligned
3084 case, now handled by build_call_alloc_dealloc. Pass data
3085 type instead of the former alignment argument, as expected by the new
3087 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3089 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3090 Remove special processing for the super-aligned case, now handled
3091 by build_call_alloc_dealloc. Pass data type instead of the former
3092 alignment argument, as expected by the new interface.
3094 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3096 * lib-writ.adb (flag_compare_debug): Import.
3097 (Write_ALI): Skip during -fcompare-debug-second.
3099 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3101 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3102 adjusting the discriminant nodes in an extension, use the full view
3103 of the parent subtype if it is of a private kind.
3105 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3107 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3108 _Parent field, if any, to the record before adding the other fields.
3109 <E_Record_Subtype>: Put the _Controller field before the other fields
3110 except for the _Tag or _Parent fields.
3111 (components_to_record): Likewise. Retrieve the _Parent field from the
3114 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3116 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3117 remove unused parameter and simplify.
3118 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
3119 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
3120 as context for all discriminants. Fix formatting nits.
3121 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
3122 before Discriminant_Constraint. Adjust for above renaming. Do not
3123 set GNU_TYPE more than once.
3124 (elaborate_entity): Test Has_Discriminants on the entity and use
3125 Implementation_Base_Type.
3126 (components_to_record): Rename component_list to gnat_component_list.
3127 Retrieve the _Parent field from the list. Fix nits in comments.
3128 Clarify logic in loop. Pass correct arguments to create_field_decl.
3130 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
3132 * gcc-interface/Make-lang.in: Fix formatting.
3134 2009-06-01 Olivier Hainque <hainque@adacore.com>
3135 Eric Botcazou <ebotcazou@adacore.com>
3137 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3138 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3139 on the result if at least one of the input fields couldn't be output
3140 as a static constant any more.
3142 2009-06-01 Olivier Hainque <hainque@adacore.com>
3143 Eric Botcazou <ebotcazou@adacore.com>
3145 * gcc-interface/utils2.c (gnat_build_constructor): Factor
3146 out code. Use initializer_constant_valid_for_bitfield_p and
3147 CONSTRUCTOR_BITFIELD_P for bit-fields.
3149 2009-05-26 Ian Lance Taylor <iant@google.com>
3151 * gcc-interface/Makefile.in (COMPILER): Define.
3152 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3153 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3154 (seh_init.o, tracebak.o): Likewise.
3155 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3156 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3157 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3158 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3159 (ada/utils2.o): Likewise.
3161 2009-05-24 Olivier Hainque <hainque@adacore.com>
3163 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3164 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3165 Add -auxbase variants to the list of recognized internal switches.
3166 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3168 * lib.ads: Make comment on internal GCC switches more general.
3169 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3172 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3174 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3176 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3178 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3181 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3183 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3184 original type because of the alignment when there is an address clause.
3186 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3189 discriminants affect the shape of the subtype, retrieve the GCC type
3190 directly from the original field if the GNAT types for the field and
3191 the original field are the same.
3193 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3195 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3197 (TYPE_RM_VALUES): Likewise.
3198 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3199 (SET_TYPE_RM_SIZE): New macro.
3200 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3201 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3202 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3203 * gcc-interface/gigi.h (create_range_type): Declare.
3204 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3205 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3206 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3207 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3208 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3209 and then set the RM bounds.
3210 <E_Array_Type>: Use create_range_type instead of build_range_type.
3211 <E_Array_Subtype>: Build a regular integer type first and then set
3212 the RM bounds for the extra subtype.
3213 <E_String_Literal_Subtype>: Use create_range_type instead of
3215 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3216 floating-point types.
3217 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3218 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3219 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3220 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3221 types and with RM bounds for subtypes.
3222 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3223 (gnat_print_type) <REAL_TYPE>: New case.
3224 <ENUMERAL_TYPE>: Fall through to above case.
3225 (gnat_get_subrange_bounds): New function.
3226 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3227 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3228 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3229 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3230 (create_range_type): New function.
3231 (create_param_decl): Build a regular integer type first and then set
3232 the RM bounds for the extra subtype.
3233 (unchecked_convert): Remove kludge for 'Valid.
3234 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3235 the index to sizetype instead of TYPE_DOMAIN.
3237 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3239 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3240 parameter and move check for static expression to...
3241 (elaborate_expression): ...here. Adjust call to above function.
3242 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3243 in calls to elaborate_expression.
3244 (elaborate_entity): Likewise.
3245 (substitution_list): Likewise.
3246 (maybe_variable): Fix formatting.
3247 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3249 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3251 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3253 * gcc-interface/Make-lang.in: Update dependencies.
3255 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3257 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3258 Define sa_handler_pos.
3259 * s-osinte-linux.ads: Use it.
3260 * s-linux-mipsel.ads: New.
3261 * system-linux-mips64el.ads: New.
3262 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3265 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3267 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3268 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3269 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3270 (Tagged_Type_Expansion): New flag.
3271 Replace use of VM_Target related to tagged types expansion by
3272 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3273 linked to VM targets.
3275 2009-05-06 Robert Dewar <dewar@adacore.com>
3277 * sem_attr.adb: Add processing for Standard'Compiler_Version
3279 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3281 (Expr_First_Char): Add ??? comment that paren skipping needs work
3282 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3284 * exp_attr.adb: Add processing for Compiler_Version
3286 * sem_attr.adb: New attribute Compiler_Version
3288 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3290 * gnat_rm.texi: Document Compiler_Version attribute
3292 2009-05-06 Robert Dewar <dewar@adacore.com>
3294 * errout.adb: Minor reformatting
3296 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3297 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3298 styleg.adb: Add stylized comments to error messages that are included
3299 in the codefix circuitry of IDE's such as GPS.
3301 2009-05-06 Sergey Rybin <rybin@adacore.com>
3303 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3304 new form of the rule parameter that allows to specify the suffix for
3305 access-to-access type names.
3307 2009-05-06 Robert Dewar <dewar@adacore.com>
3309 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3310 out parameter assigned when exception handlers are present.
3312 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3313 assignments on exit.
3315 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3316 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3317 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3318 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3319 messages that are included in the codefix circuitry of IDE's such as
3322 * sinput.ads, sinput.adb (Expr_First_Char): New function
3323 (Expr_Last_Char): New function
3325 2009-05-06 Sergey Rybin <rybin@adacore.com>
3327 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3328 Add formal definition for extra exit point metric
3330 2009-05-06 Pascal Obry <obry@adacore.com>
3332 * adaint.c: Support for setting attributes on unicode filename on
3335 2009-05-06 Robert Dewar <dewar@adacore.com>
3337 * sem_warn.adb: Minor reformatting
3339 2009-05-06 Javier Miranda <miranda@adacore.com>
3341 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3342 not have discriminants or components with default expressions.
3343 (Analyze_Pragma): For pragma CPP_Class check that imported types
3344 have no discriminants and components have no default expression.
3346 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3347 class-wide types in the expression of a record component association.
3349 2009-05-06 Sergey Rybin <rybin@adacore.com>
3351 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3353 * gnat_ugn.texi: Add description for the new extra exit points metric
3354 (gnatmetric section).
3356 2009-05-06 Robert Dewar <dewar@adacore.com>
3358 * s-fileio.adb: Minor comment update
3360 * sem_ch8.adb: Minor reformatting
3362 * exp_ch3.adb: Update comments.
3364 2009-05-06 Tristan Gingold <gingold@adacore.com>
3366 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3368 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3370 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3371 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3373 * gcc-interface/Make-lang.in: Update dependencies
3375 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3377 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3378 change. The context clause of a generic instance declaration must be
3379 preserved until the end of the compilation, because it may have to be
3380 installed/removed repeatedly.
3381 The latest change to sem.adb ensures that the context of both spec and
3382 body of an instance is traversed before the instance itself, making
3383 this patch redundant.
3385 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3387 * sem_aggr.adb: Fix typo.
3389 2009-05-06 Thomas Quinot <quinot@adacore.com>
3391 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3392 declaration, do not adjust if the declaration is to be rewritten into
3395 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3397 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3400 2009-05-06 Bob Duff <duff@adacore.com>
3402 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3403 otherwise the compiler would be allowed to optimize away the cleanup
3406 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3408 * gnat_ugn.texi: Fix typo.
3410 2009-05-06 Thomas Quinot <quinot@adacore.com>
3412 * g-debuti.adb: Minor reformatting
3414 * exp_attr.adb: Minor reformatting
3416 2009-05-06 Robert Dewar <dewar@adacore.com>
3418 * sem_aggr.adb: Minor reformatting.
3420 * g-socthi-vms.adb: Minor reformatting
3422 2009-05-06 Bob Duff <duff@adacore.com>
3424 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3425 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3427 2009-05-06 Bob Duff <duff@adacore.com>
3429 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3432 2009-05-06 Javier Miranda <miranda@adacore.com>
3434 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3435 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3436 extension aggregates.
3437 (Resolve_Record_Aggregate): Add support for C++ constructors in
3438 extension aggregates.
3440 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3441 constructors in extension aggregates.
3443 2009-05-06 Robert Dewar <dewar@adacore.com>
3445 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3448 2009-05-06 Thomas Quinot <quinot@adacore.com>
3450 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3451 packed type, since on OpenVMS, struct msghdr is packed.
3453 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3455 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3456 call returning an unconstrained composite value, create the proper
3457 subtype for it, as is done for object dclarations with unconstrained
3458 nominal subtypes. Perform this transformation regarless of whether
3459 call comes from source.
3461 2009-05-06 Robert Dewar <dewar@adacore.com>
3463 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3467 Add documentation for pragma Implicit_Packing applied to record
3470 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3472 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3473 instantiation on the spec, because late instance bodies may generate
3474 with_clauses for the instance body but are inserted in the instance
3477 2009-05-06 Emmanuel Briot <briot@adacore.com>
3479 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3480 support for returning the directory even if it doesn't exist. This is
3481 used for the object directory, since we are always setting it to a
3482 non-null value, and we should set it to an absolute name rather than a
3483 relative name for the sake of external tools that might depend on it.
3484 (Check_Library_Attributes): When Project.Library_Dir is known, check
3485 that the directory exists.
3487 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3489 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3490 reference is an implicit dereference, do not freeze the designated type
3491 if within a default expression or when preanalyzing a pre/postcondtion.
3493 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3495 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3496 call returning an unconstrained composite value, create the proper
3497 subtype for it, as is done for object dclarations with unconstrained
3500 2009-05-06 Robert Dewar <dewar@adacore.com>
3502 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3505 * freeze.adb: Minor reformatting
3507 2009-05-06 Thomas Quinot <quinot@adacore.com>
3509 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3510 designated type is a limited view from a limited with clause (flagged
3511 From_With_Type) is not itself such a limited view.
3513 2009-05-06 Emmanuel Briot <briot@adacore.com>
3515 * prj-nmsc.adb: Remove unused variable.
3517 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3518 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3519 makeutl.ads, since not all users of prj.ads need this.
3521 2009-05-06 Javier Miranda <miranda@adacore.com>
3523 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3524 constructor in case of aggregates whose type is a CPP_Class type.
3526 2009-05-06 Robert Dewar <dewar@adacore.com>
3528 * sem_ch13.adb: Minor comment additions
3530 * osint.adb: Minor reformatting
3532 2009-05-06 Pascal Obry <obry@adacore.com>
3534 * initialize.c: On Windows, keep full pathname to expanded command
3537 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3539 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3540 an aggregate with box default is of a discriminated private type, do
3541 not build a subaggregate for it.
3542 A proper call to the initialization procedure is generated for it.
3544 2009-05-06 Thomas Quinot <quinot@adacore.com>
3546 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3547 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3548 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3549 use standard array code for Standard.String.
3550 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3551 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3553 2009-05-06 Robert Dewar <dewar@adacore.com>
3555 * g-comlin.ads: Minor reformatting
3557 * xoscons.adb: Minor reformatting
3559 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3561 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3562 Underlying_Type before retrieving the type definition for gathering
3563 components, to account for the case where the type is private.
3565 2009-05-06 Tristan Gingold <gingold@adacore.com>
3567 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3569 2009-05-06 Thomas Quinot <quinot@adacore.com>
3571 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3572 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3573 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3574 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3575 Windows versions): Fix incorrect base
3576 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3577 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3578 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3579 achieve independance from AF_INET family, and also to allow this
3580 parameter to be retrieved from a Msghdr for the Windows case where
3581 these routines are used to implement C_Sendmsg and C_Recvmsg.
3583 2009-05-06 Bob Duff <duff@adacore.com>
3585 * g-expect.adb, g-expect.ads: Minor reformatting
3587 * sdefault.ads: Minor comment fix
3589 * g-expect-vms.adb: Minor reformatting
3591 * table.ads, table.adb (Append_All): New convenience procedure for
3592 appending a whole array.
3594 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3595 box message. Call Osint.Dump_Source_File_Names to print out the file
3596 list, instead of rummaging around in various data structures.
3598 * debug.adb: New switch -gnatd.n, to print source file names as they
3601 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3603 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3604 out source file names during a "bug box".
3605 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3606 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3607 If it's not part of the runtimes, store it for later printing by
3608 Dump_Source_File_Names.
3610 2009-05-06 Javier Miranda <miranda@adacore.com>
3612 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3613 documentation and add reference to the GNAT user guide for further
3616 2009-05-06 Javier Miranda <miranda@adacore.com>
3618 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3619 also wrong examples that use extension aggregates.
3621 2009-05-06 Albert Lee <lee@adacore.com>
3623 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3624 of Msg_Iovlen_T for VMS.
3626 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3629 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3631 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3633 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3634 box-defaulted operator in an instantiation, when the type of the
3635 operands is not directly visible.
3637 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3639 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3640 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3641 analysis of the ancestor part. Remove prohibition against limited
3642 interpretations of the ancestor expression in the case of Ada 2005.
3643 Revise error message in overloaded case, adding a message to cover
3646 2009-04-29 Thomas Quinot <quinot@adacore.com>
3648 * xoscons.adb: Minor reformatting
3650 2009-04-29 Bob Duff <duff@adacore.com>
3652 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3653 attribute_definition_clauses for the following attributes when the
3654 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3655 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3656 missing Read attribute on remote types).
3658 * gnat_ugn.texi: Document the change, and add a stern warning.
3660 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3662 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3663 disabled not just for the current scope, but for the innermost dynamic
3666 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3668 * gcc-interface/Make-lang.in: Update dependencies
3670 2009-04-29 Vincent Celier <celier@adacore.com>
3672 * prj-part.adb: Minor comment update
3674 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3676 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3677 box-initialized records with discriminated subcomponents that are
3678 constrained by discriminants of enclosing components. New subsidiary
3679 procedures Add_Discriminant_Values, Propagate_Discriminants.
3681 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3683 * g-socket.adb: Code clean up.
3685 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3687 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3688 function entity, to cover the case of a parameterless function call
3689 that has not been resolved.
3691 2009-04-29 Robert Dewar <dewar@adacore.com>
3693 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3694 reformatting and comment updates.
3696 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3698 * gnat_ugn.texi: Update some documentation about interfacing with C++
3699 Mention -fkeep-inline-functions.
3701 * gnat_ugn.texi: Minor edits
3703 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3705 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3706 for a defaulted component of an enclosing aggregate, inherit the type
3707 from the component declaration of the enclosing type.
3709 2009-04-29 Albert Lee <lee@adacore.com>
3711 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3712 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3713 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3714 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3715 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3716 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3717 type for the Msg_Iovlen field.
3719 2009-04-29 Vincent Celier <celier@adacore.com>
3721 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3722 Source_File_Index_Table entries for the source, to avoid crash when
3725 * gnatcmd.adb (Test_If_Relative_Path): Use
3726 Makeutl.Test_If_Relative_Path.
3728 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3729 Including_RTS is True.
3731 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3732 Including_RTS defaulted to False.
3734 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3737 2009-04-29 Javier Miranda <miranda@adacore.com>
3739 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3741 2009-04-29 Javier Miranda <miranda@adacore.com>
3743 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3744 associated with dyamically tagged expressions if the expression
3745 initializing a tagged type corresponds with a non default CPP
3747 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3748 of limited type objects.
3750 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3751 when a CPP constructor is called in an assignment. Disable also the
3752 error message associated with dyamically tagged expressions if the
3753 exporession initializing a tagged type corresponds with a non default
3756 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3757 non-default C++ constructors.
3759 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3761 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3762 non-default constructors.
3763 (Init_Proc): Add support for non-default constructors.
3765 * exp_disp.adb (Set_Default_Constructor): Removed.
3766 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3767 but extending its functionality to handle non-default constructors.
3769 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3770 constructors. Minor code cleanup removing unrequired label and goto
3773 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3775 (Build_Init_Statements): Add support for non-default constructors.
3776 (Expand_N_Object_Declaration): Add support for non-default constructors.
3777 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3778 to Set_CPP_Constructors.
3780 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3781 non-default constructors.
3782 Required to handle its use in build-in-place statements.
3784 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3785 pragma for non-default C++ constructors and the new compiler support
3786 that allows the use of these constructors in record components, limited
3787 aggregates, and extended return statements.
3789 2009-04-29 Vincent Celier <celier@adacore.com>
3791 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3792 project extending an abstract project.
3794 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3796 * targparm.ads: Fix oversight.
3798 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3800 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3801 derivation when necessary, to find the user-subprogram that is actally
3804 2009-04-29 Robert Dewar <dewar@adacore.com>
3806 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3809 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3811 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3812 primitive operation, rather than source line of synchronized type, when
3813 building the wrapper for a primitive operation that overrides an
3814 operation inherited from a progenitor, to improve the error message on
3815 duplicate declarations.
3817 * sem_ch3.adb (Process_Full_View): Use new signature of
3820 2009-04-29 Robert Dewar <dewar@adacore.com>
3822 * prj-nmsc.ads: Minor reformatting
3824 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3826 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3827 expression on the existing parent If statement.
3829 2009-04-29 Robert Dewar <dewar@adacore.com>
3831 * prj-proc.adb, prj.ads: Minor reformatting
3833 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3835 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3836 existing parent If statement on the newly created one.
3838 2009-04-29 Emmanuel Briot <briot@adacore.com>
3840 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3841 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3842 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3843 (Set_In_Configuration, In_Configuration): Removed.
3844 Replaced by an extra parameter Is_Config_File in several parameter to
3845 avoid global variables to store the state of the parser.
3847 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3849 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3850 with_clauses generated for the same unit through rtsfind, and that
3851 appear in the context of different units.
3853 * rtsfind.adb: New attribute First_Implicit_With, component of the
3854 Unit_Record that stores information about a unit loaded through rtsfind.
3856 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3858 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3859 (other conditions permitting), so that abstract stream subprograms will
3860 be declared for them.
3862 2009-04-29 Bob Duff <duff@adacore.com>
3864 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3866 * g-expect.ads: Minor comment fixes.
3868 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3870 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3871 dispatching operation is a body without previous spec, update the list
3872 of primitive operations to ensure that cross-reference information is
3875 2009-04-29 Albert Lee <lee@adacore.com>
3877 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3878 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3879 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3880 (GNAT.Sockets.Thin.C_Readv,
3881 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3882 (GNAT.Sockets.Thin.C_Recvmsg,
3883 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3885 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3886 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3888 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3890 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3891 operation is a body without previous spec, update the list of
3892 primitive operations to ensure that cross-reference information is
3895 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3896 new compilation unit node for the instance declaration, keep the
3897 context items of the original unit on it, so that the context of the
3898 instance body only holds the context inherited from the generic body.
3900 2009-04-29 Bob Duff <duff@adacore.com>
3902 * sem_res.adb: Minor comment fix.
3904 2009-04-29 Thomas Quinot <quinot@adacore.com>
3906 * sem_elim.adb: Minor reformatting
3908 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3910 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3911 predefined unit, allow arbitrary number of components in static
3912 aggregate, to ensure that the same level of constant folding applies
3913 for Ada 95 and Ada 05 versions of the file.
3915 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3917 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3918 information: no need for full scope check.
3919 (Eliminate_Error): Do not emit error in a generic context.
3921 2009-04-29 Ed Falis <falis@adacore.com>
3923 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
3924 VxWorks 653 POS does not support rmdir.
3926 2009-04-29 Matteo Bordin <bordin@adacore.com>
3928 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
3929 results are printed.
3931 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3933 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
3936 2009-04-29 Thomas Quinot <quinot@adacore.com>
3938 * make.adb: Minor reformatting.
3939 Minor code reorganization throughout.
3941 2009-04-29 Matteo Bordin <bordin@adacore.com>
3943 * s-stausa.ads: Changed visibility of type Task_Result: moved to
3944 public part to give application visibility over it.
3945 This is for future improvement and to build a public API on top of it.
3946 Changed record components name of type Task_Result to reflect the new
3949 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
3950 reporting Stack usage.
3952 * gnat_ugn.texi: Update doc of stack usage report.
3954 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
3956 * Makefile.rtl: Add new run-time files.
3958 2009-04-29 Pascal Obry <obry@adacore.com>
3960 * initialize.c: Do not expand quoted arguments.
3962 2009-04-29 Emmanuel Briot <briot@adacore.com>
3964 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
3966 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
3967 Prj.Ultimate_Extending_Project_Of
3969 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3971 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
3972 Amendment type, add the with_clause for Finalization.List_Controller
3973 only if the current context is a package body.
3975 2009-04-29 Thomas Quinot <quinot@adacore.com>
3977 * sem_ch12.adb: Minor reformatting
3979 * sem_aggr.adb: Minor reformatting
3981 * sem_ch6.adb, sem_cat.ads: Minor reformatting
3983 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
3985 2009-04-29 Quentin Ochem <ochem@adacore.com>
3987 * prj.ads (Source_Id): Now general pointer type.
3989 2009-04-29 Thomas Quinot <quinot@adacore.com>
3991 * exp_ch7.adb, rtsfind.adb: Minor reformatting
3993 * sem_res.adb: Minor reformatting
3995 2009-04-29 Thomas Quinot <quinot@adacore.com>
3997 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
3998 operands is static only if it is a predefined concatenation operator.
4000 * sem_util.adb: Minor reformatting
4002 * sem_ch12.adb (Save_References): When propagating semantic information
4003 from generic copy back to generic template, for the case of an
4004 identifier that has been rewritten to an explicit dereference whose
4005 prefix is either an object name or a parameterless funcion call
4006 denoting a global object or function, properly capture the denoted
4007 global entity: perform the corresponding rewriting in the template,
4008 and point the rewritten identifier to the correct global entity (not
4009 to the associated identifier in the generic copy).
4011 2009-04-29 Robert Dewar <dewar@adacore.com>
4013 * rtsfind.adb, prj-env.adb: Minor reformatting
4014 Minor code reorganization
4016 2009-04-29 Emmanuel Briot <briot@adacore.com>
4018 * make.adb: Fix comment
4020 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
4021 is given as argument, as might happen in gnatmake.
4023 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4025 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
4026 an abstract operation of a progenitor is not properly overridden by an
4027 operation of a derived synchronized type.
4029 2009-04-29 Robert Dewar <dewar@adacore.com>
4031 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
4032 prj-proc.adb: Minor reformatting
4033 Minor code reorganization
4035 2009-04-29 Bob Duff <duff@adacore.com>
4037 * exp_ch7.adb (Build_Final_List): For an access type that designates a
4038 Taft Amendment type, if the access type needs finalization, make sure
4039 the implicit with clause for List_Controller occurs on the package spec.
4041 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4042 with's created for the pseudo-children of Text_IO and friends. In
4043 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4044 Ada.Text_IO.Integer_IO both with-ing each other.
4046 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4047 oddball cases when pragma Extend_System is used.
4049 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4050 the case where a package spec instantiates a generic whose body with's
4051 this package, so Walk_Library_Items won't complain about cyclic with's.
4053 2009-04-29 Emmanuel Briot <briot@adacore.com>
4055 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4056 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4057 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4058 (Project_Id): now a real pointer to Project_Data, instead of an index
4059 into the Projects_Table. This simplifies the API significantly, avoiding
4060 extra lookups in this table and the need to pass the Project_Tree_Ref
4061 parameter in several cases
4063 2009-04-29 Nicolas Setton <setton@adacore.com>
4065 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4068 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4070 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4073 2009-04-24 Robert Dewar <dewar@adacore.com>
4075 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4076 clean.adb: Minor reformatting.
4077 Minor code reorganization and message improvement.
4079 2009-04-24 Emmanuel Briot <briot@adacore.com>
4081 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4082 (Alternate_Languages): now implemented as a malloc-ed list rather
4083 than through a table.
4085 2009-04-24 Thomas Quinot <quinot@adacore.com>
4087 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4088 accurately handle cases such as "lit" & "lit" and
4089 "lit" & static_string_constant
4091 2009-04-24 Emmanuel Briot <briot@adacore.com>
4093 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4094 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4095 removed. Lists of projects are now implemented via standard malloc
4096 rather than through the table.
4098 2009-04-24 Thomas Quinot <quinot@adacore.com>
4100 * sem_ch12.adb: Minor reformatting
4102 * g-trasym.adb: Minor reformatting
4104 * exp_ch6.adb: Minor reformatting
4106 2009-04-24 Robert Dewar <dewar@adacore.com>
4108 * layout.adb (Layout_Type): For packed array type, copy unset
4109 size/alignment fields from the referenced Packed_Array_Type.
4111 2009-04-24 Bob Duff <duff@adacore.com>
4113 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4114 longer needed after sem_ch12 changes.
4116 * sem.adb (Walk_Library_Items): Include with's in some debugging
4119 2009-04-24 Emmanuel Briot <briot@adacore.com>
4121 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4122 only ever using the Project field.
4124 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4126 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4127 Body_Required on the generated compilation node. The new node is linked
4128 to its body, but both share the same file, so we do not set this flag
4129 on the new unit so as not to create a spurious dependency on a
4130 non-existent body in the ali file for the instance.
4132 2009-04-24 Robert Dewar <dewar@adacore.com>
4134 * make.adb: Minor reformatting
4136 2009-04-24 Emmanuel Briot <briot@adacore.com>
4138 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4139 Add_Source): merge some code between those. In particular change where
4140 file normalization is done to avoid a few extra calls to
4141 Canonicalize_File_Name. This also removes the need for passing
4142 Current_Dir in a number of subprograms.
4144 2009-04-24 Bob Duff <duff@adacore.com>
4146 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4147 False, assign the correct unit to the Cunit field of the new table
4148 entry. We want the spec unit, not the body unit.
4150 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4151 interface for these.
4152 (Maybe_Add_With): Check whether we're trying to a with on the current
4153 unit, and avoid creating such directly self-referential with clauses.
4154 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4155 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4156 and matches existing comments in the spec.
4158 * sem.adb (Walk_Library_Items): Add various special cases to make the
4161 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4162 instead of Parent (N), for uniformity.
4164 2009-04-24 Robert Dewar <dewar@adacore.com>
4166 * errout.ads: Minor reformatting
4168 2009-04-24 Emmanuel Briot <briot@adacore.com>
4170 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4171 behavior when the project includes sources from multiple languages
4173 2009-04-24 Vincent Celier <celier@adacore.com>
4175 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4176 is a language other than Ada declared.
4178 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4179 Imported_First set to True.
4181 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4183 * sem_res.adb: additional optimization to inhibit creation of
4184 redundant transient scopes.
4186 2009-04-24 Bob Duff <duff@adacore.com>
4188 * rtsfind.ads: Minor comment fix
4190 2009-04-24 Emmanuel Briot <briot@adacore.com>
4192 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4193 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4194 basically doing the same work (for explicit or implicit sources).
4195 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4196 role. Rewritten to share some code (testing that all explicit sources
4197 have been found) between ada_only and multi_language modes.
4199 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4201 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4202 for CLI imported types.
4203 (Analyze_Pragma): Allow CIL or Java imported functions returning
4204 access-to-subprogram types.
4206 2009-04-24 Emmanuel Briot <briot@adacore.com>
4208 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4209 (Project_Data.Dir_Path): field removed, since it can be computed
4210 directly from .Directory, and is needed only once when processing the
4211 project is buildgpr.adb or make.adb
4213 2009-04-24 Robert Dewar <dewar@adacore.com>
4215 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4216 rtsfind.adb: Minor reformatting.
4217 Minor code reorganization
4219 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4221 * mlib-prj.adb: Use friendlier english identifier.
4223 * gnatcmd.adb, make.adb: Use better english identifiers.
4225 2009-04-24 Robert Dewar <dewar@adacore.com>
4227 * clean.adb: Minor reformatting
4229 2009-04-24 Robert Dewar <dewar@adacore.com>
4231 * einfo.adb (OK_To_Rename): New flag
4233 * einfo.ads (OK_To_Rename): New flag
4235 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4238 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4240 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4243 2009-04-24 Emmanuel Briot <briot@adacore.com>
4245 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4246 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4247 field removed. This is not a property of the
4248 project, just a boolean used to traverse the project tree, and storing
4249 it in the structure prevents doing multiple traversal in parallel.
4250 (Project_Data.Checked): also removed, since it was playing the same role
4251 as Seen when we had two nested loops, and this is no longer necessary
4252 (For_All_Imported_Projects): removed, since in fact there was already
4253 the equivalent in For_Every_Project_Imported. The latter was rewritten
4254 to use a local hash table instead of Project_Data.Seen
4255 Various loops were rewritten to use For_Every_Project_Imported, thus
4256 removing the need for Project_Data.Seen. This avoids a lot of code
4259 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4261 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4262 statements, even though the actual of the call is a concatenation,
4263 because the argument is static, and we want to preserve warning
4264 messages about sequences of code statements that are not marked
4267 * sem_warn.adb: remove obsolete comment about warning being obsolete
4269 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4270 requeued and the delay has expired while within the accept statement
4271 that executes the requeue, do not perform the requeue and indicate that
4272 the timed call has been aborted.
4274 2009-04-24 Emmanuel Briot <briot@adacore.com>
4276 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4277 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4278 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4279 since they can be computed from the above.
4281 2009-04-24 Vincent Celier <celier@adacore.com>
4283 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4285 * prj-env.adb: Move all global variables to the private part of the
4287 Access these new components instead of the global variables no longer
4289 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4290 components that were previously global variables.
4292 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4293 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4296 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4297 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4299 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4300 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4301 components in the private part of the project tree data.
4303 * prj.ads (Private_Project_Tree_Data): new components moved from
4304 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4305 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4306 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4308 2009-04-24 Vincent Celier <celier@adacore.com>
4310 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4312 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4313 projects, when --unchecked-shared-lib-imports is used.
4315 2009-04-24 Robert Dewar <dewar@adacore.com>
4317 * sem_ch7.adb: Minor reformatting
4319 2009-04-24 Tristan Gingold <gingold@adacore.com>
4321 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4324 2009-04-24 Emmanuel Briot <briot@adacore.com>
4326 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4327 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4328 (For_All_Imported_Projects): new procedure
4329 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4330 above rather than duplicating code.
4332 2009-04-24 Emmanuel Briot <briot@adacore.com>
4334 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4335 (Source_Id, Source_Data): use a real list to store sources rather than
4336 using an external table to store the elements. This makes code more
4337 efficient and more readable.
4339 2009-04-24 Emmanuel Briot <briot@adacore.com>
4341 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4342 (Source_Iterator): new type.
4343 This removes the need for having the sources on three different
4344 lists at the project tree, project and language level. They are now
4347 2009-04-24 Emmanuel Briot <briot@adacore.com>
4349 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4351 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4353 * sem_warn.adb: Add comment on obsolete warning
4355 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4357 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4359 2009-04-24 Emmanuel Briot <briot@adacore.com>
4361 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4362 to Language_Ptr to better reflect its new implementation.
4363 (Project_Data.First_Languages_Processing): renamed to Languages now
4364 that the field with that name is no longer used
4365 (Project_Data.Languages): removed, no longer used, and duplicates
4366 information already available through First_Language_Processing.
4367 (Prj.Language_Index): now an actual pointer, instead of an index into
4368 a table. This makes the list somewhat more obvious, but more importantly
4369 removes the need to pass a pointer to the project_tree_data in a few
4370 places, and makes accessing the attributes of a languages more
4373 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4374 Thomas Quinot <quinot@adacore.com>
4376 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4377 * gcc-interface/misc.c (internal_error_function): Make copy of return
4378 from pp_formatted_text before assigning BUFFER to it.
4379 (gnat_init): Likewise for main_input_filename and gnat_argv.
4380 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4382 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4384 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4385 (Target_Double_Scalar_Alignment): Likewise.
4386 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4387 (Get_Double_Float_Alignment): New imported function.
4388 (Get_Double_Scalar_Alignment): Likewise.
4389 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4390 the alignment of "double" floating-point types and "double" or larger
4391 scalar types, as parameterized by Target_Double_Float_Alignment and
4392 Target_Double_Scalar_Alignment respectively.
4393 * gcc-interface/gigi.h (double_float_alignment): Declare.
4394 (double_scalar_alignment): Likewise.
4395 (is_double_float_or_array): Likewise.
4396 (is_double_scalar_or_array): Likewise.
4397 (get_target_double_float_alignment): Likewise.
4398 (get_target_double_scalar_alignment): Likewise.
4399 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4400 (get_target_strict_alignment): ...this.
4401 (get_target_double_float_alignment): New function.
4402 (get_target_double_scalar_alignment): Likewise.
4403 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4404 Test the presence of an alignment clause for under-aligned integer
4405 types. Take into account specific caps for the alignment of "double"
4406 floating-point types and "double" or larger scalar types, as
4407 parameterized by Target_Double_Float_Alignment and
4408 Target_Double_Scalar_Alignment respectively.
4409 (validate_alignment): Likewise.
4410 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4411 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4412 * gcc-interface/utils.c (double_float_alignment): New global variable.
4413 (double_scalar_alignment): Likewise.
4414 (is_double_float_or_array): New predicate.
4415 (is_double_scalar_or_array): Likewise.
4417 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4419 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4420 the conditional expression only if it is common to both arms.
4422 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4424 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4425 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4426 arguments to build_allocator.
4427 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4428 Remove code handling special allocator and assert its uselessness.
4430 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4432 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4433 alignment is specified, do not promote that of the component type
4435 <E_Array_Subtype>: Likewise.
4437 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4439 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4440 * sinfo.ads (Object Declaration): Likewise.
4441 (Assignment Statement): Likewise.
4442 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4443 Do not force Is_True_Constant to false on the temporary.
4444 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4445 the RHS of object declarations.
4446 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4447 New case. Return 1 if the object is atomic.
4448 <N_Assignment_Statement>: Likewise.
4450 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4452 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4453 For packed array types, make the original array type a parallel type
4454 for the modular type and its JM wrapper if the type is bit-packed.
4455 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4456 record type for packed array types. Remove kludge.
4458 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4460 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4461 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4462 Use front-end predicates to compute signedness and precision.
4463 <E_String_Literal_Subtype>: Fold range type.
4464 Make sure to set longest_float_type_node to a scalar type.
4465 (elaborate_entity): Use consistent Constraint_Error spelling.
4466 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4467 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4468 output for the modulus, if any.
4469 <ENUMERAL_TYPE>: Likewise for the RM size.
4470 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4472 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4473 of BLKmode bit-fields to compute their addressability.
4474 (create_index_type): Adjust comments.
4475 (create_param_decl): Create the biased subtype manually.
4476 * gcc-interface/utils2.c (build_component_ref): Use consistent
4477 Constraint_Error spelling.
4479 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4481 * gcc-interface/cuintp.c: Clean up include directives.
4482 * gcc-interface/targtyps.c: Likewise.
4483 * gcc-interface/decl.c: Likewise.
4484 * gcc-interface/misc.c: Likewise.
4485 * gcc-interface/trans.c: Likewise.
4486 * gcc-interface/utils.c: Likewise.
4487 * gcc-interface/utils2.c: Likewise.
4488 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4490 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4492 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4493 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4494 (SET_DECL_LANG_SPECIFIC): Likewise.
4496 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4497 Update comment about use of build_range_type.
4498 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4499 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4500 check for other cases of overloading.
4501 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4502 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4503 Use size_int in lieu of build_int_cst.
4504 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4507 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4509 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4510 type is an enumeral or a boolean type, change it to an integer type
4511 with the same mode and signedness.
4513 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4515 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4516 for an external constant whose initializer is not absolute.
4518 2009-04-22 Taras Glek <tglek@mozilla.com>
4520 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4521 * gcc-interface/trans.c: Likewise.
4522 * gcc-interface/utils.c: Likewise.
4524 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4526 * sem_res.adb: Create block around procedure call when actual is a
4529 2009-04-22 Thomas Quinot <quinot@adacore.com>
4531 * s-soflin.ads: Fix typos
4533 2009-04-22 Vincent Celier <celier@adacore.com>
4535 * prj-env.adb: Minor comment change
4537 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4538 Get_Name_String with No_File.
4540 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4541 cannot be created even when not in verbose mode.
4543 2009-04-22 Emmanuel Briot <briot@adacore.com>
4545 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4546 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4547 Multi_Language modes, to avoid code duplication.
4548 (Project_Data.Include_Language): Removed.
4550 2009-04-22 Vincent Celier <celier@adacore.com>
4552 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4553 the temporary file cannot be created, indicating the directory when the
4554 creation was attempted.
4556 2009-04-22 Emmanuel Briot <briot@adacore.com>
4558 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4559 the language names, not their indices.
4561 2009-04-22 Emmanuel Briot <briot@adacore.com>
4563 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4564 (Source_Data.Language_Name): Field removed.
4566 2009-04-22 Emmanuel Briot <briot@adacore.com>
4568 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4571 2009-04-22 Emmanuel Briot <briot@adacore.com>
4573 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4574 separate_suffix to the same value as the body_suffix.
4576 2009-04-22 Robert Dewar <dewar@adacore.com>
4578 * prj.adb: Minor code reorganization
4581 * prj-proc.adb: Minor code reorganization, clean up.
4583 * prj-nmsc.adb: Minor reformatting
4584 Minor code reorganization
4586 * gnat_ugn.texi: Add to doc on strict aliasing
4588 2009-04-22 Pascal Obry <obry@adacore.com>
4590 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4593 * s-tasini.adb: Minor reformatting.
4595 * s-tassta.adb: Minor reformatting.
4597 2009-04-22 Emmanuel Briot <briot@adacore.com>
4599 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4600 smaller subprograms.
4601 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4602 other Check_Naming_Schemes functions that plays a totally different
4604 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4605 extracted from the above. These were partially rewritten to avoid
4606 unnecessary code and temporary variables.
4607 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4608 and Get_Unit (which for now still exist since they contain mode-specific
4611 2009-04-22 Emmanuel Briot <briot@adacore.com>
4613 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4614 Remove duplicated code.
4615 (Canonical_Case_File_Name): new subprogram
4616 (Check_And_Normalize_Unit_Names): new subprogram
4617 (Write_Attr): new subprogram
4618 Better sharing of code
4619 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4620 split Check_Naming and help find duplicated code
4621 (Check_Common): new subprogram, sharing code between ada_only and
4622 multi_language mode.
4623 (Naming_Data.Dot_Repl_Loc): field removed
4625 2009-04-22 Emmanuel Briot <briot@adacore.com>
4627 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4628 Minor refactoring to reduce the size of
4629 Process_Sources_In_Multi_Language_Mode.
4630 Avoid extra copied of Source_Data, which we found in the past could be
4632 (Mark_Excluded_Sources): new subprogram.
4633 (Remove_Locally_Removed_Files_From_Units): merged into the above
4634 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4635 and allow better sharing of code between multi_lang and ada_only modes
4636 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4638 2009-04-22 Emmanuel Briot <briot@adacore.com>
4640 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4641 Removed, since unused.
4643 2009-04-22 Vincent Celier <celier@adacore.com>
4645 * prj-attr.adb: New single project level attribute
4646 Separate_Run_Path_Options.
4648 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4649 attribute Seperate_Run_Path_Options.
4651 * prj.ads: (Project_Configuration): New Boolean component
4652 Separate_Run_Path_Options, defaulted to False.
4654 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4656 2009-04-22 Robert Dewar <dewar@adacore.com>
4658 * sem_type.adb: Minor reformatting
4660 * mlib.adb: Minor reformatting
4662 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4665 2009-04-22 Nicolas Setton <setton@adacore.com>
4667 * link.c: Add flag __gnat_separate_run_path_options.
4669 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4671 * mlib.ads (Separate_Run_Path_Options): Declare.
4673 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4674 switch per directory, rather than one "rpath" switch listing all
4677 * gnatlink.adb (Process_Binder_File): Likewise.
4679 * make.adb (Gnatmake): Likewise.
4681 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4683 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4684 Add a call to Move_Final_List when the target of the assignment is a
4685 return object that needs finalization and the expression is a
4686 controlled build-in-place function.
4688 2009-04-22 Vincent Celier <celier@adacore.com>
4690 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4691 Including_Libraries set to True.
4693 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4695 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4696 create a unit table entry for the subprogram declaration created for a
4697 child suprogram body that has no separate specification.
4699 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4700 subprogram body, call Make_Child_Decl_Unit.
4702 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4703 table can only be the created specification of a child subprogram body
4704 that is the main unit, which has not been entered in the table yet.
4706 * errout.adb (Output_Messages): Ignore created specification of a
4707 child subprogram body to prevent repeated listing of error messages.
4709 * gnat1drv.adb (gnat1drv): The generated specification for a child
4710 subprogram body does not generate code.
4712 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4714 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4715 since this unit is now part of bootstrap units, so must use Ada 95
4718 2009-04-22 Thomas Quinot <quinot@adacore.com>
4720 * a-tasatt.adb: Minor reformatting
4722 2009-04-22 Bob Duff <duff@adacore.com>
4724 * s-stalib.ads: Remove "with System;" since we're inside System, so
4727 2009-04-22 Vincent Celier <celier@adacore.com>
4729 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4730 the source record, as there may be a dependency file even if no object
4733 2009-04-22 Robert Dewar <dewar@adacore.com>
4735 * lib-load.adb: Minor reformatting
4737 * lib-load.ads: Minor reformatting
4739 * sinfo.ads: Minor reformatting
4741 2009-04-22 Bob Duff <duff@adacore.com>
4743 * exp_pakd.adb: Minor comment fixes.
4745 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4746 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4747 include units containing instantiations, as well as units that are
4748 generic instantiations.
4750 * sem.adb: Include dependents and corresponding specs/bodies in the
4753 * gcc-interface/Make-lang.in:
4754 sem now depends on s-bitops, because of the packed array of Booleans.
4756 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4758 * gcc-interface/ada-tree.def: Fix formatting nits.
4759 (REGION_STMT): Delete.
4760 (HANDLER_STMT): Likewise.
4761 * gcc-interface/ada-tree.h: Fix formatting nits.
4763 (REGION_STMT_BODY): Likewise.
4764 (REGION_STMT_HANDLE): Likewise.
4765 (REGION_STMT_BLOCK): Likewise.
4766 (HANDLER_STMT_ARG): Likewise.
4767 (HANDLER_STMT_LIST): Likewise.
4768 (HANDLER_STMT_BLOCK): Likewise.
4769 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4770 (fp_size_to_prec): Likewise.
4771 (largest_move_alignment): Delete.
4772 (gnat_compute_largest_alignment): Likewise.
4774 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4775 Remove redundant code.
4776 <E_Array_Type>: Remove redundant assert.
4777 <E_Array_Subtype>: Exit early from index computation in pathological
4779 Rewrite conditional assignment.
4780 (make_type_from_size): Likewise.
4781 * gcc-interface/misc.c (largest_move_alignment): Delete.
4782 (gnat_finish_incomplete_decl): Likewise.
4783 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4784 (asm_out_file): Likewise
4785 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4786 (gnat_dwarf_name): Move around.
4787 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4788 (gigi): Remove call to gnat_compute_largest_alignment.
4789 * utils.c (create_field_decl): Rewrite conditional assignment.
4792 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4794 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4795 on entry. Defer common processing for types. Reorder and clean up.
4796 Compute the equivalent GNAT node and the default size for types only.
4797 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4798 <E_Access_Type>: For an unconstrained designated type, do not pretend
4799 that a dummy type is always made.
4800 <all> Fix nits in comments.
4801 (validate_size): Fix formatting nits and comments.
4802 (set_rm_size): Likewise.
4803 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4804 passed to TARGET_PROMOTE_PROTOTYPES hook.
4806 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4808 * fe.h (Get_External_Name): Declare.
4809 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4810 (concat_name): ...this.
4811 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4812 gnu_entity_name and adjust for above renaming.
4813 <E_Access_Type>: Use create_concat_name to get the name of the various
4814 types associated with unconstrained array types.
4815 (make_aligning_type): Adjust for above renaming.
4816 (maybe_pad_type): Likewise.
4817 (components_to_record): Likewise. Use get_identifier_with_length for
4818 the encoding of the variant.
4819 (get_entity_name): Use get_identifier_with_length.
4820 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4821 Do not fiddle with Name_Buffer.
4822 (concat_id_with_name): Rename to...
4823 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4825 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4828 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4830 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4833 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4835 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4837 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4839 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4840 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4841 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4842 Remove useless support code for packed array types and assert its
4844 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4845 adjust for TYPE_RM_SIZE change.
4846 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4847 of Associated_Node_For_Itype accessor for packed array types.
4848 (make_packable_type): Likewise.
4849 (maybe_pad_type): Likewise.
4850 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4851 TYPE_RM_SIZE change.
4852 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4853 (rm_size): Fix nits in comments. Rework conditional statements.
4854 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4856 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4857 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4858 appropriate function to initialize the size_type_node. Adjust for
4859 TYPE_RM_SIZE change.
4861 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4863 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4864 for imported subprograms.
4866 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4868 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4869 constant objects covered by 13.3(19) volatile.
4871 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4873 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4874 of dummy fat pointer types to the debug back-end.
4876 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4878 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4879 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4880 before wrapping it up in the record type. Do not overwrite the
4881 Ada size of the record type with the Esize.
4883 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4885 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4886 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4887 if the conversion is on the LHS of an assignment and a no-op.
4888 <all> Do not convert the result to the result type if the Parent
4889 node is such a conversion.
4891 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4893 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4894 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4895 of types with unknown discriminants.
4896 (substitute_in_type): Rewrite and restrict to formal substitutions.
4897 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4898 (update_pointer_to): Update comment.
4900 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4902 * sem_ch8.adb (Use_One_Package): In an instance, if two
4903 potentially_use_visible and non-overloadable homonyms are available
4904 from the actuals of distinct formal packages, retain the current one,
4905 which was visible in the generic, to prevent spurious visibility
4907 (End_Use_Package): Restore use_visibility when needed.
4909 2009-04-20 Sergey Rybin <rybin@adacore.com>
4911 * gnat_ugn.texi, vms_data.ads: Update doc.
4913 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4915 * gcc-interface/Make-lang.in: Update dependencies
4917 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4920 2009-04-20 Robert Dewar <dewar@adacore.com>
4922 * checks.ads: Fix documentation of range check handling
4924 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4926 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
4927 a redundant use_type clause.
4929 2009-04-20 Robert Dewar <dewar@adacore.com>
4931 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
4932 this attribute can be evaluated at compile time.
4933 (Eval_Attribute, case Range_Length): Same improvement
4935 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
4937 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4939 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
4940 for better handling of null procedures.
4941 (Check_Overriding_Indicator): Do not emit a warning on a missing
4942 overriding indicator on an operator when the type of which the operator
4943 is a primitive is private.
4945 2009-04-20 Bob Duff <duff@adacore.com>
4947 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
4950 2009-04-20 Robert Dewar <dewar@adacore.com>
4952 * sem_attr.adb: Minor reformatting
4954 * gnatcmd.adb: Minor reformatting
4956 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4958 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
4959 overloaded and one interpretation matches the context, label the
4960 operand with the type of first formal.
4962 2009-04-20 Bob Duff <duff@adacore.com>
4964 * debug.ads: Minor comment fix.
4966 * debug.adb: Minor comment fixes.
4968 2009-04-20 Javier Miranda <miranda@adacore.com>
4970 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
4972 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
4974 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
4975 is expanded into a call to Raise_Exception, avoid passing the
4976 exception-name'identity in runtimes in which this argument
4979 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
4981 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
4982 generated bindings for cil.
4984 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4986 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
4987 discriminants, collect components from the Underlying_Record_View,
4988 which will be used in the expansion of the aggregate into assignments.
4990 * sem_ch3.adb: Do not label derived type with unknown discriminants as
4991 having a private declaration.
4993 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4995 * exp_util.adb (Expand_Subtype_From_Expr): use the
4996 underlying_record_view when available, to create the proper constrained
4997 subtype for an object of a derived type with unknown discriminants.
4999 2009-04-20 Javier Miranda <miranda@adacore.com>
5001 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5002 formals that have pragma unreferenced.
5004 2009-04-20 Pascal Obry <obry@adacore.com>
5006 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5007 Remove all calls to To_Lower_If_Case_Insensitive to preserve
5008 the pathname original casing.
5010 2009-04-20 Robert Dewar <dewar@adacore.com>
5012 * g-trasym.adb: Minor reformatting
5014 * s-os_lib.adb: Minor reformatting
5016 * sem.adb: Minor reformatting
5017 Minor code reorganization
5019 * sem_ch3.adb: Minor reformatting
5021 * sem_ch4.adb: Minor reformatting
5023 * sem_ch8.adb: Minor reformatting
5025 * sem_type.adb: Minor reformatting
5027 2009-04-20 Javier Miranda <miranda@adacore.com>
5029 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
5030 generated by derivations of tagged types use the aliased subprogram a
5031 reference to locate their controlling type.
5033 2009-04-20 Tristan Gingold <gingold@adacore.com>
5035 * g-trasym.adb: Set size of result buffer before calling
5038 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5040 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5041 to a function returning an array can be interpreted as a call with
5042 defaulted parameters whose result is indexed, take into account the
5043 types of all the indices of the array result type.
5045 2009-04-20 Pascal Obry <obry@adacore.com>
5047 * a-direct.adb, s-os_lib.adb: Minor reformatting.
5049 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5051 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5052 null exclusion qualifiers for object renaming declarations.
5054 2009-04-20 Nicolas Roche <roche@adacore.com>
5056 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5057 unsigned long long. So compare local_time and utc_time before computing
5060 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5062 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5063 of the Underlying_Record_View before that of the derived type.
5065 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5066 with unknown discriminants with regard to the parent subtype.
5068 2009-04-20 Bob Duff <duff@adacore.com>
5070 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5071 that are not included. This is necessary if the main unit is a generic
5074 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5075 because it doesn't work if -gnatn is used.
5077 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5079 * rtsfind.adb (RTE, RTE_Record_Component): In
5080 Configurable_Run_Time_Mode, do not enable front-end inlining.
5082 2009-04-20 Thomas Quinot <quinot@adacore.com>
5084 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5085 System.Address_To_Access_Conversions.
5087 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5089 * sem.adb: Guard against ill-formed subunits.
5091 2009-04-20 Bob Duff <duff@adacore.com>
5093 * output.adb (Flush_Buffer): Do not indent blank lines.
5094 (Ignore_Output): New procedure for output suppression.
5096 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5098 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5099 when it is positive. This avoids a potential constraint error raised
5100 by the conversion to Natural.
5102 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5104 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5105 involves a target that has a specified address, don't set Forward_OK
5106 and Backward_OK to False if the rhs is an aggregate, since overlap
5109 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5111 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5112 in an object renaming declaration when the expected type is an
5113 anonymous access type.
5115 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5116 ambiguity when one interpretation is an anonymous access type and the
5117 other is a named access type, and the context itself is anonymous
5119 2009-04-20 Thomas Quinot <quinot@adacore.com>
5121 * einfo.ads: Minor comment rewording
5123 * sem_aggr.adb: Minor comment rewording
5125 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5127 2009-04-20 Pascal Obry <obry@adacore.com>
5129 * adaint.c (__gnat_is_readable_file): Check for file existence
5130 when not using ACL (always the case on remote drives).
5132 2009-04-20 Robert Dewar <dewar@adacore.com>
5134 * sinfo.ads: Minor comment fixes
5136 * exp_disp.adb: Minor reformatting
5138 * gnat1drv.adb: Minor reformatting
5140 * output.adb: Minor reformatting
5142 * s-vxwext-kernel.ads: Minor reformatting
5144 * sem.ads: Minor reformatting
5146 * sem.adb: Minor reformatting
5148 * sem_elim.adb: Minor reformatting
5150 * uname.ads: Minor reformatting
5152 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5154 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5155 a small dope of 4 words to the adjustment to the stack pointer.
5157 2009-04-20 Thomas Quinot <quinot@adacore.com>
5159 * xoscons.adb: generate C header s-oscons.h in
5160 addition to s-oscons.ads.
5162 * socket.c: On VMS, use s-oscons.h.
5164 * sem_ch3.adb: Minor reformatting
5166 * exp_ch9.adb: Minor reformatting
5168 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5170 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5171 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5172 (call_to_gnu): Likewise.
5174 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5176 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5177 unit as the first global name at the very beginning.
5179 2009-04-20 Thomas Quinot <quinot@adacore.com>
5181 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5182 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5183 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5184 since HP-UX supports neither inet_aton nor inet_pton (altough the
5185 latter is part of the Single UNIX Specification!).
5186 So reorganize code, and share C implementation based on inet_addr(3)
5187 with VMS (instead of having a VMS specific Ada implementation in
5190 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5192 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5193 to return the object file name saved by Set_Object_Output_File_Name.
5195 2009-04-20 Emmanuel Briot <briot@adacore.com>
5197 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5198 for the standard command line, when argc has been modified since the
5199 start of the application.
5201 2009-04-20 Thomas Quinot <quinot@adacore.com>
5203 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5204 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5206 2009-04-20 Bob Duff <duff@adacore.com>
5208 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5211 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5213 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5214 subprogram as Eliminated when source operation is.
5215 (Expand_N_Protected_Type_Declaration): Generate protected and
5216 unprotected specs for the internal operations, even if the source
5217 operation is eliminated.
5219 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5221 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5222 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5223 of the primitive subprograms associated with dispatching select
5224 statements when the runtime is in configurable mode.
5226 2009-04-20 Ed Falis <falis@adacore.com>
5228 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5230 2009-04-20 Thomas Quinot <quinot@adacore.com>
5232 * s-oscons-tmplt.c: Add support for generating a dummy version of
5233 s-oscons.ads providing all possible constants.
5235 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5237 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5238 ANSI version (not the UNICODE version) of WSAStringToAddress.
5240 2009-04-20 Pascal Obry <obry@adacore.com>
5242 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5243 allocated for the security descriptor and make sure all
5244 handles are closed before leaving this procedure.
5246 2009-04-20 Javier Miranda <miranda@adacore.com>
5248 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5249 (Set_Is_Underlying_Record_View): New subprogram
5251 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5252 private types with unknown discriminants use the underlying record view
5255 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5256 underlying record view in the full view of private types whose parent
5257 has unknown discriminants.
5258 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5259 associated with an underlying record view.
5260 (Derived_Type_Declaration): Avoid deriving parent primitives in
5261 underlying record views.
5263 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5264 records with unknown discriminants.
5266 * sem_type.adb (Covers): Handle underlying record views.
5267 (Is_Ancestor): Add support for underlying record views.
5269 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5270 dispatching call if the type of the target object is tagged and has
5271 unknown discriminants.
5273 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5274 unknown discriminants.
5276 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5277 tables for internally built underlying record views.
5279 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5280 empty list of component associations.
5282 2009-04-20 Thomas Quinot <quinot@adacore.com>
5284 * sem_ch10.adb: Minor reformatting
5286 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5287 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5288 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5289 standard inet_pton API (and emulate it on platforms that do not
5291 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5292 DECC$INET_ADDR, imported in Ada.
5293 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5294 implementation provided by GNAT runtime.
5295 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5298 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5300 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5302 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5304 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5305 with_clause if it is the main unit.
5307 2009-04-20 Thomas Quinot <quinot@adacore.com>
5309 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5310 (no behaviour change): Use Append instead of Increment_Last followed
5313 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5315 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5316 declarations of all primitives associated with dispatching asynchronous,
5317 conditional and timed selects when dispaching calls are forbidden and
5318 select statements are not allowed (such as in Ravenscar).
5319 (Predefined_Primitive_Bodies): Ditto for bodies.
5321 * exp_disp.ad (Make_DT): Do not create and populate the
5322 Select_Specific_Data of the dispatch table when dispatching calls are
5323 forbidden and select statements are not allowed (such as in Ravenscar).
5325 2009-04-20 Robert Dewar <dewar@adacore.com>
5327 * a-tifiio.adb: Minor reformatting
5329 2009-04-20 Thomas Quinot <quinot@adacore.com>
5331 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5332 other C library functions, report *failure* with a zero status, and
5333 success with a non-zero status.
5335 2009-04-20 Bob Duff <duff@adacore.com>
5337 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5338 (Semantics): After analyzing each unit, Append it to the
5339 Comp_Unit_List, if appropriate.
5341 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5343 (Gnat1drv): Correct comment regarding Back_End_Mode.
5345 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5347 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5349 2009-04-20 Thomas Quinot <quinot@adacore.com>
5351 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5352 output.adb, output.ads, s-taprop-hpux-dce.adb,
5353 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5356 2009-04-20 Thomas Quinot <quinot@adacore.com>
5358 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5359 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5360 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5361 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5362 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5363 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5365 * debug.adb: Fix typo
5367 * gnat_rm.texi: Minor doc fix.
5369 * sem_ch7.adb, freeze.adb: Minor reformatting
5371 2009-04-20 Thomas Quinot <quinot@adacore.com>
5373 * g-socket.ads: Add new constants:
5375 Unspecified_Group_Inet_Addr
5376 All_Hosts_Group_Inet_Addr
5377 All_Routers_Group_Inet_Addr
5379 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5380 ERANGE (Result too large).
5381 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5382 propagation of errno to caller.
5384 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5386 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5387 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5390 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5392 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5393 checking for references to eliminated subprograms that should be
5395 (Eliminate_Error_Message): Update comment to say "references" rather
5396 than "calls" (since attribute cases are handled here as well).
5398 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5399 checking for references to eliminated subprograms that should be
5400 flagged. Add with and use of Sem and Sem_Util.
5402 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5403 Add with and use of Sem_Elim.
5405 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5406 applied to eliminated subprograms.
5407 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5408 eliminated subprograms.
5409 Add with and use of Sem_Elim.
5411 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5412 to eliminated subprograms, now handled during Resolve_Call.
5413 Remove with and use of Sem_Elim.
5415 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5416 testing Is_Eliminated, for proper handling of primitive derived from
5417 eliminated subprograms.
5419 2009-04-20 Vincent Celier <celier@adacore.com>
5421 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5422 has been declared (Library_GCC or Linker'Driver), for the driver name.
5424 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5425 Linker'Driver is, use Linker'Driver as the shared library linker.
5426 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5427 Library_GCC is declared.
5428 (Check_Library_Attributes): Set up the shared linker driver: either
5429 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5432 2009-04-20 Thomas Quinot <quinot@adacore.com>
5434 * g-socket.ads (Send_Socket): Fix misleading comment.
5436 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5438 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5441 2009-04-20 Geert Bosch <bosch@adacore.com>
5443 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5444 fixed types with smalls that are neither integer or the reciprocal
5447 2009-04-20 Bob Duff <duff@adacore.com>
5449 * uname.ads: Minor comment fix.
5451 * types.ads: Minor comment fix.
5453 2009-04-20 Pascal Obry <obry@adacore.com>
5455 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5456 avoid warning. At the same time fix a memory leak.
5458 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5459 returned by the above routine.
5461 2009-04-20 Robert Dewar <dewar@adacore.com>
5463 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5464 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5465 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5466 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5468 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5470 2009-04-20 Pascal Obry <obry@adacore.com>
5472 * initialize.c (__gnat_initialize): Add braces to kill warning.
5474 * adaint.c: Minor reformatting, remove trailing spaces.
5476 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5478 * gcc-interface/Make-lang.in: Update dependencies.
5480 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5482 * adaint.h (__gnat_lwp_self): Declare on Linux.
5484 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5486 2009-04-20 Robert Dewar <dewar@adacore.com>
5488 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5489 front-end part of -fpreserve-control-flow switch.
5491 2009-04-20 Bob Duff <duff@adacore.com>
5493 * rtsfind.adb: Minor comment fix
5495 2009-04-20 Robert Dewar <dewar@adacore.com>
5497 * exp_aggr.adb: Minor reformatting
5498 Minor code reorganization (use Nkind_In)
5500 * g-socket.adb: Minor reformatting
5502 * g-socket.ads: Minor comment fix
5504 * s-auxdec.ads: Minor comment and organization update.
5506 * s-auxdec-vms_64.ads: Minor comment and organization update.
5508 * sem_ch10.adb: Minor addition of ??? comment
5510 * sem_disp.adb: Minor reformatting
5512 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5514 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5515 list a caller of an inlined subprogram, if the caller itself is not
5518 2009-04-20 Pascal Obry <obry@adacore.com>
5520 * adaint.c: Disable use of ACL on network drives.
5522 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5524 * gnat_ugn.texi: Add examples.
5526 2009-04-20 Thomas Quinot <quinot@adacore.com>
5528 * g-socket.ads (Abort_Selector): Clarify documentation.
5530 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5532 * opt.ads (Inspector_Mode): Update documentation of this flag.
5534 2009-04-20 Thomas Quinot <quinot@adacore.com>
5536 * g-socket.ads: Minor reformatting
5538 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5539 consider S_resolvLib error codes since we only use the hostLib wrappers.
5541 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5543 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5544 of the Underlying_Record_View after that of the derived type.
5546 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5548 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5551 2009-04-20 Javier Miranda <miranda@adacore.com>
5553 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5555 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5558 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5561 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5562 in internally built overriding subprograms.
5564 2009-04-20 Doug Rupp <rupp@adacore.com>
5566 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5568 * s-auxdec.ads: Likewise
5570 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5572 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5573 type by an interface.
5575 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5576 minimze difference in expanded tree when compiled as spec of the main
5577 unit, or as a spec in the context of another unit.
5579 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5581 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5582 (localtime_tzoff): This routine no longer accepts an actual of type
5584 (UTC_Time_Offset): Remove local variable Secs_TM.
5586 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5587 actual of type struct tm*. Add local variable of type struct tm for all
5588 targets that provide localtime_r and need to invoke it.
5590 2009-04-20 Thomas Quinot <quinot@adacore.com>
5592 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5593 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5594 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5596 2009-04-20 Robert Dewar <dewar@adacore.com>
5598 * sem_ch3.adb: Minor reformatting
5600 * lib-load.adb: Minor reformatting
5602 * sem_ch4.adb: Minor reformatting
5604 2009-04-20 Robert Dewar <dewar@adacore.com>
5606 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5607 (equal values => False).
5609 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5611 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5612 to null procedures can be inlined unconditionally.
5614 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5616 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5617 non-addressable parameter passed by reference, do not convert the
5618 actual if its type is already the nominal type, unless it is of
5619 self-referential size.
5621 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5623 * gnat_ugn.texi: Fix typos.
5625 2009-04-20 Robert Dewar <dewar@adacore.com>
5627 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5628 Validate_Unchecked_Warnings to suppress warnings about size or
5629 alignment or extra bits if either type involved has pragma Warnings
5630 (Off) set for the type entity.
5632 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5634 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5635 a builtin type and give it a name.
5637 2009-04-17 Diego Novillo <dnovillo@google.com>
5639 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5640 (LANG_HOOKS_EXPAND_EXPR): Remove.
5642 2009-04-17 Robert Dewar <dewar@adacore.com>
5644 * sem_ch3.adb: Minor reformatting
5646 2009-04-17 Pascal Obry <obry@adacore.com>
5648 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5650 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5652 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5653 illegal constraints on type derived from formal discrete types.
5655 2009-04-17 Thomas Quinot <quinot@adacore.com>
5659 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5660 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5661 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5662 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5663 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5664 Replace calls to send(2) with equivalent sendto(2) calls.
5665 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5666 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5667 report an error in that case. Factor code common to the two versions
5668 (datagram and stream) in common routine Stream_Write.
5670 2009-04-17 Robert Dewar <dewar@adacore.com>
5672 * exp_disp.adb: Minor reformatting
5673 Minor code reorganization (use Nkind_In)
5675 * prepcomp.adb: Minor reformatting
5677 * sem_ch3.adb: Minor reformatting
5679 * sem_res.adb: Minor comment addition
5681 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5684 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5685 setting Is_Referenced
5687 * types.ads: Minor reformatting
5689 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5691 * gnat_ugn.texi: Initial documentation on binding generator.
5693 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5695 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5696 type extensions whose parent is a type with unknown discriminants.
5698 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5699 aggregate has unknown discriminants, use the Underlying_Record_View to
5700 obtain the discriminants of the ancestor part.
5702 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5703 Underlying_Record_Views share the dispatching information of the
5704 original record extension.
5706 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5707 discriminants, propagate dispach table information to the
5708 Underlying_Record_View.
5710 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5711 discriminants and declaration is not a completion, generate
5712 Underlying_Record_View to provide proper discriminant information to
5713 the front-end and to gigi.
5715 2009-04-17 Robert Dewar <dewar@adacore.com>
5717 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5718 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5719 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5720 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5721 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5722 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5723 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5724 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5725 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5726 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5727 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5728 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5729 s-conca3.ads: Remove unneeded pragma Warnings
5731 2009-04-17 Robert Dewar <dewar@adacore.com>
5733 * g-moreex.adb: Add comments.
5735 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5737 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5740 * prepcomp.adb: Add ??? comment
5742 * a-tasatt.adb: Minor reformatting
5744 * g-trasym-vms-alpha.adb: Add ??? comment
5746 * g-trasym-vms-ia64.adb: Add ??? comment
5748 * xoscons.adb: Minor reformatting
5750 * s-tassta.adb: Minor reformatting
5752 * s-scaval.adb: Add ??? comment
5754 * stand.ads: Minor code clean up (remove junk with of Namet)
5756 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5757 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5758 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5759 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5760 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5761 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5762 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5763 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5764 Warnings off pragmas.
5766 2009-04-17 Pascal Obry <obry@adacore.com>
5768 * initialize.c: Fix test for reallocating the arguments array.
5770 2009-04-17 Geert Bosch <bosch@adacore.com>
5772 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5773 conversion truncate only for decimal fixed point types.
5775 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5777 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5780 2009-04-17 Robert Dewar <dewar@adacore.com>
5782 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5783 Backwards_OK if either operand has an address clause.
5785 2009-04-17 Pascal Obry <obry@adacore.com>
5787 * initialize.c: Code clean up, use realloc.
5789 2009-04-17 Pascal Obry <obry@adacore.com>
5791 * initialize.c: Do not get Unicode command line if Unicode support not
5793 Add support for wildcard expansion for Unicode parameters on Win32.
5795 * mingw32.h: Add missing macros when Unicode support not activated.
5797 2009-04-17 Javier Miranda <miranda@adacore.com>
5799 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5800 avoid generating code that references the Current_Master
5801 when compiling without tasks.
5803 2009-04-17 Vincent Celier <celier@adacore.com>
5805 * prj-attr.adb: New project level attribute Target
5807 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5810 * prj.ads (Project_Configuration): New component Target
5812 2009-04-17 Thomas Quinot <quinot@adacore.com>
5814 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5815 case for the case of an aggregate component, the attach call for the
5816 result is actually needed.
5818 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5819 an array aggregate must be disabled if the component type requires
5822 * exp_ch3.adb: Minor reformatting
5824 2009-04-17 Bob Duff <duff@adacore.com>
5826 * output.ads (Indent,Outdent): New procedures for indenting the output.
5827 (Write_Char): Correct comment -- LF _is_ allowed.
5829 * output.adb (Indent,Outdent): New procedures for indenting the output.
5830 Keep track of the indentation level, and make sure it doesn't get too
5832 (Flush_Buffer): Insert spaces at the beginning of each line, if
5833 indentation level is nonzero.
5834 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5836 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5837 "Next_Col := 1;". Flush_Buffer does that.
5839 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5840 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5841 relevant analysis routines, and calls Indent/Outdent to make the
5842 indentation reflect the nesting level. Add "helper" routines, since
5843 otherwise lots of "return;" statements would skip the debugging output.
5845 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5847 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5848 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5849 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5851 2009-04-17 Thomas Quinot <quinot@adacore.com>
5853 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5855 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5857 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5858 clause in a unit that is a package body or a subunit, when the previous
5859 clause appears in a spec or a parent.
5861 2009-04-17 Thomas Quinot <quinot@adacore.com>
5863 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5865 * exp_ch7.adb: Minor reformatting
5867 2009-04-17 Bob Duff <duff@adacore.com>
5869 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5870 allocator, check that the expression of the qualified expression obeys
5871 the constraints of the subtype of the qualified expression.
5873 2009-04-17 Thomas Quinot <quinot@adacore.com>
5875 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5877 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5879 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5880 aggregate, using context imposed by subtype mark in allocator.
5882 2009-04-17 Pascal Obry <obry@adacore.com>
5884 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5886 2009-04-17 Nicolas Roche <roche@adacore.com>
5888 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5891 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5893 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5894 cover both calls and attribute references ("call" => "reference").
5896 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5898 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5899 type for which Storage_Size is set to 0 is legal in a pure unit.
5901 2009-04-17 Thomas Quinot <quinot@adacore.com>
5903 * exp_ch7.adb: Minor reformatting
5905 2009-04-17 Robert Dewar <dewar@adacore.com>
5907 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5908 restriction if outside main extended source unit.
5910 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5911 for parents of child units as well as the child unit itself.
5913 2009-04-17 Bob Duff <duff@adacore.com>
5915 * checks.ads: Minor comment fix
5917 * exp_aggr.ads: Minor comment fix
5919 2009-04-17 Nicolas Roche <roche@adacore.com>
5921 * adaint.c: Improve cross compiler detection and handling.
5923 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5925 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5927 2009-04-17 Pascal Obry <obry@adacore.com>
5929 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
5932 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
5933 value when no encoding form paramter is set on Text_IO services.
5935 * adaint.c: CurrentCodePage new variable on Windows.
5936 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5939 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5942 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
5943 environment variable value. Default is UTF-8.
5945 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
5946 fopen and freopen encoding parameter is now set to Unspecified.
5947 The default value is in this case UTF-8 (as it was before) but
5948 use the new macros that convert to/from the code page set
5949 at runtime (CurrentCodePage).
5951 * s-fileio.adb: When no encoding specified use Unspecified value.
5953 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5955 * atree.adb, atree.ads: Remove dead code.
5957 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5959 * gcc-interface/Make-lang.in: Update dependencies.
5961 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5963 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
5964 illegal uses of incomplete types in formal parts and return types.
5966 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
5967 access to subprograms.
5969 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
5970 Taft-amendment types as the return type of an access_to_function type.
5972 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5973 type for access_to_subprograms. The check is performed on package exit.
5975 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5977 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
5979 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
5981 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
5983 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
5984 semantic units, because the handling of itypes in the copied tree
5985 requires semantic information that does not belong in atree.
5987 2009-04-17 Robert Dewar <dewar@adacore.com>
5989 * par-ch6.adb: Minor reformatting
5991 * prj.adb: Minor reformatting
5993 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5995 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
5996 on protected subprogram bodies, so exclude the case where Pf_Flags is
5997 Pf_Decl_Pbod from the error check.
5999 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6000 indicators on subprograms in protected bodies, and proceed with parsing
6003 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6004 subprograms from the check for primitiveness on subprograms with
6005 overriding indicators.
6006 (Check_Overriding_Indicator): Include protected subprograms in the
6007 style check for missing overriding indicators.
6009 2009-04-17 Tristan Gingold <gingold@adacore.com>
6011 * init.c: Fix stack checking for x86 Darwin.
6013 2009-04-17 Vincent Celier <celier@adacore.com>
6015 * prj-attr.adb: New project level attribute Object_File_Suffix
6018 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
6020 (Process_Compiler): Process attribute Object_File_Suffix
6022 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
6023 platform suffix, when specified.
6025 * prj.ads (Language_Config): New component Object_File_Suffix,
6026 defaulted to No_Name.
6027 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
6029 * snames.ads-tmpl: New standard name Object_File_Suffix
6031 2009-04-17 Robert Dewar <dewar@adacore.com>
6033 * gnat_rm.texi: Add documentation about No_Streams restriction
6035 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6036 attributes when checking No_Streams restriction.
6038 2009-04-17 Thomas Quinot <quinot@adacore.com>
6040 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6042 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6043 missing calls to RE_Request_Destroy to deallocate request objects after
6046 2009-04-17 Nicolas Setton <setton@adacore.com>
6048 * link.c: Fix support for passing a response file under Darwin.
6050 2009-04-17 Emmanuel Briot <briot@adacore.com>
6052 * prj.adb (Free): new subprogram.
6054 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6056 * sem_ch3.adb: additional initialization on incomplete subtypes.
6058 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6059 part and one of the formals is an incomplete tagged type, attach to
6060 list of private dependends of the type for later validation.
6062 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6063 primitive operations of a Taft-amendmment type.
6065 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6066 type. The check is performed on package exit, possibly after the
6067 subprogram is frozen.
6069 2009-04-17 Vincent Celier <celier@adacore.com>
6071 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6072 before looking for source directories, but make sure that there are nil
6073 if they are not explicitely declared and there is explicitely no
6074 sources in the project.
6076 2009-04-17 Pascal Obry <obry@adacore.com>
6078 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6080 * init.c: Fix minor typo and style fix.
6082 2009-04-17 Robert Dewar <dewar@adacore.com>
6084 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6086 * sem_attr.adb (Analyze_Attribute, case Address): Use
6087 PE_Address_Of_Intrinsic.
6089 * types.ads: Add PE_Address_Of_Intrinsic
6091 * types.h: Add PE_Address_Of_Intrinsic
6093 2009-04-17 Nicolas Setton <setton@adacore.com>
6095 * gcc-interface/Makefile.in: Under darwin, build shared libraries
6096 with install_name starting with "@rpath/".
6098 2009-04-17 Nicolas Setton <setton@adacore.com>
6100 * link.c: Add darwin section
6102 2009-04-16 Robert Dewar <dewar@adacore.com>
6104 * g-pehage.adb: Minor reformatting
6106 * sem_ch12.adb: Minor reformatting
6108 * exp_dist.adb: Minor reformatting
6110 * bindgen.adb: Minor style fixes.
6112 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6114 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6115 indexed components to the case where the prefix is a static string
6118 2009-04-16 Javier Miranda <miranda@adacore.com>
6120 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6121 objects avoid any further expansion of the expression initializing the
6124 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6126 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6127 that hides an outer homograph, make that homograph invisible when
6128 analyzing the actuals, to to prevent illegal direct visibility on it.
6130 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6132 * g-pehage.adb (Initialize): Fix off-by-one error.
6134 2009-04-16 Tristan Gingold <gingold@adacore.com>
6136 * init.c: Detect real stack overflow on Darwin.
6138 * system-darwin-x86.ads: Use stack probing on darwin x86.
6140 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6142 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6143 take the address of an intrinsic subprogram.
6145 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6147 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6148 for the targets where GNAT.Traceback.Symbolic is not supported.
6150 2009-04-16 Vincent Celier <celier@adacore.com>
6152 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6154 * g-trasym.ads: Update comments.
6156 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6158 * tracebak.c (STOP_FRAME): Verify validity of the current address
6159 before dereferencing.
6161 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6163 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6164 the original location of the index expressions and the index subtypes,
6165 to prevent spurious out-of-scope references in gigi.
6167 2009-04-16 Tristan Gingold <gingold@adacore.com>
6169 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6170 Add support for stack checking on darwin.
6172 2009-04-16 Vincent Celier <celier@adacore.com>
6174 * prj-attr.adb: New attribute Runtime_Source_Dir
6176 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6177 attribute Runtime_Source_Dir.
6178 (Check_Naming_Schemes): Give default values to out parameters to avoid
6181 * prj.ads (Language_Config): New component Runtime_Source_Dir
6183 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6185 2009-04-16 Pascal Obry <obry@adacore.com>
6187 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6188 Simple wrapper routines used to convert to proper encoding on
6191 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6193 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6196 2009-04-16 Pascal Obry <obry@adacore.com>
6198 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6200 2009-04-16 Thomas Quinot <quinot@adacore.com>
6202 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6203 integrated preprocessor.
6205 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6206 (Initialize): Split into two subprograms, Initialize (to be called
6207 prior to compiler command line processing) and Setup_Hooks (to be called
6208 later on when the first source file is loaded).
6210 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6211 Add call to Prep.Initialize.
6213 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6214 to Prep.Setup_Hooks.
6216 2009-04-16 Pascal Obry <obry@adacore.com>
6218 * adaint.h, adaint.c (__gnat_chdir): New routine.
6219 Simple wrapper routines used to convert to proper encoding on
6222 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6224 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6226 2009-04-16 Quentin Ochem <ochem@adacore.com>
6228 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6231 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6233 * a-convec.ads (Is_Empty): Mark inline.
6235 2009-04-16 Nicolas Roche <roche@adacore.com>
6237 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6239 2009-04-16 Thomas Quinot <quinot@adacore.com>
6241 * prepcomp.adb: Minor reformatting
6243 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6245 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6246 Access_Subprogram types can also be imported.
6247 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6250 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6252 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6253 preserve homonym chain when the declaration is rewritten into a
6254 renaming declaration, in order to preserve visibility structure.
6256 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6258 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6259 taken into account for VM targets.
6261 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6263 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6265 (Year_Week_In_Year): New routine which contains the original code from
6266 Week_In_Year. Add the missing special case for January 1st falling on
6269 2009-04-16 Thomas Quinot <quinot@adacore.com>
6271 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6272 actual type, use the base type to build the To_Any function.
6273 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6275 2009-04-16 Thomas Quinot <quinot@adacore.com>
6277 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6278 restrict.adb: Minor code reorganization (use
6279 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6281 2009-04-16 Bob Duff <duff@adacore.com>
6283 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6286 2009-04-16 Thomas Quinot <quinot@adacore.com>
6288 * sem_ch4.adb: Minor reformatting
6290 * adaint.c: Remove junk duplicated code.
6292 * sem_ch3.adb: Minor reformatting
6294 * exp_dist.adb: Minor comment rewording
6296 2009-04-16 Robert Dewar <dewar@adacore.com>
6298 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6301 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6303 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6304 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6306 2009-04-16 Robert Dewar <dewar@adacore.com>
6308 * Make-lang.in: Add entries for s-conca?.o
6310 * Makefile.rtl: Add entries for s-conca?
6312 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6313 of concatenation expansion
6315 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6316 string cases instead of expanding assignments inline.
6318 * opt.ads (Optimize_Size): New flag
6320 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6321 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6322 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6323 s-conca9.adb, s-conca9.ads: New file.
6325 2009-04-16 Robert Dewar <dewar@adacore.com>
6327 * exp_ch6.adb: Add comments
6329 * rtsfind.ads: Add entries for s-conca? routines
6331 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6333 * gcc-interface/Make-lang.in: Update dependencies.
6335 * gcc-interface/Makefile.in: Update translation for vms.
6337 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6339 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6340 and made global, to be used when installing parents of a child
6341 instance, to provide mappings for entities declared in formal packages
6342 of ancestor units. Now called from Install_Formal_Packages.
6344 2009-04-16 Doug Rupp <rupp@adacore.com>
6346 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6347 notation for clarity.
6349 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6350 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6351 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6352 (Initialize): Initialize Known_Tasks with Environment task.
6354 * s-taskin.ads (Task_States): Move new states to end for the sake of
6357 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6359 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6361 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6362 operation has an inline pragma, propagate the flag to the internal
6363 unprotected subprogram.
6365 2009-04-16 Doug Rupp <rupp@adacore.com>
6367 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6368 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6369 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6370 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6372 * s-taprop-vms.adb (Enter_Task): Likewise.
6373 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6375 * s-tassta.adb (Activate_Tasks): After task creation set state to
6376 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6377 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6378 Set state to Runnable after above.
6379 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6380 Debug_Event_Terminated.
6382 * s-taskin.ads (Task_States): Add new states Activiting and
6383 Activator_Delay_Sleep.
6384 (Bit_Array, Debug_Event_Array): New types.
6385 (Global_Task_Debug_Event_Set: New flag.
6386 (Common_ATCB): New field Debug_Events.
6388 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6390 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6393 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6394 Activating and when Acceptor_Delay_Sleep.
6396 * s-tasdeb.ads: Add constants for Debug_Events.
6397 (Debug_Event_Kind_Type): New subtype.
6398 (Signal_Debug_Event): New subprogram.
6400 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6402 2009-04-16 Thomas Quinot <quinot@adacore.com>
6404 * sem_elim.adb: Minor reformatting
6406 * freeze.adb: Minor reformatting
6408 * exp_ch4.adb: Minor reformatting
6410 2009-04-16 Emmanuel Briot <briot@adacore.com>
6412 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6414 2009-04-16 Robert Dewar <dewar@adacore.com>
6416 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6418 2009-04-16 Vincent Celier <celier@adacore.com>
6420 * fmap.adb (Initialize): Show the current line when the mapping file
6421 is detected as "incorrectly formatted".
6423 2009-04-16 Robert Dewar <dewar@adacore.com>
6425 * sem_ch12.adb: Minor reformatting
6427 * sem_ch5.adb: Minor comment addition
6429 * sem_util.adb: Minor reformatting
6431 * sinput-p.adb: Minor reformatting
6432 Add missing pragma Warnings (On)
6434 2009-04-16 Ed Falis <falis@adacore.com>
6436 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6438 2009-04-16 Vincent Celier <celier@adacore.com>
6440 * ali-util.adb: Minor comment spelling error fix
6442 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6444 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6445 generate an assignment loop in case of overlap.
6447 2009-04-16 Olivier Hainque <hainque@adacore.com>
6449 * gnat_ugn.texi (gnatmem description): Make it explicit that
6450 gnatmem is designed to work in association with static runtime
6453 2009-04-16 Thomas Quinot <quinot@adacore.com>
6455 * sem_type.adb: Minor reformatting
6457 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6459 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6460 concerning return codes of gettimeofday and return value check.
6462 2009-04-16 Ed Falis <falis@adacore.com>
6464 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6465 body can be renaming of imported routines.
6467 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6469 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6472 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6474 * exp_ch9.adb: Comment improvements.
6475 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6478 2009-04-15 Bob Duff <duff@adacore.com>
6480 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6481 "while X /= null loop" where X is unchanged inside the loop. We were
6482 not warning in this case, because of the pointers -- we feared that the
6483 loop variable could be updated via a pointer, if there are any pointers
6484 around the place. But that is impossible in this case.
6486 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6487 the case of dereferences. In X.all, X cannot be an l-value. We now
6488 catch that case (and implicit dereferences, too).
6490 2009-04-15 Vincent Celier <celier@adacore.com>
6492 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6494 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6496 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6498 (Analyze_Package_Instantiation): If generic unit in child instance is
6499 the same as generic unit in parent instance, look for an outer homonym
6500 to locate the desired generic.
6502 2009-04-15 Bob Duff <duff@adacore.com>
6504 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6505 warnings unless the loop comes from source, because checking generated
6506 loops is a waste of time, and makes it harder to debug
6507 Check_Infinite_Loop_Warning.
6509 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6510 tested in the while loop is a renaming, do not warn. Otherwise, we get
6511 false alarms, because it's usually renaming something that we can't
6512 deal with (an indexed component, a global variable, ...).
6514 * gnat_rm.texi: Fix typo
6516 2009-04-15 Thomas Quinot <quinot@adacore.com>
6518 * sem_ch6.adb: Minor reformatting
6520 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6522 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6523 immediate parent of the controlled function call is a component
6526 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6528 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6529 corresponding class-wide type is also in use.
6531 2009-04-15 Thomas Quinot <quinot@adacore.com>
6533 * frontend.adb: Minor comment fix
6535 2009-04-15 Robert Dewar <dewar@adacore.com>
6537 * gnatchop.adb (BOM_Length): New global variable
6538 (Write_Unit): Add new parameter Write_BOM
6539 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6542 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6544 2009-04-15 Geert Bosch <bosch@adacore.com>
6546 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6547 (Backend_Overflow_Checks): Set to True.
6549 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6551 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6552 keyword is given in a record extension.
6554 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6556 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6557 of a controlled function call in the context of a record aggregate.
6558 This does not apply to array aggregates since the call will be expanded
6561 2009-04-15 Ed Falis <falis@adacore.com>
6563 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6564 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6565 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6566 s-osinte-vxworks* and s-vxwext*.
6568 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6570 * gcc-interface/Make-lang.in: Update dependencies.
6572 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6575 2009-04-15 Robert Dewar <dewar@adacore.com>
6577 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6578 of node for location for warning messages.
6580 * gnatchop.adb: Minor reformatting
6582 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6584 * exp_ch6.adb: additional guard for renaming declarations for in
6585 parameters of an array type.
6587 2009-04-15 Robert Dewar <dewar@adacore.com>
6589 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6590 in case they were rewritten by expander (Force_Evaluation).
6592 * targparm.adb (Get_Target_Parameters): Correct check for
6593 Suppress_Exception_Locations.
6595 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6597 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6598 inlined is of an array type that is not bit-packed, use a renaming
6599 declaration to capture its value, rather than a constant declaration.
6601 2009-04-15 Robert Dewar <dewar@adacore.com>
6603 * rtsfind.adb: Minor reformatting.
6605 2009-04-15 Emmanuel Briot <briot@adacore.com>
6607 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6608 Restore, and free the saved context.
6610 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6612 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6613 for illegal private extension from a synchronized interface parent in
6614 front of check for illegal limited extension so that limited extension
6615 from a synchronized interface will be rejected.
6616 (Check_Ifaces): Check that a private extension that has a synchronized
6617 interface as a progenitor must be explicitly declared synchronized.
6618 Also check that a record extension cannot derive from a synchronized
6621 2009-04-15 Pascal Obry <obry@adacore.com>
6623 * adaint.h (__gnat_unlink): Add spec.
6624 (__gnat_rename): Likewise.
6626 2009-04-15 Vincent Celier <celier@adacore.com>
6628 * prj-nmsc.adb: Minor spelling error corrections in error messages
6630 2009-04-15 Robert Dewar <dewar@adacore.com>
6632 * sinfo.ads: Minor comment update
6634 * opt.ads: Minor comment updates
6636 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6639 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6641 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6642 that generates the code needed to update a dispatch table when a
6643 primitive operation is declared with a subprogram body without previous
6644 spec. Insertion of the generated code is responsibility of the caller.
6645 (Make_DT): When building static tables, append the code created by
6646 Register_Primitive to update a secondary table after it has been
6649 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6651 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6652 on an overriding operation that implements an interface operation only
6653 if not building static dispatch tables.
6655 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6657 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6658 does not cause overflow when converted to Duration. Use the safe value
6659 as the maximum allowable time delay..
6661 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6663 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6664 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6665 translated to "-j 2".
6667 2009-04-15 Bob Duff <duff@adacore.com>
6669 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6670 with_clauses, to avoid code duplication. Change this processing so we
6671 always add a with_clause on the main unit if needed.
6673 2009-04-15 Pascal Obry <obry@adacore.com>
6675 Add support for Win32 native encoding for delete/rename routines.
6677 * adaint.c (__gnat_unlink): New routine.
6678 (__gnat_rename): New routine.
6679 Simple wrapper routines used to convert to proper encoding on
6682 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6683 call to the C library.
6685 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6687 2009-04-15 Robert Dewar <dewar@adacore.com>
6689 * s-tassta.adb: Minor reformatting
6691 2009-04-15 Robert Dewar <dewar@adacore.com>
6693 * frontend.adb (Frontend): Set proper default for
6694 Warn_On_Non_Local_Exception.
6696 * opt.ads (Exception_Handler_Encountered): New flag
6697 (No_Warn_On_Non_Local_Exception): New flag
6699 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6701 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6702 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6704 2009-04-15 Cyrille Comar <comar@adacore.com>
6706 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6707 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6708 message when exception traces are active since it would generate
6709 redundant information.
6710 (Exception_Traces.Notify_Exception): put message output by a critical
6711 section to avoid unsynchronized output.
6712 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6713 section to avoid unsynchronized output.
6715 2009-04-15 Emmanuel Briot <briot@adacore.com>
6717 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6718 (Free): New subprogram.
6720 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6722 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6723 (Formatting_Operations.Time_Of): Change the way four year chunks of
6724 nanoseconds are added to the intermediate result.
6726 2009-04-15 Nicolas Setton <setton@adacore.com>
6728 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6729 does not need to wait for a carriage return.
6731 2009-04-15 Tristan Gingold <gingold@adacore.com>
6733 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6736 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6738 * freeze.adb (Freeze_Entity): improve error message for improper use of
6740 Diagnose additional illegal uses of incomplete types in formal parts.
6741 appearing in formal parts.
6743 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6745 2009-04-15 Robert Dewar <dewar@adacore.com>
6747 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6749 2009-04-15 Nicolas Roche <roche@adacore.com>
6751 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6754 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6756 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6758 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6760 * sem_ch4.adb: improve error message on exponentiation.
6762 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6764 * a-calend.adb: Move constant Epoch_Offset from package
6765 Conversion_Operations to top level.
6766 (Delay_Operations.To_Duration): Define a constant which represents
6767 "end of time" and use it as a guard against very distant delay dates.
6768 Protect the code against overflow when performing the origin shift to
6771 2009-04-15 Robert Dewar <dewar@adacore.com>
6773 * sem_prag.adb: Minor reformatting.
6775 * sem_type.adb: Minor reformatting
6777 2009-04-15 Javier Miranda <miranda@adacore.com>
6779 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6780 support to check eliminated subprograms.
6782 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6784 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6785 dispatching subprograms.
6787 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6788 operations. Initialize with "null" the slots of eliminated dispaching
6790 (Write_DT): Add output for eliminated primitives.
6792 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6794 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6796 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6797 the second is redundant, regardless of scopes.
6799 2009-04-15 Vincent Celier <celier@adacore.com>
6801 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6802 the object directory as when there are no sources, they may not be any
6805 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6806 directory, when there are no exec directory.
6808 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6810 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6811 ambiguities, refine removal of universal interpretations from complex
6812 expressions with literal arguments, when some numeric operators have
6813 been declared abstract.
6815 2009-04-15 Ed Falis <falis@adacore.com>
6817 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6818 and backward compatibility for targets using probing for stack overflow
6820 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6822 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6823 after any declaration, including renaming declarations.
6825 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6827 * gcc-interface/Make-lang.in: Update dependencies.
6829 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6830 Update xenomai target pairs.
6832 2009-04-15 Javier Miranda <miranda@adacore.com>
6834 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6836 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6837 functions returning anonymous access to class-wide limited types. Mark
6838 also the containing scope as a task master.
6840 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6841 limited-withed packages. Required to restore their visibility after
6842 processing packages associated with implicit with-clauses.
6844 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6845 associated with return statements because this work is now done by
6846 Check_Anonymous_Return.
6847 (Build_Master): Code cleanup.
6849 2009-04-15 Thomas Quinot <quinot@adacore.com>
6851 * sem_warn.ads: Minor reformatting
6853 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6855 * sem_ch3.adb: better error message for illegal interfaces
6857 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6858 formal is an incomplete type from a limited_with clause.
6860 2009-04-15 Vincent Celier <celier@adacore.com>
6862 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6863 Externally_Built indicating if the project is externally built. If it
6864 is, and --subdirs is specified, but the subdir does not exist, look
6865 for the specified directory, without the subdir.
6867 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6869 * a-tasatt.adb: Fix typo, plus minor reformatting
6871 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6873 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6875 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6877 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6878 private extension whose parent is a synchronized interface carries an
6879 explicit synchronized keyword.
6881 2009-04-15 Thomas Quinot <quinot@adacore.com>
6883 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6884 instantiate generic shared object package with the corresponding
6887 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6889 * system-linux-sparc.ads: Remove obsolete entries.
6891 2009-04-15 Thomas Quinot <quinot@adacore.com>
6893 * s-tasuti.ads: Add ??? comment
6895 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6897 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6898 type even if the designated type comes from a limited_with clause, to
6899 ensure that the symbol for the finalization list of the access type is
6902 2009-04-10 Robert Dewar <dewar@adacore.com>
6904 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6905 for warning suppression.
6907 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6909 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6910 identical, there is no redudancy to check.
6912 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6914 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6915 calls initializing SS_Allocator (which is initialized in following
6917 (Expand_Simple_Function_Return): Add comment about False value for
6918 Comes_From_Source on secondary-stack allocator.
6920 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
6921 (Build_Entry_Name): Add comment.
6923 2009-04-10 Robert Dewar <dewar@adacore.com>
6925 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
6927 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
6928 bound tested, since this is now done more generally in Sem_Res.
6930 * sem_res.adb (Resolve_Comparison_Op): Add call to
6931 Check_Lower_Bound_Tested.
6932 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
6934 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
6935 (Low_Bound_Tested): New name for Low_Bound_Known flag
6937 * exp_ch5.adb: Minor reformatting
6940 Add comments on copying the Comes_From_Source flag for allocators
6943 Add comments on copying the Comes_From_Source flag for allocators
6945 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
6946 Comes_From_Source flag from old allocator to new one.
6948 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6950 * sem_ch6.ads: Address missing documentation query
6952 2009-04-10 Vincent Celier <celier@adacore.com>
6955 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
6956 and Response_File_Switches.
6958 * prj-nmsc.adb (Process_Linker): Process new attributes
6959 Max_Command_Line_Length, Response_File_Format and
6960 Response_File_Switches.
6962 * prj.ads (Response_File_Format): New enumeration type
6963 (Project_Configuration): New componants Max_Command_Line_Length,
6964 Resp_File_Format and Resp_File_Options.
6966 * snames.ads-tmpl: Add new standard names for linking response files
6967 for gprbuild: GNU, None, Object_List, Option_List,
6968 Max_Command_Line_Length, Response_File_Format and
6969 Response_File_Switches.
6971 2009-04-10 Geert Bosch <bosch@adacore.com>
6973 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
6974 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
6975 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
6976 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
6977 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
6978 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6979 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
6980 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
6981 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
6982 system-vxworks-arm.ads, system-vxworks-m68k.ads,
6983 system-vxworks-mips.ads, system-vxworks-ppc.ads,
6984 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
6985 (Backend_Overflow_Checks): Set to True.
6987 2009-04-10 Thomas Quinot <quinot@adacore.com>
6989 * exp_attr.adb: Minor reformatting
6991 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6993 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
6994 analyze the expression for a postcondition, even if the compiler mode
6997 2009-04-10 Robert Dewar <dewar@adacore.com>
6999 * sem_aux.adb: Minor reformatting
7001 2009-04-10 Ed Falis <falis@adacore.com>
7003 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7005 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7007 2009-04-10 Thomas Quinot <quinot@adacore.com>
7009 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7010 undocumented formal.
7013 * a-direio.ads: Fix typo in comment
7015 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
7016 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
7017 Use uniform phrasing for comment at start of subprogram body.
7019 * xsnamest.adb: Add note to explain why we use specific names for the
7020 newly generated files instead of generating snames.{ads,adb,h} directly
7022 2009-04-10 Sergey Rybin <rybin@adacore.com>
7025 Add qualifier for new gnatstub option '--no-exception'
7028 Add the description of the new gnatstub option '--no-exception'
7030 2009-04-10 Robert Dewar <dewar@adacore.com>
7032 * rtsfind.adb: Minor reformatting
7034 2009-04-10 Thomas Quinot <quinot@adacore.com>
7036 * sem_disp.adb: Minor reformatting.
7037 Add comment pointing to RM clause for the case of warning against a
7038 (failed) attempt at declaring a primitive operation elsewhere than in a
7041 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7043 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7044 an actual for a previous formal package of the current instance.
7046 2009-04-10 Bob Duff <duff@adacore.com>
7048 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7049 them first, rather than on the extended main unit.
7051 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7053 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7054 specification of full view carries a null exclusion indicator, create
7055 an itype for it, to check for conformance with partial view.
7057 2009-04-10 Bob Duff <duff@adacore.com>
7059 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7061 * rtsfind.adb: Minor comment changes, and remove useless code.
7063 * sinfo.ads: Add ??? comment.
7065 2009-04-10 Vincent Celier <celier@adacore.com>
7067 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7069 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7071 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7072 type is a synchronized type, retrieve tag information from the
7073 corresponding record, which has the dispatch table link.
7075 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
7077 * g-comlin.adb (Group_Analysis): Take care of switches that might be
7078 decomposed afterwards, but are present as-is in the command line
7079 configuration, and thus should be kept as-is.
7081 2009-04-10 Robert Dewar <dewar@adacore.com>
7083 * gnat_rm.texi: Document that postconditions are tested on implicit
7086 * sem_aux.adb: Minor reformatting
7088 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7090 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7093 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7094 Null_Exclusion_In_Return_Present when an access-to-function type has a
7095 result type with an explicit not null.
7097 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7098 given on the result type, then create a null-excluding itype for the
7101 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7102 the case where a null exclusion is imposed on a named access type.
7103 (Analyze_Subprogram_Specification): Push and pop the scope of the
7104 function around the call to Analyze_Return_Type in the case of no
7105 formals, for consistency with handling when formals are present
7106 (Process_Formals does this). Ensures that any itype created for the
7107 return type will be associated with the proper scope.
7109 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7110 exclusion is given on a generic function's result type, then create a
7111 null-excluding itype for the generic function.
7112 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7113 for an actual for a formal in object according to the setting on the
7114 formal. Ensures null exclusion checks are done when the association is
7117 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7118 N_Access_Function_Definition.
7120 * sinfo.adb: Add Get_ and Set_ operations for
7121 Null_Exclusion_In_Return_Present.
7123 2009-04-10 Bob Duff <duff@adacore.com>
7125 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7126 call to the _Postconditions procedure in the case of implicit returns
7127 from analysis to expansion. This eliminates some duplicated code. Use
7128 the Postcondition_Proc to find the identity of this procedure during
7131 2009-04-10 Robert Dewar <dewar@adacore.com>
7133 * sem_ch6.adb: Minor code clean up.
7135 * einfo.ads, sem_attr.adb: Minor comment fixes.
7137 2009-04-10 Robert Dewar <dewar@adacore.com>
7139 * sem_ch8.adb: Minor reformatting
7141 2009-04-10 Robert Dewar <dewar@adacore.com>
7143 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7146 * sem_ch6.adb: Minor code clean up.
7148 2009-04-10 Robert Dewar <dewar@adacore.com>
7150 * mlib-tgt-specific-xi.adb: Minor reformatting
7152 2009-04-10 Bob Duff <duff@adacore.com>
7154 * einfo.ads: Minor comment fixes
7156 2009-04-10 Vincent Celier <celier@adacore.com>
7158 * snames.ads-tmpl: Remove names that are no longer used in the
7160 Mark specifically those that are used only in gprbuild
7162 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
7164 * init.c: Adjust EH support code on Alpha/Tru64.
7166 2009-04-10 Bob Duff <duff@adacore.com>
7168 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7169 procedure on every path that could return implicitly (not via a return
7170 statement) from a procedure.
7172 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7174 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7175 valid scope for a task declarations and therefore for a master id.
7177 2009-04-10 Robert Dewar <dewar@adacore.com>
7179 * sem_aux.adb: Minor reformatting
7181 2009-04-10 Vincent Celier <celier@adacore.com>
7183 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7185 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7186 (Set_Obsolescent_Check): New procedure to change the value of
7187 Obsolescent_Check_Flag.
7189 * scn.ads (Set_Obsolescent_Check): New procedure to control
7192 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7193 obsolescent features while preprocessing.
7195 2009-04-10 Thomas Quinot <quinot@adacore.com>
7197 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7198 generated files on all platforms.
7200 2009-04-10 Robert Dewar <dewar@adacore.com>
7202 * sem_aux.adb: Minor reformatting
7204 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7206 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7207 protected function with formals that returns an anonymous access type.
7209 2009-04-10 Thomas Quinot <quinot@adacore.com>
7211 * sem_disp.adb: Minor reformatting
7213 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7215 * seh_init.c: Do not use the 32-bit specific implementation of
7216 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7219 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7221 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7222 a '/' at the end so we better use the complete target name to determine
7223 whether it is a PowerPC 55xx target.
7225 2009-04-10 Thomas Quinot <quinot@adacore.com>
7227 * sem_eval.adb: Minor reformatting
7229 2009-04-10 Thomas Quinot <quinot@adacore.com>
7231 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7234 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7237 * xsnamest.adb: New file.
7239 * gcc-interface/Make-lang.in: New target for automated generation of
7240 snames.ads, snames.adb and snames.h
7242 2009-04-10 Tristan Gingold <gingold@adacore.com>
7244 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7245 avoid compile time warnings.
7246 Do not add gcc/config in include search list while compiling the RTS.
7247 Pragma Thread_Local_Storage is available on any target.
7249 2009-04-10 Bob Duff <duff@adacore.com>
7251 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7253 2009-04-10 Tristan Gingold <gingold@adacore.com>
7255 * init.c: Install signal handler on Darwin.
7257 2009-04-10 Robert Dewar <dewar@adacore.com>
7259 * sem_prag.adb: Minor reformatting
7261 * exp_util.adb (Make_Non_Empty_Check): New function
7262 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7263 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7265 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7267 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7269 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7271 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7272 tool prefix for AVR and PowerPC 55xx targets.
7274 2009-04-10 Robert Dewar <dewar@adacore.com>
7276 * sem_warn.adb (Within_Postcondition): New function
7277 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7279 2009-04-10 Robert Dewar <dewar@adacore.com>
7281 * sem_warn.adb: Minor reformatting
7283 * make.adb: Minor reformatting.
7285 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7287 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7288 entity and the scope is a subprogram, retrieve the Sloc of the
7289 subprogram's body rather than using the sloc of the spec, for better
7290 line-stepping behavior in gdb.
7291 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7292 controller, use the Sloc of the first declaration of the containing list
7293 rather than that of the node that triggered creation of the list
7296 2009-04-10 Vincent Celier <celier@adacore.com>
7298 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7299 to avoid gcc warning.
7301 2009-04-10 Robert Dewar <dewar@adacore.com>
7303 * g-comlin.adb: Add ??? comment
7305 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7307 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7308 unreferenced entities for a package with no visible declarations.
7310 2009-04-10 Robert Dewar <dewar@adacore.com>
7312 * exp_ch9.adb: Minor reformatting
7314 2009-04-10 Thomas Quinot <quinot@adacore.com>
7316 * sem_prag.adb: Minor reformatting
7318 2009-04-10 Vincent Celier <celier@adacore.com>
7321 (Check_Library_Attributes): For a project qualified as a library project
7322 that is not a library project, indicate in the error message which
7323 attributes are missing (Library_Dir and/or Library_Name).
7325 2009-04-10 Bob Duff <duff@adacore.com>
7327 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7328 generated nodes, because it might confuse various circuits in the FE.
7330 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7332 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7333 of pragma. It will be recopied and analyzed when used in call to
7336 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7337 initialization operations and recognize use of it in procedure calls
7340 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7341 argument, because it may have side-effects.
7343 * exp_ch2.adb: Remove obsolete comments on default functions
7345 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7347 * adaint.c (RTX section): Do for RTX the same thing as we do for
7348 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7350 2009-04-10 Robert Dewar <dewar@adacore.com>
7352 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7354 * sem_res.adb (Resolve_Call): Fix test for
7355 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7356 a non-dynamic scope).
7358 2009-04-10 Robert Dewar <dewar@adacore.com>
7360 * make.adb: Add comment.
7363 2009-04-10 Nicolas Setton <setton@adacore.com>
7365 * s-osprim-darwin.adb: New file.
7367 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7369 2009-04-10 Thomas Quinot <quinot@adacore.com>
7371 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7373 2009-04-09 Nick Clifton <nickc@redhat.com>
7375 * adadecode.h: Change copyright header to refer to version
7376 3 of the GNU General Public License with version 3.1 of the
7377 GCC Runtime Library Exception and to point readers at the
7378 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7380 * 9drpc.adb: Likewise.
7381 * a-assert.adb: Likewise.
7382 * a-astaco.adb: Likewise.
7383 * a-calari.adb: Likewise.
7384 * a-calcon.adb: Likewise.
7385 * a-calcon.ads: Likewise.
7386 * a-caldel.ads: Likewise.
7387 * a-calend-vms.adb: Likewise.
7388 * a-calend-vms.ads: Likewise.
7389 * a-calend.adb: Likewise.
7390 * a-calend.ads: Likewise.
7391 * a-calfor.adb: Likewise.
7392 * a-catizo.adb: Likewise.
7393 * a-cdlili.adb: Likewise.
7394 * a-cdlili.ads: Likewise.
7395 * a-cgaaso.adb: Likewise.
7396 * a-cgaaso.ads: Likewise.
7397 * a-cgarso.adb: Likewise.
7398 * a-cgcaso.adb: Likewise.
7399 * a-chacon.adb: Likewise.
7400 * a-chacon.ads: Likewise.
7401 * a-chahan.adb: Likewise.
7402 * a-chahan.ads: Likewise.
7403 * a-chlat9.ads: Likewise.
7404 * a-chtgke.adb: Likewise.
7405 * a-chtgke.ads: Likewise.
7406 * a-chtgop.adb: Likewise.
7407 * a-chtgop.ads: Likewise.
7408 * a-chzla1.ads: Likewise.
7409 * a-chzla9.ads: Likewise.
7410 * a-cidlli.adb: Likewise.
7411 * a-cidlli.ads: Likewise.
7412 * a-cihama.adb: Likewise.
7413 * a-cihama.ads: Likewise.
7414 * a-cihase.adb: Likewise.
7415 * a-cihase.ads: Likewise.
7416 * a-ciorma.adb: Likewise.
7417 * a-ciorma.ads: Likewise.
7418 * a-ciormu.adb: Likewise.
7419 * a-ciormu.ads: Likewise.
7420 * a-ciorse.adb: Likewise.
7421 * a-ciorse.ads: Likewise.
7422 * a-clrefi.adb: Likewise.
7423 * a-clrefi.ads: Likewise.
7424 * a-cohama.adb: Likewise.
7425 * a-cohama.ads: Likewise.
7426 * a-cohase.adb: Likewise.
7427 * a-cohase.ads: Likewise.
7428 * a-cohata.ads: Likewise.
7429 * a-coinve.adb: Likewise.
7430 * a-coinve.ads: Likewise.
7431 * a-colien.adb: Likewise.
7432 * a-colien.ads: Likewise.
7433 * a-colire.adb: Likewise.
7434 * a-colire.ads: Likewise.
7435 * a-comlin.adb: Likewise.
7436 * a-comlin.ads: Likewise.
7437 * a-convec.adb: Likewise.
7438 * a-convec.ads: Likewise.
7439 * a-coorma.adb: Likewise.
7440 * a-coorma.ads: Likewise.
7441 * a-coormu.adb: Likewise.
7442 * a-coormu.ads: Likewise.
7443 * a-coorse.adb: Likewise.
7444 * a-coorse.ads: Likewise.
7445 * a-coprnu.adb: Likewise.
7446 * a-coprnu.ads: Likewise.
7447 * a-crbltr.ads: Likewise.
7448 * a-crbtgk.adb: Likewise.
7449 * a-crbtgk.ads: Likewise.
7450 * a-crbtgo.adb: Likewise.
7451 * a-crbtgo.ads: Likewise.
7452 * a-crdlli.adb: Likewise.
7453 * a-crdlli.ads: Likewise.
7454 * a-cwila1.ads: Likewise.
7455 * a-cwila9.ads: Likewise.
7456 * a-decima.adb: Likewise.
7457 * a-decima.ads: Likewise.
7458 * a-diocst.adb: Likewise.
7459 * a-diocst.ads: Likewise.
7460 * a-direct.adb: Likewise.
7461 * a-direct.ads: Likewise.
7462 * a-direio.adb: Likewise.
7463 * a-direio.ads: Likewise.
7464 * a-dirval-mingw.adb: Likewise.
7465 * a-dirval-vms.adb: Likewise.
7466 * a-dirval.adb: Likewise.
7467 * a-dirval.ads: Likewise.
7468 * a-dynpri.adb: Likewise.
7469 * a-einuoc.adb: Likewise.
7470 * a-einuoc.ads: Likewise.
7471 * a-elchha.adb: Likewise.
7472 * a-elchha.ads: Likewise.
7473 * a-envvar.adb: Likewise.
7474 * a-excach.adb: Likewise.
7475 * a-except-2005.adb: Likewise.
7476 * a-except-2005.ads: Likewise.
7477 * a-except.adb: Likewise.
7478 * a-except.ads: Likewise.
7479 * a-excpol-abort.adb: Likewise.
7480 * a-excpol.adb: Likewise.
7481 * a-exctra.adb: Likewise.
7482 * a-exctra.ads: Likewise.
7483 * a-exetim-mingw.adb: Likewise.
7484 * a-exetim-mingw.ads: Likewise.
7485 * a-exexda.adb: Likewise.
7486 * a-exexpr-gcc.adb: Likewise.
7487 * a-exexpr.adb: Likewise.
7488 * a-exextr.adb: Likewise.
7489 * a-exstat.adb: Likewise.
7490 * a-filico.adb: Likewise.
7491 * a-filico.ads: Likewise.
7492 * a-finali.adb: Likewise.
7493 * a-finali.ads: Likewise.
7494 * a-interr.ads: Likewise.
7495 * a-intnam-aix.ads: Likewise.
7496 * a-intnam-darwin.ads: Likewise.
7497 * a-intnam-dummy.ads: Likewise.
7498 * a-intnam-freebsd.ads: Likewise.
7499 * a-intnam-hpux.ads: Likewise.
7500 * a-intnam-irix.ads: Likewise.
7501 * a-intnam-linux.ads: Likewise.
7502 * a-intnam-lynxos.ads: Likewise.
7503 * a-intnam-mingw.ads: Likewise.
7504 * a-intnam-rtems.ads: Likewise.
7505 * a-intnam-solaris.ads: Likewise.
7506 * a-intnam-tru64.ads: Likewise.
7507 * a-intnam-vms.ads: Likewise.
7508 * a-intnam-vxworks.ads: Likewise.
7509 * a-intsig.adb: Likewise.
7510 * a-intsig.ads: Likewise.
7511 * a-ngcefu.adb: Likewise.
7512 * a-ngcoar.adb: Likewise.
7513 * a-ngcoty.adb: Likewise.
7514 * a-ngcoty.ads: Likewise.
7515 * a-ngelfu.adb: Likewise.
7516 * a-ngrear.adb: Likewise.
7517 * a-ngrear.ads: Likewise.
7518 * a-nudira.adb: Likewise.
7519 * a-nudira.ads: Likewise.
7520 * a-nuflra.adb: Likewise.
7521 * a-nuflra.ads: Likewise.
7522 * a-numaux-darwin.adb: Likewise.
7523 * a-numaux-darwin.ads: Likewise.
7524 * a-numaux-libc-x86.ads: Likewise.
7525 * a-numaux-vxworks.ads: Likewise.
7526 * a-numaux-x86.adb: Likewise.
7527 * a-numaux-x86.ads: Likewise.
7528 * a-numaux.ads: Likewise.
7529 * a-rbtgso.adb: Likewise.
7530 * a-rbtgso.ads: Likewise.
7531 * a-reatim.ads: Likewise.
7532 * a-retide.adb: Likewise.
7533 * a-retide.ads: Likewise.
7534 * a-rttiev.adb: Likewise.
7535 * a-rttiev.ads: Likewise.
7536 * a-secain.adb: Likewise.
7537 * a-secain.ads: Likewise.
7538 * a-sequio.adb: Likewise.
7539 * a-sequio.ads: Likewise.
7540 * a-shcain.adb: Likewise.
7541 * a-shcain.ads: Likewise.
7542 * a-siocst.adb: Likewise.
7543 * a-siocst.ads: Likewise.
7544 * a-slcain.adb: Likewise.
7545 * a-slcain.ads: Likewise.
7546 * a-ssicst.adb: Likewise.
7547 * a-ssicst.ads: Likewise.
7548 * a-stboha.adb: Likewise.
7549 * a-stmaco.ads: Likewise.
7550 * a-storio.adb: Likewise.
7551 * a-strbou.adb: Likewise.
7552 * a-strbou.ads: Likewise.
7553 * a-stream.ads: Likewise.
7554 * a-strfix.adb: Likewise.
7555 * a-strhas.adb: Likewise.
7556 * a-strmap.adb: Likewise.
7557 * a-strmap.ads: Likewise.
7558 * a-strsea.adb: Likewise.
7559 * a-strsea.ads: Likewise.
7560 * a-strsup.adb: Likewise.
7561 * a-strsup.ads: Likewise.
7562 * a-strunb.adb: Likewise.
7563 * a-strunb.ads: Likewise.
7564 * a-ststio.adb: Likewise.
7565 * a-ststio.ads: Likewise.
7566 * a-stunau.adb: Likewise.
7567 * a-stunau.ads: Likewise.
7568 * a-stunha.adb: Likewise.
7569 * a-stwibo.adb: Likewise.
7570 * a-stwibo.ads: Likewise.
7571 * a-stwifi.adb: Likewise.
7572 * a-stwiha.adb: Likewise.
7573 * a-stwima.adb: Likewise.
7574 * a-stwima.ads: Likewise.
7575 * a-stwise.adb: Likewise.
7576 * a-stwise.ads: Likewise.
7577 * a-stwisu.adb: Likewise.
7578 * a-stwisu.ads: Likewise.
7579 * a-stwiun.adb: Likewise.
7580 * a-stwiun.ads: Likewise.
7581 * a-stzbou.adb: Likewise.
7582 * a-stzbou.ads: Likewise.
7583 * a-stzfix.adb: Likewise.
7584 * a-stzhas.adb: Likewise.
7585 * a-stzmap.adb: Likewise.
7586 * a-stzmap.ads: Likewise.
7587 * a-stzsea.adb: Likewise.
7588 * a-stzsea.ads: Likewise.
7589 * a-stzsup.adb: Likewise.
7590 * a-stzsup.ads: Likewise.
7591 * a-stzunb.adb: Likewise.
7592 * a-stzunb.ads: Likewise.
7593 * a-suteio.adb: Likewise.
7594 * a-suteio.ads: Likewise.
7595 * a-swbwha.adb: Likewise.
7596 * a-swmwco.ads: Likewise.
7597 * a-swunau.adb: Likewise.
7598 * a-swunau.ads: Likewise.
7599 * a-swuwha.adb: Likewise.
7600 * a-swuwti.adb: Likewise.
7601 * a-swuwti.ads: Likewise.
7602 * a-sytaco.adb: Likewise.
7603 * a-sytaco.ads: Likewise.
7604 * a-szbzha.adb: Likewise.
7605 * a-szmzco.ads: Likewise.
7606 * a-szunau.adb: Likewise.
7607 * a-szunau.ads: Likewise.
7608 * a-szuzha.adb: Likewise.
7609 * a-szuzti.adb: Likewise.
7610 * a-szuzti.ads: Likewise.
7611 * a-tags.adb: Likewise.
7612 * a-tags.ads: Likewise.
7613 * a-tasatt.ads: Likewise.
7614 * a-taside.adb: Likewise.
7615 * a-taside.ads: Likewise.
7616 * a-taster.adb: Likewise.
7617 * a-teioed.adb: Likewise.
7618 * a-teioed.ads: Likewise.
7619 * a-textio.adb: Likewise.
7620 * a-textio.ads: Likewise.
7621 * a-tiboio.adb: Likewise.
7622 * a-ticoau.adb: Likewise.
7623 * a-ticoau.ads: Likewise.
7624 * a-ticoio.adb: Likewise.
7625 * a-ticoio.ads: Likewise.
7626 * a-tideau.adb: Likewise.
7627 * a-tideau.ads: Likewise.
7628 * a-tideio.adb: Likewise.
7629 * a-tideio.ads: Likewise.
7630 * a-tienau.adb: Likewise.
7631 * a-tienau.ads: Likewise.
7632 * a-tienio.adb: Likewise.
7633 * a-tienio.ads: Likewise.
7634 * a-tifiio.adb: Likewise.
7635 * a-tifiio.ads: Likewise.
7636 * a-tiflau.adb: Likewise.
7637 * a-tiflau.ads: Likewise.
7638 * a-tiflio.adb: Likewise.
7639 * a-tiflio.ads: Likewise.
7640 * a-tigeau.adb: Likewise.
7641 * a-tigeau.ads: Likewise.
7642 * a-tiinau.adb: Likewise.
7643 * a-tiinau.ads: Likewise.
7644 * a-tiinio.adb: Likewise.
7645 * a-tiinio.ads: Likewise.
7646 * a-timoau.adb: Likewise.
7647 * a-timoau.ads: Likewise.
7648 * a-timoio.adb: Likewise.
7649 * a-timoio.ads: Likewise.
7650 * a-tiocst.adb: Likewise.
7651 * a-tiocst.ads: Likewise.
7652 * a-titest.adb: Likewise.
7653 * a-wichun.adb: Likewise.
7654 * a-wichun.ads: Likewise.
7655 * a-witeio.adb: Likewise.
7656 * a-witeio.ads: Likewise.
7657 * a-wtcoau.adb: Likewise.
7658 * a-wtcoau.ads: Likewise.
7659 * a-wtcoio.adb: Likewise.
7660 * a-wtcstr.adb: Likewise.
7661 * a-wtcstr.ads: Likewise.
7662 * a-wtdeau.adb: Likewise.
7663 * a-wtdeau.ads: Likewise.
7664 * a-wtdeio.adb: Likewise.
7665 * a-wtdeio.ads: Likewise.
7666 * a-wtedit.adb: Likewise.
7667 * a-wtedit.ads: Likewise.
7668 * a-wtenau.adb: Likewise.
7669 * a-wtenau.ads: Likewise.
7670 * a-wtenio.adb: Likewise.
7671 * a-wtenio.ads: Likewise.
7672 * a-wtfiio.adb: Likewise.
7673 * a-wtfiio.ads: Likewise.
7674 * a-wtflau.adb: Likewise.
7675 * a-wtflau.ads: Likewise.
7676 * a-wtflio.adb: Likewise.
7677 * a-wtflio.ads: Likewise.
7678 * a-wtgeau.adb: Likewise.
7679 * a-wtgeau.ads: Likewise.
7680 * a-wtinau.adb: Likewise.
7681 * a-wtinau.ads: Likewise.
7682 * a-wtinio.adb: Likewise.
7683 * a-wtmoau.adb: Likewise.
7684 * a-wtmoau.ads: Likewise.
7685 * a-wtmoio.adb: Likewise.
7686 * a-wtmoio.ads: Likewise.
7687 * a-wttest.adb: Likewise.
7688 * a-wwboio.adb: Likewise.
7689 * a-zchuni.adb: Likewise.
7690 * a-zchuni.ads: Likewise.
7691 * a-ztcoau.adb: Likewise.
7692 * a-ztcoau.ads: Likewise.
7693 * a-ztcoio.adb: Likewise.
7694 * a-ztcstr.adb: Likewise.
7695 * a-ztcstr.ads: Likewise.
7696 * a-ztdeau.adb: Likewise.
7697 * a-ztdeau.ads: Likewise.
7698 * a-ztdeio.adb: Likewise.
7699 * a-ztdeio.ads: Likewise.
7700 * a-ztedit.adb: Likewise.
7701 * a-ztedit.ads: Likewise.
7702 * a-ztenau.adb: Likewise.
7703 * a-ztenau.ads: Likewise.
7704 * a-ztenio.adb: Likewise.
7705 * a-ztenio.ads: Likewise.
7706 * a-ztexio.adb: Likewise.
7707 * a-ztexio.ads: Likewise.
7708 * a-ztfiio.adb: Likewise.
7709 * a-ztfiio.ads: Likewise.
7710 * a-ztflau.adb: Likewise.
7711 * a-ztflau.ads: Likewise.
7712 * a-ztflio.adb: Likewise.
7713 * a-ztflio.ads: Likewise.
7714 * a-ztgeau.adb: Likewise.
7715 * a-ztgeau.ads: Likewise.
7716 * a-ztinau.adb: Likewise.
7717 * a-ztinau.ads: Likewise.
7718 * a-ztinio.adb: Likewise.
7719 * a-ztmoau.adb: Likewise.
7720 * a-ztmoau.ads: Likewise.
7721 * a-ztmoio.adb: Likewise.
7722 * a-ztmoio.ads: Likewise.
7723 * a-zttest.adb: Likewise.
7724 * a-zzboio.adb: Likewise.
7725 * adadecode.c: Likewise.
7726 * adaint.c: Likewise.
7727 * adaint.h: Likewise.
7728 * alloc.ads: Likewise.
7730 * arit64.c: Likewise.
7731 * atree.adb: Likewise.
7732 * atree.ads: Likewise.
7733 * aux-io.c: Likewise.
7735 * casing.adb: Likewise.
7736 * casing.ads: Likewise.
7738 * csets.adb: Likewise.
7739 * csets.ads: Likewise.
7740 * cstreams.c: Likewise.
7741 * ctrl_c.c: Likewise.
7742 * debug.adb: Likewise.
7743 * debug.ads: Likewise.
7744 * dec.ads: Likewise.
7745 * einfo.adb: Likewise.
7746 * einfo.ads: Likewise.
7747 * elists.adb: Likewise.
7748 * elists.ads: Likewise.
7751 * errno.c: Likewise.
7754 * final.c: Likewise.
7755 * fname.adb: Likewise.
7756 * fname.ads: Likewise.
7757 * g-allein.ads: Likewise.
7758 * g-alleve.adb: Likewise.
7759 * g-alleve.ads: Likewise.
7760 * g-altcon.adb: Likewise.
7761 * g-altcon.ads: Likewise.
7762 * g-altive.ads: Likewise.
7763 * g-alveop.adb: Likewise.
7764 * g-alveop.ads: Likewise.
7765 * g-alvety.ads: Likewise.
7766 * g-alvevi.ads: Likewise.
7767 * g-arrspl.adb: Likewise.
7768 * g-arrspl.ads: Likewise.
7769 * g-calend.ads: Likewise.
7770 * g-comlin.adb: Likewise.
7771 * g-debpoo.adb: Likewise.
7772 * g-debpoo.ads: Likewise.
7773 * g-eacodu-vms.adb: Likewise.
7774 * g-eacodu.adb: Likewise.
7775 * g-excact.adb: Likewise.
7776 * g-excact.ads: Likewise.
7777 * g-locfil.adb: Likewise.
7778 * g-os_lib.ads: Likewise.
7779 * g-rannum.adb: Likewise.
7780 * g-rannum.ads: Likewise.
7781 * g-regist.adb: Likewise.
7782 * g-regist.ads: Likewise.
7783 * g-signal.adb: Likewise.
7784 * g-signal.ads: Likewise.
7785 * g-soccon.ads: Likewise.
7786 * g-string.adb: Likewise.
7787 * g-string.ads: Likewise.
7788 * g-strspl.ads: Likewise.
7789 * g-timsta.adb: Likewise.
7790 * g-timsta.ads: Likewise.
7791 * g-trasym-vms-alpha.adb: Likewise.
7792 * g-trasym-vms-ia64.adb: Likewise.
7793 * g-utf_32.adb: Likewise.
7794 * g-utf_32.ads: Likewise.
7795 * g-wistsp.ads: Likewise.
7796 * g-zstspl.ads: Likewise.
7798 * gnatvsn.adb: Likewise.
7799 * gnatvsn.ads: Likewise.
7800 * gsocket.h: Likewise.
7801 * hostparm.ads: Likewise.
7802 * i-c.adb: Likewise.
7803 * i-cexten.ads: Likewise.
7804 * i-cobol.adb: Likewise.
7805 * i-cobol.ads: Likewise.
7806 * i-cpoint.adb: Likewise.
7807 * i-cpoint.ads: Likewise.
7808 * i-cpp.adb: Likewise.
7809 * i-cpp.ads: Likewise.
7810 * i-cstrea-vms.adb: Likewise.
7811 * i-cstrea.adb: Likewise.
7812 * i-cstrea.ads: Likewise.
7813 * i-cstrin.adb: Likewise.
7814 * i-cstrin.ads: Likewise.
7815 * i-forbla-darwin.adb: Likewise.
7816 * i-forbla-unimplemented.ads: Likewise.
7817 * i-forbla.adb: Likewise.
7818 * i-forbla.ads: Likewise.
7819 * i-forlap.ads: Likewise.
7820 * i-fortra.adb: Likewise.
7821 * i-pacdec.adb: Likewise.
7822 * i-pacdec.ads: Likewise.
7823 * i-vxwoio.adb: Likewise.
7824 * i-vxwoio.ads: Likewise.
7825 * indepsw-aix.adb: Likewise.
7826 * indepsw-gnu.adb: Likewise.
7827 * indepsw-mingw.adb: Likewise.
7828 * indepsw.adb: Likewise.
7829 * indepsw.ads: Likewise.
7831 * initialize.c: Likewise.
7832 * interfac.ads: Likewise.
7833 * krunch.adb: Likewise.
7834 * krunch.ads: Likewise.
7835 * lib-list.adb: Likewise.
7836 * lib-sort.adb: Likewise.
7837 * lib.adb: Likewise.
7838 * lib.ads: Likewise.
7840 * math_lib.adb: Likewise.
7841 * memtrack.adb: Likewise.
7842 * mingw32.h: Likewise.
7843 * mkdir.c: Likewise.
7844 * namet-sp.adb: Likewise.
7845 * namet-sp.ads: Likewise.
7846 * namet.adb: Likewise.
7847 * namet.ads: Likewise.
7848 * nlists.adb: Likewise.
7849 * nlists.ads: Likewise.
7850 * opt.adb: Likewise.
7851 * opt.ads: Likewise.
7852 * output.adb: Likewise.
7853 * output.ads: Likewise.
7854 * raise-gcc.c: Likewise.
7855 * raise.c: Likewise.
7856 * raise.h: Likewise.
7857 * repinfo.adb: Likewise.
7858 * repinfo.ads: Likewise.
7859 * repinfo.h: Likewise.
7860 * rident.ads: Likewise.
7861 * s-addima.adb: Likewise.
7862 * s-addima.ads: Likewise.
7863 * s-addope.adb: Likewise.
7864 * s-addope.ads: Likewise.
7865 * s-arit64.adb: Likewise.
7866 * s-arit64.ads: Likewise.
7867 * s-assert.adb: Likewise.
7868 * s-assert.ads: Likewise.
7869 * s-asthan-vms-alpha.adb: Likewise.
7870 * s-asthan.adb: Likewise.
7871 * s-asthan.ads: Likewise.
7872 * s-atacco.adb: Likewise.
7873 * s-atacco.ads: Likewise.
7874 * s-auxdec-empty.adb: Likewise.
7875 * s-auxdec-empty.ads: Likewise.
7876 * s-auxdec-vms_64.ads: Likewise.
7877 * s-auxdec.adb: Likewise.
7878 * s-auxdec.ads: Likewise.
7879 * s-bitops.adb: Likewise.
7880 * s-bitops.ads: Likewise.
7881 * s-boarop.ads: Likewise.
7882 * s-carsi8.adb: Likewise.
7883 * s-carsi8.ads: Likewise.
7884 * s-carun8.adb: Likewise.
7885 * s-carun8.ads: Likewise.
7886 * s-casi16.adb: Likewise.
7887 * s-casi16.ads: Likewise.
7888 * s-casi32.adb: Likewise.
7889 * s-casi32.ads: Likewise.
7890 * s-casi64.adb: Likewise.
7891 * s-casi64.ads: Likewise.
7892 * s-casuti.ads: Likewise.
7893 * s-caun16.adb: Likewise.
7894 * s-caun16.ads: Likewise.
7895 * s-caun32.adb: Likewise.
7896 * s-caun32.ads: Likewise.
7897 * s-caun64.adb: Likewise.
7898 * s-caun64.ads: Likewise.
7899 * s-chepoo.ads: Likewise.
7900 * s-crc32.adb: Likewise.
7901 * s-crc32.ads: Likewise.
7902 * s-crtl.ads: Likewise.
7903 * s-direio.adb: Likewise.
7904 * s-direio.ads: Likewise.
7905 * s-dsaser.ads: Likewise.
7906 * s-except.adb: Likewise.
7907 * s-except.ads: Likewise.
7908 * s-exctab.adb: Likewise.
7909 * s-exctab.ads: Likewise.
7910 * s-exnint.adb: Likewise.
7911 * s-exnint.ads: Likewise.
7912 * s-exnllf.adb: Likewise.
7913 * s-exnllf.ads: Likewise.
7914 * s-exnlli.adb: Likewise.
7915 * s-exnlli.ads: Likewise.
7916 * s-expint.adb: Likewise.
7917 * s-expint.ads: Likewise.
7918 * s-explli.adb: Likewise.
7919 * s-explli.ads: Likewise.
7920 * s-expllu.adb: Likewise.
7921 * s-expllu.ads: Likewise.
7922 * s-expmod.adb: Likewise.
7923 * s-expmod.ads: Likewise.
7924 * s-expuns.adb: Likewise.
7925 * s-expuns.ads: Likewise.
7926 * s-fatflt.ads: Likewise.
7927 * s-fatgen.adb: Likewise.
7928 * s-fatgen.ads: Likewise.
7929 * s-fatlfl.ads: Likewise.
7930 * s-fatllf.ads: Likewise.
7931 * s-fatsfl.ads: Likewise.
7932 * s-ficobl.ads: Likewise.
7933 * s-fileio.adb: Likewise.
7934 * s-fileio.ads: Likewise.
7935 * s-filofl.ads: Likewise.
7936 * s-finimp.adb: Likewise.
7937 * s-finimp.ads: Likewise.
7938 * s-finroo.adb: Likewise.
7939 * s-finroo.ads: Likewise.
7940 * s-fishfl.ads: Likewise.
7941 * s-fore.adb: Likewise.
7942 * s-fore.ads: Likewise.
7943 * s-fvadfl.ads: Likewise.
7944 * s-fvaffl.ads: Likewise.
7945 * s-fvagfl.ads: Likewise.
7946 * s-gearop.adb: Likewise.
7947 * s-gearop.ads: Likewise.
7948 * s-gecobl.adb: Likewise.
7949 * s-gecobl.ads: Likewise.
7950 * s-gecola.adb: Likewise.
7951 * s-gecola.ads: Likewise.
7952 * s-gerebl.adb: Likewise.
7953 * s-gerebl.ads: Likewise.
7954 * s-gerela.adb: Likewise.
7955 * s-gerela.ads: Likewise.
7956 * s-geveop.adb: Likewise.
7957 * s-geveop.ads: Likewise.
7958 * s-gloloc.adb: Likewise.
7959 * s-gloloc.ads: Likewise.
7960 * s-hibaen.ads: Likewise.
7961 * s-imenne.adb: Likewise.
7962 * s-imenne.ads: Likewise.
7963 * s-imgbiu.adb: Likewise.
7964 * s-imgbiu.ads: Likewise.
7965 * s-imgboo.adb: Likewise.
7966 * s-imgboo.ads: Likewise.
7967 * s-imgcha.adb: Likewise.
7968 * s-imgcha.ads: Likewise.
7969 * s-imgdec.adb: Likewise.
7970 * s-imgdec.ads: Likewise.
7971 * s-imgenu.adb: Likewise.
7972 * s-imgenu.ads: Likewise.
7973 * s-imgint.adb: Likewise.
7974 * s-imgint.ads: Likewise.
7975 * s-imgllb.adb: Likewise.
7976 * s-imgllb.ads: Likewise.
7977 * s-imglld.adb: Likewise.
7978 * s-imglld.ads: Likewise.
7979 * s-imglli.adb: Likewise.
7980 * s-imglli.ads: Likewise.
7981 * s-imgllu.adb: Likewise.
7982 * s-imgllu.ads: Likewise.
7983 * s-imgllw.adb: Likewise.
7984 * s-imgllw.ads: Likewise.
7985 * s-imgrea.adb: Likewise.
7986 * s-imgrea.ads: Likewise.
7987 * s-imguns.adb: Likewise.
7988 * s-imguns.ads: Likewise.
7989 * s-imgwch.adb: Likewise.
7990 * s-imgwch.ads: Likewise.
7991 * s-imgwiu.adb: Likewise.
7992 * s-imgwiu.ads: Likewise.
7993 * s-inmaop-dummy.adb: Likewise.
7994 * s-inmaop-vms.adb: Likewise.
7995 * s-inmaop.ads: Likewise.
7996 * s-interr-hwint.adb: Likewise.
7997 * s-interr-sigaction.adb: Likewise.
7998 * s-interr-vms.adb: Likewise.
7999 * s-interr.adb: Likewise.
8000 * s-interr.ads: Likewise.
8001 * s-intman-dummy.adb: Likewise.
8002 * s-intman-mingw.adb: Likewise.
8003 * s-intman-posix.adb: Likewise.
8004 * s-intman-solaris.adb: Likewise.
8005 * s-intman-vms.adb: Likewise.
8006 * s-intman-vms.ads: Likewise.
8007 * s-intman-vxworks.adb: Likewise.
8008 * s-intman-vxworks.ads: Likewise.
8009 * s-intman.ads: Likewise.
8010 * s-io.adb: Likewise.
8011 * s-io.ads: Likewise.
8012 * s-linux-alpha.ads: Likewise.
8013 * s-linux-hppa.ads: Likewise.
8014 * s-linux.ads: Likewise.
8015 * s-maccod.ads: Likewise.
8016 * s-mantis.adb: Likewise.
8017 * s-mantis.ads: Likewise.
8018 * s-mastop-irix.adb: Likewise.
8019 * s-mastop.adb: Likewise.
8020 * s-mastop.ads: Likewise.
8021 * s-memcop.ads: Likewise.
8022 * s-memory-mingw.adb: Likewise.
8023 * s-memory.adb: Likewise.
8024 * s-memory.ads: Likewise.
8025 * s-os_lib.ads: Likewise.
8026 * s-oscons-tmplt.c: Likewise.
8027 * s-osinte-aix.adb: Likewise.
8028 * s-osinte-darwin.adb: Likewise.
8029 * s-osinte-freebsd.adb: Likewise.
8030 * s-osinte-irix.adb: Likewise.
8031 * s-osinte-lynxos-3.adb: Likewise.
8032 * s-osinte-rtems.ads: Likewise.
8033 * s-osinte-tru64.adb: Likewise.
8034 * s-osinte-vxworks-kernel.adb: Likewise.
8035 * s-osinte-vxworks.adb: Likewise.
8036 * s-osprim-mingw.adb: Likewise.
8037 * s-osprim-posix.adb: Likewise.
8038 * s-osprim-solaris.adb: Likewise.
8039 * s-osprim-unix.adb: Likewise.
8040 * s-osprim-vms.adb: Likewise.
8041 * s-osprim-vms.ads: Likewise.
8042 * s-osprim-vxworks.adb: Likewise.
8043 * s-osprim.ads: Likewise.
8044 * s-pack03.adb: Likewise.
8045 * s-pack03.ads: Likewise.
8046 * s-pack05.adb: Likewise.
8047 * s-pack05.ads: Likewise.
8048 * s-pack06.adb: Likewise.
8049 * s-pack06.ads: Likewise.
8050 * s-pack07.adb: Likewise.
8051 * s-pack07.ads: Likewise.
8052 * s-pack09.adb: Likewise.
8053 * s-pack09.ads: Likewise.
8054 * s-pack10.adb: Likewise.
8055 * s-pack10.ads: Likewise.
8056 * s-pack11.adb: Likewise.
8057 * s-pack11.ads: Likewise.
8058 * s-pack12.adb: Likewise.
8059 * s-pack12.ads: Likewise.
8060 * s-pack13.adb: Likewise.
8061 * s-pack13.ads: Likewise.
8062 * s-pack14.adb: Likewise.
8063 * s-pack14.ads: Likewise.
8064 * s-pack15.adb: Likewise.
8065 * s-pack15.ads: Likewise.
8066 * s-pack17.adb: Likewise.
8067 * s-pack17.ads: Likewise.
8068 * s-pack18.adb: Likewise.
8069 * s-pack18.ads: Likewise.
8070 * s-pack19.adb: Likewise.
8071 * s-pack19.ads: Likewise.
8072 * s-pack20.adb: Likewise.
8073 * s-pack20.ads: Likewise.
8074 * s-pack21.adb: Likewise.
8075 * s-pack21.ads: Likewise.
8076 * s-pack22.adb: Likewise.
8077 * s-pack22.ads: Likewise.
8078 * s-pack23.adb: Likewise.
8079 * s-pack23.ads: Likewise.
8080 * s-pack24.adb: Likewise.
8081 * s-pack24.ads: Likewise.
8082 * s-pack25.adb: Likewise.
8083 * s-pack25.ads: Likewise.
8084 * s-pack26.adb: Likewise.
8085 * s-pack26.ads: Likewise.
8086 * s-pack27.adb: Likewise.
8087 * s-pack27.ads: Likewise.
8088 * s-pack28.adb: Likewise.
8089 * s-pack28.ads: Likewise.
8090 * s-pack29.adb: Likewise.
8091 * s-pack29.ads: Likewise.
8092 * s-pack30.adb: Likewise.
8093 * s-pack30.ads: Likewise.
8094 * s-pack31.adb: Likewise.
8095 * s-pack31.ads: Likewise.
8096 * s-pack33.adb: Likewise.
8097 * s-pack33.ads: Likewise.
8098 * s-pack34.adb: Likewise.
8099 * s-pack34.ads: Likewise.
8100 * s-pack35.adb: Likewise.
8101 * s-pack35.ads: Likewise.
8102 * s-pack36.adb: Likewise.
8103 * s-pack36.ads: Likewise.
8104 * s-pack37.adb: Likewise.
8105 * s-pack37.ads: Likewise.
8106 * s-pack38.adb: Likewise.
8107 * s-pack38.ads: Likewise.
8108 * s-pack39.adb: Likewise.
8109 * s-pack39.ads: Likewise.
8110 * s-pack40.adb: Likewise.
8111 * s-pack40.ads: Likewise.
8112 * s-pack41.adb: Likewise.
8113 * s-pack41.ads: Likewise.
8114 * s-pack42.adb: Likewise.
8115 * s-pack42.ads: Likewise.
8116 * s-pack43.adb: Likewise.
8117 * s-pack43.ads: Likewise.
8118 * s-pack44.adb: Likewise.
8119 * s-pack44.ads: Likewise.
8120 * s-pack45.adb: Likewise.
8121 * s-pack45.ads: Likewise.
8122 * s-pack46.adb: Likewise.
8123 * s-pack46.ads: Likewise.
8124 * s-pack47.adb: Likewise.
8125 * s-pack47.ads: Likewise.
8126 * s-pack48.adb: Likewise.
8127 * s-pack48.ads: Likewise.
8128 * s-pack49.adb: Likewise.
8129 * s-pack49.ads: Likewise.
8130 * s-pack50.adb: Likewise.
8131 * s-pack50.ads: Likewise.
8132 * s-pack51.adb: Likewise.
8133 * s-pack51.ads: Likewise.
8134 * s-pack52.adb: Likewise.
8135 * s-pack52.ads: Likewise.
8136 * s-pack53.adb: Likewise.
8137 * s-pack53.ads: Likewise.
8138 * s-pack54.adb: Likewise.
8139 * s-pack54.ads: Likewise.
8140 * s-pack55.adb: Likewise.
8141 * s-pack55.ads: Likewise.
8142 * s-pack56.adb: Likewise.
8143 * s-pack56.ads: Likewise.
8144 * s-pack57.adb: Likewise.
8145 * s-pack57.ads: Likewise.
8146 * s-pack58.adb: Likewise.
8147 * s-pack58.ads: Likewise.
8148 * s-pack59.adb: Likewise.
8149 * s-pack59.ads: Likewise.
8150 * s-pack60.adb: Likewise.
8151 * s-pack60.ads: Likewise.
8152 * s-pack61.adb: Likewise.
8153 * s-pack61.ads: Likewise.
8154 * s-pack62.adb: Likewise.
8155 * s-pack62.ads: Likewise.
8156 * s-pack63.adb: Likewise.
8157 * s-pack63.ads: Likewise.
8158 * s-parame-ae653.ads: Likewise.
8159 * s-parame-hpux.ads: Likewise.
8160 * s-parame-rtems.adb: Likewise.
8161 * s-parame-vms-alpha.ads: Likewise.
8162 * s-parame-vms-ia64.ads: Likewise.
8163 * s-parame-vms-restrict.ads: Likewise.
8164 * s-parame-vxworks.adb: Likewise.
8165 * s-parame-vxworks.ads: Likewise.
8166 * s-parame.adb: Likewise.
8167 * s-parame.ads: Likewise.
8168 * s-parint.adb: Likewise.
8169 * s-parint.ads: Likewise.
8170 * s-pooglo.adb: Likewise.
8171 * s-pooglo.ads: Likewise.
8172 * s-pooloc.adb: Likewise.
8173 * s-pooloc.ads: Likewise.
8174 * s-poosiz.adb: Likewise.
8175 * s-poosiz.ads: Likewise.
8176 * s-powtab.ads: Likewise.
8177 * s-proinf-irix-athread.adb: Likewise.
8178 * s-proinf-irix-athread.ads: Likewise.
8179 * s-proinf.adb: Likewise.
8180 * s-proinf.ads: Likewise.
8181 * s-purexc.ads: Likewise.
8182 * s-rannum.adb: Likewise.
8183 * s-rannum.ads: Likewise.
8184 * s-restri.adb: Likewise.
8185 * s-restri.ads: Likewise.
8186 * s-rident.ads: Likewise.
8187 * s-rpc.adb: Likewise.
8188 * s-rpc.ads: Likewise.
8189 * s-scaval.adb: Likewise.
8190 * s-scaval.ads: Likewise.
8191 * s-secsta.adb: Likewise.
8192 * s-secsta.ads: Likewise.
8193 * s-sequio.adb: Likewise.
8194 * s-sequio.ads: Likewise.
8195 * s-shasto.adb: Likewise.
8196 * s-shasto.ads: Likewise.
8197 * s-soflin.adb: Likewise.
8198 * s-soflin.ads: Likewise.
8199 * s-solita.adb: Likewise.
8200 * s-solita.ads: Likewise.
8201 * s-sopco3.adb: Likewise.
8202 * s-sopco3.ads: Likewise.
8203 * s-sopco4.adb: Likewise.
8204 * s-sopco4.ads: Likewise.
8205 * s-sopco5.adb: Likewise.
8206 * s-sopco5.ads: Likewise.
8207 * s-stache.adb: Likewise.
8208 * s-stache.ads: Likewise.
8209 * s-stalib.adb: Likewise.
8210 * s-stalib.ads: Likewise.
8211 * s-stausa.adb: Likewise.
8212 * s-stausa.ads: Likewise.
8213 * s-stchop-limit.ads: Likewise.
8214 * s-stchop-rtems.adb: Likewise.
8215 * s-stchop-vxworks.adb: Likewise.
8216 * s-stchop.adb: Likewise.
8217 * s-stchop.ads: Likewise.
8218 * s-stoele.adb: Likewise.
8219 * s-stoele.ads: Likewise.
8220 * s-stopoo.adb: Likewise.
8221 * s-stopoo.ads: Likewise.
8222 * s-stratt.adb: Likewise.
8223 * s-stratt.ads: Likewise.
8224 * s-strcom.adb: Likewise.
8225 * s-strcom.ads: Likewise.
8226 * s-string.adb: Likewise.
8227 * s-string.ads: Likewise.
8228 * s-strops.adb: Likewise.
8229 * s-strops.ads: Likewise.
8230 * s-strxdr.adb: Likewise.
8231 * s-ststop.adb: Likewise.
8232 * s-ststop.ads: Likewise.
8233 * s-taasde.adb: Likewise.
8234 * s-taasde.ads: Likewise.
8235 * s-tadeca.adb: Likewise.
8236 * s-tadeca.ads: Likewise.
8237 * s-tadert.adb: Likewise.
8238 * s-tadert.ads: Likewise.
8239 * s-taenca.adb: Likewise.
8240 * s-taenca.ads: Likewise.
8241 * s-taprob.ads: Likewise.
8242 * s-taprop-dummy.adb: Likewise.
8243 * s-taprop-hpux-dce.adb: Likewise.
8244 * s-taprop-irix.adb: Likewise.
8245 * s-taprop-linux.adb: Likewise.
8246 * s-taprop-lynxos.adb: Likewise.
8247 * s-taprop-mingw.adb: Likewise.
8248 * s-taprop-posix.adb: Likewise.
8249 * s-taprop-solaris.adb: Likewise.
8250 * s-taprop-tru64.adb: Likewise.
8251 * s-taprop-vms.adb: Likewise.
8252 * s-taprop-vxworks.adb: Likewise.
8253 * s-taprop.ads: Likewise.
8254 * s-tarest.adb: Likewise.
8255 * s-tarest.ads: Likewise.
8256 * s-tasdeb.adb: Likewise.
8257 * s-tasdeb.ads: Likewise.
8258 * s-tasinf-irix.ads: Likewise.
8259 * s-tasinf-linux.adb: Likewise.
8260 * s-tasinf-linux.ads: Likewise.
8261 * s-tasinf-mingw.adb: Likewise.
8262 * s-tasinf-mingw.ads: Likewise.
8263 * s-tasinf-solaris.adb: Likewise.
8264 * s-tasinf-solaris.ads: Likewise.
8265 * s-tasinf-tru64.ads: Likewise.
8266 * s-tasinf.adb: Likewise.
8267 * s-tasinf.ads: Likewise.
8268 * s-tasini.adb: Likewise.
8269 * s-tasini.ads: Likewise.
8270 * s-taskin.adb: Likewise.
8271 * s-taskin.ads: Likewise.
8272 * s-taspri-dummy.ads: Likewise.
8273 * s-taspri-hpux-dce.ads: Likewise.
8274 * s-taspri-mingw.ads: Likewise.
8275 * s-taspri-solaris.ads: Likewise.
8276 * s-taspri-tru64.ads: Likewise.
8277 * s-taspri-vms.ads: Likewise.
8278 * s-taspri-vxworks.ads: Likewise.
8279 * s-tasque.adb: Likewise.
8280 * s-tasque.ads: Likewise.
8281 * s-tasren.adb: Likewise.
8282 * s-tasren.ads: Likewise.
8283 * s-tasres.ads: Likewise.
8284 * s-tassta.adb: Likewise.
8285 * s-tassta.ads: Likewise.
8286 * s-tasuti.adb: Likewise.
8287 * s-tasuti.ads: Likewise.
8288 * s-tfsetr-default.adb: Likewise.
8289 * s-tfsetr-vxworks.adb: Likewise.
8290 * s-tpinop.adb: Likewise.
8291 * s-tpinop.ads: Likewise.
8292 * s-tpoben.adb: Likewise.
8293 * s-tpoben.ads: Likewise.
8294 * s-tpobop.adb: Likewise.
8295 * s-tpobop.ads: Likewise.
8296 * s-tpopde-vms.adb: Likewise.
8297 * s-tpopde-vms.ads: Likewise.
8298 * s-tpopsp-lynxos.adb: Likewise.
8299 * s-tpopsp-posix-foreign.adb: Likewise.
8300 * s-tpopsp-posix.adb: Likewise.
8301 * s-tpopsp-solaris.adb: Likewise.
8302 * s-tpopsp-vxworks.adb: Likewise.
8303 * s-tporft.adb: Likewise.
8304 * s-tposen.adb: Likewise.
8305 * s-tposen.ads: Likewise.
8306 * s-traceb.adb: Likewise.
8307 * s-traceb.ads: Likewise.
8308 * s-traces-default.adb: Likewise.
8309 * s-traces.adb: Likewise.
8310 * s-traces.ads: Likewise.
8311 * s-traent-vms.adb: Likewise.
8312 * s-traent-vms.ads: Likewise.
8313 * s-traent.adb: Likewise.
8314 * s-traent.ads: Likewise.
8315 * s-trafor-default.adb: Likewise.
8316 * s-trafor-default.ads: Likewise.
8317 * s-tratas-default.adb: Likewise.
8318 * s-tratas.adb: Likewise.
8319 * s-tratas.ads: Likewise.
8320 * s-unstyp.ads: Likewise.
8321 * s-utf_32.adb: Likewise.
8322 * s-utf_32.ads: Likewise.
8323 * s-vaflop-vms-alpha.adb: Likewise.
8324 * s-vaflop.adb: Likewise.
8325 * s-vaflop.ads: Likewise.
8326 * s-valboo.adb: Likewise.
8327 * s-valboo.ads: Likewise.
8328 * s-valcha.adb: Likewise.
8329 * s-valcha.ads: Likewise.
8330 * s-valdec.adb: Likewise.
8331 * s-valdec.ads: Likewise.
8332 * s-valenu.adb: Likewise.
8333 * s-valenu.ads: Likewise.
8334 * s-valint.adb: Likewise.
8335 * s-valint.ads: Likewise.
8336 * s-vallld.adb: Likewise.
8337 * s-vallld.ads: Likewise.
8338 * s-vallli.adb: Likewise.
8339 * s-vallli.ads: Likewise.
8340 * s-valllu.adb: Likewise.
8341 * s-valllu.ads: Likewise.
8342 * s-valrea.adb: Likewise.
8343 * s-valrea.ads: Likewise.
8344 * s-valuns.adb: Likewise.
8345 * s-valuns.ads: Likewise.
8346 * s-valuti.adb: Likewise.
8347 * s-valuti.ads: Likewise.
8348 * s-valwch.adb: Likewise.
8349 * s-valwch.ads: Likewise.
8350 * s-veboop.adb: Likewise.
8351 * s-veboop.ads: Likewise.
8352 * s-vector.ads: Likewise.
8353 * s-vercon.adb: Likewise.
8354 * s-vercon.ads: Likewise.
8355 * s-vmexta.adb: Likewise.
8356 * s-vmexta.ads: Likewise.
8357 * s-vxwext-kernel.ads: Likewise.
8358 * s-vxwext-rtp.adb: Likewise.
8359 * s-vxwext-rtp.ads: Likewise.
8360 * s-vxwext.ads: Likewise.
8361 * s-vxwork-arm.ads: Likewise.
8362 * s-vxwork-m68k.ads: Likewise.
8363 * s-vxwork-mips.ads: Likewise.
8364 * s-vxwork-ppc.ads: Likewise.
8365 * s-vxwork-sparcv9.ads: Likewise.
8366 * s-vxwork-x86.ads: Likewise.
8367 * s-wchcnv.adb: Likewise.
8368 * s-wchcnv.ads: Likewise.
8369 * s-wchcon.adb: Likewise.
8370 * s-wchcon.ads: Likewise.
8371 * s-wchjis.adb: Likewise.
8372 * s-wchjis.ads: Likewise.
8373 * s-wchstw.adb: Likewise.
8374 * s-wchstw.ads: Likewise.
8375 * s-wchwts.adb: Likewise.
8376 * s-wchwts.ads: Likewise.
8377 * s-widboo.adb: Likewise.
8378 * s-widboo.ads: Likewise.
8379 * s-widcha.adb: Likewise.
8380 * s-widcha.ads: Likewise.
8381 * s-widenu.adb: Likewise.
8382 * s-widenu.ads: Likewise.
8383 * s-widlli.adb: Likewise.
8384 * s-widlli.ads: Likewise.
8385 * s-widllu.adb: Likewise.
8386 * s-widllu.ads: Likewise.
8387 * s-widwch.adb: Likewise.
8388 * s-widwch.ads: Likewise.
8389 * s-win32.ads: Likewise.
8390 * s-winext.ads: Likewise.
8391 * s-wwdcha.adb: Likewise.
8392 * s-wwdcha.ads: Likewise.
8393 * s-wwdenu.adb: Likewise.
8394 * s-wwdenu.ads: Likewise.
8395 * s-wwdwch.adb: Likewise.
8396 * s-wwdwch.ads: Likewise.
8397 * scans.adb: Likewise.
8398 * scans.ads: Likewise.
8399 * seh_init.c: Likewise.
8400 * sfn_scan.adb: Likewise.
8401 * sinfo.adb: Likewise.
8402 * sinfo.ads: Likewise.
8403 * sinput.adb: Likewise.
8404 * sinput.ads: Likewise.
8405 * snames.adb: Likewise.
8406 * snames.ads: Likewise.
8407 * socket.c: Likewise.
8408 * stand.adb: Likewise.
8409 * stand.ads: Likewise.
8410 * stringt.adb: Likewise.
8411 * stringt.ads: Likewise.
8412 * sysdep.c: Likewise.
8413 * system-aix.ads: Likewise.
8414 * system-darwin-ppc.ads: Likewise.
8415 * system-darwin-x86.ads: Likewise.
8416 * system-darwin-x86_64.ads: Likewise.
8417 * system-freebsd-x86.ads: Likewise.
8418 * system-hpux-ia64.ads: Likewise.
8419 * system-hpux.ads: Likewise.
8420 * system-irix-n32.ads: Likewise.
8421 * system-irix-n64.ads: Likewise.
8422 * system-irix-o32.ads: Likewise.
8423 * system-linux-alpha.ads: Likewise.
8424 * system-linux-hppa.ads: Likewise.
8425 * system-linux-ia64.ads: Likewise.
8426 * system-linux-mips.ads: Likewise.
8427 * system-linux-mipsel.ads: Likewise.
8428 * system-linux-ppc.ads: Likewise.
8429 * system-linux-ppc64.ads: Likewise.
8430 * system-linux-s390.ads: Likewise.
8431 * system-linux-s390x.ads: Likewise.
8432 * system-linux-sh4.ads: Likewise.
8433 * system-linux-sparc.ads: Likewise.
8434 * system-linux-sparcv9.ads: Likewise.
8435 * system-linux-x86.ads: Likewise.
8436 * system-linux-x86_64.ads: Likewise.
8437 * system-lynxos-ppc.ads: Likewise.
8438 * system-lynxos-x86.ads: Likewise.
8439 * system-mingw-x86_64.ads: Likewise.
8440 * system-mingw.ads: Likewise.
8441 * system-rtems.ads: Likewise.
8442 * system-solaris-sparc.ads: Likewise.
8443 * system-solaris-sparcv9.ads: Likewise.
8444 * system-solaris-x86.ads: Likewise.
8445 * system-solaris-x86_64.ads: Likewise.
8446 * system-tru64.ads: Likewise.
8447 * system-vms-ia64.ads: Likewise.
8448 * system-vms-zcx.ads: Likewise.
8449 * system-vms.ads: Likewise.
8450 * system-vms_64.ads: Likewise.
8451 * system-vxworks-arm.ads: Likewise.
8452 * system-vxworks-m68k.ads: Likewise.
8453 * system-vxworks-mips.ads: Likewise.
8454 * system-vxworks-ppc.ads: Likewise.
8455 * system-vxworks-sparcv9.ads: Likewise.
8456 * system-vxworks-x86.ads: Likewise.
8457 * system.ads: Likewise.
8458 * table.adb: Likewise.
8459 * table.ads: Likewise.
8460 * targext.c: Likewise.
8461 * targparm.ads: Likewise.
8462 * tree_in.adb: Likewise.
8463 * tree_in.ads: Likewise.
8464 * tree_io.adb: Likewise.
8465 * tree_io.ads: Likewise.
8466 * types.adb: Likewise.
8467 * types.ads: Likewise.
8468 * uintp.adb: Likewise.
8469 * uintp.ads: Likewise.
8470 * uname.adb: Likewise.
8471 * uname.ads: Likewise.
8472 * urealp.adb: Likewise.
8473 * urealp.ads: Likewise.
8474 * vx_stack_info.c: Likewise.
8475 * widechar.adb: Likewise.
8476 * widechar.ads: Likewise.
8477 * exp_attr.adb: Change copyright header to refer to version
8478 3 of the GNU General Public License and to point readers at the
8479 COPYING3 file and the FSF's license web page.
8480 * sem.adb: Likewise.
8481 * sem_attr.ads: Likewise.
8482 * freeze.adb: Likewise.
8483 * freeze.ads: Likewise.
8484 * errout.ads: Likewise.
8485 * erroutc.adb: Likewise.
8486 * exp_ch11.ads: Likewise.
8488 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8490 * config-lang.in: Change copyright header to refer to version
8491 3 of the GNU General Public License and to point readers at the
8492 COPYING3 file and the FSF's license web page.
8493 * gcc-interface/trans.c: Likewise.
8494 * gnathtml.pl: Likewise.
8495 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8496 * gcc-interface/gigi.h: Likewise.
8497 * gcc-interface/misc.c: Likewise.
8498 * gcc-interface/targtyps.c: Likewise.
8500 2009-04-09 Nicolas Setton <setton@adacore.com>
8502 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8504 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8507 2009-04-09 Bob Duff <duff@adacore.com>
8509 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8510 internally-generated nodes related to select statements to avoid
8511 confusing the debugger.
8513 2009-04-09 Pascal Obry <obry@adacore.com>
8515 * make.adb: Ensure that all linker arguments are duplicated.
8517 2009-04-09 Robert Dewar <dewar@adacore.com>
8519 * sem_ch5.adb: Minor reformatting
8521 2009-04-09 Vincent Celier <celier@adacore.com>
8524 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8525 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8526 New qualifier /LXDEBUG=nnn for -gnatDnnn
8530 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8533 2009-04-09 Nicolas Setton <setton@adacore.com>
8535 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8536 to match layout of siginfo_t in sys/signal.h.
8538 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8540 2009-04-09 Thomas Quinot <quinot@adacore.com>
8542 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8544 2009-04-09 Nicolas Setton <setton@adacore.com>
8546 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8547 Add generation of Darwin-specific constants needed when binding to the
8550 2009-04-09 Robert Dewar <dewar@adacore.com>
8553 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8554 when no invalid values exist, Avoid duplicate read of atomic variable.
8556 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8557 (Standard_Unsigned): Set Is_Known_Valid
8559 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8560 subtype declaration if no constraint.
8561 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8562 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8564 2009-04-09 Robert Dewar <dewar@adacore.com>
8566 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8567 switch.ads: for numeric switches, an optional equal sign is always
8570 2009-04-09 Vincent Celier <celier@adacore.com>
8572 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8573 the case of file names is not significant.
8575 2009-04-09 Vincent Celier <celier@adacore.com>
8577 * errout.adb: Remove dependency on package Style
8579 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8582 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8585 * errutil.adb, par.adb: Import Stylesw
8587 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8589 * opt.ads: Fix typos.
8591 2009-04-09 Robert Dewar <dewar@adacore.com>
8593 * einfo.adb: Minor reformatting
8595 2009-04-09 Robert Dewar <dewar@adacore.com>
8597 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8600 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8602 2009-04-09 Robert Dewar <dewar@adacore.com>
8604 * g-comver.adb: Minor reformatting.
8606 2009-04-09 Thomas Quinot <quinot@adacore.com>
8608 * lib-load.ads (Load_Unit): Update documentation.
8610 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8612 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8613 named in a with_clause, retain the with_clause to preserve a
8614 limited_with indication.
8616 2009-04-09 Robert Dewar <dewar@adacore.com>
8618 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8619 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8620 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8621 possible to replace an OR of two separate tests.
8623 2009-04-09 Robert Dewar <dewar@adacore.com>
8625 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8628 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8629 warning status as well.
8631 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8633 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8636 * bindusg.adb, usage.adb: Update line for -gnatm switch
8638 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8641 2009-04-09 Robert Dewar <dewar@adacore.com>
8643 * sem_ch10.adb: Minor reformatting.
8645 2009-04-09 Bob Duff <duff@adacore.com>
8647 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8648 Set Sloc of generated nodes for calls to Undefer_Aborts and
8649 Save_Occurrence to No_Location, so the debugger ignores them and
8650 therefore does not jump back and forth when single stepping.
8652 2009-04-09 Robert Dewar <dewar@adacore.com>
8654 * switch-b.adb: Minor reformatting.
8656 2009-04-09 Robert Dewar <dewar@adacore.com>
8658 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8659 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8660 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8661 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8662 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8663 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8664 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8665 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8666 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8667 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8668 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8670 2009-04-09 Robert Dewar <dewar@adacore.com>
8672 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8674 * atree.h: Add Elist26
8676 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8679 2009-04-09 Javier Miranda <miranda@adacore.com>
8681 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8682 retrieve from the Dispatch_Table_Wrappers list the external name.
8683 Addition of documentation.
8684 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8685 used to export secondary dispatch tables (in the previous version of
8686 the frontend only primary dispatch tables were exported). Addition of
8688 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8689 dispatch table of a given tagged type.
8690 (Make_Tags): Modified to import secondary dispatch tables.
8692 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8693 (Constant_Redeclaration): Code cleanup.
8695 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8696 Dispatch_Table_Wrappers. Update documentation.
8698 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8699 Renamed to Dispatch_Table_Wrappers.
8701 * sem_util.adb (Collect_Interface_Components): Improve handling of
8704 * atree.ads (Elist26, Set_Elist26): New subprograms
8706 * atree.adb (Elist26, Set_Elist26): New subprograms
8708 2009-04-09 Javier Miranda <miranda@adacore.com>
8710 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8711 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8714 2009-04-09 Robert Dewar <dewar@adacore.com>
8716 * s-direio.adb: Minor reformatting
8718 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8720 2009-04-09 Robert Dewar <dewar@adacore.com>
8722 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8724 2009-04-09 Pascal Obry <obry@adacore.com>
8726 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8727 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8728 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8729 a-filico.ads: Add some missing overriding keywords.
8731 2009-04-09 Pascal Obry <obry@adacore.com>
8733 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8734 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8735 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8738 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8740 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8741 missing overriding indicator if the new declaration is not seen as
8744 2009-04-09 Thomas Quinot <quinot@adacore.com>
8746 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8747 overflows in computation of bounds.
8749 2009-04-09 Pascal Obry <obry@adacore.com>
8751 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8754 2009-04-09 Robert Dewar <dewar@adacore.com>
8756 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8757 restriction No_Streams
8759 * gnat_rm.texi: Clarify No_Streams restriction
8761 * g-socket.adb: Minor reformatting.
8763 2009-04-09 Thomas Quinot <quinot@adacore.com>
8765 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8767 2009-04-09 Geert Bosch <bosch@adacore.com>
8769 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8770 (Set_Result): Likewise.
8771 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8772 conversion, as required by RM 4.6(31).
8774 2009-04-08 Robert Dewar <dewar@adacore.com>
8776 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8779 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8782 2009-04-08 Robert Dewar <dewar@adacore.com>
8784 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8785 No_Local_Allocators restriction preventing local instantiation.
8787 2009-04-08 Thomas Quinot <quinot@adacore.com>
8789 * sem_eval.adb: Minor comment fix
8791 2009-04-08 Thomas Quinot <quinot@adacore.com>
8793 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8794 New limited controlled type used to automate the initialization and
8795 finalization of the sockets implementation.
8796 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8798 2009-04-08 Vincent Celier <celier@adacore.com>
8800 * prj-attr.adb: New read-only project-level attribute Project_Dir
8802 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8803 read-only attribute of the same name.
8804 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8805 (Recursive_Process): Ditto
8807 * snames.adb: Add new standard name Project_Dir
8809 * snames.ads: Add new standard name Project_Dir
8811 2009-04-08 Thomas Quinot <quinot@adacore.com>
8813 * checks.adb: Minor reformatting
8815 2009-04-08 Vincent Celier <celier@adacore.com>
8817 * vms_data.ads: Add documentation for new style keyword
8818 OVERRIDING_INDICATORS
8820 2009-04-08 Robert Dewar <dewar@adacore.com>
8822 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8823 spec is in the current unit.
8825 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8827 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8830 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8832 2009-04-08 Vincent Celier <celier@adacore.com>
8834 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8836 2009-04-08 Thomas Quinot <quinot@adacore.com>
8838 * checks.ads: Minor reformatting
8840 2009-04-08 Robert Dewar <dewar@adacore.com>
8842 * gnat_rm.texi: Update documentation of pragma Obsolescent
8844 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8845 be omitted, and allow Entity parameter to be omitted.
8847 2009-04-08 Thomas Quinot <quinot@adacore.com>
8849 * exp_util.adb: Minor comment fix
8851 2009-04-08 Robert Dewar <dewar@adacore.com>
8853 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8855 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8856 argument with no identifier following one that has an identifier. Was
8857 missed in some cases.
8859 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8861 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8863 * snames.adb: Add Name_Policy
8865 * snames.ads: Add Name_Policy
8867 2009-04-08 Robert Dewar <dewar@adacore.com>
8869 * gnat_rm.texi: Minor reformatting
8871 * par-ch2.adb: Minor reformatting
8873 2009-04-08 Robert Dewar <dewar@adacore.com>
8875 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8877 2009-04-08 Robert Dewar <dewar@adacore.com>
8879 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8880 properly in the presence of Remote_Types or Remote_Call_Interface.
8882 * sem_util.adb: Add comment.
8884 2009-04-08 Robert Dewar <dewar@adacore.com>
8886 * ug_words: Add /ASSUME_VALID for -gnatB
8888 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8890 * sem_cat.adb: Add clarifying commment
8892 * a-direio.ads (Bytes): Make sure value is non-zero
8894 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8896 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8897 that does not come from source, check for a rewritten function call in
8898 prefixed notation before other forms of rewriting.
8900 2009-04-08 Robert Dewar <dewar@adacore.com>
8902 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8903 these are now obsolescent units used only for bootrapping with an
8906 2009-04-08 Robert Dewar <dewar@adacore.com>
8908 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8910 * sem_ch3.adb: Minor comment updates
8912 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8914 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8915 that come from source.
8917 2009-04-08 Tristan Gingold <gingold@adacore.com>
8919 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
8920 * gcc-interface/decl.c (prepend_attributes): New case
8921 Pragma_Thread_Local_Storage.
8922 * gcc-interface/utils.c (process_attributes): New case
8923 ATTR_THREAD_LOCAL_STORAGE.
8925 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8927 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
8928 by the back-end if it contains a call to a subprogram without a
8929 previous spec that is declared in the same unit.
8931 * errout.ads: Update comments on uses of dirs
8933 2009-04-08 Robert Dewar <dewar@adacore.com>
8935 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
8937 2009-04-08 Tristan Gingold <gingold@adacore.com>
8939 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
8941 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
8943 2009-04-08 Vincent Celier <celier@adacore.com>
8946 (Add_Source): Add the mapping of the unit name to source file name in
8947 the Unit_Sources_HT hash table, if the unit name is not null.
8949 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
8951 * prj.ads (Unit_Sources_Htable): New hash table instantiation
8952 (Project_Tree_Data): New component Unit_Sources_HT
8954 2009-04-08 Thomas Quinot <quinot@adacore.com>
8956 * sem_ch8.adb: Minor reformatting.
8957 Minor code reorganization.
8959 2009-04-08 Robert Dewar <dewar@adacore.com>
8961 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
8962 snames.ads, freeze.adb, par-prag.adb: Add implementation of
8963 pragma Thread_Local_Storage, setting new flag
8964 Has_Pragma_Thread_Local_Storage in corresponding entities.
8966 2009-04-08 Emmanuel Briot <briot@adacore.com>
8968 * prj.ads: Update comment on switches file
8970 * prj-nmsc.adb: Code clean up. Use renaming clauses.
8972 2009-04-08 Robert Dewar <dewar@adacore.com>
8974 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
8976 2009-04-08 Thomas Quinot <quinot@adacore.com>
8978 * ali-util.adb: Minor comment fix
8980 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8982 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
8983 appears in a context clause, and the enclosing package is mentioned in
8984 a limited_with_clause.
8985 (Use_One_Type): Reject clause if type is still incomplete.
8987 2009-04-08 Emmanuel Briot <briot@adacore.com>
8989 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
8990 avoid copies of Source_Data variables when possible, since these
8991 involve calls to memcpy() which are done too many times.
8993 2009-04-08 Robert Dewar <dewar@adacore.com>
8995 * exp_ch4.adb (Expand_Concatenate): Clean up code
8997 2009-04-07 Thomas Quinot <quinot@adacore.com>
8999 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9000 type for the case of concatenating a constrained array indexed by an
9003 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9005 * sem_ch6.adb (Check_Conformance): when checking conformance of an
9006 operation that overrides an abstract operation inherited from an
9007 interface, return False if only one of the controlling formals is an
9010 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9012 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9013 mandated by AI05-105.
9015 2009-04-07 Vincent Celier <celier@adacore.com>
9017 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
9019 2009-04-07 Thomas Quinot <quinot@adacore.com>
9021 * usage.adb: Minor fix in usage message.
9023 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
9024 match declaration; the correct subtype is Node_Id, not Entity_Id,
9025 because the expected node kind is an identifier, not a defining
9028 * switch-c.adb: Minor reformatting.
9030 * uintp.adb: Minor reformatting.
9032 2009-04-07 Robert Dewar <dewar@adacore.com>
9034 * exp_ch13.adb: Minor reformatting
9036 2009-04-07 Robert Dewar <dewar@adacore.com>
9038 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9039 against missing parent.
9041 2009-04-07 Thomas Quinot <quinot@adacore.com>
9043 * xoscons.adb: Minor reformatting
9045 2009-04-07 Robert Dewar <dewar@adacore.com>
9047 * rtsfind.ads: Remove obsolete string concatenation entries
9049 2009-04-07 Robert Dewar <dewar@adacore.com>
9051 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9053 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9055 * sem_ch10.adb (Check_Body_Required): Handle properly imported
9058 2009-04-07 Gary Dismukes <dismukes@adacore.com>
9060 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9061 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9062 is of a scalar or string type then suppress the setting of the
9063 expression to Empty.
9065 * freeze.adb (Warn_Overlay): Also emit the warnings about default
9066 initialization for the cases of scalar and string objects when
9067 Init_Or_Norm_Scalars is True.
9069 2009-04-07 Bob Duff <duff@adacore.com>
9071 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9073 2009-04-07 Bob Duff <duff@adacore.com>
9075 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9076 Form parameter of Text_Translation=No allows binary mode for Text_IO
9079 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9081 2009-04-07 Javier Miranda <miranda@adacore.com>
9083 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9084 processing the bounds for bit packed arrays or VM target machines.
9086 2009-04-07 Thomas Quinot <quinot@adacore.com>
9088 * g-sothco.ads (Int_Access): Remove extraneous access type (use
9089 anonymous access instead).
9090 (Get_Socket_From_Set): Fix incorrectly reverted formals
9091 Last and Socket to match the underlying C routine.
9093 * g-socket.adb, g-socket.ads
9094 (Get): Use named parameter associations instead of positional ones in
9095 call go Get_Socket_From_Set, since this routine has two formals of the
9097 (Image): New procedure.
9099 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9100 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9101 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9102 for type of Arg formal.
9104 * sem_warn.adb: Minor reformatting
9106 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9108 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9109 over record components.
9111 2009-04-07 Nicolas Roche <roche@adacore.com>
9114 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9115 has disappeared between VxWorks 6.4 and VxWorks 6.5
9116 In RTP mode use time.h instead of times.h
9118 2009-04-07 Robert Dewar <dewar@adacore.com>
9120 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9122 2009-04-07 Kevin Pouget <pouget@adacore.com>
9124 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9125 expanded code for constrained types.
9127 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9129 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9130 AI05-105: in an object renaming declaration, anonymousness is a name
9133 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9135 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9137 * g-comlin.adb (Expansion): Fix old regression: also return directory
9138 names when matching.
9140 2009-04-07 Robert Dewar <dewar@adacore.com>
9143 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9144 (Expand_Concatenate): New name for Expand_Concatenate_String which has
9145 been rewritten to handle all types.
9146 (Expand_Concatenate_Other): Remove
9148 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9150 * lib-xref.adb (Generate_Reference): A default subprogram in an
9151 instance appears within the tree for the instance, but generates an
9152 implicit reference in the ALI.
9154 2009-04-07 Javier Miranda <miranda@adacore.com>
9156 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9157 derived type that has discriminants, propagate the list of interfaces
9158 to the corresponding new base type. In addition, propagate also
9159 attribute Limited_Present (found working in this patch).
9161 2009-04-07 Robert Dewar <dewar@adacore.com>
9163 * exp_ch4.adb: Rewrite concatenation expansion.
9165 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9167 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9168 relevant to packages.
9170 2009-04-07 Robert Dewar <dewar@adacore.com>
9172 * sem_attr.adb: Minor reformatting
9174 * sem_ch6.adb: Minor reformatting
9176 2009-04-07 Tristan Gingold <gingold@adacore.com>
9178 * socket.c: Add more protections against S_resolvLib_ macros.
9180 2009-04-07 Thomas Quinot <quinot@adacore.com>
9182 * sem_attr.adb: Minor reformatting
9184 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9186 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9187 Is_Overriding_Alias to handle properly types that inherit two homonym
9188 operations that have distinct dispatch table entries.
9190 2009-04-07 Emmanuel Briot <briot@adacore.com>
9192 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9193 looking for the end of a parenthesis group
9195 2009-04-07 Tristan Gingold <gingold@adacore.com>
9197 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9199 * socket.c Don't use resolvLib_ macros if not defined.
9201 2009-04-07 Robert Dewar <dewar@adacore.com>
9203 * g-socket.adb: Minor reformatting.
9205 * g-socthi-mingw.adb: Minor reformatting
9207 * g-sothco.ads: Minor reformatting
9210 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9211 inline instead of relying on external library routines.
9213 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9214 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9217 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9220 (Eval_Attribute): for attributes of array objects that are not strings,
9221 attributes are not static if nominal subtype of object is unconstrained.
9223 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9225 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9226 operations for a type T in an instance do not override each other,
9227 when T is derived from a formal private type, the corresponding
9228 operations inherited by a type derived from T outside
9229 of the instance do not override each other either.
9231 2009-04-07 Robert Dewar <dewar@adacore.com>
9233 (Osint.Fail): Change calling sequence to have one string arg
9234 (Make.Make_Failed): Same change
9235 All callers are adjusted to use concatenation
9237 2009-04-07 Robert Dewar <dewar@adacore.com>
9239 * exp_ch4.adb: Fix documentation typo
9241 2009-04-07 Robert Dewar <dewar@adacore.com>
9243 * tbuild.ads: Minor reformatting
9245 2009-04-07 Javier Miranda <miranda@adacore.com>
9247 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9248 when compiling under ZFP runtime.
9250 2009-04-07 Robert Dewar <dewar@adacore.com>
9252 * g-comlin.adb: Minor reformatting
9254 2009-04-07 Thomas Quinot <quinot@adacore.com>
9256 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9257 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9258 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9259 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9261 2009-04-07 Robert Dewar <dewar@adacore.com>
9263 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9265 * opt.ads (Sprint_Line_Limit): New parameter
9267 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9269 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9271 * usage.adb: Output information for -gnatGnn -gnatDnn
9273 2009-04-07 Robert Dewar <dewar@adacore.com>
9275 * make.adb: Minor reformatting
9277 2009-04-07 Robert Dewar <dewar@adacore.com>
9279 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9281 2009-04-07 Robert Dewar <dewar@adacore.com>
9283 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9285 2009-04-07 Robert Dewar <dewar@adacore.com>
9288 Remove Assume_Valid parameter from In_Subrange_Of calls
9291 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9292 (Is_In_Range): Remove incorrect use of Assume_Valid
9293 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9296 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9297 (Is_In_Range): Documentation cleanup
9298 (Is_Out_Of_Range): Documentation cleanup
9301 Add documentation for Assume_No_Invalid_Values pragma
9303 * sem_ch12.adb: Minor reformatting
9305 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9307 * sem_prag.adb: Improve error message.
9309 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9310 LF/CR no longer recognized as line terminator
9312 * switch.ads: Minor documentation improvement
9314 * vms_data.ads: Minor reformatting
9316 2009-04-07 Robert Dewar <dewar@adacore.com>
9318 * checks.adb (Determine_Range): Add Assume_Valid parameter
9320 * checks.ads (Determine_Range): Add Assume_Valid parameter
9322 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9323 Is_Null_Loop to suppress warnings in a loop body.
9326 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9329 (Expand_N_Loop_Statement): Delete loop known not to execute
9332 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9333 fully enables the proper handling of invalid values.
9336 New calling sequence for Is_In_Range
9339 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9340 in determining if a loop range is null.
9343 (Is_In_Range): Add Assume_Valid parameter
9344 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9345 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9346 also to do more accurate and complete range analysis, catching more
9350 (Is_In_Range): Add Assume_Valid parameter
9351 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9354 New calling sequence for Is_In_Range
9357 (Suppress_Loop_Warnings): New flag
9360 (Is_Null_Loop): Update documentation
9361 (Suppress_Loop_Warnings): New flag
9363 * gnat_ugn.texi: Document -gnatB switch
9365 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9367 * gnatvsn.ads: Bump version number.
9369 2009-04-07 Thomas Quinot <quinot@adacore.com>
9371 * exp_ch3.adb: Minor rewording (comments)
9373 2009-04-07 Robert Dewar <dewar@adacore.com>
9375 * exp_disp.adb: Minor reformatting
9377 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9379 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9381 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9383 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9385 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9386 Do not convert the result. Remove obsolete comment.
9388 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9390 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9392 (Subprogram_Body_to_gnu): Fix pasto.
9394 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9396 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9397 (void_type_decl_node): Remove.
9398 (init_gigi_decls): Likewise.
9399 (gnat_install_builtins): Declare.
9400 (record_builtin_type): Likewise.
9401 (create_type_stub_decl): Likewise.
9402 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9403 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9405 <E_Array_Subtype>: Use the index types, not only their name, in the
9406 record giving the names of the bounds, if any.
9407 For a packed array type, make it artificial only if the base type
9408 was artificial as well. Remove redundant statement.
9409 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9411 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9412 (rest_of_type_decl_compilation_no_defer): Likewise.
9413 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9414 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9415 and use create_type_stub_decl to build it.
9416 (gnat_pushdecl): Rewrite condition.
9417 (gnat_install_builtins): Remove bogus declaration.
9418 (record_builtin_type): New function.
9419 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9421 (create_type_stub_decl): New function.
9422 (create_type_decl): Assert that the type is not dummy. If the type
9423 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9424 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9425 (build_vms_descriptor): Likewise.
9426 (init_gigi_decls): Delete and move bulk of code to...
9427 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9428 (emit_range_check): Add gnat_node parameter.
9429 (emit_index_check): Likewise.
9430 (emit_check): Likewise.
9431 (build_unary_op_trapv): Likewise.
9432 (build_binary_op_trapv): Likewise.
9433 (convert_with_check): Likewise.
9434 (Attribute_to_gnu): Adjust calls for above changes.
9435 (call_to_gnu): Likewise.
9436 (gnat_to_gnu): Likewise.
9437 (assoc_to_constructor): Likewise.
9438 (pos_to_constructor): Likewise.
9439 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9440 (process_type): Do not create TYPE_DECL for dummy types.
9442 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9444 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9445 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9446 * gcc-interface/utils.c: Fix comments.
9448 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9450 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9452 (gnat_to_gnu_type): Move around.
9453 (get_unpadded_type): Likewise.
9454 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9457 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9459 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9460 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9461 (call_to_gnu): Invoke it instead of manually checking.
9463 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9465 * gcc-interface/utils.c (finish_record_type): Force structural equality
9466 checks if the record type is discriminated.
9468 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9470 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9471 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9472 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9473 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9474 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9475 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9476 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9478 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9480 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9481 of TREE_CONSTANT_OVERFLOW.
9483 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9485 PR rtl-optimization/323
9486 * gcc-interface/misc.c (gnat_post_options): Set
9487 flag_excess_precision_cmdline. Give an error for
9488 -fexcess-precision=standard for processors where the option is
9491 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9494 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9497 2009-03-11 Olivier Hainque <hainque@adacore.com>
9499 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9500 checks processing, remove unintended TREE_TYPE walk on index type.
9502 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9505 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9506 call make_packable_type on fat pointer types.
9507 <E_Array_Subtype>: Likewise.
9508 <E_Record_Subtype>: Call make_packable_type on all record types
9509 except for fat pointer types.
9510 (make_packable_type): Likewise.
9511 (gnat_to_gnu_field): Likewise.
9513 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9515 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9516 EH_MECHANISM change made on 2007-12-06.
9518 2009-02-26 Andreas Schwab <schwab@suse.de>
9521 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9522 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9523 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9525 (target_cpu_default): Substitute.
9527 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9530 * a-teioed.adb (Expand): Fix Result overflow.
9532 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9534 * gcc-interface/Makefile.in: Fix multilib handling for
9537 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9539 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9541 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9543 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9545 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9547 * gcc-interface/deftarg.c: Remove.
9549 2009-02-10 Olivier Hainque <hainque@adacore.com>
9550 Eric Botcazou <ebotcazou@adacore.com>
9552 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9553 (copy_alias_set): Rename into...
9554 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9555 underlying array of unconstrained arrays for the new type as well.
9556 If the old and new alias sets don't conflict, make one a subset of
9557 the other as per the OP parameter.
9558 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9559 <E_Record_Type>: Do not copy the alias set for derived types.
9560 For all types, make the alias set of derived types a superset of
9561 that of their parent type.
9562 (make_aligning_type): Adjust calls to copy_alias_set.
9563 (make_packable_type): Likewise.
9564 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9565 Check for alias set conflict instead of strict equality to issue the
9568 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9570 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9571 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9572 (copy_alias_set): Assert that arrays have the same aliasing settings.
9573 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9575 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9577 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9578 Set TYPE_NONALIASED_COMPONENT on the array type.
9580 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9582 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9584 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9586 * gcc-interface/Makefile.in: Fix multilib handling for
9589 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9591 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9592 only useless conversions around renamed objects.
9594 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9596 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9597 the _Tag field before any discriminants in the field list.
9598 (components_to_record): Remove obsolete comment.
9602 Copyright (C) 2009 Free Software Foundation, Inc.
9604 Copying and distribution of this file, with or without modification,
9605 are permitted in any medium without royalty provided the copyright
9606 notice and this notice are preserved.