1 2009-07-28 Sergey Rybin <rybin@adacore.com>
3 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
5 2009-07-28 Pascal Obry <obry@adacore.com>
7 * g-expect.adb: Record standard handles only on Windows.
9 2009-07-27 Emmanuel Briot <briot@adacore.com>
11 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
14 2009-07-27 Sergey Rybin <rybin@adacore.com>
16 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
17 rule definition the paragraph that explains that generic functions and
18 functions from generic packages are not checked.
20 2009-07-27 Gary Dismukes <dismukes@adacore.com>
22 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
23 procedure when determining whether to set the Overridden_Operation
24 field of a subprogram overriding an inherited subprogram.
26 2009-07-27 Robert Dewar <dewar@adacore.com>
28 * a-except.adb, a-except-2005.ads: Minor reformatting
30 2009-07-27 Robert Dewar <dewar@adacore.com>
32 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
34 2009-07-27 Javier Miranda <miranda@adacore.com>
36 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
37 add some documentation explaining why the SCIL nodes must be generated
40 2009-07-27 Olivier Hainque <hainque@adacore.com>
42 * a-except.adb: Bind to __builtin_longjmp directly.
43 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
45 * a-exexpr.adb: Use it.
46 * a-except-xi.adb: Likewise.
47 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
48 * raise.h (_gnat_builtin_longjmp): Remove declaration.
50 2009-07-27 Ed Schonberg <schonberg@adacore.com>
52 * sem_eval.adb (Compile_Time_Compare): More precise handling of
53 Known_Valid flag, to prevent spurious range deductions when scalar
54 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
56 2009-07-27 Robert Dewar <dewar@adacore.com>
58 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
61 2009-07-27 Ed Schonberg <schonberg@adacore.com>
63 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
64 Ravenscar mode. Error has already been posted on specification.
66 * sem.adb: Further code clean ups.
68 2009-07-27 Robert Dewar <dewar@adacore.com>
70 * g-sse.ads: Minor reformatting
72 2009-07-27 Arnaud Charlet <charlet@adacore.com>
74 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
75 alternate ali extension.
76 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
77 account Osint.ALI_Suffix.
78 * osint.ads (ALI_Suffix): Make visible.
79 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
80 * gnat_ugn.texi: Document new gnatfind --ext= switch.
82 2009-07-27 Ed Schonberg <schonberg@adacore.com>
84 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
87 2009-07-27 Javier Miranda <miranda@adacore.com>
89 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
90 the dispatching call has is expanded.
92 2009-07-27 Ed Schonberg <schonberg@adacore.com>
94 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
95 Is_Known_Valid flag on the temporary created for the value whose
96 validity is being checked.
98 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
99 handle properly main units that are package specifications.
101 2009-07-27 Geert Bosch <bosch@adacore.com>
103 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
104 * sem_aux.ads: Fix typo in comment
105 * sem_util.ads (Is_LHS): Adjust comment to match body
107 2009-07-27 Sergey Rybin <rybin@adacore.com>
109 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
112 2009-07-27 Olivier Hainque <hainque@adacore.com>
114 * g-sse.ads, g-ssvety.ads: Update comments.
116 2009-07-27 Sergey Rybin <rybin@adacore.com>
118 * gnat_ugn.texi: Update gnatcheck doc.
120 2009-07-27 Arnaud Charlet <charlet@adacore.com>
122 * lib-xref.ads: Allocate/document 'o' char for use by references to
123 spark 'own' variables.
125 2009-07-27 Gary Dismukes <dismukes@adacore.com>
127 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
128 objects, since these are implicitly referenced by the return statement.
129 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
130 Is_Return_Object in this procedure, as return objects will never make
131 it here since they're now marked as Referenced.
133 2009-07-27 Robert Dewar <dewar@adacore.com>
135 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
137 2009-07-27 Robert Dewar <dewar@adacore.com>
139 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
141 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
143 2009-07-27 Geert Bosch <bosch@adacore.com>
145 * checks.adb (Find_Check): Minor streamlining of logic.
146 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
147 * debug.adb: Document -gnatdX debug flag
148 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
149 list information about reads from scalar entities.
150 Also slightly simplify condition for Expand_Current_Value.
151 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
154 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
157 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
158 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
160 (__gnat_stat): Adjust reference to STAT in prototype.
161 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
162 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
163 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
164 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
165 __gnat_is_writable_file, __gnat_is_executable_file,
166 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
167 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
168 __gnat_copy_attribs): Adjust all references to the above.
169 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
171 2009-07-23 Ed Schonberg <schonberg@adacore.com>
173 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
174 done at the same time, guard against listing a body more than once.
176 2009-07-23 Robert Dewar <dewar@adacore.com>
178 * exp_ch6.adb: Minor reformatting
180 2009-07-23 Ed Schonberg <schonberg@adacore.com>
182 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
183 static expression is known valid.
184 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
185 operands of a subtype with a single value.
187 2009-07-23 Ed Schonberg <schonberg@adacore.com>
189 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
190 are in the context of the main unit body.
192 2009-07-23 Sergey Rybin <rybin@adacore.com>
194 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
195 misprint in rule description.
197 2009-07-23 Gary Dismukes <dismukes@adacore.com>
199 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
200 test that the object declaration is within an extended return statement
201 with direct test of whether the declared object associated with the
202 build-in-place call is a return object, since the enclosing function
203 might not even be a build-in-place function.
205 2009-07-23 Robert Dewar <dewar@adacore.com>
207 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
208 Minor code reorganization
210 2009-07-23 Arnaud Charlet <charlet@adacore.com>
212 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
213 for static analysis, only packed arrays are causing troubles.
215 2009-07-23 Gary Dismukes <dismukes@adacore.com>
217 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
218 ancestor part is a call to a limited function with an unconstrained
219 result subtype unless the aggregate has a null extension type.
220 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
221 the parent type declaration to avoid blowups on subtype cases.
223 2009-07-23 Robert Dewar <dewar@adacore.com>
225 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
228 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
230 * s-regexp.adb: Minor reformatting
231 * scos.ads: Minor reformatting.
233 2009-07-23 Arnaud Charlet <charlet@adacore.com>
235 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
236 other similar messages.
237 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
238 messages/implicit packing in CodePeer mode.
239 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
240 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
243 2009-07-23 Pascal Obry <obry@adacore.com>
245 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
248 2009-07-23 Robert Dewar <dewar@adacore.com>
250 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
253 2009-07-23 Yannick Moy <moy@adacore.com>
255 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
257 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
259 (Raise_Exception): Ditto.
261 2009-07-23 Olivier Hainque <hainque@adacore.com>
263 * g-sse.ads: Simplify comment.
265 2009-07-23 Olivier Hainque <hainque@adacore.com>
267 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
268 low level internal type definitions for distinct higher level
269 binding development activities (user type definitions and
271 * gnat_rm.texi: Document it.
272 * g-ssvety.ads: Use it.
273 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
274 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
275 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
276 for the "may_alias" attribute.
278 2009-07-23 Thomas Quinot <quinot@adacore.com>
280 * scos.ads: Minor typo fix
281 * gcc-interface/decl.c (validate_alignment): For the case of an
282 implicit array base type, look for alignment clause on first subtype.
285 2009-07-23 Ed Schonberg <schonberg@adacore.com>
287 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
288 in the context depends on the spec of the main unit, by delaying
289 processing of the main unit body until all other units have been
292 2009-07-23 Arnaud Charlet <charlet@adacore.com>
294 * a-convec.adb: Add comments about suspicious/subtle code.
296 2009-07-23 Ed Schonberg <schonberg@adacore.com>
298 * einfo.ads: Document use of Alias in private overriding
300 2009-07-23 Thomas Quinot <quinot@adacore.com>
302 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
303 an array type, propagate alignment from first subtype to implicit base
304 type so that other subtypes (such as the itypes for aggregates of the
305 type) also receive the expected alignment.
307 * g-comlin.ads: Minor documentation clarification/rewording.
308 * scos.ads: Minor comments update.
309 * lib-writ.ads: Minor reformatting
311 2009-07-23 Gary Dismukes <dismukes@adacore.com>
313 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
314 of a class-wide interface type that is a return object of a
315 build-in-place function, bypass the interface-related expansions into
316 renamings with displacement conversions, etc.
317 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
318 for the case where a renaming occurs in a build-in-place context, to
319 assert that the bypassing of the build-in-place treatment only occurs
320 in the case of a renaming that is an expansion of a return expression
321 that is itself a build-in-place function call.
323 2009-07-23 Ed Schonberg <schonberg@adacore.com>
325 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
326 valid candidate interpretation in a prefixed view if it is hidden, but
327 overrides an inherited operation declared in the visible part.
329 2009-07-23 Robert Dewar <dewar@adacore.com>
331 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
332 division operands to 64-bit at all in any circumstances.
334 2009-07-23 Robert Dewar <dewar@adacore.com>
336 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
337 checking ranges for mod/rem to see if conditional jump will be
339 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
340 generating special -1 test for rem, generate it whenever both
341 operands can be negative (match circuit in Sem_Res).
342 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
343 destroys memory of positive range.
344 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
345 checking ranges for mod/rem to see if conditional jump will be generated
347 2009-07-23 Ed Schonberg <schonberg@adacore.com>
349 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
350 scalar components has non-static bounds, the equivalent aggregate
351 cannot be built, even if the expression is static, because range checks
354 2009-07-23 Robert Dewar <dewar@adacore.com>
356 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
357 division operands to 64-bit inside a conversion if 64-bit division not
360 2009-07-23 Sergey Rybin <rybin@adacore.com>
362 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
364 2009-07-23 Javier Miranda <miranda@adacore.com>
366 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
367 (Entity/Set_Entity): not available in N_Null_Statement nodes
368 (Is_Scil_Node): renamed as Is_SCIL_Node
369 (Scil_Nkind): renamed as SCIL_Nkind
370 (Scil_Related_Node): renamed as SCIL_Related_Node
371 (Scil_Target_Prim): renamed as SCIL_Target_Prim
372 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
373 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
374 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
376 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
377 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
378 (New_Scil_Node): Renamed as New_SCIL_Node
379 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
380 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
381 (New_Scil_Node): Renamed as New_SCIL_Node
382 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
384 2009-07-23 Robert Dewar <dewar@adacore.com>
386 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
387 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
388 * einfo.adb: Minor reformatting
390 2009-07-23 Robert Dewar <dewar@adacore.com>
392 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
393 cross-referencing the new related code in
394 Exp_Ch4.Expand_N_Type_Conversion.
395 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
397 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
400 2009-07-23 Javier Miranda <miranda@adacore.com>
402 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
403 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
404 * exp_disp.ads (Scil_Node_Kind): Ditto.
405 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
406 * exp_ch3.adb (Build_Init_Procedure): Ditto.
408 2009-07-23 Javier Miranda <miranda@adacore.com>
410 * einfo.adb (Component_Type): Add missing assertion.
411 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
412 reading attribute Component_Size.
413 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
414 before reading attributes Component_Size and Component_Type.
415 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
416 before reading attribute Component_Type.
418 2009-07-23 Olivier Hainque <hainque@adacore.com>
420 * gnat_rm.texi: Document the GNAT.SSE units.
422 2009-07-23 Ed Schonberg <schonberg@adacore.com>
424 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
425 not null return if it appears on a subunit.
427 2009-07-23 Robert Dewar <dewar@adacore.com>
429 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
430 check right away so it does not get skipped for early returns, e.g.
432 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
433 left-side unless we really know the value is valid.
435 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
436 reformatting. Minor code reorganization. Add comments.
438 2009-07-23 Robert Dewar <dewar@adacore.com>
440 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
443 2009-07-23 Gary Dismukes <dismukes@adacore.com>
445 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
446 with test of coverage, to allow specific type objects in extended
447 returns of class-wide functions. Remove now-unnecessary special-case
448 tests that allowed this in certain cases of expanded extended returns.
450 2009-07-23 Javier Miranda <miranda@adacore.com>
452 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
453 N_Null_Statements (for SCIL nodes).
454 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
455 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
456 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
458 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
459 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
460 associated with dispatching call.
461 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
462 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
463 initialization of dispatch tables and initialization of tags.
464 (New_Scil_Node): New function that creates a new SCIL node.
465 (Build_Init_Procedure): Add generation of SCIL node associated with the
466 initialization of tags done in the IP subprogram.
468 2009-07-23 Ed Schonberg <schonberg@adacore.com>
470 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
471 Warnings_Off, do not emit continuation messages.
473 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
476 2009-07-23 Emmanuel Briot <briot@adacore.com>
478 * ali.adb: Minor comment update
480 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
482 * s-win32.ads (HANDLE): Define to be the same size as address type.
485 2009-07-23 Olivier Hainque <hainque@adacore.com>
487 * g-sse.ads: New file. Root of the SSE facilities trees, with
488 general description and common declarations.
489 * g-ssvety.ads: New file. Expose user level SSE vector types.
490 * impunit.adb (Non_Imp_File_Names_95): Register new units.
491 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
492 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
494 2009-07-23 Ben Brosgol <brosgol@adacore.com>
496 * gnat_ugn.texi: Wordsmithing.
498 2009-07-23 Arnaud Charlet <charlet@adacore.com>
500 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
502 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
504 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
505 they are already of the base type of the index.
507 2009-07-22 Brett Porter <porter@adacore.com>
509 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
511 2009-07-22 Robert Dewar <dewar@adacore.com>
513 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
514 * gnat_ugn.texi: Add documentation for -gnateS switch
515 * ug_words: Add entry for -gnateS /SCO_OUTPUT
516 * gcc-interface/Make-lang.in: Update dependenciest.3
518 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
519 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
520 complete information for SCO input/output.
522 2009-07-22 Sergey Rybin <rybin@adacore.com>
524 * gnat_ugn.texi: Update doc for some gnatcheck rules.
526 2009-07-22 Robert Dewar <dewar@adacore.com>
528 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
529 contents of SCO tables.
530 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
531 scos.adb, scos.ads: New files.
532 * gcc-interface/Make-lang.in: Update dependencies.
534 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
535 fixes and reformatting.
537 2009-07-22 Robert Dewar <dewar@adacore.com>
539 * g-socket.ads: Minor reformatting
541 2009-07-22 Gary Dismukes <dismukes@adacore.com>
543 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
544 include the entity kind for following cases of unreferenced entities:
545 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
547 2009-07-22 Ed Falis <falis@adacore.com>
549 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
552 2009-07-22 Arnaud Charlet <charlet@adacore.com>
554 * adadecode.c: Make this file compilable outside of GCC.
556 2009-07-22 Thomas Quinot <quinot@adacore.com>
558 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
559 (partially) default-initialized socket sets are handled properly by
560 clearing their Set component.
562 2009-07-22 Bob Duff <duff@adacore.com>
564 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
566 2009-07-22 Robert Dewar <dewar@adacore.com>
568 * gnat_ugn.texi: Minor reformatting
570 2009-07-22 Ed Schonberg <schonberg@adacore.com>
572 * errout.adb (Error_Msg): A style message within an instantiation
573 should not be labelled as an error.
575 2009-07-22 Ed Schonberg <schonberg@adacore.com>
577 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
578 in initialization expression if function does not have convention Ada.
580 2009-07-22 Sergey Rybin <rybin@adacore.com>
582 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
583 '--separate-label' to control label layout.
585 2009-07-22 Robert Dewar <dewar@adacore.com>
587 * exp_tss.ads, sem_eval.adb: Minor reformatting
589 2009-07-22 Bob Duff <duff@adacore.com>
591 * exp_dist.adb, exp_dist.ads: Update comments.
593 2009-07-22 Brett Porter <porter@adacore.com>
595 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
597 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
599 2009-07-22 Gary Dismukes <dismukes@adacore.com>
601 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
602 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
604 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
605 used poor terminology.
607 2009-07-22 Robert Dewar <dewar@adacore.com>
609 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
610 * sem_eval.adb, exp_tss.adb: Minor comment update.
611 * stylesw.adb: Code clean up.
613 2009-07-22 Ed Schonberg <schonberg@adacore.com>
615 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
616 component size is an exact number of bytes, an array type can have a
617 size clause that forces packing even though the array type itself is
620 2009-07-22 Thomas Quinot <quinot@adacore.com>
622 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
623 if there is a previous entity with the same name in the scope, ignore
624 it if it is the renaming declaration for a generic package introduced
627 2009-07-22 Nicolas Roche <roche@adacore.com>
629 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
630 handler on x86_64 windows.
632 2009-07-22 Arnaud Charlet <charlet@adacore.com>
634 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
635 false positives in CodePeer, so ignore this pragma in this mode.
637 2009-07-22 Thomas Quinot <quinot@adacore.com>
639 * sem_util.adb, sem_ch10.adb: Minor reformatting
641 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
642 special handling for the case of no data received and Item'First =
643 Stream_Element_Offset'First.
644 (Last_Index): New subprogram factoring the above special handling
645 over the various locations where it is required.
647 2009-07-22 Arnaud Charlet <charlet@adacore.com>
649 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
650 checks in CodePeer_Mode.
651 * gcc-interface/Make-lang.in: Update dependencies.
653 2009-07-22 Ed Schonberg <schonberg@adacore.com>
655 * sem_aggr.adb: Improve error message.
657 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
658 of an address representation clause.
659 * freeze.adb (Freeze_Static_Object): An local imported object is legal
660 if it has an address clause.
662 2009-07-22 Thomas Quinot <quinot@adacore.com>
664 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
665 expression to insert an elab check using a conditional expression, be
666 sure to carry the original list of interpretations to the new location.
668 2009-07-22 Gary Dismukes <dismukes@adacore.com>
670 * gnat1drv.adb: Fix spelling error.
672 2009-07-22 Javier Miranda <miranda@adacore.com>
674 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
675 at the library level and fix a hidden bug in its implementation: its
676 functionality for renaming objects was broken because
677 N_Object_Renaming_Declarations nodes are not a subclass of
678 N_Declaration nodes (as documented in sinfo.ads).
679 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
680 check nodes that are actuals of generic instantiations.
682 2009-07-22 Ed Schonberg <schonberg@adacore.com>
684 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
685 context of a compilation unit is being analyzed. Used to detect
686 circularities created by with_clauses that are not detected by the
688 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
689 analyzing the context of the current compilation unit, to detect
690 possible circularities created by with_clauses.
692 2009-07-22 Thomas Quinot <quinot@adacore.com>
694 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
696 2009-07-22 Robert Dewar <dewar@adacore.com>
698 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
699 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
701 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
702 * gnat_ugn.texi: Add documentation of -gnatyB
703 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
705 2009-07-22 Robert Dewar <dewar@adacore.com>
707 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
708 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
709 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
710 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
711 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
712 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
713 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
714 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
715 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
716 obey short-circuit style rule.
718 2009-07-20 Bob Duff <duff@adacore.com>
720 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
721 instead of "and", because otherwise Parent_Last_Bit is read
722 uninitialized in the case where it's not a tagged type, or the tagged
723 parent does not have a complete rep clause.
725 2009-07-20 Robert Dewar <dewar@adacore.com>
727 * stylesw.ads: Minor documentation change.
729 * types.ads: Minor reformatting
731 2009-07-20 Javier Miranda <miranda@adacore.com>
733 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
734 generating the tag checks associated with dispatching calls.
735 * exp_disp.adb (Apply_Access_Checks): New subprogram.
736 (New_Value): This routine was previously local to expand dispatching
737 calls but it is now used also by Apply_Access_Checks.
738 (Expand_Dispatching_Calls): Cleanup code because the functionality of
739 tag checks is now provided by Apply_Access_Checks.
740 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
741 case of dispatching calls.
743 2009-07-20 Arnaud Charlet <charlet@adacore.com>
745 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
748 2009-07-20 Gary Dismukes <dismukes@adacore.com>
750 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
751 for VMS, only rewrite the first component of the associated exception's
752 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
753 and third components that were being replaced with 'M' and 'S'.
755 2009-07-20 Arnaud Charlet <charlet@adacore.com>
757 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
758 Also do not generate error when parsing a spec in CodePeer mode.
760 2009-07-20 Javier Miranda <miranda@adacore.com>
762 * checks.adb (Apply_Access_Check): Avoid checks on availability of
763 runtime function Offset_To_Top_Ptr when compiling with no tagged
765 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
766 adding code to the init proc when compiling for VM backends.
768 2009-07-20 Vincent Celier <celier@adacore.com>
770 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
771 account switches -gnatw.?
773 2009-07-20 Thomas Quinot <quinot@adacore.com>
775 * sem_dist.adb, exp_dist.adb: Minor reformatting
777 * Make-generated.in: New file.
779 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
781 2009-07-20 Javier Miranda <miranda@adacore.com>
783 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
785 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
786 dynamically tagged expression.
787 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
789 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
790 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
792 2009-07-20 Arnaud Charlet <charlet@adacore.com>
794 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
795 CodePeer_Mode is set, to benefit from full front-end expansion
798 2009-07-20 Ed Schonberg <schonberg@adacore.com>
800 * sem_res.adb: Add guard.
802 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
803 for possible attribute definition of External_Tag, in case clause
804 appears in the private part of a package.
806 2009-07-20 Jerome Guitton <guitton@adacore.com>
808 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
810 2009-07-20 Vadim Godunko <godunko@adacore.com>
812 * a-coorma.adb: Minor reformatting.
814 2009-07-20 Ed Schonberg <schonberg@adacore.com>
816 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
818 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
819 provide an itype reference to gigi to force elaboration of the subtype
822 2009-07-20 Tristan Gingold <gingold@adacore.com>
824 * g-expect.adb: Avoid closeing already closed handle.
826 2009-07-20 Robert Dewar <dewar@adacore.com>
828 * sprint.adb (Write_Subprogram_Name): New procedure to output
829 subprogram name with possible preceding $ (replaces
830 Note_Implicit_Run_Time_Call).
832 2009-07-20 Robert Dewar <dewar@adacore.com>
834 * vms_data.ads: Minor reformatting
836 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
837 applies to base type.
838 (Parent_Subtype): Now allowed on record subtype, applies to base type
839 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
840 for case of fully repped tagged type.
841 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
842 tag save/restore for fully repped tagged type case.
843 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
844 * fe.h (Is_Fully_Repped_Tagged_Type): New function
845 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
846 overlap of tagged type components with parent type if parent type is
848 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
850 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
852 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
853 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
855 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
856 logical operators (AND/OR/XOR), not comparison operators.
858 * sprint.ads: Minor reformatting
860 2009-07-20 Ed Schonberg <schonberg@adacore.com>
862 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
863 intrinsics, check that argument is a string literal, rather than
864 checking for staticness.
866 2009-07-20 Robert Dewar <dewar@adacore.com>
868 * sem_ch13.adb: Minor reformatting
870 * einfo.ads: Minor reformatting
871 Component_Bit_Offset is no longer considered obsolescent
873 2009-07-20 Nicolas Roche <roche@adacore.com>
875 * a-calend.adb: Redefine time_t as signed integer with same size as
877 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
879 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
882 2009-07-20 Javier Miranda <miranda@adacore.com>
884 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
885 constructors that have anonymous access type formals.
887 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
888 class-wide arguments in case of imported C++ subprograms.
890 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
892 2009-07-20 Sergey Rybin <rybin@adacore.com>
894 * vms_data.ads: Update qualifiers.
896 2009-07-20 Robert Dewar <dewar@adacore.com>
898 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
901 2009-07-17 Richard Guenther <rguenther@suse.de>
904 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
905 state. Remove unused parameter.
906 (gnat_gimplify_function): Do not gimplify here.
907 Fold into its only caller and remove.
908 (gnat_builtin_function): Adjust for end_subprog_body signature change.
909 (gnat_write_global_declarations): Also finalize the CU.
910 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
911 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
912 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
914 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
916 2009-07-15 Arnaud Charlet <charlet@adacore.com>
918 * gcc-interface/Make-lang.in: Update dependencies
920 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
922 2009-07-15 Robert Dewar <dewar@adacore.com>
924 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
925 N_Label. Remove SCO table entry for entry point (not used).
927 * par_sco.ads: Remove SCO entry point type (not used)
929 * switch.adb: Minor code clean up.
931 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
933 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
935 2009-07-15 Thomas Quinot <quinot@adacore.com>
937 * gnatls.adb: Minor reformatting
939 * gnatcmd.adb: Minor code reorganization
941 2009-07-15 Ed Schonberg <schonberg@adacore.com>
943 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
944 determine whether a component of a private type has a composite type.
946 2009-07-15 Robert Dewar <dewar@adacore.com>
948 * sem_ch10.adb: Minor reformatting throughout
949 Minor code reorganization (put nested subprograms in alpha order)
951 2009-07-15 Ed Schonberg <schonberg@adacore.com>
953 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
954 when compiling a call to a protected function that returns a controlled
957 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
959 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
960 one. Add task locking and unlocking around the critical region which
961 mentions localtime_r and global variable timezone for various targets.
962 Comment reformatting.
964 2009-07-15 Robert Dewar <dewar@adacore.com>
966 * gnat_rm.texi: Document s-ststop.ads
968 * impunit.ad: (Map_Array): New table of alternative names
969 (Get_Kind_Of_Unit): Return possible suggested alternative name
971 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
974 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
975 alternative unit if an implementation unit is with'ed.
977 2009-07-15 Robert Dewar <dewar@adacore.com>
979 * gnat_ugn.texi: Minor updates.
981 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
983 2009-07-15 Ed Schonberg <schonberg@adacore.com>
985 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
986 conditions of a derived boolean type.
989 2009-07-15 Robert Dewar <dewar@adacore.com>
991 * gnat1drv.adb: Initialize SCO tables
993 * par-load.adb: Call SCO_Record for main unit spec
995 * par.adb: Make call to SCO_Record for main unit
997 * par_sco.adb (Unit_Table): Change format to facilitate sort
998 (Process_Decisions): New procedure with list argument
999 (Traverse_Generic_Package_Declaration): New procedure
1000 (Initialize): New procedure, replaces Init
1001 (SCO_Output): Sort unit table before output
1002 (SCO_Record): Avoid duplications
1003 (SCO_Record): Handle remaining cases of units
1004 (Traverse_Declarations_Or_Statements): Handle generics
1006 * par_sco.ads (Initialize): New peocedure (replaces Init)
1008 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1011 2009-07-15 Arnaud Charlet <charlet@adacore.com>
1013 * debug.adb: Add -gnatd.J switch for now to support scil generation in
1014 parallel. Add missing doc for -gnatd.I and -gnatd.O
1016 2009-07-15 Robert Dewar <dewar@adacore.com>
1018 * lib-load.adb: Minor reformatting
1020 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1022 2009-07-15 Robert Dewar <dewar@adacore.com>
1024 * par.adb: Minor reformatting
1025 Add ??? comment for possible bad comment
1027 * par-ch10.adb: Minor reformatting
1029 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1031 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1032 is a literal of a derived boolean type, it appears as an unchecked
1033 conversion. Retrieve actual value from expression of conversion.
1035 2009-07-15 Robert Dewar <dewar@adacore.com>
1037 * sem_ch3.adb: Minor reformatting
1039 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1040 lib-writ.ads, lib-writ.adb: Minor reformatting.
1041 Fix problem with SCO format in ALI files
1043 2009-07-15 Robert Dewar <dewar@adacore.com>
1045 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1046 exp_aggr.adb: Minor code reorganization (better calling sequence for
1049 2009-07-15 Thomas Quinot <quinot@adacore.com>
1051 * opt.ads: Minor comment edits
1053 2009-07-15 Tristan Gingold <gingold@adacore.com>
1055 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
1058 2009-07-15 Robert Dewar <dewar@adacore.com>
1060 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
1063 * lib-writ.ads: Document addition of SCO lines to ALI file
1065 * par_sco.ads, par_sco.adb: New files.
1067 * opt.ads (Generate_SCO): New switch
1069 * par.adb (Par): Call SCO_Record to record SCO information
1071 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
1073 * switch-c.adb: Recognize -gnateS to generate SCO information
1075 * usage.adb: Add line for -gnateS
1077 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
1079 2009-07-15 Robert Dewar <dewar@adacore.com>
1081 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
1084 2009-07-15 Thomas Quinot <quinot@adacore.com>
1086 * g-socthi-mingw.adb: Minor comment addition
1088 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
1090 2009-07-15 Robert Dewar <dewar@adacore.com>
1092 * g-htable.ads, s-htable.ads: Minor reformatting
1094 2009-07-15 Robert Dewar <dewar@adacore.com>
1096 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
1097 new switch -gnatw.g.
1098 (Set_GNAT_Mode_Warnings): New procedure.
1100 * lib-xref.adb: Minor reformatting
1102 2009-07-15 Robert Dewar <dewar@adacore.com>
1104 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
1105 Minor code reorganization
1107 2009-07-14 Taras Glek <tglek@mozilla.com>
1108 Rafael Espindola <espindola@google.com>
1110 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
1111 installing plugin headers.
1113 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1115 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1116 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
1117 and link it to the expression whose value it captures.
1119 2009-07-13 Robert Dewar <dewar@adacore.com>
1121 * output.adb: Minor comment addition for last change
1123 * sinfo.ads: Minor reformatting
1125 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1127 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
1128 spawn failed like on all other targets.
1130 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1132 * exp_ch7.adb: Indicate origin of temporary for transient expression.
1134 2009-07-13 Thomas Quinot <quinot@adacore.com>
1136 * s-oscons-tmplt.c: Add comment.
1138 2009-07-13 Robert Dewar <dewar@adacore.com>
1140 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1141 reformatting. Minor code reorganization (add 9 argument version of
1144 * impunit.adb: Remove s-os_lib from list of system extensions.
1146 * sem_util.ads: Minor reformatting
1148 * output.adb: Add warnings off/on around System.OS_Lib.
1150 2009-07-13 Bob Duff <duff@adacore.com>
1152 * exp_dist.adb: Minor comment updates.
1154 2009-07-13 Gary Dismukes <dismukes@adacore.com>
1156 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
1157 several references to CodePeer.
1159 2009-07-13 Bob Duff <duff@adacore.com>
1161 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
1162 Build_TypeCode_Function_All): Do not recurse if the type is the base
1165 2009-07-13 Robert Dewar <dewar@adacore.com>
1167 * exp_ch4.adb: Minor comment change
1169 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1171 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1172 type of iteration, to prevent spurious warnings.
1174 2009-07-13 Nicolas Roche <roche@adacore.com>
1176 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1179 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1181 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1182 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1184 (CodePeer_Mode): New -gnatC switch.
1185 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1188 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
1190 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1191 integer bound forces the check if it is compared to its subtype range.
1193 2009-07-13 Robert Dewar <dewar@adacore.com>
1195 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1196 prj-strt.ads: Minor reformatting
1198 2009-07-13 Thomas Quinot <quinot@adacore.com>
1200 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1201 set the type of the From_Any call to the base type.
1203 2009-07-13 Doug Rupp <rupp@adacore.com>
1205 * symbols-processing-vms-ia64.adb (Process): Add variables and
1206 constants to retrieve and check for symbol visibility.
1208 2009-07-13 Javier Miranda <miranda@adacore.com>
1210 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1211 the identical type we remove the conversion completely because
1214 2009-07-13 Emmanuel Briot <briot@adacore.com>
1216 * prj-err.adb (Error_Msg): One more case where a message should be
1217 considered as a warning.
1219 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1221 2009-07-13 Thomas Quinot <quinot@adacore.com>
1223 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1224 calling stubs in the (library level) scope of the RCI locator, where it
1225 is attached, not in the caller's scope.
1227 2009-07-13 Javier Miranda <miranda@adacore.com>
1229 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1230 interface object declarations we delay the generation of the equivalent
1231 record type declarations until its expansion because there are cases in
1232 which they are not required.
1234 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1236 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1237 addition of assertion.
1239 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1240 interface types require no equivalent constrained type declarations
1241 because the expanded code only references the tag component associated
1243 (Find_Interface_Tag): Improve management of interfaces that are
1244 ancestors of tagged types.
1246 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1247 class-wide object declarations to add missing support to statically
1248 displace the pointer to the object to reference the tag component
1249 associated with the interface.
1251 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1252 auxiliary types associated with user-defined dispatching calls if the
1253 type has no user-defined primitives.
1255 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1257 * mingw32.h: Make it explicit that we need XP or later.
1259 * initialize.c: Remove useless extern symbol declaration.
1261 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1262 code reuse in expect.c.
1264 * adaint.c: Changes throughout the Windows section to redesign storage
1265 of the child process list and the process identification.
1267 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1268 for interfacing, fix errors.
1269 (__gnat_expect_portable_execvp): use function in adaint.c
1271 2009-07-13 Emmanuel Briot <briot@adacore.com>
1273 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1274 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1275 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1276 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1277 (Prj.Nmsc.Report_Error): Removed, no longer needed.
1278 Always use Prj.Err.Report_Message.
1280 2009-07-13 Robert Dewar <dewar@adacore.com>
1282 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1285 2009-07-13 Robert Dewar <dewar@adacore.com>
1287 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1288 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1290 2009-07-13 Emmanuel Briot <briot@adacore.com>
1292 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1293 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1294 Ada_Prj_Include_File_Set): Removed, since not needed
1297 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1299 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1300 Analyze_Membership_Op.
1302 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1303 Resolve_Membership_Op.
1305 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1308 2009-07-13 Robert Dewar <dewar@adacore.com>
1310 * clean.adb: Minor reformattting
1312 2009-07-13 Emmanuel Briot <briot@adacore.com>
1314 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1315 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1316 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1317 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1318 and attributes in a project tree.
1319 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1320 Remove last remaining mode-specific code (ada_only or
1321 multi_language). This was duplicating code
1322 (Get_Mode, Set_Mode): removed, no longer used.
1323 (Initialize_Project_Path): all tools will now take into account both
1324 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1325 Remove some global variables and subprograms no longer used
1326 Make temporary files tree-specific, to avoid interferences between
1327 trees loaded in memory at the same time.
1328 (Prj.Delete_Temporary_File): new subprogram
1329 (Object_Paths, Source_Paths): fields no longer stored in the project
1330 tree, since they are only needed locally in Set_Ada_Paths.
1331 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1333 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1334 by local variables in the appropriate subprograms
1335 (Has_Foreign_Sources): removed.
1337 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1339 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1341 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1342 Back_Annotate_Rep_Info in inspector mode.
1343 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1345 * opt.ads: Update comment.
1347 2009-07-13 Robert Dewar <dewar@adacore.com>
1349 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1350 prj.ads: Minor reformatting and code reorganization.
1352 * par-ch3.adb (Check_Restricted_Expression): New procedure
1354 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1356 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1357 attribute into a call of the corresponding suprogram, create extra
1358 formals for the subprogram, because it may be a renaming whose
1359 analysis does not create extra formals.
1361 2009-07-13 Emmanuel Briot <briot@adacore.com>
1363 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1364 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1365 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1366 prj-tree.ads: Minor reformatting.
1367 (Processing_Flags): new record to encapsulate the set of common
1368 parameters to several subprograms in the project manager.
1369 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1370 Remove the need for the Current_Dir parameter in subprograms.
1371 (Look_For_Sources): minor refactoring, now that we no longer need to
1372 share subprograms between the two Ada_Only and Multi_Language modes
1373 (Processing_Flags): New field Error_On_Unknown_Language.
1374 Merge tests for library project between gnatmake and gprbuild.
1376 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1378 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1381 2009-07-13 Emmanuel Briot <briot@adacore.com>
1383 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1386 2009-07-13 Thomas Quinot <quinot@adacore.com>
1388 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1389 Write,Input,Output} from private view to full view.
1391 * sem_type.adb, sem_type.ads: Minor reformatting
1393 2009-07-13 Nicolas Setton <setton@adacore.com>
1395 * exp_dbug.ads: Add documentation note on the utility of
1396 DW_AT_GNAT_encoding for IDEs.
1398 2009-07-13 Robert Dewar <dewar@adacore.com>
1400 * g-socthi-vxworks.adb: Minor reformatting
1402 * gnatcmd.adb: Minor reformatting
1404 2009-07-13 Thomas Quinot <quinot@adacore.com>
1406 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1407 removed, not used anymore.
1408 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1409 New subprogram, implements copy of an Any value into a limited object.
1410 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1411 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1412 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1413 of parameters of a limited type, use the above new subprogram.
1415 2009-07-13 Emmanuel Briot <briot@adacore.com>
1417 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1419 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1421 (Error_Report): Remove global variable, replaced by parameters.
1423 2009-07-13 Thomas Quinot <quinot@adacore.com>
1425 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1426 standard sendto(2) interface for connected sockets (passing a null
1427 destination address). Use send(2) instead for that case.
1429 2009-07-13 Pascal Obry <obry@adacore.com>
1431 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1433 2009-07-13 Emmanuel Briot <briot@adacore.com>
1435 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1436 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1437 variables and tables in prj-nmsc.adb.
1438 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1439 (Project_Processing_Data): New record
1440 Simplify/unify check for missing sources.
1442 2009-07-13 Emmanuel Briot <briot@adacore.com>
1444 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1445 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1446 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1447 prj-tree.ads (Immediate_Directory_Of): Removed.
1448 (Prj.Pars): Now parse the project simulating a default config file.
1449 (Add_Default_GNAT_Naming_Scheme): New subprogram
1450 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1451 Remove gnatmake-specific parsing of source files.
1452 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1453 the error itself to provide more precise diagnostics.
1454 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1455 a unit belongs to several projects.
1456 (Copy_Interface_Sources): Search the full path of files to copy in the
1457 list of sources of the application rather than in the list of units.
1458 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1460 (Check_File): Use htables to find out whether a source is duplicated.
1461 (Add_Source): check whether the source or unit were already seen earlier
1463 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1465 2009-07-13 Robert Dewar <dewar@adacore.com>
1467 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1468 expression if extensions permitted.
1470 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1472 (P_Relation): Use P_Membership_Test
1474 * par.adb (P_Membership_Test): New procedure (implement membership set
1477 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1479 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1481 2009-07-13 Thomas Quinot <quinot@adacore.com>
1483 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1484 Do not attempt to generate stubs for predefined primitives of
1485 synchronized interfaces.
1486 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1489 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1491 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1492 Controlling_Result flag from the operation they override.
1494 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1496 * gcc-interface/Make-lang.in: Update dependencies
1498 2009-07-13 Robert Dewar <dewar@adacore.com>
1500 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1501 details on unsupported constructs.
1503 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1506 * s-trafor-default.adb: Correct some warnings
1508 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1509 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1512 * par-ch4.adb (Conditional_Expression): Capture proper location for
1513 conditional expression, should point to IF.
1515 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1516 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1517 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1518 reorganization (use conditional expressions).
1520 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1522 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1523 build-in-place function that returns an inherently limited type (not
1524 just a task type) create proper object declaration so that extra
1525 build-in-place actuals are properly added to the call.
1527 2009-07-13 Robert Dewar <dewar@adacore.com>
1529 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1531 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1533 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1535 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1536 Warn_On_Suspicious_Modulus_Value.
1538 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1540 * usage.adb: Add lines for -gnatw.m/.M switches.
1542 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1544 2009-07-13 Javier Miranda <miranda@adacore.com>
1546 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1547 reading the Is_Interface attribute of the dispatching type.
1549 2009-07-13 Robert Dewar <dewar@adacore.com>
1551 * a-convec.adb: Minor code reorganization (use conditional expressions)
1553 2009-07-13 Robert Dewar <dewar@adacore.com>
1555 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1557 2009-07-13 Robert Dewar <dewar@adacore.com>
1559 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1562 * par-ch4.adb: Minor reformatting
1564 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1566 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1567 => Is_Atomic_Aggregate
1569 2009-07-13 Emmanuel Briot <briot@adacore.com>
1571 * prj-nmsc.adb: Avoid traversing the list of source files if
1572 we have already processed all locally removed files.
1574 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1576 * gnat_ugn.texi: Fix typo.
1578 2009-07-13 Robert Dewar <dewar@adacore.com>
1580 * freeze.adb: Minor reformatting
1581 Minor code reorganization (use Nkind_In)
1583 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1585 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1587 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1588 local variable and do not test it in Compile_Time_Bad_Alignment.
1589 Do not issue size or alignment warnings for the X'Address form.
1590 * sem_util.ads (Find_Overlaid_Object): Delete.
1591 (Find_Overlaid_Entity): New procedure.
1592 * sem_util.adb (Find_Overlaid_Object): Rename to...
1593 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1594 whether the address is offseted within the overlaid entity.
1595 (Has_Compatible_Alignment): Track the offset globally instead of
1596 passing it to Check_Offset. For an indexed component, compute the
1597 full offset when possible. If the resulting offset is zero, only
1599 (Check_Offset): Delete.
1600 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1601 (Address_Aliased_Entity): Delete.
1602 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1603 Find_Overlaid_Entity to find the overlaid entity and the offset.
1604 Adjust throughout for above change.
1605 (Validate_Address_Clauses): Always use attributes of entities, not of
1606 their type. Tweak message for warning. Call Has_Compatible_Alignment
1607 if the address is offseted to warn about incompatible alignments.
1608 * gcc-interface/gigi.h (annotate_object): Declare.
1609 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1610 entity. Call annotate_object instead of annotating manually objects.
1611 (annotate_object): New function.
1612 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1615 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1617 * gcc-interface/ada-tree.h: Minor reorganization.
1618 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1619 (gnat_print_type): Likewise.
1621 2009-07-11 Thomas Quinot <quinot@adacore.com>
1623 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1626 * exp_ch6.adb: Minor reformatting
1628 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1630 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1631 account possible type qualification to determine whether aggregate
1632 needs a target temporary to respect atomic type or object.
1634 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1635 Expand_Atomic_Aggregate.
1637 2009-07-11 Emmanuel Briot <briot@adacore.com>
1639 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1641 (Excluded_Sources_Htable): No longer a global table.
1642 Change error message to indicate which files are illegal in the list
1643 of excluded files, as opposed to only the location in the project
1645 (Find_Source): New subprogram.
1647 2009-07-10 Thomas Quinot <quinot@adacore.com>
1649 * exp_ch7.adb: Update comments.
1651 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1653 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1654 clause if -gnatI is set instead of crashing.
1656 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1658 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1659 Additional work to remove redundant successive raise statements, in
1660 this case access checks.
1662 2009-07-10 Vincent Celier <celier@adacore.com>
1664 * make.adb (Compile): Always create a deep copy of the mapping file
1665 argument (-gnatem=...) as it may be deallocate/reallocate by
1666 Normalize_Arguments.
1668 2009-07-10 Javier Miranda <miranda@adacore.com>
1670 * einfo.adb (Directly_Designated_Type): Add assertion.
1672 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1673 access types before using attribute Directly_Designated_Type.
1675 2009-07-10 Emmanuel Briot <briot@adacore.com>
1677 * prj.ads: Minor typo fix
1679 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1681 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1684 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1685 subprogram is a function call, resolve properly, to ensure that extra
1686 actuals are added as needed.
1688 2009-07-10 Thomas Quinot <quinot@adacore.com>
1690 * sem_aggr.adb: Minor comments editing
1692 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1694 2009-07-10 Robert Dewar <dewar@adacore.com>
1696 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1698 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1701 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1702 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1703 case of conditional expressions that may not be elaborated.
1705 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1706 conditional expression where we may not execute then then or else
1709 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1711 * i-cexten.ads (bool): New type.
1713 2009-07-10 Robert Dewar <dewar@adacore.com>
1715 * sinfo.ads (N_Short_Circuit): New definition
1717 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1718 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1720 2009-07-10 Javier Miranda <miranda@adacore.com>
1722 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1723 non-tagged record types.
1726 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1727 with non-tagged types. Required to import C++ classes that have no
1729 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1730 returning non-tagged types. For backward compatibility, if the
1731 constructor returns a class wide type we internally change the
1732 returned type to the corresponding non class-wide type.
1735 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1736 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1737 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1738 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1741 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1743 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1745 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1747 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1749 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1752 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1755 (pragma CPP_Class): Document that it can be used now with non-tagged
1757 (pragma CPP_Constructor): Document that it can be used now with
1758 functions returning specific types. For backward compatibility
1759 we also support functions returning class-wide types.
1762 (Interfacing with C++ constructors): Update the examples to incorporate
1763 the new syntax in which the functions used to import C++ constructors
1764 return specific types.
1765 (Interfacing with C++ at the Class Level): Update the examples to
1766 incorporate the new syntax in which the functions used to import
1767 C++ constructors return specific types.
1769 2009-07-10 Thomas Quinot <quinot@adacore.com>
1771 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1772 Make_Disp_Conditional_Select_Body,
1773 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1774 interface nor a concurrent type, the primitive body is empty. Generate
1775 a null statement so that it remains well formed.
1777 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1779 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1780 replace references to them in defaulted component expressions with
1781 references to the values of the discriminants of the target object.
1783 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1785 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1786 pragma, to capture global references if the context is generic.
1788 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1789 appears within the initialization procedure for the corresponding
1790 record, replace it with the proper discriminal.
1792 2009-07-10 Vincent Celier <celier@adacore.com>
1794 * make.adb: Do not include object directories or library ALI
1795 directories of library projects in the object path.
1797 2009-07-10 Javier Miranda <miranda@adacore.com>
1799 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1800 Typ argument to ensure proper management of access types.
1802 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1804 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1805 Taft-Amendment type, place the finalization list in the package body,
1806 to ensure that the tree for the spec is identical whenever it is
1809 2009-07-10 Javier Miranda <miranda@adacore.com>
1811 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1812 inheriting attributes from a private Parent_Base.
1814 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1816 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1817 statements with the same condition.
1819 2009-07-10 Robert Dewar <dewar@adacore.com>
1821 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1823 2009-07-09 Tom Tromey <tromey@redhat.com>
1825 * raise-gcc.c: Include dwarf2h (unconditionally).
1827 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1829 * sem_ch10.adb (Install_Context): If the unit is a package body,
1830 install the private with_clauses of the corresponding package
1833 2009-07-09 Robert Dewar <dewar@adacore.com>
1835 * checks.adb: Minor reformatting
1837 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1839 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1842 2009-07-09 Thomas Quinot <quinot@adacore.com>
1844 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1845 Do not warn for a constant overlaying any constant object
1847 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1849 * sem_ch10.adb (Install_Context): If the unit is a package body,
1850 install the private with_clauses of the corresponding package
1853 2009-07-09 Robert Dewar <dewar@adacore.com>
1855 * checks.adb: Minor reformatting
1857 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1859 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1862 2009-07-09 Thomas Quinot <quinot@adacore.com>
1864 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1865 Do not warn for a constant overlaying any constant object
1867 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1869 * gcc-interface/Make-lang.in: Update dependencies
1871 2009-07-09 Thomas Quinot <quinot@adacore.com>
1873 * g-socket.adb (Check_Selector): Do not create local copies of the
1874 socket sets on the stack.
1876 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1878 * gnat_ugn.texi: Add missing VMS translations.
1880 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1882 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1883 condition, to prevent generation of visible code during expansion,
1884 when Check is not enabled.
1886 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1888 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1889 the check gets registered for any available local handler
1892 * sem_util.adb: Add with and use of Exp_Ch11.
1893 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1894 that the check gets registered for any available local handler.
1896 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1899 2009-07-09 Steve Baird <baird@adacore.com>
1901 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1903 (Expand_N_Exception_Declaration): Fix handling of exceptions
1904 declared in a subprogram.
1906 2009-07-09 Emmanuel Briot <briot@adacore.com>
1908 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1911 2009-07-09 Thomas Quinot <quinot@adacore.com>
1913 * freeze.adb: Minor reformatting
1915 * exp_ch3.adb: Minor comment fix.
1917 * sinfo.ads: Minor comment fix
1919 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1921 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1923 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1925 * freeze.adb (Freeze_Expression): If the expression is the name of a
1926 function in a call, and the function has not been frozen yet, create
1927 extra formals for it to ensure that the proper actuals are created
1928 when expanding the call.
1930 2009-07-09 Emmanuel Briot <briot@adacore.com>
1932 * prj-pp.adb (Print): Fix handling of source index when set on a
1935 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1937 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1938 a temporary to the source expression whose value it captures.
1940 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1942 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1944 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1947 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1949 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1950 parameters when the subtype of the actual is not known to be a subrange
1951 of the formal's subtype.
1952 (Expand_Call): Generate a range check only in the E_In_parameter case
1953 (in out parameter range checks are now handled in Expand_Actuals).
1955 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1958 2009-07-07 Robert Dewar <dewar@adacore.com>
1960 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1962 2009-07-07 Javier Miranda <miranda@adacore.com>
1964 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1965 designated type comes from a limited views.
1967 2009-07-07 Emmanuel Briot <briot@adacore.com>
1969 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1970 locally removed files that are later made visible again in an importing
1973 2009-07-07 Robert Dewar <dewar@adacore.com>
1975 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1977 2009-07-07 Sergey Rybin <rybin@adacore.com>
1979 * gnat_ugn.texi: Add an example to the description of gnatcheck
1980 'Style_Checks' rule option.
1982 2009-07-07 Tristan Gingold <gingold@adacore.com>
1984 * seh_init.c: Fix inline assembly statement in seh_init.c
1986 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1988 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1989 an entry body. Only the formals of the entry declaration are traced.
1991 2009-07-07 Robert Dewar <dewar@adacore.com>
1993 * s-osprim-mingw.adb: Minor code reorganization
1995 2009-07-07 Robert Dewar <dewar@adacore.com>
1997 * prj-nmsc.adb: Minor reformatting
1999 2009-07-07 Pascal Obry <obry@adacore.com>
2001 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2002 cases where Pattern is longer than Source.
2004 2009-07-07 Pascal Obry <obry@adacore.com>
2006 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2008 2009-07-07 Emmanuel Briot <briot@adacore.com>
2010 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2013 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2015 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2016 primitive operations, in case one of them is called in the
2017 initialization procedure for the type.
2019 2009-07-07 Robert Dewar <dewar@adacore.com>
2021 * a-calend.adb: Minor code reorganization (use conditional expressions)
2023 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2024 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2025 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2026 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2027 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2028 g-comlin.adb, exp_ch11.adb: Minor reformatting.
2030 2009-07-07 Gary Dismukes <dismukes@adacore.com>
2032 * checks.adb (Generate_Range_Check): Replace type conversions with
2033 unchecked conversions to support the case of performing range checks
2034 on Enum'Val (permits integer values to be converted to enumeration).
2036 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2037 Attribute_Succ): Set Do_Range_Check to False before calling
2038 Expand_Pred_Succ, to prevent gigi from generating any range checks.
2039 (Expand_N_Attribute_Reference, case Attribute_Val):
2040 Generate a range check when needed (and set Do_Range_Check to False).
2042 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2043 scalar object initialization if needed.
2045 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
2046 when needed on scalar allocators.
2047 (Expand_N_Qualified_Expression): Generate range check when needed.
2048 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
2049 Checks on slice ranges handled in Resolve_Slice.
2051 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
2052 when needed, for all scalar assignments, not just discrete.
2053 (Expand_Simple_Function_Return): Resolve the conversion created for a
2054 scalar function return so that the conversion will get expanded to
2055 generate a possible constraint check.
2057 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
2058 in out scalar actuals when subtypes don't match, to ensure generation
2059 of return checks (and set Do_Range_Check to False).
2060 (Expand_Call): Uncomment code to perform range checks, but make it apply
2061 only to in and in out parameters (checks on parameter returns are
2062 handled in Expand_Actuals). If a scalar actual for a call to a derived
2063 subprogram is marked as needing a range check, peform it here (and set
2064 Do_Range_Check to False).
2066 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
2067 range check on scalar component associations when needed.
2069 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
2070 infinities but the second type does not, as these aren't compatible
2071 floating-point types.
2073 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
2074 slice is itself a slice, pick up the Etype of the prefix. This handles
2075 the case where the prefix was an Image attribute expanded to a slice,
2076 and ensures that we get the subtype with the slice constraint rather
2077 than the unconstrained subbtype of the 'Image.
2079 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2081 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
2082 overloaded expressions in a conditional expressions.
2084 * sem_res.adb (Resolve): Handle properly overloaded conditional
2087 2009-07-07 Robert Dewar <dewar@adacore.com>
2089 * scng.adb: Minor reformattting
2091 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
2092 association allows conditional expression without parens.
2094 * par-ch4.adb (P_Name): Attribute arguments can be conditional
2095 expressions without enclosing parentheses, and also as parameters,
2096 indexing expressions etc.
2097 (P_Conditional_Expression): New procedure
2098 (P_Expression_If_OK): New procedure
2100 * par.adb (P_Conditional_Expression): New procedure
2101 (P_Expression_If_OK): New procedure
2103 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
2104 form of conditional expression.
2106 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
2107 missing True argument if ELSE argument missing.
2109 * sinfo.adb (Is_Elsif): New flag
2111 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
2112 part of the language, and the documentation is modified accordingly.
2113 (Is_Elsif): New flag
2115 2009-07-06 Olivier Hainque <hainque@adacore.com>
2117 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
2118 setjmp_longjmp): Attach the exception propagation reraise fallback
2119 to the sequence end label location when we have it.
2121 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2124 * init.c (APPLE): Include <mach/mach_init.h>.
2125 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
2127 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
2129 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
2130 (SET_DECL_LANG_SPECIFIC): Likewise.
2131 (TYPE_RM_VALUE): New macro.
2132 (SET_TYPE_RM_VALUE): Likewise.
2133 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
2134 (TYPE_RM_MIN_VALUE): Likewise.
2135 (TYPE_RM_MAX_VALUE): Likewise.
2136 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2137 (SET_TYPE_RM_MIN_VALUE): Likewise.
2138 (SET_TYPE_RM_MAX_VALUE): Likewise.
2139 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2141 2009-07-04 Laurent GUERBY <laurent@guerby.net>
2144 * tracebak.c (__gnat_backtrace): Fix old-style definition.
2146 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2148 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2150 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2153 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
2156 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
2158 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
2160 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2162 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
2163 the type of the left operand if it pads a self-referential type when
2164 the right operand is a constructor.
2166 * gcc-interface/lang-specs.h: Fix copyright date.
2168 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2170 * gcc-interface/decl.c: Include tree-inline.h.
2171 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2172 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2173 * gcc-interface/utils2.c: Include tree-inline.
2174 (known_alignment) <CALL_EXPR>: Likewise.
2176 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2178 * raise-gcc.c: Include dwarf2.h conditionally.
2180 2009-06-29 Tom Tromey <tromey@redhat.com>
2182 * raise-gcc.c: Include elf/dwarf2.h.
2184 2009-06-27 Laurent GUERBY <laurent@guerby.net>
2186 * tb-gcc.c (trace_callback): Add casts to silence warning.
2188 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2190 * tb-gcc.c: Fix copyright notice.
2192 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2194 * init.c (__gnat_set_globals): Add prototype.
2195 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2196 (__gnat_sals_init_using_constructors): Likewise.
2197 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2198 (get_block_jmpbuf_decl): Likewise.
2199 (gnat_poplevel): Likewise.
2200 (merge_sizes): Rename local variable.
2201 (copy_type): Likewise.
2202 (build_vms_descriptor32): Likewise.
2203 (build_vms_descriptor): Likewise.
2204 (convert_vms_descriptor64): Likewise.
2205 (convert_vms_descriptor32): Likewise.
2206 (convert_to_fat_pointer): Likewise.
2207 (maybe_unconstrained_array): Likewise.
2208 (def_fn_type): Use promoted type with va_arg.
2209 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2210 (substitute_in_type): Rename local variable.
2211 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2213 2009-06-26 Laurent GUERBY <laurent@guerby.net>
2215 * tb-gcc.c (trace_callback): Use char* instead of void*.
2216 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2217 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2218 (Attribute_to_gnu): Adjust for above change.
2219 (Subprogram_Body_to_gnu): Likewise.
2220 * gcc-interface/utils.c (merge_sizes): Rename local variable.
2221 (copy_type): Likewise.
2222 (build_vms_descriptor32): Likewise.
2223 (build_vms_descriptor): Likewise.
2224 (convert_vms_descriptor64): Likewise.
2225 (convert_vms_descriptor32): Likewise.
2226 (convert_to_fat_pointer): Likewise.
2227 (maybe_unconstrained_array): Likewise.
2228 * gcc-interface/decl.c (substitute_in_type): Likewise.
2230 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2232 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2233 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2234 of the upper bound of the index types.
2236 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2238 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2239 out common predicate. Use the maximum to compute the upper bound of
2240 the index type only when it is not wider than sizetype. Perform the
2241 comparison in the index type for the generic expression. Use real
2242 precision to decide whether to generate special types for debugging
2245 2009-06-26 Matthew Gingell <gingell@adacore.com>
2247 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2249 2009-06-26 Vincent Celier <celier@adacore.com>
2251 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2254 2009-06-26 Robert Dewar <dewar@adacore.com>
2256 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2258 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2260 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2261 correct arguments to create_field_decl. Remove redundant iteration.
2262 Rewrite computation of the maximum size.
2263 <E_Array_Subtype>: Reorder and simplify handling of special cases.
2264 Rewrite computation of the maximum size. Use consistent naming.
2265 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2266 comparison order for consistency. Use generic integer node to
2267 build the operator and fold the result.
2269 2009-06-25 Vincent Celier <celier@adacore.com>
2271 * vms_data.ads: Minor comment change
2273 2009-06-25 Gary Dismukes <dismukes@adacore.com>
2275 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2276 assignment statement to targeting a caller-provided object when the
2277 result type is an interface type.
2279 * exp_ch6.adb (Expand_Call): Remove redundant test of
2280 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2281 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2283 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2284 to OK_For_Limited_Init.
2286 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2287 condition so that True is returned for all limited interfaces, not
2288 just synchronized ones. Ignore components of an interface type when
2289 checking for limited components (such a component can be a parent
2292 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2293 (OK_For_Limited_Init): Add type parameter.
2295 * sem_ch3.adb (Check_Initialization): Add type in call to
2296 OK_For_Limited_Init.
2297 (OK_For_Limited_Init): Add new type param in call to
2298 OK_For_Limited_Init_In_05.
2299 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2300 nonlimited type when the context type is a limited interface. Add type
2303 * sem_ch4.adb (Analyze_Allocator): Add type in call to
2304 OK_For_Limited_Init.
2306 * sem_ch6.adb (Check_Limited_Return): Add type in call to
2307 OK_For_Limited_Init.
2309 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2310 OK_For_Limited_Init.
2311 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2313 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2314 class-wide interface, get the base type before applying Etype, in order
2315 to account for class-wide subtypes.
2317 2009-06-25 Emmanuel Briot <briot@adacore.com>
2319 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2320 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2321 between gnatmake and gprbuild.
2322 (Naming_Data): Removed, no longer used
2323 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2324 needed locally in one subprogram, no need to store forever in the
2326 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2328 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2329 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2330 Spec_Suffix_Id_Of): removed, no longer used.
2332 2009-06-25 Javier Miranda <miranda@adacore.com>
2334 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2335 types on qualified expression in calls to imported C++ constructors.
2337 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2338 imported C++ constructors.
2340 2009-06-25 Sergey Rybin <rybin@adacore.com>
2342 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2344 2009-06-25 Vincent Celier <celier@adacore.com>
2346 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2347 provided, on Windows change all '/' to '\'.
2349 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2350 used. Minor comment changes
2352 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2353 Remove_Forbidden_File_Name.
2355 2009-06-25 Quentin Ochem <ochem@adacore.com>
2357 * prj.ads (Unit_Index): Now general access type.
2359 2009-06-25 Pascal Obry <obry@adacore.com>
2361 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2363 2009-06-25 Emmanuel Briot <briot@adacore.com>
2365 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2366 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2367 computed efficiently from the other fields.
2368 (Object_To_Global_Archive): New subprogram
2369 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2370 (Override_Kind): Fix handling of separates in Ada.
2371 (Create_Mapping_File): Remove duplicate code
2372 (Naming_Data.Implementation_Exception, Specification_Exception):
2373 field removed, since never used.
2374 (Naming_Data.Specs, .Bodies): field removed, since this is only
2375 used while processing the project and is not needed once the tree
2376 is in memory. This brings Naming_Data and Lang_Naming_Data
2377 closer (same content now, but different use still).
2379 2009-06-25 Pascal Obry <obry@adacore.com>
2381 * sem_ch4.adb: Minor reformatting.
2383 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2385 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2387 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2388 Unchecked_Access): If the context is an interface type, and the prefix
2389 is of the corresponding class-wide type, do not insert a conversion
2390 because the pointer displacement has already taken place, and we must
2391 retain the class-wide type in a dispatching context.
2393 2009-06-25 Emmanuel Briot <briot@adacore.com>
2395 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2396 the previous source file.
2397 (Create_Mapping): Iterate on sources rather than on units.
2399 2009-06-25 Emmanuel Briot <briot@adacore.com>
2401 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2402 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2403 (Source_Data): no longer use Path.Name to point to a locally removed
2404 file. Instead we use the field Locally_Removed which is clearer
2406 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2408 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2410 * sem_maps.adb, sem_maps.ads: Removed, not used.
2412 2009-06-25 Ed Falis <falis@adacore.com>
2414 * s-vxwext-rtp.ads: Add missing declaration
2416 2009-06-25 Matthew Gingell <gingell@adacore.com>
2418 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2419 speed up unmapped case.
2421 2009-06-25 Vincent Celier <celier@adacore.com>
2423 * prj-nmsc.adb (Check): Change error message for illegal abstract
2426 2009-06-25 Robert Dewar <dewar@adacore.com>
2428 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2430 2009-06-25 Emmanuel Briot <briot@adacore.com>
2432 * fmap.ads: Add documentation on mapping files
2434 2009-06-25 Robert Dewar <dewar@adacore.com>
2436 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2439 2009-06-24 Robert Dewar <dewar@adacore.com>
2441 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2443 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2447 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2449 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2450 present when checking whether a call may be interpreted as an indexing
2451 of the result of a call.
2453 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2454 body for a null procedure on the freeze actions for the procedure, so
2455 that it will be analyzed at the proper place without premature freezing
2458 * sem_ch3.adb (Check_Completion): Code cleanup.
2459 Do not diagnose a null procedure without a body, if previous errors
2460 have disabled expansion.
2462 2009-06-24 Doug Rupp <rupp@adacore.com>
2464 * init.c [VMS] Resignal C$_SIGKILL
2466 2009-06-24 Ed Falis <falis@adacore.com>
2468 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2469 Define ERROR in body for VxWorks 6 kernel
2471 2009-06-24 Pascal Obry <obry@adacore.com>
2473 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2474 in [Send/Receive]_Socket.
2476 2009-06-24 Emmanuel Briot <briot@adacore.com>
2478 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2479 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2480 to several subprograms.
2481 (Source_Data.Other_Part): Removed, since can be computed from the
2483 (Other_Part): New subprogram.
2485 2009-06-24 Emmanuel Briot <briot@adacore.com>
2487 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2488 the full base name of the file when the suffix doesn't start with a '.'.
2490 2009-06-24 Vincent Celier <celier@adacore.com>
2492 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2493 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2496 2009-06-24 Robert Dewar <dewar@adacore.com>
2498 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2499 prj-env.adb: Minor reformatting
2501 2009-06-24 Ed Falis <falis@adacore.com>
2503 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2504 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2505 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2506 support for VxWorks SMP.
2508 * gcc-interface/Make-lang.in: Update dependencies
2510 2009-06-24 Emmanuel Briot <briot@adacore.com>
2512 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2513 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2515 (Source_Data.Lang_Kind): Removed, since it duplicates information
2516 already available through Language.Config.
2517 (Source_Data.Compile): Removed, since information is already available
2518 through the language.
2519 (Is_Compilable): New subprogram.
2520 (Source_Data.Dependency): Removed, since already available through
2522 (Source_Data.Object_Exist, Object_Linked): Removed since available
2523 through the language already.
2524 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2525 bring the two modes closer in the resulting data structures.
2526 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2527 just the name that would point into a hash table.
2528 (Get_Language_From_Name): New subprogram.
2530 2009-06-24 Javier Miranda <miranda@adacore.com>
2532 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2533 visible through limited-with context clauses. In addition, avoid an
2534 extra tag check that is not required when the class-wide
2535 designated types of the operand and target types are
2537 (Tagged_Membership): Handle entities from the limited view.
2539 2009-06-24 Emmanuel Briot <briot@adacore.com>
2541 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2542 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2543 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2544 different vocabularies for similar concepts (Impl/Body_Part and
2545 Spec/Specification).
2546 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2547 some of the information in File_Name_Data. This also saves a bit of
2548 memory. However, since we are now using a pointer we need to test
2549 for null explicitly in several places of the code
2551 2009-06-24 Javier Miranda <miranda@adacore.com>
2553 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2554 from processing the type conversion when the node is
2555 replaced by an N_Raise_Program_Error node.
2557 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2559 * sem_ch6.adb (Designates_From_With_Type): New routine.
2560 (Process_Formals): Since anonymous access types are no longer flagged
2561 as from with types, traverse the designated type to determine whether
2562 it is coming from a limited view.
2564 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2565 (Full_Designated_Type): Use Available_View to extract the non-limited /
2566 full view of a type.
2568 2009-06-24 Robert Dewar <dewar@adacore.com>
2570 * exp_ch6.adb: Minor reformatting
2572 * layout.adb: Minor reformatting
2574 * make.adb: Minor reformatting
2576 2009-06-24 Thomas Quinot <quinot@adacore.com>
2578 * sem_ch10.adb: Minor code reorganization.
2580 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2582 * ttypes.ads: Minor editing.
2584 2009-06-24 Robert Dewar <dewar@adacore.com>
2586 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2587 in deciding to do call-by-copy code.
2589 2009-06-24 Vincent Celier <celier@adacore.com>
2591 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2592 check if an externally built library file is more current than the
2595 2009-06-23 Olivier Hainque <hainque@adacore.com>
2597 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2598 c-common.c and populate in gnat_internal_attribute_table.
2600 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2602 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2603 Available_View only when designated type of an anonymous access type
2606 2009-06-23 Robert Dewar <dewar@adacore.com>
2608 * sem_ch10.adb: Minor reformatting
2610 * ali.ads: Mino reformatting.
2612 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2613 turning off inlining if ASIS mode active).
2615 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2616 This belongs in gnat1drv.adb after switches are scanned.
2618 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2620 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2621 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2622 when dealing with class-wide types. Detect a legal shadow entity and
2623 retrieve its non-limited view.
2625 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2626 subprogram to top package level from Intall_Limited_Withed_Unit.
2627 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2628 Add check which prevents the installation of a limited view if the
2629 non-limited view is already visible through a with clause.
2630 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2631 legal shadow entity which may occur in subprogram formals of anonymous
2634 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2636 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2637 From_With_Type from the designated type to the generated anonymous
2638 access type. Remove associated comment.
2640 * sem_res.adb Add with and use clauses for Sem_Ch10.
2641 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2642 non-limited view. Since the shadow entity may replace a regular
2643 incomplete type, return the available full view.
2645 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2647 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2648 incomplete type declarations. Previous code was potentially quadratic
2649 in the number of visible declarations in any package appearing in a
2650 limited_with_clause.
2652 2009-06-23 Robert Dewar <dewar@adacore.com>
2654 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2655 xref_lib.adb: Minor reformatting
2657 2009-06-23 Robert Dewar <dewar@adacore.com>
2659 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2660 versions which did have a body for this unit.
2662 2009-06-23 Vincent Celier <celier@adacore.com>
2664 * prj-attr.adb: Attribute names Initial_Required_Switches and
2665 Final_Required_Switches changed to Leading_Required_Switches and
2666 Trailing_Required_Switches.
2668 * prj-nmsc.adb (Process_Compiler): Attribute names
2669 Initial_Required_Switches and Final_Required_Switches changed to
2670 Leading_Required_Switches and Trailing_Required_Switches.
2672 * prj.ads (Language_Config): Component Initial_Required_Switches and
2673 Final_Required_Switches changed to Leading_Required_Switches and
2674 Trailing_Required_Switches.
2676 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2677 Final_Required_Switches; add standard names Leading_Required_Switches
2678 and Trailing_Required_Switches.
2680 2009-06-23 Thomas Quinot <quinot@adacore.com>
2682 * prj-conf.adb: Minor reformatting
2684 * xref_lib.adb: Minor cleanup
2686 2009-06-23 Emmanuel Briot <briot@adacore.com>
2688 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2689 prj-conf.ads (Check_Configuration): New parameter
2690 Compiler_Driver_Mandatory.
2692 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2694 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2695 context of the current unit has an inline pragma, the instance is not
2696 rewritten as the declaration of the package wrapper. Handle both
2697 possibilities when retrieving the visible subprogram that renames the
2698 instantiation itself.
2700 2009-06-23 Javier Miranda <miranda@adacore.com>
2702 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2703 designated types referencing entities from the limited view.
2705 2009-06-23 Robert Dewar <dewar@adacore.com>
2707 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2709 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2712 * prj-conf.ads: Minor reformatting
2714 * prj-conf.adb: Minor reformatting
2716 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2718 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2719 to correspond to the log format that gnatmem now expects.
2721 2009-06-23 Vincent Celier <celier@adacore.com>
2723 * prj-attr.adb: New attributes Initial_Required_Switches,
2724 Final_Required_Switches and Object_File_Switches
2726 * prj-nmsc.adb (Process_Compiler): Process new attributes
2727 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2728 Name_Object_File_Switches.
2730 * prj.ads (Language_Config): New component
2731 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2732 Compiler_Final_Required_Switches and Object_File_Switches.
2734 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2735 Final_Required_Switches and Object_File_Switches
2737 2009-06-23 Pascal Obry <obry@adacore.com>
2739 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2741 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2743 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2744 not indicate that the enclosing unit needs a body.
2746 2009-06-23 Emmanuel Briot <briot@adacore.com>
2748 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2750 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2752 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2753 primitive equality include it with its source name even if the
2754 operation is currently invisible, to make sure that the corresponding
2755 slot in the dispatch table is reserved for the internal equality
2756 subsequently generated during expansion.
2758 2009-06-23 Matthew Gingell <gingell@adacore.com>
2760 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2762 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2764 * sysdep.c (__gnat_localtime_tzoff for RTX):
2765 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2766 GetTimeZoneInformation instead.
2768 2009-06-22 Robert Dewar <dewar@adacore.com>
2770 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2772 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2774 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2775 instantiations declared in a previous generic package body.
2777 2009-06-22 Robert Dewar <dewar@adacore.com>
2779 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2780 restriction No_Direct_Boolean_Operators.
2782 2009-06-22 Thomas Quinot <quinot@adacore.com>
2784 * bindusg.adb: Minor fixes to gnatbind usage message
2786 * sem_eval.adb: Minor reformatting
2788 2009-06-22 Javier Miranda <miranda@adacore.com>
2790 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2791 freezing point the check on the use of abstract types in object
2792 declarations. Done to allow the declaration of C++ imported variables
2793 or constants whose type corresponds with an imported C++ classes for
2794 which the constructor is not imported.
2796 2009-06-22 Thomas Quinot <quinot@adacore.com>
2798 * sem_ch6.adb: Minor reformatting
2800 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2802 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2803 component is constrained with an expression rather than with a
2804 discriminant of the enclosing type, use that expression when building
2805 the call to default-initialize the component, when the call is part of
2806 an aggregate with box initialization.
2808 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2810 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2811 unconditional rather than a style check, because a formal name out of
2812 order is suspicious.
2814 2009-06-22 Vincent Celier <celier@adacore.com>
2816 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2817 creating a directory automatically.
2819 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2821 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2822 untagged derived type, add a hidden component for every constrained
2823 discriminant of the parent type to keep record layout consistent.
2825 2009-06-22 Thomas Quinot <quinot@adacore.com>
2827 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2830 2009-06-22 Matthew Gingell <gingell@adacore.com>
2832 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2833 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2834 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2835 a-swuwha.adb: New unit System.String_Hash.
2836 Refactor redundant cut and pasted hash functions with instances of a
2837 new generic hash function.
2838 Implement a new string hashing algorithm which appears in testing to
2839 be move effective than to previous approach.
2841 2009-06-22 Ed Falis <falis@adacore.com>
2843 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2844 message for VxWorks 653 vThreads: not supported by the OS.
2846 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2848 2009-06-22 Robert Dewar <dewar@adacore.com>
2850 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2852 2009-06-22 Robert Dewar <dewar@adacore.com>
2854 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2857 * freeze.adb: Minor comment updates
2859 * s-valrea.adb (Bad_Based_Value): New procedure
2860 (Scan_Real): Raise exceptions with messages
2862 2009-06-22 Matthew Gingell <gingell@adacore.com>
2864 * adaint.h: Complete previous change.
2866 2009-06-22 Thomas Quinot <quinot@adacore.com>
2868 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2870 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2872 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2873 enabled, emit warning when a non-controlling argument of the overriding
2874 operation appears out of place vis-a-vis of the formal of the
2875 overridden operation.
2877 2009-06-22 Vincent Celier <celier@adacore.com>
2879 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2880 have been written into it.
2882 2009-06-22 Matthew Gingell <gingell@adacore.com>
2884 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2887 2009-06-22 Thomas Quinot <quinot@adacore.com>
2889 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2890 view of the root type is visible at the point of the call.
2892 2009-06-22 Pat Rogers <rogers@adacore.com>
2894 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2896 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2898 * freeze.adb: Add comments.
2900 2009-06-21 Thomas Quinot <quinot@adacore.com>
2902 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2903 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2904 Factor out code to new subprogram...
2905 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2906 for a default initialized variable.
2907 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2908 entity that has an associated freeze node.
2909 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2910 If there is an init call for the object, defer it to the object freeze
2912 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2913 name clash with new subprogram introduced in Exp_Util.
2915 2009-06-21 Robert Dewar <dewar@adacore.com>
2917 * einfo.ads: Minor reformatting
2919 2009-06-21 Ed Falis <falis@adacore.com>
2921 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2923 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2925 * einfo.ads: Update comments.
2927 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2929 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2930 where the controlling formal is of private class-wide type whose
2931 completion is a synchronized type can be converted into direct calls.
2933 2009-06-21 Vincent Celier <celier@adacore.com>
2935 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2936 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2937 of sources using -files=, so that the distinction can be made by the
2938 tool of a call with no source (to display the usage) from a call with
2939 a project file that contains no source.
2941 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2943 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2944 case of VM convention arrays.
2946 2009-06-20 Robert Dewar <dewar@adacore.com>
2948 * a-nudira.adb: Minor reformatting
2950 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2952 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2953 expressions (possibly from a parent type) indicate that the scope of
2954 the new itypes is the initialization procedure being built.
2956 2009-06-20 Robert Dewar <dewar@adacore.com>
2958 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2959 Needs_64, and now computed without anomolies for some dynamic types.
2961 2009-06-20 Thomas Quinot <quinot@adacore.com>
2963 * sem_prag.adb: Minor reformatting
2965 * exp_disp.ads: Minor reformatting
2967 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2969 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2970 function call is a legal expression to initialize a limited object.
2972 * exp_ch3.adb: Rename various freeze operations that perform expansion
2973 actions, to prevent confusion with subprograms in the freeze package.
2975 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2977 * sem.adb (Walk_Library_Units): Check instantiations first.
2979 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2980 private primitive if it is a function with a controlling result that is
2981 a type extension with progenitors.
2983 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2984 a primitive operation of a synchronized tagged type that has a
2987 2009-06-20 Thomas Quinot <quinot@adacore.com>
2989 * einfo.ads: Fix typo.
2991 2009-06-20 Ed Falis <falis@adacore.com>
2993 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2995 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2997 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2999 (protect_multiple_eval): Always protect complex expressions.
3001 2009-06-19 Emmanuel Briot <briot@adacore.com>
3003 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3004 make sure we always return a name ending with a path separator.
3006 2009-06-19 Javier Miranda <miranda@adacore.com>
3008 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3009 Save and restore the visibility of the parent when installed.
3011 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3013 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3014 by Common which contains all these fields.
3016 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3017 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3018 Remove code duplication in this package by means of calling the
3019 equivalent code in s-taprob.
3021 2009-06-19 Robert Dewar <dewar@adacore.com>
3023 * a-einuoc.ads: Minor reformatting
3025 2009-06-19 Ed Falis <falis@adacore.com>
3027 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3028 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3030 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3032 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3034 2009-06-19 Robert Dewar <dewar@adacore.com>
3036 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3039 * checks.adb (Determine_Range): Move the test for generic types later.
3041 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3043 (Eval_Relational_Op): Fold more cases including string compares
3045 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
3048 2009-06-19 Robert Dewar <dewar@adacore.com>
3050 * sem_type.ads, sem_ch12.adb: Minor reformatting
3052 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
3054 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3056 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
3057 primitive operation of a rivate extension whose controlling argument
3058 is an out parameter.
3060 * sem.adb (Walk_Library_Units): exclude generic package declarations
3063 2009-06-19 Thomas Quinot <quinot@adacore.com>
3065 * i-vxwoio.ads: Add comments
3067 2009-06-19 Thomas Quinot <quinot@adacore.com>
3069 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3070 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3071 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
3072 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
3073 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
3074 Thin_Common.Socket_Ioctl.
3075 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
3076 __gnat_socket_ioctl.
3077 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
3078 argument after the file descriptor and request code.
3080 2009-06-19 Robert Dewar <dewar@adacore.com>
3082 * checks.adb: Minor reformatting
3084 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3086 * env.c (__gnat_environ): RTX does not support this functionality.
3088 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3090 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
3091 traverse, to account for front-end inlining and instantiations in a
3092 spec or in the main unit.
3094 2009-06-19 Robert Dewar <dewar@adacore.com>
3096 * checks.adb (Determine_Range): Do not attempt to get range of generic
3099 2009-06-19 Sergey Rybin <rybin@adacore.com>
3101 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
3102 gnatmetric option for generating the schema file for gnatmetric XML
3103 output. Add corresponding VMS qualifier.
3105 2009-06-19 Robert Dewar <dewar@adacore.com>
3107 * g-cgi.adb: Minor reformatting
3109 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3111 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
3112 signal code for SIGFPE and raise Program_Error for SIGILL.
3114 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
3116 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3118 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
3119 generic package if there is a visibility candidate that is declared in
3122 2009-06-18 Olivier Hainque <hainque@adacore.com>
3124 * system-aix64.ads: New file.
3125 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
3126 64bit system.ads for ppc64 multilib variants.
3128 2009-06-16 Robert Dewar <dewar@adacore.com>
3129 Olivier Hainque <hainque@adacore.com>
3131 Relax constraints on Machine_Attribute argument types:
3132 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
3134 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
3135 * gcc-interface/decl.c (prepend_attributes): Accept static
3136 expressions of any type as attribute arguments, not only string
3138 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3139 the relaxation of the restriction on the Info argument type.
3141 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3143 * gcc-interface/utils.c (record_builtin_type): Pass location
3144 argument to build_decl.
3145 (create_type_stub_decl): Same.
3146 (create_type_decl): Same.
3147 (create_var_decl_1): Same.
3148 (create_field_decl): Same.
3149 (create_param_decl): Same.
3150 (create_label_decl): Same.
3151 (create_subprog_decl): Same.
3152 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
3153 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
3154 argument to create_artificial_label.
3155 (Loop_Statement_to_gnu): Same.
3156 (Subprogram_Body_to_gnu): Same.
3157 (gnat_gimplify_stmt): Same.
3159 2009-06-11 Richard Henderson <rth@redhat.com>
3161 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
3164 2009-06-11 Ed Schonberg <schonberg@adacore.com>
3166 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
3167 accessibiliy check on access_to_subprogram in the context of an
3168 anonymous access that is not an access parameter.
3170 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
3172 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3174 2009-06-11 Quentin Ochem <ochem@adacore.com>
3176 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3177 comments for message handled by GPS.
3179 2009-06-11 Matthew Gingell <gingell@adacore.com>
3181 * adaint.c: Use fopen64 instead of fopen on platforms where we know
3184 2009-06-11 Pascal Obry <obry@adacore.com>
3186 * g-cgi.ads: Fix comment typo.
3188 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3190 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
3192 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3193 a reference to the original type for the type of the field of the
3195 (maybe_pad_type): Likewise.
3197 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3198 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3199 Pass correctly typed arguments to create_field_decl.
3200 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3201 case of contrained discriminants as well. Use the padded base type
3202 in the other case as well. Rename temporary variable. Tweak test.
3203 Factor common access pattern. Set GNU_SIZE only once.
3205 2009-06-09 Olivier Hainque <hainque@adacore.com>
3207 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3208 helper for build_call_alloc_dealloc with arguments to be interpreted
3209 identically. Process the case where a GNAT_PROC to call is provided.
3210 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3211 and return an allocator for DATA_SIZE bytes aimed at containing a
3212 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
3213 DATA_TYPE alignments greater than what the latter offers.
3214 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3215 release a DATA_TYPE object designated by DATA_PTR using the
3216 __gnat_free entry point.
3217 (build_call_alloc_dealloc): Expect object data type instead of naked
3218 alignment constraint. Use the new helpers.
3219 (build_allocator): Remove special processing for the super-aligned
3220 case, now handled by build_call_alloc_dealloc. Pass data
3221 type instead of the former alignment argument, as expected by the new
3223 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3225 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3226 Remove special processing for the super-aligned case, now handled
3227 by build_call_alloc_dealloc. Pass data type instead of the former
3228 alignment argument, as expected by the new interface.
3230 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3232 * lib-writ.adb (flag_compare_debug): Import.
3233 (Write_ALI): Skip during -fcompare-debug-second.
3235 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3238 adjusting the discriminant nodes in an extension, use the full view
3239 of the parent subtype if it is of a private kind.
3241 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3243 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3244 _Parent field, if any, to the record before adding the other fields.
3245 <E_Record_Subtype>: Put the _Controller field before the other fields
3246 except for the _Tag or _Parent fields.
3247 (components_to_record): Likewise. Retrieve the _Parent field from the
3250 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3252 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3253 remove unused parameter and simplify.
3254 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
3255 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
3256 as context for all discriminants. Fix formatting nits.
3257 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
3258 before Discriminant_Constraint. Adjust for above renaming. Do not
3259 set GNU_TYPE more than once.
3260 (elaborate_entity): Test Has_Discriminants on the entity and use
3261 Implementation_Base_Type.
3262 (components_to_record): Rename component_list to gnat_component_list.
3263 Retrieve the _Parent field from the list. Fix nits in comments.
3264 Clarify logic in loop. Pass correct arguments to create_field_decl.
3266 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
3268 * gcc-interface/Make-lang.in: Fix formatting.
3270 2009-06-01 Olivier Hainque <hainque@adacore.com>
3271 Eric Botcazou <ebotcazou@adacore.com>
3273 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3274 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3275 on the result if at least one of the input fields couldn't be output
3276 as a static constant any more.
3278 2009-06-01 Olivier Hainque <hainque@adacore.com>
3279 Eric Botcazou <ebotcazou@adacore.com>
3281 * gcc-interface/utils2.c (gnat_build_constructor): Factor
3282 out code. Use initializer_constant_valid_for_bitfield_p and
3283 CONSTRUCTOR_BITFIELD_P for bit-fields.
3285 2009-05-26 Ian Lance Taylor <iant@google.com>
3287 * gcc-interface/Makefile.in (COMPILER): Define.
3288 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3289 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3290 (seh_init.o, tracebak.o): Likewise.
3291 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3292 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3293 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3294 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3295 (ada/utils2.o): Likewise.
3297 2009-05-24 Olivier Hainque <hainque@adacore.com>
3299 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3300 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3301 Add -auxbase variants to the list of recognized internal switches.
3302 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3304 * lib.ads: Make comment on internal GCC switches more general.
3305 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3308 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3310 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3312 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3314 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3317 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3319 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3320 original type because of the alignment when there is an address clause.
3322 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3324 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3325 discriminants affect the shape of the subtype, retrieve the GCC type
3326 directly from the original field if the GNAT types for the field and
3327 the original field are the same.
3329 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3331 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3333 (TYPE_RM_VALUES): Likewise.
3334 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3335 (SET_TYPE_RM_SIZE): New macro.
3336 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3337 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3338 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3339 * gcc-interface/gigi.h (create_range_type): Declare.
3340 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3341 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3342 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3343 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3344 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3345 and then set the RM bounds.
3346 <E_Array_Type>: Use create_range_type instead of build_range_type.
3347 <E_Array_Subtype>: Build a regular integer type first and then set
3348 the RM bounds for the extra subtype.
3349 <E_String_Literal_Subtype>: Use create_range_type instead of
3351 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3352 floating-point types.
3353 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3354 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3355 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3356 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3357 types and with RM bounds for subtypes.
3358 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3359 (gnat_print_type) <REAL_TYPE>: New case.
3360 <ENUMERAL_TYPE>: Fall through to above case.
3361 (gnat_get_subrange_bounds): New function.
3362 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3363 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3364 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3365 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3366 (create_range_type): New function.
3367 (create_param_decl): Build a regular integer type first and then set
3368 the RM bounds for the extra subtype.
3369 (unchecked_convert): Remove kludge for 'Valid.
3370 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3371 the index to sizetype instead of TYPE_DOMAIN.
3373 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3375 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3376 parameter and move check for static expression to...
3377 (elaborate_expression): ...here. Adjust call to above function.
3378 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3379 in calls to elaborate_expression.
3380 (elaborate_entity): Likewise.
3381 (substitution_list): Likewise.
3382 (maybe_variable): Fix formatting.
3383 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3385 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3387 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3389 * gcc-interface/Make-lang.in: Update dependencies.
3391 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3393 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3394 Define sa_handler_pos.
3395 * s-osinte-linux.ads: Use it.
3396 * s-linux-mipsel.ads: New.
3397 * system-linux-mips64el.ads: New.
3398 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3401 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3403 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3404 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3405 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3406 (Tagged_Type_Expansion): New flag.
3407 Replace use of VM_Target related to tagged types expansion by
3408 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3409 linked to VM targets.
3411 2009-05-06 Robert Dewar <dewar@adacore.com>
3413 * sem_attr.adb: Add processing for Standard'Compiler_Version
3415 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3417 (Expr_First_Char): Add ??? comment that paren skipping needs work
3418 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3420 * exp_attr.adb: Add processing for Compiler_Version
3422 * sem_attr.adb: New attribute Compiler_Version
3424 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3426 * gnat_rm.texi: Document Compiler_Version attribute
3428 2009-05-06 Robert Dewar <dewar@adacore.com>
3430 * errout.adb: Minor reformatting
3432 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3433 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3434 styleg.adb: Add stylized comments to error messages that are included
3435 in the codefix circuitry of IDE's such as GPS.
3437 2009-05-06 Sergey Rybin <rybin@adacore.com>
3439 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3440 new form of the rule parameter that allows to specify the suffix for
3441 access-to-access type names.
3443 2009-05-06 Robert Dewar <dewar@adacore.com>
3445 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3446 out parameter assigned when exception handlers are present.
3448 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3449 assignments on exit.
3451 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3452 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3453 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3454 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3455 messages that are included in the codefix circuitry of IDE's such as
3458 * sinput.ads, sinput.adb (Expr_First_Char): New function
3459 (Expr_Last_Char): New function
3461 2009-05-06 Sergey Rybin <rybin@adacore.com>
3463 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3464 Add formal definition for extra exit point metric
3466 2009-05-06 Pascal Obry <obry@adacore.com>
3468 * adaint.c: Support for setting attributes on unicode filename on
3471 2009-05-06 Robert Dewar <dewar@adacore.com>
3473 * sem_warn.adb: Minor reformatting
3475 2009-05-06 Javier Miranda <miranda@adacore.com>
3477 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3478 not have discriminants or components with default expressions.
3479 (Analyze_Pragma): For pragma CPP_Class check that imported types
3480 have no discriminants and components have no default expression.
3482 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3483 class-wide types in the expression of a record component association.
3485 2009-05-06 Sergey Rybin <rybin@adacore.com>
3487 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3489 * gnat_ugn.texi: Add description for the new extra exit points metric
3490 (gnatmetric section).
3492 2009-05-06 Robert Dewar <dewar@adacore.com>
3494 * s-fileio.adb: Minor comment update
3496 * sem_ch8.adb: Minor reformatting
3498 * exp_ch3.adb: Update comments.
3500 2009-05-06 Tristan Gingold <gingold@adacore.com>
3502 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3504 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3506 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3507 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3509 * gcc-interface/Make-lang.in: Update dependencies
3511 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3513 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3514 change. The context clause of a generic instance declaration must be
3515 preserved until the end of the compilation, because it may have to be
3516 installed/removed repeatedly.
3517 The latest change to sem.adb ensures that the context of both spec and
3518 body of an instance is traversed before the instance itself, making
3519 this patch redundant.
3521 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3523 * sem_aggr.adb: Fix typo.
3525 2009-05-06 Thomas Quinot <quinot@adacore.com>
3527 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3528 declaration, do not adjust if the declaration is to be rewritten into
3531 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3533 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3536 2009-05-06 Bob Duff <duff@adacore.com>
3538 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3539 otherwise the compiler would be allowed to optimize away the cleanup
3542 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3544 * gnat_ugn.texi: Fix typo.
3546 2009-05-06 Thomas Quinot <quinot@adacore.com>
3548 * g-debuti.adb: Minor reformatting
3550 * exp_attr.adb: Minor reformatting
3552 2009-05-06 Robert Dewar <dewar@adacore.com>
3554 * sem_aggr.adb: Minor reformatting.
3556 * g-socthi-vms.adb: Minor reformatting
3558 2009-05-06 Bob Duff <duff@adacore.com>
3560 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3561 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3563 2009-05-06 Bob Duff <duff@adacore.com>
3565 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3568 2009-05-06 Javier Miranda <miranda@adacore.com>
3570 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3571 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3572 extension aggregates.
3573 (Resolve_Record_Aggregate): Add support for C++ constructors in
3574 extension aggregates.
3576 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3577 constructors in extension aggregates.
3579 2009-05-06 Robert Dewar <dewar@adacore.com>
3581 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3584 2009-05-06 Thomas Quinot <quinot@adacore.com>
3586 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3587 packed type, since on OpenVMS, struct msghdr is packed.
3589 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3591 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3592 call returning an unconstrained composite value, create the proper
3593 subtype for it, as is done for object dclarations with unconstrained
3594 nominal subtypes. Perform this transformation regarless of whether
3595 call comes from source.
3597 2009-05-06 Robert Dewar <dewar@adacore.com>
3599 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3603 Add documentation for pragma Implicit_Packing applied to record
3606 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3608 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3609 instantiation on the spec, because late instance bodies may generate
3610 with_clauses for the instance body but are inserted in the instance
3613 2009-05-06 Emmanuel Briot <briot@adacore.com>
3615 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3616 support for returning the directory even if it doesn't exist. This is
3617 used for the object directory, since we are always setting it to a
3618 non-null value, and we should set it to an absolute name rather than a
3619 relative name for the sake of external tools that might depend on it.
3620 (Check_Library_Attributes): When Project.Library_Dir is known, check
3621 that the directory exists.
3623 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3625 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3626 reference is an implicit dereference, do not freeze the designated type
3627 if within a default expression or when preanalyzing a pre/postcondtion.
3629 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3631 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3632 call returning an unconstrained composite value, create the proper
3633 subtype for it, as is done for object dclarations with unconstrained
3636 2009-05-06 Robert Dewar <dewar@adacore.com>
3638 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3641 * freeze.adb: Minor reformatting
3643 2009-05-06 Thomas Quinot <quinot@adacore.com>
3645 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3646 designated type is a limited view from a limited with clause (flagged
3647 From_With_Type) is not itself such a limited view.
3649 2009-05-06 Emmanuel Briot <briot@adacore.com>
3651 * prj-nmsc.adb: Remove unused variable.
3653 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3654 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3655 makeutl.ads, since not all users of prj.ads need this.
3657 2009-05-06 Javier Miranda <miranda@adacore.com>
3659 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3660 constructor in case of aggregates whose type is a CPP_Class type.
3662 2009-05-06 Robert Dewar <dewar@adacore.com>
3664 * sem_ch13.adb: Minor comment additions
3666 * osint.adb: Minor reformatting
3668 2009-05-06 Pascal Obry <obry@adacore.com>
3670 * initialize.c: On Windows, keep full pathname to expanded command
3673 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3675 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3676 an aggregate with box default is of a discriminated private type, do
3677 not build a subaggregate for it.
3678 A proper call to the initialization procedure is generated for it.
3680 2009-05-06 Thomas Quinot <quinot@adacore.com>
3682 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3683 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3684 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3685 use standard array code for Standard.String.
3686 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3687 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3689 2009-05-06 Robert Dewar <dewar@adacore.com>
3691 * g-comlin.ads: Minor reformatting
3693 * xoscons.adb: Minor reformatting
3695 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3697 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3698 Underlying_Type before retrieving the type definition for gathering
3699 components, to account for the case where the type is private.
3701 2009-05-06 Tristan Gingold <gingold@adacore.com>
3703 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3705 2009-05-06 Thomas Quinot <quinot@adacore.com>
3707 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3708 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3709 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3710 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3711 Windows versions): Fix incorrect base
3712 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3713 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3714 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3715 achieve independance from AF_INET family, and also to allow this
3716 parameter to be retrieved from a Msghdr for the Windows case where
3717 these routines are used to implement C_Sendmsg and C_Recvmsg.
3719 2009-05-06 Bob Duff <duff@adacore.com>
3721 * g-expect.adb, g-expect.ads: Minor reformatting
3723 * sdefault.ads: Minor comment fix
3725 * g-expect-vms.adb: Minor reformatting
3727 * table.ads, table.adb (Append_All): New convenience procedure for
3728 appending a whole array.
3730 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3731 box message. Call Osint.Dump_Source_File_Names to print out the file
3732 list, instead of rummaging around in various data structures.
3734 * debug.adb: New switch -gnatd.n, to print source file names as they
3737 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3739 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3740 out source file names during a "bug box".
3741 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3742 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3743 If it's not part of the runtimes, store it for later printing by
3744 Dump_Source_File_Names.
3746 2009-05-06 Javier Miranda <miranda@adacore.com>
3748 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3749 documentation and add reference to the GNAT user guide for further
3752 2009-05-06 Javier Miranda <miranda@adacore.com>
3754 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3755 also wrong examples that use extension aggregates.
3757 2009-05-06 Albert Lee <lee@adacore.com>
3759 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3760 of Msg_Iovlen_T for VMS.
3762 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3765 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3767 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3769 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3770 box-defaulted operator in an instantiation, when the type of the
3771 operands is not directly visible.
3773 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3775 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3776 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3777 analysis of the ancestor part. Remove prohibition against limited
3778 interpretations of the ancestor expression in the case of Ada 2005.
3779 Revise error message in overloaded case, adding a message to cover
3782 2009-04-29 Thomas Quinot <quinot@adacore.com>
3784 * xoscons.adb: Minor reformatting
3786 2009-04-29 Bob Duff <duff@adacore.com>
3788 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3789 attribute_definition_clauses for the following attributes when the
3790 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3791 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3792 missing Read attribute on remote types).
3794 * gnat_ugn.texi: Document the change, and add a stern warning.
3796 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3798 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3799 disabled not just for the current scope, but for the innermost dynamic
3802 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3804 * gcc-interface/Make-lang.in: Update dependencies
3806 2009-04-29 Vincent Celier <celier@adacore.com>
3808 * prj-part.adb: Minor comment update
3810 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3812 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3813 box-initialized records with discriminated subcomponents that are
3814 constrained by discriminants of enclosing components. New subsidiary
3815 procedures Add_Discriminant_Values, Propagate_Discriminants.
3817 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3819 * g-socket.adb: Code clean up.
3821 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3823 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3824 function entity, to cover the case of a parameterless function call
3825 that has not been resolved.
3827 2009-04-29 Robert Dewar <dewar@adacore.com>
3829 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3830 reformatting and comment updates.
3832 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3834 * gnat_ugn.texi: Update some documentation about interfacing with C++
3835 Mention -fkeep-inline-functions.
3837 * gnat_ugn.texi: Minor edits
3839 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3841 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3842 for a defaulted component of an enclosing aggregate, inherit the type
3843 from the component declaration of the enclosing type.
3845 2009-04-29 Albert Lee <lee@adacore.com>
3847 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3848 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3849 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3850 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3851 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3852 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3853 type for the Msg_Iovlen field.
3855 2009-04-29 Vincent Celier <celier@adacore.com>
3857 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3858 Source_File_Index_Table entries for the source, to avoid crash when
3861 * gnatcmd.adb (Test_If_Relative_Path): Use
3862 Makeutl.Test_If_Relative_Path.
3864 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3865 Including_RTS is True.
3867 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3868 Including_RTS defaulted to False.
3870 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3873 2009-04-29 Javier Miranda <miranda@adacore.com>
3875 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3877 2009-04-29 Javier Miranda <miranda@adacore.com>
3879 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3880 associated with dyamically tagged expressions if the expression
3881 initializing a tagged type corresponds with a non default CPP
3883 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3884 of limited type objects.
3886 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3887 when a CPP constructor is called in an assignment. Disable also the
3888 error message associated with dyamically tagged expressions if the
3889 exporession initializing a tagged type corresponds with a non default
3892 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3893 non-default C++ constructors.
3895 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3897 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3898 non-default constructors.
3899 (Init_Proc): Add support for non-default constructors.
3901 * exp_disp.adb (Set_Default_Constructor): Removed.
3902 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3903 but extending its functionality to handle non-default constructors.
3905 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3906 constructors. Minor code cleanup removing unrequired label and goto
3909 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3911 (Build_Init_Statements): Add support for non-default constructors.
3912 (Expand_N_Object_Declaration): Add support for non-default constructors.
3913 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3914 to Set_CPP_Constructors.
3916 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3917 non-default constructors.
3918 Required to handle its use in build-in-place statements.
3920 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3921 pragma for non-default C++ constructors and the new compiler support
3922 that allows the use of these constructors in record components, limited
3923 aggregates, and extended return statements.
3925 2009-04-29 Vincent Celier <celier@adacore.com>
3927 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3928 project extending an abstract project.
3930 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3932 * targparm.ads: Fix oversight.
3934 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3936 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3937 derivation when necessary, to find the user-subprogram that is actally
3940 2009-04-29 Robert Dewar <dewar@adacore.com>
3942 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3945 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3947 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3948 primitive operation, rather than source line of synchronized type, when
3949 building the wrapper for a primitive operation that overrides an
3950 operation inherited from a progenitor, to improve the error message on
3951 duplicate declarations.
3953 * sem_ch3.adb (Process_Full_View): Use new signature of
3956 2009-04-29 Robert Dewar <dewar@adacore.com>
3958 * prj-nmsc.ads: Minor reformatting
3960 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3962 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3963 expression on the existing parent If statement.
3965 2009-04-29 Robert Dewar <dewar@adacore.com>
3967 * prj-proc.adb, prj.ads: Minor reformatting
3969 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3971 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3972 existing parent If statement on the newly created one.
3974 2009-04-29 Emmanuel Briot <briot@adacore.com>
3976 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3977 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3978 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3979 (Set_In_Configuration, In_Configuration): Removed.
3980 Replaced by an extra parameter Is_Config_File in several parameter to
3981 avoid global variables to store the state of the parser.
3983 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3985 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3986 with_clauses generated for the same unit through rtsfind, and that
3987 appear in the context of different units.
3989 * rtsfind.adb: New attribute First_Implicit_With, component of the
3990 Unit_Record that stores information about a unit loaded through rtsfind.
3992 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3994 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3995 (other conditions permitting), so that abstract stream subprograms will
3996 be declared for them.
3998 2009-04-29 Bob Duff <duff@adacore.com>
4000 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4002 * g-expect.ads: Minor comment fixes.
4004 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4006 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4007 dispatching operation is a body without previous spec, update the list
4008 of primitive operations to ensure that cross-reference information is
4011 2009-04-29 Albert Lee <lee@adacore.com>
4013 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4014 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4015 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4016 (GNAT.Sockets.Thin.C_Readv,
4017 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4018 (GNAT.Sockets.Thin.C_Recvmsg,
4019 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4021 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4022 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4024 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4026 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4027 operation is a body without previous spec, update the list of
4028 primitive operations to ensure that cross-reference information is
4031 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4032 new compilation unit node for the instance declaration, keep the
4033 context items of the original unit on it, so that the context of the
4034 instance body only holds the context inherited from the generic body.
4036 2009-04-29 Bob Duff <duff@adacore.com>
4038 * sem_res.adb: Minor comment fix.
4040 2009-04-29 Thomas Quinot <quinot@adacore.com>
4042 * sem_elim.adb: Minor reformatting
4044 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4046 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
4047 predefined unit, allow arbitrary number of components in static
4048 aggregate, to ensure that the same level of constant folding applies
4049 for Ada 95 and Ada 05 versions of the file.
4051 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4053 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
4054 information: no need for full scope check.
4055 (Eliminate_Error): Do not emit error in a generic context.
4057 2009-04-29 Ed Falis <falis@adacore.com>
4059 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
4060 VxWorks 653 POS does not support rmdir.
4062 2009-04-29 Matteo Bordin <bordin@adacore.com>
4064 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
4065 results are printed.
4067 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4069 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
4072 2009-04-29 Thomas Quinot <quinot@adacore.com>
4074 * make.adb: Minor reformatting.
4075 Minor code reorganization throughout.
4077 2009-04-29 Matteo Bordin <bordin@adacore.com>
4079 * s-stausa.ads: Changed visibility of type Task_Result: moved to
4080 public part to give application visibility over it.
4081 This is for future improvement and to build a public API on top of it.
4082 Changed record components name of type Task_Result to reflect the new
4085 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
4086 reporting Stack usage.
4088 * gnat_ugn.texi: Update doc of stack usage report.
4090 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
4092 * Makefile.rtl: Add new run-time files.
4094 2009-04-29 Pascal Obry <obry@adacore.com>
4096 * initialize.c: Do not expand quoted arguments.
4098 2009-04-29 Emmanuel Briot <briot@adacore.com>
4100 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
4102 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
4103 Prj.Ultimate_Extending_Project_Of
4105 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4107 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
4108 Amendment type, add the with_clause for Finalization.List_Controller
4109 only if the current context is a package body.
4111 2009-04-29 Thomas Quinot <quinot@adacore.com>
4113 * sem_ch12.adb: Minor reformatting
4115 * sem_aggr.adb: Minor reformatting
4117 * sem_ch6.adb, sem_cat.ads: Minor reformatting
4119 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
4121 2009-04-29 Quentin Ochem <ochem@adacore.com>
4123 * prj.ads (Source_Id): Now general pointer type.
4125 2009-04-29 Thomas Quinot <quinot@adacore.com>
4127 * exp_ch7.adb, rtsfind.adb: Minor reformatting
4129 * sem_res.adb: Minor reformatting
4131 2009-04-29 Thomas Quinot <quinot@adacore.com>
4133 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
4134 operands is static only if it is a predefined concatenation operator.
4136 * sem_util.adb: Minor reformatting
4138 * sem_ch12.adb (Save_References): When propagating semantic information
4139 from generic copy back to generic template, for the case of an
4140 identifier that has been rewritten to an explicit dereference whose
4141 prefix is either an object name or a parameterless funcion call
4142 denoting a global object or function, properly capture the denoted
4143 global entity: perform the corresponding rewriting in the template,
4144 and point the rewritten identifier to the correct global entity (not
4145 to the associated identifier in the generic copy).
4147 2009-04-29 Robert Dewar <dewar@adacore.com>
4149 * rtsfind.adb, prj-env.adb: Minor reformatting
4150 Minor code reorganization
4152 2009-04-29 Emmanuel Briot <briot@adacore.com>
4154 * make.adb: Fix comment
4156 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
4157 is given as argument, as might happen in gnatmake.
4159 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4161 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
4162 an abstract operation of a progenitor is not properly overridden by an
4163 operation of a derived synchronized type.
4165 2009-04-29 Robert Dewar <dewar@adacore.com>
4167 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
4168 prj-proc.adb: Minor reformatting
4169 Minor code reorganization
4171 2009-04-29 Bob Duff <duff@adacore.com>
4173 * exp_ch7.adb (Build_Final_List): For an access type that designates a
4174 Taft Amendment type, if the access type needs finalization, make sure
4175 the implicit with clause for List_Controller occurs on the package spec.
4177 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4178 with's created for the pseudo-children of Text_IO and friends. In
4179 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4180 Ada.Text_IO.Integer_IO both with-ing each other.
4182 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4183 oddball cases when pragma Extend_System is used.
4185 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4186 the case where a package spec instantiates a generic whose body with's
4187 this package, so Walk_Library_Items won't complain about cyclic with's.
4189 2009-04-29 Emmanuel Briot <briot@adacore.com>
4191 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4192 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4193 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4194 (Project_Id): now a real pointer to Project_Data, instead of an index
4195 into the Projects_Table. This simplifies the API significantly, avoiding
4196 extra lookups in this table and the need to pass the Project_Tree_Ref
4197 parameter in several cases
4199 2009-04-29 Nicolas Setton <setton@adacore.com>
4201 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4204 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4206 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4209 2009-04-24 Robert Dewar <dewar@adacore.com>
4211 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4212 clean.adb: Minor reformatting.
4213 Minor code reorganization and message improvement.
4215 2009-04-24 Emmanuel Briot <briot@adacore.com>
4217 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4218 (Alternate_Languages): now implemented as a malloc-ed list rather
4219 than through a table.
4221 2009-04-24 Thomas Quinot <quinot@adacore.com>
4223 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4224 accurately handle cases such as "lit" & "lit" and
4225 "lit" & static_string_constant
4227 2009-04-24 Emmanuel Briot <briot@adacore.com>
4229 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4230 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4231 removed. Lists of projects are now implemented via standard malloc
4232 rather than through the table.
4234 2009-04-24 Thomas Quinot <quinot@adacore.com>
4236 * sem_ch12.adb: Minor reformatting
4238 * g-trasym.adb: Minor reformatting
4240 * exp_ch6.adb: Minor reformatting
4242 2009-04-24 Robert Dewar <dewar@adacore.com>
4244 * layout.adb (Layout_Type): For packed array type, copy unset
4245 size/alignment fields from the referenced Packed_Array_Type.
4247 2009-04-24 Bob Duff <duff@adacore.com>
4249 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4250 longer needed after sem_ch12 changes.
4252 * sem.adb (Walk_Library_Items): Include with's in some debugging
4255 2009-04-24 Emmanuel Briot <briot@adacore.com>
4257 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4258 only ever using the Project field.
4260 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4262 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4263 Body_Required on the generated compilation node. The new node is linked
4264 to its body, but both share the same file, so we do not set this flag
4265 on the new unit so as not to create a spurious dependency on a
4266 non-existent body in the ali file for the instance.
4268 2009-04-24 Robert Dewar <dewar@adacore.com>
4270 * make.adb: Minor reformatting
4272 2009-04-24 Emmanuel Briot <briot@adacore.com>
4274 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4275 Add_Source): merge some code between those. In particular change where
4276 file normalization is done to avoid a few extra calls to
4277 Canonicalize_File_Name. This also removes the need for passing
4278 Current_Dir in a number of subprograms.
4280 2009-04-24 Bob Duff <duff@adacore.com>
4282 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4283 False, assign the correct unit to the Cunit field of the new table
4284 entry. We want the spec unit, not the body unit.
4286 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4287 interface for these.
4288 (Maybe_Add_With): Check whether we're trying to a with on the current
4289 unit, and avoid creating such directly self-referential with clauses.
4290 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4291 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4292 and matches existing comments in the spec.
4294 * sem.adb (Walk_Library_Items): Add various special cases to make the
4297 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4298 instead of Parent (N), for uniformity.
4300 2009-04-24 Robert Dewar <dewar@adacore.com>
4302 * errout.ads: Minor reformatting
4304 2009-04-24 Emmanuel Briot <briot@adacore.com>
4306 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4307 behavior when the project includes sources from multiple languages
4309 2009-04-24 Vincent Celier <celier@adacore.com>
4311 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4312 is a language other than Ada declared.
4314 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4315 Imported_First set to True.
4317 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4319 * sem_res.adb: additional optimization to inhibit creation of
4320 redundant transient scopes.
4322 2009-04-24 Bob Duff <duff@adacore.com>
4324 * rtsfind.ads: Minor comment fix
4326 2009-04-24 Emmanuel Briot <briot@adacore.com>
4328 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4329 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4330 basically doing the same work (for explicit or implicit sources).
4331 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4332 role. Rewritten to share some code (testing that all explicit sources
4333 have been found) between ada_only and multi_language modes.
4335 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4337 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4338 for CLI imported types.
4339 (Analyze_Pragma): Allow CIL or Java imported functions returning
4340 access-to-subprogram types.
4342 2009-04-24 Emmanuel Briot <briot@adacore.com>
4344 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4345 (Project_Data.Dir_Path): field removed, since it can be computed
4346 directly from .Directory, and is needed only once when processing the
4347 project is buildgpr.adb or make.adb
4349 2009-04-24 Robert Dewar <dewar@adacore.com>
4351 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4352 rtsfind.adb: Minor reformatting.
4353 Minor code reorganization
4355 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4357 * mlib-prj.adb: Use friendlier english identifier.
4359 * gnatcmd.adb, make.adb: Use better english identifiers.
4361 2009-04-24 Robert Dewar <dewar@adacore.com>
4363 * clean.adb: Minor reformatting
4365 2009-04-24 Robert Dewar <dewar@adacore.com>
4367 * einfo.adb (OK_To_Rename): New flag
4369 * einfo.ads (OK_To_Rename): New flag
4371 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4374 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4376 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4379 2009-04-24 Emmanuel Briot <briot@adacore.com>
4381 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4382 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4383 field removed. This is not a property of the
4384 project, just a boolean used to traverse the project tree, and storing
4385 it in the structure prevents doing multiple traversal in parallel.
4386 (Project_Data.Checked): also removed, since it was playing the same role
4387 as Seen when we had two nested loops, and this is no longer necessary
4388 (For_All_Imported_Projects): removed, since in fact there was already
4389 the equivalent in For_Every_Project_Imported. The latter was rewritten
4390 to use a local hash table instead of Project_Data.Seen
4391 Various loops were rewritten to use For_Every_Project_Imported, thus
4392 removing the need for Project_Data.Seen. This avoids a lot of code
4395 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4397 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4398 statements, even though the actual of the call is a concatenation,
4399 because the argument is static, and we want to preserve warning
4400 messages about sequences of code statements that are not marked
4403 * sem_warn.adb: remove obsolete comment about warning being obsolete
4405 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4406 requeued and the delay has expired while within the accept statement
4407 that executes the requeue, do not perform the requeue and indicate that
4408 the timed call has been aborted.
4410 2009-04-24 Emmanuel Briot <briot@adacore.com>
4412 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4413 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4414 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4415 since they can be computed from the above.
4417 2009-04-24 Vincent Celier <celier@adacore.com>
4419 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4421 * prj-env.adb: Move all global variables to the private part of the
4423 Access these new components instead of the global variables no longer
4425 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4426 components that were previously global variables.
4428 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4429 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4432 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4433 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4435 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4436 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4437 components in the private part of the project tree data.
4439 * prj.ads (Private_Project_Tree_Data): new components moved from
4440 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4441 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4442 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4444 2009-04-24 Vincent Celier <celier@adacore.com>
4446 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4448 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4449 projects, when --unchecked-shared-lib-imports is used.
4451 2009-04-24 Robert Dewar <dewar@adacore.com>
4453 * sem_ch7.adb: Minor reformatting
4455 2009-04-24 Tristan Gingold <gingold@adacore.com>
4457 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4460 2009-04-24 Emmanuel Briot <briot@adacore.com>
4462 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4463 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4464 (For_All_Imported_Projects): new procedure
4465 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4466 above rather than duplicating code.
4468 2009-04-24 Emmanuel Briot <briot@adacore.com>
4470 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4471 (Source_Id, Source_Data): use a real list to store sources rather than
4472 using an external table to store the elements. This makes code more
4473 efficient and more readable.
4475 2009-04-24 Emmanuel Briot <briot@adacore.com>
4477 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4478 (Source_Iterator): new type.
4479 This removes the need for having the sources on three different
4480 lists at the project tree, project and language level. They are now
4483 2009-04-24 Emmanuel Briot <briot@adacore.com>
4485 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4487 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4489 * sem_warn.adb: Add comment on obsolete warning
4491 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4493 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4495 2009-04-24 Emmanuel Briot <briot@adacore.com>
4497 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4498 to Language_Ptr to better reflect its new implementation.
4499 (Project_Data.First_Languages_Processing): renamed to Languages now
4500 that the field with that name is no longer used
4501 (Project_Data.Languages): removed, no longer used, and duplicates
4502 information already available through First_Language_Processing.
4503 (Prj.Language_Index): now an actual pointer, instead of an index into
4504 a table. This makes the list somewhat more obvious, but more importantly
4505 removes the need to pass a pointer to the project_tree_data in a few
4506 places, and makes accessing the attributes of a languages more
4509 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4510 Thomas Quinot <quinot@adacore.com>
4512 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4513 * gcc-interface/misc.c (internal_error_function): Make copy of return
4514 from pp_formatted_text before assigning BUFFER to it.
4515 (gnat_init): Likewise for main_input_filename and gnat_argv.
4516 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4518 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4520 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4521 (Target_Double_Scalar_Alignment): Likewise.
4522 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4523 (Get_Double_Float_Alignment): New imported function.
4524 (Get_Double_Scalar_Alignment): Likewise.
4525 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4526 the alignment of "double" floating-point types and "double" or larger
4527 scalar types, as parameterized by Target_Double_Float_Alignment and
4528 Target_Double_Scalar_Alignment respectively.
4529 * gcc-interface/gigi.h (double_float_alignment): Declare.
4530 (double_scalar_alignment): Likewise.
4531 (is_double_float_or_array): Likewise.
4532 (is_double_scalar_or_array): Likewise.
4533 (get_target_double_float_alignment): Likewise.
4534 (get_target_double_scalar_alignment): Likewise.
4535 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4536 (get_target_strict_alignment): ...this.
4537 (get_target_double_float_alignment): New function.
4538 (get_target_double_scalar_alignment): Likewise.
4539 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4540 Test the presence of an alignment clause for under-aligned integer
4541 types. Take into account specific caps for the alignment of "double"
4542 floating-point types and "double" or larger scalar types, as
4543 parameterized by Target_Double_Float_Alignment and
4544 Target_Double_Scalar_Alignment respectively.
4545 (validate_alignment): Likewise.
4546 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4547 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4548 * gcc-interface/utils.c (double_float_alignment): New global variable.
4549 (double_scalar_alignment): Likewise.
4550 (is_double_float_or_array): New predicate.
4551 (is_double_scalar_or_array): Likewise.
4553 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4555 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4556 the conditional expression only if it is common to both arms.
4558 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4560 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4561 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4562 arguments to build_allocator.
4563 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4564 Remove code handling special allocator and assert its uselessness.
4566 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4568 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4569 alignment is specified, do not promote that of the component type
4571 <E_Array_Subtype>: Likewise.
4573 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4575 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4576 * sinfo.ads (Object Declaration): Likewise.
4577 (Assignment Statement): Likewise.
4578 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4579 Do not force Is_True_Constant to false on the temporary.
4580 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4581 the RHS of object declarations.
4582 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4583 New case. Return 1 if the object is atomic.
4584 <N_Assignment_Statement>: Likewise.
4586 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4588 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4589 For packed array types, make the original array type a parallel type
4590 for the modular type and its JM wrapper if the type is bit-packed.
4591 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4592 record type for packed array types. Remove kludge.
4594 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4596 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4597 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4598 Use front-end predicates to compute signedness and precision.
4599 <E_String_Literal_Subtype>: Fold range type.
4600 Make sure to set longest_float_type_node to a scalar type.
4601 (elaborate_entity): Use consistent Constraint_Error spelling.
4602 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4603 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4604 output for the modulus, if any.
4605 <ENUMERAL_TYPE>: Likewise for the RM size.
4606 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4608 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4609 of BLKmode bit-fields to compute their addressability.
4610 (create_index_type): Adjust comments.
4611 (create_param_decl): Create the biased subtype manually.
4612 * gcc-interface/utils2.c (build_component_ref): Use consistent
4613 Constraint_Error spelling.
4615 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4617 * gcc-interface/cuintp.c: Clean up include directives.
4618 * gcc-interface/targtyps.c: Likewise.
4619 * gcc-interface/decl.c: Likewise.
4620 * gcc-interface/misc.c: Likewise.
4621 * gcc-interface/trans.c: Likewise.
4622 * gcc-interface/utils.c: Likewise.
4623 * gcc-interface/utils2.c: Likewise.
4624 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4626 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4628 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4629 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4630 (SET_DECL_LANG_SPECIFIC): Likewise.
4632 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4633 Update comment about use of build_range_type.
4634 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4635 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4636 check for other cases of overloading.
4637 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4638 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4639 Use size_int in lieu of build_int_cst.
4640 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4643 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4645 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4646 type is an enumeral or a boolean type, change it to an integer type
4647 with the same mode and signedness.
4649 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4651 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4652 for an external constant whose initializer is not absolute.
4654 2009-04-22 Taras Glek <tglek@mozilla.com>
4656 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4657 * gcc-interface/trans.c: Likewise.
4658 * gcc-interface/utils.c: Likewise.
4660 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4662 * sem_res.adb: Create block around procedure call when actual is a
4665 2009-04-22 Thomas Quinot <quinot@adacore.com>
4667 * s-soflin.ads: Fix typos
4669 2009-04-22 Vincent Celier <celier@adacore.com>
4671 * prj-env.adb: Minor comment change
4673 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4674 Get_Name_String with No_File.
4676 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4677 cannot be created even when not in verbose mode.
4679 2009-04-22 Emmanuel Briot <briot@adacore.com>
4681 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4682 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4683 Multi_Language modes, to avoid code duplication.
4684 (Project_Data.Include_Language): Removed.
4686 2009-04-22 Vincent Celier <celier@adacore.com>
4688 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4689 the temporary file cannot be created, indicating the directory when the
4690 creation was attempted.
4692 2009-04-22 Emmanuel Briot <briot@adacore.com>
4694 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4695 the language names, not their indices.
4697 2009-04-22 Emmanuel Briot <briot@adacore.com>
4699 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4700 (Source_Data.Language_Name): Field removed.
4702 2009-04-22 Emmanuel Briot <briot@adacore.com>
4704 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4707 2009-04-22 Emmanuel Briot <briot@adacore.com>
4709 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4710 separate_suffix to the same value as the body_suffix.
4712 2009-04-22 Robert Dewar <dewar@adacore.com>
4714 * prj.adb: Minor code reorganization
4717 * prj-proc.adb: Minor code reorganization, clean up.
4719 * prj-nmsc.adb: Minor reformatting
4720 Minor code reorganization
4722 * gnat_ugn.texi: Add to doc on strict aliasing
4724 2009-04-22 Pascal Obry <obry@adacore.com>
4726 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4729 * s-tasini.adb: Minor reformatting.
4731 * s-tassta.adb: Minor reformatting.
4733 2009-04-22 Emmanuel Briot <briot@adacore.com>
4735 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4736 smaller subprograms.
4737 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4738 other Check_Naming_Schemes functions that plays a totally different
4740 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4741 extracted from the above. These were partially rewritten to avoid
4742 unnecessary code and temporary variables.
4743 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4744 and Get_Unit (which for now still exist since they contain mode-specific
4747 2009-04-22 Emmanuel Briot <briot@adacore.com>
4749 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4750 Remove duplicated code.
4751 (Canonical_Case_File_Name): new subprogram
4752 (Check_And_Normalize_Unit_Names): new subprogram
4753 (Write_Attr): new subprogram
4754 Better sharing of code
4755 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4756 split Check_Naming and help find duplicated code
4757 (Check_Common): new subprogram, sharing code between ada_only and
4758 multi_language mode.
4759 (Naming_Data.Dot_Repl_Loc): field removed
4761 2009-04-22 Emmanuel Briot <briot@adacore.com>
4763 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4764 Minor refactoring to reduce the size of
4765 Process_Sources_In_Multi_Language_Mode.
4766 Avoid extra copied of Source_Data, which we found in the past could be
4768 (Mark_Excluded_Sources): new subprogram.
4769 (Remove_Locally_Removed_Files_From_Units): merged into the above
4770 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4771 and allow better sharing of code between multi_lang and ada_only modes
4772 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4774 2009-04-22 Emmanuel Briot <briot@adacore.com>
4776 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4777 Removed, since unused.
4779 2009-04-22 Vincent Celier <celier@adacore.com>
4781 * prj-attr.adb: New single project level attribute
4782 Separate_Run_Path_Options.
4784 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4785 attribute Seperate_Run_Path_Options.
4787 * prj.ads: (Project_Configuration): New Boolean component
4788 Separate_Run_Path_Options, defaulted to False.
4790 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4792 2009-04-22 Robert Dewar <dewar@adacore.com>
4794 * sem_type.adb: Minor reformatting
4796 * mlib.adb: Minor reformatting
4798 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4801 2009-04-22 Nicolas Setton <setton@adacore.com>
4803 * link.c: Add flag __gnat_separate_run_path_options.
4805 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4807 * mlib.ads (Separate_Run_Path_Options): Declare.
4809 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4810 switch per directory, rather than one "rpath" switch listing all
4813 * gnatlink.adb (Process_Binder_File): Likewise.
4815 * make.adb (Gnatmake): Likewise.
4817 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4819 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4820 Add a call to Move_Final_List when the target of the assignment is a
4821 return object that needs finalization and the expression is a
4822 controlled build-in-place function.
4824 2009-04-22 Vincent Celier <celier@adacore.com>
4826 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4827 Including_Libraries set to True.
4829 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4831 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4832 create a unit table entry for the subprogram declaration created for a
4833 child suprogram body that has no separate specification.
4835 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4836 subprogram body, call Make_Child_Decl_Unit.
4838 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4839 table can only be the created specification of a child subprogram body
4840 that is the main unit, which has not been entered in the table yet.
4842 * errout.adb (Output_Messages): Ignore created specification of a
4843 child subprogram body to prevent repeated listing of error messages.
4845 * gnat1drv.adb (gnat1drv): The generated specification for a child
4846 subprogram body does not generate code.
4848 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4850 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4851 since this unit is now part of bootstrap units, so must use Ada 95
4854 2009-04-22 Thomas Quinot <quinot@adacore.com>
4856 * a-tasatt.adb: Minor reformatting
4858 2009-04-22 Bob Duff <duff@adacore.com>
4860 * s-stalib.ads: Remove "with System;" since we're inside System, so
4863 2009-04-22 Vincent Celier <celier@adacore.com>
4865 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4866 the source record, as there may be a dependency file even if no object
4869 2009-04-22 Robert Dewar <dewar@adacore.com>
4871 * lib-load.adb: Minor reformatting
4873 * lib-load.ads: Minor reformatting
4875 * sinfo.ads: Minor reformatting
4877 2009-04-22 Bob Duff <duff@adacore.com>
4879 * exp_pakd.adb: Minor comment fixes.
4881 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4882 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4883 include units containing instantiations, as well as units that are
4884 generic instantiations.
4886 * sem.adb: Include dependents and corresponding specs/bodies in the
4889 * gcc-interface/Make-lang.in:
4890 sem now depends on s-bitops, because of the packed array of Booleans.
4892 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4894 * gcc-interface/ada-tree.def: Fix formatting nits.
4895 (REGION_STMT): Delete.
4896 (HANDLER_STMT): Likewise.
4897 * gcc-interface/ada-tree.h: Fix formatting nits.
4899 (REGION_STMT_BODY): Likewise.
4900 (REGION_STMT_HANDLE): Likewise.
4901 (REGION_STMT_BLOCK): Likewise.
4902 (HANDLER_STMT_ARG): Likewise.
4903 (HANDLER_STMT_LIST): Likewise.
4904 (HANDLER_STMT_BLOCK): Likewise.
4905 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4906 (fp_size_to_prec): Likewise.
4907 (largest_move_alignment): Delete.
4908 (gnat_compute_largest_alignment): Likewise.
4910 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4911 Remove redundant code.
4912 <E_Array_Type>: Remove redundant assert.
4913 <E_Array_Subtype>: Exit early from index computation in pathological
4915 Rewrite conditional assignment.
4916 (make_type_from_size): Likewise.
4917 * gcc-interface/misc.c (largest_move_alignment): Delete.
4918 (gnat_finish_incomplete_decl): Likewise.
4919 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4920 (asm_out_file): Likewise
4921 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4922 (gnat_dwarf_name): Move around.
4923 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4924 (gigi): Remove call to gnat_compute_largest_alignment.
4925 * utils.c (create_field_decl): Rewrite conditional assignment.
4928 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4930 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4931 on entry. Defer common processing for types. Reorder and clean up.
4932 Compute the equivalent GNAT node and the default size for types only.
4933 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4934 <E_Access_Type>: For an unconstrained designated type, do not pretend
4935 that a dummy type is always made.
4936 <all> Fix nits in comments.
4937 (validate_size): Fix formatting nits and comments.
4938 (set_rm_size): Likewise.
4939 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4940 passed to TARGET_PROMOTE_PROTOTYPES hook.
4942 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4944 * fe.h (Get_External_Name): Declare.
4945 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4946 (concat_name): ...this.
4947 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4948 gnu_entity_name and adjust for above renaming.
4949 <E_Access_Type>: Use create_concat_name to get the name of the various
4950 types associated with unconstrained array types.
4951 (make_aligning_type): Adjust for above renaming.
4952 (maybe_pad_type): Likewise.
4953 (components_to_record): Likewise. Use get_identifier_with_length for
4954 the encoding of the variant.
4955 (get_entity_name): Use get_identifier_with_length.
4956 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4957 Do not fiddle with Name_Buffer.
4958 (concat_id_with_name): Rename to...
4959 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4961 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4964 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4966 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4969 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4971 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4973 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4975 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4976 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4977 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4978 Remove useless support code for packed array types and assert its
4980 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4981 adjust for TYPE_RM_SIZE change.
4982 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4983 of Associated_Node_For_Itype accessor for packed array types.
4984 (make_packable_type): Likewise.
4985 (maybe_pad_type): Likewise.
4986 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4987 TYPE_RM_SIZE change.
4988 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4989 (rm_size): Fix nits in comments. Rework conditional statements.
4990 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4992 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4993 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4994 appropriate function to initialize the size_type_node. Adjust for
4995 TYPE_RM_SIZE change.
4997 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4999 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5000 for imported subprograms.
5002 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5004 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5005 constant objects covered by 13.3(19) volatile.
5007 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5009 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5010 of dummy fat pointer types to the debug back-end.
5012 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5014 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5015 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5016 before wrapping it up in the record type. Do not overwrite the
5017 Ada size of the record type with the Esize.
5019 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5021 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5022 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5023 if the conversion is on the LHS of an assignment and a no-op.
5024 <all> Do not convert the result to the result type if the Parent
5025 node is such a conversion.
5027 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5029 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5030 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5031 of types with unknown discriminants.
5032 (substitute_in_type): Rewrite and restrict to formal substitutions.
5033 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5034 (update_pointer_to): Update comment.
5036 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5038 * sem_ch8.adb (Use_One_Package): In an instance, if two
5039 potentially_use_visible and non-overloadable homonyms are available
5040 from the actuals of distinct formal packages, retain the current one,
5041 which was visible in the generic, to prevent spurious visibility
5043 (End_Use_Package): Restore use_visibility when needed.
5045 2009-04-20 Sergey Rybin <rybin@adacore.com>
5047 * gnat_ugn.texi, vms_data.ads: Update doc.
5049 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5051 * gcc-interface/Make-lang.in: Update dependencies
5053 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
5056 2009-04-20 Robert Dewar <dewar@adacore.com>
5058 * checks.ads: Fix documentation of range check handling
5060 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5062 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
5063 a redundant use_type clause.
5065 2009-04-20 Robert Dewar <dewar@adacore.com>
5067 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
5068 this attribute can be evaluated at compile time.
5069 (Eval_Attribute, case Range_Length): Same improvement
5071 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
5073 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5075 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
5076 for better handling of null procedures.
5077 (Check_Overriding_Indicator): Do not emit a warning on a missing
5078 overriding indicator on an operator when the type of which the operator
5079 is a primitive is private.
5081 2009-04-20 Bob Duff <duff@adacore.com>
5083 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
5086 2009-04-20 Robert Dewar <dewar@adacore.com>
5088 * sem_attr.adb: Minor reformatting
5090 * gnatcmd.adb: Minor reformatting
5092 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5094 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
5095 overloaded and one interpretation matches the context, label the
5096 operand with the type of first formal.
5098 2009-04-20 Bob Duff <duff@adacore.com>
5100 * debug.ads: Minor comment fix.
5102 * debug.adb: Minor comment fixes.
5104 2009-04-20 Javier Miranda <miranda@adacore.com>
5106 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
5108 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
5110 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
5111 is expanded into a call to Raise_Exception, avoid passing the
5112 exception-name'identity in runtimes in which this argument
5115 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
5117 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
5118 generated bindings for cil.
5120 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5122 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
5123 discriminants, collect components from the Underlying_Record_View,
5124 which will be used in the expansion of the aggregate into assignments.
5126 * sem_ch3.adb: Do not label derived type with unknown discriminants as
5127 having a private declaration.
5129 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5131 * exp_util.adb (Expand_Subtype_From_Expr): use the
5132 underlying_record_view when available, to create the proper constrained
5133 subtype for an object of a derived type with unknown discriminants.
5135 2009-04-20 Javier Miranda <miranda@adacore.com>
5137 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5138 formals that have pragma unreferenced.
5140 2009-04-20 Pascal Obry <obry@adacore.com>
5142 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5143 Remove all calls to To_Lower_If_Case_Insensitive to preserve
5144 the pathname original casing.
5146 2009-04-20 Robert Dewar <dewar@adacore.com>
5148 * g-trasym.adb: Minor reformatting
5150 * s-os_lib.adb: Minor reformatting
5152 * sem.adb: Minor reformatting
5153 Minor code reorganization
5155 * sem_ch3.adb: Minor reformatting
5157 * sem_ch4.adb: Minor reformatting
5159 * sem_ch8.adb: Minor reformatting
5161 * sem_type.adb: Minor reformatting
5163 2009-04-20 Javier Miranda <miranda@adacore.com>
5165 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
5166 generated by derivations of tagged types use the aliased subprogram a
5167 reference to locate their controlling type.
5169 2009-04-20 Tristan Gingold <gingold@adacore.com>
5171 * g-trasym.adb: Set size of result buffer before calling
5174 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5176 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5177 to a function returning an array can be interpreted as a call with
5178 defaulted parameters whose result is indexed, take into account the
5179 types of all the indices of the array result type.
5181 2009-04-20 Pascal Obry <obry@adacore.com>
5183 * a-direct.adb, s-os_lib.adb: Minor reformatting.
5185 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5187 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5188 null exclusion qualifiers for object renaming declarations.
5190 2009-04-20 Nicolas Roche <roche@adacore.com>
5192 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5193 unsigned long long. So compare local_time and utc_time before computing
5196 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5198 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5199 of the Underlying_Record_View before that of the derived type.
5201 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5202 with unknown discriminants with regard to the parent subtype.
5204 2009-04-20 Bob Duff <duff@adacore.com>
5206 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5207 that are not included. This is necessary if the main unit is a generic
5210 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5211 because it doesn't work if -gnatn is used.
5213 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5215 * rtsfind.adb (RTE, RTE_Record_Component): In
5216 Configurable_Run_Time_Mode, do not enable front-end inlining.
5218 2009-04-20 Thomas Quinot <quinot@adacore.com>
5220 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5221 System.Address_To_Access_Conversions.
5223 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5225 * sem.adb: Guard against ill-formed subunits.
5227 2009-04-20 Bob Duff <duff@adacore.com>
5229 * output.adb (Flush_Buffer): Do not indent blank lines.
5230 (Ignore_Output): New procedure for output suppression.
5232 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5234 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5235 when it is positive. This avoids a potential constraint error raised
5236 by the conversion to Natural.
5238 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5240 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5241 involves a target that has a specified address, don't set Forward_OK
5242 and Backward_OK to False if the rhs is an aggregate, since overlap
5245 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5247 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5248 in an object renaming declaration when the expected type is an
5249 anonymous access type.
5251 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5252 ambiguity when one interpretation is an anonymous access type and the
5253 other is a named access type, and the context itself is anonymous
5255 2009-04-20 Thomas Quinot <quinot@adacore.com>
5257 * einfo.ads: Minor comment rewording
5259 * sem_aggr.adb: Minor comment rewording
5261 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5263 2009-04-20 Pascal Obry <obry@adacore.com>
5265 * adaint.c (__gnat_is_readable_file): Check for file existence
5266 when not using ACL (always the case on remote drives).
5268 2009-04-20 Robert Dewar <dewar@adacore.com>
5270 * sinfo.ads: Minor comment fixes
5272 * exp_disp.adb: Minor reformatting
5274 * gnat1drv.adb: Minor reformatting
5276 * output.adb: Minor reformatting
5278 * s-vxwext-kernel.ads: Minor reformatting
5280 * sem.ads: Minor reformatting
5282 * sem.adb: Minor reformatting
5284 * sem_elim.adb: Minor reformatting
5286 * uname.ads: Minor reformatting
5288 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5290 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5291 a small dope of 4 words to the adjustment to the stack pointer.
5293 2009-04-20 Thomas Quinot <quinot@adacore.com>
5295 * xoscons.adb: generate C header s-oscons.h in
5296 addition to s-oscons.ads.
5298 * socket.c: On VMS, use s-oscons.h.
5300 * sem_ch3.adb: Minor reformatting
5302 * exp_ch9.adb: Minor reformatting
5304 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5306 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5307 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5308 (call_to_gnu): Likewise.
5310 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5312 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5313 unit as the first global name at the very beginning.
5315 2009-04-20 Thomas Quinot <quinot@adacore.com>
5317 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5318 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5319 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5320 since HP-UX supports neither inet_aton nor inet_pton (altough the
5321 latter is part of the Single UNIX Specification!).
5322 So reorganize code, and share C implementation based on inet_addr(3)
5323 with VMS (instead of having a VMS specific Ada implementation in
5326 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5328 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5329 to return the object file name saved by Set_Object_Output_File_Name.
5331 2009-04-20 Emmanuel Briot <briot@adacore.com>
5333 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5334 for the standard command line, when argc has been modified since the
5335 start of the application.
5337 2009-04-20 Thomas Quinot <quinot@adacore.com>
5339 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5340 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5342 2009-04-20 Bob Duff <duff@adacore.com>
5344 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5347 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5349 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5350 subprogram as Eliminated when source operation is.
5351 (Expand_N_Protected_Type_Declaration): Generate protected and
5352 unprotected specs for the internal operations, even if the source
5353 operation is eliminated.
5355 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5357 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5358 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5359 of the primitive subprograms associated with dispatching select
5360 statements when the runtime is in configurable mode.
5362 2009-04-20 Ed Falis <falis@adacore.com>
5364 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5366 2009-04-20 Thomas Quinot <quinot@adacore.com>
5368 * s-oscons-tmplt.c: Add support for generating a dummy version of
5369 s-oscons.ads providing all possible constants.
5371 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5373 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5374 ANSI version (not the UNICODE version) of WSAStringToAddress.
5376 2009-04-20 Pascal Obry <obry@adacore.com>
5378 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5379 allocated for the security descriptor and make sure all
5380 handles are closed before leaving this procedure.
5382 2009-04-20 Javier Miranda <miranda@adacore.com>
5384 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5385 (Set_Is_Underlying_Record_View): New subprogram
5387 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5388 private types with unknown discriminants use the underlying record view
5391 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5392 underlying record view in the full view of private types whose parent
5393 has unknown discriminants.
5394 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5395 associated with an underlying record view.
5396 (Derived_Type_Declaration): Avoid deriving parent primitives in
5397 underlying record views.
5399 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5400 records with unknown discriminants.
5402 * sem_type.adb (Covers): Handle underlying record views.
5403 (Is_Ancestor): Add support for underlying record views.
5405 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5406 dispatching call if the type of the target object is tagged and has
5407 unknown discriminants.
5409 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5410 unknown discriminants.
5412 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5413 tables for internally built underlying record views.
5415 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5416 empty list of component associations.
5418 2009-04-20 Thomas Quinot <quinot@adacore.com>
5420 * sem_ch10.adb: Minor reformatting
5422 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5423 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5424 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5425 standard inet_pton API (and emulate it on platforms that do not
5427 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5428 DECC$INET_ADDR, imported in Ada.
5429 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5430 implementation provided by GNAT runtime.
5431 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5434 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5436 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5438 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5440 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5441 with_clause if it is the main unit.
5443 2009-04-20 Thomas Quinot <quinot@adacore.com>
5445 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5446 (no behaviour change): Use Append instead of Increment_Last followed
5449 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5451 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5452 declarations of all primitives associated with dispatching asynchronous,
5453 conditional and timed selects when dispaching calls are forbidden and
5454 select statements are not allowed (such as in Ravenscar).
5455 (Predefined_Primitive_Bodies): Ditto for bodies.
5457 * exp_disp.ad (Make_DT): Do not create and populate the
5458 Select_Specific_Data of the dispatch table when dispatching calls are
5459 forbidden and select statements are not allowed (such as in Ravenscar).
5461 2009-04-20 Robert Dewar <dewar@adacore.com>
5463 * a-tifiio.adb: Minor reformatting
5465 2009-04-20 Thomas Quinot <quinot@adacore.com>
5467 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5468 other C library functions, report *failure* with a zero status, and
5469 success with a non-zero status.
5471 2009-04-20 Bob Duff <duff@adacore.com>
5473 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5474 (Semantics): After analyzing each unit, Append it to the
5475 Comp_Unit_List, if appropriate.
5477 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5479 (Gnat1drv): Correct comment regarding Back_End_Mode.
5481 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5483 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5485 2009-04-20 Thomas Quinot <quinot@adacore.com>
5487 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5488 output.adb, output.ads, s-taprop-hpux-dce.adb,
5489 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5492 2009-04-20 Thomas Quinot <quinot@adacore.com>
5494 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5495 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5496 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5497 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5498 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5499 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5501 * debug.adb: Fix typo
5503 * gnat_rm.texi: Minor doc fix.
5505 * sem_ch7.adb, freeze.adb: Minor reformatting
5507 2009-04-20 Thomas Quinot <quinot@adacore.com>
5509 * g-socket.ads: Add new constants:
5511 Unspecified_Group_Inet_Addr
5512 All_Hosts_Group_Inet_Addr
5513 All_Routers_Group_Inet_Addr
5515 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5516 ERANGE (Result too large).
5517 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5518 propagation of errno to caller.
5520 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5522 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5523 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5526 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5528 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5529 checking for references to eliminated subprograms that should be
5531 (Eliminate_Error_Message): Update comment to say "references" rather
5532 than "calls" (since attribute cases are handled here as well).
5534 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5535 checking for references to eliminated subprograms that should be
5536 flagged. Add with and use of Sem and Sem_Util.
5538 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5539 Add with and use of Sem_Elim.
5541 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5542 applied to eliminated subprograms.
5543 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5544 eliminated subprograms.
5545 Add with and use of Sem_Elim.
5547 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5548 to eliminated subprograms, now handled during Resolve_Call.
5549 Remove with and use of Sem_Elim.
5551 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5552 testing Is_Eliminated, for proper handling of primitive derived from
5553 eliminated subprograms.
5555 2009-04-20 Vincent Celier <celier@adacore.com>
5557 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5558 has been declared (Library_GCC or Linker'Driver), for the driver name.
5560 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5561 Linker'Driver is, use Linker'Driver as the shared library linker.
5562 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5563 Library_GCC is declared.
5564 (Check_Library_Attributes): Set up the shared linker driver: either
5565 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5568 2009-04-20 Thomas Quinot <quinot@adacore.com>
5570 * g-socket.ads (Send_Socket): Fix misleading comment.
5572 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5574 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5577 2009-04-20 Geert Bosch <bosch@adacore.com>
5579 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5580 fixed types with smalls that are neither integer or the reciprocal
5583 2009-04-20 Bob Duff <duff@adacore.com>
5585 * uname.ads: Minor comment fix.
5587 * types.ads: Minor comment fix.
5589 2009-04-20 Pascal Obry <obry@adacore.com>
5591 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5592 avoid warning. At the same time fix a memory leak.
5594 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5595 returned by the above routine.
5597 2009-04-20 Robert Dewar <dewar@adacore.com>
5599 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5600 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5601 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5602 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5604 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5606 2009-04-20 Pascal Obry <obry@adacore.com>
5608 * initialize.c (__gnat_initialize): Add braces to kill warning.
5610 * adaint.c: Minor reformatting, remove trailing spaces.
5612 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5614 * gcc-interface/Make-lang.in: Update dependencies.
5616 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5618 * adaint.h (__gnat_lwp_self): Declare on Linux.
5620 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5622 2009-04-20 Robert Dewar <dewar@adacore.com>
5624 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5625 front-end part of -fpreserve-control-flow switch.
5627 2009-04-20 Bob Duff <duff@adacore.com>
5629 * rtsfind.adb: Minor comment fix
5631 2009-04-20 Robert Dewar <dewar@adacore.com>
5633 * exp_aggr.adb: Minor reformatting
5634 Minor code reorganization (use Nkind_In)
5636 * g-socket.adb: Minor reformatting
5638 * g-socket.ads: Minor comment fix
5640 * s-auxdec.ads: Minor comment and organization update.
5642 * s-auxdec-vms_64.ads: Minor comment and organization update.
5644 * sem_ch10.adb: Minor addition of ??? comment
5646 * sem_disp.adb: Minor reformatting
5648 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5650 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5651 list a caller of an inlined subprogram, if the caller itself is not
5654 2009-04-20 Pascal Obry <obry@adacore.com>
5656 * adaint.c: Disable use of ACL on network drives.
5658 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5660 * gnat_ugn.texi: Add examples.
5662 2009-04-20 Thomas Quinot <quinot@adacore.com>
5664 * g-socket.ads (Abort_Selector): Clarify documentation.
5666 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5668 * opt.ads (Inspector_Mode): Update documentation of this flag.
5670 2009-04-20 Thomas Quinot <quinot@adacore.com>
5672 * g-socket.ads: Minor reformatting
5674 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5675 consider S_resolvLib error codes since we only use the hostLib wrappers.
5677 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5679 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5680 of the Underlying_Record_View after that of the derived type.
5682 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5684 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5687 2009-04-20 Javier Miranda <miranda@adacore.com>
5689 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5691 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5694 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5697 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5698 in internally built overriding subprograms.
5700 2009-04-20 Doug Rupp <rupp@adacore.com>
5702 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5704 * s-auxdec.ads: Likewise
5706 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5708 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5709 type by an interface.
5711 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5712 minimze difference in expanded tree when compiled as spec of the main
5713 unit, or as a spec in the context of another unit.
5715 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5717 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5718 (localtime_tzoff): This routine no longer accepts an actual of type
5720 (UTC_Time_Offset): Remove local variable Secs_TM.
5722 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5723 actual of type struct tm*. Add local variable of type struct tm for all
5724 targets that provide localtime_r and need to invoke it.
5726 2009-04-20 Thomas Quinot <quinot@adacore.com>
5728 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5729 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5730 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5732 2009-04-20 Robert Dewar <dewar@adacore.com>
5734 * sem_ch3.adb: Minor reformatting
5736 * lib-load.adb: Minor reformatting
5738 * sem_ch4.adb: Minor reformatting
5740 2009-04-20 Robert Dewar <dewar@adacore.com>
5742 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5743 (equal values => False).
5745 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5747 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5748 to null procedures can be inlined unconditionally.
5750 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5752 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5753 non-addressable parameter passed by reference, do not convert the
5754 actual if its type is already the nominal type, unless it is of
5755 self-referential size.
5757 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5759 * gnat_ugn.texi: Fix typos.
5761 2009-04-20 Robert Dewar <dewar@adacore.com>
5763 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5764 Validate_Unchecked_Warnings to suppress warnings about size or
5765 alignment or extra bits if either type involved has pragma Warnings
5766 (Off) set for the type entity.
5768 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5770 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5771 a builtin type and give it a name.
5773 2009-04-17 Diego Novillo <dnovillo@google.com>
5775 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5776 (LANG_HOOKS_EXPAND_EXPR): Remove.
5778 2009-04-17 Robert Dewar <dewar@adacore.com>
5780 * sem_ch3.adb: Minor reformatting
5782 2009-04-17 Pascal Obry <obry@adacore.com>
5784 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5786 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5788 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5789 illegal constraints on type derived from formal discrete types.
5791 2009-04-17 Thomas Quinot <quinot@adacore.com>
5795 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5796 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5797 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5798 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5799 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5800 Replace calls to send(2) with equivalent sendto(2) calls.
5801 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5802 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5803 report an error in that case. Factor code common to the two versions
5804 (datagram and stream) in common routine Stream_Write.
5806 2009-04-17 Robert Dewar <dewar@adacore.com>
5808 * exp_disp.adb: Minor reformatting
5809 Minor code reorganization (use Nkind_In)
5811 * prepcomp.adb: Minor reformatting
5813 * sem_ch3.adb: Minor reformatting
5815 * sem_res.adb: Minor comment addition
5817 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5820 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5821 setting Is_Referenced
5823 * types.ads: Minor reformatting
5825 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5827 * gnat_ugn.texi: Initial documentation on binding generator.
5829 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5831 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5832 type extensions whose parent is a type with unknown discriminants.
5834 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5835 aggregate has unknown discriminants, use the Underlying_Record_View to
5836 obtain the discriminants of the ancestor part.
5838 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5839 Underlying_Record_Views share the dispatching information of the
5840 original record extension.
5842 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5843 discriminants, propagate dispach table information to the
5844 Underlying_Record_View.
5846 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5847 discriminants and declaration is not a completion, generate
5848 Underlying_Record_View to provide proper discriminant information to
5849 the front-end and to gigi.
5851 2009-04-17 Robert Dewar <dewar@adacore.com>
5853 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5854 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5855 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5856 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5857 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5858 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5859 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5860 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5861 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5862 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5863 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5864 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5865 s-conca3.ads: Remove unneeded pragma Warnings
5867 2009-04-17 Robert Dewar <dewar@adacore.com>
5869 * g-moreex.adb: Add comments.
5871 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5873 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5876 * prepcomp.adb: Add ??? comment
5878 * a-tasatt.adb: Minor reformatting
5880 * g-trasym-vms-alpha.adb: Add ??? comment
5882 * g-trasym-vms-ia64.adb: Add ??? comment
5884 * xoscons.adb: Minor reformatting
5886 * s-tassta.adb: Minor reformatting
5888 * s-scaval.adb: Add ??? comment
5890 * stand.ads: Minor code clean up (remove junk with of Namet)
5892 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5893 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5894 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5895 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5896 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5897 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5898 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5899 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5900 Warnings off pragmas.
5902 2009-04-17 Pascal Obry <obry@adacore.com>
5904 * initialize.c: Fix test for reallocating the arguments array.
5906 2009-04-17 Geert Bosch <bosch@adacore.com>
5908 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5909 conversion truncate only for decimal fixed point types.
5911 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5913 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5916 2009-04-17 Robert Dewar <dewar@adacore.com>
5918 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5919 Backwards_OK if either operand has an address clause.
5921 2009-04-17 Pascal Obry <obry@adacore.com>
5923 * initialize.c: Code clean up, use realloc.
5925 2009-04-17 Pascal Obry <obry@adacore.com>
5927 * initialize.c: Do not get Unicode command line if Unicode support not
5929 Add support for wildcard expansion for Unicode parameters on Win32.
5931 * mingw32.h: Add missing macros when Unicode support not activated.
5933 2009-04-17 Javier Miranda <miranda@adacore.com>
5935 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5936 avoid generating code that references the Current_Master
5937 when compiling without tasks.
5939 2009-04-17 Vincent Celier <celier@adacore.com>
5941 * prj-attr.adb: New project level attribute Target
5943 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5946 * prj.ads (Project_Configuration): New component Target
5948 2009-04-17 Thomas Quinot <quinot@adacore.com>
5950 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5951 case for the case of an aggregate component, the attach call for the
5952 result is actually needed.
5954 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5955 an array aggregate must be disabled if the component type requires
5958 * exp_ch3.adb: Minor reformatting
5960 2009-04-17 Bob Duff <duff@adacore.com>
5962 * output.ads (Indent,Outdent): New procedures for indenting the output.
5963 (Write_Char): Correct comment -- LF _is_ allowed.
5965 * output.adb (Indent,Outdent): New procedures for indenting the output.
5966 Keep track of the indentation level, and make sure it doesn't get too
5968 (Flush_Buffer): Insert spaces at the beginning of each line, if
5969 indentation level is nonzero.
5970 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5972 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5973 "Next_Col := 1;". Flush_Buffer does that.
5975 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5976 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5977 relevant analysis routines, and calls Indent/Outdent to make the
5978 indentation reflect the nesting level. Add "helper" routines, since
5979 otherwise lots of "return;" statements would skip the debugging output.
5981 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5983 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5984 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5985 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5987 2009-04-17 Thomas Quinot <quinot@adacore.com>
5989 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5991 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5993 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5994 clause in a unit that is a package body or a subunit, when the previous
5995 clause appears in a spec or a parent.
5997 2009-04-17 Thomas Quinot <quinot@adacore.com>
5999 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6001 * exp_ch7.adb: Minor reformatting
6003 2009-04-17 Bob Duff <duff@adacore.com>
6005 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6006 allocator, check that the expression of the qualified expression obeys
6007 the constraints of the subtype of the qualified expression.
6009 2009-04-17 Thomas Quinot <quinot@adacore.com>
6011 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6013 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6015 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6016 aggregate, using context imposed by subtype mark in allocator.
6018 2009-04-17 Pascal Obry <obry@adacore.com>
6020 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6022 2009-04-17 Nicolas Roche <roche@adacore.com>
6024 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6027 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6029 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6030 cover both calls and attribute references ("call" => "reference").
6032 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6034 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6035 type for which Storage_Size is set to 0 is legal in a pure unit.
6037 2009-04-17 Thomas Quinot <quinot@adacore.com>
6039 * exp_ch7.adb: Minor reformatting
6041 2009-04-17 Robert Dewar <dewar@adacore.com>
6043 * restrict.adb (Check_Restriction_No_Dependence): Don't check
6044 restriction if outside main extended source unit.
6046 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
6047 for parents of child units as well as the child unit itself.
6049 2009-04-17 Bob Duff <duff@adacore.com>
6051 * checks.ads: Minor comment fix
6053 * exp_aggr.ads: Minor comment fix
6055 2009-04-17 Nicolas Roche <roche@adacore.com>
6057 * adaint.c: Improve cross compiler detection and handling.
6059 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
6061 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
6063 2009-04-17 Pascal Obry <obry@adacore.com>
6065 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
6068 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
6069 value when no encoding form paramter is set on Text_IO services.
6071 * adaint.c: CurrentCodePage new variable on Windows.
6072 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6075 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6078 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
6079 environment variable value. Default is UTF-8.
6081 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
6082 fopen and freopen encoding parameter is now set to Unspecified.
6083 The default value is in this case UTF-8 (as it was before) but
6084 use the new macros that convert to/from the code page set
6085 at runtime (CurrentCodePage).
6087 * s-fileio.adb: When no encoding specified use Unspecified value.
6089 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6091 * atree.adb, atree.ads: Remove dead code.
6093 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6095 * gcc-interface/Make-lang.in: Update dependencies.
6097 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6099 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
6100 illegal uses of incomplete types in formal parts and return types.
6102 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
6103 access to subprograms.
6105 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
6106 Taft-amendment types as the return type of an access_to_function type.
6108 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6109 type for access_to_subprograms. The check is performed on package exit.
6111 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6113 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
6115 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
6117 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
6119 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
6120 semantic units, because the handling of itypes in the copied tree
6121 requires semantic information that does not belong in atree.
6123 2009-04-17 Robert Dewar <dewar@adacore.com>
6125 * par-ch6.adb: Minor reformatting
6127 * prj.adb: Minor reformatting
6129 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6131 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
6132 on protected subprogram bodies, so exclude the case where Pf_Flags is
6133 Pf_Decl_Pbod from the error check.
6135 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6136 indicators on subprograms in protected bodies, and proceed with parsing
6139 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6140 subprograms from the check for primitiveness on subprograms with
6141 overriding indicators.
6142 (Check_Overriding_Indicator): Include protected subprograms in the
6143 style check for missing overriding indicators.
6145 2009-04-17 Tristan Gingold <gingold@adacore.com>
6147 * init.c: Fix stack checking for x86 Darwin.
6149 2009-04-17 Vincent Celier <celier@adacore.com>
6151 * prj-attr.adb: New project level attribute Object_File_Suffix
6154 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
6156 (Process_Compiler): Process attribute Object_File_Suffix
6158 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
6159 platform suffix, when specified.
6161 * prj.ads (Language_Config): New component Object_File_Suffix,
6162 defaulted to No_Name.
6163 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
6165 * snames.ads-tmpl: New standard name Object_File_Suffix
6167 2009-04-17 Robert Dewar <dewar@adacore.com>
6169 * gnat_rm.texi: Add documentation about No_Streams restriction
6171 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6172 attributes when checking No_Streams restriction.
6174 2009-04-17 Thomas Quinot <quinot@adacore.com>
6176 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6178 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6179 missing calls to RE_Request_Destroy to deallocate request objects after
6182 2009-04-17 Nicolas Setton <setton@adacore.com>
6184 * link.c: Fix support for passing a response file under Darwin.
6186 2009-04-17 Emmanuel Briot <briot@adacore.com>
6188 * prj.adb (Free): new subprogram.
6190 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6192 * sem_ch3.adb: additional initialization on incomplete subtypes.
6194 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6195 part and one of the formals is an incomplete tagged type, attach to
6196 list of private dependends of the type for later validation.
6198 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6199 primitive operations of a Taft-amendmment type.
6201 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6202 type. The check is performed on package exit, possibly after the
6203 subprogram is frozen.
6205 2009-04-17 Vincent Celier <celier@adacore.com>
6207 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6208 before looking for source directories, but make sure that there are nil
6209 if they are not explicitely declared and there is explicitely no
6210 sources in the project.
6212 2009-04-17 Pascal Obry <obry@adacore.com>
6214 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6216 * init.c: Fix minor typo and style fix.
6218 2009-04-17 Robert Dewar <dewar@adacore.com>
6220 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6222 * sem_attr.adb (Analyze_Attribute, case Address): Use
6223 PE_Address_Of_Intrinsic.
6225 * types.ads: Add PE_Address_Of_Intrinsic
6227 * types.h: Add PE_Address_Of_Intrinsic
6229 2009-04-17 Nicolas Setton <setton@adacore.com>
6231 * gcc-interface/Makefile.in: Under darwin, build shared libraries
6232 with install_name starting with "@rpath/".
6234 2009-04-17 Nicolas Setton <setton@adacore.com>
6236 * link.c: Add darwin section
6238 2009-04-16 Robert Dewar <dewar@adacore.com>
6240 * g-pehage.adb: Minor reformatting
6242 * sem_ch12.adb: Minor reformatting
6244 * exp_dist.adb: Minor reformatting
6246 * bindgen.adb: Minor style fixes.
6248 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6250 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6251 indexed components to the case where the prefix is a static string
6254 2009-04-16 Javier Miranda <miranda@adacore.com>
6256 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6257 objects avoid any further expansion of the expression initializing the
6260 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6262 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6263 that hides an outer homograph, make that homograph invisible when
6264 analyzing the actuals, to to prevent illegal direct visibility on it.
6266 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6268 * g-pehage.adb (Initialize): Fix off-by-one error.
6270 2009-04-16 Tristan Gingold <gingold@adacore.com>
6272 * init.c: Detect real stack overflow on Darwin.
6274 * system-darwin-x86.ads: Use stack probing on darwin x86.
6276 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6278 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6279 take the address of an intrinsic subprogram.
6281 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6283 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6284 for the targets where GNAT.Traceback.Symbolic is not supported.
6286 2009-04-16 Vincent Celier <celier@adacore.com>
6288 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6290 * g-trasym.ads: Update comments.
6292 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6294 * tracebak.c (STOP_FRAME): Verify validity of the current address
6295 before dereferencing.
6297 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6299 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6300 the original location of the index expressions and the index subtypes,
6301 to prevent spurious out-of-scope references in gigi.
6303 2009-04-16 Tristan Gingold <gingold@adacore.com>
6305 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6306 Add support for stack checking on darwin.
6308 2009-04-16 Vincent Celier <celier@adacore.com>
6310 * prj-attr.adb: New attribute Runtime_Source_Dir
6312 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6313 attribute Runtime_Source_Dir.
6314 (Check_Naming_Schemes): Give default values to out parameters to avoid
6317 * prj.ads (Language_Config): New component Runtime_Source_Dir
6319 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6321 2009-04-16 Pascal Obry <obry@adacore.com>
6323 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6324 Simple wrapper routines used to convert to proper encoding on
6327 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6329 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6332 2009-04-16 Pascal Obry <obry@adacore.com>
6334 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6336 2009-04-16 Thomas Quinot <quinot@adacore.com>
6338 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6339 integrated preprocessor.
6341 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6342 (Initialize): Split into two subprograms, Initialize (to be called
6343 prior to compiler command line processing) and Setup_Hooks (to be called
6344 later on when the first source file is loaded).
6346 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6347 Add call to Prep.Initialize.
6349 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6350 to Prep.Setup_Hooks.
6352 2009-04-16 Pascal Obry <obry@adacore.com>
6354 * adaint.h, adaint.c (__gnat_chdir): New routine.
6355 Simple wrapper routines used to convert to proper encoding on
6358 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6360 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6362 2009-04-16 Quentin Ochem <ochem@adacore.com>
6364 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6367 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6369 * a-convec.ads (Is_Empty): Mark inline.
6371 2009-04-16 Nicolas Roche <roche@adacore.com>
6373 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6375 2009-04-16 Thomas Quinot <quinot@adacore.com>
6377 * prepcomp.adb: Minor reformatting
6379 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6381 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6382 Access_Subprogram types can also be imported.
6383 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6386 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6388 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6389 preserve homonym chain when the declaration is rewritten into a
6390 renaming declaration, in order to preserve visibility structure.
6392 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6394 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6395 taken into account for VM targets.
6397 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6399 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6401 (Year_Week_In_Year): New routine which contains the original code from
6402 Week_In_Year. Add the missing special case for January 1st falling on
6405 2009-04-16 Thomas Quinot <quinot@adacore.com>
6407 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6408 actual type, use the base type to build the To_Any function.
6409 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6411 2009-04-16 Thomas Quinot <quinot@adacore.com>
6413 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6414 restrict.adb: Minor code reorganization (use
6415 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6417 2009-04-16 Bob Duff <duff@adacore.com>
6419 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6422 2009-04-16 Thomas Quinot <quinot@adacore.com>
6424 * sem_ch4.adb: Minor reformatting
6426 * adaint.c: Remove junk duplicated code.
6428 * sem_ch3.adb: Minor reformatting
6430 * exp_dist.adb: Minor comment rewording
6432 2009-04-16 Robert Dewar <dewar@adacore.com>
6434 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6437 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6439 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6440 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6442 2009-04-16 Robert Dewar <dewar@adacore.com>
6444 * Make-lang.in: Add entries for s-conca?.o
6446 * Makefile.rtl: Add entries for s-conca?
6448 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6449 of concatenation expansion
6451 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6452 string cases instead of expanding assignments inline.
6454 * opt.ads (Optimize_Size): New flag
6456 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6457 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6458 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6459 s-conca9.adb, s-conca9.ads: New file.
6461 2009-04-16 Robert Dewar <dewar@adacore.com>
6463 * exp_ch6.adb: Add comments
6465 * rtsfind.ads: Add entries for s-conca? routines
6467 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6469 * gcc-interface/Make-lang.in: Update dependencies.
6471 * gcc-interface/Makefile.in: Update translation for vms.
6473 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6475 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6476 and made global, to be used when installing parents of a child
6477 instance, to provide mappings for entities declared in formal packages
6478 of ancestor units. Now called from Install_Formal_Packages.
6480 2009-04-16 Doug Rupp <rupp@adacore.com>
6482 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6483 notation for clarity.
6485 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6486 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6487 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6488 (Initialize): Initialize Known_Tasks with Environment task.
6490 * s-taskin.ads (Task_States): Move new states to end for the sake of
6493 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6495 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6497 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6498 operation has an inline pragma, propagate the flag to the internal
6499 unprotected subprogram.
6501 2009-04-16 Doug Rupp <rupp@adacore.com>
6503 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6504 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6505 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6506 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6508 * s-taprop-vms.adb (Enter_Task): Likewise.
6509 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6511 * s-tassta.adb (Activate_Tasks): After task creation set state to
6512 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6513 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6514 Set state to Runnable after above.
6515 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6516 Debug_Event_Terminated.
6518 * s-taskin.ads (Task_States): Add new states Activiting and
6519 Activator_Delay_Sleep.
6520 (Bit_Array, Debug_Event_Array): New types.
6521 (Global_Task_Debug_Event_Set: New flag.
6522 (Common_ATCB): New field Debug_Events.
6524 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6526 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6529 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6530 Activating and when Acceptor_Delay_Sleep.
6532 * s-tasdeb.ads: Add constants for Debug_Events.
6533 (Debug_Event_Kind_Type): New subtype.
6534 (Signal_Debug_Event): New subprogram.
6536 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6538 2009-04-16 Thomas Quinot <quinot@adacore.com>
6540 * sem_elim.adb: Minor reformatting
6542 * freeze.adb: Minor reformatting
6544 * exp_ch4.adb: Minor reformatting
6546 2009-04-16 Emmanuel Briot <briot@adacore.com>
6548 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6550 2009-04-16 Robert Dewar <dewar@adacore.com>
6552 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6554 2009-04-16 Vincent Celier <celier@adacore.com>
6556 * fmap.adb (Initialize): Show the current line when the mapping file
6557 is detected as "incorrectly formatted".
6559 2009-04-16 Robert Dewar <dewar@adacore.com>
6561 * sem_ch12.adb: Minor reformatting
6563 * sem_ch5.adb: Minor comment addition
6565 * sem_util.adb: Minor reformatting
6567 * sinput-p.adb: Minor reformatting
6568 Add missing pragma Warnings (On)
6570 2009-04-16 Ed Falis <falis@adacore.com>
6572 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6574 2009-04-16 Vincent Celier <celier@adacore.com>
6576 * ali-util.adb: Minor comment spelling error fix
6578 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6580 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6581 generate an assignment loop in case of overlap.
6583 2009-04-16 Olivier Hainque <hainque@adacore.com>
6585 * gnat_ugn.texi (gnatmem description): Make it explicit that
6586 gnatmem is designed to work in association with static runtime
6589 2009-04-16 Thomas Quinot <quinot@adacore.com>
6591 * sem_type.adb: Minor reformatting
6593 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6595 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6596 concerning return codes of gettimeofday and return value check.
6598 2009-04-16 Ed Falis <falis@adacore.com>
6600 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6601 body can be renaming of imported routines.
6603 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6605 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6608 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6610 * exp_ch9.adb: Comment improvements.
6611 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6614 2009-04-15 Bob Duff <duff@adacore.com>
6616 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6617 "while X /= null loop" where X is unchanged inside the loop. We were
6618 not warning in this case, because of the pointers -- we feared that the
6619 loop variable could be updated via a pointer, if there are any pointers
6620 around the place. But that is impossible in this case.
6622 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6623 the case of dereferences. In X.all, X cannot be an l-value. We now
6624 catch that case (and implicit dereferences, too).
6626 2009-04-15 Vincent Celier <celier@adacore.com>
6628 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6630 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6632 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6634 (Analyze_Package_Instantiation): If generic unit in child instance is
6635 the same as generic unit in parent instance, look for an outer homonym
6636 to locate the desired generic.
6638 2009-04-15 Bob Duff <duff@adacore.com>
6640 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6641 warnings unless the loop comes from source, because checking generated
6642 loops is a waste of time, and makes it harder to debug
6643 Check_Infinite_Loop_Warning.
6645 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6646 tested in the while loop is a renaming, do not warn. Otherwise, we get
6647 false alarms, because it's usually renaming something that we can't
6648 deal with (an indexed component, a global variable, ...).
6650 * gnat_rm.texi: Fix typo
6652 2009-04-15 Thomas Quinot <quinot@adacore.com>
6654 * sem_ch6.adb: Minor reformatting
6656 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6658 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6659 immediate parent of the controlled function call is a component
6662 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6664 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6665 corresponding class-wide type is also in use.
6667 2009-04-15 Thomas Quinot <quinot@adacore.com>
6669 * frontend.adb: Minor comment fix
6671 2009-04-15 Robert Dewar <dewar@adacore.com>
6673 * gnatchop.adb (BOM_Length): New global variable
6674 (Write_Unit): Add new parameter Write_BOM
6675 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6678 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6680 2009-04-15 Geert Bosch <bosch@adacore.com>
6682 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6683 (Backend_Overflow_Checks): Set to True.
6685 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6687 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6688 keyword is given in a record extension.
6690 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6692 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6693 of a controlled function call in the context of a record aggregate.
6694 This does not apply to array aggregates since the call will be expanded
6697 2009-04-15 Ed Falis <falis@adacore.com>
6699 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6700 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6701 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6702 s-osinte-vxworks* and s-vxwext*.
6704 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6706 * gcc-interface/Make-lang.in: Update dependencies.
6708 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6711 2009-04-15 Robert Dewar <dewar@adacore.com>
6713 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6714 of node for location for warning messages.
6716 * gnatchop.adb: Minor reformatting
6718 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6720 * exp_ch6.adb: additional guard for renaming declarations for in
6721 parameters of an array type.
6723 2009-04-15 Robert Dewar <dewar@adacore.com>
6725 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6726 in case they were rewritten by expander (Force_Evaluation).
6728 * targparm.adb (Get_Target_Parameters): Correct check for
6729 Suppress_Exception_Locations.
6731 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6733 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6734 inlined is of an array type that is not bit-packed, use a renaming
6735 declaration to capture its value, rather than a constant declaration.
6737 2009-04-15 Robert Dewar <dewar@adacore.com>
6739 * rtsfind.adb: Minor reformatting.
6741 2009-04-15 Emmanuel Briot <briot@adacore.com>
6743 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6744 Restore, and free the saved context.
6746 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6748 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6749 for illegal private extension from a synchronized interface parent in
6750 front of check for illegal limited extension so that limited extension
6751 from a synchronized interface will be rejected.
6752 (Check_Ifaces): Check that a private extension that has a synchronized
6753 interface as a progenitor must be explicitly declared synchronized.
6754 Also check that a record extension cannot derive from a synchronized
6757 2009-04-15 Pascal Obry <obry@adacore.com>
6759 * adaint.h (__gnat_unlink): Add spec.
6760 (__gnat_rename): Likewise.
6762 2009-04-15 Vincent Celier <celier@adacore.com>
6764 * prj-nmsc.adb: Minor spelling error corrections in error messages
6766 2009-04-15 Robert Dewar <dewar@adacore.com>
6768 * sinfo.ads: Minor comment update
6770 * opt.ads: Minor comment updates
6772 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6775 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6777 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6778 that generates the code needed to update a dispatch table when a
6779 primitive operation is declared with a subprogram body without previous
6780 spec. Insertion of the generated code is responsibility of the caller.
6781 (Make_DT): When building static tables, append the code created by
6782 Register_Primitive to update a secondary table after it has been
6785 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6787 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6788 on an overriding operation that implements an interface operation only
6789 if not building static dispatch tables.
6791 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6793 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6794 does not cause overflow when converted to Duration. Use the safe value
6795 as the maximum allowable time delay..
6797 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6799 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6800 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6801 translated to "-j 2".
6803 2009-04-15 Bob Duff <duff@adacore.com>
6805 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6806 with_clauses, to avoid code duplication. Change this processing so we
6807 always add a with_clause on the main unit if needed.
6809 2009-04-15 Pascal Obry <obry@adacore.com>
6811 Add support for Win32 native encoding for delete/rename routines.
6813 * adaint.c (__gnat_unlink): New routine.
6814 (__gnat_rename): New routine.
6815 Simple wrapper routines used to convert to proper encoding on
6818 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6819 call to the C library.
6821 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6823 2009-04-15 Robert Dewar <dewar@adacore.com>
6825 * s-tassta.adb: Minor reformatting
6827 2009-04-15 Robert Dewar <dewar@adacore.com>
6829 * frontend.adb (Frontend): Set proper default for
6830 Warn_On_Non_Local_Exception.
6832 * opt.ads (Exception_Handler_Encountered): New flag
6833 (No_Warn_On_Non_Local_Exception): New flag
6835 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6837 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6838 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6840 2009-04-15 Cyrille Comar <comar@adacore.com>
6842 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6843 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6844 message when exception traces are active since it would generate
6845 redundant information.
6846 (Exception_Traces.Notify_Exception): put message output by a critical
6847 section to avoid unsynchronized output.
6848 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6849 section to avoid unsynchronized output.
6851 2009-04-15 Emmanuel Briot <briot@adacore.com>
6853 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6854 (Free): New subprogram.
6856 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6858 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6859 (Formatting_Operations.Time_Of): Change the way four year chunks of
6860 nanoseconds are added to the intermediate result.
6862 2009-04-15 Nicolas Setton <setton@adacore.com>
6864 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6865 does not need to wait for a carriage return.
6867 2009-04-15 Tristan Gingold <gingold@adacore.com>
6869 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6872 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6874 * freeze.adb (Freeze_Entity): improve error message for improper use of
6876 Diagnose additional illegal uses of incomplete types in formal parts.
6877 appearing in formal parts.
6879 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6881 2009-04-15 Robert Dewar <dewar@adacore.com>
6883 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6885 2009-04-15 Nicolas Roche <roche@adacore.com>
6887 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6890 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6892 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6894 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6896 * sem_ch4.adb: improve error message on exponentiation.
6898 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6900 * a-calend.adb: Move constant Epoch_Offset from package
6901 Conversion_Operations to top level.
6902 (Delay_Operations.To_Duration): Define a constant which represents
6903 "end of time" and use it as a guard against very distant delay dates.
6904 Protect the code against overflow when performing the origin shift to
6907 2009-04-15 Robert Dewar <dewar@adacore.com>
6909 * sem_prag.adb: Minor reformatting.
6911 * sem_type.adb: Minor reformatting
6913 2009-04-15 Javier Miranda <miranda@adacore.com>
6915 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6916 support to check eliminated subprograms.
6918 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6920 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6921 dispatching subprograms.
6923 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6924 operations. Initialize with "null" the slots of eliminated dispaching
6926 (Write_DT): Add output for eliminated primitives.
6928 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6930 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6932 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6933 the second is redundant, regardless of scopes.
6935 2009-04-15 Vincent Celier <celier@adacore.com>
6937 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6938 the object directory as when there are no sources, they may not be any
6941 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6942 directory, when there are no exec directory.
6944 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6946 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6947 ambiguities, refine removal of universal interpretations from complex
6948 expressions with literal arguments, when some numeric operators have
6949 been declared abstract.
6951 2009-04-15 Ed Falis <falis@adacore.com>
6953 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6954 and backward compatibility for targets using probing for stack overflow
6956 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6958 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6959 after any declaration, including renaming declarations.
6961 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6963 * gcc-interface/Make-lang.in: Update dependencies.
6965 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6966 Update xenomai target pairs.
6968 2009-04-15 Javier Miranda <miranda@adacore.com>
6970 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6972 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6973 functions returning anonymous access to class-wide limited types. Mark
6974 also the containing scope as a task master.
6976 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6977 limited-withed packages. Required to restore their visibility after
6978 processing packages associated with implicit with-clauses.
6980 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6981 associated with return statements because this work is now done by
6982 Check_Anonymous_Return.
6983 (Build_Master): Code cleanup.
6985 2009-04-15 Thomas Quinot <quinot@adacore.com>
6987 * sem_warn.ads: Minor reformatting
6989 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6991 * sem_ch3.adb: better error message for illegal interfaces
6993 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6994 formal is an incomplete type from a limited_with clause.
6996 2009-04-15 Vincent Celier <celier@adacore.com>
6998 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6999 Externally_Built indicating if the project is externally built. If it
7000 is, and --subdirs is specified, but the subdir does not exist, look
7001 for the specified directory, without the subdir.
7003 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7005 * a-tasatt.adb: Fix typo, plus minor reformatting
7007 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7009 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7011 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7013 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7014 private extension whose parent is a synchronized interface carries an
7015 explicit synchronized keyword.
7017 2009-04-15 Thomas Quinot <quinot@adacore.com>
7019 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7020 instantiate generic shared object package with the corresponding
7023 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7025 * system-linux-sparc.ads: Remove obsolete entries.
7027 2009-04-15 Thomas Quinot <quinot@adacore.com>
7029 * s-tasuti.ads: Add ??? comment
7031 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7033 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7034 type even if the designated type comes from a limited_with clause, to
7035 ensure that the symbol for the finalization list of the access type is
7038 2009-04-10 Robert Dewar <dewar@adacore.com>
7040 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7041 for warning suppression.
7043 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7045 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
7046 identical, there is no redudancy to check.
7048 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7050 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
7051 calls initializing SS_Allocator (which is initialized in following
7053 (Expand_Simple_Function_Return): Add comment about False value for
7054 Comes_From_Source on secondary-stack allocator.
7056 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
7057 (Build_Entry_Name): Add comment.
7059 2009-04-10 Robert Dewar <dewar@adacore.com>
7061 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
7063 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
7064 bound tested, since this is now done more generally in Sem_Res.
7066 * sem_res.adb (Resolve_Comparison_Op): Add call to
7067 Check_Lower_Bound_Tested.
7068 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
7070 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
7071 (Low_Bound_Tested): New name for Low_Bound_Known flag
7073 * exp_ch5.adb: Minor reformatting
7076 Add comments on copying the Comes_From_Source flag for allocators
7079 Add comments on copying the Comes_From_Source flag for allocators
7081 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
7082 Comes_From_Source flag from old allocator to new one.
7084 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7086 * sem_ch6.ads: Address missing documentation query
7088 2009-04-10 Vincent Celier <celier@adacore.com>
7091 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
7092 and Response_File_Switches.
7094 * prj-nmsc.adb (Process_Linker): Process new attributes
7095 Max_Command_Line_Length, Response_File_Format and
7096 Response_File_Switches.
7098 * prj.ads (Response_File_Format): New enumeration type
7099 (Project_Configuration): New componants Max_Command_Line_Length,
7100 Resp_File_Format and Resp_File_Options.
7102 * snames.ads-tmpl: Add new standard names for linking response files
7103 for gprbuild: GNU, None, Object_List, Option_List,
7104 Max_Command_Line_Length, Response_File_Format and
7105 Response_File_Switches.
7107 2009-04-10 Geert Bosch <bosch@adacore.com>
7109 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
7110 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
7111 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
7112 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
7113 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
7114 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7115 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
7116 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
7117 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
7118 system-vxworks-arm.ads, system-vxworks-m68k.ads,
7119 system-vxworks-mips.ads, system-vxworks-ppc.ads,
7120 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
7121 (Backend_Overflow_Checks): Set to True.
7123 2009-04-10 Thomas Quinot <quinot@adacore.com>
7125 * exp_attr.adb: Minor reformatting
7127 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7129 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
7130 analyze the expression for a postcondition, even if the compiler mode
7133 2009-04-10 Robert Dewar <dewar@adacore.com>
7135 * sem_aux.adb: Minor reformatting
7137 2009-04-10 Ed Falis <falis@adacore.com>
7139 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7141 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7143 2009-04-10 Thomas Quinot <quinot@adacore.com>
7145 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7146 undocumented formal.
7149 * a-direio.ads: Fix typo in comment
7151 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
7152 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
7153 Use uniform phrasing for comment at start of subprogram body.
7155 * xsnamest.adb: Add note to explain why we use specific names for the
7156 newly generated files instead of generating snames.{ads,adb,h} directly
7158 2009-04-10 Sergey Rybin <rybin@adacore.com>
7161 Add qualifier for new gnatstub option '--no-exception'
7164 Add the description of the new gnatstub option '--no-exception'
7166 2009-04-10 Robert Dewar <dewar@adacore.com>
7168 * rtsfind.adb: Minor reformatting
7170 2009-04-10 Thomas Quinot <quinot@adacore.com>
7172 * sem_disp.adb: Minor reformatting.
7173 Add comment pointing to RM clause for the case of warning against a
7174 (failed) attempt at declaring a primitive operation elsewhere than in a
7177 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7179 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7180 an actual for a previous formal package of the current instance.
7182 2009-04-10 Bob Duff <duff@adacore.com>
7184 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7185 them first, rather than on the extended main unit.
7187 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7189 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7190 specification of full view carries a null exclusion indicator, create
7191 an itype for it, to check for conformance with partial view.
7193 2009-04-10 Bob Duff <duff@adacore.com>
7195 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7197 * rtsfind.adb: Minor comment changes, and remove useless code.
7199 * sinfo.ads: Add ??? comment.
7201 2009-04-10 Vincent Celier <celier@adacore.com>
7203 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7205 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7207 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7208 type is a synchronized type, retrieve tag information from the
7209 corresponding record, which has the dispatch table link.
7211 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
7213 * g-comlin.adb (Group_Analysis): Take care of switches that might be
7214 decomposed afterwards, but are present as-is in the command line
7215 configuration, and thus should be kept as-is.
7217 2009-04-10 Robert Dewar <dewar@adacore.com>
7219 * gnat_rm.texi: Document that postconditions are tested on implicit
7222 * sem_aux.adb: Minor reformatting
7224 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7226 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7229 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7230 Null_Exclusion_In_Return_Present when an access-to-function type has a
7231 result type with an explicit not null.
7233 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7234 given on the result type, then create a null-excluding itype for the
7237 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7238 the case where a null exclusion is imposed on a named access type.
7239 (Analyze_Subprogram_Specification): Push and pop the scope of the
7240 function around the call to Analyze_Return_Type in the case of no
7241 formals, for consistency with handling when formals are present
7242 (Process_Formals does this). Ensures that any itype created for the
7243 return type will be associated with the proper scope.
7245 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7246 exclusion is given on a generic function's result type, then create a
7247 null-excluding itype for the generic function.
7248 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7249 for an actual for a formal in object according to the setting on the
7250 formal. Ensures null exclusion checks are done when the association is
7253 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7254 N_Access_Function_Definition.
7256 * sinfo.adb: Add Get_ and Set_ operations for
7257 Null_Exclusion_In_Return_Present.
7259 2009-04-10 Bob Duff <duff@adacore.com>
7261 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7262 call to the _Postconditions procedure in the case of implicit returns
7263 from analysis to expansion. This eliminates some duplicated code. Use
7264 the Postcondition_Proc to find the identity of this procedure during
7267 2009-04-10 Robert Dewar <dewar@adacore.com>
7269 * sem_ch6.adb: Minor code clean up.
7271 * einfo.ads, sem_attr.adb: Minor comment fixes.
7273 2009-04-10 Robert Dewar <dewar@adacore.com>
7275 * sem_ch8.adb: Minor reformatting
7277 2009-04-10 Robert Dewar <dewar@adacore.com>
7279 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7282 * sem_ch6.adb: Minor code clean up.
7284 2009-04-10 Robert Dewar <dewar@adacore.com>
7286 * mlib-tgt-specific-xi.adb: Minor reformatting
7288 2009-04-10 Bob Duff <duff@adacore.com>
7290 * einfo.ads: Minor comment fixes
7292 2009-04-10 Vincent Celier <celier@adacore.com>
7294 * snames.ads-tmpl: Remove names that are no longer used in the
7296 Mark specifically those that are used only in gprbuild
7298 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
7300 * init.c: Adjust EH support code on Alpha/Tru64.
7302 2009-04-10 Bob Duff <duff@adacore.com>
7304 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7305 procedure on every path that could return implicitly (not via a return
7306 statement) from a procedure.
7308 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7310 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7311 valid scope for a task declarations and therefore for a master id.
7313 2009-04-10 Robert Dewar <dewar@adacore.com>
7315 * sem_aux.adb: Minor reformatting
7317 2009-04-10 Vincent Celier <celier@adacore.com>
7319 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7321 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7322 (Set_Obsolescent_Check): New procedure to change the value of
7323 Obsolescent_Check_Flag.
7325 * scn.ads (Set_Obsolescent_Check): New procedure to control
7328 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7329 obsolescent features while preprocessing.
7331 2009-04-10 Thomas Quinot <quinot@adacore.com>
7333 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7334 generated files on all platforms.
7336 2009-04-10 Robert Dewar <dewar@adacore.com>
7338 * sem_aux.adb: Minor reformatting
7340 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7342 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7343 protected function with formals that returns an anonymous access type.
7345 2009-04-10 Thomas Quinot <quinot@adacore.com>
7347 * sem_disp.adb: Minor reformatting
7349 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7351 * seh_init.c: Do not use the 32-bit specific implementation of
7352 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7355 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7357 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7358 a '/' at the end so we better use the complete target name to determine
7359 whether it is a PowerPC 55xx target.
7361 2009-04-10 Thomas Quinot <quinot@adacore.com>
7363 * sem_eval.adb: Minor reformatting
7365 2009-04-10 Thomas Quinot <quinot@adacore.com>
7367 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7370 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7373 * xsnamest.adb: New file.
7375 * gcc-interface/Make-lang.in: New target for automated generation of
7376 snames.ads, snames.adb and snames.h
7378 2009-04-10 Tristan Gingold <gingold@adacore.com>
7380 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7381 avoid compile time warnings.
7382 Do not add gcc/config in include search list while compiling the RTS.
7383 Pragma Thread_Local_Storage is available on any target.
7385 2009-04-10 Bob Duff <duff@adacore.com>
7387 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7389 2009-04-10 Tristan Gingold <gingold@adacore.com>
7391 * init.c: Install signal handler on Darwin.
7393 2009-04-10 Robert Dewar <dewar@adacore.com>
7395 * sem_prag.adb: Minor reformatting
7397 * exp_util.adb (Make_Non_Empty_Check): New function
7398 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7399 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7401 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7403 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7405 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7407 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7408 tool prefix for AVR and PowerPC 55xx targets.
7410 2009-04-10 Robert Dewar <dewar@adacore.com>
7412 * sem_warn.adb (Within_Postcondition): New function
7413 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7415 2009-04-10 Robert Dewar <dewar@adacore.com>
7417 * sem_warn.adb: Minor reformatting
7419 * make.adb: Minor reformatting.
7421 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7423 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7424 entity and the scope is a subprogram, retrieve the Sloc of the
7425 subprogram's body rather than using the sloc of the spec, for better
7426 line-stepping behavior in gdb.
7427 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7428 controller, use the Sloc of the first declaration of the containing list
7429 rather than that of the node that triggered creation of the list
7432 2009-04-10 Vincent Celier <celier@adacore.com>
7434 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7435 to avoid gcc warning.
7437 2009-04-10 Robert Dewar <dewar@adacore.com>
7439 * g-comlin.adb: Add ??? comment
7441 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7443 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7444 unreferenced entities for a package with no visible declarations.
7446 2009-04-10 Robert Dewar <dewar@adacore.com>
7448 * exp_ch9.adb: Minor reformatting
7450 2009-04-10 Thomas Quinot <quinot@adacore.com>
7452 * sem_prag.adb: Minor reformatting
7454 2009-04-10 Vincent Celier <celier@adacore.com>
7457 (Check_Library_Attributes): For a project qualified as a library project
7458 that is not a library project, indicate in the error message which
7459 attributes are missing (Library_Dir and/or Library_Name).
7461 2009-04-10 Bob Duff <duff@adacore.com>
7463 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7464 generated nodes, because it might confuse various circuits in the FE.
7466 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7468 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7469 of pragma. It will be recopied and analyzed when used in call to
7472 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7473 initialization operations and recognize use of it in procedure calls
7476 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7477 argument, because it may have side-effects.
7479 * exp_ch2.adb: Remove obsolete comments on default functions
7481 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7483 * adaint.c (RTX section): Do for RTX the same thing as we do for
7484 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7486 2009-04-10 Robert Dewar <dewar@adacore.com>
7488 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7490 * sem_res.adb (Resolve_Call): Fix test for
7491 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7492 a non-dynamic scope).
7494 2009-04-10 Robert Dewar <dewar@adacore.com>
7496 * make.adb: Add comment.
7499 2009-04-10 Nicolas Setton <setton@adacore.com>
7501 * s-osprim-darwin.adb: New file.
7503 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7505 2009-04-10 Thomas Quinot <quinot@adacore.com>
7507 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7509 2009-04-09 Nick Clifton <nickc@redhat.com>
7511 * adadecode.h: Change copyright header to refer to version
7512 3 of the GNU General Public License with version 3.1 of the
7513 GCC Runtime Library Exception and to point readers at the
7514 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7516 * 9drpc.adb: Likewise.
7517 * a-assert.adb: Likewise.
7518 * a-astaco.adb: Likewise.
7519 * a-calari.adb: Likewise.
7520 * a-calcon.adb: Likewise.
7521 * a-calcon.ads: Likewise.
7522 * a-caldel.ads: Likewise.
7523 * a-calend-vms.adb: Likewise.
7524 * a-calend-vms.ads: Likewise.
7525 * a-calend.adb: Likewise.
7526 * a-calend.ads: Likewise.
7527 * a-calfor.adb: Likewise.
7528 * a-catizo.adb: Likewise.
7529 * a-cdlili.adb: Likewise.
7530 * a-cdlili.ads: Likewise.
7531 * a-cgaaso.adb: Likewise.
7532 * a-cgaaso.ads: Likewise.
7533 * a-cgarso.adb: Likewise.
7534 * a-cgcaso.adb: Likewise.
7535 * a-chacon.adb: Likewise.
7536 * a-chacon.ads: Likewise.
7537 * a-chahan.adb: Likewise.
7538 * a-chahan.ads: Likewise.
7539 * a-chlat9.ads: Likewise.
7540 * a-chtgke.adb: Likewise.
7541 * a-chtgke.ads: Likewise.
7542 * a-chtgop.adb: Likewise.
7543 * a-chtgop.ads: Likewise.
7544 * a-chzla1.ads: Likewise.
7545 * a-chzla9.ads: Likewise.
7546 * a-cidlli.adb: Likewise.
7547 * a-cidlli.ads: Likewise.
7548 * a-cihama.adb: Likewise.
7549 * a-cihama.ads: Likewise.
7550 * a-cihase.adb: Likewise.
7551 * a-cihase.ads: Likewise.
7552 * a-ciorma.adb: Likewise.
7553 * a-ciorma.ads: Likewise.
7554 * a-ciormu.adb: Likewise.
7555 * a-ciormu.ads: Likewise.
7556 * a-ciorse.adb: Likewise.
7557 * a-ciorse.ads: Likewise.
7558 * a-clrefi.adb: Likewise.
7559 * a-clrefi.ads: Likewise.
7560 * a-cohama.adb: Likewise.
7561 * a-cohama.ads: Likewise.
7562 * a-cohase.adb: Likewise.
7563 * a-cohase.ads: Likewise.
7564 * a-cohata.ads: Likewise.
7565 * a-coinve.adb: Likewise.
7566 * a-coinve.ads: Likewise.
7567 * a-colien.adb: Likewise.
7568 * a-colien.ads: Likewise.
7569 * a-colire.adb: Likewise.
7570 * a-colire.ads: Likewise.
7571 * a-comlin.adb: Likewise.
7572 * a-comlin.ads: Likewise.
7573 * a-convec.adb: Likewise.
7574 * a-convec.ads: Likewise.
7575 * a-coorma.adb: Likewise.
7576 * a-coorma.ads: Likewise.
7577 * a-coormu.adb: Likewise.
7578 * a-coormu.ads: Likewise.
7579 * a-coorse.adb: Likewise.
7580 * a-coorse.ads: Likewise.
7581 * a-coprnu.adb: Likewise.
7582 * a-coprnu.ads: Likewise.
7583 * a-crbltr.ads: Likewise.
7584 * a-crbtgk.adb: Likewise.
7585 * a-crbtgk.ads: Likewise.
7586 * a-crbtgo.adb: Likewise.
7587 * a-crbtgo.ads: Likewise.
7588 * a-crdlli.adb: Likewise.
7589 * a-crdlli.ads: Likewise.
7590 * a-cwila1.ads: Likewise.
7591 * a-cwila9.ads: Likewise.
7592 * a-decima.adb: Likewise.
7593 * a-decima.ads: Likewise.
7594 * a-diocst.adb: Likewise.
7595 * a-diocst.ads: Likewise.
7596 * a-direct.adb: Likewise.
7597 * a-direct.ads: Likewise.
7598 * a-direio.adb: Likewise.
7599 * a-direio.ads: Likewise.
7600 * a-dirval-mingw.adb: Likewise.
7601 * a-dirval-vms.adb: Likewise.
7602 * a-dirval.adb: Likewise.
7603 * a-dirval.ads: Likewise.
7604 * a-dynpri.adb: Likewise.
7605 * a-einuoc.adb: Likewise.
7606 * a-einuoc.ads: Likewise.
7607 * a-elchha.adb: Likewise.
7608 * a-elchha.ads: Likewise.
7609 * a-envvar.adb: Likewise.
7610 * a-excach.adb: Likewise.
7611 * a-except-2005.adb: Likewise.
7612 * a-except-2005.ads: Likewise.
7613 * a-except.adb: Likewise.
7614 * a-except.ads: Likewise.
7615 * a-excpol-abort.adb: Likewise.
7616 * a-excpol.adb: Likewise.
7617 * a-exctra.adb: Likewise.
7618 * a-exctra.ads: Likewise.
7619 * a-exetim-mingw.adb: Likewise.
7620 * a-exetim-mingw.ads: Likewise.
7621 * a-exexda.adb: Likewise.
7622 * a-exexpr-gcc.adb: Likewise.
7623 * a-exexpr.adb: Likewise.
7624 * a-exextr.adb: Likewise.
7625 * a-exstat.adb: Likewise.
7626 * a-filico.adb: Likewise.
7627 * a-filico.ads: Likewise.
7628 * a-finali.adb: Likewise.
7629 * a-finali.ads: Likewise.
7630 * a-interr.ads: Likewise.
7631 * a-intnam-aix.ads: Likewise.
7632 * a-intnam-darwin.ads: Likewise.
7633 * a-intnam-dummy.ads: Likewise.
7634 * a-intnam-freebsd.ads: Likewise.
7635 * a-intnam-hpux.ads: Likewise.
7636 * a-intnam-irix.ads: Likewise.
7637 * a-intnam-linux.ads: Likewise.
7638 * a-intnam-lynxos.ads: Likewise.
7639 * a-intnam-mingw.ads: Likewise.
7640 * a-intnam-rtems.ads: Likewise.
7641 * a-intnam-solaris.ads: Likewise.
7642 * a-intnam-tru64.ads: Likewise.
7643 * a-intnam-vms.ads: Likewise.
7644 * a-intnam-vxworks.ads: Likewise.
7645 * a-intsig.adb: Likewise.
7646 * a-intsig.ads: Likewise.
7647 * a-ngcefu.adb: Likewise.
7648 * a-ngcoar.adb: Likewise.
7649 * a-ngcoty.adb: Likewise.
7650 * a-ngcoty.ads: Likewise.
7651 * a-ngelfu.adb: Likewise.
7652 * a-ngrear.adb: Likewise.
7653 * a-ngrear.ads: Likewise.
7654 * a-nudira.adb: Likewise.
7655 * a-nudira.ads: Likewise.
7656 * a-nuflra.adb: Likewise.
7657 * a-nuflra.ads: Likewise.
7658 * a-numaux-darwin.adb: Likewise.
7659 * a-numaux-darwin.ads: Likewise.
7660 * a-numaux-libc-x86.ads: Likewise.
7661 * a-numaux-vxworks.ads: Likewise.
7662 * a-numaux-x86.adb: Likewise.
7663 * a-numaux-x86.ads: Likewise.
7664 * a-numaux.ads: Likewise.
7665 * a-rbtgso.adb: Likewise.
7666 * a-rbtgso.ads: Likewise.
7667 * a-reatim.ads: Likewise.
7668 * a-retide.adb: Likewise.
7669 * a-retide.ads: Likewise.
7670 * a-rttiev.adb: Likewise.
7671 * a-rttiev.ads: Likewise.
7672 * a-secain.adb: Likewise.
7673 * a-secain.ads: Likewise.
7674 * a-sequio.adb: Likewise.
7675 * a-sequio.ads: Likewise.
7676 * a-shcain.adb: Likewise.
7677 * a-shcain.ads: Likewise.
7678 * a-siocst.adb: Likewise.
7679 * a-siocst.ads: Likewise.
7680 * a-slcain.adb: Likewise.
7681 * a-slcain.ads: Likewise.
7682 * a-ssicst.adb: Likewise.
7683 * a-ssicst.ads: Likewise.
7684 * a-stboha.adb: Likewise.
7685 * a-stmaco.ads: Likewise.
7686 * a-storio.adb: Likewise.
7687 * a-strbou.adb: Likewise.
7688 * a-strbou.ads: Likewise.
7689 * a-stream.ads: Likewise.
7690 * a-strfix.adb: Likewise.
7691 * a-strhas.adb: Likewise.
7692 * a-strmap.adb: Likewise.
7693 * a-strmap.ads: Likewise.
7694 * a-strsea.adb: Likewise.
7695 * a-strsea.ads: Likewise.
7696 * a-strsup.adb: Likewise.
7697 * a-strsup.ads: Likewise.
7698 * a-strunb.adb: Likewise.
7699 * a-strunb.ads: Likewise.
7700 * a-ststio.adb: Likewise.
7701 * a-ststio.ads: Likewise.
7702 * a-stunau.adb: Likewise.
7703 * a-stunau.ads: Likewise.
7704 * a-stunha.adb: Likewise.
7705 * a-stwibo.adb: Likewise.
7706 * a-stwibo.ads: Likewise.
7707 * a-stwifi.adb: Likewise.
7708 * a-stwiha.adb: Likewise.
7709 * a-stwima.adb: Likewise.
7710 * a-stwima.ads: Likewise.
7711 * a-stwise.adb: Likewise.
7712 * a-stwise.ads: Likewise.
7713 * a-stwisu.adb: Likewise.
7714 * a-stwisu.ads: Likewise.
7715 * a-stwiun.adb: Likewise.
7716 * a-stwiun.ads: Likewise.
7717 * a-stzbou.adb: Likewise.
7718 * a-stzbou.ads: Likewise.
7719 * a-stzfix.adb: Likewise.
7720 * a-stzhas.adb: Likewise.
7721 * a-stzmap.adb: Likewise.
7722 * a-stzmap.ads: Likewise.
7723 * a-stzsea.adb: Likewise.
7724 * a-stzsea.ads: Likewise.
7725 * a-stzsup.adb: Likewise.
7726 * a-stzsup.ads: Likewise.
7727 * a-stzunb.adb: Likewise.
7728 * a-stzunb.ads: Likewise.
7729 * a-suteio.adb: Likewise.
7730 * a-suteio.ads: Likewise.
7731 * a-swbwha.adb: Likewise.
7732 * a-swmwco.ads: Likewise.
7733 * a-swunau.adb: Likewise.
7734 * a-swunau.ads: Likewise.
7735 * a-swuwha.adb: Likewise.
7736 * a-swuwti.adb: Likewise.
7737 * a-swuwti.ads: Likewise.
7738 * a-sytaco.adb: Likewise.
7739 * a-sytaco.ads: Likewise.
7740 * a-szbzha.adb: Likewise.
7741 * a-szmzco.ads: Likewise.
7742 * a-szunau.adb: Likewise.
7743 * a-szunau.ads: Likewise.
7744 * a-szuzha.adb: Likewise.
7745 * a-szuzti.adb: Likewise.
7746 * a-szuzti.ads: Likewise.
7747 * a-tags.adb: Likewise.
7748 * a-tags.ads: Likewise.
7749 * a-tasatt.ads: Likewise.
7750 * a-taside.adb: Likewise.
7751 * a-taside.ads: Likewise.
7752 * a-taster.adb: Likewise.
7753 * a-teioed.adb: Likewise.
7754 * a-teioed.ads: Likewise.
7755 * a-textio.adb: Likewise.
7756 * a-textio.ads: Likewise.
7757 * a-tiboio.adb: Likewise.
7758 * a-ticoau.adb: Likewise.
7759 * a-ticoau.ads: Likewise.
7760 * a-ticoio.adb: Likewise.
7761 * a-ticoio.ads: Likewise.
7762 * a-tideau.adb: Likewise.
7763 * a-tideau.ads: Likewise.
7764 * a-tideio.adb: Likewise.
7765 * a-tideio.ads: Likewise.
7766 * a-tienau.adb: Likewise.
7767 * a-tienau.ads: Likewise.
7768 * a-tienio.adb: Likewise.
7769 * a-tienio.ads: Likewise.
7770 * a-tifiio.adb: Likewise.
7771 * a-tifiio.ads: Likewise.
7772 * a-tiflau.adb: Likewise.
7773 * a-tiflau.ads: Likewise.
7774 * a-tiflio.adb: Likewise.
7775 * a-tiflio.ads: Likewise.
7776 * a-tigeau.adb: Likewise.
7777 * a-tigeau.ads: Likewise.
7778 * a-tiinau.adb: Likewise.
7779 * a-tiinau.ads: Likewise.
7780 * a-tiinio.adb: Likewise.
7781 * a-tiinio.ads: Likewise.
7782 * a-timoau.adb: Likewise.
7783 * a-timoau.ads: Likewise.
7784 * a-timoio.adb: Likewise.
7785 * a-timoio.ads: Likewise.
7786 * a-tiocst.adb: Likewise.
7787 * a-tiocst.ads: Likewise.
7788 * a-titest.adb: Likewise.
7789 * a-wichun.adb: Likewise.
7790 * a-wichun.ads: Likewise.
7791 * a-witeio.adb: Likewise.
7792 * a-witeio.ads: Likewise.
7793 * a-wtcoau.adb: Likewise.
7794 * a-wtcoau.ads: Likewise.
7795 * a-wtcoio.adb: Likewise.
7796 * a-wtcstr.adb: Likewise.
7797 * a-wtcstr.ads: Likewise.
7798 * a-wtdeau.adb: Likewise.
7799 * a-wtdeau.ads: Likewise.
7800 * a-wtdeio.adb: Likewise.
7801 * a-wtdeio.ads: Likewise.
7802 * a-wtedit.adb: Likewise.
7803 * a-wtedit.ads: Likewise.
7804 * a-wtenau.adb: Likewise.
7805 * a-wtenau.ads: Likewise.
7806 * a-wtenio.adb: Likewise.
7807 * a-wtenio.ads: Likewise.
7808 * a-wtfiio.adb: Likewise.
7809 * a-wtfiio.ads: Likewise.
7810 * a-wtflau.adb: Likewise.
7811 * a-wtflau.ads: Likewise.
7812 * a-wtflio.adb: Likewise.
7813 * a-wtflio.ads: Likewise.
7814 * a-wtgeau.adb: Likewise.
7815 * a-wtgeau.ads: Likewise.
7816 * a-wtinau.adb: Likewise.
7817 * a-wtinau.ads: Likewise.
7818 * a-wtinio.adb: Likewise.
7819 * a-wtmoau.adb: Likewise.
7820 * a-wtmoau.ads: Likewise.
7821 * a-wtmoio.adb: Likewise.
7822 * a-wtmoio.ads: Likewise.
7823 * a-wttest.adb: Likewise.
7824 * a-wwboio.adb: Likewise.
7825 * a-zchuni.adb: Likewise.
7826 * a-zchuni.ads: Likewise.
7827 * a-ztcoau.adb: Likewise.
7828 * a-ztcoau.ads: Likewise.
7829 * a-ztcoio.adb: Likewise.
7830 * a-ztcstr.adb: Likewise.
7831 * a-ztcstr.ads: Likewise.
7832 * a-ztdeau.adb: Likewise.
7833 * a-ztdeau.ads: Likewise.
7834 * a-ztdeio.adb: Likewise.
7835 * a-ztdeio.ads: Likewise.
7836 * a-ztedit.adb: Likewise.
7837 * a-ztedit.ads: Likewise.
7838 * a-ztenau.adb: Likewise.
7839 * a-ztenau.ads: Likewise.
7840 * a-ztenio.adb: Likewise.
7841 * a-ztenio.ads: Likewise.
7842 * a-ztexio.adb: Likewise.
7843 * a-ztexio.ads: Likewise.
7844 * a-ztfiio.adb: Likewise.
7845 * a-ztfiio.ads: Likewise.
7846 * a-ztflau.adb: Likewise.
7847 * a-ztflau.ads: Likewise.
7848 * a-ztflio.adb: Likewise.
7849 * a-ztflio.ads: Likewise.
7850 * a-ztgeau.adb: Likewise.
7851 * a-ztgeau.ads: Likewise.
7852 * a-ztinau.adb: Likewise.
7853 * a-ztinau.ads: Likewise.
7854 * a-ztinio.adb: Likewise.
7855 * a-ztmoau.adb: Likewise.
7856 * a-ztmoau.ads: Likewise.
7857 * a-ztmoio.adb: Likewise.
7858 * a-ztmoio.ads: Likewise.
7859 * a-zttest.adb: Likewise.
7860 * a-zzboio.adb: Likewise.
7861 * adadecode.c: Likewise.
7862 * adaint.c: Likewise.
7863 * adaint.h: Likewise.
7864 * alloc.ads: Likewise.
7866 * arit64.c: Likewise.
7867 * atree.adb: Likewise.
7868 * atree.ads: Likewise.
7869 * aux-io.c: Likewise.
7871 * casing.adb: Likewise.
7872 * casing.ads: Likewise.
7874 * csets.adb: Likewise.
7875 * csets.ads: Likewise.
7876 * cstreams.c: Likewise.
7877 * ctrl_c.c: Likewise.
7878 * debug.adb: Likewise.
7879 * debug.ads: Likewise.
7880 * dec.ads: Likewise.
7881 * einfo.adb: Likewise.
7882 * einfo.ads: Likewise.
7883 * elists.adb: Likewise.
7884 * elists.ads: Likewise.
7887 * errno.c: Likewise.
7890 * final.c: Likewise.
7891 * fname.adb: Likewise.
7892 * fname.ads: Likewise.
7893 * g-allein.ads: Likewise.
7894 * g-alleve.adb: Likewise.
7895 * g-alleve.ads: Likewise.
7896 * g-altcon.adb: Likewise.
7897 * g-altcon.ads: Likewise.
7898 * g-altive.ads: Likewise.
7899 * g-alveop.adb: Likewise.
7900 * g-alveop.ads: Likewise.
7901 * g-alvety.ads: Likewise.
7902 * g-alvevi.ads: Likewise.
7903 * g-arrspl.adb: Likewise.
7904 * g-arrspl.ads: Likewise.
7905 * g-calend.ads: Likewise.
7906 * g-comlin.adb: Likewise.
7907 * g-debpoo.adb: Likewise.
7908 * g-debpoo.ads: Likewise.
7909 * g-eacodu-vms.adb: Likewise.
7910 * g-eacodu.adb: Likewise.
7911 * g-excact.adb: Likewise.
7912 * g-excact.ads: Likewise.
7913 * g-locfil.adb: Likewise.
7914 * g-os_lib.ads: Likewise.
7915 * g-rannum.adb: Likewise.
7916 * g-rannum.ads: Likewise.
7917 * g-regist.adb: Likewise.
7918 * g-regist.ads: Likewise.
7919 * g-signal.adb: Likewise.
7920 * g-signal.ads: Likewise.
7921 * g-soccon.ads: Likewise.
7922 * g-string.adb: Likewise.
7923 * g-string.ads: Likewise.
7924 * g-strspl.ads: Likewise.
7925 * g-timsta.adb: Likewise.
7926 * g-timsta.ads: Likewise.
7927 * g-trasym-vms-alpha.adb: Likewise.
7928 * g-trasym-vms-ia64.adb: Likewise.
7929 * g-utf_32.adb: Likewise.
7930 * g-utf_32.ads: Likewise.
7931 * g-wistsp.ads: Likewise.
7932 * g-zstspl.ads: Likewise.
7934 * gnatvsn.adb: Likewise.
7935 * gnatvsn.ads: Likewise.
7936 * gsocket.h: Likewise.
7937 * hostparm.ads: Likewise.
7938 * i-c.adb: Likewise.
7939 * i-cexten.ads: Likewise.
7940 * i-cobol.adb: Likewise.
7941 * i-cobol.ads: Likewise.
7942 * i-cpoint.adb: Likewise.
7943 * i-cpoint.ads: Likewise.
7944 * i-cpp.adb: Likewise.
7945 * i-cpp.ads: Likewise.
7946 * i-cstrea-vms.adb: Likewise.
7947 * i-cstrea.adb: Likewise.
7948 * i-cstrea.ads: Likewise.
7949 * i-cstrin.adb: Likewise.
7950 * i-cstrin.ads: Likewise.
7951 * i-forbla-darwin.adb: Likewise.
7952 * i-forbla-unimplemented.ads: Likewise.
7953 * i-forbla.adb: Likewise.
7954 * i-forbla.ads: Likewise.
7955 * i-forlap.ads: Likewise.
7956 * i-fortra.adb: Likewise.
7957 * i-pacdec.adb: Likewise.
7958 * i-pacdec.ads: Likewise.
7959 * i-vxwoio.adb: Likewise.
7960 * i-vxwoio.ads: Likewise.
7961 * indepsw-aix.adb: Likewise.
7962 * indepsw-gnu.adb: Likewise.
7963 * indepsw-mingw.adb: Likewise.
7964 * indepsw.adb: Likewise.
7965 * indepsw.ads: Likewise.
7967 * initialize.c: Likewise.
7968 * interfac.ads: Likewise.
7969 * krunch.adb: Likewise.
7970 * krunch.ads: Likewise.
7971 * lib-list.adb: Likewise.
7972 * lib-sort.adb: Likewise.
7973 * lib.adb: Likewise.
7974 * lib.ads: Likewise.
7976 * math_lib.adb: Likewise.
7977 * memtrack.adb: Likewise.
7978 * mingw32.h: Likewise.
7979 * mkdir.c: Likewise.
7980 * namet-sp.adb: Likewise.
7981 * namet-sp.ads: Likewise.
7982 * namet.adb: Likewise.
7983 * namet.ads: Likewise.
7984 * nlists.adb: Likewise.
7985 * nlists.ads: Likewise.
7986 * opt.adb: Likewise.
7987 * opt.ads: Likewise.
7988 * output.adb: Likewise.
7989 * output.ads: Likewise.
7990 * raise-gcc.c: Likewise.
7991 * raise.c: Likewise.
7992 * raise.h: Likewise.
7993 * repinfo.adb: Likewise.
7994 * repinfo.ads: Likewise.
7995 * repinfo.h: Likewise.
7996 * rident.ads: Likewise.
7997 * s-addima.adb: Likewise.
7998 * s-addima.ads: Likewise.
7999 * s-addope.adb: Likewise.
8000 * s-addope.ads: Likewise.
8001 * s-arit64.adb: Likewise.
8002 * s-arit64.ads: Likewise.
8003 * s-assert.adb: Likewise.
8004 * s-assert.ads: Likewise.
8005 * s-asthan-vms-alpha.adb: Likewise.
8006 * s-asthan.adb: Likewise.
8007 * s-asthan.ads: Likewise.
8008 * s-atacco.adb: Likewise.
8009 * s-atacco.ads: Likewise.
8010 * s-auxdec-empty.adb: Likewise.
8011 * s-auxdec-empty.ads: Likewise.
8012 * s-auxdec-vms_64.ads: Likewise.
8013 * s-auxdec.adb: Likewise.
8014 * s-auxdec.ads: Likewise.
8015 * s-bitops.adb: Likewise.
8016 * s-bitops.ads: Likewise.
8017 * s-boarop.ads: Likewise.
8018 * s-carsi8.adb: Likewise.
8019 * s-carsi8.ads: Likewise.
8020 * s-carun8.adb: Likewise.
8021 * s-carun8.ads: Likewise.
8022 * s-casi16.adb: Likewise.
8023 * s-casi16.ads: Likewise.
8024 * s-casi32.adb: Likewise.
8025 * s-casi32.ads: Likewise.
8026 * s-casi64.adb: Likewise.
8027 * s-casi64.ads: Likewise.
8028 * s-casuti.ads: Likewise.
8029 * s-caun16.adb: Likewise.
8030 * s-caun16.ads: Likewise.
8031 * s-caun32.adb: Likewise.
8032 * s-caun32.ads: Likewise.
8033 * s-caun64.adb: Likewise.
8034 * s-caun64.ads: Likewise.
8035 * s-chepoo.ads: Likewise.
8036 * s-crc32.adb: Likewise.
8037 * s-crc32.ads: Likewise.
8038 * s-crtl.ads: Likewise.
8039 * s-direio.adb: Likewise.
8040 * s-direio.ads: Likewise.
8041 * s-dsaser.ads: Likewise.
8042 * s-except.adb: Likewise.
8043 * s-except.ads: Likewise.
8044 * s-exctab.adb: Likewise.
8045 * s-exctab.ads: Likewise.
8046 * s-exnint.adb: Likewise.
8047 * s-exnint.ads: Likewise.
8048 * s-exnllf.adb: Likewise.
8049 * s-exnllf.ads: Likewise.
8050 * s-exnlli.adb: Likewise.
8051 * s-exnlli.ads: Likewise.
8052 * s-expint.adb: Likewise.
8053 * s-expint.ads: Likewise.
8054 * s-explli.adb: Likewise.
8055 * s-explli.ads: Likewise.
8056 * s-expllu.adb: Likewise.
8057 * s-expllu.ads: Likewise.
8058 * s-expmod.adb: Likewise.
8059 * s-expmod.ads: Likewise.
8060 * s-expuns.adb: Likewise.
8061 * s-expuns.ads: Likewise.
8062 * s-fatflt.ads: Likewise.
8063 * s-fatgen.adb: Likewise.
8064 * s-fatgen.ads: Likewise.
8065 * s-fatlfl.ads: Likewise.
8066 * s-fatllf.ads: Likewise.
8067 * s-fatsfl.ads: Likewise.
8068 * s-ficobl.ads: Likewise.
8069 * s-fileio.adb: Likewise.
8070 * s-fileio.ads: Likewise.
8071 * s-filofl.ads: Likewise.
8072 * s-finimp.adb: Likewise.
8073 * s-finimp.ads: Likewise.
8074 * s-finroo.adb: Likewise.
8075 * s-finroo.ads: Likewise.
8076 * s-fishfl.ads: Likewise.
8077 * s-fore.adb: Likewise.
8078 * s-fore.ads: Likewise.
8079 * s-fvadfl.ads: Likewise.
8080 * s-fvaffl.ads: Likewise.
8081 * s-fvagfl.ads: Likewise.
8082 * s-gearop.adb: Likewise.
8083 * s-gearop.ads: Likewise.
8084 * s-gecobl.adb: Likewise.
8085 * s-gecobl.ads: Likewise.
8086 * s-gecola.adb: Likewise.
8087 * s-gecola.ads: Likewise.
8088 * s-gerebl.adb: Likewise.
8089 * s-gerebl.ads: Likewise.
8090 * s-gerela.adb: Likewise.
8091 * s-gerela.ads: Likewise.
8092 * s-geveop.adb: Likewise.
8093 * s-geveop.ads: Likewise.
8094 * s-gloloc.adb: Likewise.
8095 * s-gloloc.ads: Likewise.
8096 * s-hibaen.ads: Likewise.
8097 * s-imenne.adb: Likewise.
8098 * s-imenne.ads: Likewise.
8099 * s-imgbiu.adb: Likewise.
8100 * s-imgbiu.ads: Likewise.
8101 * s-imgboo.adb: Likewise.
8102 * s-imgboo.ads: Likewise.
8103 * s-imgcha.adb: Likewise.
8104 * s-imgcha.ads: Likewise.
8105 * s-imgdec.adb: Likewise.
8106 * s-imgdec.ads: Likewise.
8107 * s-imgenu.adb: Likewise.
8108 * s-imgenu.ads: Likewise.
8109 * s-imgint.adb: Likewise.
8110 * s-imgint.ads: Likewise.
8111 * s-imgllb.adb: Likewise.
8112 * s-imgllb.ads: Likewise.
8113 * s-imglld.adb: Likewise.
8114 * s-imglld.ads: Likewise.
8115 * s-imglli.adb: Likewise.
8116 * s-imglli.ads: Likewise.
8117 * s-imgllu.adb: Likewise.
8118 * s-imgllu.ads: Likewise.
8119 * s-imgllw.adb: Likewise.
8120 * s-imgllw.ads: Likewise.
8121 * s-imgrea.adb: Likewise.
8122 * s-imgrea.ads: Likewise.
8123 * s-imguns.adb: Likewise.
8124 * s-imguns.ads: Likewise.
8125 * s-imgwch.adb: Likewise.
8126 * s-imgwch.ads: Likewise.
8127 * s-imgwiu.adb: Likewise.
8128 * s-imgwiu.ads: Likewise.
8129 * s-inmaop-dummy.adb: Likewise.
8130 * s-inmaop-vms.adb: Likewise.
8131 * s-inmaop.ads: Likewise.
8132 * s-interr-hwint.adb: Likewise.
8133 * s-interr-sigaction.adb: Likewise.
8134 * s-interr-vms.adb: Likewise.
8135 * s-interr.adb: Likewise.
8136 * s-interr.ads: Likewise.
8137 * s-intman-dummy.adb: Likewise.
8138 * s-intman-mingw.adb: Likewise.
8139 * s-intman-posix.adb: Likewise.
8140 * s-intman-solaris.adb: Likewise.
8141 * s-intman-vms.adb: Likewise.
8142 * s-intman-vms.ads: Likewise.
8143 * s-intman-vxworks.adb: Likewise.
8144 * s-intman-vxworks.ads: Likewise.
8145 * s-intman.ads: Likewise.
8146 * s-io.adb: Likewise.
8147 * s-io.ads: Likewise.
8148 * s-linux-alpha.ads: Likewise.
8149 * s-linux-hppa.ads: Likewise.
8150 * s-linux.ads: Likewise.
8151 * s-maccod.ads: Likewise.
8152 * s-mantis.adb: Likewise.
8153 * s-mantis.ads: Likewise.
8154 * s-mastop-irix.adb: Likewise.
8155 * s-mastop.adb: Likewise.
8156 * s-mastop.ads: Likewise.
8157 * s-memcop.ads: Likewise.
8158 * s-memory-mingw.adb: Likewise.
8159 * s-memory.adb: Likewise.
8160 * s-memory.ads: Likewise.
8161 * s-os_lib.ads: Likewise.
8162 * s-oscons-tmplt.c: Likewise.
8163 * s-osinte-aix.adb: Likewise.
8164 * s-osinte-darwin.adb: Likewise.
8165 * s-osinte-freebsd.adb: Likewise.
8166 * s-osinte-irix.adb: Likewise.
8167 * s-osinte-lynxos-3.adb: Likewise.
8168 * s-osinte-rtems.ads: Likewise.
8169 * s-osinte-tru64.adb: Likewise.
8170 * s-osinte-vxworks-kernel.adb: Likewise.
8171 * s-osinte-vxworks.adb: Likewise.
8172 * s-osprim-mingw.adb: Likewise.
8173 * s-osprim-posix.adb: Likewise.
8174 * s-osprim-solaris.adb: Likewise.
8175 * s-osprim-unix.adb: Likewise.
8176 * s-osprim-vms.adb: Likewise.
8177 * s-osprim-vms.ads: Likewise.
8178 * s-osprim-vxworks.adb: Likewise.
8179 * s-osprim.ads: Likewise.
8180 * s-pack03.adb: Likewise.
8181 * s-pack03.ads: Likewise.
8182 * s-pack05.adb: Likewise.
8183 * s-pack05.ads: Likewise.
8184 * s-pack06.adb: Likewise.
8185 * s-pack06.ads: Likewise.
8186 * s-pack07.adb: Likewise.
8187 * s-pack07.ads: Likewise.
8188 * s-pack09.adb: Likewise.
8189 * s-pack09.ads: Likewise.
8190 * s-pack10.adb: Likewise.
8191 * s-pack10.ads: Likewise.
8192 * s-pack11.adb: Likewise.
8193 * s-pack11.ads: Likewise.
8194 * s-pack12.adb: Likewise.
8195 * s-pack12.ads: Likewise.
8196 * s-pack13.adb: Likewise.
8197 * s-pack13.ads: Likewise.
8198 * s-pack14.adb: Likewise.
8199 * s-pack14.ads: Likewise.
8200 * s-pack15.adb: Likewise.
8201 * s-pack15.ads: Likewise.
8202 * s-pack17.adb: Likewise.
8203 * s-pack17.ads: Likewise.
8204 * s-pack18.adb: Likewise.
8205 * s-pack18.ads: Likewise.
8206 * s-pack19.adb: Likewise.
8207 * s-pack19.ads: Likewise.
8208 * s-pack20.adb: Likewise.
8209 * s-pack20.ads: Likewise.
8210 * s-pack21.adb: Likewise.
8211 * s-pack21.ads: Likewise.
8212 * s-pack22.adb: Likewise.
8213 * s-pack22.ads: Likewise.
8214 * s-pack23.adb: Likewise.
8215 * s-pack23.ads: Likewise.
8216 * s-pack24.adb: Likewise.
8217 * s-pack24.ads: Likewise.
8218 * s-pack25.adb: Likewise.
8219 * s-pack25.ads: Likewise.
8220 * s-pack26.adb: Likewise.
8221 * s-pack26.ads: Likewise.
8222 * s-pack27.adb: Likewise.
8223 * s-pack27.ads: Likewise.
8224 * s-pack28.adb: Likewise.
8225 * s-pack28.ads: Likewise.
8226 * s-pack29.adb: Likewise.
8227 * s-pack29.ads: Likewise.
8228 * s-pack30.adb: Likewise.
8229 * s-pack30.ads: Likewise.
8230 * s-pack31.adb: Likewise.
8231 * s-pack31.ads: Likewise.
8232 * s-pack33.adb: Likewise.
8233 * s-pack33.ads: Likewise.
8234 * s-pack34.adb: Likewise.
8235 * s-pack34.ads: Likewise.
8236 * s-pack35.adb: Likewise.
8237 * s-pack35.ads: Likewise.
8238 * s-pack36.adb: Likewise.
8239 * s-pack36.ads: Likewise.
8240 * s-pack37.adb: Likewise.
8241 * s-pack37.ads: Likewise.
8242 * s-pack38.adb: Likewise.
8243 * s-pack38.ads: Likewise.
8244 * s-pack39.adb: Likewise.
8245 * s-pack39.ads: Likewise.
8246 * s-pack40.adb: Likewise.
8247 * s-pack40.ads: Likewise.
8248 * s-pack41.adb: Likewise.
8249 * s-pack41.ads: Likewise.
8250 * s-pack42.adb: Likewise.
8251 * s-pack42.ads: Likewise.
8252 * s-pack43.adb: Likewise.
8253 * s-pack43.ads: Likewise.
8254 * s-pack44.adb: Likewise.
8255 * s-pack44.ads: Likewise.
8256 * s-pack45.adb: Likewise.
8257 * s-pack45.ads: Likewise.
8258 * s-pack46.adb: Likewise.
8259 * s-pack46.ads: Likewise.
8260 * s-pack47.adb: Likewise.
8261 * s-pack47.ads: Likewise.
8262 * s-pack48.adb: Likewise.
8263 * s-pack48.ads: Likewise.
8264 * s-pack49.adb: Likewise.
8265 * s-pack49.ads: Likewise.
8266 * s-pack50.adb: Likewise.
8267 * s-pack50.ads: Likewise.
8268 * s-pack51.adb: Likewise.
8269 * s-pack51.ads: Likewise.
8270 * s-pack52.adb: Likewise.
8271 * s-pack52.ads: Likewise.
8272 * s-pack53.adb: Likewise.
8273 * s-pack53.ads: Likewise.
8274 * s-pack54.adb: Likewise.
8275 * s-pack54.ads: Likewise.
8276 * s-pack55.adb: Likewise.
8277 * s-pack55.ads: Likewise.
8278 * s-pack56.adb: Likewise.
8279 * s-pack56.ads: Likewise.
8280 * s-pack57.adb: Likewise.
8281 * s-pack57.ads: Likewise.
8282 * s-pack58.adb: Likewise.
8283 * s-pack58.ads: Likewise.
8284 * s-pack59.adb: Likewise.
8285 * s-pack59.ads: Likewise.
8286 * s-pack60.adb: Likewise.
8287 * s-pack60.ads: Likewise.
8288 * s-pack61.adb: Likewise.
8289 * s-pack61.ads: Likewise.
8290 * s-pack62.adb: Likewise.
8291 * s-pack62.ads: Likewise.
8292 * s-pack63.adb: Likewise.
8293 * s-pack63.ads: Likewise.
8294 * s-parame-ae653.ads: Likewise.
8295 * s-parame-hpux.ads: Likewise.
8296 * s-parame-rtems.adb: Likewise.
8297 * s-parame-vms-alpha.ads: Likewise.
8298 * s-parame-vms-ia64.ads: Likewise.
8299 * s-parame-vms-restrict.ads: Likewise.
8300 * s-parame-vxworks.adb: Likewise.
8301 * s-parame-vxworks.ads: Likewise.
8302 * s-parame.adb: Likewise.
8303 * s-parame.ads: Likewise.
8304 * s-parint.adb: Likewise.
8305 * s-parint.ads: Likewise.
8306 * s-pooglo.adb: Likewise.
8307 * s-pooglo.ads: Likewise.
8308 * s-pooloc.adb: Likewise.
8309 * s-pooloc.ads: Likewise.
8310 * s-poosiz.adb: Likewise.
8311 * s-poosiz.ads: Likewise.
8312 * s-powtab.ads: Likewise.
8313 * s-proinf-irix-athread.adb: Likewise.
8314 * s-proinf-irix-athread.ads: Likewise.
8315 * s-proinf.adb: Likewise.
8316 * s-proinf.ads: Likewise.
8317 * s-purexc.ads: Likewise.
8318 * s-rannum.adb: Likewise.
8319 * s-rannum.ads: Likewise.
8320 * s-restri.adb: Likewise.
8321 * s-restri.ads: Likewise.
8322 * s-rident.ads: Likewise.
8323 * s-rpc.adb: Likewise.
8324 * s-rpc.ads: Likewise.
8325 * s-scaval.adb: Likewise.
8326 * s-scaval.ads: Likewise.
8327 * s-secsta.adb: Likewise.
8328 * s-secsta.ads: Likewise.
8329 * s-sequio.adb: Likewise.
8330 * s-sequio.ads: Likewise.
8331 * s-shasto.adb: Likewise.
8332 * s-shasto.ads: Likewise.
8333 * s-soflin.adb: Likewise.
8334 * s-soflin.ads: Likewise.
8335 * s-solita.adb: Likewise.
8336 * s-solita.ads: Likewise.
8337 * s-sopco3.adb: Likewise.
8338 * s-sopco3.ads: Likewise.
8339 * s-sopco4.adb: Likewise.
8340 * s-sopco4.ads: Likewise.
8341 * s-sopco5.adb: Likewise.
8342 * s-sopco5.ads: Likewise.
8343 * s-stache.adb: Likewise.
8344 * s-stache.ads: Likewise.
8345 * s-stalib.adb: Likewise.
8346 * s-stalib.ads: Likewise.
8347 * s-stausa.adb: Likewise.
8348 * s-stausa.ads: Likewise.
8349 * s-stchop-limit.ads: Likewise.
8350 * s-stchop-rtems.adb: Likewise.
8351 * s-stchop-vxworks.adb: Likewise.
8352 * s-stchop.adb: Likewise.
8353 * s-stchop.ads: Likewise.
8354 * s-stoele.adb: Likewise.
8355 * s-stoele.ads: Likewise.
8356 * s-stopoo.adb: Likewise.
8357 * s-stopoo.ads: Likewise.
8358 * s-stratt.adb: Likewise.
8359 * s-stratt.ads: Likewise.
8360 * s-strcom.adb: Likewise.
8361 * s-strcom.ads: Likewise.
8362 * s-string.adb: Likewise.
8363 * s-string.ads: Likewise.
8364 * s-strops.adb: Likewise.
8365 * s-strops.ads: Likewise.
8366 * s-strxdr.adb: Likewise.
8367 * s-ststop.adb: Likewise.
8368 * s-ststop.ads: Likewise.
8369 * s-taasde.adb: Likewise.
8370 * s-taasde.ads: Likewise.
8371 * s-tadeca.adb: Likewise.
8372 * s-tadeca.ads: Likewise.
8373 * s-tadert.adb: Likewise.
8374 * s-tadert.ads: Likewise.
8375 * s-taenca.adb: Likewise.
8376 * s-taenca.ads: Likewise.
8377 * s-taprob.ads: Likewise.
8378 * s-taprop-dummy.adb: Likewise.
8379 * s-taprop-hpux-dce.adb: Likewise.
8380 * s-taprop-irix.adb: Likewise.
8381 * s-taprop-linux.adb: Likewise.
8382 * s-taprop-lynxos.adb: Likewise.
8383 * s-taprop-mingw.adb: Likewise.
8384 * s-taprop-posix.adb: Likewise.
8385 * s-taprop-solaris.adb: Likewise.
8386 * s-taprop-tru64.adb: Likewise.
8387 * s-taprop-vms.adb: Likewise.
8388 * s-taprop-vxworks.adb: Likewise.
8389 * s-taprop.ads: Likewise.
8390 * s-tarest.adb: Likewise.
8391 * s-tarest.ads: Likewise.
8392 * s-tasdeb.adb: Likewise.
8393 * s-tasdeb.ads: Likewise.
8394 * s-tasinf-irix.ads: Likewise.
8395 * s-tasinf-linux.adb: Likewise.
8396 * s-tasinf-linux.ads: Likewise.
8397 * s-tasinf-mingw.adb: Likewise.
8398 * s-tasinf-mingw.ads: Likewise.
8399 * s-tasinf-solaris.adb: Likewise.
8400 * s-tasinf-solaris.ads: Likewise.
8401 * s-tasinf-tru64.ads: Likewise.
8402 * s-tasinf.adb: Likewise.
8403 * s-tasinf.ads: Likewise.
8404 * s-tasini.adb: Likewise.
8405 * s-tasini.ads: Likewise.
8406 * s-taskin.adb: Likewise.
8407 * s-taskin.ads: Likewise.
8408 * s-taspri-dummy.ads: Likewise.
8409 * s-taspri-hpux-dce.ads: Likewise.
8410 * s-taspri-mingw.ads: Likewise.
8411 * s-taspri-solaris.ads: Likewise.
8412 * s-taspri-tru64.ads: Likewise.
8413 * s-taspri-vms.ads: Likewise.
8414 * s-taspri-vxworks.ads: Likewise.
8415 * s-tasque.adb: Likewise.
8416 * s-tasque.ads: Likewise.
8417 * s-tasren.adb: Likewise.
8418 * s-tasren.ads: Likewise.
8419 * s-tasres.ads: Likewise.
8420 * s-tassta.adb: Likewise.
8421 * s-tassta.ads: Likewise.
8422 * s-tasuti.adb: Likewise.
8423 * s-tasuti.ads: Likewise.
8424 * s-tfsetr-default.adb: Likewise.
8425 * s-tfsetr-vxworks.adb: Likewise.
8426 * s-tpinop.adb: Likewise.
8427 * s-tpinop.ads: Likewise.
8428 * s-tpoben.adb: Likewise.
8429 * s-tpoben.ads: Likewise.
8430 * s-tpobop.adb: Likewise.
8431 * s-tpobop.ads: Likewise.
8432 * s-tpopde-vms.adb: Likewise.
8433 * s-tpopde-vms.ads: Likewise.
8434 * s-tpopsp-lynxos.adb: Likewise.
8435 * s-tpopsp-posix-foreign.adb: Likewise.
8436 * s-tpopsp-posix.adb: Likewise.
8437 * s-tpopsp-solaris.adb: Likewise.
8438 * s-tpopsp-vxworks.adb: Likewise.
8439 * s-tporft.adb: Likewise.
8440 * s-tposen.adb: Likewise.
8441 * s-tposen.ads: Likewise.
8442 * s-traceb.adb: Likewise.
8443 * s-traceb.ads: Likewise.
8444 * s-traces-default.adb: Likewise.
8445 * s-traces.adb: Likewise.
8446 * s-traces.ads: Likewise.
8447 * s-traent-vms.adb: Likewise.
8448 * s-traent-vms.ads: Likewise.
8449 * s-traent.adb: Likewise.
8450 * s-traent.ads: Likewise.
8451 * s-trafor-default.adb: Likewise.
8452 * s-trafor-default.ads: Likewise.
8453 * s-tratas-default.adb: Likewise.
8454 * s-tratas.adb: Likewise.
8455 * s-tratas.ads: Likewise.
8456 * s-unstyp.ads: Likewise.
8457 * s-utf_32.adb: Likewise.
8458 * s-utf_32.ads: Likewise.
8459 * s-vaflop-vms-alpha.adb: Likewise.
8460 * s-vaflop.adb: Likewise.
8461 * s-vaflop.ads: Likewise.
8462 * s-valboo.adb: Likewise.
8463 * s-valboo.ads: Likewise.
8464 * s-valcha.adb: Likewise.
8465 * s-valcha.ads: Likewise.
8466 * s-valdec.adb: Likewise.
8467 * s-valdec.ads: Likewise.
8468 * s-valenu.adb: Likewise.
8469 * s-valenu.ads: Likewise.
8470 * s-valint.adb: Likewise.
8471 * s-valint.ads: Likewise.
8472 * s-vallld.adb: Likewise.
8473 * s-vallld.ads: Likewise.
8474 * s-vallli.adb: Likewise.
8475 * s-vallli.ads: Likewise.
8476 * s-valllu.adb: Likewise.
8477 * s-valllu.ads: Likewise.
8478 * s-valrea.adb: Likewise.
8479 * s-valrea.ads: Likewise.
8480 * s-valuns.adb: Likewise.
8481 * s-valuns.ads: Likewise.
8482 * s-valuti.adb: Likewise.
8483 * s-valuti.ads: Likewise.
8484 * s-valwch.adb: Likewise.
8485 * s-valwch.ads: Likewise.
8486 * s-veboop.adb: Likewise.
8487 * s-veboop.ads: Likewise.
8488 * s-vector.ads: Likewise.
8489 * s-vercon.adb: Likewise.
8490 * s-vercon.ads: Likewise.
8491 * s-vmexta.adb: Likewise.
8492 * s-vmexta.ads: Likewise.
8493 * s-vxwext-kernel.ads: Likewise.
8494 * s-vxwext-rtp.adb: Likewise.
8495 * s-vxwext-rtp.ads: Likewise.
8496 * s-vxwext.ads: Likewise.
8497 * s-vxwork-arm.ads: Likewise.
8498 * s-vxwork-m68k.ads: Likewise.
8499 * s-vxwork-mips.ads: Likewise.
8500 * s-vxwork-ppc.ads: Likewise.
8501 * s-vxwork-sparcv9.ads: Likewise.
8502 * s-vxwork-x86.ads: Likewise.
8503 * s-wchcnv.adb: Likewise.
8504 * s-wchcnv.ads: Likewise.
8505 * s-wchcon.adb: Likewise.
8506 * s-wchcon.ads: Likewise.
8507 * s-wchjis.adb: Likewise.
8508 * s-wchjis.ads: Likewise.
8509 * s-wchstw.adb: Likewise.
8510 * s-wchstw.ads: Likewise.
8511 * s-wchwts.adb: Likewise.
8512 * s-wchwts.ads: Likewise.
8513 * s-widboo.adb: Likewise.
8514 * s-widboo.ads: Likewise.
8515 * s-widcha.adb: Likewise.
8516 * s-widcha.ads: Likewise.
8517 * s-widenu.adb: Likewise.
8518 * s-widenu.ads: Likewise.
8519 * s-widlli.adb: Likewise.
8520 * s-widlli.ads: Likewise.
8521 * s-widllu.adb: Likewise.
8522 * s-widllu.ads: Likewise.
8523 * s-widwch.adb: Likewise.
8524 * s-widwch.ads: Likewise.
8525 * s-win32.ads: Likewise.
8526 * s-winext.ads: Likewise.
8527 * s-wwdcha.adb: Likewise.
8528 * s-wwdcha.ads: Likewise.
8529 * s-wwdenu.adb: Likewise.
8530 * s-wwdenu.ads: Likewise.
8531 * s-wwdwch.adb: Likewise.
8532 * s-wwdwch.ads: Likewise.
8533 * scans.adb: Likewise.
8534 * scans.ads: Likewise.
8535 * seh_init.c: Likewise.
8536 * sfn_scan.adb: Likewise.
8537 * sinfo.adb: Likewise.
8538 * sinfo.ads: Likewise.
8539 * sinput.adb: Likewise.
8540 * sinput.ads: Likewise.
8541 * snames.adb: Likewise.
8542 * snames.ads: Likewise.
8543 * socket.c: Likewise.
8544 * stand.adb: Likewise.
8545 * stand.ads: Likewise.
8546 * stringt.adb: Likewise.
8547 * stringt.ads: Likewise.
8548 * sysdep.c: Likewise.
8549 * system-aix.ads: Likewise.
8550 * system-darwin-ppc.ads: Likewise.
8551 * system-darwin-x86.ads: Likewise.
8552 * system-darwin-x86_64.ads: Likewise.
8553 * system-freebsd-x86.ads: Likewise.
8554 * system-hpux-ia64.ads: Likewise.
8555 * system-hpux.ads: Likewise.
8556 * system-irix-n32.ads: Likewise.
8557 * system-irix-n64.ads: Likewise.
8558 * system-irix-o32.ads: Likewise.
8559 * system-linux-alpha.ads: Likewise.
8560 * system-linux-hppa.ads: Likewise.
8561 * system-linux-ia64.ads: Likewise.
8562 * system-linux-mips.ads: Likewise.
8563 * system-linux-mipsel.ads: Likewise.
8564 * system-linux-ppc.ads: Likewise.
8565 * system-linux-ppc64.ads: Likewise.
8566 * system-linux-s390.ads: Likewise.
8567 * system-linux-s390x.ads: Likewise.
8568 * system-linux-sh4.ads: Likewise.
8569 * system-linux-sparc.ads: Likewise.
8570 * system-linux-sparcv9.ads: Likewise.
8571 * system-linux-x86.ads: Likewise.
8572 * system-linux-x86_64.ads: Likewise.
8573 * system-lynxos-ppc.ads: Likewise.
8574 * system-lynxos-x86.ads: Likewise.
8575 * system-mingw-x86_64.ads: Likewise.
8576 * system-mingw.ads: Likewise.
8577 * system-rtems.ads: Likewise.
8578 * system-solaris-sparc.ads: Likewise.
8579 * system-solaris-sparcv9.ads: Likewise.
8580 * system-solaris-x86.ads: Likewise.
8581 * system-solaris-x86_64.ads: Likewise.
8582 * system-tru64.ads: Likewise.
8583 * system-vms-ia64.ads: Likewise.
8584 * system-vms-zcx.ads: Likewise.
8585 * system-vms.ads: Likewise.
8586 * system-vms_64.ads: Likewise.
8587 * system-vxworks-arm.ads: Likewise.
8588 * system-vxworks-m68k.ads: Likewise.
8589 * system-vxworks-mips.ads: Likewise.
8590 * system-vxworks-ppc.ads: Likewise.
8591 * system-vxworks-sparcv9.ads: Likewise.
8592 * system-vxworks-x86.ads: Likewise.
8593 * system.ads: Likewise.
8594 * table.adb: Likewise.
8595 * table.ads: Likewise.
8596 * targext.c: Likewise.
8597 * targparm.ads: Likewise.
8598 * tree_in.adb: Likewise.
8599 * tree_in.ads: Likewise.
8600 * tree_io.adb: Likewise.
8601 * tree_io.ads: Likewise.
8602 * types.adb: Likewise.
8603 * types.ads: Likewise.
8604 * uintp.adb: Likewise.
8605 * uintp.ads: Likewise.
8606 * uname.adb: Likewise.
8607 * uname.ads: Likewise.
8608 * urealp.adb: Likewise.
8609 * urealp.ads: Likewise.
8610 * vx_stack_info.c: Likewise.
8611 * widechar.adb: Likewise.
8612 * widechar.ads: Likewise.
8613 * exp_attr.adb: Change copyright header to refer to version
8614 3 of the GNU General Public License and to point readers at the
8615 COPYING3 file and the FSF's license web page.
8616 * sem.adb: Likewise.
8617 * sem_attr.ads: Likewise.
8618 * freeze.adb: Likewise.
8619 * freeze.ads: Likewise.
8620 * errout.ads: Likewise.
8621 * erroutc.adb: Likewise.
8622 * exp_ch11.ads: Likewise.
8624 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8626 * config-lang.in: Change copyright header to refer to version
8627 3 of the GNU General Public License and to point readers at the
8628 COPYING3 file and the FSF's license web page.
8629 * gcc-interface/trans.c: Likewise.
8630 * gnathtml.pl: Likewise.
8631 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8632 * gcc-interface/gigi.h: Likewise.
8633 * gcc-interface/misc.c: Likewise.
8634 * gcc-interface/targtyps.c: Likewise.
8636 2009-04-09 Nicolas Setton <setton@adacore.com>
8638 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8640 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8643 2009-04-09 Bob Duff <duff@adacore.com>
8645 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8646 internally-generated nodes related to select statements to avoid
8647 confusing the debugger.
8649 2009-04-09 Pascal Obry <obry@adacore.com>
8651 * make.adb: Ensure that all linker arguments are duplicated.
8653 2009-04-09 Robert Dewar <dewar@adacore.com>
8655 * sem_ch5.adb: Minor reformatting
8657 2009-04-09 Vincent Celier <celier@adacore.com>
8660 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8661 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8662 New qualifier /LXDEBUG=nnn for -gnatDnnn
8666 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8669 2009-04-09 Nicolas Setton <setton@adacore.com>
8671 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8672 to match layout of siginfo_t in sys/signal.h.
8674 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8676 2009-04-09 Thomas Quinot <quinot@adacore.com>
8678 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8680 2009-04-09 Nicolas Setton <setton@adacore.com>
8682 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8683 Add generation of Darwin-specific constants needed when binding to the
8686 2009-04-09 Robert Dewar <dewar@adacore.com>
8689 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8690 when no invalid values exist, Avoid duplicate read of atomic variable.
8692 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8693 (Standard_Unsigned): Set Is_Known_Valid
8695 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8696 subtype declaration if no constraint.
8697 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8698 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8700 2009-04-09 Robert Dewar <dewar@adacore.com>
8702 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8703 switch.ads: for numeric switches, an optional equal sign is always
8706 2009-04-09 Vincent Celier <celier@adacore.com>
8708 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8709 the case of file names is not significant.
8711 2009-04-09 Vincent Celier <celier@adacore.com>
8713 * errout.adb: Remove dependency on package Style
8715 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8718 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8721 * errutil.adb, par.adb: Import Stylesw
8723 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8725 * opt.ads: Fix typos.
8727 2009-04-09 Robert Dewar <dewar@adacore.com>
8729 * einfo.adb: Minor reformatting
8731 2009-04-09 Robert Dewar <dewar@adacore.com>
8733 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8736 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8738 2009-04-09 Robert Dewar <dewar@adacore.com>
8740 * g-comver.adb: Minor reformatting.
8742 2009-04-09 Thomas Quinot <quinot@adacore.com>
8744 * lib-load.ads (Load_Unit): Update documentation.
8746 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8748 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8749 named in a with_clause, retain the with_clause to preserve a
8750 limited_with indication.
8752 2009-04-09 Robert Dewar <dewar@adacore.com>
8754 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8755 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8756 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8757 possible to replace an OR of two separate tests.
8759 2009-04-09 Robert Dewar <dewar@adacore.com>
8761 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8764 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8765 warning status as well.
8767 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8769 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8772 * bindusg.adb, usage.adb: Update line for -gnatm switch
8774 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8777 2009-04-09 Robert Dewar <dewar@adacore.com>
8779 * sem_ch10.adb: Minor reformatting.
8781 2009-04-09 Bob Duff <duff@adacore.com>
8783 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8784 Set Sloc of generated nodes for calls to Undefer_Aborts and
8785 Save_Occurrence to No_Location, so the debugger ignores them and
8786 therefore does not jump back and forth when single stepping.
8788 2009-04-09 Robert Dewar <dewar@adacore.com>
8790 * switch-b.adb: Minor reformatting.
8792 2009-04-09 Robert Dewar <dewar@adacore.com>
8794 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8795 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8796 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8797 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8798 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8799 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8800 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8801 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8802 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8803 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8804 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8806 2009-04-09 Robert Dewar <dewar@adacore.com>
8808 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8810 * atree.h: Add Elist26
8812 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8815 2009-04-09 Javier Miranda <miranda@adacore.com>
8817 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8818 retrieve from the Dispatch_Table_Wrappers list the external name.
8819 Addition of documentation.
8820 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8821 used to export secondary dispatch tables (in the previous version of
8822 the frontend only primary dispatch tables were exported). Addition of
8824 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8825 dispatch table of a given tagged type.
8826 (Make_Tags): Modified to import secondary dispatch tables.
8828 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8829 (Constant_Redeclaration): Code cleanup.
8831 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8832 Dispatch_Table_Wrappers. Update documentation.
8834 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8835 Renamed to Dispatch_Table_Wrappers.
8837 * sem_util.adb (Collect_Interface_Components): Improve handling of
8840 * atree.ads (Elist26, Set_Elist26): New subprograms
8842 * atree.adb (Elist26, Set_Elist26): New subprograms
8844 2009-04-09 Javier Miranda <miranda@adacore.com>
8846 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8847 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8850 2009-04-09 Robert Dewar <dewar@adacore.com>
8852 * s-direio.adb: Minor reformatting
8854 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8856 2009-04-09 Robert Dewar <dewar@adacore.com>
8858 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8860 2009-04-09 Pascal Obry <obry@adacore.com>
8862 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8863 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8864 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8865 a-filico.ads: Add some missing overriding keywords.
8867 2009-04-09 Pascal Obry <obry@adacore.com>
8869 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8870 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8871 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8874 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8876 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8877 missing overriding indicator if the new declaration is not seen as
8880 2009-04-09 Thomas Quinot <quinot@adacore.com>
8882 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8883 overflows in computation of bounds.
8885 2009-04-09 Pascal Obry <obry@adacore.com>
8887 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8890 2009-04-09 Robert Dewar <dewar@adacore.com>
8892 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8893 restriction No_Streams
8895 * gnat_rm.texi: Clarify No_Streams restriction
8897 * g-socket.adb: Minor reformatting.
8899 2009-04-09 Thomas Quinot <quinot@adacore.com>
8901 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8903 2009-04-09 Geert Bosch <bosch@adacore.com>
8905 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8906 (Set_Result): Likewise.
8907 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8908 conversion, as required by RM 4.6(31).
8910 2009-04-08 Robert Dewar <dewar@adacore.com>
8912 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8915 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8918 2009-04-08 Robert Dewar <dewar@adacore.com>
8920 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8921 No_Local_Allocators restriction preventing local instantiation.
8923 2009-04-08 Thomas Quinot <quinot@adacore.com>
8925 * sem_eval.adb: Minor comment fix
8927 2009-04-08 Thomas Quinot <quinot@adacore.com>
8929 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8930 New limited controlled type used to automate the initialization and
8931 finalization of the sockets implementation.
8932 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8934 2009-04-08 Vincent Celier <celier@adacore.com>
8936 * prj-attr.adb: New read-only project-level attribute Project_Dir
8938 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8939 read-only attribute of the same name.
8940 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8941 (Recursive_Process): Ditto
8943 * snames.adb: Add new standard name Project_Dir
8945 * snames.ads: Add new standard name Project_Dir
8947 2009-04-08 Thomas Quinot <quinot@adacore.com>
8949 * checks.adb: Minor reformatting
8951 2009-04-08 Vincent Celier <celier@adacore.com>
8953 * vms_data.ads: Add documentation for new style keyword
8954 OVERRIDING_INDICATORS
8956 2009-04-08 Robert Dewar <dewar@adacore.com>
8958 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8959 spec is in the current unit.
8961 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8963 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8966 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8968 2009-04-08 Vincent Celier <celier@adacore.com>
8970 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8972 2009-04-08 Thomas Quinot <quinot@adacore.com>
8974 * checks.ads: Minor reformatting
8976 2009-04-08 Robert Dewar <dewar@adacore.com>
8978 * gnat_rm.texi: Update documentation of pragma Obsolescent
8980 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8981 be omitted, and allow Entity parameter to be omitted.
8983 2009-04-08 Thomas Quinot <quinot@adacore.com>
8985 * exp_util.adb: Minor comment fix
8987 2009-04-08 Robert Dewar <dewar@adacore.com>
8989 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8991 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8992 argument with no identifier following one that has an identifier. Was
8993 missed in some cases.
8995 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8997 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8999 * snames.adb: Add Name_Policy
9001 * snames.ads: Add Name_Policy
9003 2009-04-08 Robert Dewar <dewar@adacore.com>
9005 * gnat_rm.texi: Minor reformatting
9007 * par-ch2.adb: Minor reformatting
9009 2009-04-08 Robert Dewar <dewar@adacore.com>
9011 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9013 2009-04-08 Robert Dewar <dewar@adacore.com>
9015 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9016 properly in the presence of Remote_Types or Remote_Call_Interface.
9018 * sem_util.adb: Add comment.
9020 2009-04-08 Robert Dewar <dewar@adacore.com>
9022 * ug_words: Add /ASSUME_VALID for -gnatB
9024 * vms_data.ads: Add /ASSUME_VALID for -gnatB
9026 * sem_cat.adb: Add clarifying commment
9028 * a-direio.ads (Bytes): Make sure value is non-zero
9030 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9032 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9033 that does not come from source, check for a rewritten function call in
9034 prefixed notation before other forms of rewriting.
9036 2009-04-08 Robert Dewar <dewar@adacore.com>
9038 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9039 these are now obsolescent units used only for bootrapping with an
9042 2009-04-08 Robert Dewar <dewar@adacore.com>
9044 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
9046 * sem_ch3.adb: Minor comment updates
9048 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9050 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
9051 that come from source.
9053 2009-04-08 Tristan Gingold <gingold@adacore.com>
9055 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
9056 * gcc-interface/decl.c (prepend_attributes): New case
9057 Pragma_Thread_Local_Storage.
9058 * gcc-interface/utils.c (process_attributes): New case
9059 ATTR_THREAD_LOCAL_STORAGE.
9061 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9063 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
9064 by the back-end if it contains a call to a subprogram without a
9065 previous spec that is declared in the same unit.
9067 * errout.ads: Update comments on uses of dirs
9069 2009-04-08 Robert Dewar <dewar@adacore.com>
9071 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
9073 2009-04-08 Tristan Gingold <gingold@adacore.com>
9075 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
9077 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
9079 2009-04-08 Vincent Celier <celier@adacore.com>
9082 (Add_Source): Add the mapping of the unit name to source file name in
9083 the Unit_Sources_HT hash table, if the unit name is not null.
9085 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
9087 * prj.ads (Unit_Sources_Htable): New hash table instantiation
9088 (Project_Tree_Data): New component Unit_Sources_HT
9090 2009-04-08 Thomas Quinot <quinot@adacore.com>
9092 * sem_ch8.adb: Minor reformatting.
9093 Minor code reorganization.
9095 2009-04-08 Robert Dewar <dewar@adacore.com>
9097 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
9098 snames.ads, freeze.adb, par-prag.adb: Add implementation of
9099 pragma Thread_Local_Storage, setting new flag
9100 Has_Pragma_Thread_Local_Storage in corresponding entities.
9102 2009-04-08 Emmanuel Briot <briot@adacore.com>
9104 * prj.ads: Update comment on switches file
9106 * prj-nmsc.adb: Code clean up. Use renaming clauses.
9108 2009-04-08 Robert Dewar <dewar@adacore.com>
9110 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
9112 2009-04-08 Thomas Quinot <quinot@adacore.com>
9114 * ali-util.adb: Minor comment fix
9116 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9118 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
9119 appears in a context clause, and the enclosing package is mentioned in
9120 a limited_with_clause.
9121 (Use_One_Type): Reject clause if type is still incomplete.
9123 2009-04-08 Emmanuel Briot <briot@adacore.com>
9125 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
9126 avoid copies of Source_Data variables when possible, since these
9127 involve calls to memcpy() which are done too many times.
9129 2009-04-08 Robert Dewar <dewar@adacore.com>
9131 * exp_ch4.adb (Expand_Concatenate): Clean up code
9133 2009-04-07 Thomas Quinot <quinot@adacore.com>
9135 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9136 type for the case of concatenating a constrained array indexed by an
9139 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9141 * sem_ch6.adb (Check_Conformance): when checking conformance of an
9142 operation that overrides an abstract operation inherited from an
9143 interface, return False if only one of the controlling formals is an
9146 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9148 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9149 mandated by AI05-105.
9151 2009-04-07 Vincent Celier <celier@adacore.com>
9153 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
9155 2009-04-07 Thomas Quinot <quinot@adacore.com>
9157 * usage.adb: Minor fix in usage message.
9159 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
9160 match declaration; the correct subtype is Node_Id, not Entity_Id,
9161 because the expected node kind is an identifier, not a defining
9164 * switch-c.adb: Minor reformatting.
9166 * uintp.adb: Minor reformatting.
9168 2009-04-07 Robert Dewar <dewar@adacore.com>
9170 * exp_ch13.adb: Minor reformatting
9172 2009-04-07 Robert Dewar <dewar@adacore.com>
9174 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9175 against missing parent.
9177 2009-04-07 Thomas Quinot <quinot@adacore.com>
9179 * xoscons.adb: Minor reformatting
9181 2009-04-07 Robert Dewar <dewar@adacore.com>
9183 * rtsfind.ads: Remove obsolete string concatenation entries
9185 2009-04-07 Robert Dewar <dewar@adacore.com>
9187 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9189 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9191 * sem_ch10.adb (Check_Body_Required): Handle properly imported
9194 2009-04-07 Gary Dismukes <dismukes@adacore.com>
9196 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9197 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9198 is of a scalar or string type then suppress the setting of the
9199 expression to Empty.
9201 * freeze.adb (Warn_Overlay): Also emit the warnings about default
9202 initialization for the cases of scalar and string objects when
9203 Init_Or_Norm_Scalars is True.
9205 2009-04-07 Bob Duff <duff@adacore.com>
9207 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9209 2009-04-07 Bob Duff <duff@adacore.com>
9211 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9212 Form parameter of Text_Translation=No allows binary mode for Text_IO
9215 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9217 2009-04-07 Javier Miranda <miranda@adacore.com>
9219 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9220 processing the bounds for bit packed arrays or VM target machines.
9222 2009-04-07 Thomas Quinot <quinot@adacore.com>
9224 * g-sothco.ads (Int_Access): Remove extraneous access type (use
9225 anonymous access instead).
9226 (Get_Socket_From_Set): Fix incorrectly reverted formals
9227 Last and Socket to match the underlying C routine.
9229 * g-socket.adb, g-socket.ads
9230 (Get): Use named parameter associations instead of positional ones in
9231 call go Get_Socket_From_Set, since this routine has two formals of the
9233 (Image): New procedure.
9235 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9236 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9237 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9238 for type of Arg formal.
9240 * sem_warn.adb: Minor reformatting
9242 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9244 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9245 over record components.
9247 2009-04-07 Nicolas Roche <roche@adacore.com>
9250 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9251 has disappeared between VxWorks 6.4 and VxWorks 6.5
9252 In RTP mode use time.h instead of times.h
9254 2009-04-07 Robert Dewar <dewar@adacore.com>
9256 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9258 2009-04-07 Kevin Pouget <pouget@adacore.com>
9260 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9261 expanded code for constrained types.
9263 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9265 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9266 AI05-105: in an object renaming declaration, anonymousness is a name
9269 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9271 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9273 * g-comlin.adb (Expansion): Fix old regression: also return directory
9274 names when matching.
9276 2009-04-07 Robert Dewar <dewar@adacore.com>
9279 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9280 (Expand_Concatenate): New name for Expand_Concatenate_String which has
9281 been rewritten to handle all types.
9282 (Expand_Concatenate_Other): Remove
9284 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9286 * lib-xref.adb (Generate_Reference): A default subprogram in an
9287 instance appears within the tree for the instance, but generates an
9288 implicit reference in the ALI.
9290 2009-04-07 Javier Miranda <miranda@adacore.com>
9292 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9293 derived type that has discriminants, propagate the list of interfaces
9294 to the corresponding new base type. In addition, propagate also
9295 attribute Limited_Present (found working in this patch).
9297 2009-04-07 Robert Dewar <dewar@adacore.com>
9299 * exp_ch4.adb: Rewrite concatenation expansion.
9301 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9303 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9304 relevant to packages.
9306 2009-04-07 Robert Dewar <dewar@adacore.com>
9308 * sem_attr.adb: Minor reformatting
9310 * sem_ch6.adb: Minor reformatting
9312 2009-04-07 Tristan Gingold <gingold@adacore.com>
9314 * socket.c: Add more protections against S_resolvLib_ macros.
9316 2009-04-07 Thomas Quinot <quinot@adacore.com>
9318 * sem_attr.adb: Minor reformatting
9320 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9322 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9323 Is_Overriding_Alias to handle properly types that inherit two homonym
9324 operations that have distinct dispatch table entries.
9326 2009-04-07 Emmanuel Briot <briot@adacore.com>
9328 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9329 looking for the end of a parenthesis group
9331 2009-04-07 Tristan Gingold <gingold@adacore.com>
9333 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9335 * socket.c Don't use resolvLib_ macros if not defined.
9337 2009-04-07 Robert Dewar <dewar@adacore.com>
9339 * g-socket.adb: Minor reformatting.
9341 * g-socthi-mingw.adb: Minor reformatting
9343 * g-sothco.ads: Minor reformatting
9346 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9347 inline instead of relying on external library routines.
9349 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9350 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9353 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9356 (Eval_Attribute): for attributes of array objects that are not strings,
9357 attributes are not static if nominal subtype of object is unconstrained.
9359 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9361 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9362 operations for a type T in an instance do not override each other,
9363 when T is derived from a formal private type, the corresponding
9364 operations inherited by a type derived from T outside
9365 of the instance do not override each other either.
9367 2009-04-07 Robert Dewar <dewar@adacore.com>
9369 (Osint.Fail): Change calling sequence to have one string arg
9370 (Make.Make_Failed): Same change
9371 All callers are adjusted to use concatenation
9373 2009-04-07 Robert Dewar <dewar@adacore.com>
9375 * exp_ch4.adb: Fix documentation typo
9377 2009-04-07 Robert Dewar <dewar@adacore.com>
9379 * tbuild.ads: Minor reformatting
9381 2009-04-07 Javier Miranda <miranda@adacore.com>
9383 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9384 when compiling under ZFP runtime.
9386 2009-04-07 Robert Dewar <dewar@adacore.com>
9388 * g-comlin.adb: Minor reformatting
9390 2009-04-07 Thomas Quinot <quinot@adacore.com>
9392 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9393 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9394 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9395 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9397 2009-04-07 Robert Dewar <dewar@adacore.com>
9399 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9401 * opt.ads (Sprint_Line_Limit): New parameter
9403 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9405 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9407 * usage.adb: Output information for -gnatGnn -gnatDnn
9409 2009-04-07 Robert Dewar <dewar@adacore.com>
9411 * make.adb: Minor reformatting
9413 2009-04-07 Robert Dewar <dewar@adacore.com>
9415 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9417 2009-04-07 Robert Dewar <dewar@adacore.com>
9419 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9421 2009-04-07 Robert Dewar <dewar@adacore.com>
9424 Remove Assume_Valid parameter from In_Subrange_Of calls
9427 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9428 (Is_In_Range): Remove incorrect use of Assume_Valid
9429 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9432 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9433 (Is_In_Range): Documentation cleanup
9434 (Is_Out_Of_Range): Documentation cleanup
9437 Add documentation for Assume_No_Invalid_Values pragma
9439 * sem_ch12.adb: Minor reformatting
9441 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9443 * sem_prag.adb: Improve error message.
9445 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9446 LF/CR no longer recognized as line terminator
9448 * switch.ads: Minor documentation improvement
9450 * vms_data.ads: Minor reformatting
9452 2009-04-07 Robert Dewar <dewar@adacore.com>
9454 * checks.adb (Determine_Range): Add Assume_Valid parameter
9456 * checks.ads (Determine_Range): Add Assume_Valid parameter
9458 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9459 Is_Null_Loop to suppress warnings in a loop body.
9462 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9465 (Expand_N_Loop_Statement): Delete loop known not to execute
9468 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9469 fully enables the proper handling of invalid values.
9472 New calling sequence for Is_In_Range
9475 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9476 in determining if a loop range is null.
9479 (Is_In_Range): Add Assume_Valid parameter
9480 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9481 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9482 also to do more accurate and complete range analysis, catching more
9486 (Is_In_Range): Add Assume_Valid parameter
9487 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9490 New calling sequence for Is_In_Range
9493 (Suppress_Loop_Warnings): New flag
9496 (Is_Null_Loop): Update documentation
9497 (Suppress_Loop_Warnings): New flag
9499 * gnat_ugn.texi: Document -gnatB switch
9501 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9503 * gnatvsn.ads: Bump version number.
9505 2009-04-07 Thomas Quinot <quinot@adacore.com>
9507 * exp_ch3.adb: Minor rewording (comments)
9509 2009-04-07 Robert Dewar <dewar@adacore.com>
9511 * exp_disp.adb: Minor reformatting
9513 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9515 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9517 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9519 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9521 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9522 Do not convert the result. Remove obsolete comment.
9524 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9526 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9528 (Subprogram_Body_to_gnu): Fix pasto.
9530 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9532 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9533 (void_type_decl_node): Remove.
9534 (init_gigi_decls): Likewise.
9535 (gnat_install_builtins): Declare.
9536 (record_builtin_type): Likewise.
9537 (create_type_stub_decl): Likewise.
9538 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9539 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9541 <E_Array_Subtype>: Use the index types, not only their name, in the
9542 record giving the names of the bounds, if any.
9543 For a packed array type, make it artificial only if the base type
9544 was artificial as well. Remove redundant statement.
9545 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9547 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9548 (rest_of_type_decl_compilation_no_defer): Likewise.
9549 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9550 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9551 and use create_type_stub_decl to build it.
9552 (gnat_pushdecl): Rewrite condition.
9553 (gnat_install_builtins): Remove bogus declaration.
9554 (record_builtin_type): New function.
9555 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9557 (create_type_stub_decl): New function.
9558 (create_type_decl): Assert that the type is not dummy. If the type
9559 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9560 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9561 (build_vms_descriptor): Likewise.
9562 (init_gigi_decls): Delete and move bulk of code to...
9563 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9564 (emit_range_check): Add gnat_node parameter.
9565 (emit_index_check): Likewise.
9566 (emit_check): Likewise.
9567 (build_unary_op_trapv): Likewise.
9568 (build_binary_op_trapv): Likewise.
9569 (convert_with_check): Likewise.
9570 (Attribute_to_gnu): Adjust calls for above changes.
9571 (call_to_gnu): Likewise.
9572 (gnat_to_gnu): Likewise.
9573 (assoc_to_constructor): Likewise.
9574 (pos_to_constructor): Likewise.
9575 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9576 (process_type): Do not create TYPE_DECL for dummy types.
9578 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9580 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9581 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9582 * gcc-interface/utils.c: Fix comments.
9584 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9586 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9588 (gnat_to_gnu_type): Move around.
9589 (get_unpadded_type): Likewise.
9590 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9593 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9595 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9596 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9597 (call_to_gnu): Invoke it instead of manually checking.
9599 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9601 * gcc-interface/utils.c (finish_record_type): Force structural equality
9602 checks if the record type is discriminated.
9604 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9606 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9607 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9608 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9609 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9610 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9611 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9612 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9614 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9616 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9617 of TREE_CONSTANT_OVERFLOW.
9619 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9621 PR rtl-optimization/323
9622 * gcc-interface/misc.c (gnat_post_options): Set
9623 flag_excess_precision_cmdline. Give an error for
9624 -fexcess-precision=standard for processors where the option is
9627 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9630 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9633 2009-03-11 Olivier Hainque <hainque@adacore.com>
9635 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9636 checks processing, remove unintended TREE_TYPE walk on index type.
9638 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9641 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9642 call make_packable_type on fat pointer types.
9643 <E_Array_Subtype>: Likewise.
9644 <E_Record_Subtype>: Call make_packable_type on all record types
9645 except for fat pointer types.
9646 (make_packable_type): Likewise.
9647 (gnat_to_gnu_field): Likewise.
9649 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9651 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9652 EH_MECHANISM change made on 2007-12-06.
9654 2009-02-26 Andreas Schwab <schwab@suse.de>
9657 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9658 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9659 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9661 (target_cpu_default): Substitute.
9663 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9666 * a-teioed.adb (Expand): Fix Result overflow.
9668 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9670 * gcc-interface/Makefile.in: Fix multilib handling for
9673 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9675 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9677 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9679 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9681 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9683 * gcc-interface/deftarg.c: Remove.
9685 2009-02-10 Olivier Hainque <hainque@adacore.com>
9686 Eric Botcazou <ebotcazou@adacore.com>
9688 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9689 (copy_alias_set): Rename into...
9690 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9691 underlying array of unconstrained arrays for the new type as well.
9692 If the old and new alias sets don't conflict, make one a subset of
9693 the other as per the OP parameter.
9694 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9695 <E_Record_Type>: Do not copy the alias set for derived types.
9696 For all types, make the alias set of derived types a superset of
9697 that of their parent type.
9698 (make_aligning_type): Adjust calls to copy_alias_set.
9699 (make_packable_type): Likewise.
9700 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9701 Check for alias set conflict instead of strict equality to issue the
9704 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9706 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9707 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9708 (copy_alias_set): Assert that arrays have the same aliasing settings.
9709 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9711 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9714 Set TYPE_NONALIASED_COMPONENT on the array type.
9716 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9718 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9720 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9722 * gcc-interface/Makefile.in: Fix multilib handling for
9725 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9727 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9728 only useless conversions around renamed objects.
9730 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9732 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9733 the _Tag field before any discriminants in the field list.
9734 (components_to_record): Remove obsolete comment.
9738 Copyright (C) 2009 Free Software Foundation, Inc.
9740 Copying and distribution of this file, with or without modification,
9741 are permitted in any medium without royalty provided the copyright
9742 notice and this notice are preserved.