1 2009-07-23 Gary Dismukes <dismukes@adacore.com>
3 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
4 of a class-wide interface type that is a return object of a
5 build-in-place function, bypass the interface-related expansions into
6 renamings with displacement conversions, etc.
7 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
8 for the case where a renaming occurs in a build-in-place context, to
9 assert that the bypassing of the build-in-place treatment only occurs
10 in the case of a renaming that is an expansion of a return expression
11 that is itself a build-in-place function call.
13 2009-07-23 Ed Schonberg <schonberg@adacore.com>
15 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
16 valid candidate interpretation in a prefixed view if it is hidden, but
17 overrides an inherited operation declared in the visible part.
19 2009-07-23 Robert Dewar <dewar@adacore.com>
21 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
22 division operands to 64-bit at all in any circumstances.
24 2009-07-23 Robert Dewar <dewar@adacore.com>
26 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
27 checking ranges for mod/rem to see if conditional jump will be
29 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
30 generating special -1 test for rem, generate it whenever both
31 operands can be negative (match circuit in Sem_Res).
32 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
33 destroys memory of positive range.
34 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
35 checking ranges for mod/rem to see if conditional jump will be generated
37 2009-07-23 Ed Schonberg <schonberg@adacore.com>
39 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
40 scalar components has non-static bounds, the equivalent aggregate
41 cannot be built, even if the expression is static, because range checks
44 2009-07-23 Robert Dewar <dewar@adacore.com>
46 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
47 division operands to 64-bit inside a conversion if 64-bit division not
50 2009-07-23 Sergey Rybin <rybin@adacore.com>
52 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
54 2009-07-23 Javier Miranda <miranda@adacore.com>
56 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
57 (Entity/Set_Entity): not available in N_Null_Statement nodes
58 (Is_Scil_Node): renamed as Is_SCIL_Node
59 (Scil_Nkind): renamed as SCIL_Nkind
60 (Scil_Related_Node): renamed as SCIL_Related_Node
61 (Scil_Target_Prim): renamed as SCIL_Target_Prim
62 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
63 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
64 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
66 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
67 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
68 (New_Scil_Node): Renamed as New_SCIL_Node
69 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
70 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
71 (New_Scil_Node): Renamed as New_SCIL_Node
72 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
74 2009-07-23 Robert Dewar <dewar@adacore.com>
76 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
77 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
78 * einfo.adb: Minor reformatting
80 2009-07-23 Robert Dewar <dewar@adacore.com>
82 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
83 cross-referencing the new related code in
84 Exp_Ch4.Expand_N_Type_Conversion.
85 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
87 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
90 2009-07-23 Javier Miranda <miranda@adacore.com>
92 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
93 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
94 * exp_disp.ads (Scil_Node_Kind): Ditto.
95 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
96 * exp_ch3.adb (Build_Init_Procedure): Ditto.
98 2009-07-23 Javier Miranda <miranda@adacore.com>
100 * einfo.adb (Component_Type): Add missing assertion.
101 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
102 reading attribute Component_Size.
103 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
104 before reading attributes Component_Size and Component_Type.
105 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
106 before reading attribute Component_Type.
108 2009-07-23 Olivier Hainque <hainque@adacore.com>
110 * gnat_rm.texi: Document the GNAT.SSE units.
112 2009-07-23 Ed Schonberg <schonberg@adacore.com>
114 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
115 not null return if it appears on a subunit.
117 2009-07-23 Robert Dewar <dewar@adacore.com>
119 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
120 check right away so it does not get skipped for early returns, e.g.
122 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
123 left-side unless we really know the value is valid.
125 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
126 reformatting. Minor code reorganization. Add comments.
128 2009-07-23 Robert Dewar <dewar@adacore.com>
130 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
133 2009-07-23 Gary Dismukes <dismukes@adacore.com>
135 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
136 with test of coverage, to allow specific type objects in extended
137 returns of class-wide functions. Remove now-unnecessary special-case
138 tests that allowed this in certain cases of expanded extended returns.
140 2009-07-23 Javier Miranda <miranda@adacore.com>
142 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
143 N_Null_Statements (for SCIL nodes).
144 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
145 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
146 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
148 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
149 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
150 associated with dispatching call.
151 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
152 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
153 initialization of dispatch tables and initialization of tags.
154 (New_Scil_Node): New function that creates a new SCIL node.
155 (Build_Init_Procedure): Add generation of SCIL node associated with the
156 initialization of tags done in the IP subprogram.
158 2009-07-23 Ed Schonberg <schonberg@adacore.com>
160 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
161 Warnings_Off, do not emit continuation messages.
163 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
166 2009-07-23 Emmanuel Briot <briot@adacore.com>
168 * ali.adb: Minor comment update
170 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
172 * s-win32.ads (HANDLE): Define to be the same size as address type.
175 2009-07-23 Olivier Hainque <hainque@adacore.com>
177 * g-sse.ads: New file. Root of the SSE facilities trees, with
178 general description and common declarations.
179 * g-ssvety.ads: New file. Expose user level SSE vector types.
180 * impunit.adb (Non_Imp_File_Names_95): Register new units.
181 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
182 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
184 2009-07-23 Ben Brosgol <brosgol@adacore.com>
186 * gnat_ugn.texi: Wordsmithing.
188 2009-07-23 Arnaud Charlet <charlet@adacore.com>
190 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
192 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
194 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
195 they are already of the base type of the index.
197 2009-07-22 Brett Porter <porter@adacore.com>
199 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
201 2009-07-22 Robert Dewar <dewar@adacore.com>
203 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
204 * gnat_ugn.texi: Add documentation for -gnateS switch
205 * ug_words: Add entry for -gnateS /SCO_OUTPUT
206 * gcc-interface/Make-lang.in: Update dependenciest.3
208 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
209 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
210 complete information for SCO input/output.
212 2009-07-22 Sergey Rybin <rybin@adacore.com>
214 * gnat_ugn.texi: Update doc for some gnatcheck rules.
216 2009-07-22 Robert Dewar <dewar@adacore.com>
218 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
219 contents of SCO tables.
220 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
221 scos.adb, scos.ads: New files.
222 * gcc-interface/Make-lang.in: Update dependencies.
224 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
225 fixes and reformatting.
227 2009-07-22 Robert Dewar <dewar@adacore.com>
229 * g-socket.ads: Minor reformatting
231 2009-07-22 Gary Dismukes <dismukes@adacore.com>
233 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
234 include the entity kind for following cases of unreferenced entities:
235 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
237 2009-07-22 Ed Falis <falis@adacore.com>
239 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
242 2009-07-22 Arnaud Charlet <charlet@adacore.com>
244 * adadecode.c: Make this file compilable outside of GCC.
246 2009-07-22 Thomas Quinot <quinot@adacore.com>
248 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
249 (partially) default-initialized socket sets are handled properly by
250 clearing their Set component.
252 2009-07-22 Bob Duff <duff@adacore.com>
254 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
256 2009-07-22 Robert Dewar <dewar@adacore.com>
258 * gnat_ugn.texi: Minor reformatting
260 2009-07-22 Ed Schonberg <schonberg@adacore.com>
262 * errout.adb (Error_Msg): A style message within an instantiation
263 should not be labelled as an error.
265 2009-07-22 Ed Schonberg <schonberg@adacore.com>
267 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
268 in initialization expression if function does not have convention Ada.
270 2009-07-22 Sergey Rybin <rybin@adacore.com>
272 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
273 '--separate-label' to control label layout.
275 2009-07-22 Robert Dewar <dewar@adacore.com>
277 * exp_tss.ads, sem_eval.adb: Minor reformatting
279 2009-07-22 Bob Duff <duff@adacore.com>
281 * exp_dist.adb, exp_dist.ads: Update comments.
283 2009-07-22 Brett Porter <porter@adacore.com>
285 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
287 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
289 2009-07-22 Gary Dismukes <dismukes@adacore.com>
291 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
292 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
294 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
295 used poor terminology.
297 2009-07-22 Robert Dewar <dewar@adacore.com>
299 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
300 * sem_eval.adb, exp_tss.adb: Minor comment update.
301 * stylesw.adb: Code clean up.
303 2009-07-22 Ed Schonberg <schonberg@adacore.com>
305 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
306 component size is an exact number of bytes, an array type can have a
307 size clause that forces packing even though the array type itself is
310 2009-07-22 Thomas Quinot <quinot@adacore.com>
312 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
313 if there is a previous entity with the same name in the scope, ignore
314 it if it is the renaming declaration for a generic package introduced
317 2009-07-22 Nicolas Roche <roche@adacore.com>
319 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
320 handler on x86_64 windows.
322 2009-07-22 Arnaud Charlet <charlet@adacore.com>
324 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
325 false positives in CodePeer, so ignore this pragma in this mode.
327 2009-07-22 Thomas Quinot <quinot@adacore.com>
329 * sem_util.adb, sem_ch10.adb: Minor reformatting
331 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
332 special handling for the case of no data received and Item'First =
333 Stream_Element_Offset'First.
334 (Last_Index): New subprogram factoring the above special handling
335 over the various locations where it is required.
337 2009-07-22 Arnaud Charlet <charlet@adacore.com>
339 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
340 checks in CodePeer_Mode.
341 * gcc-interface/Make-lang.in: Update dependencies.
343 2009-07-22 Ed Schonberg <schonberg@adacore.com>
345 * sem_aggr.adb: Improve error message.
347 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
348 of an address representation clause.
349 * freeze.adb (Freeze_Static_Object): An local imported object is legal
350 if it has an address clause.
352 2009-07-22 Thomas Quinot <quinot@adacore.com>
354 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
355 expression to insert an elab check using a conditional expression, be
356 sure to carry the original list of interpretations to the new location.
358 2009-07-22 Gary Dismukes <dismukes@adacore.com>
360 * gnat1drv.adb: Fix spelling error.
362 2009-07-22 Javier Miranda <miranda@adacore.com>
364 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
365 at the library level and fix a hidden bug in its implementation: its
366 functionality for renaming objects was broken because
367 N_Object_Renaming_Declarations nodes are not a subclass of
368 N_Declaration nodes (as documented in sinfo.ads).
369 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
370 check nodes that are actuals of generic instantiations.
372 2009-07-22 Ed Schonberg <schonberg@adacore.com>
374 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
375 context of a compilation unit is being analyzed. Used to detect
376 circularities created by with_clauses that are not detected by the
378 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
379 analyzing the context of the current compilation unit, to detect
380 possible circularities created by with_clauses.
382 2009-07-22 Thomas Quinot <quinot@adacore.com>
384 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
386 2009-07-22 Robert Dewar <dewar@adacore.com>
388 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
389 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
391 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
392 * gnat_ugn.texi: Add documentation of -gnatyB
393 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
395 2009-07-22 Robert Dewar <dewar@adacore.com>
397 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
398 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
399 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
400 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
401 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
402 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
403 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
404 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
405 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
406 obey short-circuit style rule.
408 2009-07-20 Bob Duff <duff@adacore.com>
410 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
411 instead of "and", because otherwise Parent_Last_Bit is read
412 uninitialized in the case where it's not a tagged type, or the tagged
413 parent does not have a complete rep clause.
415 2009-07-20 Robert Dewar <dewar@adacore.com>
417 * stylesw.ads: Minor documentation change.
419 * types.ads: Minor reformatting
421 2009-07-20 Javier Miranda <miranda@adacore.com>
423 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
424 generating the tag checks associated with dispatching calls.
425 * exp_disp.adb (Apply_Access_Checks): New subprogram.
426 (New_Value): This routine was previously local to expand dispatching
427 calls but it is now used also by Apply_Access_Checks.
428 (Expand_Dispatching_Calls): Cleanup code because the functionality of
429 tag checks is now provided by Apply_Access_Checks.
430 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
431 case of dispatching calls.
433 2009-07-20 Arnaud Charlet <charlet@adacore.com>
435 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
438 2009-07-20 Gary Dismukes <dismukes@adacore.com>
440 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
441 for VMS, only rewrite the first component of the associated exception's
442 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
443 and third components that were being replaced with 'M' and 'S'.
445 2009-07-20 Arnaud Charlet <charlet@adacore.com>
447 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
448 Also do not generate error when parsing a spec in CodePeer mode.
450 2009-07-20 Javier Miranda <miranda@adacore.com>
452 * checks.adb (Apply_Access_Check): Avoid checks on availability of
453 runtime function Offset_To_Top_Ptr when compiling with no tagged
455 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
456 adding code to the init proc when compiling for VM backends.
458 2009-07-20 Vincent Celier <celier@adacore.com>
460 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
461 account switches -gnatw.?
463 2009-07-20 Thomas Quinot <quinot@adacore.com>
465 * sem_dist.adb, exp_dist.adb: Minor reformatting
467 * Make-generated.in: New file.
469 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
471 2009-07-20 Javier Miranda <miranda@adacore.com>
473 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
475 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
476 dynamically tagged expression.
477 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
479 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
480 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
482 2009-07-20 Arnaud Charlet <charlet@adacore.com>
484 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
485 CodePeer_Mode is set, to benefit from full front-end expansion
488 2009-07-20 Ed Schonberg <schonberg@adacore.com>
490 * sem_res.adb: Add guard.
492 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
493 for possible attribute definition of External_Tag, in case clause
494 appears in the private part of a package.
496 2009-07-20 Jerome Guitton <guitton@adacore.com>
498 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
500 2009-07-20 Vadim Godunko <godunko@adacore.com>
502 * a-coorma.adb: Minor reformatting.
504 2009-07-20 Ed Schonberg <schonberg@adacore.com>
506 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
508 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
509 provide an itype reference to gigi to force elaboration of the subtype
512 2009-07-20 Tristan Gingold <gingold@adacore.com>
514 * g-expect.adb: Avoid closeing already closed handle.
516 2009-07-20 Robert Dewar <dewar@adacore.com>
518 * sprint.adb (Write_Subprogram_Name): New procedure to output
519 subprogram name with possible preceding $ (replaces
520 Note_Implicit_Run_Time_Call).
522 2009-07-20 Robert Dewar <dewar@adacore.com>
524 * vms_data.ads: Minor reformatting
526 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
527 applies to base type.
528 (Parent_Subtype): Now allowed on record subtype, applies to base type
529 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
530 for case of fully repped tagged type.
531 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
532 tag save/restore for fully repped tagged type case.
533 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
534 * fe.h (Is_Fully_Repped_Tagged_Type): New function
535 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
536 overlap of tagged type components with parent type if parent type is
538 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
540 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
542 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
543 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
545 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
546 logical operators (AND/OR/XOR), not comparison operators.
548 * sprint.ads: Minor reformatting
550 2009-07-20 Ed Schonberg <schonberg@adacore.com>
552 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
553 intrinsics, check that argument is a string literal, rather than
554 checking for staticness.
556 2009-07-20 Robert Dewar <dewar@adacore.com>
558 * sem_ch13.adb: Minor reformatting
560 * einfo.ads: Minor reformatting
561 Component_Bit_Offset is no longer considered obsolescent
563 2009-07-20 Nicolas Roche <roche@adacore.com>
565 * a-calend.adb: Redefine time_t as signed integer with same size as
567 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
569 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
572 2009-07-20 Javier Miranda <miranda@adacore.com>
574 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
575 constructors that have anonymous access type formals.
577 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
578 class-wide arguments in case of imported C++ subprograms.
580 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
582 2009-07-20 Sergey Rybin <rybin@adacore.com>
584 * vms_data.ads: Update qualifiers.
586 2009-07-20 Robert Dewar <dewar@adacore.com>
588 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
591 2009-07-17 Richard Guenther <rguenther@suse.de>
594 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
595 state. Remove unused parameter.
596 (gnat_gimplify_function): Do not gimplify here.
597 Fold into its only caller and remove.
598 (gnat_builtin_function): Adjust for end_subprog_body signature change.
599 (gnat_write_global_declarations): Also finalize the CU.
600 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
601 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
602 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
604 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
606 2009-07-15 Arnaud Charlet <charlet@adacore.com>
608 * gcc-interface/Make-lang.in: Update dependencies
610 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
612 2009-07-15 Robert Dewar <dewar@adacore.com>
614 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
615 N_Label. Remove SCO table entry for entry point (not used).
617 * par_sco.ads: Remove SCO entry point type (not used)
619 * switch.adb: Minor code clean up.
621 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
623 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
625 2009-07-15 Thomas Quinot <quinot@adacore.com>
627 * gnatls.adb: Minor reformatting
629 * gnatcmd.adb: Minor code reorganization
631 2009-07-15 Ed Schonberg <schonberg@adacore.com>
633 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
634 determine whether a component of a private type has a composite type.
636 2009-07-15 Robert Dewar <dewar@adacore.com>
638 * sem_ch10.adb: Minor reformatting throughout
639 Minor code reorganization (put nested subprograms in alpha order)
641 2009-07-15 Ed Schonberg <schonberg@adacore.com>
643 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
644 when compiling a call to a protected function that returns a controlled
647 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
649 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
650 one. Add task locking and unlocking around the critical region which
651 mentions localtime_r and global variable timezone for various targets.
652 Comment reformatting.
654 2009-07-15 Robert Dewar <dewar@adacore.com>
656 * gnat_rm.texi: Document s-ststop.ads
658 * impunit.ad: (Map_Array): New table of alternative names
659 (Get_Kind_Of_Unit): Return possible suggested alternative name
661 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
664 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
665 alternative unit if an implementation unit is with'ed.
667 2009-07-15 Robert Dewar <dewar@adacore.com>
669 * gnat_ugn.texi: Minor updates.
671 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
673 2009-07-15 Ed Schonberg <schonberg@adacore.com>
675 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
676 conditions of a derived boolean type.
679 2009-07-15 Robert Dewar <dewar@adacore.com>
681 * gnat1drv.adb: Initialize SCO tables
683 * par-load.adb: Call SCO_Record for main unit spec
685 * par.adb: Make call to SCO_Record for main unit
687 * par_sco.adb (Unit_Table): Change format to facilitate sort
688 (Process_Decisions): New procedure with list argument
689 (Traverse_Generic_Package_Declaration): New procedure
690 (Initialize): New procedure, replaces Init
691 (SCO_Output): Sort unit table before output
692 (SCO_Record): Avoid duplications
693 (SCO_Record): Handle remaining cases of units
694 (Traverse_Declarations_Or_Statements): Handle generics
696 * par_sco.ads (Initialize): New peocedure (replaces Init)
698 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
701 2009-07-15 Arnaud Charlet <charlet@adacore.com>
703 * debug.adb: Add -gnatd.J switch for now to support scil generation in
704 parallel. Add missing doc for -gnatd.I and -gnatd.O
706 2009-07-15 Robert Dewar <dewar@adacore.com>
708 * lib-load.adb: Minor reformatting
710 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
712 2009-07-15 Robert Dewar <dewar@adacore.com>
714 * par.adb: Minor reformatting
715 Add ??? comment for possible bad comment
717 * par-ch10.adb: Minor reformatting
719 2009-07-15 Ed Schonberg <schonberg@adacore.com>
721 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
722 is a literal of a derived boolean type, it appears as an unchecked
723 conversion. Retrieve actual value from expression of conversion.
725 2009-07-15 Robert Dewar <dewar@adacore.com>
727 * sem_ch3.adb: Minor reformatting
729 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
730 lib-writ.ads, lib-writ.adb: Minor reformatting.
731 Fix problem with SCO format in ALI files
733 2009-07-15 Robert Dewar <dewar@adacore.com>
735 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
736 exp_aggr.adb: Minor code reorganization (better calling sequence for
739 2009-07-15 Thomas Quinot <quinot@adacore.com>
741 * opt.ads: Minor comment edits
743 2009-07-15 Tristan Gingold <gingold@adacore.com>
745 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
748 2009-07-15 Robert Dewar <dewar@adacore.com>
750 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
753 * lib-writ.ads: Document addition of SCO lines to ALI file
755 * par_sco.ads, par_sco.adb: New files.
757 * opt.ads (Generate_SCO): New switch
759 * par.adb (Par): Call SCO_Record to record SCO information
761 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
763 * switch-c.adb: Recognize -gnateS to generate SCO information
765 * usage.adb: Add line for -gnateS
767 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
769 2009-07-15 Robert Dewar <dewar@adacore.com>
771 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
774 2009-07-15 Thomas Quinot <quinot@adacore.com>
776 * g-socthi-mingw.adb: Minor comment addition
778 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
780 2009-07-15 Robert Dewar <dewar@adacore.com>
782 * g-htable.ads, s-htable.ads: Minor reformatting
784 2009-07-15 Robert Dewar <dewar@adacore.com>
786 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
788 (Set_GNAT_Mode_Warnings): New procedure.
790 * lib-xref.adb: Minor reformatting
792 2009-07-15 Robert Dewar <dewar@adacore.com>
794 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
795 Minor code reorganization
797 2009-07-14 Taras Glek <tglek@mozilla.com>
798 Rafael Espindola <espindola@google.com>
800 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
801 installing plugin headers.
803 2009-07-13 Ed Schonberg <schonberg@adacore.com>
805 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
806 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
807 and link it to the expression whose value it captures.
809 2009-07-13 Robert Dewar <dewar@adacore.com>
811 * output.adb: Minor comment addition for last change
813 * sinfo.ads: Minor reformatting
815 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
817 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
818 spawn failed like on all other targets.
820 2009-07-13 Ed Schonberg <schonberg@adacore.com>
822 * exp_ch7.adb: Indicate origin of temporary for transient expression.
824 2009-07-13 Thomas Quinot <quinot@adacore.com>
826 * s-oscons-tmplt.c: Add comment.
828 2009-07-13 Robert Dewar <dewar@adacore.com>
830 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
831 reformatting. Minor code reorganization (add 9 argument version of
834 * impunit.adb: Remove s-os_lib from list of system extensions.
836 * sem_util.ads: Minor reformatting
838 * output.adb: Add warnings off/on around System.OS_Lib.
840 2009-07-13 Bob Duff <duff@adacore.com>
842 * exp_dist.adb: Minor comment updates.
844 2009-07-13 Gary Dismukes <dismukes@adacore.com>
846 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
847 several references to CodePeer.
849 2009-07-13 Bob Duff <duff@adacore.com>
851 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
852 Build_TypeCode_Function_All): Do not recurse if the type is the base
855 2009-07-13 Robert Dewar <dewar@adacore.com>
857 * exp_ch4.adb: Minor comment change
859 2009-07-13 Ed Schonberg <schonberg@adacore.com>
861 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
862 type of iteration, to prevent spurious warnings.
864 2009-07-13 Nicolas Roche <roche@adacore.com>
866 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
869 2009-07-13 Arnaud Charlet <charlet@adacore.com>
871 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
872 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
874 (CodePeer_Mode): New -gnatC switch.
875 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
878 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
880 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
881 integer bound forces the check if it is compared to its subtype range.
883 2009-07-13 Robert Dewar <dewar@adacore.com>
885 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
886 prj-strt.ads: Minor reformatting
888 2009-07-13 Thomas Quinot <quinot@adacore.com>
890 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
891 set the type of the From_Any call to the base type.
893 2009-07-13 Doug Rupp <rupp@adacore.com>
895 * symbols-processing-vms-ia64.adb (Process): Add variables and
896 constants to retrieve and check for symbol visibility.
898 2009-07-13 Javier Miranda <miranda@adacore.com>
900 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
901 the identical type we remove the conversion completely because
904 2009-07-13 Emmanuel Briot <briot@adacore.com>
906 * prj-err.adb (Error_Msg): One more case where a message should be
907 considered as a warning.
909 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
911 2009-07-13 Thomas Quinot <quinot@adacore.com>
913 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
914 calling stubs in the (library level) scope of the RCI locator, where it
915 is attached, not in the caller's scope.
917 2009-07-13 Javier Miranda <miranda@adacore.com>
919 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
920 interface object declarations we delay the generation of the equivalent
921 record type declarations until its expansion because there are cases in
922 which they are not required.
924 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
926 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
927 addition of assertion.
929 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
930 interface types require no equivalent constrained type declarations
931 because the expanded code only references the tag component associated
933 (Find_Interface_Tag): Improve management of interfaces that are
934 ancestors of tagged types.
936 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
937 class-wide object declarations to add missing support to statically
938 displace the pointer to the object to reference the tag component
939 associated with the interface.
941 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
942 auxiliary types associated with user-defined dispatching calls if the
943 type has no user-defined primitives.
945 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
947 * mingw32.h: Make it explicit that we need XP or later.
949 * initialize.c: Remove useless extern symbol declaration.
951 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
952 code reuse in expect.c.
954 * adaint.c: Changes throughout the Windows section to redesign storage
955 of the child process list and the process identification.
957 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
958 for interfacing, fix errors.
959 (__gnat_expect_portable_execvp): use function in adaint.c
961 2009-07-13 Emmanuel Briot <briot@adacore.com>
963 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
964 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
965 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
966 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
967 (Prj.Nmsc.Report_Error): Removed, no longer needed.
968 Always use Prj.Err.Report_Message.
970 2009-07-13 Robert Dewar <dewar@adacore.com>
972 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
975 2009-07-13 Robert Dewar <dewar@adacore.com>
977 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
978 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
980 2009-07-13 Emmanuel Briot <briot@adacore.com>
982 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
983 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
984 Ada_Prj_Include_File_Set): Removed, since not needed
987 2009-07-13 Ed Schonberg <schonberg@adacore.com>
989 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
990 Analyze_Membership_Op.
992 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
993 Resolve_Membership_Op.
995 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
998 2009-07-13 Robert Dewar <dewar@adacore.com>
1000 * clean.adb: Minor reformattting
1002 2009-07-13 Emmanuel Briot <briot@adacore.com>
1004 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1005 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1006 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1007 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1008 and attributes in a project tree.
1009 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1010 Remove last remaining mode-specific code (ada_only or
1011 multi_language). This was duplicating code
1012 (Get_Mode, Set_Mode): removed, no longer used.
1013 (Initialize_Project_Path): all tools will now take into account both
1014 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1015 Remove some global variables and subprograms no longer used
1016 Make temporary files tree-specific, to avoid interferences between
1017 trees loaded in memory at the same time.
1018 (Prj.Delete_Temporary_File): new subprogram
1019 (Object_Paths, Source_Paths): fields no longer stored in the project
1020 tree, since they are only needed locally in Set_Ada_Paths.
1021 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1023 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1024 by local variables in the appropriate subprograms
1025 (Has_Foreign_Sources): removed.
1027 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1029 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1031 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1032 Back_Annotate_Rep_Info in inspector mode.
1033 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1035 * opt.ads: Update comment.
1037 2009-07-13 Robert Dewar <dewar@adacore.com>
1039 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1040 prj.ads: Minor reformatting and code reorganization.
1042 * par-ch3.adb (Check_Restricted_Expression): New procedure
1044 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1046 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1047 attribute into a call of the corresponding suprogram, create extra
1048 formals for the subprogram, because it may be a renaming whose
1049 analysis does not create extra formals.
1051 2009-07-13 Emmanuel Briot <briot@adacore.com>
1053 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1054 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1055 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1056 prj-tree.ads: Minor reformatting.
1057 (Processing_Flags): new record to encapsulate the set of common
1058 parameters to several subprograms in the project manager.
1059 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1060 Remove the need for the Current_Dir parameter in subprograms.
1061 (Look_For_Sources): minor refactoring, now that we no longer need to
1062 share subprograms between the two Ada_Only and Multi_Language modes
1063 (Processing_Flags): New field Error_On_Unknown_Language.
1064 Merge tests for library project between gnatmake and gprbuild.
1066 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1068 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1071 2009-07-13 Emmanuel Briot <briot@adacore.com>
1073 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1076 2009-07-13 Thomas Quinot <quinot@adacore.com>
1078 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1079 Write,Input,Output} from private view to full view.
1081 * sem_type.adb, sem_type.ads: Minor reformatting
1083 2009-07-13 Nicolas Setton <setton@adacore.com>
1085 * exp_dbug.ads: Add documentation note on the utility of
1086 DW_AT_GNAT_encoding for IDEs.
1088 2009-07-13 Robert Dewar <dewar@adacore.com>
1090 * g-socthi-vxworks.adb: Minor reformatting
1092 * gnatcmd.adb: Minor reformatting
1094 2009-07-13 Thomas Quinot <quinot@adacore.com>
1096 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1097 removed, not used anymore.
1098 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1099 New subprogram, implements copy of an Any value into a limited object.
1100 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1101 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1102 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1103 of parameters of a limited type, use the above new subprogram.
1105 2009-07-13 Emmanuel Briot <briot@adacore.com>
1107 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1109 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1111 (Error_Report): Remove global variable, replaced by parameters.
1113 2009-07-13 Thomas Quinot <quinot@adacore.com>
1115 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1116 standard sendto(2) interface for connected sockets (passing a null
1117 destination address). Use send(2) instead for that case.
1119 2009-07-13 Pascal Obry <obry@adacore.com>
1121 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1123 2009-07-13 Emmanuel Briot <briot@adacore.com>
1125 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1126 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1127 variables and tables in prj-nmsc.adb.
1128 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1129 (Project_Processing_Data): New record
1130 Simplify/unify check for missing sources.
1132 2009-07-13 Emmanuel Briot <briot@adacore.com>
1134 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1135 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1136 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1137 prj-tree.ads (Immediate_Directory_Of): Removed.
1138 (Prj.Pars): Now parse the project simulating a default config file.
1139 (Add_Default_GNAT_Naming_Scheme): New subprogram
1140 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1141 Remove gnatmake-specific parsing of source files.
1142 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1143 the error itself to provide more precise diagnostics.
1144 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1145 a unit belongs to several projects.
1146 (Copy_Interface_Sources): Search the full path of files to copy in the
1147 list of sources of the application rather than in the list of units.
1148 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1150 (Check_File): Use htables to find out whether a source is duplicated.
1151 (Add_Source): check whether the source or unit were already seen earlier
1153 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1155 2009-07-13 Robert Dewar <dewar@adacore.com>
1157 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1158 expression if extensions permitted.
1160 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1162 (P_Relation): Use P_Membership_Test
1164 * par.adb (P_Membership_Test): New procedure (implement membership set
1167 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1169 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1171 2009-07-13 Thomas Quinot <quinot@adacore.com>
1173 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1174 Do not attempt to generate stubs for predefined primitives of
1175 synchronized interfaces.
1176 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1179 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1181 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1182 Controlling_Result flag from the operation they override.
1184 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1186 * gcc-interface/Make-lang.in: Update dependencies
1188 2009-07-13 Robert Dewar <dewar@adacore.com>
1190 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1191 details on unsupported constructs.
1193 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1196 * s-trafor-default.adb: Correct some warnings
1198 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1199 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1202 * par-ch4.adb (Conditional_Expression): Capture proper location for
1203 conditional expression, should point to IF.
1205 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1206 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1207 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1208 reorganization (use conditional expressions).
1210 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1212 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1213 build-in-place function that returns an inherently limited type (not
1214 just a task type) create proper object declaration so that extra
1215 build-in-place actuals are properly added to the call.
1217 2009-07-13 Robert Dewar <dewar@adacore.com>
1219 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1221 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1223 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1225 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1226 Warn_On_Suspicious_Modulus_Value.
1228 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1230 * usage.adb: Add lines for -gnatw.m/.M switches.
1232 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1234 2009-07-13 Javier Miranda <miranda@adacore.com>
1236 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1237 reading the Is_Interface attribute of the dispatching type.
1239 2009-07-13 Robert Dewar <dewar@adacore.com>
1241 * a-convec.adb: Minor code reorganization (use conditional expressions)
1243 2009-07-13 Robert Dewar <dewar@adacore.com>
1245 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1247 2009-07-13 Robert Dewar <dewar@adacore.com>
1249 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1252 * par-ch4.adb: Minor reformatting
1254 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1256 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1257 => Is_Atomic_Aggregate
1259 2009-07-13 Emmanuel Briot <briot@adacore.com>
1261 * prj-nmsc.adb: Avoid traversing the list of source files if
1262 we have already processed all locally removed files.
1264 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1266 * gnat_ugn.texi: Fix typo.
1268 2009-07-13 Robert Dewar <dewar@adacore.com>
1270 * freeze.adb: Minor reformatting
1271 Minor code reorganization (use Nkind_In)
1273 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1275 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1277 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1278 local variable and do not test it in Compile_Time_Bad_Alignment.
1279 Do not issue size or alignment warnings for the X'Address form.
1280 * sem_util.ads (Find_Overlaid_Object): Delete.
1281 (Find_Overlaid_Entity): New procedure.
1282 * sem_util.adb (Find_Overlaid_Object): Rename to...
1283 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1284 whether the address is offseted within the overlaid entity.
1285 (Has_Compatible_Alignment): Track the offset globally instead of
1286 passing it to Check_Offset. For an indexed component, compute the
1287 full offset when possible. If the resulting offset is zero, only
1289 (Check_Offset): Delete.
1290 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1291 (Address_Aliased_Entity): Delete.
1292 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1293 Find_Overlaid_Entity to find the overlaid entity and the offset.
1294 Adjust throughout for above change.
1295 (Validate_Address_Clauses): Always use attributes of entities, not of
1296 their type. Tweak message for warning. Call Has_Compatible_Alignment
1297 if the address is offseted to warn about incompatible alignments.
1298 * gcc-interface/gigi.h (annotate_object): Declare.
1299 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1300 entity. Call annotate_object instead of annotating manually objects.
1301 (annotate_object): New function.
1302 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1305 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1307 * gcc-interface/ada-tree.h: Minor reorganization.
1308 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1309 (gnat_print_type): Likewise.
1311 2009-07-11 Thomas Quinot <quinot@adacore.com>
1313 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1316 * exp_ch6.adb: Minor reformatting
1318 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1320 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1321 account possible type qualification to determine whether aggregate
1322 needs a target temporary to respect atomic type or object.
1324 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1325 Expand_Atomic_Aggregate.
1327 2009-07-11 Emmanuel Briot <briot@adacore.com>
1329 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1331 (Excluded_Sources_Htable): No longer a global table.
1332 Change error message to indicate which files are illegal in the list
1333 of excluded files, as opposed to only the location in the project
1335 (Find_Source): New subprogram.
1337 2009-07-10 Thomas Quinot <quinot@adacore.com>
1339 * exp_ch7.adb: Update comments.
1341 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1343 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1344 clause if -gnatI is set instead of crashing.
1346 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1348 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1349 Additional work to remove redundant successive raise statements, in
1350 this case access checks.
1352 2009-07-10 Vincent Celier <celier@adacore.com>
1354 * make.adb (Compile): Always create a deep copy of the mapping file
1355 argument (-gnatem=...) as it may be deallocate/reallocate by
1356 Normalize_Arguments.
1358 2009-07-10 Javier Miranda <miranda@adacore.com>
1360 * einfo.adb (Directly_Designated_Type): Add assertion.
1362 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1363 access types before using attribute Directly_Designated_Type.
1365 2009-07-10 Emmanuel Briot <briot@adacore.com>
1367 * prj.ads: Minor typo fix
1369 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1371 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1374 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1375 subprogram is a function call, resolve properly, to ensure that extra
1376 actuals are added as needed.
1378 2009-07-10 Thomas Quinot <quinot@adacore.com>
1380 * sem_aggr.adb: Minor comments editing
1382 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1384 2009-07-10 Robert Dewar <dewar@adacore.com>
1386 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1388 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1391 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1392 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1393 case of conditional expressions that may not be elaborated.
1395 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1396 conditional expression where we may not execute then then or else
1399 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1401 * i-cexten.ads (bool): New type.
1403 2009-07-10 Robert Dewar <dewar@adacore.com>
1405 * sinfo.ads (N_Short_Circuit): New definition
1407 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1408 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1410 2009-07-10 Javier Miranda <miranda@adacore.com>
1412 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1413 non-tagged record types.
1416 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1417 with non-tagged types. Required to import C++ classes that have no
1419 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1420 returning non-tagged types. For backward compatibility, if the
1421 constructor returns a class wide type we internally change the
1422 returned type to the corresponding non class-wide type.
1425 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1426 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1427 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1428 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1431 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1433 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1435 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1437 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1439 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1442 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1445 (pragma CPP_Class): Document that it can be used now with non-tagged
1447 (pragma CPP_Constructor): Document that it can be used now with
1448 functions returning specific types. For backward compatibility
1449 we also support functions returning class-wide types.
1452 (Interfacing with C++ constructors): Update the examples to incorporate
1453 the new syntax in which the functions used to import C++ constructors
1454 return specific types.
1455 (Interfacing with C++ at the Class Level): Update the examples to
1456 incorporate the new syntax in which the functions used to import
1457 C++ constructors return specific types.
1459 2009-07-10 Thomas Quinot <quinot@adacore.com>
1461 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1462 Make_Disp_Conditional_Select_Body,
1463 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1464 interface nor a concurrent type, the primitive body is empty. Generate
1465 a null statement so that it remains well formed.
1467 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1469 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1470 replace references to them in defaulted component expressions with
1471 references to the values of the discriminants of the target object.
1473 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1475 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1476 pragma, to capture global references if the context is generic.
1478 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1479 appears within the initialization procedure for the corresponding
1480 record, replace it with the proper discriminal.
1482 2009-07-10 Vincent Celier <celier@adacore.com>
1484 * make.adb: Do not include object directories or library ALI
1485 directories of library projects in the object path.
1487 2009-07-10 Javier Miranda <miranda@adacore.com>
1489 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1490 Typ argument to ensure proper management of access types.
1492 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1494 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1495 Taft-Amendment type, place the finalization list in the package body,
1496 to ensure that the tree for the spec is identical whenever it is
1499 2009-07-10 Javier Miranda <miranda@adacore.com>
1501 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1502 inheriting attributes from a private Parent_Base.
1504 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1506 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1507 statements with the same condition.
1509 2009-07-10 Robert Dewar <dewar@adacore.com>
1511 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1513 2009-07-09 Tom Tromey <tromey@redhat.com>
1515 * raise-gcc.c: Include dwarf2h (unconditionally).
1517 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1519 * sem_ch10.adb (Install_Context): If the unit is a package body,
1520 install the private with_clauses of the corresponding package
1523 2009-07-09 Robert Dewar <dewar@adacore.com>
1525 * checks.adb: Minor reformatting
1527 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1529 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1532 2009-07-09 Thomas Quinot <quinot@adacore.com>
1534 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1535 Do not warn for a constant overlaying any constant object
1537 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1539 * sem_ch10.adb (Install_Context): If the unit is a package body,
1540 install the private with_clauses of the corresponding package
1543 2009-07-09 Robert Dewar <dewar@adacore.com>
1545 * checks.adb: Minor reformatting
1547 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1549 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1552 2009-07-09 Thomas Quinot <quinot@adacore.com>
1554 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1555 Do not warn for a constant overlaying any constant object
1557 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1559 * gcc-interface/Make-lang.in: Update dependencies
1561 2009-07-09 Thomas Quinot <quinot@adacore.com>
1563 * g-socket.adb (Check_Selector): Do not create local copies of the
1564 socket sets on the stack.
1566 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1568 * gnat_ugn.texi: Add missing VMS translations.
1570 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1572 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1573 condition, to prevent generation of visible code during expansion,
1574 when Check is not enabled.
1576 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1578 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1579 the check gets registered for any available local handler
1582 * sem_util.adb: Add with and use of Exp_Ch11.
1583 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1584 that the check gets registered for any available local handler.
1586 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1589 2009-07-09 Steve Baird <baird@adacore.com>
1591 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1593 (Expand_N_Exception_Declaration): Fix handling of exceptions
1594 declared in a subprogram.
1596 2009-07-09 Emmanuel Briot <briot@adacore.com>
1598 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1601 2009-07-09 Thomas Quinot <quinot@adacore.com>
1603 * freeze.adb: Minor reformatting
1605 * exp_ch3.adb: Minor comment fix.
1607 * sinfo.ads: Minor comment fix
1609 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1611 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1613 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1615 * freeze.adb (Freeze_Expression): If the expression is the name of a
1616 function in a call, and the function has not been frozen yet, create
1617 extra formals for it to ensure that the proper actuals are created
1618 when expanding the call.
1620 2009-07-09 Emmanuel Briot <briot@adacore.com>
1622 * prj-pp.adb (Print): Fix handling of source index when set on a
1625 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1627 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1628 a temporary to the source expression whose value it captures.
1630 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1632 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1634 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1637 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1639 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1640 parameters when the subtype of the actual is not known to be a subrange
1641 of the formal's subtype.
1642 (Expand_Call): Generate a range check only in the E_In_parameter case
1643 (in out parameter range checks are now handled in Expand_Actuals).
1645 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1648 2009-07-07 Robert Dewar <dewar@adacore.com>
1650 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1652 2009-07-07 Javier Miranda <miranda@adacore.com>
1654 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1655 designated type comes from a limited views.
1657 2009-07-07 Emmanuel Briot <briot@adacore.com>
1659 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1660 locally removed files that are later made visible again in an importing
1663 2009-07-07 Robert Dewar <dewar@adacore.com>
1665 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1667 2009-07-07 Sergey Rybin <rybin@adacore.com>
1669 * gnat_ugn.texi: Add an example to the description of gnatcheck
1670 'Style_Checks' rule option.
1672 2009-07-07 Tristan Gingold <gingold@adacore.com>
1674 * seh_init.c: Fix inline assembly statement in seh_init.c
1676 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1678 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1679 an entry body. Only the formals of the entry declaration are traced.
1681 2009-07-07 Robert Dewar <dewar@adacore.com>
1683 * s-osprim-mingw.adb: Minor code reorganization
1685 2009-07-07 Robert Dewar <dewar@adacore.com>
1687 * prj-nmsc.adb: Minor reformatting
1689 2009-07-07 Pascal Obry <obry@adacore.com>
1691 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1692 cases where Pattern is longer than Source.
1694 2009-07-07 Pascal Obry <obry@adacore.com>
1696 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1698 2009-07-07 Emmanuel Briot <briot@adacore.com>
1700 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1703 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1705 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1706 primitive operations, in case one of them is called in the
1707 initialization procedure for the type.
1709 2009-07-07 Robert Dewar <dewar@adacore.com>
1711 * a-calend.adb: Minor code reorganization (use conditional expressions)
1713 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1714 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1715 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1716 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1717 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1718 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1720 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1722 * checks.adb (Generate_Range_Check): Replace type conversions with
1723 unchecked conversions to support the case of performing range checks
1724 on Enum'Val (permits integer values to be converted to enumeration).
1726 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1727 Attribute_Succ): Set Do_Range_Check to False before calling
1728 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1729 (Expand_N_Attribute_Reference, case Attribute_Val):
1730 Generate a range check when needed (and set Do_Range_Check to False).
1732 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1733 scalar object initialization if needed.
1735 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1736 when needed on scalar allocators.
1737 (Expand_N_Qualified_Expression): Generate range check when needed.
1738 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1739 Checks on slice ranges handled in Resolve_Slice.
1741 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1742 when needed, for all scalar assignments, not just discrete.
1743 (Expand_Simple_Function_Return): Resolve the conversion created for a
1744 scalar function return so that the conversion will get expanded to
1745 generate a possible constraint check.
1747 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
1748 in out scalar actuals when subtypes don't match, to ensure generation
1749 of return checks (and set Do_Range_Check to False).
1750 (Expand_Call): Uncomment code to perform range checks, but make it apply
1751 only to in and in out parameters (checks on parameter returns are
1752 handled in Expand_Actuals). If a scalar actual for a call to a derived
1753 subprogram is marked as needing a range check, peform it here (and set
1754 Do_Range_Check to False).
1756 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
1757 range check on scalar component associations when needed.
1759 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
1760 infinities but the second type does not, as these aren't compatible
1761 floating-point types.
1763 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
1764 slice is itself a slice, pick up the Etype of the prefix. This handles
1765 the case where the prefix was an Image attribute expanded to a slice,
1766 and ensures that we get the subtype with the slice constraint rather
1767 than the unconstrained subbtype of the 'Image.
1769 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1771 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
1772 overloaded expressions in a conditional expressions.
1774 * sem_res.adb (Resolve): Handle properly overloaded conditional
1777 2009-07-07 Robert Dewar <dewar@adacore.com>
1779 * scng.adb: Minor reformattting
1781 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
1782 association allows conditional expression without parens.
1784 * par-ch4.adb (P_Name): Attribute arguments can be conditional
1785 expressions without enclosing parentheses, and also as parameters,
1786 indexing expressions etc.
1787 (P_Conditional_Expression): New procedure
1788 (P_Expression_If_OK): New procedure
1790 * par.adb (P_Conditional_Expression): New procedure
1791 (P_Expression_If_OK): New procedure
1793 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
1794 form of conditional expression.
1796 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
1797 missing True argument if ELSE argument missing.
1799 * sinfo.adb (Is_Elsif): New flag
1801 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
1802 part of the language, and the documentation is modified accordingly.
1803 (Is_Elsif): New flag
1805 2009-07-06 Olivier Hainque <hainque@adacore.com>
1807 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
1808 setjmp_longjmp): Attach the exception propagation reraise fallback
1809 to the sequence end label location when we have it.
1811 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1814 * init.c (APPLE): Include <mach/mach_init.h>.
1815 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
1817 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
1819 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
1820 (SET_DECL_LANG_SPECIFIC): Likewise.
1821 (TYPE_RM_VALUE): New macro.
1822 (SET_TYPE_RM_VALUE): Likewise.
1823 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
1824 (TYPE_RM_MIN_VALUE): Likewise.
1825 (TYPE_RM_MAX_VALUE): Likewise.
1826 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
1827 (SET_TYPE_RM_MIN_VALUE): Likewise.
1828 (SET_TYPE_RM_MAX_VALUE): Likewise.
1829 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
1831 2009-07-04 Laurent GUERBY <laurent@guerby.net>
1834 * tracebak.c (__gnat_backtrace): Fix old-style definition.
1836 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1838 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
1840 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1843 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
1846 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
1848 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
1850 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1852 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
1853 the type of the left operand if it pads a self-referential type when
1854 the right operand is a constructor.
1856 * gcc-interface/lang-specs.h: Fix copyright date.
1858 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1860 * gcc-interface/decl.c: Include tree-inline.h.
1861 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
1862 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
1863 * gcc-interface/utils2.c: Include tree-inline.
1864 (known_alignment) <CALL_EXPR>: Likewise.
1866 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1868 * raise-gcc.c: Include dwarf2.h conditionally.
1870 2009-06-29 Tom Tromey <tromey@redhat.com>
1872 * raise-gcc.c: Include elf/dwarf2.h.
1874 2009-06-27 Laurent GUERBY <laurent@guerby.net>
1876 * tb-gcc.c (trace_callback): Add casts to silence warning.
1878 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1880 * tb-gcc.c: Fix copyright notice.
1882 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1884 * init.c (__gnat_set_globals): Add prototype.
1885 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
1886 (__gnat_sals_init_using_constructors): Likewise.
1887 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
1888 (get_block_jmpbuf_decl): Likewise.
1889 (gnat_poplevel): Likewise.
1890 (merge_sizes): Rename local variable.
1891 (copy_type): Likewise.
1892 (build_vms_descriptor32): Likewise.
1893 (build_vms_descriptor): Likewise.
1894 (convert_vms_descriptor64): Likewise.
1895 (convert_vms_descriptor32): Likewise.
1896 (convert_to_fat_pointer): Likewise.
1897 (maybe_unconstrained_array): Likewise.
1898 (def_fn_type): Use promoted type with va_arg.
1899 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
1900 (substitute_in_type): Rename local variable.
1901 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
1903 2009-06-26 Laurent GUERBY <laurent@guerby.net>
1905 * tb-gcc.c (trace_callback): Use char* instead of void*.
1906 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
1907 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
1908 (Attribute_to_gnu): Adjust for above change.
1909 (Subprogram_Body_to_gnu): Likewise.
1910 * gcc-interface/utils.c (merge_sizes): Rename local variable.
1911 (copy_type): Likewise.
1912 (build_vms_descriptor32): Likewise.
1913 (build_vms_descriptor): Likewise.
1914 (convert_vms_descriptor64): Likewise.
1915 (convert_vms_descriptor32): Likewise.
1916 (convert_to_fat_pointer): Likewise.
1917 (maybe_unconstrained_array): Likewise.
1918 * gcc-interface/decl.c (substitute_in_type): Likewise.
1920 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1922 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
1923 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
1924 of the upper bound of the index types.
1926 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1928 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
1929 out common predicate. Use the maximum to compute the upper bound of
1930 the index type only when it is not wider than sizetype. Perform the
1931 comparison in the index type for the generic expression. Use real
1932 precision to decide whether to generate special types for debugging
1935 2009-06-26 Matthew Gingell <gingell@adacore.com>
1937 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
1939 2009-06-26 Vincent Celier <celier@adacore.com>
1941 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
1944 2009-06-26 Robert Dewar <dewar@adacore.com>
1946 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
1948 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1950 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
1951 correct arguments to create_field_decl. Remove redundant iteration.
1952 Rewrite computation of the maximum size.
1953 <E_Array_Subtype>: Reorder and simplify handling of special cases.
1954 Rewrite computation of the maximum size. Use consistent naming.
1955 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
1956 comparison order for consistency. Use generic integer node to
1957 build the operator and fold the result.
1959 2009-06-25 Vincent Celier <celier@adacore.com>
1961 * vms_data.ads: Minor comment change
1963 2009-06-25 Gary Dismukes <dismukes@adacore.com>
1965 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
1966 assignment statement to targeting a caller-provided object when the
1967 result type is an interface type.
1969 * exp_ch6.adb (Expand_Call): Remove redundant test of
1970 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
1971 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
1973 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
1974 to OK_For_Limited_Init.
1976 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
1977 condition so that True is returned for all limited interfaces, not
1978 just synchronized ones. Ignore components of an interface type when
1979 checking for limited components (such a component can be a parent
1982 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
1983 (OK_For_Limited_Init): Add type parameter.
1985 * sem_ch3.adb (Check_Initialization): Add type in call to
1986 OK_For_Limited_Init.
1987 (OK_For_Limited_Init): Add new type param in call to
1988 OK_For_Limited_Init_In_05.
1989 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
1990 nonlimited type when the context type is a limited interface. Add type
1993 * sem_ch4.adb (Analyze_Allocator): Add type in call to
1994 OK_For_Limited_Init.
1996 * sem_ch6.adb (Check_Limited_Return): Add type in call to
1997 OK_For_Limited_Init.
1999 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2000 OK_For_Limited_Init.
2001 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2003 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2004 class-wide interface, get the base type before applying Etype, in order
2005 to account for class-wide subtypes.
2007 2009-06-25 Emmanuel Briot <briot@adacore.com>
2009 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2010 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2011 between gnatmake and gprbuild.
2012 (Naming_Data): Removed, no longer used
2013 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2014 needed locally in one subprogram, no need to store forever in the
2016 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2018 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2019 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2020 Spec_Suffix_Id_Of): removed, no longer used.
2022 2009-06-25 Javier Miranda <miranda@adacore.com>
2024 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2025 types on qualified expression in calls to imported C++ constructors.
2027 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2028 imported C++ constructors.
2030 2009-06-25 Sergey Rybin <rybin@adacore.com>
2032 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2034 2009-06-25 Vincent Celier <celier@adacore.com>
2036 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2037 provided, on Windows change all '/' to '\'.
2039 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2040 used. Minor comment changes
2042 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2043 Remove_Forbidden_File_Name.
2045 2009-06-25 Quentin Ochem <ochem@adacore.com>
2047 * prj.ads (Unit_Index): Now general access type.
2049 2009-06-25 Pascal Obry <obry@adacore.com>
2051 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2053 2009-06-25 Emmanuel Briot <briot@adacore.com>
2055 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2056 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2057 computed efficiently from the other fields.
2058 (Object_To_Global_Archive): New subprogram
2059 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2060 (Override_Kind): Fix handling of separates in Ada.
2061 (Create_Mapping_File): Remove duplicate code
2062 (Naming_Data.Implementation_Exception, Specification_Exception):
2063 field removed, since never used.
2064 (Naming_Data.Specs, .Bodies): field removed, since this is only
2065 used while processing the project and is not needed once the tree
2066 is in memory. This brings Naming_Data and Lang_Naming_Data
2067 closer (same content now, but different use still).
2069 2009-06-25 Pascal Obry <obry@adacore.com>
2071 * sem_ch4.adb: Minor reformatting.
2073 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2075 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2077 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2078 Unchecked_Access): If the context is an interface type, and the prefix
2079 is of the corresponding class-wide type, do not insert a conversion
2080 because the pointer displacement has already taken place, and we must
2081 retain the class-wide type in a dispatching context.
2083 2009-06-25 Emmanuel Briot <briot@adacore.com>
2085 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2086 the previous source file.
2087 (Create_Mapping): Iterate on sources rather than on units.
2089 2009-06-25 Emmanuel Briot <briot@adacore.com>
2091 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2092 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2093 (Source_Data): no longer use Path.Name to point to a locally removed
2094 file. Instead we use the field Locally_Removed which is clearer
2096 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2098 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2100 * sem_maps.adb, sem_maps.ads: Removed, not used.
2102 2009-06-25 Ed Falis <falis@adacore.com>
2104 * s-vxwext-rtp.ads: Add missing declaration
2106 2009-06-25 Matthew Gingell <gingell@adacore.com>
2108 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2109 speed up unmapped case.
2111 2009-06-25 Vincent Celier <celier@adacore.com>
2113 * prj-nmsc.adb (Check): Change error message for illegal abstract
2116 2009-06-25 Robert Dewar <dewar@adacore.com>
2118 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2120 2009-06-25 Emmanuel Briot <briot@adacore.com>
2122 * fmap.ads: Add documentation on mapping files
2124 2009-06-25 Robert Dewar <dewar@adacore.com>
2126 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2129 2009-06-24 Robert Dewar <dewar@adacore.com>
2131 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2133 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2137 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2139 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2140 present when checking whether a call may be interpreted as an indexing
2141 of the result of a call.
2143 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2144 body for a null procedure on the freeze actions for the procedure, so
2145 that it will be analyzed at the proper place without premature freezing
2148 * sem_ch3.adb (Check_Completion): Code cleanup.
2149 Do not diagnose a null procedure without a body, if previous errors
2150 have disabled expansion.
2152 2009-06-24 Doug Rupp <rupp@adacore.com>
2154 * init.c [VMS] Resignal C$_SIGKILL
2156 2009-06-24 Ed Falis <falis@adacore.com>
2158 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2159 Define ERROR in body for VxWorks 6 kernel
2161 2009-06-24 Pascal Obry <obry@adacore.com>
2163 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2164 in [Send/Receive]_Socket.
2166 2009-06-24 Emmanuel Briot <briot@adacore.com>
2168 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2169 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2170 to several subprograms.
2171 (Source_Data.Other_Part): Removed, since can be computed from the
2173 (Other_Part): New subprogram.
2175 2009-06-24 Emmanuel Briot <briot@adacore.com>
2177 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2178 the full base name of the file when the suffix doesn't start with a '.'.
2180 2009-06-24 Vincent Celier <celier@adacore.com>
2182 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2183 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2186 2009-06-24 Robert Dewar <dewar@adacore.com>
2188 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2189 prj-env.adb: Minor reformatting
2191 2009-06-24 Ed Falis <falis@adacore.com>
2193 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2194 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2195 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2196 support for VxWorks SMP.
2198 * gcc-interface/Make-lang.in: Update dependencies
2200 2009-06-24 Emmanuel Briot <briot@adacore.com>
2202 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2203 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2205 (Source_Data.Lang_Kind): Removed, since it duplicates information
2206 already available through Language.Config.
2207 (Source_Data.Compile): Removed, since information is already available
2208 through the language.
2209 (Is_Compilable): New subprogram.
2210 (Source_Data.Dependency): Removed, since already available through
2212 (Source_Data.Object_Exist, Object_Linked): Removed since available
2213 through the language already.
2214 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2215 bring the two modes closer in the resulting data structures.
2216 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2217 just the name that would point into a hash table.
2218 (Get_Language_From_Name): New subprogram.
2220 2009-06-24 Javier Miranda <miranda@adacore.com>
2222 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2223 visible through limited-with context clauses. In addition, avoid an
2224 extra tag check that is not required when the class-wide
2225 designated types of the operand and target types are
2227 (Tagged_Membership): Handle entities from the limited view.
2229 2009-06-24 Emmanuel Briot <briot@adacore.com>
2231 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2232 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2233 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2234 different vocabularies for similar concepts (Impl/Body_Part and
2235 Spec/Specification).
2236 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2237 some of the information in File_Name_Data. This also saves a bit of
2238 memory. However, since we are now using a pointer we need to test
2239 for null explicitly in several places of the code
2241 2009-06-24 Javier Miranda <miranda@adacore.com>
2243 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2244 from processing the type conversion when the node is
2245 replaced by an N_Raise_Program_Error node.
2247 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2249 * sem_ch6.adb (Designates_From_With_Type): New routine.
2250 (Process_Formals): Since anonymous access types are no longer flagged
2251 as from with types, traverse the designated type to determine whether
2252 it is coming from a limited view.
2254 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2255 (Full_Designated_Type): Use Available_View to extract the non-limited /
2256 full view of a type.
2258 2009-06-24 Robert Dewar <dewar@adacore.com>
2260 * exp_ch6.adb: Minor reformatting
2262 * layout.adb: Minor reformatting
2264 * make.adb: Minor reformatting
2266 2009-06-24 Thomas Quinot <quinot@adacore.com>
2268 * sem_ch10.adb: Minor code reorganization.
2270 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2272 * ttypes.ads: Minor editing.
2274 2009-06-24 Robert Dewar <dewar@adacore.com>
2276 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2277 in deciding to do call-by-copy code.
2279 2009-06-24 Vincent Celier <celier@adacore.com>
2281 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2282 check if an externally built library file is more current than the
2285 2009-06-23 Olivier Hainque <hainque@adacore.com>
2287 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2288 c-common.c and populate in gnat_internal_attribute_table.
2290 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2292 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2293 Available_View only when designated type of an anonymous access type
2296 2009-06-23 Robert Dewar <dewar@adacore.com>
2298 * sem_ch10.adb: Minor reformatting
2300 * ali.ads: Mino reformatting.
2302 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2303 turning off inlining if ASIS mode active).
2305 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2306 This belongs in gnat1drv.adb after switches are scanned.
2308 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2310 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2311 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2312 when dealing with class-wide types. Detect a legal shadow entity and
2313 retrieve its non-limited view.
2315 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2316 subprogram to top package level from Intall_Limited_Withed_Unit.
2317 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2318 Add check which prevents the installation of a limited view if the
2319 non-limited view is already visible through a with clause.
2320 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2321 legal shadow entity which may occur in subprogram formals of anonymous
2324 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2326 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2327 From_With_Type from the designated type to the generated anonymous
2328 access type. Remove associated comment.
2330 * sem_res.adb Add with and use clauses for Sem_Ch10.
2331 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2332 non-limited view. Since the shadow entity may replace a regular
2333 incomplete type, return the available full view.
2335 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2337 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2338 incomplete type declarations. Previous code was potentially quadratic
2339 in the number of visible declarations in any package appearing in a
2340 limited_with_clause.
2342 2009-06-23 Robert Dewar <dewar@adacore.com>
2344 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2345 xref_lib.adb: Minor reformatting
2347 2009-06-23 Robert Dewar <dewar@adacore.com>
2349 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2350 versions which did have a body for this unit.
2352 2009-06-23 Vincent Celier <celier@adacore.com>
2354 * prj-attr.adb: Attribute names Initial_Required_Switches and
2355 Final_Required_Switches changed to Leading_Required_Switches and
2356 Trailing_Required_Switches.
2358 * prj-nmsc.adb (Process_Compiler): Attribute names
2359 Initial_Required_Switches and Final_Required_Switches changed to
2360 Leading_Required_Switches and Trailing_Required_Switches.
2362 * prj.ads (Language_Config): Component Initial_Required_Switches and
2363 Final_Required_Switches changed to Leading_Required_Switches and
2364 Trailing_Required_Switches.
2366 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2367 Final_Required_Switches; add standard names Leading_Required_Switches
2368 and Trailing_Required_Switches.
2370 2009-06-23 Thomas Quinot <quinot@adacore.com>
2372 * prj-conf.adb: Minor reformatting
2374 * xref_lib.adb: Minor cleanup
2376 2009-06-23 Emmanuel Briot <briot@adacore.com>
2378 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2379 prj-conf.ads (Check_Configuration): New parameter
2380 Compiler_Driver_Mandatory.
2382 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2384 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2385 context of the current unit has an inline pragma, the instance is not
2386 rewritten as the declaration of the package wrapper. Handle both
2387 possibilities when retrieving the visible subprogram that renames the
2388 instantiation itself.
2390 2009-06-23 Javier Miranda <miranda@adacore.com>
2392 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2393 designated types referencing entities from the limited view.
2395 2009-06-23 Robert Dewar <dewar@adacore.com>
2397 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2399 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2402 * prj-conf.ads: Minor reformatting
2404 * prj-conf.adb: Minor reformatting
2406 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2408 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2409 to correspond to the log format that gnatmem now expects.
2411 2009-06-23 Vincent Celier <celier@adacore.com>
2413 * prj-attr.adb: New attributes Initial_Required_Switches,
2414 Final_Required_Switches and Object_File_Switches
2416 * prj-nmsc.adb (Process_Compiler): Process new attributes
2417 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2418 Name_Object_File_Switches.
2420 * prj.ads (Language_Config): New component
2421 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2422 Compiler_Final_Required_Switches and Object_File_Switches.
2424 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2425 Final_Required_Switches and Object_File_Switches
2427 2009-06-23 Pascal Obry <obry@adacore.com>
2429 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2431 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2433 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2434 not indicate that the enclosing unit needs a body.
2436 2009-06-23 Emmanuel Briot <briot@adacore.com>
2438 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2440 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2442 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2443 primitive equality include it with its source name even if the
2444 operation is currently invisible, to make sure that the corresponding
2445 slot in the dispatch table is reserved for the internal equality
2446 subsequently generated during expansion.
2448 2009-06-23 Matthew Gingell <gingell@adacore.com>
2450 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2452 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2454 * sysdep.c (__gnat_localtime_tzoff for RTX):
2455 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2456 GetTimeZoneInformation instead.
2458 2009-06-22 Robert Dewar <dewar@adacore.com>
2460 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2462 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2464 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2465 instantiations declared in a previous generic package body.
2467 2009-06-22 Robert Dewar <dewar@adacore.com>
2469 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2470 restriction No_Direct_Boolean_Operators.
2472 2009-06-22 Thomas Quinot <quinot@adacore.com>
2474 * bindusg.adb: Minor fixes to gnatbind usage message
2476 * sem_eval.adb: Minor reformatting
2478 2009-06-22 Javier Miranda <miranda@adacore.com>
2480 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2481 freezing point the check on the use of abstract types in object
2482 declarations. Done to allow the declaration of C++ imported variables
2483 or constants whose type corresponds with an imported C++ classes for
2484 which the constructor is not imported.
2486 2009-06-22 Thomas Quinot <quinot@adacore.com>
2488 * sem_ch6.adb: Minor reformatting
2490 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2492 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2493 component is constrained with an expression rather than with a
2494 discriminant of the enclosing type, use that expression when building
2495 the call to default-initialize the component, when the call is part of
2496 an aggregate with box initialization.
2498 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2500 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2501 unconditional rather than a style check, because a formal name out of
2502 order is suspicious.
2504 2009-06-22 Vincent Celier <celier@adacore.com>
2506 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2507 creating a directory automatically.
2509 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2511 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2512 untagged derived type, add a hidden component for every constrained
2513 discriminant of the parent type to keep record layout consistent.
2515 2009-06-22 Thomas Quinot <quinot@adacore.com>
2517 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2520 2009-06-22 Matthew Gingell <gingell@adacore.com>
2522 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2523 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2524 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2525 a-swuwha.adb: New unit System.String_Hash.
2526 Refactor redundant cut and pasted hash functions with instances of a
2527 new generic hash function.
2528 Implement a new string hashing algorithm which appears in testing to
2529 be move effective than to previous approach.
2531 2009-06-22 Ed Falis <falis@adacore.com>
2533 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2534 message for VxWorks 653 vThreads: not supported by the OS.
2536 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2538 2009-06-22 Robert Dewar <dewar@adacore.com>
2540 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2542 2009-06-22 Robert Dewar <dewar@adacore.com>
2544 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2547 * freeze.adb: Minor comment updates
2549 * s-valrea.adb (Bad_Based_Value): New procedure
2550 (Scan_Real): Raise exceptions with messages
2552 2009-06-22 Matthew Gingell <gingell@adacore.com>
2554 * adaint.h: Complete previous change.
2556 2009-06-22 Thomas Quinot <quinot@adacore.com>
2558 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2560 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2562 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2563 enabled, emit warning when a non-controlling argument of the overriding
2564 operation appears out of place vis-a-vis of the formal of the
2565 overridden operation.
2567 2009-06-22 Vincent Celier <celier@adacore.com>
2569 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2570 have been written into it.
2572 2009-06-22 Matthew Gingell <gingell@adacore.com>
2574 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2577 2009-06-22 Thomas Quinot <quinot@adacore.com>
2579 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2580 view of the root type is visible at the point of the call.
2582 2009-06-22 Pat Rogers <rogers@adacore.com>
2584 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2586 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2588 * freeze.adb: Add comments.
2590 2009-06-21 Thomas Quinot <quinot@adacore.com>
2592 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2593 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2594 Factor out code to new subprogram...
2595 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2596 for a default initialized variable.
2597 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2598 entity that has an associated freeze node.
2599 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2600 If there is an init call for the object, defer it to the object freeze
2602 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2603 name clash with new subprogram introduced in Exp_Util.
2605 2009-06-21 Robert Dewar <dewar@adacore.com>
2607 * einfo.ads: Minor reformatting
2609 2009-06-21 Ed Falis <falis@adacore.com>
2611 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2613 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2615 * einfo.ads: Update comments.
2617 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2619 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2620 where the controlling formal is of private class-wide type whose
2621 completion is a synchronized type can be converted into direct calls.
2623 2009-06-21 Vincent Celier <celier@adacore.com>
2625 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2626 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2627 of sources using -files=, so that the distinction can be made by the
2628 tool of a call with no source (to display the usage) from a call with
2629 a project file that contains no source.
2631 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2633 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2634 case of VM convention arrays.
2636 2009-06-20 Robert Dewar <dewar@adacore.com>
2638 * a-nudira.adb: Minor reformatting
2640 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2642 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2643 expressions (possibly from a parent type) indicate that the scope of
2644 the new itypes is the initialization procedure being built.
2646 2009-06-20 Robert Dewar <dewar@adacore.com>
2648 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2649 Needs_64, and now computed without anomolies for some dynamic types.
2651 2009-06-20 Thomas Quinot <quinot@adacore.com>
2653 * sem_prag.adb: Minor reformatting
2655 * exp_disp.ads: Minor reformatting
2657 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2659 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2660 function call is a legal expression to initialize a limited object.
2662 * exp_ch3.adb: Rename various freeze operations that perform expansion
2663 actions, to prevent confusion with subprograms in the freeze package.
2665 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2667 * sem.adb (Walk_Library_Units): Check instantiations first.
2669 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2670 private primitive if it is a function with a controlling result that is
2671 a type extension with progenitors.
2673 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2674 a primitive operation of a synchronized tagged type that has a
2677 2009-06-20 Thomas Quinot <quinot@adacore.com>
2679 * einfo.ads: Fix typo.
2681 2009-06-20 Ed Falis <falis@adacore.com>
2683 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2685 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2687 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2689 (protect_multiple_eval): Always protect complex expressions.
2691 2009-06-19 Emmanuel Briot <briot@adacore.com>
2693 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2694 make sure we always return a name ending with a path separator.
2696 2009-06-19 Javier Miranda <miranda@adacore.com>
2698 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2699 Save and restore the visibility of the parent when installed.
2701 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2703 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2704 by Common which contains all these fields.
2706 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2707 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2708 Remove code duplication in this package by means of calling the
2709 equivalent code in s-taprob.
2711 2009-06-19 Robert Dewar <dewar@adacore.com>
2713 * a-einuoc.ads: Minor reformatting
2715 2009-06-19 Ed Falis <falis@adacore.com>
2717 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2718 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2720 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2722 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2724 2009-06-19 Robert Dewar <dewar@adacore.com>
2726 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2729 * checks.adb (Determine_Range): Move the test for generic types later.
2731 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2733 (Eval_Relational_Op): Fold more cases including string compares
2735 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2738 2009-06-19 Robert Dewar <dewar@adacore.com>
2740 * sem_type.ads, sem_ch12.adb: Minor reformatting
2742 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2744 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2746 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
2747 primitive operation of a rivate extension whose controlling argument
2748 is an out parameter.
2750 * sem.adb (Walk_Library_Units): exclude generic package declarations
2753 2009-06-19 Thomas Quinot <quinot@adacore.com>
2755 * i-vxwoio.ads: Add comments
2757 2009-06-19 Thomas Quinot <quinot@adacore.com>
2759 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2760 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2761 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
2762 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
2763 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
2764 Thin_Common.Socket_Ioctl.
2765 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
2766 __gnat_socket_ioctl.
2767 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
2768 argument after the file descriptor and request code.
2770 2009-06-19 Robert Dewar <dewar@adacore.com>
2772 * checks.adb: Minor reformatting
2774 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2776 * env.c (__gnat_environ): RTX does not support this functionality.
2778 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2780 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
2781 traverse, to account for front-end inlining and instantiations in a
2782 spec or in the main unit.
2784 2009-06-19 Robert Dewar <dewar@adacore.com>
2786 * checks.adb (Determine_Range): Do not attempt to get range of generic
2789 2009-06-19 Sergey Rybin <rybin@adacore.com>
2791 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
2792 gnatmetric option for generating the schema file for gnatmetric XML
2793 output. Add corresponding VMS qualifier.
2795 2009-06-19 Robert Dewar <dewar@adacore.com>
2797 * g-cgi.adb: Minor reformatting
2799 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2801 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
2802 signal code for SIGFPE and raise Program_Error for SIGILL.
2804 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
2806 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2808 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
2809 generic package if there is a visibility candidate that is declared in
2812 2009-06-18 Olivier Hainque <hainque@adacore.com>
2814 * system-aix64.ads: New file.
2815 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
2816 64bit system.ads for ppc64 multilib variants.
2818 2009-06-16 Robert Dewar <dewar@adacore.com>
2819 Olivier Hainque <hainque@adacore.com>
2821 Relax constraints on Machine_Attribute argument types:
2822 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
2824 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
2825 * gcc-interface/decl.c (prepend_attributes): Accept static
2826 expressions of any type as attribute arguments, not only string
2828 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
2829 the relaxation of the restriction on the Info argument type.
2831 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2833 * gcc-interface/utils.c (record_builtin_type): Pass location
2834 argument to build_decl.
2835 (create_type_stub_decl): Same.
2836 (create_type_decl): Same.
2837 (create_var_decl_1): Same.
2838 (create_field_decl): Same.
2839 (create_param_decl): Same.
2840 (create_label_decl): Same.
2841 (create_subprog_decl): Same.
2842 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
2843 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
2844 argument to create_artificial_label.
2845 (Loop_Statement_to_gnu): Same.
2846 (Subprogram_Body_to_gnu): Same.
2847 (gnat_gimplify_stmt): Same.
2849 2009-06-11 Richard Henderson <rth@redhat.com>
2851 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
2854 2009-06-11 Ed Schonberg <schonberg@adacore.com>
2856 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
2857 accessibiliy check on access_to_subprogram in the context of an
2858 anonymous access that is not an access parameter.
2860 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
2862 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
2864 2009-06-11 Quentin Ochem <ochem@adacore.com>
2866 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
2867 comments for message handled by GPS.
2869 2009-06-11 Matthew Gingell <gingell@adacore.com>
2871 * adaint.c: Use fopen64 instead of fopen on platforms where we know
2874 2009-06-11 Pascal Obry <obry@adacore.com>
2876 * g-cgi.ads: Fix comment typo.
2878 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
2880 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
2882 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
2883 a reference to the original type for the type of the field of the
2885 (maybe_pad_type): Likewise.
2887 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
2888 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
2889 Pass correctly typed arguments to create_field_decl.
2890 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
2891 case of contrained discriminants as well. Use the padded base type
2892 in the other case as well. Rename temporary variable. Tweak test.
2893 Factor common access pattern. Set GNU_SIZE only once.
2895 2009-06-09 Olivier Hainque <hainque@adacore.com>
2897 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
2898 helper for build_call_alloc_dealloc with arguments to be interpreted
2899 identically. Process the case where a GNAT_PROC to call is provided.
2900 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
2901 and return an allocator for DATA_SIZE bytes aimed at containing a
2902 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
2903 DATA_TYPE alignments greater than what the latter offers.
2904 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
2905 release a DATA_TYPE object designated by DATA_PTR using the
2906 __gnat_free entry point.
2907 (build_call_alloc_dealloc): Expect object data type instead of naked
2908 alignment constraint. Use the new helpers.
2909 (build_allocator): Remove special processing for the super-aligned
2910 case, now handled by build_call_alloc_dealloc. Pass data
2911 type instead of the former alignment argument, as expected by the new
2913 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
2915 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
2916 Remove special processing for the super-aligned case, now handled
2917 by build_call_alloc_dealloc. Pass data type instead of the former
2918 alignment argument, as expected by the new interface.
2920 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2922 * lib-writ.adb (flag_compare_debug): Import.
2923 (Write_ALI): Skip during -fcompare-debug-second.
2925 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2927 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
2928 adjusting the discriminant nodes in an extension, use the full view
2929 of the parent subtype if it is of a private kind.
2931 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2933 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
2934 _Parent field, if any, to the record before adding the other fields.
2935 <E_Record_Subtype>: Put the _Controller field before the other fields
2936 except for the _Tag or _Parent fields.
2937 (components_to_record): Likewise. Retrieve the _Parent field from the
2940 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2942 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
2943 remove unused parameter and simplify.
2944 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
2945 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
2946 as context for all discriminants. Fix formatting nits.
2947 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
2948 before Discriminant_Constraint. Adjust for above renaming. Do not
2949 set GNU_TYPE more than once.
2950 (elaborate_entity): Test Has_Discriminants on the entity and use
2951 Implementation_Base_Type.
2952 (components_to_record): Rename component_list to gnat_component_list.
2953 Retrieve the _Parent field from the list. Fix nits in comments.
2954 Clarify logic in loop. Pass correct arguments to create_field_decl.
2956 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
2958 * gcc-interface/Make-lang.in: Fix formatting.
2960 2009-06-01 Olivier Hainque <hainque@adacore.com>
2961 Eric Botcazou <ebotcazou@adacore.com>
2963 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
2964 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
2965 on the result if at least one of the input fields couldn't be output
2966 as a static constant any more.
2968 2009-06-01 Olivier Hainque <hainque@adacore.com>
2969 Eric Botcazou <ebotcazou@adacore.com>
2971 * gcc-interface/utils2.c (gnat_build_constructor): Factor
2972 out code. Use initializer_constant_valid_for_bitfield_p and
2973 CONSTRUCTOR_BITFIELD_P for bit-fields.
2975 2009-05-26 Ian Lance Taylor <iant@google.com>
2977 * gcc-interface/Makefile.in (COMPILER): Define.
2978 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
2979 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
2980 (seh_init.o, tracebak.o): Likewise.
2981 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
2982 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
2983 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
2984 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
2985 (ada/utils2.o): Likewise.
2987 2009-05-24 Olivier Hainque <hainque@adacore.com>
2989 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
2990 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
2991 Add -auxbase variants to the list of recognized internal switches.
2992 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
2994 * lib.ads: Make comment on internal GCC switches more general.
2995 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
2998 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3000 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3002 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3004 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3007 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3009 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3010 original type because of the alignment when there is an address clause.
3012 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3014 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3015 discriminants affect the shape of the subtype, retrieve the GCC type
3016 directly from the original field if the GNAT types for the field and
3017 the original field are the same.
3019 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3021 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3023 (TYPE_RM_VALUES): Likewise.
3024 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3025 (SET_TYPE_RM_SIZE): New macro.
3026 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3027 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3028 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3029 * gcc-interface/gigi.h (create_range_type): Declare.
3030 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3031 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3032 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3033 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3034 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3035 and then set the RM bounds.
3036 <E_Array_Type>: Use create_range_type instead of build_range_type.
3037 <E_Array_Subtype>: Build a regular integer type first and then set
3038 the RM bounds for the extra subtype.
3039 <E_String_Literal_Subtype>: Use create_range_type instead of
3041 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3042 floating-point types.
3043 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3044 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3045 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3046 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3047 types and with RM bounds for subtypes.
3048 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3049 (gnat_print_type) <REAL_TYPE>: New case.
3050 <ENUMERAL_TYPE>: Fall through to above case.
3051 (gnat_get_subrange_bounds): New function.
3052 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3053 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3054 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3055 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3056 (create_range_type): New function.
3057 (create_param_decl): Build a regular integer type first and then set
3058 the RM bounds for the extra subtype.
3059 (unchecked_convert): Remove kludge for 'Valid.
3060 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3061 the index to sizetype instead of TYPE_DOMAIN.
3063 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3065 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3066 parameter and move check for static expression to...
3067 (elaborate_expression): ...here. Adjust call to above function.
3068 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3069 in calls to elaborate_expression.
3070 (elaborate_entity): Likewise.
3071 (substitution_list): Likewise.
3072 (maybe_variable): Fix formatting.
3073 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3075 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3077 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3079 * gcc-interface/Make-lang.in: Update dependencies.
3081 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3083 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3084 Define sa_handler_pos.
3085 * s-osinte-linux.ads: Use it.
3086 * s-linux-mipsel.ads: New.
3087 * system-linux-mips64el.ads: New.
3088 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3091 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3093 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3094 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3095 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3096 (Tagged_Type_Expansion): New flag.
3097 Replace use of VM_Target related to tagged types expansion by
3098 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3099 linked to VM targets.
3101 2009-05-06 Robert Dewar <dewar@adacore.com>
3103 * sem_attr.adb: Add processing for Standard'Compiler_Version
3105 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3107 (Expr_First_Char): Add ??? comment that paren skipping needs work
3108 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3110 * exp_attr.adb: Add processing for Compiler_Version
3112 * sem_attr.adb: New attribute Compiler_Version
3114 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3116 * gnat_rm.texi: Document Compiler_Version attribute
3118 2009-05-06 Robert Dewar <dewar@adacore.com>
3120 * errout.adb: Minor reformatting
3122 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3123 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3124 styleg.adb: Add stylized comments to error messages that are included
3125 in the codefix circuitry of IDE's such as GPS.
3127 2009-05-06 Sergey Rybin <rybin@adacore.com>
3129 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3130 new form of the rule parameter that allows to specify the suffix for
3131 access-to-access type names.
3133 2009-05-06 Robert Dewar <dewar@adacore.com>
3135 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3136 out parameter assigned when exception handlers are present.
3138 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3139 assignments on exit.
3141 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3142 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3143 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3144 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3145 messages that are included in the codefix circuitry of IDE's such as
3148 * sinput.ads, sinput.adb (Expr_First_Char): New function
3149 (Expr_Last_Char): New function
3151 2009-05-06 Sergey Rybin <rybin@adacore.com>
3153 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3154 Add formal definition for extra exit point metric
3156 2009-05-06 Pascal Obry <obry@adacore.com>
3158 * adaint.c: Support for setting attributes on unicode filename on
3161 2009-05-06 Robert Dewar <dewar@adacore.com>
3163 * sem_warn.adb: Minor reformatting
3165 2009-05-06 Javier Miranda <miranda@adacore.com>
3167 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3168 not have discriminants or components with default expressions.
3169 (Analyze_Pragma): For pragma CPP_Class check that imported types
3170 have no discriminants and components have no default expression.
3172 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3173 class-wide types in the expression of a record component association.
3175 2009-05-06 Sergey Rybin <rybin@adacore.com>
3177 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3179 * gnat_ugn.texi: Add description for the new extra exit points metric
3180 (gnatmetric section).
3182 2009-05-06 Robert Dewar <dewar@adacore.com>
3184 * s-fileio.adb: Minor comment update
3186 * sem_ch8.adb: Minor reformatting
3188 * exp_ch3.adb: Update comments.
3190 2009-05-06 Tristan Gingold <gingold@adacore.com>
3192 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3194 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3196 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3197 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3199 * gcc-interface/Make-lang.in: Update dependencies
3201 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3203 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3204 change. The context clause of a generic instance declaration must be
3205 preserved until the end of the compilation, because it may have to be
3206 installed/removed repeatedly.
3207 The latest change to sem.adb ensures that the context of both spec and
3208 body of an instance is traversed before the instance itself, making
3209 this patch redundant.
3211 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3213 * sem_aggr.adb: Fix typo.
3215 2009-05-06 Thomas Quinot <quinot@adacore.com>
3217 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3218 declaration, do not adjust if the declaration is to be rewritten into
3221 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3223 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3226 2009-05-06 Bob Duff <duff@adacore.com>
3228 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3229 otherwise the compiler would be allowed to optimize away the cleanup
3232 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3234 * gnat_ugn.texi: Fix typo.
3236 2009-05-06 Thomas Quinot <quinot@adacore.com>
3238 * g-debuti.adb: Minor reformatting
3240 * exp_attr.adb: Minor reformatting
3242 2009-05-06 Robert Dewar <dewar@adacore.com>
3244 * sem_aggr.adb: Minor reformatting.
3246 * g-socthi-vms.adb: Minor reformatting
3248 2009-05-06 Bob Duff <duff@adacore.com>
3250 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3251 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3253 2009-05-06 Bob Duff <duff@adacore.com>
3255 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3258 2009-05-06 Javier Miranda <miranda@adacore.com>
3260 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3261 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3262 extension aggregates.
3263 (Resolve_Record_Aggregate): Add support for C++ constructors in
3264 extension aggregates.
3266 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3267 constructors in extension aggregates.
3269 2009-05-06 Robert Dewar <dewar@adacore.com>
3271 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3274 2009-05-06 Thomas Quinot <quinot@adacore.com>
3276 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3277 packed type, since on OpenVMS, struct msghdr is packed.
3279 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3281 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3282 call returning an unconstrained composite value, create the proper
3283 subtype for it, as is done for object dclarations with unconstrained
3284 nominal subtypes. Perform this transformation regarless of whether
3285 call comes from source.
3287 2009-05-06 Robert Dewar <dewar@adacore.com>
3289 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3293 Add documentation for pragma Implicit_Packing applied to record
3296 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3298 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3299 instantiation on the spec, because late instance bodies may generate
3300 with_clauses for the instance body but are inserted in the instance
3303 2009-05-06 Emmanuel Briot <briot@adacore.com>
3305 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3306 support for returning the directory even if it doesn't exist. This is
3307 used for the object directory, since we are always setting it to a
3308 non-null value, and we should set it to an absolute name rather than a
3309 relative name for the sake of external tools that might depend on it.
3310 (Check_Library_Attributes): When Project.Library_Dir is known, check
3311 that the directory exists.
3313 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3315 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3316 reference is an implicit dereference, do not freeze the designated type
3317 if within a default expression or when preanalyzing a pre/postcondtion.
3319 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3321 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3322 call returning an unconstrained composite value, create the proper
3323 subtype for it, as is done for object dclarations with unconstrained
3326 2009-05-06 Robert Dewar <dewar@adacore.com>
3328 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3331 * freeze.adb: Minor reformatting
3333 2009-05-06 Thomas Quinot <quinot@adacore.com>
3335 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3336 designated type is a limited view from a limited with clause (flagged
3337 From_With_Type) is not itself such a limited view.
3339 2009-05-06 Emmanuel Briot <briot@adacore.com>
3341 * prj-nmsc.adb: Remove unused variable.
3343 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3344 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3345 makeutl.ads, since not all users of prj.ads need this.
3347 2009-05-06 Javier Miranda <miranda@adacore.com>
3349 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3350 constructor in case of aggregates whose type is a CPP_Class type.
3352 2009-05-06 Robert Dewar <dewar@adacore.com>
3354 * sem_ch13.adb: Minor comment additions
3356 * osint.adb: Minor reformatting
3358 2009-05-06 Pascal Obry <obry@adacore.com>
3360 * initialize.c: On Windows, keep full pathname to expanded command
3363 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3365 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3366 an aggregate with box default is of a discriminated private type, do
3367 not build a subaggregate for it.
3368 A proper call to the initialization procedure is generated for it.
3370 2009-05-06 Thomas Quinot <quinot@adacore.com>
3372 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3373 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3374 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3375 use standard array code for Standard.String.
3376 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3377 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3379 2009-05-06 Robert Dewar <dewar@adacore.com>
3381 * g-comlin.ads: Minor reformatting
3383 * xoscons.adb: Minor reformatting
3385 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3387 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3388 Underlying_Type before retrieving the type definition for gathering
3389 components, to account for the case where the type is private.
3391 2009-05-06 Tristan Gingold <gingold@adacore.com>
3393 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3395 2009-05-06 Thomas Quinot <quinot@adacore.com>
3397 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3398 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3399 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3400 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3401 Windows versions): Fix incorrect base
3402 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3403 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3404 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3405 achieve independance from AF_INET family, and also to allow this
3406 parameter to be retrieved from a Msghdr for the Windows case where
3407 these routines are used to implement C_Sendmsg and C_Recvmsg.
3409 2009-05-06 Bob Duff <duff@adacore.com>
3411 * g-expect.adb, g-expect.ads: Minor reformatting
3413 * sdefault.ads: Minor comment fix
3415 * g-expect-vms.adb: Minor reformatting
3417 * table.ads, table.adb (Append_All): New convenience procedure for
3418 appending a whole array.
3420 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3421 box message. Call Osint.Dump_Source_File_Names to print out the file
3422 list, instead of rummaging around in various data structures.
3424 * debug.adb: New switch -gnatd.n, to print source file names as they
3427 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3429 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3430 out source file names during a "bug box".
3431 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3432 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3433 If it's not part of the runtimes, store it for later printing by
3434 Dump_Source_File_Names.
3436 2009-05-06 Javier Miranda <miranda@adacore.com>
3438 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3439 documentation and add reference to the GNAT user guide for further
3442 2009-05-06 Javier Miranda <miranda@adacore.com>
3444 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3445 also wrong examples that use extension aggregates.
3447 2009-05-06 Albert Lee <lee@adacore.com>
3449 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3450 of Msg_Iovlen_T for VMS.
3452 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3455 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3457 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3459 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3460 box-defaulted operator in an instantiation, when the type of the
3461 operands is not directly visible.
3463 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3465 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3466 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3467 analysis of the ancestor part. Remove prohibition against limited
3468 interpretations of the ancestor expression in the case of Ada 2005.
3469 Revise error message in overloaded case, adding a message to cover
3472 2009-04-29 Thomas Quinot <quinot@adacore.com>
3474 * xoscons.adb: Minor reformatting
3476 2009-04-29 Bob Duff <duff@adacore.com>
3478 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3479 attribute_definition_clauses for the following attributes when the
3480 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3481 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3482 missing Read attribute on remote types).
3484 * gnat_ugn.texi: Document the change, and add a stern warning.
3486 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3488 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3489 disabled not just for the current scope, but for the innermost dynamic
3492 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3494 * gcc-interface/Make-lang.in: Update dependencies
3496 2009-04-29 Vincent Celier <celier@adacore.com>
3498 * prj-part.adb: Minor comment update
3500 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3502 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3503 box-initialized records with discriminated subcomponents that are
3504 constrained by discriminants of enclosing components. New subsidiary
3505 procedures Add_Discriminant_Values, Propagate_Discriminants.
3507 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3509 * g-socket.adb: Code clean up.
3511 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3513 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3514 function entity, to cover the case of a parameterless function call
3515 that has not been resolved.
3517 2009-04-29 Robert Dewar <dewar@adacore.com>
3519 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3520 reformatting and comment updates.
3522 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3524 * gnat_ugn.texi: Update some documentation about interfacing with C++
3525 Mention -fkeep-inline-functions.
3527 * gnat_ugn.texi: Minor edits
3529 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3531 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3532 for a defaulted component of an enclosing aggregate, inherit the type
3533 from the component declaration of the enclosing type.
3535 2009-04-29 Albert Lee <lee@adacore.com>
3537 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3538 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3539 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3540 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3541 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3542 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3543 type for the Msg_Iovlen field.
3545 2009-04-29 Vincent Celier <celier@adacore.com>
3547 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3548 Source_File_Index_Table entries for the source, to avoid crash when
3551 * gnatcmd.adb (Test_If_Relative_Path): Use
3552 Makeutl.Test_If_Relative_Path.
3554 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3555 Including_RTS is True.
3557 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3558 Including_RTS defaulted to False.
3560 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3563 2009-04-29 Javier Miranda <miranda@adacore.com>
3565 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3567 2009-04-29 Javier Miranda <miranda@adacore.com>
3569 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3570 associated with dyamically tagged expressions if the expression
3571 initializing a tagged type corresponds with a non default CPP
3573 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3574 of limited type objects.
3576 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3577 when a CPP constructor is called in an assignment. Disable also the
3578 error message associated with dyamically tagged expressions if the
3579 exporession initializing a tagged type corresponds with a non default
3582 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3583 non-default C++ constructors.
3585 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3587 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3588 non-default constructors.
3589 (Init_Proc): Add support for non-default constructors.
3591 * exp_disp.adb (Set_Default_Constructor): Removed.
3592 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3593 but extending its functionality to handle non-default constructors.
3595 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3596 constructors. Minor code cleanup removing unrequired label and goto
3599 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3601 (Build_Init_Statements): Add support for non-default constructors.
3602 (Expand_N_Object_Declaration): Add support for non-default constructors.
3603 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3604 to Set_CPP_Constructors.
3606 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3607 non-default constructors.
3608 Required to handle its use in build-in-place statements.
3610 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3611 pragma for non-default C++ constructors and the new compiler support
3612 that allows the use of these constructors in record components, limited
3613 aggregates, and extended return statements.
3615 2009-04-29 Vincent Celier <celier@adacore.com>
3617 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3618 project extending an abstract project.
3620 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3622 * targparm.ads: Fix oversight.
3624 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3626 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3627 derivation when necessary, to find the user-subprogram that is actally
3630 2009-04-29 Robert Dewar <dewar@adacore.com>
3632 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3635 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3637 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3638 primitive operation, rather than source line of synchronized type, when
3639 building the wrapper for a primitive operation that overrides an
3640 operation inherited from a progenitor, to improve the error message on
3641 duplicate declarations.
3643 * sem_ch3.adb (Process_Full_View): Use new signature of
3646 2009-04-29 Robert Dewar <dewar@adacore.com>
3648 * prj-nmsc.ads: Minor reformatting
3650 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3652 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3653 expression on the existing parent If statement.
3655 2009-04-29 Robert Dewar <dewar@adacore.com>
3657 * prj-proc.adb, prj.ads: Minor reformatting
3659 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3661 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3662 existing parent If statement on the newly created one.
3664 2009-04-29 Emmanuel Briot <briot@adacore.com>
3666 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3667 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3668 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3669 (Set_In_Configuration, In_Configuration): Removed.
3670 Replaced by an extra parameter Is_Config_File in several parameter to
3671 avoid global variables to store the state of the parser.
3673 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3675 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3676 with_clauses generated for the same unit through rtsfind, and that
3677 appear in the context of different units.
3679 * rtsfind.adb: New attribute First_Implicit_With, component of the
3680 Unit_Record that stores information about a unit loaded through rtsfind.
3682 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3684 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3685 (other conditions permitting), so that abstract stream subprograms will
3686 be declared for them.
3688 2009-04-29 Bob Duff <duff@adacore.com>
3690 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3692 * g-expect.ads: Minor comment fixes.
3694 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3696 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3697 dispatching operation is a body without previous spec, update the list
3698 of primitive operations to ensure that cross-reference information is
3701 2009-04-29 Albert Lee <lee@adacore.com>
3703 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3704 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3705 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3706 (GNAT.Sockets.Thin.C_Readv,
3707 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3708 (GNAT.Sockets.Thin.C_Recvmsg,
3709 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3711 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3712 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3714 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3716 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3717 operation is a body without previous spec, update the list of
3718 primitive operations to ensure that cross-reference information is
3721 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3722 new compilation unit node for the instance declaration, keep the
3723 context items of the original unit on it, so that the context of the
3724 instance body only holds the context inherited from the generic body.
3726 2009-04-29 Bob Duff <duff@adacore.com>
3728 * sem_res.adb: Minor comment fix.
3730 2009-04-29 Thomas Quinot <quinot@adacore.com>
3732 * sem_elim.adb: Minor reformatting
3734 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3736 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3737 predefined unit, allow arbitrary number of components in static
3738 aggregate, to ensure that the same level of constant folding applies
3739 for Ada 95 and Ada 05 versions of the file.
3741 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3743 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3744 information: no need for full scope check.
3745 (Eliminate_Error): Do not emit error in a generic context.
3747 2009-04-29 Ed Falis <falis@adacore.com>
3749 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
3750 VxWorks 653 POS does not support rmdir.
3752 2009-04-29 Matteo Bordin <bordin@adacore.com>
3754 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
3755 results are printed.
3757 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3759 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
3762 2009-04-29 Thomas Quinot <quinot@adacore.com>
3764 * make.adb: Minor reformatting.
3765 Minor code reorganization throughout.
3767 2009-04-29 Matteo Bordin <bordin@adacore.com>
3769 * s-stausa.ads: Changed visibility of type Task_Result: moved to
3770 public part to give application visibility over it.
3771 This is for future improvement and to build a public API on top of it.
3772 Changed record components name of type Task_Result to reflect the new
3775 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
3776 reporting Stack usage.
3778 * gnat_ugn.texi: Update doc of stack usage report.
3780 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
3782 * Makefile.rtl: Add new run-time files.
3784 2009-04-29 Pascal Obry <obry@adacore.com>
3786 * initialize.c: Do not expand quoted arguments.
3788 2009-04-29 Emmanuel Briot <briot@adacore.com>
3790 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
3792 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
3793 Prj.Ultimate_Extending_Project_Of
3795 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3797 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
3798 Amendment type, add the with_clause for Finalization.List_Controller
3799 only if the current context is a package body.
3801 2009-04-29 Thomas Quinot <quinot@adacore.com>
3803 * sem_ch12.adb: Minor reformatting
3805 * sem_aggr.adb: Minor reformatting
3807 * sem_ch6.adb, sem_cat.ads: Minor reformatting
3809 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
3811 2009-04-29 Quentin Ochem <ochem@adacore.com>
3813 * prj.ads (Source_Id): Now general pointer type.
3815 2009-04-29 Thomas Quinot <quinot@adacore.com>
3817 * exp_ch7.adb, rtsfind.adb: Minor reformatting
3819 * sem_res.adb: Minor reformatting
3821 2009-04-29 Thomas Quinot <quinot@adacore.com>
3823 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
3824 operands is static only if it is a predefined concatenation operator.
3826 * sem_util.adb: Minor reformatting
3828 * sem_ch12.adb (Save_References): When propagating semantic information
3829 from generic copy back to generic template, for the case of an
3830 identifier that has been rewritten to an explicit dereference whose
3831 prefix is either an object name or a parameterless funcion call
3832 denoting a global object or function, properly capture the denoted
3833 global entity: perform the corresponding rewriting in the template,
3834 and point the rewritten identifier to the correct global entity (not
3835 to the associated identifier in the generic copy).
3837 2009-04-29 Robert Dewar <dewar@adacore.com>
3839 * rtsfind.adb, prj-env.adb: Minor reformatting
3840 Minor code reorganization
3842 2009-04-29 Emmanuel Briot <briot@adacore.com>
3844 * make.adb: Fix comment
3846 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
3847 is given as argument, as might happen in gnatmake.
3849 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3851 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
3852 an abstract operation of a progenitor is not properly overridden by an
3853 operation of a derived synchronized type.
3855 2009-04-29 Robert Dewar <dewar@adacore.com>
3857 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
3858 prj-proc.adb: Minor reformatting
3859 Minor code reorganization
3861 2009-04-29 Bob Duff <duff@adacore.com>
3863 * exp_ch7.adb (Build_Final_List): For an access type that designates a
3864 Taft Amendment type, if the access type needs finalization, make sure
3865 the implicit with clause for List_Controller occurs on the package spec.
3867 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
3868 with's created for the pseudo-children of Text_IO and friends. In
3869 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
3870 Ada.Text_IO.Integer_IO both with-ing each other.
3872 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
3873 oddball cases when pragma Extend_System is used.
3875 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
3876 the case where a package spec instantiates a generic whose body with's
3877 this package, so Walk_Library_Items won't complain about cyclic with's.
3879 2009-04-29 Emmanuel Briot <briot@adacore.com>
3881 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
3882 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
3883 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
3884 (Project_Id): now a real pointer to Project_Data, instead of an index
3885 into the Projects_Table. This simplifies the API significantly, avoiding
3886 extra lookups in this table and the need to pass the Project_Tree_Ref
3887 parameter in several cases
3889 2009-04-29 Nicolas Setton <setton@adacore.com>
3891 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
3894 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
3896 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
3899 2009-04-24 Robert Dewar <dewar@adacore.com>
3901 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
3902 clean.adb: Minor reformatting.
3903 Minor code reorganization and message improvement.
3905 2009-04-24 Emmanuel Briot <briot@adacore.com>
3907 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
3908 (Alternate_Languages): now implemented as a malloc-ed list rather
3909 than through a table.
3911 2009-04-24 Thomas Quinot <quinot@adacore.com>
3913 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
3914 accurately handle cases such as "lit" & "lit" and
3915 "lit" & static_string_constant
3917 2009-04-24 Emmanuel Briot <briot@adacore.com>
3919 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3920 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
3921 removed. Lists of projects are now implemented via standard malloc
3922 rather than through the table.
3924 2009-04-24 Thomas Quinot <quinot@adacore.com>
3926 * sem_ch12.adb: Minor reformatting
3928 * g-trasym.adb: Minor reformatting
3930 * exp_ch6.adb: Minor reformatting
3932 2009-04-24 Robert Dewar <dewar@adacore.com>
3934 * layout.adb (Layout_Type): For packed array type, copy unset
3935 size/alignment fields from the referenced Packed_Array_Type.
3937 2009-04-24 Bob Duff <duff@adacore.com>
3939 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
3940 longer needed after sem_ch12 changes.
3942 * sem.adb (Walk_Library_Items): Include with's in some debugging
3945 2009-04-24 Emmanuel Briot <briot@adacore.com>
3947 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
3948 only ever using the Project field.
3950 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3952 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
3953 Body_Required on the generated compilation node. The new node is linked
3954 to its body, but both share the same file, so we do not set this flag
3955 on the new unit so as not to create a spurious dependency on a
3956 non-existent body in the ali file for the instance.
3958 2009-04-24 Robert Dewar <dewar@adacore.com>
3960 * make.adb: Minor reformatting
3962 2009-04-24 Emmanuel Briot <briot@adacore.com>
3964 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
3965 Add_Source): merge some code between those. In particular change where
3966 file normalization is done to avoid a few extra calls to
3967 Canonicalize_File_Name. This also removes the need for passing
3968 Current_Dir in a number of subprograms.
3970 2009-04-24 Bob Duff <duff@adacore.com>
3972 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
3973 False, assign the correct unit to the Cunit field of the new table
3974 entry. We want the spec unit, not the body unit.
3976 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
3977 interface for these.
3978 (Maybe_Add_With): Check whether we're trying to a with on the current
3979 unit, and avoid creating such directly self-referential with clauses.
3980 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
3981 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
3982 and matches existing comments in the spec.
3984 * sem.adb (Walk_Library_Items): Add various special cases to make the
3987 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
3988 instead of Parent (N), for uniformity.
3990 2009-04-24 Robert Dewar <dewar@adacore.com>
3992 * errout.ads: Minor reformatting
3994 2009-04-24 Emmanuel Briot <briot@adacore.com>
3996 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
3997 behavior when the project includes sources from multiple languages
3999 2009-04-24 Vincent Celier <celier@adacore.com>
4001 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4002 is a language other than Ada declared.
4004 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4005 Imported_First set to True.
4007 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4009 * sem_res.adb: additional optimization to inhibit creation of
4010 redundant transient scopes.
4012 2009-04-24 Bob Duff <duff@adacore.com>
4014 * rtsfind.ads: Minor comment fix
4016 2009-04-24 Emmanuel Briot <briot@adacore.com>
4018 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4019 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4020 basically doing the same work (for explicit or implicit sources).
4021 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4022 role. Rewritten to share some code (testing that all explicit sources
4023 have been found) between ada_only and multi_language modes.
4025 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4027 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4028 for CLI imported types.
4029 (Analyze_Pragma): Allow CIL or Java imported functions returning
4030 access-to-subprogram types.
4032 2009-04-24 Emmanuel Briot <briot@adacore.com>
4034 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4035 (Project_Data.Dir_Path): field removed, since it can be computed
4036 directly from .Directory, and is needed only once when processing the
4037 project is buildgpr.adb or make.adb
4039 2009-04-24 Robert Dewar <dewar@adacore.com>
4041 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4042 rtsfind.adb: Minor reformatting.
4043 Minor code reorganization
4045 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4047 * mlib-prj.adb: Use friendlier english identifier.
4049 * gnatcmd.adb, make.adb: Use better english identifiers.
4051 2009-04-24 Robert Dewar <dewar@adacore.com>
4053 * clean.adb: Minor reformatting
4055 2009-04-24 Robert Dewar <dewar@adacore.com>
4057 * einfo.adb (OK_To_Rename): New flag
4059 * einfo.ads (OK_To_Rename): New flag
4061 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4064 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4066 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4069 2009-04-24 Emmanuel Briot <briot@adacore.com>
4071 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4072 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4073 field removed. This is not a property of the
4074 project, just a boolean used to traverse the project tree, and storing
4075 it in the structure prevents doing multiple traversal in parallel.
4076 (Project_Data.Checked): also removed, since it was playing the same role
4077 as Seen when we had two nested loops, and this is no longer necessary
4078 (For_All_Imported_Projects): removed, since in fact there was already
4079 the equivalent in For_Every_Project_Imported. The latter was rewritten
4080 to use a local hash table instead of Project_Data.Seen
4081 Various loops were rewritten to use For_Every_Project_Imported, thus
4082 removing the need for Project_Data.Seen. This avoids a lot of code
4085 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4087 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4088 statements, even though the actual of the call is a concatenation,
4089 because the argument is static, and we want to preserve warning
4090 messages about sequences of code statements that are not marked
4093 * sem_warn.adb: remove obsolete comment about warning being obsolete
4095 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4096 requeued and the delay has expired while within the accept statement
4097 that executes the requeue, do not perform the requeue and indicate that
4098 the timed call has been aborted.
4100 2009-04-24 Emmanuel Briot <briot@adacore.com>
4102 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4103 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4104 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4105 since they can be computed from the above.
4107 2009-04-24 Vincent Celier <celier@adacore.com>
4109 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4111 * prj-env.adb: Move all global variables to the private part of the
4113 Access these new components instead of the global variables no longer
4115 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4116 components that were previously global variables.
4118 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4119 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4122 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4123 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4125 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4126 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4127 components in the private part of the project tree data.
4129 * prj.ads (Private_Project_Tree_Data): new components moved from
4130 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4131 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4132 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4134 2009-04-24 Vincent Celier <celier@adacore.com>
4136 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4138 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4139 projects, when --unchecked-shared-lib-imports is used.
4141 2009-04-24 Robert Dewar <dewar@adacore.com>
4143 * sem_ch7.adb: Minor reformatting
4145 2009-04-24 Tristan Gingold <gingold@adacore.com>
4147 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4150 2009-04-24 Emmanuel Briot <briot@adacore.com>
4152 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4153 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4154 (For_All_Imported_Projects): new procedure
4155 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4156 above rather than duplicating code.
4158 2009-04-24 Emmanuel Briot <briot@adacore.com>
4160 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4161 (Source_Id, Source_Data): use a real list to store sources rather than
4162 using an external table to store the elements. This makes code more
4163 efficient and more readable.
4165 2009-04-24 Emmanuel Briot <briot@adacore.com>
4167 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4168 (Source_Iterator): new type.
4169 This removes the need for having the sources on three different
4170 lists at the project tree, project and language level. They are now
4173 2009-04-24 Emmanuel Briot <briot@adacore.com>
4175 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4177 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4179 * sem_warn.adb: Add comment on obsolete warning
4181 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4183 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4185 2009-04-24 Emmanuel Briot <briot@adacore.com>
4187 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4188 to Language_Ptr to better reflect its new implementation.
4189 (Project_Data.First_Languages_Processing): renamed to Languages now
4190 that the field with that name is no longer used
4191 (Project_Data.Languages): removed, no longer used, and duplicates
4192 information already available through First_Language_Processing.
4193 (Prj.Language_Index): now an actual pointer, instead of an index into
4194 a table. This makes the list somewhat more obvious, but more importantly
4195 removes the need to pass a pointer to the project_tree_data in a few
4196 places, and makes accessing the attributes of a languages more
4199 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4200 Thomas Quinot <quinot@adacore.com>
4202 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4203 * gcc-interface/misc.c (internal_error_function): Make copy of return
4204 from pp_formatted_text before assigning BUFFER to it.
4205 (gnat_init): Likewise for main_input_filename and gnat_argv.
4206 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4208 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4210 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4211 (Target_Double_Scalar_Alignment): Likewise.
4212 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4213 (Get_Double_Float_Alignment): New imported function.
4214 (Get_Double_Scalar_Alignment): Likewise.
4215 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4216 the alignment of "double" floating-point types and "double" or larger
4217 scalar types, as parameterized by Target_Double_Float_Alignment and
4218 Target_Double_Scalar_Alignment respectively.
4219 * gcc-interface/gigi.h (double_float_alignment): Declare.
4220 (double_scalar_alignment): Likewise.
4221 (is_double_float_or_array): Likewise.
4222 (is_double_scalar_or_array): Likewise.
4223 (get_target_double_float_alignment): Likewise.
4224 (get_target_double_scalar_alignment): Likewise.
4225 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4226 (get_target_strict_alignment): ...this.
4227 (get_target_double_float_alignment): New function.
4228 (get_target_double_scalar_alignment): Likewise.
4229 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4230 Test the presence of an alignment clause for under-aligned integer
4231 types. Take into account specific caps for the alignment of "double"
4232 floating-point types and "double" or larger scalar types, as
4233 parameterized by Target_Double_Float_Alignment and
4234 Target_Double_Scalar_Alignment respectively.
4235 (validate_alignment): Likewise.
4236 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4237 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4238 * gcc-interface/utils.c (double_float_alignment): New global variable.
4239 (double_scalar_alignment): Likewise.
4240 (is_double_float_or_array): New predicate.
4241 (is_double_scalar_or_array): Likewise.
4243 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4245 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4246 the conditional expression only if it is common to both arms.
4248 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4250 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4251 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4252 arguments to build_allocator.
4253 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4254 Remove code handling special allocator and assert its uselessness.
4256 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4258 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4259 alignment is specified, do not promote that of the component type
4261 <E_Array_Subtype>: Likewise.
4263 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4265 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4266 * sinfo.ads (Object Declaration): Likewise.
4267 (Assignment Statement): Likewise.
4268 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4269 Do not force Is_True_Constant to false on the temporary.
4270 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4271 the RHS of object declarations.
4272 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4273 New case. Return 1 if the object is atomic.
4274 <N_Assignment_Statement>: Likewise.
4276 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4278 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4279 For packed array types, make the original array type a parallel type
4280 for the modular type and its JM wrapper if the type is bit-packed.
4281 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4282 record type for packed array types. Remove kludge.
4284 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4286 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4287 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4288 Use front-end predicates to compute signedness and precision.
4289 <E_String_Literal_Subtype>: Fold range type.
4290 Make sure to set longest_float_type_node to a scalar type.
4291 (elaborate_entity): Use consistent Constraint_Error spelling.
4292 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4293 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4294 output for the modulus, if any.
4295 <ENUMERAL_TYPE>: Likewise for the RM size.
4296 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4298 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4299 of BLKmode bit-fields to compute their addressability.
4300 (create_index_type): Adjust comments.
4301 (create_param_decl): Create the biased subtype manually.
4302 * gcc-interface/utils2.c (build_component_ref): Use consistent
4303 Constraint_Error spelling.
4305 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4307 * gcc-interface/cuintp.c: Clean up include directives.
4308 * gcc-interface/targtyps.c: Likewise.
4309 * gcc-interface/decl.c: Likewise.
4310 * gcc-interface/misc.c: Likewise.
4311 * gcc-interface/trans.c: Likewise.
4312 * gcc-interface/utils.c: Likewise.
4313 * gcc-interface/utils2.c: Likewise.
4314 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4316 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4318 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4319 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4320 (SET_DECL_LANG_SPECIFIC): Likewise.
4322 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4323 Update comment about use of build_range_type.
4324 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4325 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4326 check for other cases of overloading.
4327 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4328 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4329 Use size_int in lieu of build_int_cst.
4330 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4333 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4335 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4336 type is an enumeral or a boolean type, change it to an integer type
4337 with the same mode and signedness.
4339 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4341 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4342 for an external constant whose initializer is not absolute.
4344 2009-04-22 Taras Glek <tglek@mozilla.com>
4346 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4347 * gcc-interface/trans.c: Likewise.
4348 * gcc-interface/utils.c: Likewise.
4350 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4352 * sem_res.adb: Create block around procedure call when actual is a
4355 2009-04-22 Thomas Quinot <quinot@adacore.com>
4357 * s-soflin.ads: Fix typos
4359 2009-04-22 Vincent Celier <celier@adacore.com>
4361 * prj-env.adb: Minor comment change
4363 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4364 Get_Name_String with No_File.
4366 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4367 cannot be created even when not in verbose mode.
4369 2009-04-22 Emmanuel Briot <briot@adacore.com>
4371 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4372 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4373 Multi_Language modes, to avoid code duplication.
4374 (Project_Data.Include_Language): Removed.
4376 2009-04-22 Vincent Celier <celier@adacore.com>
4378 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4379 the temporary file cannot be created, indicating the directory when the
4380 creation was attempted.
4382 2009-04-22 Emmanuel Briot <briot@adacore.com>
4384 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4385 the language names, not their indices.
4387 2009-04-22 Emmanuel Briot <briot@adacore.com>
4389 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4390 (Source_Data.Language_Name): Field removed.
4392 2009-04-22 Emmanuel Briot <briot@adacore.com>
4394 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4397 2009-04-22 Emmanuel Briot <briot@adacore.com>
4399 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4400 separate_suffix to the same value as the body_suffix.
4402 2009-04-22 Robert Dewar <dewar@adacore.com>
4404 * prj.adb: Minor code reorganization
4407 * prj-proc.adb: Minor code reorganization, clean up.
4409 * prj-nmsc.adb: Minor reformatting
4410 Minor code reorganization
4412 * gnat_ugn.texi: Add to doc on strict aliasing
4414 2009-04-22 Pascal Obry <obry@adacore.com>
4416 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4419 * s-tasini.adb: Minor reformatting.
4421 * s-tassta.adb: Minor reformatting.
4423 2009-04-22 Emmanuel Briot <briot@adacore.com>
4425 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4426 smaller subprograms.
4427 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4428 other Check_Naming_Schemes functions that plays a totally different
4430 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4431 extracted from the above. These were partially rewritten to avoid
4432 unnecessary code and temporary variables.
4433 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4434 and Get_Unit (which for now still exist since they contain mode-specific
4437 2009-04-22 Emmanuel Briot <briot@adacore.com>
4439 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4440 Remove duplicated code.
4441 (Canonical_Case_File_Name): new subprogram
4442 (Check_And_Normalize_Unit_Names): new subprogram
4443 (Write_Attr): new subprogram
4444 Better sharing of code
4445 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4446 split Check_Naming and help find duplicated code
4447 (Check_Common): new subprogram, sharing code between ada_only and
4448 multi_language mode.
4449 (Naming_Data.Dot_Repl_Loc): field removed
4451 2009-04-22 Emmanuel Briot <briot@adacore.com>
4453 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4454 Minor refactoring to reduce the size of
4455 Process_Sources_In_Multi_Language_Mode.
4456 Avoid extra copied of Source_Data, which we found in the past could be
4458 (Mark_Excluded_Sources): new subprogram.
4459 (Remove_Locally_Removed_Files_From_Units): merged into the above
4460 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4461 and allow better sharing of code between multi_lang and ada_only modes
4462 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4464 2009-04-22 Emmanuel Briot <briot@adacore.com>
4466 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4467 Removed, since unused.
4469 2009-04-22 Vincent Celier <celier@adacore.com>
4471 * prj-attr.adb: New single project level attribute
4472 Separate_Run_Path_Options.
4474 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4475 attribute Seperate_Run_Path_Options.
4477 * prj.ads: (Project_Configuration): New Boolean component
4478 Separate_Run_Path_Options, defaulted to False.
4480 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4482 2009-04-22 Robert Dewar <dewar@adacore.com>
4484 * sem_type.adb: Minor reformatting
4486 * mlib.adb: Minor reformatting
4488 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4491 2009-04-22 Nicolas Setton <setton@adacore.com>
4493 * link.c: Add flag __gnat_separate_run_path_options.
4495 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4497 * mlib.ads (Separate_Run_Path_Options): Declare.
4499 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4500 switch per directory, rather than one "rpath" switch listing all
4503 * gnatlink.adb (Process_Binder_File): Likewise.
4505 * make.adb (Gnatmake): Likewise.
4507 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4509 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4510 Add a call to Move_Final_List when the target of the assignment is a
4511 return object that needs finalization and the expression is a
4512 controlled build-in-place function.
4514 2009-04-22 Vincent Celier <celier@adacore.com>
4516 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4517 Including_Libraries set to True.
4519 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4521 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4522 create a unit table entry for the subprogram declaration created for a
4523 child suprogram body that has no separate specification.
4525 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4526 subprogram body, call Make_Child_Decl_Unit.
4528 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4529 table can only be the created specification of a child subprogram body
4530 that is the main unit, which has not been entered in the table yet.
4532 * errout.adb (Output_Messages): Ignore created specification of a
4533 child subprogram body to prevent repeated listing of error messages.
4535 * gnat1drv.adb (gnat1drv): The generated specification for a child
4536 subprogram body does not generate code.
4538 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4540 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4541 since this unit is now part of bootstrap units, so must use Ada 95
4544 2009-04-22 Thomas Quinot <quinot@adacore.com>
4546 * a-tasatt.adb: Minor reformatting
4548 2009-04-22 Bob Duff <duff@adacore.com>
4550 * s-stalib.ads: Remove "with System;" since we're inside System, so
4553 2009-04-22 Vincent Celier <celier@adacore.com>
4555 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4556 the source record, as there may be a dependency file even if no object
4559 2009-04-22 Robert Dewar <dewar@adacore.com>
4561 * lib-load.adb: Minor reformatting
4563 * lib-load.ads: Minor reformatting
4565 * sinfo.ads: Minor reformatting
4567 2009-04-22 Bob Duff <duff@adacore.com>
4569 * exp_pakd.adb: Minor comment fixes.
4571 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4572 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4573 include units containing instantiations, as well as units that are
4574 generic instantiations.
4576 * sem.adb: Include dependents and corresponding specs/bodies in the
4579 * gcc-interface/Make-lang.in:
4580 sem now depends on s-bitops, because of the packed array of Booleans.
4582 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4584 * gcc-interface/ada-tree.def: Fix formatting nits.
4585 (REGION_STMT): Delete.
4586 (HANDLER_STMT): Likewise.
4587 * gcc-interface/ada-tree.h: Fix formatting nits.
4589 (REGION_STMT_BODY): Likewise.
4590 (REGION_STMT_HANDLE): Likewise.
4591 (REGION_STMT_BLOCK): Likewise.
4592 (HANDLER_STMT_ARG): Likewise.
4593 (HANDLER_STMT_LIST): Likewise.
4594 (HANDLER_STMT_BLOCK): Likewise.
4595 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4596 (fp_size_to_prec): Likewise.
4597 (largest_move_alignment): Delete.
4598 (gnat_compute_largest_alignment): Likewise.
4600 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4601 Remove redundant code.
4602 <E_Array_Type>: Remove redundant assert.
4603 <E_Array_Subtype>: Exit early from index computation in pathological
4605 Rewrite conditional assignment.
4606 (make_type_from_size): Likewise.
4607 * gcc-interface/misc.c (largest_move_alignment): Delete.
4608 (gnat_finish_incomplete_decl): Likewise.
4609 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4610 (asm_out_file): Likewise
4611 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4612 (gnat_dwarf_name): Move around.
4613 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4614 (gigi): Remove call to gnat_compute_largest_alignment.
4615 * utils.c (create_field_decl): Rewrite conditional assignment.
4618 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4620 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4621 on entry. Defer common processing for types. Reorder and clean up.
4622 Compute the equivalent GNAT node and the default size for types only.
4623 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4624 <E_Access_Type>: For an unconstrained designated type, do not pretend
4625 that a dummy type is always made.
4626 <all> Fix nits in comments.
4627 (validate_size): Fix formatting nits and comments.
4628 (set_rm_size): Likewise.
4629 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4630 passed to TARGET_PROMOTE_PROTOTYPES hook.
4632 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4634 * fe.h (Get_External_Name): Declare.
4635 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4636 (concat_name): ...this.
4637 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4638 gnu_entity_name and adjust for above renaming.
4639 <E_Access_Type>: Use create_concat_name to get the name of the various
4640 types associated with unconstrained array types.
4641 (make_aligning_type): Adjust for above renaming.
4642 (maybe_pad_type): Likewise.
4643 (components_to_record): Likewise. Use get_identifier_with_length for
4644 the encoding of the variant.
4645 (get_entity_name): Use get_identifier_with_length.
4646 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4647 Do not fiddle with Name_Buffer.
4648 (concat_id_with_name): Rename to...
4649 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4651 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4654 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4656 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4659 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4661 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4663 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4665 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4666 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4667 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4668 Remove useless support code for packed array types and assert its
4670 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4671 adjust for TYPE_RM_SIZE change.
4672 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4673 of Associated_Node_For_Itype accessor for packed array types.
4674 (make_packable_type): Likewise.
4675 (maybe_pad_type): Likewise.
4676 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4677 TYPE_RM_SIZE change.
4678 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4679 (rm_size): Fix nits in comments. Rework conditional statements.
4680 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4682 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4683 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4684 appropriate function to initialize the size_type_node. Adjust for
4685 TYPE_RM_SIZE change.
4687 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4689 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4690 for imported subprograms.
4692 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4694 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4695 constant objects covered by 13.3(19) volatile.
4697 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4699 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4700 of dummy fat pointer types to the debug back-end.
4702 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4704 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4705 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4706 before wrapping it up in the record type. Do not overwrite the
4707 Ada size of the record type with the Esize.
4709 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4711 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4712 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4713 if the conversion is on the LHS of an assignment and a no-op.
4714 <all> Do not convert the result to the result type if the Parent
4715 node is such a conversion.
4717 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4719 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4720 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4721 of types with unknown discriminants.
4722 (substitute_in_type): Rewrite and restrict to formal substitutions.
4723 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4724 (update_pointer_to): Update comment.
4726 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4728 * sem_ch8.adb (Use_One_Package): In an instance, if two
4729 potentially_use_visible and non-overloadable homonyms are available
4730 from the actuals of distinct formal packages, retain the current one,
4731 which was visible in the generic, to prevent spurious visibility
4733 (End_Use_Package): Restore use_visibility when needed.
4735 2009-04-20 Sergey Rybin <rybin@adacore.com>
4737 * gnat_ugn.texi, vms_data.ads: Update doc.
4739 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4741 * gcc-interface/Make-lang.in: Update dependencies
4743 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4746 2009-04-20 Robert Dewar <dewar@adacore.com>
4748 * checks.ads: Fix documentation of range check handling
4750 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4752 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
4753 a redundant use_type clause.
4755 2009-04-20 Robert Dewar <dewar@adacore.com>
4757 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
4758 this attribute can be evaluated at compile time.
4759 (Eval_Attribute, case Range_Length): Same improvement
4761 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
4763 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4765 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
4766 for better handling of null procedures.
4767 (Check_Overriding_Indicator): Do not emit a warning on a missing
4768 overriding indicator on an operator when the type of which the operator
4769 is a primitive is private.
4771 2009-04-20 Bob Duff <duff@adacore.com>
4773 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
4776 2009-04-20 Robert Dewar <dewar@adacore.com>
4778 * sem_attr.adb: Minor reformatting
4780 * gnatcmd.adb: Minor reformatting
4782 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4784 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
4785 overloaded and one interpretation matches the context, label the
4786 operand with the type of first formal.
4788 2009-04-20 Bob Duff <duff@adacore.com>
4790 * debug.ads: Minor comment fix.
4792 * debug.adb: Minor comment fixes.
4794 2009-04-20 Javier Miranda <miranda@adacore.com>
4796 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
4798 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
4800 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
4801 is expanded into a call to Raise_Exception, avoid passing the
4802 exception-name'identity in runtimes in which this argument
4805 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
4807 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
4808 generated bindings for cil.
4810 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4812 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
4813 discriminants, collect components from the Underlying_Record_View,
4814 which will be used in the expansion of the aggregate into assignments.
4816 * sem_ch3.adb: Do not label derived type with unknown discriminants as
4817 having a private declaration.
4819 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4821 * exp_util.adb (Expand_Subtype_From_Expr): use the
4822 underlying_record_view when available, to create the proper constrained
4823 subtype for an object of a derived type with unknown discriminants.
4825 2009-04-20 Javier Miranda <miranda@adacore.com>
4827 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
4828 formals that have pragma unreferenced.
4830 2009-04-20 Pascal Obry <obry@adacore.com>
4832 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
4833 Remove all calls to To_Lower_If_Case_Insensitive to preserve
4834 the pathname original casing.
4836 2009-04-20 Robert Dewar <dewar@adacore.com>
4838 * g-trasym.adb: Minor reformatting
4840 * s-os_lib.adb: Minor reformatting
4842 * sem.adb: Minor reformatting
4843 Minor code reorganization
4845 * sem_ch3.adb: Minor reformatting
4847 * sem_ch4.adb: Minor reformatting
4849 * sem_ch8.adb: Minor reformatting
4851 * sem_type.adb: Minor reformatting
4853 2009-04-20 Javier Miranda <miranda@adacore.com>
4855 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
4856 generated by derivations of tagged types use the aliased subprogram a
4857 reference to locate their controlling type.
4859 2009-04-20 Tristan Gingold <gingold@adacore.com>
4861 * g-trasym.adb: Set size of result buffer before calling
4864 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4866 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
4867 to a function returning an array can be interpreted as a call with
4868 defaulted parameters whose result is indexed, take into account the
4869 types of all the indices of the array result type.
4871 2009-04-20 Pascal Obry <obry@adacore.com>
4873 * a-direct.adb, s-os_lib.adb: Minor reformatting.
4875 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4877 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
4878 null exclusion qualifiers for object renaming declarations.
4880 2009-04-20 Nicolas Roche <roche@adacore.com>
4882 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
4883 unsigned long long. So compare local_time and utc_time before computing
4886 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4888 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4889 of the Underlying_Record_View before that of the derived type.
4891 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
4892 with unknown discriminants with regard to the parent subtype.
4894 2009-04-20 Bob Duff <duff@adacore.com>
4896 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
4897 that are not included. This is necessary if the main unit is a generic
4900 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
4901 because it doesn't work if -gnatn is used.
4903 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4905 * rtsfind.adb (RTE, RTE_Record_Component): In
4906 Configurable_Run_Time_Mode, do not enable front-end inlining.
4908 2009-04-20 Thomas Quinot <quinot@adacore.com>
4910 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
4911 System.Address_To_Access_Conversions.
4913 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4915 * sem.adb: Guard against ill-formed subunits.
4917 2009-04-20 Bob Duff <duff@adacore.com>
4919 * output.adb (Flush_Buffer): Do not indent blank lines.
4920 (Ignore_Output): New procedure for output suppression.
4922 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4924 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
4925 when it is positive. This avoids a potential constraint error raised
4926 by the conversion to Natural.
4928 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4930 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
4931 involves a target that has a specified address, don't set Forward_OK
4932 and Backward_OK to False if the rhs is an aggregate, since overlap
4935 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4937 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
4938 in an object renaming declaration when the expected type is an
4939 anonymous access type.
4941 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
4942 ambiguity when one interpretation is an anonymous access type and the
4943 other is a named access type, and the context itself is anonymous
4945 2009-04-20 Thomas Quinot <quinot@adacore.com>
4947 * einfo.ads: Minor comment rewording
4949 * sem_aggr.adb: Minor comment rewording
4951 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
4953 2009-04-20 Pascal Obry <obry@adacore.com>
4955 * adaint.c (__gnat_is_readable_file): Check for file existence
4956 when not using ACL (always the case on remote drives).
4958 2009-04-20 Robert Dewar <dewar@adacore.com>
4960 * sinfo.ads: Minor comment fixes
4962 * exp_disp.adb: Minor reformatting
4964 * gnat1drv.adb: Minor reformatting
4966 * output.adb: Minor reformatting
4968 * s-vxwext-kernel.ads: Minor reformatting
4970 * sem.ads: Minor reformatting
4972 * sem.adb: Minor reformatting
4974 * sem_elim.adb: Minor reformatting
4976 * uname.ads: Minor reformatting
4978 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4980 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
4981 a small dope of 4 words to the adjustment to the stack pointer.
4983 2009-04-20 Thomas Quinot <quinot@adacore.com>
4985 * xoscons.adb: generate C header s-oscons.h in
4986 addition to s-oscons.ads.
4988 * socket.c: On VMS, use s-oscons.h.
4990 * sem_ch3.adb: Minor reformatting
4992 * exp_ch9.adb: Minor reformatting
4994 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4996 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
4997 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
4998 (call_to_gnu): Likewise.
5000 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5002 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5003 unit as the first global name at the very beginning.
5005 2009-04-20 Thomas Quinot <quinot@adacore.com>
5007 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5008 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5009 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5010 since HP-UX supports neither inet_aton nor inet_pton (altough the
5011 latter is part of the Single UNIX Specification!).
5012 So reorganize code, and share C implementation based on inet_addr(3)
5013 with VMS (instead of having a VMS specific Ada implementation in
5016 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5018 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5019 to return the object file name saved by Set_Object_Output_File_Name.
5021 2009-04-20 Emmanuel Briot <briot@adacore.com>
5023 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5024 for the standard command line, when argc has been modified since the
5025 start of the application.
5027 2009-04-20 Thomas Quinot <quinot@adacore.com>
5029 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5030 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5032 2009-04-20 Bob Duff <duff@adacore.com>
5034 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5037 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5039 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5040 subprogram as Eliminated when source operation is.
5041 (Expand_N_Protected_Type_Declaration): Generate protected and
5042 unprotected specs for the internal operations, even if the source
5043 operation is eliminated.
5045 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5047 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5048 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5049 of the primitive subprograms associated with dispatching select
5050 statements when the runtime is in configurable mode.
5052 2009-04-20 Ed Falis <falis@adacore.com>
5054 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5056 2009-04-20 Thomas Quinot <quinot@adacore.com>
5058 * s-oscons-tmplt.c: Add support for generating a dummy version of
5059 s-oscons.ads providing all possible constants.
5061 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5063 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5064 ANSI version (not the UNICODE version) of WSAStringToAddress.
5066 2009-04-20 Pascal Obry <obry@adacore.com>
5068 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5069 allocated for the security descriptor and make sure all
5070 handles are closed before leaving this procedure.
5072 2009-04-20 Javier Miranda <miranda@adacore.com>
5074 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5075 (Set_Is_Underlying_Record_View): New subprogram
5077 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5078 private types with unknown discriminants use the underlying record view
5081 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5082 underlying record view in the full view of private types whose parent
5083 has unknown discriminants.
5084 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5085 associated with an underlying record view.
5086 (Derived_Type_Declaration): Avoid deriving parent primitives in
5087 underlying record views.
5089 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5090 records with unknown discriminants.
5092 * sem_type.adb (Covers): Handle underlying record views.
5093 (Is_Ancestor): Add support for underlying record views.
5095 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5096 dispatching call if the type of the target object is tagged and has
5097 unknown discriminants.
5099 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5100 unknown discriminants.
5102 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5103 tables for internally built underlying record views.
5105 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5106 empty list of component associations.
5108 2009-04-20 Thomas Quinot <quinot@adacore.com>
5110 * sem_ch10.adb: Minor reformatting
5112 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5113 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5114 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5115 standard inet_pton API (and emulate it on platforms that do not
5117 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5118 DECC$INET_ADDR, imported in Ada.
5119 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5120 implementation provided by GNAT runtime.
5121 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5124 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5126 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5128 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5130 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5131 with_clause if it is the main unit.
5133 2009-04-20 Thomas Quinot <quinot@adacore.com>
5135 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5136 (no behaviour change): Use Append instead of Increment_Last followed
5139 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5141 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5142 declarations of all primitives associated with dispatching asynchronous,
5143 conditional and timed selects when dispaching calls are forbidden and
5144 select statements are not allowed (such as in Ravenscar).
5145 (Predefined_Primitive_Bodies): Ditto for bodies.
5147 * exp_disp.ad (Make_DT): Do not create and populate the
5148 Select_Specific_Data of the dispatch table when dispatching calls are
5149 forbidden and select statements are not allowed (such as in Ravenscar).
5151 2009-04-20 Robert Dewar <dewar@adacore.com>
5153 * a-tifiio.adb: Minor reformatting
5155 2009-04-20 Thomas Quinot <quinot@adacore.com>
5157 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5158 other C library functions, report *failure* with a zero status, and
5159 success with a non-zero status.
5161 2009-04-20 Bob Duff <duff@adacore.com>
5163 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5164 (Semantics): After analyzing each unit, Append it to the
5165 Comp_Unit_List, if appropriate.
5167 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5169 (Gnat1drv): Correct comment regarding Back_End_Mode.
5171 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5173 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5175 2009-04-20 Thomas Quinot <quinot@adacore.com>
5177 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5178 output.adb, output.ads, s-taprop-hpux-dce.adb,
5179 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5182 2009-04-20 Thomas Quinot <quinot@adacore.com>
5184 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5185 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5186 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5187 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5188 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5189 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5191 * debug.adb: Fix typo
5193 * gnat_rm.texi: Minor doc fix.
5195 * sem_ch7.adb, freeze.adb: Minor reformatting
5197 2009-04-20 Thomas Quinot <quinot@adacore.com>
5199 * g-socket.ads: Add new constants:
5201 Unspecified_Group_Inet_Addr
5202 All_Hosts_Group_Inet_Addr
5203 All_Routers_Group_Inet_Addr
5205 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5206 ERANGE (Result too large).
5207 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5208 propagation of errno to caller.
5210 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5212 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5213 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5216 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5218 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5219 checking for references to eliminated subprograms that should be
5221 (Eliminate_Error_Message): Update comment to say "references" rather
5222 than "calls" (since attribute cases are handled here as well).
5224 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5225 checking for references to eliminated subprograms that should be
5226 flagged. Add with and use of Sem and Sem_Util.
5228 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5229 Add with and use of Sem_Elim.
5231 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5232 applied to eliminated subprograms.
5233 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5234 eliminated subprograms.
5235 Add with and use of Sem_Elim.
5237 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5238 to eliminated subprograms, now handled during Resolve_Call.
5239 Remove with and use of Sem_Elim.
5241 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5242 testing Is_Eliminated, for proper handling of primitive derived from
5243 eliminated subprograms.
5245 2009-04-20 Vincent Celier <celier@adacore.com>
5247 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5248 has been declared (Library_GCC or Linker'Driver), for the driver name.
5250 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5251 Linker'Driver is, use Linker'Driver as the shared library linker.
5252 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5253 Library_GCC is declared.
5254 (Check_Library_Attributes): Set up the shared linker driver: either
5255 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5258 2009-04-20 Thomas Quinot <quinot@adacore.com>
5260 * g-socket.ads (Send_Socket): Fix misleading comment.
5262 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5264 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5267 2009-04-20 Geert Bosch <bosch@adacore.com>
5269 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5270 fixed types with smalls that are neither integer or the reciprocal
5273 2009-04-20 Bob Duff <duff@adacore.com>
5275 * uname.ads: Minor comment fix.
5277 * types.ads: Minor comment fix.
5279 2009-04-20 Pascal Obry <obry@adacore.com>
5281 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5282 avoid warning. At the same time fix a memory leak.
5284 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5285 returned by the above routine.
5287 2009-04-20 Robert Dewar <dewar@adacore.com>
5289 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5290 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5291 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5292 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5294 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5296 2009-04-20 Pascal Obry <obry@adacore.com>
5298 * initialize.c (__gnat_initialize): Add braces to kill warning.
5300 * adaint.c: Minor reformatting, remove trailing spaces.
5302 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5304 * gcc-interface/Make-lang.in: Update dependencies.
5306 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5308 * adaint.h (__gnat_lwp_self): Declare on Linux.
5310 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5312 2009-04-20 Robert Dewar <dewar@adacore.com>
5314 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5315 front-end part of -fpreserve-control-flow switch.
5317 2009-04-20 Bob Duff <duff@adacore.com>
5319 * rtsfind.adb: Minor comment fix
5321 2009-04-20 Robert Dewar <dewar@adacore.com>
5323 * exp_aggr.adb: Minor reformatting
5324 Minor code reorganization (use Nkind_In)
5326 * g-socket.adb: Minor reformatting
5328 * g-socket.ads: Minor comment fix
5330 * s-auxdec.ads: Minor comment and organization update.
5332 * s-auxdec-vms_64.ads: Minor comment and organization update.
5334 * sem_ch10.adb: Minor addition of ??? comment
5336 * sem_disp.adb: Minor reformatting
5338 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5340 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5341 list a caller of an inlined subprogram, if the caller itself is not
5344 2009-04-20 Pascal Obry <obry@adacore.com>
5346 * adaint.c: Disable use of ACL on network drives.
5348 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5350 * gnat_ugn.texi: Add examples.
5352 2009-04-20 Thomas Quinot <quinot@adacore.com>
5354 * g-socket.ads (Abort_Selector): Clarify documentation.
5356 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5358 * opt.ads (Inspector_Mode): Update documentation of this flag.
5360 2009-04-20 Thomas Quinot <quinot@adacore.com>
5362 * g-socket.ads: Minor reformatting
5364 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5365 consider S_resolvLib error codes since we only use the hostLib wrappers.
5367 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5369 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5370 of the Underlying_Record_View after that of the derived type.
5372 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5374 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5377 2009-04-20 Javier Miranda <miranda@adacore.com>
5379 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5381 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5384 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5387 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5388 in internally built overriding subprograms.
5390 2009-04-20 Doug Rupp <rupp@adacore.com>
5392 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5394 * s-auxdec.ads: Likewise
5396 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5398 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5399 type by an interface.
5401 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5402 minimze difference in expanded tree when compiled as spec of the main
5403 unit, or as a spec in the context of another unit.
5405 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5407 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5408 (localtime_tzoff): This routine no longer accepts an actual of type
5410 (UTC_Time_Offset): Remove local variable Secs_TM.
5412 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5413 actual of type struct tm*. Add local variable of type struct tm for all
5414 targets that provide localtime_r and need to invoke it.
5416 2009-04-20 Thomas Quinot <quinot@adacore.com>
5418 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5419 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5420 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5422 2009-04-20 Robert Dewar <dewar@adacore.com>
5424 * sem_ch3.adb: Minor reformatting
5426 * lib-load.adb: Minor reformatting
5428 * sem_ch4.adb: Minor reformatting
5430 2009-04-20 Robert Dewar <dewar@adacore.com>
5432 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5433 (equal values => False).
5435 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5437 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5438 to null procedures can be inlined unconditionally.
5440 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5442 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5443 non-addressable parameter passed by reference, do not convert the
5444 actual if its type is already the nominal type, unless it is of
5445 self-referential size.
5447 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5449 * gnat_ugn.texi: Fix typos.
5451 2009-04-20 Robert Dewar <dewar@adacore.com>
5453 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5454 Validate_Unchecked_Warnings to suppress warnings about size or
5455 alignment or extra bits if either type involved has pragma Warnings
5456 (Off) set for the type entity.
5458 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5460 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5461 a builtin type and give it a name.
5463 2009-04-17 Diego Novillo <dnovillo@google.com>
5465 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5466 (LANG_HOOKS_EXPAND_EXPR): Remove.
5468 2009-04-17 Robert Dewar <dewar@adacore.com>
5470 * sem_ch3.adb: Minor reformatting
5472 2009-04-17 Pascal Obry <obry@adacore.com>
5474 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5476 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5478 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5479 illegal constraints on type derived from formal discrete types.
5481 2009-04-17 Thomas Quinot <quinot@adacore.com>
5485 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5486 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5487 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5488 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5489 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5490 Replace calls to send(2) with equivalent sendto(2) calls.
5491 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5492 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5493 report an error in that case. Factor code common to the two versions
5494 (datagram and stream) in common routine Stream_Write.
5496 2009-04-17 Robert Dewar <dewar@adacore.com>
5498 * exp_disp.adb: Minor reformatting
5499 Minor code reorganization (use Nkind_In)
5501 * prepcomp.adb: Minor reformatting
5503 * sem_ch3.adb: Minor reformatting
5505 * sem_res.adb: Minor comment addition
5507 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5510 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5511 setting Is_Referenced
5513 * types.ads: Minor reformatting
5515 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5517 * gnat_ugn.texi: Initial documentation on binding generator.
5519 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5521 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5522 type extensions whose parent is a type with unknown discriminants.
5524 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5525 aggregate has unknown discriminants, use the Underlying_Record_View to
5526 obtain the discriminants of the ancestor part.
5528 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5529 Underlying_Record_Views share the dispatching information of the
5530 original record extension.
5532 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5533 discriminants, propagate dispach table information to the
5534 Underlying_Record_View.
5536 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5537 discriminants and declaration is not a completion, generate
5538 Underlying_Record_View to provide proper discriminant information to
5539 the front-end and to gigi.
5541 2009-04-17 Robert Dewar <dewar@adacore.com>
5543 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5544 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5545 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5546 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5547 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5548 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5549 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5550 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5551 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5552 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5553 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5554 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5555 s-conca3.ads: Remove unneeded pragma Warnings
5557 2009-04-17 Robert Dewar <dewar@adacore.com>
5559 * g-moreex.adb: Add comments.
5561 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5563 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5566 * prepcomp.adb: Add ??? comment
5568 * a-tasatt.adb: Minor reformatting
5570 * g-trasym-vms-alpha.adb: Add ??? comment
5572 * g-trasym-vms-ia64.adb: Add ??? comment
5574 * xoscons.adb: Minor reformatting
5576 * s-tassta.adb: Minor reformatting
5578 * s-scaval.adb: Add ??? comment
5580 * stand.ads: Minor code clean up (remove junk with of Namet)
5582 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5583 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5584 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5585 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5586 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5587 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5588 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5589 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5590 Warnings off pragmas.
5592 2009-04-17 Pascal Obry <obry@adacore.com>
5594 * initialize.c: Fix test for reallocating the arguments array.
5596 2009-04-17 Geert Bosch <bosch@adacore.com>
5598 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5599 conversion truncate only for decimal fixed point types.
5601 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5603 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5606 2009-04-17 Robert Dewar <dewar@adacore.com>
5608 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5609 Backwards_OK if either operand has an address clause.
5611 2009-04-17 Pascal Obry <obry@adacore.com>
5613 * initialize.c: Code clean up, use realloc.
5615 2009-04-17 Pascal Obry <obry@adacore.com>
5617 * initialize.c: Do not get Unicode command line if Unicode support not
5619 Add support for wildcard expansion for Unicode parameters on Win32.
5621 * mingw32.h: Add missing macros when Unicode support not activated.
5623 2009-04-17 Javier Miranda <miranda@adacore.com>
5625 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5626 avoid generating code that references the Current_Master
5627 when compiling without tasks.
5629 2009-04-17 Vincent Celier <celier@adacore.com>
5631 * prj-attr.adb: New project level attribute Target
5633 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5636 * prj.ads (Project_Configuration): New component Target
5638 2009-04-17 Thomas Quinot <quinot@adacore.com>
5640 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5641 case for the case of an aggregate component, the attach call for the
5642 result is actually needed.
5644 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5645 an array aggregate must be disabled if the component type requires
5648 * exp_ch3.adb: Minor reformatting
5650 2009-04-17 Bob Duff <duff@adacore.com>
5652 * output.ads (Indent,Outdent): New procedures for indenting the output.
5653 (Write_Char): Correct comment -- LF _is_ allowed.
5655 * output.adb (Indent,Outdent): New procedures for indenting the output.
5656 Keep track of the indentation level, and make sure it doesn't get too
5658 (Flush_Buffer): Insert spaces at the beginning of each line, if
5659 indentation level is nonzero.
5660 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5662 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5663 "Next_Col := 1;". Flush_Buffer does that.
5665 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5666 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5667 relevant analysis routines, and calls Indent/Outdent to make the
5668 indentation reflect the nesting level. Add "helper" routines, since
5669 otherwise lots of "return;" statements would skip the debugging output.
5671 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5673 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5674 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5675 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5677 2009-04-17 Thomas Quinot <quinot@adacore.com>
5679 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5681 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5683 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5684 clause in a unit that is a package body or a subunit, when the previous
5685 clause appears in a spec or a parent.
5687 2009-04-17 Thomas Quinot <quinot@adacore.com>
5689 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5691 * exp_ch7.adb: Minor reformatting
5693 2009-04-17 Bob Duff <duff@adacore.com>
5695 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5696 allocator, check that the expression of the qualified expression obeys
5697 the constraints of the subtype of the qualified expression.
5699 2009-04-17 Thomas Quinot <quinot@adacore.com>
5701 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5703 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5705 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5706 aggregate, using context imposed by subtype mark in allocator.
5708 2009-04-17 Pascal Obry <obry@adacore.com>
5710 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5712 2009-04-17 Nicolas Roche <roche@adacore.com>
5714 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5717 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5719 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5720 cover both calls and attribute references ("call" => "reference").
5722 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5724 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5725 type for which Storage_Size is set to 0 is legal in a pure unit.
5727 2009-04-17 Thomas Quinot <quinot@adacore.com>
5729 * exp_ch7.adb: Minor reformatting
5731 2009-04-17 Robert Dewar <dewar@adacore.com>
5733 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5734 restriction if outside main extended source unit.
5736 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5737 for parents of child units as well as the child unit itself.
5739 2009-04-17 Bob Duff <duff@adacore.com>
5741 * checks.ads: Minor comment fix
5743 * exp_aggr.ads: Minor comment fix
5745 2009-04-17 Nicolas Roche <roche@adacore.com>
5747 * adaint.c: Improve cross compiler detection and handling.
5749 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5751 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5753 2009-04-17 Pascal Obry <obry@adacore.com>
5755 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
5758 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
5759 value when no encoding form paramter is set on Text_IO services.
5761 * adaint.c: CurrentCodePage new variable on Windows.
5762 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5765 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5768 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
5769 environment variable value. Default is UTF-8.
5771 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
5772 fopen and freopen encoding parameter is now set to Unspecified.
5773 The default value is in this case UTF-8 (as it was before) but
5774 use the new macros that convert to/from the code page set
5775 at runtime (CurrentCodePage).
5777 * s-fileio.adb: When no encoding specified use Unspecified value.
5779 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5781 * atree.adb, atree.ads: Remove dead code.
5783 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5785 * gcc-interface/Make-lang.in: Update dependencies.
5787 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5789 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
5790 illegal uses of incomplete types in formal parts and return types.
5792 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
5793 access to subprograms.
5795 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
5796 Taft-amendment types as the return type of an access_to_function type.
5798 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5799 type for access_to_subprograms. The check is performed on package exit.
5801 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5803 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
5805 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
5807 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
5809 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
5810 semantic units, because the handling of itypes in the copied tree
5811 requires semantic information that does not belong in atree.
5813 2009-04-17 Robert Dewar <dewar@adacore.com>
5815 * par-ch6.adb: Minor reformatting
5817 * prj.adb: Minor reformatting
5819 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5821 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
5822 on protected subprogram bodies, so exclude the case where Pf_Flags is
5823 Pf_Decl_Pbod from the error check.
5825 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
5826 indicators on subprograms in protected bodies, and proceed with parsing
5829 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
5830 subprograms from the check for primitiveness on subprograms with
5831 overriding indicators.
5832 (Check_Overriding_Indicator): Include protected subprograms in the
5833 style check for missing overriding indicators.
5835 2009-04-17 Tristan Gingold <gingold@adacore.com>
5837 * init.c: Fix stack checking for x86 Darwin.
5839 2009-04-17 Vincent Celier <celier@adacore.com>
5841 * prj-attr.adb: New project level attribute Object_File_Suffix
5844 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
5846 (Process_Compiler): Process attribute Object_File_Suffix
5848 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
5849 platform suffix, when specified.
5851 * prj.ads (Language_Config): New component Object_File_Suffix,
5852 defaulted to No_Name.
5853 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
5855 * snames.ads-tmpl: New standard name Object_File_Suffix
5857 2009-04-17 Robert Dewar <dewar@adacore.com>
5859 * gnat_rm.texi: Add documentation about No_Streams restriction
5861 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
5862 attributes when checking No_Streams restriction.
5864 2009-04-17 Thomas Quinot <quinot@adacore.com>
5866 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
5868 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
5869 missing calls to RE_Request_Destroy to deallocate request objects after
5872 2009-04-17 Nicolas Setton <setton@adacore.com>
5874 * link.c: Fix support for passing a response file under Darwin.
5876 2009-04-17 Emmanuel Briot <briot@adacore.com>
5878 * prj.adb (Free): new subprogram.
5880 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5882 * sem_ch3.adb: additional initialization on incomplete subtypes.
5884 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
5885 part and one of the formals is an incomplete tagged type, attach to
5886 list of private dependends of the type for later validation.
5888 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
5889 primitive operations of a Taft-amendmment type.
5891 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5892 type. The check is performed on package exit, possibly after the
5893 subprogram is frozen.
5895 2009-04-17 Vincent Celier <celier@adacore.com>
5897 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
5898 before looking for source directories, but make sure that there are nil
5899 if they are not explicitely declared and there is explicitely no
5900 sources in the project.
5902 2009-04-17 Pascal Obry <obry@adacore.com>
5904 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
5906 * init.c: Fix minor typo and style fix.
5908 2009-04-17 Robert Dewar <dewar@adacore.com>
5910 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
5912 * sem_attr.adb (Analyze_Attribute, case Address): Use
5913 PE_Address_Of_Intrinsic.
5915 * types.ads: Add PE_Address_Of_Intrinsic
5917 * types.h: Add PE_Address_Of_Intrinsic
5919 2009-04-17 Nicolas Setton <setton@adacore.com>
5921 * gcc-interface/Makefile.in: Under darwin, build shared libraries
5922 with install_name starting with "@rpath/".
5924 2009-04-17 Nicolas Setton <setton@adacore.com>
5926 * link.c: Add darwin section
5928 2009-04-16 Robert Dewar <dewar@adacore.com>
5930 * g-pehage.adb: Minor reformatting
5932 * sem_ch12.adb: Minor reformatting
5934 * exp_dist.adb: Minor reformatting
5936 * bindgen.adb: Minor style fixes.
5938 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5940 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
5941 indexed components to the case where the prefix is a static string
5944 2009-04-16 Javier Miranda <miranda@adacore.com>
5946 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
5947 objects avoid any further expansion of the expression initializing the
5950 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5952 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
5953 that hides an outer homograph, make that homograph invisible when
5954 analyzing the actuals, to to prevent illegal direct visibility on it.
5956 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5958 * g-pehage.adb (Initialize): Fix off-by-one error.
5960 2009-04-16 Tristan Gingold <gingold@adacore.com>
5962 * init.c: Detect real stack overflow on Darwin.
5964 * system-darwin-x86.ads: Use stack probing on darwin x86.
5966 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5968 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
5969 take the address of an intrinsic subprogram.
5971 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5973 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
5974 for the targets where GNAT.Traceback.Symbolic is not supported.
5976 2009-04-16 Vincent Celier <celier@adacore.com>
5978 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
5980 * g-trasym.ads: Update comments.
5982 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5984 * tracebak.c (STOP_FRAME): Verify validity of the current address
5985 before dereferencing.
5987 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5989 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
5990 the original location of the index expressions and the index subtypes,
5991 to prevent spurious out-of-scope references in gigi.
5993 2009-04-16 Tristan Gingold <gingold@adacore.com>
5995 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
5996 Add support for stack checking on darwin.
5998 2009-04-16 Vincent Celier <celier@adacore.com>
6000 * prj-attr.adb: New attribute Runtime_Source_Dir
6002 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6003 attribute Runtime_Source_Dir.
6004 (Check_Naming_Schemes): Give default values to out parameters to avoid
6007 * prj.ads (Language_Config): New component Runtime_Source_Dir
6009 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6011 2009-04-16 Pascal Obry <obry@adacore.com>
6013 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6014 Simple wrapper routines used to convert to proper encoding on
6017 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6019 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6022 2009-04-16 Pascal Obry <obry@adacore.com>
6024 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6026 2009-04-16 Thomas Quinot <quinot@adacore.com>
6028 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6029 integrated preprocessor.
6031 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6032 (Initialize): Split into two subprograms, Initialize (to be called
6033 prior to compiler command line processing) and Setup_Hooks (to be called
6034 later on when the first source file is loaded).
6036 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6037 Add call to Prep.Initialize.
6039 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6040 to Prep.Setup_Hooks.
6042 2009-04-16 Pascal Obry <obry@adacore.com>
6044 * adaint.h, adaint.c (__gnat_chdir): New routine.
6045 Simple wrapper routines used to convert to proper encoding on
6048 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6050 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6052 2009-04-16 Quentin Ochem <ochem@adacore.com>
6054 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6057 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6059 * a-convec.ads (Is_Empty): Mark inline.
6061 2009-04-16 Nicolas Roche <roche@adacore.com>
6063 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6065 2009-04-16 Thomas Quinot <quinot@adacore.com>
6067 * prepcomp.adb: Minor reformatting
6069 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6071 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6072 Access_Subprogram types can also be imported.
6073 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6076 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6078 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6079 preserve homonym chain when the declaration is rewritten into a
6080 renaming declaration, in order to preserve visibility structure.
6082 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6084 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6085 taken into account for VM targets.
6087 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6089 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6091 (Year_Week_In_Year): New routine which contains the original code from
6092 Week_In_Year. Add the missing special case for January 1st falling on
6095 2009-04-16 Thomas Quinot <quinot@adacore.com>
6097 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6098 actual type, use the base type to build the To_Any function.
6099 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6101 2009-04-16 Thomas Quinot <quinot@adacore.com>
6103 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6104 restrict.adb: Minor code reorganization (use
6105 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6107 2009-04-16 Bob Duff <duff@adacore.com>
6109 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6112 2009-04-16 Thomas Quinot <quinot@adacore.com>
6114 * sem_ch4.adb: Minor reformatting
6116 * adaint.c: Remove junk duplicated code.
6118 * sem_ch3.adb: Minor reformatting
6120 * exp_dist.adb: Minor comment rewording
6122 2009-04-16 Robert Dewar <dewar@adacore.com>
6124 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6127 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6129 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6130 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6132 2009-04-16 Robert Dewar <dewar@adacore.com>
6134 * Make-lang.in: Add entries for s-conca?.o
6136 * Makefile.rtl: Add entries for s-conca?
6138 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6139 of concatenation expansion
6141 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6142 string cases instead of expanding assignments inline.
6144 * opt.ads (Optimize_Size): New flag
6146 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6147 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6148 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6149 s-conca9.adb, s-conca9.ads: New file.
6151 2009-04-16 Robert Dewar <dewar@adacore.com>
6153 * exp_ch6.adb: Add comments
6155 * rtsfind.ads: Add entries for s-conca? routines
6157 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6159 * gcc-interface/Make-lang.in: Update dependencies.
6161 * gcc-interface/Makefile.in: Update translation for vms.
6163 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6165 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6166 and made global, to be used when installing parents of a child
6167 instance, to provide mappings for entities declared in formal packages
6168 of ancestor units. Now called from Install_Formal_Packages.
6170 2009-04-16 Doug Rupp <rupp@adacore.com>
6172 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6173 notation for clarity.
6175 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6176 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6177 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6178 (Initialize): Initialize Known_Tasks with Environment task.
6180 * s-taskin.ads (Task_States): Move new states to end for the sake of
6183 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6185 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6187 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6188 operation has an inline pragma, propagate the flag to the internal
6189 unprotected subprogram.
6191 2009-04-16 Doug Rupp <rupp@adacore.com>
6193 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6194 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6195 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6196 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6198 * s-taprop-vms.adb (Enter_Task): Likewise.
6199 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6201 * s-tassta.adb (Activate_Tasks): After task creation set state to
6202 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6203 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6204 Set state to Runnable after above.
6205 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6206 Debug_Event_Terminated.
6208 * s-taskin.ads (Task_States): Add new states Activiting and
6209 Activator_Delay_Sleep.
6210 (Bit_Array, Debug_Event_Array): New types.
6211 (Global_Task_Debug_Event_Set: New flag.
6212 (Common_ATCB): New field Debug_Events.
6214 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6216 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6219 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6220 Activating and when Acceptor_Delay_Sleep.
6222 * s-tasdeb.ads: Add constants for Debug_Events.
6223 (Debug_Event_Kind_Type): New subtype.
6224 (Signal_Debug_Event): New subprogram.
6226 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6228 2009-04-16 Thomas Quinot <quinot@adacore.com>
6230 * sem_elim.adb: Minor reformatting
6232 * freeze.adb: Minor reformatting
6234 * exp_ch4.adb: Minor reformatting
6236 2009-04-16 Emmanuel Briot <briot@adacore.com>
6238 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6240 2009-04-16 Robert Dewar <dewar@adacore.com>
6242 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6244 2009-04-16 Vincent Celier <celier@adacore.com>
6246 * fmap.adb (Initialize): Show the current line when the mapping file
6247 is detected as "incorrectly formatted".
6249 2009-04-16 Robert Dewar <dewar@adacore.com>
6251 * sem_ch12.adb: Minor reformatting
6253 * sem_ch5.adb: Minor comment addition
6255 * sem_util.adb: Minor reformatting
6257 * sinput-p.adb: Minor reformatting
6258 Add missing pragma Warnings (On)
6260 2009-04-16 Ed Falis <falis@adacore.com>
6262 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6264 2009-04-16 Vincent Celier <celier@adacore.com>
6266 * ali-util.adb: Minor comment spelling error fix
6268 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6270 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6271 generate an assignment loop in case of overlap.
6273 2009-04-16 Olivier Hainque <hainque@adacore.com>
6275 * gnat_ugn.texi (gnatmem description): Make it explicit that
6276 gnatmem is designed to work in association with static runtime
6279 2009-04-16 Thomas Quinot <quinot@adacore.com>
6281 * sem_type.adb: Minor reformatting
6283 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6285 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6286 concerning return codes of gettimeofday and return value check.
6288 2009-04-16 Ed Falis <falis@adacore.com>
6290 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6291 body can be renaming of imported routines.
6293 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6295 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6298 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6300 * exp_ch9.adb: Comment improvements.
6301 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6304 2009-04-15 Bob Duff <duff@adacore.com>
6306 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6307 "while X /= null loop" where X is unchanged inside the loop. We were
6308 not warning in this case, because of the pointers -- we feared that the
6309 loop variable could be updated via a pointer, if there are any pointers
6310 around the place. But that is impossible in this case.
6312 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6313 the case of dereferences. In X.all, X cannot be an l-value. We now
6314 catch that case (and implicit dereferences, too).
6316 2009-04-15 Vincent Celier <celier@adacore.com>
6318 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6320 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6322 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6324 (Analyze_Package_Instantiation): If generic unit in child instance is
6325 the same as generic unit in parent instance, look for an outer homonym
6326 to locate the desired generic.
6328 2009-04-15 Bob Duff <duff@adacore.com>
6330 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6331 warnings unless the loop comes from source, because checking generated
6332 loops is a waste of time, and makes it harder to debug
6333 Check_Infinite_Loop_Warning.
6335 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6336 tested in the while loop is a renaming, do not warn. Otherwise, we get
6337 false alarms, because it's usually renaming something that we can't
6338 deal with (an indexed component, a global variable, ...).
6340 * gnat_rm.texi: Fix typo
6342 2009-04-15 Thomas Quinot <quinot@adacore.com>
6344 * sem_ch6.adb: Minor reformatting
6346 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6348 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6349 immediate parent of the controlled function call is a component
6352 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6354 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6355 corresponding class-wide type is also in use.
6357 2009-04-15 Thomas Quinot <quinot@adacore.com>
6359 * frontend.adb: Minor comment fix
6361 2009-04-15 Robert Dewar <dewar@adacore.com>
6363 * gnatchop.adb (BOM_Length): New global variable
6364 (Write_Unit): Add new parameter Write_BOM
6365 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6368 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6370 2009-04-15 Geert Bosch <bosch@adacore.com>
6372 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6373 (Backend_Overflow_Checks): Set to True.
6375 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6377 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6378 keyword is given in a record extension.
6380 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6382 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6383 of a controlled function call in the context of a record aggregate.
6384 This does not apply to array aggregates since the call will be expanded
6387 2009-04-15 Ed Falis <falis@adacore.com>
6389 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6390 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6391 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6392 s-osinte-vxworks* and s-vxwext*.
6394 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6396 * gcc-interface/Make-lang.in: Update dependencies.
6398 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6401 2009-04-15 Robert Dewar <dewar@adacore.com>
6403 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6404 of node for location for warning messages.
6406 * gnatchop.adb: Minor reformatting
6408 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6410 * exp_ch6.adb: additional guard for renaming declarations for in
6411 parameters of an array type.
6413 2009-04-15 Robert Dewar <dewar@adacore.com>
6415 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6416 in case they were rewritten by expander (Force_Evaluation).
6418 * targparm.adb (Get_Target_Parameters): Correct check for
6419 Suppress_Exception_Locations.
6421 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6423 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6424 inlined is of an array type that is not bit-packed, use a renaming
6425 declaration to capture its value, rather than a constant declaration.
6427 2009-04-15 Robert Dewar <dewar@adacore.com>
6429 * rtsfind.adb: Minor reformatting.
6431 2009-04-15 Emmanuel Briot <briot@adacore.com>
6433 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6434 Restore, and free the saved context.
6436 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6438 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6439 for illegal private extension from a synchronized interface parent in
6440 front of check for illegal limited extension so that limited extension
6441 from a synchronized interface will be rejected.
6442 (Check_Ifaces): Check that a private extension that has a synchronized
6443 interface as a progenitor must be explicitly declared synchronized.
6444 Also check that a record extension cannot derive from a synchronized
6447 2009-04-15 Pascal Obry <obry@adacore.com>
6449 * adaint.h (__gnat_unlink): Add spec.
6450 (__gnat_rename): Likewise.
6452 2009-04-15 Vincent Celier <celier@adacore.com>
6454 * prj-nmsc.adb: Minor spelling error corrections in error messages
6456 2009-04-15 Robert Dewar <dewar@adacore.com>
6458 * sinfo.ads: Minor comment update
6460 * opt.ads: Minor comment updates
6462 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6465 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6467 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6468 that generates the code needed to update a dispatch table when a
6469 primitive operation is declared with a subprogram body without previous
6470 spec. Insertion of the generated code is responsibility of the caller.
6471 (Make_DT): When building static tables, append the code created by
6472 Register_Primitive to update a secondary table after it has been
6475 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6477 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6478 on an overriding operation that implements an interface operation only
6479 if not building static dispatch tables.
6481 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6483 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6484 does not cause overflow when converted to Duration. Use the safe value
6485 as the maximum allowable time delay..
6487 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6489 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6490 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6491 translated to "-j 2".
6493 2009-04-15 Bob Duff <duff@adacore.com>
6495 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6496 with_clauses, to avoid code duplication. Change this processing so we
6497 always add a with_clause on the main unit if needed.
6499 2009-04-15 Pascal Obry <obry@adacore.com>
6501 Add support for Win32 native encoding for delete/rename routines.
6503 * adaint.c (__gnat_unlink): New routine.
6504 (__gnat_rename): New routine.
6505 Simple wrapper routines used to convert to proper encoding on
6508 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6509 call to the C library.
6511 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6513 2009-04-15 Robert Dewar <dewar@adacore.com>
6515 * s-tassta.adb: Minor reformatting
6517 2009-04-15 Robert Dewar <dewar@adacore.com>
6519 * frontend.adb (Frontend): Set proper default for
6520 Warn_On_Non_Local_Exception.
6522 * opt.ads (Exception_Handler_Encountered): New flag
6523 (No_Warn_On_Non_Local_Exception): New flag
6525 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6527 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6528 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6530 2009-04-15 Cyrille Comar <comar@adacore.com>
6532 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6533 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6534 message when exception traces are active since it would generate
6535 redundant information.
6536 (Exception_Traces.Notify_Exception): put message output by a critical
6537 section to avoid unsynchronized output.
6538 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6539 section to avoid unsynchronized output.
6541 2009-04-15 Emmanuel Briot <briot@adacore.com>
6543 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6544 (Free): New subprogram.
6546 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6548 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6549 (Formatting_Operations.Time_Of): Change the way four year chunks of
6550 nanoseconds are added to the intermediate result.
6552 2009-04-15 Nicolas Setton <setton@adacore.com>
6554 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6555 does not need to wait for a carriage return.
6557 2009-04-15 Tristan Gingold <gingold@adacore.com>
6559 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6562 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6564 * freeze.adb (Freeze_Entity): improve error message for improper use of
6566 Diagnose additional illegal uses of incomplete types in formal parts.
6567 appearing in formal parts.
6569 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6571 2009-04-15 Robert Dewar <dewar@adacore.com>
6573 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6575 2009-04-15 Nicolas Roche <roche@adacore.com>
6577 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6580 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6582 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6584 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6586 * sem_ch4.adb: improve error message on exponentiation.
6588 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6590 * a-calend.adb: Move constant Epoch_Offset from package
6591 Conversion_Operations to top level.
6592 (Delay_Operations.To_Duration): Define a constant which represents
6593 "end of time" and use it as a guard against very distant delay dates.
6594 Protect the code against overflow when performing the origin shift to
6597 2009-04-15 Robert Dewar <dewar@adacore.com>
6599 * sem_prag.adb: Minor reformatting.
6601 * sem_type.adb: Minor reformatting
6603 2009-04-15 Javier Miranda <miranda@adacore.com>
6605 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6606 support to check eliminated subprograms.
6608 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6610 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6611 dispatching subprograms.
6613 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6614 operations. Initialize with "null" the slots of eliminated dispaching
6616 (Write_DT): Add output for eliminated primitives.
6618 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6620 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6622 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6623 the second is redundant, regardless of scopes.
6625 2009-04-15 Vincent Celier <celier@adacore.com>
6627 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6628 the object directory as when there are no sources, they may not be any
6631 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6632 directory, when there are no exec directory.
6634 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6636 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6637 ambiguities, refine removal of universal interpretations from complex
6638 expressions with literal arguments, when some numeric operators have
6639 been declared abstract.
6641 2009-04-15 Ed Falis <falis@adacore.com>
6643 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6644 and backward compatibility for targets using probing for stack overflow
6646 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6648 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6649 after any declaration, including renaming declarations.
6651 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6653 * gcc-interface/Make-lang.in: Update dependencies.
6655 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6656 Update xenomai target pairs.
6658 2009-04-15 Javier Miranda <miranda@adacore.com>
6660 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6662 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6663 functions returning anonymous access to class-wide limited types. Mark
6664 also the containing scope as a task master.
6666 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6667 limited-withed packages. Required to restore their visibility after
6668 processing packages associated with implicit with-clauses.
6670 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6671 associated with return statements because this work is now done by
6672 Check_Anonymous_Return.
6673 (Build_Master): Code cleanup.
6675 2009-04-15 Thomas Quinot <quinot@adacore.com>
6677 * sem_warn.ads: Minor reformatting
6679 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6681 * sem_ch3.adb: better error message for illegal interfaces
6683 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6684 formal is an incomplete type from a limited_with clause.
6686 2009-04-15 Vincent Celier <celier@adacore.com>
6688 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6689 Externally_Built indicating if the project is externally built. If it
6690 is, and --subdirs is specified, but the subdir does not exist, look
6691 for the specified directory, without the subdir.
6693 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6695 * a-tasatt.adb: Fix typo, plus minor reformatting
6697 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6699 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6701 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6703 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6704 private extension whose parent is a synchronized interface carries an
6705 explicit synchronized keyword.
6707 2009-04-15 Thomas Quinot <quinot@adacore.com>
6709 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6710 instantiate generic shared object package with the corresponding
6713 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6715 * system-linux-sparc.ads: Remove obsolete entries.
6717 2009-04-15 Thomas Quinot <quinot@adacore.com>
6719 * s-tasuti.ads: Add ??? comment
6721 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6723 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6724 type even if the designated type comes from a limited_with clause, to
6725 ensure that the symbol for the finalization list of the access type is
6728 2009-04-10 Robert Dewar <dewar@adacore.com>
6730 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6731 for warning suppression.
6733 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6735 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6736 identical, there is no redudancy to check.
6738 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6740 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6741 calls initializing SS_Allocator (which is initialized in following
6743 (Expand_Simple_Function_Return): Add comment about False value for
6744 Comes_From_Source on secondary-stack allocator.
6746 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
6747 (Build_Entry_Name): Add comment.
6749 2009-04-10 Robert Dewar <dewar@adacore.com>
6751 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
6753 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
6754 bound tested, since this is now done more generally in Sem_Res.
6756 * sem_res.adb (Resolve_Comparison_Op): Add call to
6757 Check_Lower_Bound_Tested.
6758 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
6760 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
6761 (Low_Bound_Tested): New name for Low_Bound_Known flag
6763 * exp_ch5.adb: Minor reformatting
6766 Add comments on copying the Comes_From_Source flag for allocators
6769 Add comments on copying the Comes_From_Source flag for allocators
6771 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
6772 Comes_From_Source flag from old allocator to new one.
6774 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6776 * sem_ch6.ads: Address missing documentation query
6778 2009-04-10 Vincent Celier <celier@adacore.com>
6781 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
6782 and Response_File_Switches.
6784 * prj-nmsc.adb (Process_Linker): Process new attributes
6785 Max_Command_Line_Length, Response_File_Format and
6786 Response_File_Switches.
6788 * prj.ads (Response_File_Format): New enumeration type
6789 (Project_Configuration): New componants Max_Command_Line_Length,
6790 Resp_File_Format and Resp_File_Options.
6792 * snames.ads-tmpl: Add new standard names for linking response files
6793 for gprbuild: GNU, None, Object_List, Option_List,
6794 Max_Command_Line_Length, Response_File_Format and
6795 Response_File_Switches.
6797 2009-04-10 Geert Bosch <bosch@adacore.com>
6799 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
6800 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
6801 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
6802 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
6803 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
6804 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6805 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
6806 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
6807 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
6808 system-vxworks-arm.ads, system-vxworks-m68k.ads,
6809 system-vxworks-mips.ads, system-vxworks-ppc.ads,
6810 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
6811 (Backend_Overflow_Checks): Set to True.
6813 2009-04-10 Thomas Quinot <quinot@adacore.com>
6815 * exp_attr.adb: Minor reformatting
6817 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6819 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
6820 analyze the expression for a postcondition, even if the compiler mode
6823 2009-04-10 Robert Dewar <dewar@adacore.com>
6825 * sem_aux.adb: Minor reformatting
6827 2009-04-10 Ed Falis <falis@adacore.com>
6829 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
6831 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
6833 2009-04-10 Thomas Quinot <quinot@adacore.com>
6835 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
6836 undocumented formal.
6839 * a-direio.ads: Fix typo in comment
6841 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
6842 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
6843 Use uniform phrasing for comment at start of subprogram body.
6845 * xsnamest.adb: Add note to explain why we use specific names for the
6846 newly generated files instead of generating snames.{ads,adb,h} directly
6848 2009-04-10 Sergey Rybin <rybin@adacore.com>
6851 Add qualifier for new gnatstub option '--no-exception'
6854 Add the description of the new gnatstub option '--no-exception'
6856 2009-04-10 Robert Dewar <dewar@adacore.com>
6858 * rtsfind.adb: Minor reformatting
6860 2009-04-10 Thomas Quinot <quinot@adacore.com>
6862 * sem_disp.adb: Minor reformatting.
6863 Add comment pointing to RM clause for the case of warning against a
6864 (failed) attempt at declaring a primitive operation elsewhere than in a
6867 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6869 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
6870 an actual for a previous formal package of the current instance.
6872 2009-04-10 Bob Duff <duff@adacore.com>
6874 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
6875 them first, rather than on the extended main unit.
6877 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6879 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
6880 specification of full view carries a null exclusion indicator, create
6881 an itype for it, to check for conformance with partial view.
6883 2009-04-10 Bob Duff <duff@adacore.com>
6885 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
6887 * rtsfind.adb: Minor comment changes, and remove useless code.
6889 * sinfo.ads: Add ??? comment.
6891 2009-04-10 Vincent Celier <celier@adacore.com>
6893 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
6895 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6897 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
6898 type is a synchronized type, retrieve tag information from the
6899 corresponding record, which has the dispatch table link.
6901 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
6903 * g-comlin.adb (Group_Analysis): Take care of switches that might be
6904 decomposed afterwards, but are present as-is in the command line
6905 configuration, and thus should be kept as-is.
6907 2009-04-10 Robert Dewar <dewar@adacore.com>
6909 * gnat_rm.texi: Document that postconditions are tested on implicit
6912 * sem_aux.adb: Minor reformatting
6914 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6916 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
6919 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
6920 Null_Exclusion_In_Return_Present when an access-to-function type has a
6921 result type with an explicit not null.
6923 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
6924 given on the result type, then create a null-excluding itype for the
6927 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
6928 the case where a null exclusion is imposed on a named access type.
6929 (Analyze_Subprogram_Specification): Push and pop the scope of the
6930 function around the call to Analyze_Return_Type in the case of no
6931 formals, for consistency with handling when formals are present
6932 (Process_Formals does this). Ensures that any itype created for the
6933 return type will be associated with the proper scope.
6935 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
6936 exclusion is given on a generic function's result type, then create a
6937 null-excluding itype for the generic function.
6938 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
6939 for an actual for a formal in object according to the setting on the
6940 formal. Ensures null exclusion checks are done when the association is
6943 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
6944 N_Access_Function_Definition.
6946 * sinfo.adb: Add Get_ and Set_ operations for
6947 Null_Exclusion_In_Return_Present.
6949 2009-04-10 Bob Duff <duff@adacore.com>
6951 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
6952 call to the _Postconditions procedure in the case of implicit returns
6953 from analysis to expansion. This eliminates some duplicated code. Use
6954 the Postcondition_Proc to find the identity of this procedure during
6957 2009-04-10 Robert Dewar <dewar@adacore.com>
6959 * sem_ch6.adb: Minor code clean up.
6961 * einfo.ads, sem_attr.adb: Minor comment fixes.
6963 2009-04-10 Robert Dewar <dewar@adacore.com>
6965 * sem_ch8.adb: Minor reformatting
6967 2009-04-10 Robert Dewar <dewar@adacore.com>
6969 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
6972 * sem_ch6.adb: Minor code clean up.
6974 2009-04-10 Robert Dewar <dewar@adacore.com>
6976 * mlib-tgt-specific-xi.adb: Minor reformatting
6978 2009-04-10 Bob Duff <duff@adacore.com>
6980 * einfo.ads: Minor comment fixes
6982 2009-04-10 Vincent Celier <celier@adacore.com>
6984 * snames.ads-tmpl: Remove names that are no longer used in the
6986 Mark specifically those that are used only in gprbuild
6988 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
6990 * init.c: Adjust EH support code on Alpha/Tru64.
6992 2009-04-10 Bob Duff <duff@adacore.com>
6994 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
6995 procedure on every path that could return implicitly (not via a return
6996 statement) from a procedure.
6998 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7000 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7001 valid scope for a task declarations and therefore for a master id.
7003 2009-04-10 Robert Dewar <dewar@adacore.com>
7005 * sem_aux.adb: Minor reformatting
7007 2009-04-10 Vincent Celier <celier@adacore.com>
7009 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7011 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7012 (Set_Obsolescent_Check): New procedure to change the value of
7013 Obsolescent_Check_Flag.
7015 * scn.ads (Set_Obsolescent_Check): New procedure to control
7018 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7019 obsolescent features while preprocessing.
7021 2009-04-10 Thomas Quinot <quinot@adacore.com>
7023 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7024 generated files on all platforms.
7026 2009-04-10 Robert Dewar <dewar@adacore.com>
7028 * sem_aux.adb: Minor reformatting
7030 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7032 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7033 protected function with formals that returns an anonymous access type.
7035 2009-04-10 Thomas Quinot <quinot@adacore.com>
7037 * sem_disp.adb: Minor reformatting
7039 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7041 * seh_init.c: Do not use the 32-bit specific implementation of
7042 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7045 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7047 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7048 a '/' at the end so we better use the complete target name to determine
7049 whether it is a PowerPC 55xx target.
7051 2009-04-10 Thomas Quinot <quinot@adacore.com>
7053 * sem_eval.adb: Minor reformatting
7055 2009-04-10 Thomas Quinot <quinot@adacore.com>
7057 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7060 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7063 * xsnamest.adb: New file.
7065 * gcc-interface/Make-lang.in: New target for automated generation of
7066 snames.ads, snames.adb and snames.h
7068 2009-04-10 Tristan Gingold <gingold@adacore.com>
7070 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7071 avoid compile time warnings.
7072 Do not add gcc/config in include search list while compiling the RTS.
7073 Pragma Thread_Local_Storage is available on any target.
7075 2009-04-10 Bob Duff <duff@adacore.com>
7077 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7079 2009-04-10 Tristan Gingold <gingold@adacore.com>
7081 * init.c: Install signal handler on Darwin.
7083 2009-04-10 Robert Dewar <dewar@adacore.com>
7085 * sem_prag.adb: Minor reformatting
7087 * exp_util.adb (Make_Non_Empty_Check): New function
7088 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7089 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7091 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7093 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7095 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7097 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7098 tool prefix for AVR and PowerPC 55xx targets.
7100 2009-04-10 Robert Dewar <dewar@adacore.com>
7102 * sem_warn.adb (Within_Postcondition): New function
7103 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7105 2009-04-10 Robert Dewar <dewar@adacore.com>
7107 * sem_warn.adb: Minor reformatting
7109 * make.adb: Minor reformatting.
7111 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7113 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7114 entity and the scope is a subprogram, retrieve the Sloc of the
7115 subprogram's body rather than using the sloc of the spec, for better
7116 line-stepping behavior in gdb.
7117 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7118 controller, use the Sloc of the first declaration of the containing list
7119 rather than that of the node that triggered creation of the list
7122 2009-04-10 Vincent Celier <celier@adacore.com>
7124 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7125 to avoid gcc warning.
7127 2009-04-10 Robert Dewar <dewar@adacore.com>
7129 * g-comlin.adb: Add ??? comment
7131 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7133 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7134 unreferenced entities for a package with no visible declarations.
7136 2009-04-10 Robert Dewar <dewar@adacore.com>
7138 * exp_ch9.adb: Minor reformatting
7140 2009-04-10 Thomas Quinot <quinot@adacore.com>
7142 * sem_prag.adb: Minor reformatting
7144 2009-04-10 Vincent Celier <celier@adacore.com>
7147 (Check_Library_Attributes): For a project qualified as a library project
7148 that is not a library project, indicate in the error message which
7149 attributes are missing (Library_Dir and/or Library_Name).
7151 2009-04-10 Bob Duff <duff@adacore.com>
7153 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7154 generated nodes, because it might confuse various circuits in the FE.
7156 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7158 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7159 of pragma. It will be recopied and analyzed when used in call to
7162 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7163 initialization operations and recognize use of it in procedure calls
7166 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7167 argument, because it may have side-effects.
7169 * exp_ch2.adb: Remove obsolete comments on default functions
7171 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7173 * adaint.c (RTX section): Do for RTX the same thing as we do for
7174 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7176 2009-04-10 Robert Dewar <dewar@adacore.com>
7178 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7180 * sem_res.adb (Resolve_Call): Fix test for
7181 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7182 a non-dynamic scope).
7184 2009-04-10 Robert Dewar <dewar@adacore.com>
7186 * make.adb: Add comment.
7189 2009-04-10 Nicolas Setton <setton@adacore.com>
7191 * s-osprim-darwin.adb: New file.
7193 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7195 2009-04-10 Thomas Quinot <quinot@adacore.com>
7197 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7199 2009-04-09 Nick Clifton <nickc@redhat.com>
7201 * adadecode.h: Change copyright header to refer to version
7202 3 of the GNU General Public License with version 3.1 of the
7203 GCC Runtime Library Exception and to point readers at the
7204 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7206 * 9drpc.adb: Likewise.
7207 * a-assert.adb: Likewise.
7208 * a-astaco.adb: Likewise.
7209 * a-calari.adb: Likewise.
7210 * a-calcon.adb: Likewise.
7211 * a-calcon.ads: Likewise.
7212 * a-caldel.ads: Likewise.
7213 * a-calend-vms.adb: Likewise.
7214 * a-calend-vms.ads: Likewise.
7215 * a-calend.adb: Likewise.
7216 * a-calend.ads: Likewise.
7217 * a-calfor.adb: Likewise.
7218 * a-catizo.adb: Likewise.
7219 * a-cdlili.adb: Likewise.
7220 * a-cdlili.ads: Likewise.
7221 * a-cgaaso.adb: Likewise.
7222 * a-cgaaso.ads: Likewise.
7223 * a-cgarso.adb: Likewise.
7224 * a-cgcaso.adb: Likewise.
7225 * a-chacon.adb: Likewise.
7226 * a-chacon.ads: Likewise.
7227 * a-chahan.adb: Likewise.
7228 * a-chahan.ads: Likewise.
7229 * a-chlat9.ads: Likewise.
7230 * a-chtgke.adb: Likewise.
7231 * a-chtgke.ads: Likewise.
7232 * a-chtgop.adb: Likewise.
7233 * a-chtgop.ads: Likewise.
7234 * a-chzla1.ads: Likewise.
7235 * a-chzla9.ads: Likewise.
7236 * a-cidlli.adb: Likewise.
7237 * a-cidlli.ads: Likewise.
7238 * a-cihama.adb: Likewise.
7239 * a-cihama.ads: Likewise.
7240 * a-cihase.adb: Likewise.
7241 * a-cihase.ads: Likewise.
7242 * a-ciorma.adb: Likewise.
7243 * a-ciorma.ads: Likewise.
7244 * a-ciormu.adb: Likewise.
7245 * a-ciormu.ads: Likewise.
7246 * a-ciorse.adb: Likewise.
7247 * a-ciorse.ads: Likewise.
7248 * a-clrefi.adb: Likewise.
7249 * a-clrefi.ads: Likewise.
7250 * a-cohama.adb: Likewise.
7251 * a-cohama.ads: Likewise.
7252 * a-cohase.adb: Likewise.
7253 * a-cohase.ads: Likewise.
7254 * a-cohata.ads: Likewise.
7255 * a-coinve.adb: Likewise.
7256 * a-coinve.ads: Likewise.
7257 * a-colien.adb: Likewise.
7258 * a-colien.ads: Likewise.
7259 * a-colire.adb: Likewise.
7260 * a-colire.ads: Likewise.
7261 * a-comlin.adb: Likewise.
7262 * a-comlin.ads: Likewise.
7263 * a-convec.adb: Likewise.
7264 * a-convec.ads: Likewise.
7265 * a-coorma.adb: Likewise.
7266 * a-coorma.ads: Likewise.
7267 * a-coormu.adb: Likewise.
7268 * a-coormu.ads: Likewise.
7269 * a-coorse.adb: Likewise.
7270 * a-coorse.ads: Likewise.
7271 * a-coprnu.adb: Likewise.
7272 * a-coprnu.ads: Likewise.
7273 * a-crbltr.ads: Likewise.
7274 * a-crbtgk.adb: Likewise.
7275 * a-crbtgk.ads: Likewise.
7276 * a-crbtgo.adb: Likewise.
7277 * a-crbtgo.ads: Likewise.
7278 * a-crdlli.adb: Likewise.
7279 * a-crdlli.ads: Likewise.
7280 * a-cwila1.ads: Likewise.
7281 * a-cwila9.ads: Likewise.
7282 * a-decima.adb: Likewise.
7283 * a-decima.ads: Likewise.
7284 * a-diocst.adb: Likewise.
7285 * a-diocst.ads: Likewise.
7286 * a-direct.adb: Likewise.
7287 * a-direct.ads: Likewise.
7288 * a-direio.adb: Likewise.
7289 * a-direio.ads: Likewise.
7290 * a-dirval-mingw.adb: Likewise.
7291 * a-dirval-vms.adb: Likewise.
7292 * a-dirval.adb: Likewise.
7293 * a-dirval.ads: Likewise.
7294 * a-dynpri.adb: Likewise.
7295 * a-einuoc.adb: Likewise.
7296 * a-einuoc.ads: Likewise.
7297 * a-elchha.adb: Likewise.
7298 * a-elchha.ads: Likewise.
7299 * a-envvar.adb: Likewise.
7300 * a-excach.adb: Likewise.
7301 * a-except-2005.adb: Likewise.
7302 * a-except-2005.ads: Likewise.
7303 * a-except.adb: Likewise.
7304 * a-except.ads: Likewise.
7305 * a-excpol-abort.adb: Likewise.
7306 * a-excpol.adb: Likewise.
7307 * a-exctra.adb: Likewise.
7308 * a-exctra.ads: Likewise.
7309 * a-exetim-mingw.adb: Likewise.
7310 * a-exetim-mingw.ads: Likewise.
7311 * a-exexda.adb: Likewise.
7312 * a-exexpr-gcc.adb: Likewise.
7313 * a-exexpr.adb: Likewise.
7314 * a-exextr.adb: Likewise.
7315 * a-exstat.adb: Likewise.
7316 * a-filico.adb: Likewise.
7317 * a-filico.ads: Likewise.
7318 * a-finali.adb: Likewise.
7319 * a-finali.ads: Likewise.
7320 * a-interr.ads: Likewise.
7321 * a-intnam-aix.ads: Likewise.
7322 * a-intnam-darwin.ads: Likewise.
7323 * a-intnam-dummy.ads: Likewise.
7324 * a-intnam-freebsd.ads: Likewise.
7325 * a-intnam-hpux.ads: Likewise.
7326 * a-intnam-irix.ads: Likewise.
7327 * a-intnam-linux.ads: Likewise.
7328 * a-intnam-lynxos.ads: Likewise.
7329 * a-intnam-mingw.ads: Likewise.
7330 * a-intnam-rtems.ads: Likewise.
7331 * a-intnam-solaris.ads: Likewise.
7332 * a-intnam-tru64.ads: Likewise.
7333 * a-intnam-vms.ads: Likewise.
7334 * a-intnam-vxworks.ads: Likewise.
7335 * a-intsig.adb: Likewise.
7336 * a-intsig.ads: Likewise.
7337 * a-ngcefu.adb: Likewise.
7338 * a-ngcoar.adb: Likewise.
7339 * a-ngcoty.adb: Likewise.
7340 * a-ngcoty.ads: Likewise.
7341 * a-ngelfu.adb: Likewise.
7342 * a-ngrear.adb: Likewise.
7343 * a-ngrear.ads: Likewise.
7344 * a-nudira.adb: Likewise.
7345 * a-nudira.ads: Likewise.
7346 * a-nuflra.adb: Likewise.
7347 * a-nuflra.ads: Likewise.
7348 * a-numaux-darwin.adb: Likewise.
7349 * a-numaux-darwin.ads: Likewise.
7350 * a-numaux-libc-x86.ads: Likewise.
7351 * a-numaux-vxworks.ads: Likewise.
7352 * a-numaux-x86.adb: Likewise.
7353 * a-numaux-x86.ads: Likewise.
7354 * a-numaux.ads: Likewise.
7355 * a-rbtgso.adb: Likewise.
7356 * a-rbtgso.ads: Likewise.
7357 * a-reatim.ads: Likewise.
7358 * a-retide.adb: Likewise.
7359 * a-retide.ads: Likewise.
7360 * a-rttiev.adb: Likewise.
7361 * a-rttiev.ads: Likewise.
7362 * a-secain.adb: Likewise.
7363 * a-secain.ads: Likewise.
7364 * a-sequio.adb: Likewise.
7365 * a-sequio.ads: Likewise.
7366 * a-shcain.adb: Likewise.
7367 * a-shcain.ads: Likewise.
7368 * a-siocst.adb: Likewise.
7369 * a-siocst.ads: Likewise.
7370 * a-slcain.adb: Likewise.
7371 * a-slcain.ads: Likewise.
7372 * a-ssicst.adb: Likewise.
7373 * a-ssicst.ads: Likewise.
7374 * a-stboha.adb: Likewise.
7375 * a-stmaco.ads: Likewise.
7376 * a-storio.adb: Likewise.
7377 * a-strbou.adb: Likewise.
7378 * a-strbou.ads: Likewise.
7379 * a-stream.ads: Likewise.
7380 * a-strfix.adb: Likewise.
7381 * a-strhas.adb: Likewise.
7382 * a-strmap.adb: Likewise.
7383 * a-strmap.ads: Likewise.
7384 * a-strsea.adb: Likewise.
7385 * a-strsea.ads: Likewise.
7386 * a-strsup.adb: Likewise.
7387 * a-strsup.ads: Likewise.
7388 * a-strunb.adb: Likewise.
7389 * a-strunb.ads: Likewise.
7390 * a-ststio.adb: Likewise.
7391 * a-ststio.ads: Likewise.
7392 * a-stunau.adb: Likewise.
7393 * a-stunau.ads: Likewise.
7394 * a-stunha.adb: Likewise.
7395 * a-stwibo.adb: Likewise.
7396 * a-stwibo.ads: Likewise.
7397 * a-stwifi.adb: Likewise.
7398 * a-stwiha.adb: Likewise.
7399 * a-stwima.adb: Likewise.
7400 * a-stwima.ads: Likewise.
7401 * a-stwise.adb: Likewise.
7402 * a-stwise.ads: Likewise.
7403 * a-stwisu.adb: Likewise.
7404 * a-stwisu.ads: Likewise.
7405 * a-stwiun.adb: Likewise.
7406 * a-stwiun.ads: Likewise.
7407 * a-stzbou.adb: Likewise.
7408 * a-stzbou.ads: Likewise.
7409 * a-stzfix.adb: Likewise.
7410 * a-stzhas.adb: Likewise.
7411 * a-stzmap.adb: Likewise.
7412 * a-stzmap.ads: Likewise.
7413 * a-stzsea.adb: Likewise.
7414 * a-stzsea.ads: Likewise.
7415 * a-stzsup.adb: Likewise.
7416 * a-stzsup.ads: Likewise.
7417 * a-stzunb.adb: Likewise.
7418 * a-stzunb.ads: Likewise.
7419 * a-suteio.adb: Likewise.
7420 * a-suteio.ads: Likewise.
7421 * a-swbwha.adb: Likewise.
7422 * a-swmwco.ads: Likewise.
7423 * a-swunau.adb: Likewise.
7424 * a-swunau.ads: Likewise.
7425 * a-swuwha.adb: Likewise.
7426 * a-swuwti.adb: Likewise.
7427 * a-swuwti.ads: Likewise.
7428 * a-sytaco.adb: Likewise.
7429 * a-sytaco.ads: Likewise.
7430 * a-szbzha.adb: Likewise.
7431 * a-szmzco.ads: Likewise.
7432 * a-szunau.adb: Likewise.
7433 * a-szunau.ads: Likewise.
7434 * a-szuzha.adb: Likewise.
7435 * a-szuzti.adb: Likewise.
7436 * a-szuzti.ads: Likewise.
7437 * a-tags.adb: Likewise.
7438 * a-tags.ads: Likewise.
7439 * a-tasatt.ads: Likewise.
7440 * a-taside.adb: Likewise.
7441 * a-taside.ads: Likewise.
7442 * a-taster.adb: Likewise.
7443 * a-teioed.adb: Likewise.
7444 * a-teioed.ads: Likewise.
7445 * a-textio.adb: Likewise.
7446 * a-textio.ads: Likewise.
7447 * a-tiboio.adb: Likewise.
7448 * a-ticoau.adb: Likewise.
7449 * a-ticoau.ads: Likewise.
7450 * a-ticoio.adb: Likewise.
7451 * a-ticoio.ads: Likewise.
7452 * a-tideau.adb: Likewise.
7453 * a-tideau.ads: Likewise.
7454 * a-tideio.adb: Likewise.
7455 * a-tideio.ads: Likewise.
7456 * a-tienau.adb: Likewise.
7457 * a-tienau.ads: Likewise.
7458 * a-tienio.adb: Likewise.
7459 * a-tienio.ads: Likewise.
7460 * a-tifiio.adb: Likewise.
7461 * a-tifiio.ads: Likewise.
7462 * a-tiflau.adb: Likewise.
7463 * a-tiflau.ads: Likewise.
7464 * a-tiflio.adb: Likewise.
7465 * a-tiflio.ads: Likewise.
7466 * a-tigeau.adb: Likewise.
7467 * a-tigeau.ads: Likewise.
7468 * a-tiinau.adb: Likewise.
7469 * a-tiinau.ads: Likewise.
7470 * a-tiinio.adb: Likewise.
7471 * a-tiinio.ads: Likewise.
7472 * a-timoau.adb: Likewise.
7473 * a-timoau.ads: Likewise.
7474 * a-timoio.adb: Likewise.
7475 * a-timoio.ads: Likewise.
7476 * a-tiocst.adb: Likewise.
7477 * a-tiocst.ads: Likewise.
7478 * a-titest.adb: Likewise.
7479 * a-wichun.adb: Likewise.
7480 * a-wichun.ads: Likewise.
7481 * a-witeio.adb: Likewise.
7482 * a-witeio.ads: Likewise.
7483 * a-wtcoau.adb: Likewise.
7484 * a-wtcoau.ads: Likewise.
7485 * a-wtcoio.adb: Likewise.
7486 * a-wtcstr.adb: Likewise.
7487 * a-wtcstr.ads: Likewise.
7488 * a-wtdeau.adb: Likewise.
7489 * a-wtdeau.ads: Likewise.
7490 * a-wtdeio.adb: Likewise.
7491 * a-wtdeio.ads: Likewise.
7492 * a-wtedit.adb: Likewise.
7493 * a-wtedit.ads: Likewise.
7494 * a-wtenau.adb: Likewise.
7495 * a-wtenau.ads: Likewise.
7496 * a-wtenio.adb: Likewise.
7497 * a-wtenio.ads: Likewise.
7498 * a-wtfiio.adb: Likewise.
7499 * a-wtfiio.ads: Likewise.
7500 * a-wtflau.adb: Likewise.
7501 * a-wtflau.ads: Likewise.
7502 * a-wtflio.adb: Likewise.
7503 * a-wtflio.ads: Likewise.
7504 * a-wtgeau.adb: Likewise.
7505 * a-wtgeau.ads: Likewise.
7506 * a-wtinau.adb: Likewise.
7507 * a-wtinau.ads: Likewise.
7508 * a-wtinio.adb: Likewise.
7509 * a-wtmoau.adb: Likewise.
7510 * a-wtmoau.ads: Likewise.
7511 * a-wtmoio.adb: Likewise.
7512 * a-wtmoio.ads: Likewise.
7513 * a-wttest.adb: Likewise.
7514 * a-wwboio.adb: Likewise.
7515 * a-zchuni.adb: Likewise.
7516 * a-zchuni.ads: Likewise.
7517 * a-ztcoau.adb: Likewise.
7518 * a-ztcoau.ads: Likewise.
7519 * a-ztcoio.adb: Likewise.
7520 * a-ztcstr.adb: Likewise.
7521 * a-ztcstr.ads: Likewise.
7522 * a-ztdeau.adb: Likewise.
7523 * a-ztdeau.ads: Likewise.
7524 * a-ztdeio.adb: Likewise.
7525 * a-ztdeio.ads: Likewise.
7526 * a-ztedit.adb: Likewise.
7527 * a-ztedit.ads: Likewise.
7528 * a-ztenau.adb: Likewise.
7529 * a-ztenau.ads: Likewise.
7530 * a-ztenio.adb: Likewise.
7531 * a-ztenio.ads: Likewise.
7532 * a-ztexio.adb: Likewise.
7533 * a-ztexio.ads: Likewise.
7534 * a-ztfiio.adb: Likewise.
7535 * a-ztfiio.ads: Likewise.
7536 * a-ztflau.adb: Likewise.
7537 * a-ztflau.ads: Likewise.
7538 * a-ztflio.adb: Likewise.
7539 * a-ztflio.ads: Likewise.
7540 * a-ztgeau.adb: Likewise.
7541 * a-ztgeau.ads: Likewise.
7542 * a-ztinau.adb: Likewise.
7543 * a-ztinau.ads: Likewise.
7544 * a-ztinio.adb: Likewise.
7545 * a-ztmoau.adb: Likewise.
7546 * a-ztmoau.ads: Likewise.
7547 * a-ztmoio.adb: Likewise.
7548 * a-ztmoio.ads: Likewise.
7549 * a-zttest.adb: Likewise.
7550 * a-zzboio.adb: Likewise.
7551 * adadecode.c: Likewise.
7552 * adaint.c: Likewise.
7553 * adaint.h: Likewise.
7554 * alloc.ads: Likewise.
7556 * arit64.c: Likewise.
7557 * atree.adb: Likewise.
7558 * atree.ads: Likewise.
7559 * aux-io.c: Likewise.
7561 * casing.adb: Likewise.
7562 * casing.ads: Likewise.
7564 * csets.adb: Likewise.
7565 * csets.ads: Likewise.
7566 * cstreams.c: Likewise.
7567 * ctrl_c.c: Likewise.
7568 * debug.adb: Likewise.
7569 * debug.ads: Likewise.
7570 * dec.ads: Likewise.
7571 * einfo.adb: Likewise.
7572 * einfo.ads: Likewise.
7573 * elists.adb: Likewise.
7574 * elists.ads: Likewise.
7577 * errno.c: Likewise.
7580 * final.c: Likewise.
7581 * fname.adb: Likewise.
7582 * fname.ads: Likewise.
7583 * g-allein.ads: Likewise.
7584 * g-alleve.adb: Likewise.
7585 * g-alleve.ads: Likewise.
7586 * g-altcon.adb: Likewise.
7587 * g-altcon.ads: Likewise.
7588 * g-altive.ads: Likewise.
7589 * g-alveop.adb: Likewise.
7590 * g-alveop.ads: Likewise.
7591 * g-alvety.ads: Likewise.
7592 * g-alvevi.ads: Likewise.
7593 * g-arrspl.adb: Likewise.
7594 * g-arrspl.ads: Likewise.
7595 * g-calend.ads: Likewise.
7596 * g-comlin.adb: Likewise.
7597 * g-debpoo.adb: Likewise.
7598 * g-debpoo.ads: Likewise.
7599 * g-eacodu-vms.adb: Likewise.
7600 * g-eacodu.adb: Likewise.
7601 * g-excact.adb: Likewise.
7602 * g-excact.ads: Likewise.
7603 * g-locfil.adb: Likewise.
7604 * g-os_lib.ads: Likewise.
7605 * g-rannum.adb: Likewise.
7606 * g-rannum.ads: Likewise.
7607 * g-regist.adb: Likewise.
7608 * g-regist.ads: Likewise.
7609 * g-signal.adb: Likewise.
7610 * g-signal.ads: Likewise.
7611 * g-soccon.ads: Likewise.
7612 * g-string.adb: Likewise.
7613 * g-string.ads: Likewise.
7614 * g-strspl.ads: Likewise.
7615 * g-timsta.adb: Likewise.
7616 * g-timsta.ads: Likewise.
7617 * g-trasym-vms-alpha.adb: Likewise.
7618 * g-trasym-vms-ia64.adb: Likewise.
7619 * g-utf_32.adb: Likewise.
7620 * g-utf_32.ads: Likewise.
7621 * g-wistsp.ads: Likewise.
7622 * g-zstspl.ads: Likewise.
7624 * gnatvsn.adb: Likewise.
7625 * gnatvsn.ads: Likewise.
7626 * gsocket.h: Likewise.
7627 * hostparm.ads: Likewise.
7628 * i-c.adb: Likewise.
7629 * i-cexten.ads: Likewise.
7630 * i-cobol.adb: Likewise.
7631 * i-cobol.ads: Likewise.
7632 * i-cpoint.adb: Likewise.
7633 * i-cpoint.ads: Likewise.
7634 * i-cpp.adb: Likewise.
7635 * i-cpp.ads: Likewise.
7636 * i-cstrea-vms.adb: Likewise.
7637 * i-cstrea.adb: Likewise.
7638 * i-cstrea.ads: Likewise.
7639 * i-cstrin.adb: Likewise.
7640 * i-cstrin.ads: Likewise.
7641 * i-forbla-darwin.adb: Likewise.
7642 * i-forbla-unimplemented.ads: Likewise.
7643 * i-forbla.adb: Likewise.
7644 * i-forbla.ads: Likewise.
7645 * i-forlap.ads: Likewise.
7646 * i-fortra.adb: Likewise.
7647 * i-pacdec.adb: Likewise.
7648 * i-pacdec.ads: Likewise.
7649 * i-vxwoio.adb: Likewise.
7650 * i-vxwoio.ads: Likewise.
7651 * indepsw-aix.adb: Likewise.
7652 * indepsw-gnu.adb: Likewise.
7653 * indepsw-mingw.adb: Likewise.
7654 * indepsw.adb: Likewise.
7655 * indepsw.ads: Likewise.
7657 * initialize.c: Likewise.
7658 * interfac.ads: Likewise.
7659 * krunch.adb: Likewise.
7660 * krunch.ads: Likewise.
7661 * lib-list.adb: Likewise.
7662 * lib-sort.adb: Likewise.
7663 * lib.adb: Likewise.
7664 * lib.ads: Likewise.
7666 * math_lib.adb: Likewise.
7667 * memtrack.adb: Likewise.
7668 * mingw32.h: Likewise.
7669 * mkdir.c: Likewise.
7670 * namet-sp.adb: Likewise.
7671 * namet-sp.ads: Likewise.
7672 * namet.adb: Likewise.
7673 * namet.ads: Likewise.
7674 * nlists.adb: Likewise.
7675 * nlists.ads: Likewise.
7676 * opt.adb: Likewise.
7677 * opt.ads: Likewise.
7678 * output.adb: Likewise.
7679 * output.ads: Likewise.
7680 * raise-gcc.c: Likewise.
7681 * raise.c: Likewise.
7682 * raise.h: Likewise.
7683 * repinfo.adb: Likewise.
7684 * repinfo.ads: Likewise.
7685 * repinfo.h: Likewise.
7686 * rident.ads: Likewise.
7687 * s-addima.adb: Likewise.
7688 * s-addima.ads: Likewise.
7689 * s-addope.adb: Likewise.
7690 * s-addope.ads: Likewise.
7691 * s-arit64.adb: Likewise.
7692 * s-arit64.ads: Likewise.
7693 * s-assert.adb: Likewise.
7694 * s-assert.ads: Likewise.
7695 * s-asthan-vms-alpha.adb: Likewise.
7696 * s-asthan.adb: Likewise.
7697 * s-asthan.ads: Likewise.
7698 * s-atacco.adb: Likewise.
7699 * s-atacco.ads: Likewise.
7700 * s-auxdec-empty.adb: Likewise.
7701 * s-auxdec-empty.ads: Likewise.
7702 * s-auxdec-vms_64.ads: Likewise.
7703 * s-auxdec.adb: Likewise.
7704 * s-auxdec.ads: Likewise.
7705 * s-bitops.adb: Likewise.
7706 * s-bitops.ads: Likewise.
7707 * s-boarop.ads: Likewise.
7708 * s-carsi8.adb: Likewise.
7709 * s-carsi8.ads: Likewise.
7710 * s-carun8.adb: Likewise.
7711 * s-carun8.ads: Likewise.
7712 * s-casi16.adb: Likewise.
7713 * s-casi16.ads: Likewise.
7714 * s-casi32.adb: Likewise.
7715 * s-casi32.ads: Likewise.
7716 * s-casi64.adb: Likewise.
7717 * s-casi64.ads: Likewise.
7718 * s-casuti.ads: Likewise.
7719 * s-caun16.adb: Likewise.
7720 * s-caun16.ads: Likewise.
7721 * s-caun32.adb: Likewise.
7722 * s-caun32.ads: Likewise.
7723 * s-caun64.adb: Likewise.
7724 * s-caun64.ads: Likewise.
7725 * s-chepoo.ads: Likewise.
7726 * s-crc32.adb: Likewise.
7727 * s-crc32.ads: Likewise.
7728 * s-crtl.ads: Likewise.
7729 * s-direio.adb: Likewise.
7730 * s-direio.ads: Likewise.
7731 * s-dsaser.ads: Likewise.
7732 * s-except.adb: Likewise.
7733 * s-except.ads: Likewise.
7734 * s-exctab.adb: Likewise.
7735 * s-exctab.ads: Likewise.
7736 * s-exnint.adb: Likewise.
7737 * s-exnint.ads: Likewise.
7738 * s-exnllf.adb: Likewise.
7739 * s-exnllf.ads: Likewise.
7740 * s-exnlli.adb: Likewise.
7741 * s-exnlli.ads: Likewise.
7742 * s-expint.adb: Likewise.
7743 * s-expint.ads: Likewise.
7744 * s-explli.adb: Likewise.
7745 * s-explli.ads: Likewise.
7746 * s-expllu.adb: Likewise.
7747 * s-expllu.ads: Likewise.
7748 * s-expmod.adb: Likewise.
7749 * s-expmod.ads: Likewise.
7750 * s-expuns.adb: Likewise.
7751 * s-expuns.ads: Likewise.
7752 * s-fatflt.ads: Likewise.
7753 * s-fatgen.adb: Likewise.
7754 * s-fatgen.ads: Likewise.
7755 * s-fatlfl.ads: Likewise.
7756 * s-fatllf.ads: Likewise.
7757 * s-fatsfl.ads: Likewise.
7758 * s-ficobl.ads: Likewise.
7759 * s-fileio.adb: Likewise.
7760 * s-fileio.ads: Likewise.
7761 * s-filofl.ads: Likewise.
7762 * s-finimp.adb: Likewise.
7763 * s-finimp.ads: Likewise.
7764 * s-finroo.adb: Likewise.
7765 * s-finroo.ads: Likewise.
7766 * s-fishfl.ads: Likewise.
7767 * s-fore.adb: Likewise.
7768 * s-fore.ads: Likewise.
7769 * s-fvadfl.ads: Likewise.
7770 * s-fvaffl.ads: Likewise.
7771 * s-fvagfl.ads: Likewise.
7772 * s-gearop.adb: Likewise.
7773 * s-gearop.ads: Likewise.
7774 * s-gecobl.adb: Likewise.
7775 * s-gecobl.ads: Likewise.
7776 * s-gecola.adb: Likewise.
7777 * s-gecola.ads: Likewise.
7778 * s-gerebl.adb: Likewise.
7779 * s-gerebl.ads: Likewise.
7780 * s-gerela.adb: Likewise.
7781 * s-gerela.ads: Likewise.
7782 * s-geveop.adb: Likewise.
7783 * s-geveop.ads: Likewise.
7784 * s-gloloc.adb: Likewise.
7785 * s-gloloc.ads: Likewise.
7786 * s-hibaen.ads: Likewise.
7787 * s-imenne.adb: Likewise.
7788 * s-imenne.ads: Likewise.
7789 * s-imgbiu.adb: Likewise.
7790 * s-imgbiu.ads: Likewise.
7791 * s-imgboo.adb: Likewise.
7792 * s-imgboo.ads: Likewise.
7793 * s-imgcha.adb: Likewise.
7794 * s-imgcha.ads: Likewise.
7795 * s-imgdec.adb: Likewise.
7796 * s-imgdec.ads: Likewise.
7797 * s-imgenu.adb: Likewise.
7798 * s-imgenu.ads: Likewise.
7799 * s-imgint.adb: Likewise.
7800 * s-imgint.ads: Likewise.
7801 * s-imgllb.adb: Likewise.
7802 * s-imgllb.ads: Likewise.
7803 * s-imglld.adb: Likewise.
7804 * s-imglld.ads: Likewise.
7805 * s-imglli.adb: Likewise.
7806 * s-imglli.ads: Likewise.
7807 * s-imgllu.adb: Likewise.
7808 * s-imgllu.ads: Likewise.
7809 * s-imgllw.adb: Likewise.
7810 * s-imgllw.ads: Likewise.
7811 * s-imgrea.adb: Likewise.
7812 * s-imgrea.ads: Likewise.
7813 * s-imguns.adb: Likewise.
7814 * s-imguns.ads: Likewise.
7815 * s-imgwch.adb: Likewise.
7816 * s-imgwch.ads: Likewise.
7817 * s-imgwiu.adb: Likewise.
7818 * s-imgwiu.ads: Likewise.
7819 * s-inmaop-dummy.adb: Likewise.
7820 * s-inmaop-vms.adb: Likewise.
7821 * s-inmaop.ads: Likewise.
7822 * s-interr-hwint.adb: Likewise.
7823 * s-interr-sigaction.adb: Likewise.
7824 * s-interr-vms.adb: Likewise.
7825 * s-interr.adb: Likewise.
7826 * s-interr.ads: Likewise.
7827 * s-intman-dummy.adb: Likewise.
7828 * s-intman-mingw.adb: Likewise.
7829 * s-intman-posix.adb: Likewise.
7830 * s-intman-solaris.adb: Likewise.
7831 * s-intman-vms.adb: Likewise.
7832 * s-intman-vms.ads: Likewise.
7833 * s-intman-vxworks.adb: Likewise.
7834 * s-intman-vxworks.ads: Likewise.
7835 * s-intman.ads: Likewise.
7836 * s-io.adb: Likewise.
7837 * s-io.ads: Likewise.
7838 * s-linux-alpha.ads: Likewise.
7839 * s-linux-hppa.ads: Likewise.
7840 * s-linux.ads: Likewise.
7841 * s-maccod.ads: Likewise.
7842 * s-mantis.adb: Likewise.
7843 * s-mantis.ads: Likewise.
7844 * s-mastop-irix.adb: Likewise.
7845 * s-mastop.adb: Likewise.
7846 * s-mastop.ads: Likewise.
7847 * s-memcop.ads: Likewise.
7848 * s-memory-mingw.adb: Likewise.
7849 * s-memory.adb: Likewise.
7850 * s-memory.ads: Likewise.
7851 * s-os_lib.ads: Likewise.
7852 * s-oscons-tmplt.c: Likewise.
7853 * s-osinte-aix.adb: Likewise.
7854 * s-osinte-darwin.adb: Likewise.
7855 * s-osinte-freebsd.adb: Likewise.
7856 * s-osinte-irix.adb: Likewise.
7857 * s-osinte-lynxos-3.adb: Likewise.
7858 * s-osinte-rtems.ads: Likewise.
7859 * s-osinte-tru64.adb: Likewise.
7860 * s-osinte-vxworks-kernel.adb: Likewise.
7861 * s-osinte-vxworks.adb: Likewise.
7862 * s-osprim-mingw.adb: Likewise.
7863 * s-osprim-posix.adb: Likewise.
7864 * s-osprim-solaris.adb: Likewise.
7865 * s-osprim-unix.adb: Likewise.
7866 * s-osprim-vms.adb: Likewise.
7867 * s-osprim-vms.ads: Likewise.
7868 * s-osprim-vxworks.adb: Likewise.
7869 * s-osprim.ads: Likewise.
7870 * s-pack03.adb: Likewise.
7871 * s-pack03.ads: Likewise.
7872 * s-pack05.adb: Likewise.
7873 * s-pack05.ads: Likewise.
7874 * s-pack06.adb: Likewise.
7875 * s-pack06.ads: Likewise.
7876 * s-pack07.adb: Likewise.
7877 * s-pack07.ads: Likewise.
7878 * s-pack09.adb: Likewise.
7879 * s-pack09.ads: Likewise.
7880 * s-pack10.adb: Likewise.
7881 * s-pack10.ads: Likewise.
7882 * s-pack11.adb: Likewise.
7883 * s-pack11.ads: Likewise.
7884 * s-pack12.adb: Likewise.
7885 * s-pack12.ads: Likewise.
7886 * s-pack13.adb: Likewise.
7887 * s-pack13.ads: Likewise.
7888 * s-pack14.adb: Likewise.
7889 * s-pack14.ads: Likewise.
7890 * s-pack15.adb: Likewise.
7891 * s-pack15.ads: Likewise.
7892 * s-pack17.adb: Likewise.
7893 * s-pack17.ads: Likewise.
7894 * s-pack18.adb: Likewise.
7895 * s-pack18.ads: Likewise.
7896 * s-pack19.adb: Likewise.
7897 * s-pack19.ads: Likewise.
7898 * s-pack20.adb: Likewise.
7899 * s-pack20.ads: Likewise.
7900 * s-pack21.adb: Likewise.
7901 * s-pack21.ads: Likewise.
7902 * s-pack22.adb: Likewise.
7903 * s-pack22.ads: Likewise.
7904 * s-pack23.adb: Likewise.
7905 * s-pack23.ads: Likewise.
7906 * s-pack24.adb: Likewise.
7907 * s-pack24.ads: Likewise.
7908 * s-pack25.adb: Likewise.
7909 * s-pack25.ads: Likewise.
7910 * s-pack26.adb: Likewise.
7911 * s-pack26.ads: Likewise.
7912 * s-pack27.adb: Likewise.
7913 * s-pack27.ads: Likewise.
7914 * s-pack28.adb: Likewise.
7915 * s-pack28.ads: Likewise.
7916 * s-pack29.adb: Likewise.
7917 * s-pack29.ads: Likewise.
7918 * s-pack30.adb: Likewise.
7919 * s-pack30.ads: Likewise.
7920 * s-pack31.adb: Likewise.
7921 * s-pack31.ads: Likewise.
7922 * s-pack33.adb: Likewise.
7923 * s-pack33.ads: Likewise.
7924 * s-pack34.adb: Likewise.
7925 * s-pack34.ads: Likewise.
7926 * s-pack35.adb: Likewise.
7927 * s-pack35.ads: Likewise.
7928 * s-pack36.adb: Likewise.
7929 * s-pack36.ads: Likewise.
7930 * s-pack37.adb: Likewise.
7931 * s-pack37.ads: Likewise.
7932 * s-pack38.adb: Likewise.
7933 * s-pack38.ads: Likewise.
7934 * s-pack39.adb: Likewise.
7935 * s-pack39.ads: Likewise.
7936 * s-pack40.adb: Likewise.
7937 * s-pack40.ads: Likewise.
7938 * s-pack41.adb: Likewise.
7939 * s-pack41.ads: Likewise.
7940 * s-pack42.adb: Likewise.
7941 * s-pack42.ads: Likewise.
7942 * s-pack43.adb: Likewise.
7943 * s-pack43.ads: Likewise.
7944 * s-pack44.adb: Likewise.
7945 * s-pack44.ads: Likewise.
7946 * s-pack45.adb: Likewise.
7947 * s-pack45.ads: Likewise.
7948 * s-pack46.adb: Likewise.
7949 * s-pack46.ads: Likewise.
7950 * s-pack47.adb: Likewise.
7951 * s-pack47.ads: Likewise.
7952 * s-pack48.adb: Likewise.
7953 * s-pack48.ads: Likewise.
7954 * s-pack49.adb: Likewise.
7955 * s-pack49.ads: Likewise.
7956 * s-pack50.adb: Likewise.
7957 * s-pack50.ads: Likewise.
7958 * s-pack51.adb: Likewise.
7959 * s-pack51.ads: Likewise.
7960 * s-pack52.adb: Likewise.
7961 * s-pack52.ads: Likewise.
7962 * s-pack53.adb: Likewise.
7963 * s-pack53.ads: Likewise.
7964 * s-pack54.adb: Likewise.
7965 * s-pack54.ads: Likewise.
7966 * s-pack55.adb: Likewise.
7967 * s-pack55.ads: Likewise.
7968 * s-pack56.adb: Likewise.
7969 * s-pack56.ads: Likewise.
7970 * s-pack57.adb: Likewise.
7971 * s-pack57.ads: Likewise.
7972 * s-pack58.adb: Likewise.
7973 * s-pack58.ads: Likewise.
7974 * s-pack59.adb: Likewise.
7975 * s-pack59.ads: Likewise.
7976 * s-pack60.adb: Likewise.
7977 * s-pack60.ads: Likewise.
7978 * s-pack61.adb: Likewise.
7979 * s-pack61.ads: Likewise.
7980 * s-pack62.adb: Likewise.
7981 * s-pack62.ads: Likewise.
7982 * s-pack63.adb: Likewise.
7983 * s-pack63.ads: Likewise.
7984 * s-parame-ae653.ads: Likewise.
7985 * s-parame-hpux.ads: Likewise.
7986 * s-parame-rtems.adb: Likewise.
7987 * s-parame-vms-alpha.ads: Likewise.
7988 * s-parame-vms-ia64.ads: Likewise.
7989 * s-parame-vms-restrict.ads: Likewise.
7990 * s-parame-vxworks.adb: Likewise.
7991 * s-parame-vxworks.ads: Likewise.
7992 * s-parame.adb: Likewise.
7993 * s-parame.ads: Likewise.
7994 * s-parint.adb: Likewise.
7995 * s-parint.ads: Likewise.
7996 * s-pooglo.adb: Likewise.
7997 * s-pooglo.ads: Likewise.
7998 * s-pooloc.adb: Likewise.
7999 * s-pooloc.ads: Likewise.
8000 * s-poosiz.adb: Likewise.
8001 * s-poosiz.ads: Likewise.
8002 * s-powtab.ads: Likewise.
8003 * s-proinf-irix-athread.adb: Likewise.
8004 * s-proinf-irix-athread.ads: Likewise.
8005 * s-proinf.adb: Likewise.
8006 * s-proinf.ads: Likewise.
8007 * s-purexc.ads: Likewise.
8008 * s-rannum.adb: Likewise.
8009 * s-rannum.ads: Likewise.
8010 * s-restri.adb: Likewise.
8011 * s-restri.ads: Likewise.
8012 * s-rident.ads: Likewise.
8013 * s-rpc.adb: Likewise.
8014 * s-rpc.ads: Likewise.
8015 * s-scaval.adb: Likewise.
8016 * s-scaval.ads: Likewise.
8017 * s-secsta.adb: Likewise.
8018 * s-secsta.ads: Likewise.
8019 * s-sequio.adb: Likewise.
8020 * s-sequio.ads: Likewise.
8021 * s-shasto.adb: Likewise.
8022 * s-shasto.ads: Likewise.
8023 * s-soflin.adb: Likewise.
8024 * s-soflin.ads: Likewise.
8025 * s-solita.adb: Likewise.
8026 * s-solita.ads: Likewise.
8027 * s-sopco3.adb: Likewise.
8028 * s-sopco3.ads: Likewise.
8029 * s-sopco4.adb: Likewise.
8030 * s-sopco4.ads: Likewise.
8031 * s-sopco5.adb: Likewise.
8032 * s-sopco5.ads: Likewise.
8033 * s-stache.adb: Likewise.
8034 * s-stache.ads: Likewise.
8035 * s-stalib.adb: Likewise.
8036 * s-stalib.ads: Likewise.
8037 * s-stausa.adb: Likewise.
8038 * s-stausa.ads: Likewise.
8039 * s-stchop-limit.ads: Likewise.
8040 * s-stchop-rtems.adb: Likewise.
8041 * s-stchop-vxworks.adb: Likewise.
8042 * s-stchop.adb: Likewise.
8043 * s-stchop.ads: Likewise.
8044 * s-stoele.adb: Likewise.
8045 * s-stoele.ads: Likewise.
8046 * s-stopoo.adb: Likewise.
8047 * s-stopoo.ads: Likewise.
8048 * s-stratt.adb: Likewise.
8049 * s-stratt.ads: Likewise.
8050 * s-strcom.adb: Likewise.
8051 * s-strcom.ads: Likewise.
8052 * s-string.adb: Likewise.
8053 * s-string.ads: Likewise.
8054 * s-strops.adb: Likewise.
8055 * s-strops.ads: Likewise.
8056 * s-strxdr.adb: Likewise.
8057 * s-ststop.adb: Likewise.
8058 * s-ststop.ads: Likewise.
8059 * s-taasde.adb: Likewise.
8060 * s-taasde.ads: Likewise.
8061 * s-tadeca.adb: Likewise.
8062 * s-tadeca.ads: Likewise.
8063 * s-tadert.adb: Likewise.
8064 * s-tadert.ads: Likewise.
8065 * s-taenca.adb: Likewise.
8066 * s-taenca.ads: Likewise.
8067 * s-taprob.ads: Likewise.
8068 * s-taprop-dummy.adb: Likewise.
8069 * s-taprop-hpux-dce.adb: Likewise.
8070 * s-taprop-irix.adb: Likewise.
8071 * s-taprop-linux.adb: Likewise.
8072 * s-taprop-lynxos.adb: Likewise.
8073 * s-taprop-mingw.adb: Likewise.
8074 * s-taprop-posix.adb: Likewise.
8075 * s-taprop-solaris.adb: Likewise.
8076 * s-taprop-tru64.adb: Likewise.
8077 * s-taprop-vms.adb: Likewise.
8078 * s-taprop-vxworks.adb: Likewise.
8079 * s-taprop.ads: Likewise.
8080 * s-tarest.adb: Likewise.
8081 * s-tarest.ads: Likewise.
8082 * s-tasdeb.adb: Likewise.
8083 * s-tasdeb.ads: Likewise.
8084 * s-tasinf-irix.ads: Likewise.
8085 * s-tasinf-linux.adb: Likewise.
8086 * s-tasinf-linux.ads: Likewise.
8087 * s-tasinf-mingw.adb: Likewise.
8088 * s-tasinf-mingw.ads: Likewise.
8089 * s-tasinf-solaris.adb: Likewise.
8090 * s-tasinf-solaris.ads: Likewise.
8091 * s-tasinf-tru64.ads: Likewise.
8092 * s-tasinf.adb: Likewise.
8093 * s-tasinf.ads: Likewise.
8094 * s-tasini.adb: Likewise.
8095 * s-tasini.ads: Likewise.
8096 * s-taskin.adb: Likewise.
8097 * s-taskin.ads: Likewise.
8098 * s-taspri-dummy.ads: Likewise.
8099 * s-taspri-hpux-dce.ads: Likewise.
8100 * s-taspri-mingw.ads: Likewise.
8101 * s-taspri-solaris.ads: Likewise.
8102 * s-taspri-tru64.ads: Likewise.
8103 * s-taspri-vms.ads: Likewise.
8104 * s-taspri-vxworks.ads: Likewise.
8105 * s-tasque.adb: Likewise.
8106 * s-tasque.ads: Likewise.
8107 * s-tasren.adb: Likewise.
8108 * s-tasren.ads: Likewise.
8109 * s-tasres.ads: Likewise.
8110 * s-tassta.adb: Likewise.
8111 * s-tassta.ads: Likewise.
8112 * s-tasuti.adb: Likewise.
8113 * s-tasuti.ads: Likewise.
8114 * s-tfsetr-default.adb: Likewise.
8115 * s-tfsetr-vxworks.adb: Likewise.
8116 * s-tpinop.adb: Likewise.
8117 * s-tpinop.ads: Likewise.
8118 * s-tpoben.adb: Likewise.
8119 * s-tpoben.ads: Likewise.
8120 * s-tpobop.adb: Likewise.
8121 * s-tpobop.ads: Likewise.
8122 * s-tpopde-vms.adb: Likewise.
8123 * s-tpopde-vms.ads: Likewise.
8124 * s-tpopsp-lynxos.adb: Likewise.
8125 * s-tpopsp-posix-foreign.adb: Likewise.
8126 * s-tpopsp-posix.adb: Likewise.
8127 * s-tpopsp-solaris.adb: Likewise.
8128 * s-tpopsp-vxworks.adb: Likewise.
8129 * s-tporft.adb: Likewise.
8130 * s-tposen.adb: Likewise.
8131 * s-tposen.ads: Likewise.
8132 * s-traceb.adb: Likewise.
8133 * s-traceb.ads: Likewise.
8134 * s-traces-default.adb: Likewise.
8135 * s-traces.adb: Likewise.
8136 * s-traces.ads: Likewise.
8137 * s-traent-vms.adb: Likewise.
8138 * s-traent-vms.ads: Likewise.
8139 * s-traent.adb: Likewise.
8140 * s-traent.ads: Likewise.
8141 * s-trafor-default.adb: Likewise.
8142 * s-trafor-default.ads: Likewise.
8143 * s-tratas-default.adb: Likewise.
8144 * s-tratas.adb: Likewise.
8145 * s-tratas.ads: Likewise.
8146 * s-unstyp.ads: Likewise.
8147 * s-utf_32.adb: Likewise.
8148 * s-utf_32.ads: Likewise.
8149 * s-vaflop-vms-alpha.adb: Likewise.
8150 * s-vaflop.adb: Likewise.
8151 * s-vaflop.ads: Likewise.
8152 * s-valboo.adb: Likewise.
8153 * s-valboo.ads: Likewise.
8154 * s-valcha.adb: Likewise.
8155 * s-valcha.ads: Likewise.
8156 * s-valdec.adb: Likewise.
8157 * s-valdec.ads: Likewise.
8158 * s-valenu.adb: Likewise.
8159 * s-valenu.ads: Likewise.
8160 * s-valint.adb: Likewise.
8161 * s-valint.ads: Likewise.
8162 * s-vallld.adb: Likewise.
8163 * s-vallld.ads: Likewise.
8164 * s-vallli.adb: Likewise.
8165 * s-vallli.ads: Likewise.
8166 * s-valllu.adb: Likewise.
8167 * s-valllu.ads: Likewise.
8168 * s-valrea.adb: Likewise.
8169 * s-valrea.ads: Likewise.
8170 * s-valuns.adb: Likewise.
8171 * s-valuns.ads: Likewise.
8172 * s-valuti.adb: Likewise.
8173 * s-valuti.ads: Likewise.
8174 * s-valwch.adb: Likewise.
8175 * s-valwch.ads: Likewise.
8176 * s-veboop.adb: Likewise.
8177 * s-veboop.ads: Likewise.
8178 * s-vector.ads: Likewise.
8179 * s-vercon.adb: Likewise.
8180 * s-vercon.ads: Likewise.
8181 * s-vmexta.adb: Likewise.
8182 * s-vmexta.ads: Likewise.
8183 * s-vxwext-kernel.ads: Likewise.
8184 * s-vxwext-rtp.adb: Likewise.
8185 * s-vxwext-rtp.ads: Likewise.
8186 * s-vxwext.ads: Likewise.
8187 * s-vxwork-arm.ads: Likewise.
8188 * s-vxwork-m68k.ads: Likewise.
8189 * s-vxwork-mips.ads: Likewise.
8190 * s-vxwork-ppc.ads: Likewise.
8191 * s-vxwork-sparcv9.ads: Likewise.
8192 * s-vxwork-x86.ads: Likewise.
8193 * s-wchcnv.adb: Likewise.
8194 * s-wchcnv.ads: Likewise.
8195 * s-wchcon.adb: Likewise.
8196 * s-wchcon.ads: Likewise.
8197 * s-wchjis.adb: Likewise.
8198 * s-wchjis.ads: Likewise.
8199 * s-wchstw.adb: Likewise.
8200 * s-wchstw.ads: Likewise.
8201 * s-wchwts.adb: Likewise.
8202 * s-wchwts.ads: Likewise.
8203 * s-widboo.adb: Likewise.
8204 * s-widboo.ads: Likewise.
8205 * s-widcha.adb: Likewise.
8206 * s-widcha.ads: Likewise.
8207 * s-widenu.adb: Likewise.
8208 * s-widenu.ads: Likewise.
8209 * s-widlli.adb: Likewise.
8210 * s-widlli.ads: Likewise.
8211 * s-widllu.adb: Likewise.
8212 * s-widllu.ads: Likewise.
8213 * s-widwch.adb: Likewise.
8214 * s-widwch.ads: Likewise.
8215 * s-win32.ads: Likewise.
8216 * s-winext.ads: Likewise.
8217 * s-wwdcha.adb: Likewise.
8218 * s-wwdcha.ads: Likewise.
8219 * s-wwdenu.adb: Likewise.
8220 * s-wwdenu.ads: Likewise.
8221 * s-wwdwch.adb: Likewise.
8222 * s-wwdwch.ads: Likewise.
8223 * scans.adb: Likewise.
8224 * scans.ads: Likewise.
8225 * seh_init.c: Likewise.
8226 * sfn_scan.adb: Likewise.
8227 * sinfo.adb: Likewise.
8228 * sinfo.ads: Likewise.
8229 * sinput.adb: Likewise.
8230 * sinput.ads: Likewise.
8231 * snames.adb: Likewise.
8232 * snames.ads: Likewise.
8233 * socket.c: Likewise.
8234 * stand.adb: Likewise.
8235 * stand.ads: Likewise.
8236 * stringt.adb: Likewise.
8237 * stringt.ads: Likewise.
8238 * sysdep.c: Likewise.
8239 * system-aix.ads: Likewise.
8240 * system-darwin-ppc.ads: Likewise.
8241 * system-darwin-x86.ads: Likewise.
8242 * system-darwin-x86_64.ads: Likewise.
8243 * system-freebsd-x86.ads: Likewise.
8244 * system-hpux-ia64.ads: Likewise.
8245 * system-hpux.ads: Likewise.
8246 * system-irix-n32.ads: Likewise.
8247 * system-irix-n64.ads: Likewise.
8248 * system-irix-o32.ads: Likewise.
8249 * system-linux-alpha.ads: Likewise.
8250 * system-linux-hppa.ads: Likewise.
8251 * system-linux-ia64.ads: Likewise.
8252 * system-linux-mips.ads: Likewise.
8253 * system-linux-mipsel.ads: Likewise.
8254 * system-linux-ppc.ads: Likewise.
8255 * system-linux-ppc64.ads: Likewise.
8256 * system-linux-s390.ads: Likewise.
8257 * system-linux-s390x.ads: Likewise.
8258 * system-linux-sh4.ads: Likewise.
8259 * system-linux-sparc.ads: Likewise.
8260 * system-linux-sparcv9.ads: Likewise.
8261 * system-linux-x86.ads: Likewise.
8262 * system-linux-x86_64.ads: Likewise.
8263 * system-lynxos-ppc.ads: Likewise.
8264 * system-lynxos-x86.ads: Likewise.
8265 * system-mingw-x86_64.ads: Likewise.
8266 * system-mingw.ads: Likewise.
8267 * system-rtems.ads: Likewise.
8268 * system-solaris-sparc.ads: Likewise.
8269 * system-solaris-sparcv9.ads: Likewise.
8270 * system-solaris-x86.ads: Likewise.
8271 * system-solaris-x86_64.ads: Likewise.
8272 * system-tru64.ads: Likewise.
8273 * system-vms-ia64.ads: Likewise.
8274 * system-vms-zcx.ads: Likewise.
8275 * system-vms.ads: Likewise.
8276 * system-vms_64.ads: Likewise.
8277 * system-vxworks-arm.ads: Likewise.
8278 * system-vxworks-m68k.ads: Likewise.
8279 * system-vxworks-mips.ads: Likewise.
8280 * system-vxworks-ppc.ads: Likewise.
8281 * system-vxworks-sparcv9.ads: Likewise.
8282 * system-vxworks-x86.ads: Likewise.
8283 * system.ads: Likewise.
8284 * table.adb: Likewise.
8285 * table.ads: Likewise.
8286 * targext.c: Likewise.
8287 * targparm.ads: Likewise.
8288 * tree_in.adb: Likewise.
8289 * tree_in.ads: Likewise.
8290 * tree_io.adb: Likewise.
8291 * tree_io.ads: Likewise.
8292 * types.adb: Likewise.
8293 * types.ads: Likewise.
8294 * uintp.adb: Likewise.
8295 * uintp.ads: Likewise.
8296 * uname.adb: Likewise.
8297 * uname.ads: Likewise.
8298 * urealp.adb: Likewise.
8299 * urealp.ads: Likewise.
8300 * vx_stack_info.c: Likewise.
8301 * widechar.adb: Likewise.
8302 * widechar.ads: Likewise.
8303 * exp_attr.adb: Change copyright header to refer to version
8304 3 of the GNU General Public License and to point readers at the
8305 COPYING3 file and the FSF's license web page.
8306 * sem.adb: Likewise.
8307 * sem_attr.ads: Likewise.
8308 * freeze.adb: Likewise.
8309 * freeze.ads: Likewise.
8310 * errout.ads: Likewise.
8311 * erroutc.adb: Likewise.
8312 * exp_ch11.ads: Likewise.
8314 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8316 * config-lang.in: Change copyright header to refer to version
8317 3 of the GNU General Public License and to point readers at the
8318 COPYING3 file and the FSF's license web page.
8319 * gcc-interface/trans.c: Likewise.
8320 * gnathtml.pl: Likewise.
8321 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8322 * gcc-interface/gigi.h: Likewise.
8323 * gcc-interface/misc.c: Likewise.
8324 * gcc-interface/targtyps.c: Likewise.
8326 2009-04-09 Nicolas Setton <setton@adacore.com>
8328 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8330 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8333 2009-04-09 Bob Duff <duff@adacore.com>
8335 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8336 internally-generated nodes related to select statements to avoid
8337 confusing the debugger.
8339 2009-04-09 Pascal Obry <obry@adacore.com>
8341 * make.adb: Ensure that all linker arguments are duplicated.
8343 2009-04-09 Robert Dewar <dewar@adacore.com>
8345 * sem_ch5.adb: Minor reformatting
8347 2009-04-09 Vincent Celier <celier@adacore.com>
8350 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8351 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8352 New qualifier /LXDEBUG=nnn for -gnatDnnn
8356 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8359 2009-04-09 Nicolas Setton <setton@adacore.com>
8361 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8362 to match layout of siginfo_t in sys/signal.h.
8364 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8366 2009-04-09 Thomas Quinot <quinot@adacore.com>
8368 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8370 2009-04-09 Nicolas Setton <setton@adacore.com>
8372 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8373 Add generation of Darwin-specific constants needed when binding to the
8376 2009-04-09 Robert Dewar <dewar@adacore.com>
8379 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8380 when no invalid values exist, Avoid duplicate read of atomic variable.
8382 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8383 (Standard_Unsigned): Set Is_Known_Valid
8385 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8386 subtype declaration if no constraint.
8387 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8388 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8390 2009-04-09 Robert Dewar <dewar@adacore.com>
8392 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8393 switch.ads: for numeric switches, an optional equal sign is always
8396 2009-04-09 Vincent Celier <celier@adacore.com>
8398 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8399 the case of file names is not significant.
8401 2009-04-09 Vincent Celier <celier@adacore.com>
8403 * errout.adb: Remove dependency on package Style
8405 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8408 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8411 * errutil.adb, par.adb: Import Stylesw
8413 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8415 * opt.ads: Fix typos.
8417 2009-04-09 Robert Dewar <dewar@adacore.com>
8419 * einfo.adb: Minor reformatting
8421 2009-04-09 Robert Dewar <dewar@adacore.com>
8423 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8426 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8428 2009-04-09 Robert Dewar <dewar@adacore.com>
8430 * g-comver.adb: Minor reformatting.
8432 2009-04-09 Thomas Quinot <quinot@adacore.com>
8434 * lib-load.ads (Load_Unit): Update documentation.
8436 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8438 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8439 named in a with_clause, retain the with_clause to preserve a
8440 limited_with indication.
8442 2009-04-09 Robert Dewar <dewar@adacore.com>
8444 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8445 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8446 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8447 possible to replace an OR of two separate tests.
8449 2009-04-09 Robert Dewar <dewar@adacore.com>
8451 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8454 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8455 warning status as well.
8457 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8459 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8462 * bindusg.adb, usage.adb: Update line for -gnatm switch
8464 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8467 2009-04-09 Robert Dewar <dewar@adacore.com>
8469 * sem_ch10.adb: Minor reformatting.
8471 2009-04-09 Bob Duff <duff@adacore.com>
8473 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8474 Set Sloc of generated nodes for calls to Undefer_Aborts and
8475 Save_Occurrence to No_Location, so the debugger ignores them and
8476 therefore does not jump back and forth when single stepping.
8478 2009-04-09 Robert Dewar <dewar@adacore.com>
8480 * switch-b.adb: Minor reformatting.
8482 2009-04-09 Robert Dewar <dewar@adacore.com>
8484 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8485 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8486 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8487 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8488 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8489 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8490 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8491 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8492 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8493 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8494 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8496 2009-04-09 Robert Dewar <dewar@adacore.com>
8498 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8500 * atree.h: Add Elist26
8502 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8505 2009-04-09 Javier Miranda <miranda@adacore.com>
8507 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8508 retrieve from the Dispatch_Table_Wrappers list the external name.
8509 Addition of documentation.
8510 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8511 used to export secondary dispatch tables (in the previous version of
8512 the frontend only primary dispatch tables were exported). Addition of
8514 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8515 dispatch table of a given tagged type.
8516 (Make_Tags): Modified to import secondary dispatch tables.
8518 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8519 (Constant_Redeclaration): Code cleanup.
8521 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8522 Dispatch_Table_Wrappers. Update documentation.
8524 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8525 Renamed to Dispatch_Table_Wrappers.
8527 * sem_util.adb (Collect_Interface_Components): Improve handling of
8530 * atree.ads (Elist26, Set_Elist26): New subprograms
8532 * atree.adb (Elist26, Set_Elist26): New subprograms
8534 2009-04-09 Javier Miranda <miranda@adacore.com>
8536 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8537 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8540 2009-04-09 Robert Dewar <dewar@adacore.com>
8542 * s-direio.adb: Minor reformatting
8544 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8546 2009-04-09 Robert Dewar <dewar@adacore.com>
8548 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8550 2009-04-09 Pascal Obry <obry@adacore.com>
8552 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8553 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8554 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8555 a-filico.ads: Add some missing overriding keywords.
8557 2009-04-09 Pascal Obry <obry@adacore.com>
8559 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8560 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8561 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8564 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8566 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8567 missing overriding indicator if the new declaration is not seen as
8570 2009-04-09 Thomas Quinot <quinot@adacore.com>
8572 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8573 overflows in computation of bounds.
8575 2009-04-09 Pascal Obry <obry@adacore.com>
8577 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8580 2009-04-09 Robert Dewar <dewar@adacore.com>
8582 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8583 restriction No_Streams
8585 * gnat_rm.texi: Clarify No_Streams restriction
8587 * g-socket.adb: Minor reformatting.
8589 2009-04-09 Thomas Quinot <quinot@adacore.com>
8591 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8593 2009-04-09 Geert Bosch <bosch@adacore.com>
8595 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8596 (Set_Result): Likewise.
8597 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8598 conversion, as required by RM 4.6(31).
8600 2009-04-08 Robert Dewar <dewar@adacore.com>
8602 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8605 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8608 2009-04-08 Robert Dewar <dewar@adacore.com>
8610 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8611 No_Local_Allocators restriction preventing local instantiation.
8613 2009-04-08 Thomas Quinot <quinot@adacore.com>
8615 * sem_eval.adb: Minor comment fix
8617 2009-04-08 Thomas Quinot <quinot@adacore.com>
8619 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8620 New limited controlled type used to automate the initialization and
8621 finalization of the sockets implementation.
8622 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8624 2009-04-08 Vincent Celier <celier@adacore.com>
8626 * prj-attr.adb: New read-only project-level attribute Project_Dir
8628 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8629 read-only attribute of the same name.
8630 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8631 (Recursive_Process): Ditto
8633 * snames.adb: Add new standard name Project_Dir
8635 * snames.ads: Add new standard name Project_Dir
8637 2009-04-08 Thomas Quinot <quinot@adacore.com>
8639 * checks.adb: Minor reformatting
8641 2009-04-08 Vincent Celier <celier@adacore.com>
8643 * vms_data.ads: Add documentation for new style keyword
8644 OVERRIDING_INDICATORS
8646 2009-04-08 Robert Dewar <dewar@adacore.com>
8648 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8649 spec is in the current unit.
8651 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8653 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8656 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8658 2009-04-08 Vincent Celier <celier@adacore.com>
8660 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8662 2009-04-08 Thomas Quinot <quinot@adacore.com>
8664 * checks.ads: Minor reformatting
8666 2009-04-08 Robert Dewar <dewar@adacore.com>
8668 * gnat_rm.texi: Update documentation of pragma Obsolescent
8670 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8671 be omitted, and allow Entity parameter to be omitted.
8673 2009-04-08 Thomas Quinot <quinot@adacore.com>
8675 * exp_util.adb: Minor comment fix
8677 2009-04-08 Robert Dewar <dewar@adacore.com>
8679 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8681 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8682 argument with no identifier following one that has an identifier. Was
8683 missed in some cases.
8685 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8687 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8689 * snames.adb: Add Name_Policy
8691 * snames.ads: Add Name_Policy
8693 2009-04-08 Robert Dewar <dewar@adacore.com>
8695 * gnat_rm.texi: Minor reformatting
8697 * par-ch2.adb: Minor reformatting
8699 2009-04-08 Robert Dewar <dewar@adacore.com>
8701 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8703 2009-04-08 Robert Dewar <dewar@adacore.com>
8705 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8706 properly in the presence of Remote_Types or Remote_Call_Interface.
8708 * sem_util.adb: Add comment.
8710 2009-04-08 Robert Dewar <dewar@adacore.com>
8712 * ug_words: Add /ASSUME_VALID for -gnatB
8714 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8716 * sem_cat.adb: Add clarifying commment
8718 * a-direio.ads (Bytes): Make sure value is non-zero
8720 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8722 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8723 that does not come from source, check for a rewritten function call in
8724 prefixed notation before other forms of rewriting.
8726 2009-04-08 Robert Dewar <dewar@adacore.com>
8728 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8729 these are now obsolescent units used only for bootrapping with an
8732 2009-04-08 Robert Dewar <dewar@adacore.com>
8734 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8736 * sem_ch3.adb: Minor comment updates
8738 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8740 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8741 that come from source.
8743 2009-04-08 Tristan Gingold <gingold@adacore.com>
8745 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
8746 * gcc-interface/decl.c (prepend_attributes): New case
8747 Pragma_Thread_Local_Storage.
8748 * gcc-interface/utils.c (process_attributes): New case
8749 ATTR_THREAD_LOCAL_STORAGE.
8751 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8753 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
8754 by the back-end if it contains a call to a subprogram without a
8755 previous spec that is declared in the same unit.
8757 * errout.ads: Update comments on uses of dirs
8759 2009-04-08 Robert Dewar <dewar@adacore.com>
8761 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
8763 2009-04-08 Tristan Gingold <gingold@adacore.com>
8765 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
8767 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
8769 2009-04-08 Vincent Celier <celier@adacore.com>
8772 (Add_Source): Add the mapping of the unit name to source file name in
8773 the Unit_Sources_HT hash table, if the unit name is not null.
8775 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
8777 * prj.ads (Unit_Sources_Htable): New hash table instantiation
8778 (Project_Tree_Data): New component Unit_Sources_HT
8780 2009-04-08 Thomas Quinot <quinot@adacore.com>
8782 * sem_ch8.adb: Minor reformatting.
8783 Minor code reorganization.
8785 2009-04-08 Robert Dewar <dewar@adacore.com>
8787 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
8788 snames.ads, freeze.adb, par-prag.adb: Add implementation of
8789 pragma Thread_Local_Storage, setting new flag
8790 Has_Pragma_Thread_Local_Storage in corresponding entities.
8792 2009-04-08 Emmanuel Briot <briot@adacore.com>
8794 * prj.ads: Update comment on switches file
8796 * prj-nmsc.adb: Code clean up. Use renaming clauses.
8798 2009-04-08 Robert Dewar <dewar@adacore.com>
8800 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
8802 2009-04-08 Thomas Quinot <quinot@adacore.com>
8804 * ali-util.adb: Minor comment fix
8806 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8808 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
8809 appears in a context clause, and the enclosing package is mentioned in
8810 a limited_with_clause.
8811 (Use_One_Type): Reject clause if type is still incomplete.
8813 2009-04-08 Emmanuel Briot <briot@adacore.com>
8815 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
8816 avoid copies of Source_Data variables when possible, since these
8817 involve calls to memcpy() which are done too many times.
8819 2009-04-08 Robert Dewar <dewar@adacore.com>
8821 * exp_ch4.adb (Expand_Concatenate): Clean up code
8823 2009-04-07 Thomas Quinot <quinot@adacore.com>
8825 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
8826 type for the case of concatenating a constrained array indexed by an
8829 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8831 * sem_ch6.adb (Check_Conformance): when checking conformance of an
8832 operation that overrides an abstract operation inherited from an
8833 interface, return False if only one of the controlling formals is an
8836 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8838 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
8839 mandated by AI05-105.
8841 2009-04-07 Vincent Celier <celier@adacore.com>
8843 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
8845 2009-04-07 Thomas Quinot <quinot@adacore.com>
8847 * usage.adb: Minor fix in usage message.
8849 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
8850 match declaration; the correct subtype is Node_Id, not Entity_Id,
8851 because the expected node kind is an identifier, not a defining
8854 * switch-c.adb: Minor reformatting.
8856 * uintp.adb: Minor reformatting.
8858 2009-04-07 Robert Dewar <dewar@adacore.com>
8860 * exp_ch13.adb: Minor reformatting
8862 2009-04-07 Robert Dewar <dewar@adacore.com>
8864 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
8865 against missing parent.
8867 2009-04-07 Thomas Quinot <quinot@adacore.com>
8869 * xoscons.adb: Minor reformatting
8871 2009-04-07 Robert Dewar <dewar@adacore.com>
8873 * rtsfind.ads: Remove obsolete string concatenation entries
8875 2009-04-07 Robert Dewar <dewar@adacore.com>
8877 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
8879 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8881 * sem_ch10.adb (Check_Body_Required): Handle properly imported
8884 2009-04-07 Gary Dismukes <dismukes@adacore.com>
8886 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
8887 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
8888 is of a scalar or string type then suppress the setting of the
8889 expression to Empty.
8891 * freeze.adb (Warn_Overlay): Also emit the warnings about default
8892 initialization for the cases of scalar and string objects when
8893 Init_Or_Norm_Scalars is True.
8895 2009-04-07 Bob Duff <duff@adacore.com>
8897 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
8899 2009-04-07 Bob Duff <duff@adacore.com>
8901 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
8902 Form parameter of Text_Translation=No allows binary mode for Text_IO
8905 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
8907 2009-04-07 Javier Miranda <miranda@adacore.com>
8909 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
8910 processing the bounds for bit packed arrays or VM target machines.
8912 2009-04-07 Thomas Quinot <quinot@adacore.com>
8914 * g-sothco.ads (Int_Access): Remove extraneous access type (use
8915 anonymous access instead).
8916 (Get_Socket_From_Set): Fix incorrectly reverted formals
8917 Last and Socket to match the underlying C routine.
8919 * g-socket.adb, g-socket.ads
8920 (Get): Use named parameter associations instead of positional ones in
8921 call go Get_Socket_From_Set, since this routine has two formals of the
8923 (Image): New procedure.
8925 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8926 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
8927 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
8928 for type of Arg formal.
8930 * sem_warn.adb: Minor reformatting
8932 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8934 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
8935 over record components.
8937 2009-04-07 Nicolas Roche <roche@adacore.com>
8940 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
8941 has disappeared between VxWorks 6.4 and VxWorks 6.5
8942 In RTP mode use time.h instead of times.h
8944 2009-04-07 Robert Dewar <dewar@adacore.com>
8946 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
8948 2009-04-07 Kevin Pouget <pouget@adacore.com>
8950 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
8951 expanded code for constrained types.
8953 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8955 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
8956 AI05-105: in an object renaming declaration, anonymousness is a name
8959 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
8961 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8963 * g-comlin.adb (Expansion): Fix old regression: also return directory
8964 names when matching.
8966 2009-04-07 Robert Dewar <dewar@adacore.com>
8969 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
8970 (Expand_Concatenate): New name for Expand_Concatenate_String which has
8971 been rewritten to handle all types.
8972 (Expand_Concatenate_Other): Remove
8974 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8976 * lib-xref.adb (Generate_Reference): A default subprogram in an
8977 instance appears within the tree for the instance, but generates an
8978 implicit reference in the ALI.
8980 2009-04-07 Javier Miranda <miranda@adacore.com>
8982 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
8983 derived type that has discriminants, propagate the list of interfaces
8984 to the corresponding new base type. In addition, propagate also
8985 attribute Limited_Present (found working in this patch).
8987 2009-04-07 Robert Dewar <dewar@adacore.com>
8989 * exp_ch4.adb: Rewrite concatenation expansion.
8991 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8993 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
8994 relevant to packages.
8996 2009-04-07 Robert Dewar <dewar@adacore.com>
8998 * sem_attr.adb: Minor reformatting
9000 * sem_ch6.adb: Minor reformatting
9002 2009-04-07 Tristan Gingold <gingold@adacore.com>
9004 * socket.c: Add more protections against S_resolvLib_ macros.
9006 2009-04-07 Thomas Quinot <quinot@adacore.com>
9008 * sem_attr.adb: Minor reformatting
9010 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9012 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9013 Is_Overriding_Alias to handle properly types that inherit two homonym
9014 operations that have distinct dispatch table entries.
9016 2009-04-07 Emmanuel Briot <briot@adacore.com>
9018 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9019 looking for the end of a parenthesis group
9021 2009-04-07 Tristan Gingold <gingold@adacore.com>
9023 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9025 * socket.c Don't use resolvLib_ macros if not defined.
9027 2009-04-07 Robert Dewar <dewar@adacore.com>
9029 * g-socket.adb: Minor reformatting.
9031 * g-socthi-mingw.adb: Minor reformatting
9033 * g-sothco.ads: Minor reformatting
9036 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9037 inline instead of relying on external library routines.
9039 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9040 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9043 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9046 (Eval_Attribute): for attributes of array objects that are not strings,
9047 attributes are not static if nominal subtype of object is unconstrained.
9049 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9051 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9052 operations for a type T in an instance do not override each other,
9053 when T is derived from a formal private type, the corresponding
9054 operations inherited by a type derived from T outside
9055 of the instance do not override each other either.
9057 2009-04-07 Robert Dewar <dewar@adacore.com>
9059 (Osint.Fail): Change calling sequence to have one string arg
9060 (Make.Make_Failed): Same change
9061 All callers are adjusted to use concatenation
9063 2009-04-07 Robert Dewar <dewar@adacore.com>
9065 * exp_ch4.adb: Fix documentation typo
9067 2009-04-07 Robert Dewar <dewar@adacore.com>
9069 * tbuild.ads: Minor reformatting
9071 2009-04-07 Javier Miranda <miranda@adacore.com>
9073 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9074 when compiling under ZFP runtime.
9076 2009-04-07 Robert Dewar <dewar@adacore.com>
9078 * g-comlin.adb: Minor reformatting
9080 2009-04-07 Thomas Quinot <quinot@adacore.com>
9082 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9083 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9084 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9085 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9087 2009-04-07 Robert Dewar <dewar@adacore.com>
9089 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9091 * opt.ads (Sprint_Line_Limit): New parameter
9093 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9095 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9097 * usage.adb: Output information for -gnatGnn -gnatDnn
9099 2009-04-07 Robert Dewar <dewar@adacore.com>
9101 * make.adb: Minor reformatting
9103 2009-04-07 Robert Dewar <dewar@adacore.com>
9105 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9107 2009-04-07 Robert Dewar <dewar@adacore.com>
9109 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9111 2009-04-07 Robert Dewar <dewar@adacore.com>
9114 Remove Assume_Valid parameter from In_Subrange_Of calls
9117 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9118 (Is_In_Range): Remove incorrect use of Assume_Valid
9119 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9122 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9123 (Is_In_Range): Documentation cleanup
9124 (Is_Out_Of_Range): Documentation cleanup
9127 Add documentation for Assume_No_Invalid_Values pragma
9129 * sem_ch12.adb: Minor reformatting
9131 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9133 * sem_prag.adb: Improve error message.
9135 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9136 LF/CR no longer recognized as line terminator
9138 * switch.ads: Minor documentation improvement
9140 * vms_data.ads: Minor reformatting
9142 2009-04-07 Robert Dewar <dewar@adacore.com>
9144 * checks.adb (Determine_Range): Add Assume_Valid parameter
9146 * checks.ads (Determine_Range): Add Assume_Valid parameter
9148 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9149 Is_Null_Loop to suppress warnings in a loop body.
9152 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9155 (Expand_N_Loop_Statement): Delete loop known not to execute
9158 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9159 fully enables the proper handling of invalid values.
9162 New calling sequence for Is_In_Range
9165 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9166 in determining if a loop range is null.
9169 (Is_In_Range): Add Assume_Valid parameter
9170 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9171 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9172 also to do more accurate and complete range analysis, catching more
9176 (Is_In_Range): Add Assume_Valid parameter
9177 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9180 New calling sequence for Is_In_Range
9183 (Suppress_Loop_Warnings): New flag
9186 (Is_Null_Loop): Update documentation
9187 (Suppress_Loop_Warnings): New flag
9189 * gnat_ugn.texi: Document -gnatB switch
9191 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9193 * gnatvsn.ads: Bump version number.
9195 2009-04-07 Thomas Quinot <quinot@adacore.com>
9197 * exp_ch3.adb: Minor rewording (comments)
9199 2009-04-07 Robert Dewar <dewar@adacore.com>
9201 * exp_disp.adb: Minor reformatting
9203 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9205 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9207 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9209 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9211 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9212 Do not convert the result. Remove obsolete comment.
9214 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9216 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9218 (Subprogram_Body_to_gnu): Fix pasto.
9220 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9222 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9223 (void_type_decl_node): Remove.
9224 (init_gigi_decls): Likewise.
9225 (gnat_install_builtins): Declare.
9226 (record_builtin_type): Likewise.
9227 (create_type_stub_decl): Likewise.
9228 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9229 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9231 <E_Array_Subtype>: Use the index types, not only their name, in the
9232 record giving the names of the bounds, if any.
9233 For a packed array type, make it artificial only if the base type
9234 was artificial as well. Remove redundant statement.
9235 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9237 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9238 (rest_of_type_decl_compilation_no_defer): Likewise.
9239 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9240 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9241 and use create_type_stub_decl to build it.
9242 (gnat_pushdecl): Rewrite condition.
9243 (gnat_install_builtins): Remove bogus declaration.
9244 (record_builtin_type): New function.
9245 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9247 (create_type_stub_decl): New function.
9248 (create_type_decl): Assert that the type is not dummy. If the type
9249 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9250 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9251 (build_vms_descriptor): Likewise.
9252 (init_gigi_decls): Delete and move bulk of code to...
9253 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9254 (emit_range_check): Add gnat_node parameter.
9255 (emit_index_check): Likewise.
9256 (emit_check): Likewise.
9257 (build_unary_op_trapv): Likewise.
9258 (build_binary_op_trapv): Likewise.
9259 (convert_with_check): Likewise.
9260 (Attribute_to_gnu): Adjust calls for above changes.
9261 (call_to_gnu): Likewise.
9262 (gnat_to_gnu): Likewise.
9263 (assoc_to_constructor): Likewise.
9264 (pos_to_constructor): Likewise.
9265 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9266 (process_type): Do not create TYPE_DECL for dummy types.
9268 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9270 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9271 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9272 * gcc-interface/utils.c: Fix comments.
9274 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9276 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9278 (gnat_to_gnu_type): Move around.
9279 (get_unpadded_type): Likewise.
9280 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9283 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9285 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9286 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9287 (call_to_gnu): Invoke it instead of manually checking.
9289 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9291 * gcc-interface/utils.c (finish_record_type): Force structural equality
9292 checks if the record type is discriminated.
9294 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9296 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9297 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9298 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9299 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9300 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9301 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9302 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9304 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9306 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9307 of TREE_CONSTANT_OVERFLOW.
9309 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9311 PR rtl-optimization/323
9312 * gcc-interface/misc.c (gnat_post_options): Set
9313 flag_excess_precision_cmdline. Give an error for
9314 -fexcess-precision=standard for processors where the option is
9317 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9320 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9323 2009-03-11 Olivier Hainque <hainque@adacore.com>
9325 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9326 checks processing, remove unintended TREE_TYPE walk on index type.
9328 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9331 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9332 call make_packable_type on fat pointer types.
9333 <E_Array_Subtype>: Likewise.
9334 <E_Record_Subtype>: Call make_packable_type on all record types
9335 except for fat pointer types.
9336 (make_packable_type): Likewise.
9337 (gnat_to_gnu_field): Likewise.
9339 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9341 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9342 EH_MECHANISM change made on 2007-12-06.
9344 2009-02-26 Andreas Schwab <schwab@suse.de>
9347 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9348 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9349 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9351 (target_cpu_default): Substitute.
9353 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9356 * a-teioed.adb (Expand): Fix Result overflow.
9358 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9360 * gcc-interface/Makefile.in: Fix multilib handling for
9363 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9365 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9367 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9369 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9371 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9373 * gcc-interface/deftarg.c: Remove.
9375 2009-02-10 Olivier Hainque <hainque@adacore.com>
9376 Eric Botcazou <ebotcazou@adacore.com>
9378 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9379 (copy_alias_set): Rename into...
9380 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9381 underlying array of unconstrained arrays for the new type as well.
9382 If the old and new alias sets don't conflict, make one a subset of
9383 the other as per the OP parameter.
9384 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9385 <E_Record_Type>: Do not copy the alias set for derived types.
9386 For all types, make the alias set of derived types a superset of
9387 that of their parent type.
9388 (make_aligning_type): Adjust calls to copy_alias_set.
9389 (make_packable_type): Likewise.
9390 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9391 Check for alias set conflict instead of strict equality to issue the
9394 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9396 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9397 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9398 (copy_alias_set): Assert that arrays have the same aliasing settings.
9399 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9401 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9403 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9404 Set TYPE_NONALIASED_COMPONENT on the array type.
9406 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9408 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9410 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9412 * gcc-interface/Makefile.in: Fix multilib handling for
9415 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9417 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9418 only useless conversions around renamed objects.
9420 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9422 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9423 the _Tag field before any discriminants in the field list.
9424 (components_to_record): Remove obsolete comment.
9428 Copyright (C) 2009 Free Software Foundation, Inc.
9430 Copying and distribution of this file, with or without modification,
9431 are permitted in any medium without royalty provided the copyright
9432 notice and this notice are preserved.