1 2009-07-23 Sergey Rybin <rybin@adacore.com>
3 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
5 2009-07-23 Javier Miranda <miranda@adacore.com>
7 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
8 (Entity/Set_Entity): not available in N_Null_Statement nodes
9 (Is_Scil_Node): renamed as Is_SCIL_Node
10 (Scil_Nkind): renamed as SCIL_Nkind
11 (Scil_Related_Node): renamed as SCIL_Related_Node
12 (Scil_Target_Prim): renamed as SCIL_Target_Prim
13 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
14 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
15 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
17 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
18 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
19 (New_Scil_Node): Renamed as New_SCIL_Node
20 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
21 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
22 (New_Scil_Node): Renamed as New_SCIL_Node
23 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
25 2009-07-23 Robert Dewar <dewar@adacore.com>
27 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
28 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
29 * einfo.adb: Minor reformatting
31 2009-07-23 Robert Dewar <dewar@adacore.com>
33 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
34 cross-referencing the new related code in
35 Exp_Ch4.Expand_N_Type_Conversion.
36 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
38 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
41 2009-07-23 Javier Miranda <miranda@adacore.com>
43 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
44 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
45 * exp_disp.ads (Scil_Node_Kind): Ditto.
46 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
47 * exp_ch3.adb (Build_Init_Procedure): Ditto.
49 2009-07-23 Javier Miranda <miranda@adacore.com>
51 * einfo.adb (Component_Type): Add missing assertion.
52 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
53 reading attribute Component_Size.
54 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
55 before reading attributes Component_Size and Component_Type.
56 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
57 before reading attribute Component_Type.
59 2009-07-23 Olivier Hainque <hainque@adacore.com>
61 * gnat_rm.texi: Document the GNAT.SSE units.
63 2009-07-23 Ed Schonberg <schonberg@adacore.com>
65 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
66 not null return if it appears on a subunit.
68 2009-07-23 Robert Dewar <dewar@adacore.com>
70 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
71 check right away so it does not get skipped for early returns, e.g.
73 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
74 left-side unless we really know the value is valid.
76 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
77 reformatting. Minor code reorganization. Add comments.
79 2009-07-23 Robert Dewar <dewar@adacore.com>
81 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
84 2009-07-23 Gary Dismukes <dismukes@adacore.com>
86 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
87 with test of coverage, to allow specific type objects in extended
88 returns of class-wide functions. Remove now-unnecessary special-case
89 tests that allowed this in certain cases of expanded extended returns.
91 2009-07-23 Javier Miranda <miranda@adacore.com>
93 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
94 N_Null_Statements (for SCIL nodes).
95 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
96 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
97 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
99 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
100 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
101 associated with dispatching call.
102 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
103 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
104 initialization of dispatch tables and initialization of tags.
105 (New_Scil_Node): New function that creates a new SCIL node.
106 (Build_Init_Procedure): Add generation of SCIL node associated with the
107 initialization of tags done in the IP subprogram.
109 2009-07-23 Ed Schonberg <schonberg@adacore.com>
111 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
112 Warnings_Off, do not emit continuation messages.
114 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
117 2009-07-23 Emmanuel Briot <briot@adacore.com>
119 * ali.adb: Minor comment update
121 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
123 * s-win32.ads (HANDLE): Define to be the same size as address type.
126 2009-07-23 Olivier Hainque <hainque@adacore.com>
128 * g-sse.ads: New file. Root of the SSE facilities trees, with
129 general description and common declarations.
130 * g-ssvety.ads: New file. Expose user level SSE vector types.
131 * impunit.adb (Non_Imp_File_Names_95): Register new units.
132 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
133 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
135 2009-07-23 Ben Brosgol <brosgol@adacore.com>
137 * gnat_ugn.texi: Wordsmithing.
139 2009-07-23 Arnaud Charlet <charlet@adacore.com>
141 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
143 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
145 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
146 they are already of the base type of the index.
148 2009-07-22 Brett Porter <porter@adacore.com>
150 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
152 2009-07-22 Robert Dewar <dewar@adacore.com>
154 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
155 * gnat_ugn.texi: Add documentation for -gnateS switch
156 * ug_words: Add entry for -gnateS /SCO_OUTPUT
157 * gcc-interface/Make-lang.in: Update dependenciest.3
159 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
160 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
161 complete information for SCO input/output.
163 2009-07-22 Sergey Rybin <rybin@adacore.com>
165 * gnat_ugn.texi: Update doc for some gnatcheck rules.
167 2009-07-22 Robert Dewar <dewar@adacore.com>
169 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
170 contents of SCO tables.
171 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
172 scos.adb, scos.ads: New files.
173 * gcc-interface/Make-lang.in: Update dependencies.
175 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
176 fixes and reformatting.
178 2009-07-22 Robert Dewar <dewar@adacore.com>
180 * g-socket.ads: Minor reformatting
182 2009-07-22 Gary Dismukes <dismukes@adacore.com>
184 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
185 include the entity kind for following cases of unreferenced entities:
186 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
188 2009-07-22 Ed Falis <falis@adacore.com>
190 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
193 2009-07-22 Arnaud Charlet <charlet@adacore.com>
195 * adadecode.c: Make this file compilable outside of GCC.
197 2009-07-22 Thomas Quinot <quinot@adacore.com>
199 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
200 (partially) default-initialized socket sets are handled properly by
201 clearing their Set component.
203 2009-07-22 Bob Duff <duff@adacore.com>
205 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
207 2009-07-22 Robert Dewar <dewar@adacore.com>
209 * gnat_ugn.texi: Minor reformatting
211 2009-07-22 Ed Schonberg <schonberg@adacore.com>
213 * errout.adb (Error_Msg): A style message within an instantiation
214 should not be labelled as an error.
216 2009-07-22 Ed Schonberg <schonberg@adacore.com>
218 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
219 in initialization expression if function does not have convention Ada.
221 2009-07-22 Sergey Rybin <rybin@adacore.com>
223 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
224 '--separate-label' to control label layout.
226 2009-07-22 Robert Dewar <dewar@adacore.com>
228 * exp_tss.ads, sem_eval.adb: Minor reformatting
230 2009-07-22 Bob Duff <duff@adacore.com>
232 * exp_dist.adb, exp_dist.ads: Update comments.
234 2009-07-22 Brett Porter <porter@adacore.com>
236 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
238 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
240 2009-07-22 Gary Dismukes <dismukes@adacore.com>
242 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
243 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
245 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
246 used poor terminology.
248 2009-07-22 Robert Dewar <dewar@adacore.com>
250 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
251 * sem_eval.adb, exp_tss.adb: Minor comment update.
252 * stylesw.adb: Code clean up.
254 2009-07-22 Ed Schonberg <schonberg@adacore.com>
256 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
257 component size is an exact number of bytes, an array type can have a
258 size clause that forces packing even though the array type itself is
261 2009-07-22 Thomas Quinot <quinot@adacore.com>
263 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
264 if there is a previous entity with the same name in the scope, ignore
265 it if it is the renaming declaration for a generic package introduced
268 2009-07-22 Nicolas Roche <roche@adacore.com>
270 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
271 handler on x86_64 windows.
273 2009-07-22 Arnaud Charlet <charlet@adacore.com>
275 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
276 false positives in CodePeer, so ignore this pragma in this mode.
278 2009-07-22 Thomas Quinot <quinot@adacore.com>
280 * sem_util.adb, sem_ch10.adb: Minor reformatting
282 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
283 special handling for the case of no data received and Item'First =
284 Stream_Element_Offset'First.
285 (Last_Index): New subprogram factoring the above special handling
286 over the various locations where it is required.
288 2009-07-22 Arnaud Charlet <charlet@adacore.com>
290 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
291 checks in CodePeer_Mode.
292 * gcc-interface/Make-lang.in: Update dependencies.
294 2009-07-22 Ed Schonberg <schonberg@adacore.com>
296 * sem_aggr.adb: Improve error message.
298 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
299 of an address representation clause.
300 * freeze.adb (Freeze_Static_Object): An local imported object is legal
301 if it has an address clause.
303 2009-07-22 Thomas Quinot <quinot@adacore.com>
305 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
306 expression to insert an elab check using a conditional expression, be
307 sure to carry the original list of interpretations to the new location.
309 2009-07-22 Gary Dismukes <dismukes@adacore.com>
311 * gnat1drv.adb: Fix spelling error.
313 2009-07-22 Javier Miranda <miranda@adacore.com>
315 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
316 at the library level and fix a hidden bug in its implementation: its
317 functionality for renaming objects was broken because
318 N_Object_Renaming_Declarations nodes are not a subclass of
319 N_Declaration nodes (as documented in sinfo.ads).
320 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
321 check nodes that are actuals of generic instantiations.
323 2009-07-22 Ed Schonberg <schonberg@adacore.com>
325 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
326 context of a compilation unit is being analyzed. Used to detect
327 circularities created by with_clauses that are not detected by the
329 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
330 analyzing the context of the current compilation unit, to detect
331 possible circularities created by with_clauses.
333 2009-07-22 Thomas Quinot <quinot@adacore.com>
335 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
337 2009-07-22 Robert Dewar <dewar@adacore.com>
339 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
340 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
342 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
343 * gnat_ugn.texi: Add documentation of -gnatyB
344 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
346 2009-07-22 Robert Dewar <dewar@adacore.com>
348 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
349 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
350 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
351 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
352 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
353 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
354 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
355 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
356 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
357 obey short-circuit style rule.
359 2009-07-20 Bob Duff <duff@adacore.com>
361 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
362 instead of "and", because otherwise Parent_Last_Bit is read
363 uninitialized in the case where it's not a tagged type, or the tagged
364 parent does not have a complete rep clause.
366 2009-07-20 Robert Dewar <dewar@adacore.com>
368 * stylesw.ads: Minor documentation change.
370 * types.ads: Minor reformatting
372 2009-07-20 Javier Miranda <miranda@adacore.com>
374 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
375 generating the tag checks associated with dispatching calls.
376 * exp_disp.adb (Apply_Access_Checks): New subprogram.
377 (New_Value): This routine was previously local to expand dispatching
378 calls but it is now used also by Apply_Access_Checks.
379 (Expand_Dispatching_Calls): Cleanup code because the functionality of
380 tag checks is now provided by Apply_Access_Checks.
381 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
382 case of dispatching calls.
384 2009-07-20 Arnaud Charlet <charlet@adacore.com>
386 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
389 2009-07-20 Gary Dismukes <dismukes@adacore.com>
391 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
392 for VMS, only rewrite the first component of the associated exception's
393 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
394 and third components that were being replaced with 'M' and 'S'.
396 2009-07-20 Arnaud Charlet <charlet@adacore.com>
398 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
399 Also do not generate error when parsing a spec in CodePeer mode.
401 2009-07-20 Javier Miranda <miranda@adacore.com>
403 * checks.adb (Apply_Access_Check): Avoid checks on availability of
404 runtime function Offset_To_Top_Ptr when compiling with no tagged
406 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
407 adding code to the init proc when compiling for VM backends.
409 2009-07-20 Vincent Celier <celier@adacore.com>
411 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
412 account switches -gnatw.?
414 2009-07-20 Thomas Quinot <quinot@adacore.com>
416 * sem_dist.adb, exp_dist.adb: Minor reformatting
418 * Make-generated.in: New file.
420 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
422 2009-07-20 Javier Miranda <miranda@adacore.com>
424 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
426 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
427 dynamically tagged expression.
428 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
430 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
431 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
433 2009-07-20 Arnaud Charlet <charlet@adacore.com>
435 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
436 CodePeer_Mode is set, to benefit from full front-end expansion
439 2009-07-20 Ed Schonberg <schonberg@adacore.com>
441 * sem_res.adb: Add guard.
443 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
444 for possible attribute definition of External_Tag, in case clause
445 appears in the private part of a package.
447 2009-07-20 Jerome Guitton <guitton@adacore.com>
449 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
451 2009-07-20 Vadim Godunko <godunko@adacore.com>
453 * a-coorma.adb: Minor reformatting.
455 2009-07-20 Ed Schonberg <schonberg@adacore.com>
457 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
459 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
460 provide an itype reference to gigi to force elaboration of the subtype
463 2009-07-20 Tristan Gingold <gingold@adacore.com>
465 * g-expect.adb: Avoid closeing already closed handle.
467 2009-07-20 Robert Dewar <dewar@adacore.com>
469 * sprint.adb (Write_Subprogram_Name): New procedure to output
470 subprogram name with possible preceding $ (replaces
471 Note_Implicit_Run_Time_Call).
473 2009-07-20 Robert Dewar <dewar@adacore.com>
475 * vms_data.ads: Minor reformatting
477 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
478 applies to base type.
479 (Parent_Subtype): Now allowed on record subtype, applies to base type
480 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
481 for case of fully repped tagged type.
482 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
483 tag save/restore for fully repped tagged type case.
484 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
485 * fe.h (Is_Fully_Repped_Tagged_Type): New function
486 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
487 overlap of tagged type components with parent type if parent type is
489 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
491 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
493 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
494 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
496 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
497 logical operators (AND/OR/XOR), not comparison operators.
499 * sprint.ads: Minor reformatting
501 2009-07-20 Ed Schonberg <schonberg@adacore.com>
503 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
504 intrinsics, check that argument is a string literal, rather than
505 checking for staticness.
507 2009-07-20 Robert Dewar <dewar@adacore.com>
509 * sem_ch13.adb: Minor reformatting
511 * einfo.ads: Minor reformatting
512 Component_Bit_Offset is no longer considered obsolescent
514 2009-07-20 Nicolas Roche <roche@adacore.com>
516 * a-calend.adb: Redefine time_t as signed integer with same size as
518 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
520 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
523 2009-07-20 Javier Miranda <miranda@adacore.com>
525 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
526 constructors that have anonymous access type formals.
528 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
529 class-wide arguments in case of imported C++ subprograms.
531 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
533 2009-07-20 Sergey Rybin <rybin@adacore.com>
535 * vms_data.ads: Update qualifiers.
537 2009-07-20 Robert Dewar <dewar@adacore.com>
539 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
542 2009-07-17 Richard Guenther <rguenther@suse.de>
545 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
546 state. Remove unused parameter.
547 (gnat_gimplify_function): Do not gimplify here.
548 Fold into its only caller and remove.
549 (gnat_builtin_function): Adjust for end_subprog_body signature change.
550 (gnat_write_global_declarations): Also finalize the CU.
551 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
552 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
553 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
555 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
557 2009-07-15 Arnaud Charlet <charlet@adacore.com>
559 * gcc-interface/Make-lang.in: Update dependencies
561 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
563 2009-07-15 Robert Dewar <dewar@adacore.com>
565 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
566 N_Label. Remove SCO table entry for entry point (not used).
568 * par_sco.ads: Remove SCO entry point type (not used)
570 * switch.adb: Minor code clean up.
572 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
574 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
576 2009-07-15 Thomas Quinot <quinot@adacore.com>
578 * gnatls.adb: Minor reformatting
580 * gnatcmd.adb: Minor code reorganization
582 2009-07-15 Ed Schonberg <schonberg@adacore.com>
584 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
585 determine whether a component of a private type has a composite type.
587 2009-07-15 Robert Dewar <dewar@adacore.com>
589 * sem_ch10.adb: Minor reformatting throughout
590 Minor code reorganization (put nested subprograms in alpha order)
592 2009-07-15 Ed Schonberg <schonberg@adacore.com>
594 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
595 when compiling a call to a protected function that returns a controlled
598 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
600 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
601 one. Add task locking and unlocking around the critical region which
602 mentions localtime_r and global variable timezone for various targets.
603 Comment reformatting.
605 2009-07-15 Robert Dewar <dewar@adacore.com>
607 * gnat_rm.texi: Document s-ststop.ads
609 * impunit.ad: (Map_Array): New table of alternative names
610 (Get_Kind_Of_Unit): Return possible suggested alternative name
612 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
615 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
616 alternative unit if an implementation unit is with'ed.
618 2009-07-15 Robert Dewar <dewar@adacore.com>
620 * gnat_ugn.texi: Minor updates.
622 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
624 2009-07-15 Ed Schonberg <schonberg@adacore.com>
626 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
627 conditions of a derived boolean type.
630 2009-07-15 Robert Dewar <dewar@adacore.com>
632 * gnat1drv.adb: Initialize SCO tables
634 * par-load.adb: Call SCO_Record for main unit spec
636 * par.adb: Make call to SCO_Record for main unit
638 * par_sco.adb (Unit_Table): Change format to facilitate sort
639 (Process_Decisions): New procedure with list argument
640 (Traverse_Generic_Package_Declaration): New procedure
641 (Initialize): New procedure, replaces Init
642 (SCO_Output): Sort unit table before output
643 (SCO_Record): Avoid duplications
644 (SCO_Record): Handle remaining cases of units
645 (Traverse_Declarations_Or_Statements): Handle generics
647 * par_sco.ads (Initialize): New peocedure (replaces Init)
649 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
652 2009-07-15 Arnaud Charlet <charlet@adacore.com>
654 * debug.adb: Add -gnatd.J switch for now to support scil generation in
655 parallel. Add missing doc for -gnatd.I and -gnatd.O
657 2009-07-15 Robert Dewar <dewar@adacore.com>
659 * lib-load.adb: Minor reformatting
661 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
663 2009-07-15 Robert Dewar <dewar@adacore.com>
665 * par.adb: Minor reformatting
666 Add ??? comment for possible bad comment
668 * par-ch10.adb: Minor reformatting
670 2009-07-15 Ed Schonberg <schonberg@adacore.com>
672 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
673 is a literal of a derived boolean type, it appears as an unchecked
674 conversion. Retrieve actual value from expression of conversion.
676 2009-07-15 Robert Dewar <dewar@adacore.com>
678 * sem_ch3.adb: Minor reformatting
680 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
681 lib-writ.ads, lib-writ.adb: Minor reformatting.
682 Fix problem with SCO format in ALI files
684 2009-07-15 Robert Dewar <dewar@adacore.com>
686 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
687 exp_aggr.adb: Minor code reorganization (better calling sequence for
690 2009-07-15 Thomas Quinot <quinot@adacore.com>
692 * opt.ads: Minor comment edits
694 2009-07-15 Tristan Gingold <gingold@adacore.com>
696 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
699 2009-07-15 Robert Dewar <dewar@adacore.com>
701 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
704 * lib-writ.ads: Document addition of SCO lines to ALI file
706 * par_sco.ads, par_sco.adb: New files.
708 * opt.ads (Generate_SCO): New switch
710 * par.adb (Par): Call SCO_Record to record SCO information
712 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
714 * switch-c.adb: Recognize -gnateS to generate SCO information
716 * usage.adb: Add line for -gnateS
718 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
720 2009-07-15 Robert Dewar <dewar@adacore.com>
722 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
725 2009-07-15 Thomas Quinot <quinot@adacore.com>
727 * g-socthi-mingw.adb: Minor comment addition
729 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
731 2009-07-15 Robert Dewar <dewar@adacore.com>
733 * g-htable.ads, s-htable.ads: Minor reformatting
735 2009-07-15 Robert Dewar <dewar@adacore.com>
737 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
739 (Set_GNAT_Mode_Warnings): New procedure.
741 * lib-xref.adb: Minor reformatting
743 2009-07-15 Robert Dewar <dewar@adacore.com>
745 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
746 Minor code reorganization
748 2009-07-14 Taras Glek <tglek@mozilla.com>
749 Rafael Espindola <espindola@google.com>
751 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
752 installing plugin headers.
754 2009-07-13 Ed Schonberg <schonberg@adacore.com>
756 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
757 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
758 and link it to the expression whose value it captures.
760 2009-07-13 Robert Dewar <dewar@adacore.com>
762 * output.adb: Minor comment addition for last change
764 * sinfo.ads: Minor reformatting
766 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
768 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
769 spawn failed like on all other targets.
771 2009-07-13 Ed Schonberg <schonberg@adacore.com>
773 * exp_ch7.adb: Indicate origin of temporary for transient expression.
775 2009-07-13 Thomas Quinot <quinot@adacore.com>
777 * s-oscons-tmplt.c: Add comment.
779 2009-07-13 Robert Dewar <dewar@adacore.com>
781 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
782 reformatting. Minor code reorganization (add 9 argument version of
785 * impunit.adb: Remove s-os_lib from list of system extensions.
787 * sem_util.ads: Minor reformatting
789 * output.adb: Add warnings off/on around System.OS_Lib.
791 2009-07-13 Bob Duff <duff@adacore.com>
793 * exp_dist.adb: Minor comment updates.
795 2009-07-13 Gary Dismukes <dismukes@adacore.com>
797 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
798 several references to CodePeer.
800 2009-07-13 Bob Duff <duff@adacore.com>
802 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
803 Build_TypeCode_Function_All): Do not recurse if the type is the base
806 2009-07-13 Robert Dewar <dewar@adacore.com>
808 * exp_ch4.adb: Minor comment change
810 2009-07-13 Ed Schonberg <schonberg@adacore.com>
812 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
813 type of iteration, to prevent spurious warnings.
815 2009-07-13 Nicolas Roche <roche@adacore.com>
817 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
820 2009-07-13 Arnaud Charlet <charlet@adacore.com>
822 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
823 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
825 (CodePeer_Mode): New -gnatC switch.
826 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
829 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
831 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
832 integer bound forces the check if it is compared to its subtype range.
834 2009-07-13 Robert Dewar <dewar@adacore.com>
836 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
837 prj-strt.ads: Minor reformatting
839 2009-07-13 Thomas Quinot <quinot@adacore.com>
841 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
842 set the type of the From_Any call to the base type.
844 2009-07-13 Doug Rupp <rupp@adacore.com>
846 * symbols-processing-vms-ia64.adb (Process): Add variables and
847 constants to retrieve and check for symbol visibility.
849 2009-07-13 Javier Miranda <miranda@adacore.com>
851 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
852 the identical type we remove the conversion completely because
855 2009-07-13 Emmanuel Briot <briot@adacore.com>
857 * prj-err.adb (Error_Msg): One more case where a message should be
858 considered as a warning.
860 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
862 2009-07-13 Thomas Quinot <quinot@adacore.com>
864 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
865 calling stubs in the (library level) scope of the RCI locator, where it
866 is attached, not in the caller's scope.
868 2009-07-13 Javier Miranda <miranda@adacore.com>
870 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
871 interface object declarations we delay the generation of the equivalent
872 record type declarations until its expansion because there are cases in
873 which they are not required.
875 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
877 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
878 addition of assertion.
880 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
881 interface types require no equivalent constrained type declarations
882 because the expanded code only references the tag component associated
884 (Find_Interface_Tag): Improve management of interfaces that are
885 ancestors of tagged types.
887 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
888 class-wide object declarations to add missing support to statically
889 displace the pointer to the object to reference the tag component
890 associated with the interface.
892 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
893 auxiliary types associated with user-defined dispatching calls if the
894 type has no user-defined primitives.
896 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
898 * mingw32.h: Make it explicit that we need XP or later.
900 * initialize.c: Remove useless extern symbol declaration.
902 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
903 code reuse in expect.c.
905 * adaint.c: Changes throughout the Windows section to redesign storage
906 of the child process list and the process identification.
908 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
909 for interfacing, fix errors.
910 (__gnat_expect_portable_execvp): use function in adaint.c
912 2009-07-13 Emmanuel Briot <briot@adacore.com>
914 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
915 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
916 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
917 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
918 (Prj.Nmsc.Report_Error): Removed, no longer needed.
919 Always use Prj.Err.Report_Message.
921 2009-07-13 Robert Dewar <dewar@adacore.com>
923 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
926 2009-07-13 Robert Dewar <dewar@adacore.com>
928 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
929 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
931 2009-07-13 Emmanuel Briot <briot@adacore.com>
933 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
934 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
935 Ada_Prj_Include_File_Set): Removed, since not needed
938 2009-07-13 Ed Schonberg <schonberg@adacore.com>
940 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
941 Analyze_Membership_Op.
943 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
944 Resolve_Membership_Op.
946 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
949 2009-07-13 Robert Dewar <dewar@adacore.com>
951 * clean.adb: Minor reformattting
953 2009-07-13 Emmanuel Briot <briot@adacore.com>
955 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
956 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
957 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
958 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
959 and attributes in a project tree.
960 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
961 Remove last remaining mode-specific code (ada_only or
962 multi_language). This was duplicating code
963 (Get_Mode, Set_Mode): removed, no longer used.
964 (Initialize_Project_Path): all tools will now take into account both
965 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
966 Remove some global variables and subprograms no longer used
967 Make temporary files tree-specific, to avoid interferences between
968 trees loaded in memory at the same time.
969 (Prj.Delete_Temporary_File): new subprogram
970 (Object_Paths, Source_Paths): fields no longer stored in the project
971 tree, since they are only needed locally in Set_Ada_Paths.
972 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
974 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
975 by local variables in the appropriate subprograms
976 (Has_Foreign_Sources): removed.
978 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
980 2009-07-13 Arnaud Charlet <charlet@adacore.com>
982 * gnat1drv.adb (Adjust_Global_Switches): No longer set
983 Back_Annotate_Rep_Info in inspector mode.
984 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
986 * opt.ads: Update comment.
988 2009-07-13 Robert Dewar <dewar@adacore.com>
990 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
991 prj.ads: Minor reformatting and code reorganization.
993 * par-ch3.adb (Check_Restricted_Expression): New procedure
995 2009-07-13 Ed Schonberg <schonberg@adacore.com>
997 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
998 attribute into a call of the corresponding suprogram, create extra
999 formals for the subprogram, because it may be a renaming whose
1000 analysis does not create extra formals.
1002 2009-07-13 Emmanuel Briot <briot@adacore.com>
1004 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1005 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1006 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1007 prj-tree.ads: Minor reformatting.
1008 (Processing_Flags): new record to encapsulate the set of common
1009 parameters to several subprograms in the project manager.
1010 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1011 Remove the need for the Current_Dir parameter in subprograms.
1012 (Look_For_Sources): minor refactoring, now that we no longer need to
1013 share subprograms between the two Ada_Only and Multi_Language modes
1014 (Processing_Flags): New field Error_On_Unknown_Language.
1015 Merge tests for library project between gnatmake and gprbuild.
1017 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1019 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1022 2009-07-13 Emmanuel Briot <briot@adacore.com>
1024 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1027 2009-07-13 Thomas Quinot <quinot@adacore.com>
1029 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1030 Write,Input,Output} from private view to full view.
1032 * sem_type.adb, sem_type.ads: Minor reformatting
1034 2009-07-13 Nicolas Setton <setton@adacore.com>
1036 * exp_dbug.ads: Add documentation note on the utility of
1037 DW_AT_GNAT_encoding for IDEs.
1039 2009-07-13 Robert Dewar <dewar@adacore.com>
1041 * g-socthi-vxworks.adb: Minor reformatting
1043 * gnatcmd.adb: Minor reformatting
1045 2009-07-13 Thomas Quinot <quinot@adacore.com>
1047 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1048 removed, not used anymore.
1049 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1050 New subprogram, implements copy of an Any value into a limited object.
1051 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1052 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1053 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1054 of parameters of a limited type, use the above new subprogram.
1056 2009-07-13 Emmanuel Briot <briot@adacore.com>
1058 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1060 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1062 (Error_Report): Remove global variable, replaced by parameters.
1064 2009-07-13 Thomas Quinot <quinot@adacore.com>
1066 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1067 standard sendto(2) interface for connected sockets (passing a null
1068 destination address). Use send(2) instead for that case.
1070 2009-07-13 Pascal Obry <obry@adacore.com>
1072 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1074 2009-07-13 Emmanuel Briot <briot@adacore.com>
1076 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1077 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1078 variables and tables in prj-nmsc.adb.
1079 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1080 (Project_Processing_Data): New record
1081 Simplify/unify check for missing sources.
1083 2009-07-13 Emmanuel Briot <briot@adacore.com>
1085 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1086 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1087 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1088 prj-tree.ads (Immediate_Directory_Of): Removed.
1089 (Prj.Pars): Now parse the project simulating a default config file.
1090 (Add_Default_GNAT_Naming_Scheme): New subprogram
1091 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1092 Remove gnatmake-specific parsing of source files.
1093 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1094 the error itself to provide more precise diagnostics.
1095 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1096 a unit belongs to several projects.
1097 (Copy_Interface_Sources): Search the full path of files to copy in the
1098 list of sources of the application rather than in the list of units.
1099 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1101 (Check_File): Use htables to find out whether a source is duplicated.
1102 (Add_Source): check whether the source or unit were already seen earlier
1104 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1106 2009-07-13 Robert Dewar <dewar@adacore.com>
1108 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1109 expression if extensions permitted.
1111 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1113 (P_Relation): Use P_Membership_Test
1115 * par.adb (P_Membership_Test): New procedure (implement membership set
1118 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1120 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1122 2009-07-13 Thomas Quinot <quinot@adacore.com>
1124 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1125 Do not attempt to generate stubs for predefined primitives of
1126 synchronized interfaces.
1127 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1130 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1132 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1133 Controlling_Result flag from the operation they override.
1135 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1137 * gcc-interface/Make-lang.in: Update dependencies
1139 2009-07-13 Robert Dewar <dewar@adacore.com>
1141 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1142 details on unsupported constructs.
1144 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1147 * s-trafor-default.adb: Correct some warnings
1149 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1150 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1153 * par-ch4.adb (Conditional_Expression): Capture proper location for
1154 conditional expression, should point to IF.
1156 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1157 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1158 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1159 reorganization (use conditional expressions).
1161 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1163 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1164 build-in-place function that returns an inherently limited type (not
1165 just a task type) create proper object declaration so that extra
1166 build-in-place actuals are properly added to the call.
1168 2009-07-13 Robert Dewar <dewar@adacore.com>
1170 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1172 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1174 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1176 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1177 Warn_On_Suspicious_Modulus_Value.
1179 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1181 * usage.adb: Add lines for -gnatw.m/.M switches.
1183 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1185 2009-07-13 Javier Miranda <miranda@adacore.com>
1187 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1188 reading the Is_Interface attribute of the dispatching type.
1190 2009-07-13 Robert Dewar <dewar@adacore.com>
1192 * a-convec.adb: Minor code reorganization (use conditional expressions)
1194 2009-07-13 Robert Dewar <dewar@adacore.com>
1196 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1198 2009-07-13 Robert Dewar <dewar@adacore.com>
1200 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1203 * par-ch4.adb: Minor reformatting
1205 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1207 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1208 => Is_Atomic_Aggregate
1210 2009-07-13 Emmanuel Briot <briot@adacore.com>
1212 * prj-nmsc.adb: Avoid traversing the list of source files if
1213 we have already processed all locally removed files.
1215 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1217 * gnat_ugn.texi: Fix typo.
1219 2009-07-13 Robert Dewar <dewar@adacore.com>
1221 * freeze.adb: Minor reformatting
1222 Minor code reorganization (use Nkind_In)
1224 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1226 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1228 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1229 local variable and do not test it in Compile_Time_Bad_Alignment.
1230 Do not issue size or alignment warnings for the X'Address form.
1231 * sem_util.ads (Find_Overlaid_Object): Delete.
1232 (Find_Overlaid_Entity): New procedure.
1233 * sem_util.adb (Find_Overlaid_Object): Rename to...
1234 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1235 whether the address is offseted within the overlaid entity.
1236 (Has_Compatible_Alignment): Track the offset globally instead of
1237 passing it to Check_Offset. For an indexed component, compute the
1238 full offset when possible. If the resulting offset is zero, only
1240 (Check_Offset): Delete.
1241 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1242 (Address_Aliased_Entity): Delete.
1243 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1244 Find_Overlaid_Entity to find the overlaid entity and the offset.
1245 Adjust throughout for above change.
1246 (Validate_Address_Clauses): Always use attributes of entities, not of
1247 their type. Tweak message for warning. Call Has_Compatible_Alignment
1248 if the address is offseted to warn about incompatible alignments.
1249 * gcc-interface/gigi.h (annotate_object): Declare.
1250 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1251 entity. Call annotate_object instead of annotating manually objects.
1252 (annotate_object): New function.
1253 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1256 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1258 * gcc-interface/ada-tree.h: Minor reorganization.
1259 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1260 (gnat_print_type): Likewise.
1262 2009-07-11 Thomas Quinot <quinot@adacore.com>
1264 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1267 * exp_ch6.adb: Minor reformatting
1269 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1271 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1272 account possible type qualification to determine whether aggregate
1273 needs a target temporary to respect atomic type or object.
1275 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1276 Expand_Atomic_Aggregate.
1278 2009-07-11 Emmanuel Briot <briot@adacore.com>
1280 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1282 (Excluded_Sources_Htable): No longer a global table.
1283 Change error message to indicate which files are illegal in the list
1284 of excluded files, as opposed to only the location in the project
1286 (Find_Source): New subprogram.
1288 2009-07-10 Thomas Quinot <quinot@adacore.com>
1290 * exp_ch7.adb: Update comments.
1292 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1294 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1295 clause if -gnatI is set instead of crashing.
1297 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1299 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1300 Additional work to remove redundant successive raise statements, in
1301 this case access checks.
1303 2009-07-10 Vincent Celier <celier@adacore.com>
1305 * make.adb (Compile): Always create a deep copy of the mapping file
1306 argument (-gnatem=...) as it may be deallocate/reallocate by
1307 Normalize_Arguments.
1309 2009-07-10 Javier Miranda <miranda@adacore.com>
1311 * einfo.adb (Directly_Designated_Type): Add assertion.
1313 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1314 access types before using attribute Directly_Designated_Type.
1316 2009-07-10 Emmanuel Briot <briot@adacore.com>
1318 * prj.ads: Minor typo fix
1320 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1322 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1325 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1326 subprogram is a function call, resolve properly, to ensure that extra
1327 actuals are added as needed.
1329 2009-07-10 Thomas Quinot <quinot@adacore.com>
1331 * sem_aggr.adb: Minor comments editing
1333 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1335 2009-07-10 Robert Dewar <dewar@adacore.com>
1337 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1339 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1342 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1343 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1344 case of conditional expressions that may not be elaborated.
1346 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1347 conditional expression where we may not execute then then or else
1350 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1352 * i-cexten.ads (bool): New type.
1354 2009-07-10 Robert Dewar <dewar@adacore.com>
1356 * sinfo.ads (N_Short_Circuit): New definition
1358 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1359 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1361 2009-07-10 Javier Miranda <miranda@adacore.com>
1363 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1364 non-tagged record types.
1367 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1368 with non-tagged types. Required to import C++ classes that have no
1370 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1371 returning non-tagged types. For backward compatibility, if the
1372 constructor returns a class wide type we internally change the
1373 returned type to the corresponding non class-wide type.
1376 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1377 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1378 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1379 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1382 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1384 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1386 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1388 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1390 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1393 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1396 (pragma CPP_Class): Document that it can be used now with non-tagged
1398 (pragma CPP_Constructor): Document that it can be used now with
1399 functions returning specific types. For backward compatibility
1400 we also support functions returning class-wide types.
1403 (Interfacing with C++ constructors): Update the examples to incorporate
1404 the new syntax in which the functions used to import C++ constructors
1405 return specific types.
1406 (Interfacing with C++ at the Class Level): Update the examples to
1407 incorporate the new syntax in which the functions used to import
1408 C++ constructors return specific types.
1410 2009-07-10 Thomas Quinot <quinot@adacore.com>
1412 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1413 Make_Disp_Conditional_Select_Body,
1414 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1415 interface nor a concurrent type, the primitive body is empty. Generate
1416 a null statement so that it remains well formed.
1418 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1420 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1421 replace references to them in defaulted component expressions with
1422 references to the values of the discriminants of the target object.
1424 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1426 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1427 pragma, to capture global references if the context is generic.
1429 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1430 appears within the initialization procedure for the corresponding
1431 record, replace it with the proper discriminal.
1433 2009-07-10 Vincent Celier <celier@adacore.com>
1435 * make.adb: Do not include object directories or library ALI
1436 directories of library projects in the object path.
1438 2009-07-10 Javier Miranda <miranda@adacore.com>
1440 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1441 Typ argument to ensure proper management of access types.
1443 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1445 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1446 Taft-Amendment type, place the finalization list in the package body,
1447 to ensure that the tree for the spec is identical whenever it is
1450 2009-07-10 Javier Miranda <miranda@adacore.com>
1452 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1453 inheriting attributes from a private Parent_Base.
1455 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1457 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1458 statements with the same condition.
1460 2009-07-10 Robert Dewar <dewar@adacore.com>
1462 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1464 2009-07-09 Tom Tromey <tromey@redhat.com>
1466 * raise-gcc.c: Include dwarf2h (unconditionally).
1468 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1470 * sem_ch10.adb (Install_Context): If the unit is a package body,
1471 install the private with_clauses of the corresponding package
1474 2009-07-09 Robert Dewar <dewar@adacore.com>
1476 * checks.adb: Minor reformatting
1478 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1480 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1483 2009-07-09 Thomas Quinot <quinot@adacore.com>
1485 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1486 Do not warn for a constant overlaying any constant object
1488 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1490 * sem_ch10.adb (Install_Context): If the unit is a package body,
1491 install the private with_clauses of the corresponding package
1494 2009-07-09 Robert Dewar <dewar@adacore.com>
1496 * checks.adb: Minor reformatting
1498 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1500 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1503 2009-07-09 Thomas Quinot <quinot@adacore.com>
1505 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1506 Do not warn for a constant overlaying any constant object
1508 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1510 * gcc-interface/Make-lang.in: Update dependencies
1512 2009-07-09 Thomas Quinot <quinot@adacore.com>
1514 * g-socket.adb (Check_Selector): Do not create local copies of the
1515 socket sets on the stack.
1517 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1519 * gnat_ugn.texi: Add missing VMS translations.
1521 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1523 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1524 condition, to prevent generation of visible code during expansion,
1525 when Check is not enabled.
1527 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1529 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1530 the check gets registered for any available local handler
1533 * sem_util.adb: Add with and use of Exp_Ch11.
1534 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1535 that the check gets registered for any available local handler.
1537 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1540 2009-07-09 Steve Baird <baird@adacore.com>
1542 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1544 (Expand_N_Exception_Declaration): Fix handling of exceptions
1545 declared in a subprogram.
1547 2009-07-09 Emmanuel Briot <briot@adacore.com>
1549 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1552 2009-07-09 Thomas Quinot <quinot@adacore.com>
1554 * freeze.adb: Minor reformatting
1556 * exp_ch3.adb: Minor comment fix.
1558 * sinfo.ads: Minor comment fix
1560 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1562 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1564 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1566 * freeze.adb (Freeze_Expression): If the expression is the name of a
1567 function in a call, and the function has not been frozen yet, create
1568 extra formals for it to ensure that the proper actuals are created
1569 when expanding the call.
1571 2009-07-09 Emmanuel Briot <briot@adacore.com>
1573 * prj-pp.adb (Print): Fix handling of source index when set on a
1576 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1578 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1579 a temporary to the source expression whose value it captures.
1581 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1583 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1585 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1588 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1590 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1591 parameters when the subtype of the actual is not known to be a subrange
1592 of the formal's subtype.
1593 (Expand_Call): Generate a range check only in the E_In_parameter case
1594 (in out parameter range checks are now handled in Expand_Actuals).
1596 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1599 2009-07-07 Robert Dewar <dewar@adacore.com>
1601 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1603 2009-07-07 Javier Miranda <miranda@adacore.com>
1605 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1606 designated type comes from a limited views.
1608 2009-07-07 Emmanuel Briot <briot@adacore.com>
1610 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1611 locally removed files that are later made visible again in an importing
1614 2009-07-07 Robert Dewar <dewar@adacore.com>
1616 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1618 2009-07-07 Sergey Rybin <rybin@adacore.com>
1620 * gnat_ugn.texi: Add an example to the description of gnatcheck
1621 'Style_Checks' rule option.
1623 2009-07-07 Tristan Gingold <gingold@adacore.com>
1625 * seh_init.c: Fix inline assembly statement in seh_init.c
1627 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1629 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1630 an entry body. Only the formals of the entry declaration are traced.
1632 2009-07-07 Robert Dewar <dewar@adacore.com>
1634 * s-osprim-mingw.adb: Minor code reorganization
1636 2009-07-07 Robert Dewar <dewar@adacore.com>
1638 * prj-nmsc.adb: Minor reformatting
1640 2009-07-07 Pascal Obry <obry@adacore.com>
1642 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1643 cases where Pattern is longer than Source.
1645 2009-07-07 Pascal Obry <obry@adacore.com>
1647 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1649 2009-07-07 Emmanuel Briot <briot@adacore.com>
1651 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1654 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1656 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1657 primitive operations, in case one of them is called in the
1658 initialization procedure for the type.
1660 2009-07-07 Robert Dewar <dewar@adacore.com>
1662 * a-calend.adb: Minor code reorganization (use conditional expressions)
1664 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1665 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1666 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1667 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1668 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1669 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1671 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1673 * checks.adb (Generate_Range_Check): Replace type conversions with
1674 unchecked conversions to support the case of performing range checks
1675 on Enum'Val (permits integer values to be converted to enumeration).
1677 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1678 Attribute_Succ): Set Do_Range_Check to False before calling
1679 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1680 (Expand_N_Attribute_Reference, case Attribute_Val):
1681 Generate a range check when needed (and set Do_Range_Check to False).
1683 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1684 scalar object initialization if needed.
1686 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1687 when needed on scalar allocators.
1688 (Expand_N_Qualified_Expression): Generate range check when needed.
1689 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1690 Checks on slice ranges handled in Resolve_Slice.
1692 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1693 when needed, for all scalar assignments, not just discrete.
1694 (Expand_Simple_Function_Return): Resolve the conversion created for a
1695 scalar function return so that the conversion will get expanded to
1696 generate a possible constraint check.
1698 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
1699 in out scalar actuals when subtypes don't match, to ensure generation
1700 of return checks (and set Do_Range_Check to False).
1701 (Expand_Call): Uncomment code to perform range checks, but make it apply
1702 only to in and in out parameters (checks on parameter returns are
1703 handled in Expand_Actuals). If a scalar actual for a call to a derived
1704 subprogram is marked as needing a range check, peform it here (and set
1705 Do_Range_Check to False).
1707 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
1708 range check on scalar component associations when needed.
1710 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
1711 infinities but the second type does not, as these aren't compatible
1712 floating-point types.
1714 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
1715 slice is itself a slice, pick up the Etype of the prefix. This handles
1716 the case where the prefix was an Image attribute expanded to a slice,
1717 and ensures that we get the subtype with the slice constraint rather
1718 than the unconstrained subbtype of the 'Image.
1720 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1722 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
1723 overloaded expressions in a conditional expressions.
1725 * sem_res.adb (Resolve): Handle properly overloaded conditional
1728 2009-07-07 Robert Dewar <dewar@adacore.com>
1730 * scng.adb: Minor reformattting
1732 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
1733 association allows conditional expression without parens.
1735 * par-ch4.adb (P_Name): Attribute arguments can be conditional
1736 expressions without enclosing parentheses, and also as parameters,
1737 indexing expressions etc.
1738 (P_Conditional_Expression): New procedure
1739 (P_Expression_If_OK): New procedure
1741 * par.adb (P_Conditional_Expression): New procedure
1742 (P_Expression_If_OK): New procedure
1744 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
1745 form of conditional expression.
1747 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
1748 missing True argument if ELSE argument missing.
1750 * sinfo.adb (Is_Elsif): New flag
1752 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
1753 part of the language, and the documentation is modified accordingly.
1754 (Is_Elsif): New flag
1756 2009-07-06 Olivier Hainque <hainque@adacore.com>
1758 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
1759 setjmp_longjmp): Attach the exception propagation reraise fallback
1760 to the sequence end label location when we have it.
1762 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1765 * init.c (APPLE): Include <mach/mach_init.h>.
1766 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
1768 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
1770 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
1771 (SET_DECL_LANG_SPECIFIC): Likewise.
1772 (TYPE_RM_VALUE): New macro.
1773 (SET_TYPE_RM_VALUE): Likewise.
1774 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
1775 (TYPE_RM_MIN_VALUE): Likewise.
1776 (TYPE_RM_MAX_VALUE): Likewise.
1777 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
1778 (SET_TYPE_RM_MIN_VALUE): Likewise.
1779 (SET_TYPE_RM_MAX_VALUE): Likewise.
1780 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
1782 2009-07-04 Laurent GUERBY <laurent@guerby.net>
1785 * tracebak.c (__gnat_backtrace): Fix old-style definition.
1787 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1789 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
1791 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1794 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
1797 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
1799 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
1801 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1803 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
1804 the type of the left operand if it pads a self-referential type when
1805 the right operand is a constructor.
1807 * gcc-interface/lang-specs.h: Fix copyright date.
1809 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1811 * gcc-interface/decl.c: Include tree-inline.h.
1812 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
1813 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
1814 * gcc-interface/utils2.c: Include tree-inline.
1815 (known_alignment) <CALL_EXPR>: Likewise.
1817 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1819 * raise-gcc.c: Include dwarf2.h conditionally.
1821 2009-06-29 Tom Tromey <tromey@redhat.com>
1823 * raise-gcc.c: Include elf/dwarf2.h.
1825 2009-06-27 Laurent GUERBY <laurent@guerby.net>
1827 * tb-gcc.c (trace_callback): Add casts to silence warning.
1829 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1831 * tb-gcc.c: Fix copyright notice.
1833 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1835 * init.c (__gnat_set_globals): Add prototype.
1836 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
1837 (__gnat_sals_init_using_constructors): Likewise.
1838 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
1839 (get_block_jmpbuf_decl): Likewise.
1840 (gnat_poplevel): Likewise.
1841 (merge_sizes): Rename local variable.
1842 (copy_type): Likewise.
1843 (build_vms_descriptor32): Likewise.
1844 (build_vms_descriptor): Likewise.
1845 (convert_vms_descriptor64): Likewise.
1846 (convert_vms_descriptor32): Likewise.
1847 (convert_to_fat_pointer): Likewise.
1848 (maybe_unconstrained_array): Likewise.
1849 (def_fn_type): Use promoted type with va_arg.
1850 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
1851 (substitute_in_type): Rename local variable.
1852 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
1854 2009-06-26 Laurent GUERBY <laurent@guerby.net>
1856 * tb-gcc.c (trace_callback): Use char* instead of void*.
1857 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
1858 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
1859 (Attribute_to_gnu): Adjust for above change.
1860 (Subprogram_Body_to_gnu): Likewise.
1861 * gcc-interface/utils.c (merge_sizes): Rename local variable.
1862 (copy_type): Likewise.
1863 (build_vms_descriptor32): Likewise.
1864 (build_vms_descriptor): Likewise.
1865 (convert_vms_descriptor64): Likewise.
1866 (convert_vms_descriptor32): Likewise.
1867 (convert_to_fat_pointer): Likewise.
1868 (maybe_unconstrained_array): Likewise.
1869 * gcc-interface/decl.c (substitute_in_type): Likewise.
1871 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1873 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
1874 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
1875 of the upper bound of the index types.
1877 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1879 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
1880 out common predicate. Use the maximum to compute the upper bound of
1881 the index type only when it is not wider than sizetype. Perform the
1882 comparison in the index type for the generic expression. Use real
1883 precision to decide whether to generate special types for debugging
1886 2009-06-26 Matthew Gingell <gingell@adacore.com>
1888 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
1890 2009-06-26 Vincent Celier <celier@adacore.com>
1892 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
1895 2009-06-26 Robert Dewar <dewar@adacore.com>
1897 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
1899 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1901 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
1902 correct arguments to create_field_decl. Remove redundant iteration.
1903 Rewrite computation of the maximum size.
1904 <E_Array_Subtype>: Reorder and simplify handling of special cases.
1905 Rewrite computation of the maximum size. Use consistent naming.
1906 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
1907 comparison order for consistency. Use generic integer node to
1908 build the operator and fold the result.
1910 2009-06-25 Vincent Celier <celier@adacore.com>
1912 * vms_data.ads: Minor comment change
1914 2009-06-25 Gary Dismukes <dismukes@adacore.com>
1916 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
1917 assignment statement to targeting a caller-provided object when the
1918 result type is an interface type.
1920 * exp_ch6.adb (Expand_Call): Remove redundant test of
1921 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
1922 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
1924 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
1925 to OK_For_Limited_Init.
1927 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
1928 condition so that True is returned for all limited interfaces, not
1929 just synchronized ones. Ignore components of an interface type when
1930 checking for limited components (such a component can be a parent
1933 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
1934 (OK_For_Limited_Init): Add type parameter.
1936 * sem_ch3.adb (Check_Initialization): Add type in call to
1937 OK_For_Limited_Init.
1938 (OK_For_Limited_Init): Add new type param in call to
1939 OK_For_Limited_Init_In_05.
1940 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
1941 nonlimited type when the context type is a limited interface. Add type
1944 * sem_ch4.adb (Analyze_Allocator): Add type in call to
1945 OK_For_Limited_Init.
1947 * sem_ch6.adb (Check_Limited_Return): Add type in call to
1948 OK_For_Limited_Init.
1950 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
1951 OK_For_Limited_Init.
1952 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
1954 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
1955 class-wide interface, get the base type before applying Etype, in order
1956 to account for class-wide subtypes.
1958 2009-06-25 Emmanuel Briot <briot@adacore.com>
1960 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
1961 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
1962 between gnatmake and gprbuild.
1963 (Naming_Data): Removed, no longer used
1964 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
1965 needed locally in one subprogram, no need to store forever in the
1967 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
1969 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
1970 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
1971 Spec_Suffix_Id_Of): removed, no longer used.
1973 2009-06-25 Javier Miranda <miranda@adacore.com>
1975 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
1976 types on qualified expression in calls to imported C++ constructors.
1978 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
1979 imported C++ constructors.
1981 2009-06-25 Sergey Rybin <rybin@adacore.com>
1983 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
1985 2009-06-25 Vincent Celier <celier@adacore.com>
1987 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
1988 provided, on Windows change all '/' to '\'.
1990 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
1991 used. Minor comment changes
1993 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
1994 Remove_Forbidden_File_Name.
1996 2009-06-25 Quentin Ochem <ochem@adacore.com>
1998 * prj.ads (Unit_Index): Now general access type.
2000 2009-06-25 Pascal Obry <obry@adacore.com>
2002 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2004 2009-06-25 Emmanuel Briot <briot@adacore.com>
2006 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2007 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2008 computed efficiently from the other fields.
2009 (Object_To_Global_Archive): New subprogram
2010 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2011 (Override_Kind): Fix handling of separates in Ada.
2012 (Create_Mapping_File): Remove duplicate code
2013 (Naming_Data.Implementation_Exception, Specification_Exception):
2014 field removed, since never used.
2015 (Naming_Data.Specs, .Bodies): field removed, since this is only
2016 used while processing the project and is not needed once the tree
2017 is in memory. This brings Naming_Data and Lang_Naming_Data
2018 closer (same content now, but different use still).
2020 2009-06-25 Pascal Obry <obry@adacore.com>
2022 * sem_ch4.adb: Minor reformatting.
2024 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2026 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2028 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2029 Unchecked_Access): If the context is an interface type, and the prefix
2030 is of the corresponding class-wide type, do not insert a conversion
2031 because the pointer displacement has already taken place, and we must
2032 retain the class-wide type in a dispatching context.
2034 2009-06-25 Emmanuel Briot <briot@adacore.com>
2036 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2037 the previous source file.
2038 (Create_Mapping): Iterate on sources rather than on units.
2040 2009-06-25 Emmanuel Briot <briot@adacore.com>
2042 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2043 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2044 (Source_Data): no longer use Path.Name to point to a locally removed
2045 file. Instead we use the field Locally_Removed which is clearer
2047 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2049 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2051 * sem_maps.adb, sem_maps.ads: Removed, not used.
2053 2009-06-25 Ed Falis <falis@adacore.com>
2055 * s-vxwext-rtp.ads: Add missing declaration
2057 2009-06-25 Matthew Gingell <gingell@adacore.com>
2059 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2060 speed up unmapped case.
2062 2009-06-25 Vincent Celier <celier@adacore.com>
2064 * prj-nmsc.adb (Check): Change error message for illegal abstract
2067 2009-06-25 Robert Dewar <dewar@adacore.com>
2069 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2071 2009-06-25 Emmanuel Briot <briot@adacore.com>
2073 * fmap.ads: Add documentation on mapping files
2075 2009-06-25 Robert Dewar <dewar@adacore.com>
2077 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2080 2009-06-24 Robert Dewar <dewar@adacore.com>
2082 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2084 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2088 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2090 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2091 present when checking whether a call may be interpreted as an indexing
2092 of the result of a call.
2094 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2095 body for a null procedure on the freeze actions for the procedure, so
2096 that it will be analyzed at the proper place without premature freezing
2099 * sem_ch3.adb (Check_Completion): Code cleanup.
2100 Do not diagnose a null procedure without a body, if previous errors
2101 have disabled expansion.
2103 2009-06-24 Doug Rupp <rupp@adacore.com>
2105 * init.c [VMS] Resignal C$_SIGKILL
2107 2009-06-24 Ed Falis <falis@adacore.com>
2109 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2110 Define ERROR in body for VxWorks 6 kernel
2112 2009-06-24 Pascal Obry <obry@adacore.com>
2114 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2115 in [Send/Receive]_Socket.
2117 2009-06-24 Emmanuel Briot <briot@adacore.com>
2119 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2120 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2121 to several subprograms.
2122 (Source_Data.Other_Part): Removed, since can be computed from the
2124 (Other_Part): New subprogram.
2126 2009-06-24 Emmanuel Briot <briot@adacore.com>
2128 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2129 the full base name of the file when the suffix doesn't start with a '.'.
2131 2009-06-24 Vincent Celier <celier@adacore.com>
2133 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2134 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2137 2009-06-24 Robert Dewar <dewar@adacore.com>
2139 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2140 prj-env.adb: Minor reformatting
2142 2009-06-24 Ed Falis <falis@adacore.com>
2144 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2145 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2146 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2147 support for VxWorks SMP.
2149 * gcc-interface/Make-lang.in: Update dependencies
2151 2009-06-24 Emmanuel Briot <briot@adacore.com>
2153 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2154 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2156 (Source_Data.Lang_Kind): Removed, since it duplicates information
2157 already available through Language.Config.
2158 (Source_Data.Compile): Removed, since information is already available
2159 through the language.
2160 (Is_Compilable): New subprogram.
2161 (Source_Data.Dependency): Removed, since already available through
2163 (Source_Data.Object_Exist, Object_Linked): Removed since available
2164 through the language already.
2165 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2166 bring the two modes closer in the resulting data structures.
2167 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2168 just the name that would point into a hash table.
2169 (Get_Language_From_Name): New subprogram.
2171 2009-06-24 Javier Miranda <miranda@adacore.com>
2173 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2174 visible through limited-with context clauses. In addition, avoid an
2175 extra tag check that is not required when the class-wide
2176 designated types of the operand and target types are
2178 (Tagged_Membership): Handle entities from the limited view.
2180 2009-06-24 Emmanuel Briot <briot@adacore.com>
2182 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2183 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2184 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2185 different vocabularies for similar concepts (Impl/Body_Part and
2186 Spec/Specification).
2187 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2188 some of the information in File_Name_Data. This also saves a bit of
2189 memory. However, since we are now using a pointer we need to test
2190 for null explicitly in several places of the code
2192 2009-06-24 Javier Miranda <miranda@adacore.com>
2194 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2195 from processing the type conversion when the node is
2196 replaced by an N_Raise_Program_Error node.
2198 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2200 * sem_ch6.adb (Designates_From_With_Type): New routine.
2201 (Process_Formals): Since anonymous access types are no longer flagged
2202 as from with types, traverse the designated type to determine whether
2203 it is coming from a limited view.
2205 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2206 (Full_Designated_Type): Use Available_View to extract the non-limited /
2207 full view of a type.
2209 2009-06-24 Robert Dewar <dewar@adacore.com>
2211 * exp_ch6.adb: Minor reformatting
2213 * layout.adb: Minor reformatting
2215 * make.adb: Minor reformatting
2217 2009-06-24 Thomas Quinot <quinot@adacore.com>
2219 * sem_ch10.adb: Minor code reorganization.
2221 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2223 * ttypes.ads: Minor editing.
2225 2009-06-24 Robert Dewar <dewar@adacore.com>
2227 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2228 in deciding to do call-by-copy code.
2230 2009-06-24 Vincent Celier <celier@adacore.com>
2232 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2233 check if an externally built library file is more current than the
2236 2009-06-23 Olivier Hainque <hainque@adacore.com>
2238 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2239 c-common.c and populate in gnat_internal_attribute_table.
2241 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2243 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2244 Available_View only when designated type of an anonymous access type
2247 2009-06-23 Robert Dewar <dewar@adacore.com>
2249 * sem_ch10.adb: Minor reformatting
2251 * ali.ads: Mino reformatting.
2253 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2254 turning off inlining if ASIS mode active).
2256 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2257 This belongs in gnat1drv.adb after switches are scanned.
2259 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2261 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2262 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2263 when dealing with class-wide types. Detect a legal shadow entity and
2264 retrieve its non-limited view.
2266 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2267 subprogram to top package level from Intall_Limited_Withed_Unit.
2268 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2269 Add check which prevents the installation of a limited view if the
2270 non-limited view is already visible through a with clause.
2271 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2272 legal shadow entity which may occur in subprogram formals of anonymous
2275 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2277 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2278 From_With_Type from the designated type to the generated anonymous
2279 access type. Remove associated comment.
2281 * sem_res.adb Add with and use clauses for Sem_Ch10.
2282 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2283 non-limited view. Since the shadow entity may replace a regular
2284 incomplete type, return the available full view.
2286 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2288 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2289 incomplete type declarations. Previous code was potentially quadratic
2290 in the number of visible declarations in any package appearing in a
2291 limited_with_clause.
2293 2009-06-23 Robert Dewar <dewar@adacore.com>
2295 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2296 xref_lib.adb: Minor reformatting
2298 2009-06-23 Robert Dewar <dewar@adacore.com>
2300 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2301 versions which did have a body for this unit.
2303 2009-06-23 Vincent Celier <celier@adacore.com>
2305 * prj-attr.adb: Attribute names Initial_Required_Switches and
2306 Final_Required_Switches changed to Leading_Required_Switches and
2307 Trailing_Required_Switches.
2309 * prj-nmsc.adb (Process_Compiler): Attribute names
2310 Initial_Required_Switches and Final_Required_Switches changed to
2311 Leading_Required_Switches and Trailing_Required_Switches.
2313 * prj.ads (Language_Config): Component Initial_Required_Switches and
2314 Final_Required_Switches changed to Leading_Required_Switches and
2315 Trailing_Required_Switches.
2317 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2318 Final_Required_Switches; add standard names Leading_Required_Switches
2319 and Trailing_Required_Switches.
2321 2009-06-23 Thomas Quinot <quinot@adacore.com>
2323 * prj-conf.adb: Minor reformatting
2325 * xref_lib.adb: Minor cleanup
2327 2009-06-23 Emmanuel Briot <briot@adacore.com>
2329 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2330 prj-conf.ads (Check_Configuration): New parameter
2331 Compiler_Driver_Mandatory.
2333 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2335 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2336 context of the current unit has an inline pragma, the instance is not
2337 rewritten as the declaration of the package wrapper. Handle both
2338 possibilities when retrieving the visible subprogram that renames the
2339 instantiation itself.
2341 2009-06-23 Javier Miranda <miranda@adacore.com>
2343 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2344 designated types referencing entities from the limited view.
2346 2009-06-23 Robert Dewar <dewar@adacore.com>
2348 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2350 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2353 * prj-conf.ads: Minor reformatting
2355 * prj-conf.adb: Minor reformatting
2357 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2359 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2360 to correspond to the log format that gnatmem now expects.
2362 2009-06-23 Vincent Celier <celier@adacore.com>
2364 * prj-attr.adb: New attributes Initial_Required_Switches,
2365 Final_Required_Switches and Object_File_Switches
2367 * prj-nmsc.adb (Process_Compiler): Process new attributes
2368 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2369 Name_Object_File_Switches.
2371 * prj.ads (Language_Config): New component
2372 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2373 Compiler_Final_Required_Switches and Object_File_Switches.
2375 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2376 Final_Required_Switches and Object_File_Switches
2378 2009-06-23 Pascal Obry <obry@adacore.com>
2380 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2382 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2384 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2385 not indicate that the enclosing unit needs a body.
2387 2009-06-23 Emmanuel Briot <briot@adacore.com>
2389 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2391 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2393 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2394 primitive equality include it with its source name even if the
2395 operation is currently invisible, to make sure that the corresponding
2396 slot in the dispatch table is reserved for the internal equality
2397 subsequently generated during expansion.
2399 2009-06-23 Matthew Gingell <gingell@adacore.com>
2401 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2403 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2405 * sysdep.c (__gnat_localtime_tzoff for RTX):
2406 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2407 GetTimeZoneInformation instead.
2409 2009-06-22 Robert Dewar <dewar@adacore.com>
2411 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2413 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2415 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2416 instantiations declared in a previous generic package body.
2418 2009-06-22 Robert Dewar <dewar@adacore.com>
2420 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2421 restriction No_Direct_Boolean_Operators.
2423 2009-06-22 Thomas Quinot <quinot@adacore.com>
2425 * bindusg.adb: Minor fixes to gnatbind usage message
2427 * sem_eval.adb: Minor reformatting
2429 2009-06-22 Javier Miranda <miranda@adacore.com>
2431 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2432 freezing point the check on the use of abstract types in object
2433 declarations. Done to allow the declaration of C++ imported variables
2434 or constants whose type corresponds with an imported C++ classes for
2435 which the constructor is not imported.
2437 2009-06-22 Thomas Quinot <quinot@adacore.com>
2439 * sem_ch6.adb: Minor reformatting
2441 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2443 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2444 component is constrained with an expression rather than with a
2445 discriminant of the enclosing type, use that expression when building
2446 the call to default-initialize the component, when the call is part of
2447 an aggregate with box initialization.
2449 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2451 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2452 unconditional rather than a style check, because a formal name out of
2453 order is suspicious.
2455 2009-06-22 Vincent Celier <celier@adacore.com>
2457 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2458 creating a directory automatically.
2460 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2462 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2463 untagged derived type, add a hidden component for every constrained
2464 discriminant of the parent type to keep record layout consistent.
2466 2009-06-22 Thomas Quinot <quinot@adacore.com>
2468 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2471 2009-06-22 Matthew Gingell <gingell@adacore.com>
2473 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2474 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2475 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2476 a-swuwha.adb: New unit System.String_Hash.
2477 Refactor redundant cut and pasted hash functions with instances of a
2478 new generic hash function.
2479 Implement a new string hashing algorithm which appears in testing to
2480 be move effective than to previous approach.
2482 2009-06-22 Ed Falis <falis@adacore.com>
2484 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2485 message for VxWorks 653 vThreads: not supported by the OS.
2487 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2489 2009-06-22 Robert Dewar <dewar@adacore.com>
2491 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2493 2009-06-22 Robert Dewar <dewar@adacore.com>
2495 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2498 * freeze.adb: Minor comment updates
2500 * s-valrea.adb (Bad_Based_Value): New procedure
2501 (Scan_Real): Raise exceptions with messages
2503 2009-06-22 Matthew Gingell <gingell@adacore.com>
2505 * adaint.h: Complete previous change.
2507 2009-06-22 Thomas Quinot <quinot@adacore.com>
2509 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2511 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2513 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2514 enabled, emit warning when a non-controlling argument of the overriding
2515 operation appears out of place vis-a-vis of the formal of the
2516 overridden operation.
2518 2009-06-22 Vincent Celier <celier@adacore.com>
2520 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2521 have been written into it.
2523 2009-06-22 Matthew Gingell <gingell@adacore.com>
2525 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2528 2009-06-22 Thomas Quinot <quinot@adacore.com>
2530 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2531 view of the root type is visible at the point of the call.
2533 2009-06-22 Pat Rogers <rogers@adacore.com>
2535 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2537 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2539 * freeze.adb: Add comments.
2541 2009-06-21 Thomas Quinot <quinot@adacore.com>
2543 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2544 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2545 Factor out code to new subprogram...
2546 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2547 for a default initialized variable.
2548 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2549 entity that has an associated freeze node.
2550 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2551 If there is an init call for the object, defer it to the object freeze
2553 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2554 name clash with new subprogram introduced in Exp_Util.
2556 2009-06-21 Robert Dewar <dewar@adacore.com>
2558 * einfo.ads: Minor reformatting
2560 2009-06-21 Ed Falis <falis@adacore.com>
2562 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2564 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2566 * einfo.ads: Update comments.
2568 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2570 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2571 where the controlling formal is of private class-wide type whose
2572 completion is a synchronized type can be converted into direct calls.
2574 2009-06-21 Vincent Celier <celier@adacore.com>
2576 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2577 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2578 of sources using -files=, so that the distinction can be made by the
2579 tool of a call with no source (to display the usage) from a call with
2580 a project file that contains no source.
2582 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2584 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2585 case of VM convention arrays.
2587 2009-06-20 Robert Dewar <dewar@adacore.com>
2589 * a-nudira.adb: Minor reformatting
2591 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2593 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2594 expressions (possibly from a parent type) indicate that the scope of
2595 the new itypes is the initialization procedure being built.
2597 2009-06-20 Robert Dewar <dewar@adacore.com>
2599 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2600 Needs_64, and now computed without anomolies for some dynamic types.
2602 2009-06-20 Thomas Quinot <quinot@adacore.com>
2604 * sem_prag.adb: Minor reformatting
2606 * exp_disp.ads: Minor reformatting
2608 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2610 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2611 function call is a legal expression to initialize a limited object.
2613 * exp_ch3.adb: Rename various freeze operations that perform expansion
2614 actions, to prevent confusion with subprograms in the freeze package.
2616 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2618 * sem.adb (Walk_Library_Units): Check instantiations first.
2620 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2621 private primitive if it is a function with a controlling result that is
2622 a type extension with progenitors.
2624 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2625 a primitive operation of a synchronized tagged type that has a
2628 2009-06-20 Thomas Quinot <quinot@adacore.com>
2630 * einfo.ads: Fix typo.
2632 2009-06-20 Ed Falis <falis@adacore.com>
2634 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2636 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2638 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2640 (protect_multiple_eval): Always protect complex expressions.
2642 2009-06-19 Emmanuel Briot <briot@adacore.com>
2644 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2645 make sure we always return a name ending with a path separator.
2647 2009-06-19 Javier Miranda <miranda@adacore.com>
2649 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2650 Save and restore the visibility of the parent when installed.
2652 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2654 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2655 by Common which contains all these fields.
2657 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2658 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2659 Remove code duplication in this package by means of calling the
2660 equivalent code in s-taprob.
2662 2009-06-19 Robert Dewar <dewar@adacore.com>
2664 * a-einuoc.ads: Minor reformatting
2666 2009-06-19 Ed Falis <falis@adacore.com>
2668 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2669 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2671 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2673 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2675 2009-06-19 Robert Dewar <dewar@adacore.com>
2677 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2680 * checks.adb (Determine_Range): Move the test for generic types later.
2682 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2684 (Eval_Relational_Op): Fold more cases including string compares
2686 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2689 2009-06-19 Robert Dewar <dewar@adacore.com>
2691 * sem_type.ads, sem_ch12.adb: Minor reformatting
2693 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2695 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2697 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
2698 primitive operation of a rivate extension whose controlling argument
2699 is an out parameter.
2701 * sem.adb (Walk_Library_Units): exclude generic package declarations
2704 2009-06-19 Thomas Quinot <quinot@adacore.com>
2706 * i-vxwoio.ads: Add comments
2708 2009-06-19 Thomas Quinot <quinot@adacore.com>
2710 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2711 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2712 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
2713 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
2714 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
2715 Thin_Common.Socket_Ioctl.
2716 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
2717 __gnat_socket_ioctl.
2718 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
2719 argument after the file descriptor and request code.
2721 2009-06-19 Robert Dewar <dewar@adacore.com>
2723 * checks.adb: Minor reformatting
2725 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2727 * env.c (__gnat_environ): RTX does not support this functionality.
2729 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2731 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
2732 traverse, to account for front-end inlining and instantiations in a
2733 spec or in the main unit.
2735 2009-06-19 Robert Dewar <dewar@adacore.com>
2737 * checks.adb (Determine_Range): Do not attempt to get range of generic
2740 2009-06-19 Sergey Rybin <rybin@adacore.com>
2742 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
2743 gnatmetric option for generating the schema file for gnatmetric XML
2744 output. Add corresponding VMS qualifier.
2746 2009-06-19 Robert Dewar <dewar@adacore.com>
2748 * g-cgi.adb: Minor reformatting
2750 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2752 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
2753 signal code for SIGFPE and raise Program_Error for SIGILL.
2755 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
2757 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2759 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
2760 generic package if there is a visibility candidate that is declared in
2763 2009-06-18 Olivier Hainque <hainque@adacore.com>
2765 * system-aix64.ads: New file.
2766 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
2767 64bit system.ads for ppc64 multilib variants.
2769 2009-06-16 Robert Dewar <dewar@adacore.com>
2770 Olivier Hainque <hainque@adacore.com>
2772 Relax constraints on Machine_Attribute argument types:
2773 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
2775 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
2776 * gcc-interface/decl.c (prepend_attributes): Accept static
2777 expressions of any type as attribute arguments, not only string
2779 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
2780 the relaxation of the restriction on the Info argument type.
2782 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2784 * gcc-interface/utils.c (record_builtin_type): Pass location
2785 argument to build_decl.
2786 (create_type_stub_decl): Same.
2787 (create_type_decl): Same.
2788 (create_var_decl_1): Same.
2789 (create_field_decl): Same.
2790 (create_param_decl): Same.
2791 (create_label_decl): Same.
2792 (create_subprog_decl): Same.
2793 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
2794 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
2795 argument to create_artificial_label.
2796 (Loop_Statement_to_gnu): Same.
2797 (Subprogram_Body_to_gnu): Same.
2798 (gnat_gimplify_stmt): Same.
2800 2009-06-11 Richard Henderson <rth@redhat.com>
2802 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
2805 2009-06-11 Ed Schonberg <schonberg@adacore.com>
2807 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
2808 accessibiliy check on access_to_subprogram in the context of an
2809 anonymous access that is not an access parameter.
2811 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
2813 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
2815 2009-06-11 Quentin Ochem <ochem@adacore.com>
2817 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
2818 comments for message handled by GPS.
2820 2009-06-11 Matthew Gingell <gingell@adacore.com>
2822 * adaint.c: Use fopen64 instead of fopen on platforms where we know
2825 2009-06-11 Pascal Obry <obry@adacore.com>
2827 * g-cgi.ads: Fix comment typo.
2829 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
2831 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
2833 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
2834 a reference to the original type for the type of the field of the
2836 (maybe_pad_type): Likewise.
2838 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
2839 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
2840 Pass correctly typed arguments to create_field_decl.
2841 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
2842 case of contrained discriminants as well. Use the padded base type
2843 in the other case as well. Rename temporary variable. Tweak test.
2844 Factor common access pattern. Set GNU_SIZE only once.
2846 2009-06-09 Olivier Hainque <hainque@adacore.com>
2848 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
2849 helper for build_call_alloc_dealloc with arguments to be interpreted
2850 identically. Process the case where a GNAT_PROC to call is provided.
2851 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
2852 and return an allocator for DATA_SIZE bytes aimed at containing a
2853 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
2854 DATA_TYPE alignments greater than what the latter offers.
2855 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
2856 release a DATA_TYPE object designated by DATA_PTR using the
2857 __gnat_free entry point.
2858 (build_call_alloc_dealloc): Expect object data type instead of naked
2859 alignment constraint. Use the new helpers.
2860 (build_allocator): Remove special processing for the super-aligned
2861 case, now handled by build_call_alloc_dealloc. Pass data
2862 type instead of the former alignment argument, as expected by the new
2864 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
2866 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
2867 Remove special processing for the super-aligned case, now handled
2868 by build_call_alloc_dealloc. Pass data type instead of the former
2869 alignment argument, as expected by the new interface.
2871 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2873 * lib-writ.adb (flag_compare_debug): Import.
2874 (Write_ALI): Skip during -fcompare-debug-second.
2876 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2878 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
2879 adjusting the discriminant nodes in an extension, use the full view
2880 of the parent subtype if it is of a private kind.
2882 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2884 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
2885 _Parent field, if any, to the record before adding the other fields.
2886 <E_Record_Subtype>: Put the _Controller field before the other fields
2887 except for the _Tag or _Parent fields.
2888 (components_to_record): Likewise. Retrieve the _Parent field from the
2891 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2893 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
2894 remove unused parameter and simplify.
2895 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
2896 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
2897 as context for all discriminants. Fix formatting nits.
2898 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
2899 before Discriminant_Constraint. Adjust for above renaming. Do not
2900 set GNU_TYPE more than once.
2901 (elaborate_entity): Test Has_Discriminants on the entity and use
2902 Implementation_Base_Type.
2903 (components_to_record): Rename component_list to gnat_component_list.
2904 Retrieve the _Parent field from the list. Fix nits in comments.
2905 Clarify logic in loop. Pass correct arguments to create_field_decl.
2907 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
2909 * gcc-interface/Make-lang.in: Fix formatting.
2911 2009-06-01 Olivier Hainque <hainque@adacore.com>
2912 Eric Botcazou <ebotcazou@adacore.com>
2914 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
2915 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
2916 on the result if at least one of the input fields couldn't be output
2917 as a static constant any more.
2919 2009-06-01 Olivier Hainque <hainque@adacore.com>
2920 Eric Botcazou <ebotcazou@adacore.com>
2922 * gcc-interface/utils2.c (gnat_build_constructor): Factor
2923 out code. Use initializer_constant_valid_for_bitfield_p and
2924 CONSTRUCTOR_BITFIELD_P for bit-fields.
2926 2009-05-26 Ian Lance Taylor <iant@google.com>
2928 * gcc-interface/Makefile.in (COMPILER): Define.
2929 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
2930 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
2931 (seh_init.o, tracebak.o): Likewise.
2932 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
2933 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
2934 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
2935 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
2936 (ada/utils2.o): Likewise.
2938 2009-05-24 Olivier Hainque <hainque@adacore.com>
2940 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
2941 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
2942 Add -auxbase variants to the list of recognized internal switches.
2943 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
2945 * lib.ads: Make comment on internal GCC switches more general.
2946 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
2949 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2951 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
2953 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2955 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
2958 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2960 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
2961 original type because of the alignment when there is an address clause.
2963 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
2965 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
2966 discriminants affect the shape of the subtype, retrieve the GCC type
2967 directly from the original field if the GNAT types for the field and
2968 the original field are the same.
2970 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
2972 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
2974 (TYPE_RM_VALUES): Likewise.
2975 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
2976 (SET_TYPE_RM_SIZE): New macro.
2977 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
2978 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
2979 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
2980 * gcc-interface/gigi.h (create_range_type): Declare.
2981 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
2982 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
2983 <E_Signed_Integer_Subtype>: Build a regular integer type first and
2984 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2985 <E_Floating_Point_Subtype>: Build a regular floating-point type first
2986 and then set the RM bounds.
2987 <E_Array_Type>: Use create_range_type instead of build_range_type.
2988 <E_Array_Subtype>: Build a regular integer type first and then set
2989 the RM bounds for the extra subtype.
2990 <E_String_Literal_Subtype>: Use create_range_type instead of
2992 <all>: Set the RM bounds for enumeration types and the GCC bounds for
2993 floating-point types.
2994 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
2995 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
2996 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2997 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
2998 types and with RM bounds for subtypes.
2999 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3000 (gnat_print_type) <REAL_TYPE>: New case.
3001 <ENUMERAL_TYPE>: Fall through to above case.
3002 (gnat_get_subrange_bounds): New function.
3003 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3004 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3005 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3006 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3007 (create_range_type): New function.
3008 (create_param_decl): Build a regular integer type first and then set
3009 the RM bounds for the extra subtype.
3010 (unchecked_convert): Remove kludge for 'Valid.
3011 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3012 the index to sizetype instead of TYPE_DOMAIN.
3014 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3016 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3017 parameter and move check for static expression to...
3018 (elaborate_expression): ...here. Adjust call to above function.
3019 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3020 in calls to elaborate_expression.
3021 (elaborate_entity): Likewise.
3022 (substitution_list): Likewise.
3023 (maybe_variable): Fix formatting.
3024 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3026 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3028 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3030 * gcc-interface/Make-lang.in: Update dependencies.
3032 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3034 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3035 Define sa_handler_pos.
3036 * s-osinte-linux.ads: Use it.
3037 * s-linux-mipsel.ads: New.
3038 * system-linux-mips64el.ads: New.
3039 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3042 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3044 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3045 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3046 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3047 (Tagged_Type_Expansion): New flag.
3048 Replace use of VM_Target related to tagged types expansion by
3049 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3050 linked to VM targets.
3052 2009-05-06 Robert Dewar <dewar@adacore.com>
3054 * sem_attr.adb: Add processing for Standard'Compiler_Version
3056 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3058 (Expr_First_Char): Add ??? comment that paren skipping needs work
3059 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3061 * exp_attr.adb: Add processing for Compiler_Version
3063 * sem_attr.adb: New attribute Compiler_Version
3065 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3067 * gnat_rm.texi: Document Compiler_Version attribute
3069 2009-05-06 Robert Dewar <dewar@adacore.com>
3071 * errout.adb: Minor reformatting
3073 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3074 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3075 styleg.adb: Add stylized comments to error messages that are included
3076 in the codefix circuitry of IDE's such as GPS.
3078 2009-05-06 Sergey Rybin <rybin@adacore.com>
3080 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3081 new form of the rule parameter that allows to specify the suffix for
3082 access-to-access type names.
3084 2009-05-06 Robert Dewar <dewar@adacore.com>
3086 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3087 out parameter assigned when exception handlers are present.
3089 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3090 assignments on exit.
3092 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3093 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3094 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3095 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3096 messages that are included in the codefix circuitry of IDE's such as
3099 * sinput.ads, sinput.adb (Expr_First_Char): New function
3100 (Expr_Last_Char): New function
3102 2009-05-06 Sergey Rybin <rybin@adacore.com>
3104 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3105 Add formal definition for extra exit point metric
3107 2009-05-06 Pascal Obry <obry@adacore.com>
3109 * adaint.c: Support for setting attributes on unicode filename on
3112 2009-05-06 Robert Dewar <dewar@adacore.com>
3114 * sem_warn.adb: Minor reformatting
3116 2009-05-06 Javier Miranda <miranda@adacore.com>
3118 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3119 not have discriminants or components with default expressions.
3120 (Analyze_Pragma): For pragma CPP_Class check that imported types
3121 have no discriminants and components have no default expression.
3123 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3124 class-wide types in the expression of a record component association.
3126 2009-05-06 Sergey Rybin <rybin@adacore.com>
3128 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3130 * gnat_ugn.texi: Add description for the new extra exit points metric
3131 (gnatmetric section).
3133 2009-05-06 Robert Dewar <dewar@adacore.com>
3135 * s-fileio.adb: Minor comment update
3137 * sem_ch8.adb: Minor reformatting
3139 * exp_ch3.adb: Update comments.
3141 2009-05-06 Tristan Gingold <gingold@adacore.com>
3143 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3145 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3147 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3148 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3150 * gcc-interface/Make-lang.in: Update dependencies
3152 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3154 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3155 change. The context clause of a generic instance declaration must be
3156 preserved until the end of the compilation, because it may have to be
3157 installed/removed repeatedly.
3158 The latest change to sem.adb ensures that the context of both spec and
3159 body of an instance is traversed before the instance itself, making
3160 this patch redundant.
3162 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3164 * sem_aggr.adb: Fix typo.
3166 2009-05-06 Thomas Quinot <quinot@adacore.com>
3168 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3169 declaration, do not adjust if the declaration is to be rewritten into
3172 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3174 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3177 2009-05-06 Bob Duff <duff@adacore.com>
3179 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3180 otherwise the compiler would be allowed to optimize away the cleanup
3183 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3185 * gnat_ugn.texi: Fix typo.
3187 2009-05-06 Thomas Quinot <quinot@adacore.com>
3189 * g-debuti.adb: Minor reformatting
3191 * exp_attr.adb: Minor reformatting
3193 2009-05-06 Robert Dewar <dewar@adacore.com>
3195 * sem_aggr.adb: Minor reformatting.
3197 * g-socthi-vms.adb: Minor reformatting
3199 2009-05-06 Bob Duff <duff@adacore.com>
3201 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3202 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3204 2009-05-06 Bob Duff <duff@adacore.com>
3206 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3209 2009-05-06 Javier Miranda <miranda@adacore.com>
3211 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3212 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3213 extension aggregates.
3214 (Resolve_Record_Aggregate): Add support for C++ constructors in
3215 extension aggregates.
3217 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3218 constructors in extension aggregates.
3220 2009-05-06 Robert Dewar <dewar@adacore.com>
3222 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3225 2009-05-06 Thomas Quinot <quinot@adacore.com>
3227 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3228 packed type, since on OpenVMS, struct msghdr is packed.
3230 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3232 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3233 call returning an unconstrained composite value, create the proper
3234 subtype for it, as is done for object dclarations with unconstrained
3235 nominal subtypes. Perform this transformation regarless of whether
3236 call comes from source.
3238 2009-05-06 Robert Dewar <dewar@adacore.com>
3240 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3244 Add documentation for pragma Implicit_Packing applied to record
3247 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3249 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3250 instantiation on the spec, because late instance bodies may generate
3251 with_clauses for the instance body but are inserted in the instance
3254 2009-05-06 Emmanuel Briot <briot@adacore.com>
3256 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3257 support for returning the directory even if it doesn't exist. This is
3258 used for the object directory, since we are always setting it to a
3259 non-null value, and we should set it to an absolute name rather than a
3260 relative name for the sake of external tools that might depend on it.
3261 (Check_Library_Attributes): When Project.Library_Dir is known, check
3262 that the directory exists.
3264 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3266 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3267 reference is an implicit dereference, do not freeze the designated type
3268 if within a default expression or when preanalyzing a pre/postcondtion.
3270 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3272 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3273 call returning an unconstrained composite value, create the proper
3274 subtype for it, as is done for object dclarations with unconstrained
3277 2009-05-06 Robert Dewar <dewar@adacore.com>
3279 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3282 * freeze.adb: Minor reformatting
3284 2009-05-06 Thomas Quinot <quinot@adacore.com>
3286 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3287 designated type is a limited view from a limited with clause (flagged
3288 From_With_Type) is not itself such a limited view.
3290 2009-05-06 Emmanuel Briot <briot@adacore.com>
3292 * prj-nmsc.adb: Remove unused variable.
3294 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3295 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3296 makeutl.ads, since not all users of prj.ads need this.
3298 2009-05-06 Javier Miranda <miranda@adacore.com>
3300 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3301 constructor in case of aggregates whose type is a CPP_Class type.
3303 2009-05-06 Robert Dewar <dewar@adacore.com>
3305 * sem_ch13.adb: Minor comment additions
3307 * osint.adb: Minor reformatting
3309 2009-05-06 Pascal Obry <obry@adacore.com>
3311 * initialize.c: On Windows, keep full pathname to expanded command
3314 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3316 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3317 an aggregate with box default is of a discriminated private type, do
3318 not build a subaggregate for it.
3319 A proper call to the initialization procedure is generated for it.
3321 2009-05-06 Thomas Quinot <quinot@adacore.com>
3323 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3324 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3325 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3326 use standard array code for Standard.String.
3327 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3328 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3330 2009-05-06 Robert Dewar <dewar@adacore.com>
3332 * g-comlin.ads: Minor reformatting
3334 * xoscons.adb: Minor reformatting
3336 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3338 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3339 Underlying_Type before retrieving the type definition for gathering
3340 components, to account for the case where the type is private.
3342 2009-05-06 Tristan Gingold <gingold@adacore.com>
3344 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3346 2009-05-06 Thomas Quinot <quinot@adacore.com>
3348 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3349 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3350 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3351 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3352 Windows versions): Fix incorrect base
3353 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3354 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3355 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3356 achieve independance from AF_INET family, and also to allow this
3357 parameter to be retrieved from a Msghdr for the Windows case where
3358 these routines are used to implement C_Sendmsg and C_Recvmsg.
3360 2009-05-06 Bob Duff <duff@adacore.com>
3362 * g-expect.adb, g-expect.ads: Minor reformatting
3364 * sdefault.ads: Minor comment fix
3366 * g-expect-vms.adb: Minor reformatting
3368 * table.ads, table.adb (Append_All): New convenience procedure for
3369 appending a whole array.
3371 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3372 box message. Call Osint.Dump_Source_File_Names to print out the file
3373 list, instead of rummaging around in various data structures.
3375 * debug.adb: New switch -gnatd.n, to print source file names as they
3378 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3380 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3381 out source file names during a "bug box".
3382 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3383 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3384 If it's not part of the runtimes, store it for later printing by
3385 Dump_Source_File_Names.
3387 2009-05-06 Javier Miranda <miranda@adacore.com>
3389 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3390 documentation and add reference to the GNAT user guide for further
3393 2009-05-06 Javier Miranda <miranda@adacore.com>
3395 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3396 also wrong examples that use extension aggregates.
3398 2009-05-06 Albert Lee <lee@adacore.com>
3400 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3401 of Msg_Iovlen_T for VMS.
3403 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3406 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3408 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3410 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3411 box-defaulted operator in an instantiation, when the type of the
3412 operands is not directly visible.
3414 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3416 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3417 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3418 analysis of the ancestor part. Remove prohibition against limited
3419 interpretations of the ancestor expression in the case of Ada 2005.
3420 Revise error message in overloaded case, adding a message to cover
3423 2009-04-29 Thomas Quinot <quinot@adacore.com>
3425 * xoscons.adb: Minor reformatting
3427 2009-04-29 Bob Duff <duff@adacore.com>
3429 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3430 attribute_definition_clauses for the following attributes when the
3431 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3432 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3433 missing Read attribute on remote types).
3435 * gnat_ugn.texi: Document the change, and add a stern warning.
3437 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3439 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3440 disabled not just for the current scope, but for the innermost dynamic
3443 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3445 * gcc-interface/Make-lang.in: Update dependencies
3447 2009-04-29 Vincent Celier <celier@adacore.com>
3449 * prj-part.adb: Minor comment update
3451 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3453 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3454 box-initialized records with discriminated subcomponents that are
3455 constrained by discriminants of enclosing components. New subsidiary
3456 procedures Add_Discriminant_Values, Propagate_Discriminants.
3458 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3460 * g-socket.adb: Code clean up.
3462 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3464 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3465 function entity, to cover the case of a parameterless function call
3466 that has not been resolved.
3468 2009-04-29 Robert Dewar <dewar@adacore.com>
3470 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3471 reformatting and comment updates.
3473 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3475 * gnat_ugn.texi: Update some documentation about interfacing with C++
3476 Mention -fkeep-inline-functions.
3478 * gnat_ugn.texi: Minor edits
3480 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3482 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3483 for a defaulted component of an enclosing aggregate, inherit the type
3484 from the component declaration of the enclosing type.
3486 2009-04-29 Albert Lee <lee@adacore.com>
3488 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3489 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3490 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3491 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3492 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3493 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3494 type for the Msg_Iovlen field.
3496 2009-04-29 Vincent Celier <celier@adacore.com>
3498 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3499 Source_File_Index_Table entries for the source, to avoid crash when
3502 * gnatcmd.adb (Test_If_Relative_Path): Use
3503 Makeutl.Test_If_Relative_Path.
3505 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3506 Including_RTS is True.
3508 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3509 Including_RTS defaulted to False.
3511 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3514 2009-04-29 Javier Miranda <miranda@adacore.com>
3516 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3518 2009-04-29 Javier Miranda <miranda@adacore.com>
3520 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3521 associated with dyamically tagged expressions if the expression
3522 initializing a tagged type corresponds with a non default CPP
3524 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3525 of limited type objects.
3527 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3528 when a CPP constructor is called in an assignment. Disable also the
3529 error message associated with dyamically tagged expressions if the
3530 exporession initializing a tagged type corresponds with a non default
3533 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3534 non-default C++ constructors.
3536 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3538 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3539 non-default constructors.
3540 (Init_Proc): Add support for non-default constructors.
3542 * exp_disp.adb (Set_Default_Constructor): Removed.
3543 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3544 but extending its functionality to handle non-default constructors.
3546 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3547 constructors. Minor code cleanup removing unrequired label and goto
3550 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3552 (Build_Init_Statements): Add support for non-default constructors.
3553 (Expand_N_Object_Declaration): Add support for non-default constructors.
3554 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3555 to Set_CPP_Constructors.
3557 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3558 non-default constructors.
3559 Required to handle its use in build-in-place statements.
3561 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3562 pragma for non-default C++ constructors and the new compiler support
3563 that allows the use of these constructors in record components, limited
3564 aggregates, and extended return statements.
3566 2009-04-29 Vincent Celier <celier@adacore.com>
3568 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3569 project extending an abstract project.
3571 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3573 * targparm.ads: Fix oversight.
3575 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3577 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3578 derivation when necessary, to find the user-subprogram that is actally
3581 2009-04-29 Robert Dewar <dewar@adacore.com>
3583 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3586 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3588 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3589 primitive operation, rather than source line of synchronized type, when
3590 building the wrapper for a primitive operation that overrides an
3591 operation inherited from a progenitor, to improve the error message on
3592 duplicate declarations.
3594 * sem_ch3.adb (Process_Full_View): Use new signature of
3597 2009-04-29 Robert Dewar <dewar@adacore.com>
3599 * prj-nmsc.ads: Minor reformatting
3601 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3603 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3604 expression on the existing parent If statement.
3606 2009-04-29 Robert Dewar <dewar@adacore.com>
3608 * prj-proc.adb, prj.ads: Minor reformatting
3610 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3612 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3613 existing parent If statement on the newly created one.
3615 2009-04-29 Emmanuel Briot <briot@adacore.com>
3617 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3618 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3619 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3620 (Set_In_Configuration, In_Configuration): Removed.
3621 Replaced by an extra parameter Is_Config_File in several parameter to
3622 avoid global variables to store the state of the parser.
3624 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3626 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3627 with_clauses generated for the same unit through rtsfind, and that
3628 appear in the context of different units.
3630 * rtsfind.adb: New attribute First_Implicit_With, component of the
3631 Unit_Record that stores information about a unit loaded through rtsfind.
3633 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3635 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3636 (other conditions permitting), so that abstract stream subprograms will
3637 be declared for them.
3639 2009-04-29 Bob Duff <duff@adacore.com>
3641 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3643 * g-expect.ads: Minor comment fixes.
3645 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3647 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3648 dispatching operation is a body without previous spec, update the list
3649 of primitive operations to ensure that cross-reference information is
3652 2009-04-29 Albert Lee <lee@adacore.com>
3654 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3655 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3656 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3657 (GNAT.Sockets.Thin.C_Readv,
3658 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3659 (GNAT.Sockets.Thin.C_Recvmsg,
3660 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3662 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3663 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3665 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3667 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3668 operation is a body without previous spec, update the list of
3669 primitive operations to ensure that cross-reference information is
3672 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3673 new compilation unit node for the instance declaration, keep the
3674 context items of the original unit on it, so that the context of the
3675 instance body only holds the context inherited from the generic body.
3677 2009-04-29 Bob Duff <duff@adacore.com>
3679 * sem_res.adb: Minor comment fix.
3681 2009-04-29 Thomas Quinot <quinot@adacore.com>
3683 * sem_elim.adb: Minor reformatting
3685 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3687 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3688 predefined unit, allow arbitrary number of components in static
3689 aggregate, to ensure that the same level of constant folding applies
3690 for Ada 95 and Ada 05 versions of the file.
3692 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3694 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3695 information: no need for full scope check.
3696 (Eliminate_Error): Do not emit error in a generic context.
3698 2009-04-29 Ed Falis <falis@adacore.com>
3700 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
3701 VxWorks 653 POS does not support rmdir.
3703 2009-04-29 Matteo Bordin <bordin@adacore.com>
3705 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
3706 results are printed.
3708 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3710 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
3713 2009-04-29 Thomas Quinot <quinot@adacore.com>
3715 * make.adb: Minor reformatting.
3716 Minor code reorganization throughout.
3718 2009-04-29 Matteo Bordin <bordin@adacore.com>
3720 * s-stausa.ads: Changed visibility of type Task_Result: moved to
3721 public part to give application visibility over it.
3722 This is for future improvement and to build a public API on top of it.
3723 Changed record components name of type Task_Result to reflect the new
3726 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
3727 reporting Stack usage.
3729 * gnat_ugn.texi: Update doc of stack usage report.
3731 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
3733 * Makefile.rtl: Add new run-time files.
3735 2009-04-29 Pascal Obry <obry@adacore.com>
3737 * initialize.c: Do not expand quoted arguments.
3739 2009-04-29 Emmanuel Briot <briot@adacore.com>
3741 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
3743 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
3744 Prj.Ultimate_Extending_Project_Of
3746 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3748 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
3749 Amendment type, add the with_clause for Finalization.List_Controller
3750 only if the current context is a package body.
3752 2009-04-29 Thomas Quinot <quinot@adacore.com>
3754 * sem_ch12.adb: Minor reformatting
3756 * sem_aggr.adb: Minor reformatting
3758 * sem_ch6.adb, sem_cat.ads: Minor reformatting
3760 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
3762 2009-04-29 Quentin Ochem <ochem@adacore.com>
3764 * prj.ads (Source_Id): Now general pointer type.
3766 2009-04-29 Thomas Quinot <quinot@adacore.com>
3768 * exp_ch7.adb, rtsfind.adb: Minor reformatting
3770 * sem_res.adb: Minor reformatting
3772 2009-04-29 Thomas Quinot <quinot@adacore.com>
3774 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
3775 operands is static only if it is a predefined concatenation operator.
3777 * sem_util.adb: Minor reformatting
3779 * sem_ch12.adb (Save_References): When propagating semantic information
3780 from generic copy back to generic template, for the case of an
3781 identifier that has been rewritten to an explicit dereference whose
3782 prefix is either an object name or a parameterless funcion call
3783 denoting a global object or function, properly capture the denoted
3784 global entity: perform the corresponding rewriting in the template,
3785 and point the rewritten identifier to the correct global entity (not
3786 to the associated identifier in the generic copy).
3788 2009-04-29 Robert Dewar <dewar@adacore.com>
3790 * rtsfind.adb, prj-env.adb: Minor reformatting
3791 Minor code reorganization
3793 2009-04-29 Emmanuel Briot <briot@adacore.com>
3795 * make.adb: Fix comment
3797 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
3798 is given as argument, as might happen in gnatmake.
3800 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3802 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
3803 an abstract operation of a progenitor is not properly overridden by an
3804 operation of a derived synchronized type.
3806 2009-04-29 Robert Dewar <dewar@adacore.com>
3808 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
3809 prj-proc.adb: Minor reformatting
3810 Minor code reorganization
3812 2009-04-29 Bob Duff <duff@adacore.com>
3814 * exp_ch7.adb (Build_Final_List): For an access type that designates a
3815 Taft Amendment type, if the access type needs finalization, make sure
3816 the implicit with clause for List_Controller occurs on the package spec.
3818 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
3819 with's created for the pseudo-children of Text_IO and friends. In
3820 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
3821 Ada.Text_IO.Integer_IO both with-ing each other.
3823 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
3824 oddball cases when pragma Extend_System is used.
3826 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
3827 the case where a package spec instantiates a generic whose body with's
3828 this package, so Walk_Library_Items won't complain about cyclic with's.
3830 2009-04-29 Emmanuel Briot <briot@adacore.com>
3832 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
3833 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
3834 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
3835 (Project_Id): now a real pointer to Project_Data, instead of an index
3836 into the Projects_Table. This simplifies the API significantly, avoiding
3837 extra lookups in this table and the need to pass the Project_Tree_Ref
3838 parameter in several cases
3840 2009-04-29 Nicolas Setton <setton@adacore.com>
3842 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
3845 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
3847 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
3850 2009-04-24 Robert Dewar <dewar@adacore.com>
3852 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
3853 clean.adb: Minor reformatting.
3854 Minor code reorganization and message improvement.
3856 2009-04-24 Emmanuel Briot <briot@adacore.com>
3858 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
3859 (Alternate_Languages): now implemented as a malloc-ed list rather
3860 than through a table.
3862 2009-04-24 Thomas Quinot <quinot@adacore.com>
3864 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
3865 accurately handle cases such as "lit" & "lit" and
3866 "lit" & static_string_constant
3868 2009-04-24 Emmanuel Briot <briot@adacore.com>
3870 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3871 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
3872 removed. Lists of projects are now implemented via standard malloc
3873 rather than through the table.
3875 2009-04-24 Thomas Quinot <quinot@adacore.com>
3877 * sem_ch12.adb: Minor reformatting
3879 * g-trasym.adb: Minor reformatting
3881 * exp_ch6.adb: Minor reformatting
3883 2009-04-24 Robert Dewar <dewar@adacore.com>
3885 * layout.adb (Layout_Type): For packed array type, copy unset
3886 size/alignment fields from the referenced Packed_Array_Type.
3888 2009-04-24 Bob Duff <duff@adacore.com>
3890 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
3891 longer needed after sem_ch12 changes.
3893 * sem.adb (Walk_Library_Items): Include with's in some debugging
3896 2009-04-24 Emmanuel Briot <briot@adacore.com>
3898 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
3899 only ever using the Project field.
3901 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3903 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
3904 Body_Required on the generated compilation node. The new node is linked
3905 to its body, but both share the same file, so we do not set this flag
3906 on the new unit so as not to create a spurious dependency on a
3907 non-existent body in the ali file for the instance.
3909 2009-04-24 Robert Dewar <dewar@adacore.com>
3911 * make.adb: Minor reformatting
3913 2009-04-24 Emmanuel Briot <briot@adacore.com>
3915 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
3916 Add_Source): merge some code between those. In particular change where
3917 file normalization is done to avoid a few extra calls to
3918 Canonicalize_File_Name. This also removes the need for passing
3919 Current_Dir in a number of subprograms.
3921 2009-04-24 Bob Duff <duff@adacore.com>
3923 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
3924 False, assign the correct unit to the Cunit field of the new table
3925 entry. We want the spec unit, not the body unit.
3927 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
3928 interface for these.
3929 (Maybe_Add_With): Check whether we're trying to a with on the current
3930 unit, and avoid creating such directly self-referential with clauses.
3931 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
3932 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
3933 and matches existing comments in the spec.
3935 * sem.adb (Walk_Library_Items): Add various special cases to make the
3938 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
3939 instead of Parent (N), for uniformity.
3941 2009-04-24 Robert Dewar <dewar@adacore.com>
3943 * errout.ads: Minor reformatting
3945 2009-04-24 Emmanuel Briot <briot@adacore.com>
3947 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
3948 behavior when the project includes sources from multiple languages
3950 2009-04-24 Vincent Celier <celier@adacore.com>
3952 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
3953 is a language other than Ada declared.
3955 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
3956 Imported_First set to True.
3958 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3960 * sem_res.adb: additional optimization to inhibit creation of
3961 redundant transient scopes.
3963 2009-04-24 Bob Duff <duff@adacore.com>
3965 * rtsfind.ads: Minor comment fix
3967 2009-04-24 Emmanuel Briot <briot@adacore.com>
3969 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
3970 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
3971 basically doing the same work (for explicit or implicit sources).
3972 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
3973 role. Rewritten to share some code (testing that all explicit sources
3974 have been found) between ada_only and multi_language modes.
3976 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
3978 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
3979 for CLI imported types.
3980 (Analyze_Pragma): Allow CIL or Java imported functions returning
3981 access-to-subprogram types.
3983 2009-04-24 Emmanuel Briot <briot@adacore.com>
3985 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
3986 (Project_Data.Dir_Path): field removed, since it can be computed
3987 directly from .Directory, and is needed only once when processing the
3988 project is buildgpr.adb or make.adb
3990 2009-04-24 Robert Dewar <dewar@adacore.com>
3992 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
3993 rtsfind.adb: Minor reformatting.
3994 Minor code reorganization
3996 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3998 * mlib-prj.adb: Use friendlier english identifier.
4000 * gnatcmd.adb, make.adb: Use better english identifiers.
4002 2009-04-24 Robert Dewar <dewar@adacore.com>
4004 * clean.adb: Minor reformatting
4006 2009-04-24 Robert Dewar <dewar@adacore.com>
4008 * einfo.adb (OK_To_Rename): New flag
4010 * einfo.ads (OK_To_Rename): New flag
4012 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4015 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4017 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4020 2009-04-24 Emmanuel Briot <briot@adacore.com>
4022 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4023 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4024 field removed. This is not a property of the
4025 project, just a boolean used to traverse the project tree, and storing
4026 it in the structure prevents doing multiple traversal in parallel.
4027 (Project_Data.Checked): also removed, since it was playing the same role
4028 as Seen when we had two nested loops, and this is no longer necessary
4029 (For_All_Imported_Projects): removed, since in fact there was already
4030 the equivalent in For_Every_Project_Imported. The latter was rewritten
4031 to use a local hash table instead of Project_Data.Seen
4032 Various loops were rewritten to use For_Every_Project_Imported, thus
4033 removing the need for Project_Data.Seen. This avoids a lot of code
4036 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4038 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4039 statements, even though the actual of the call is a concatenation,
4040 because the argument is static, and we want to preserve warning
4041 messages about sequences of code statements that are not marked
4044 * sem_warn.adb: remove obsolete comment about warning being obsolete
4046 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4047 requeued and the delay has expired while within the accept statement
4048 that executes the requeue, do not perform the requeue and indicate that
4049 the timed call has been aborted.
4051 2009-04-24 Emmanuel Briot <briot@adacore.com>
4053 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4054 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4055 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4056 since they can be computed from the above.
4058 2009-04-24 Vincent Celier <celier@adacore.com>
4060 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4062 * prj-env.adb: Move all global variables to the private part of the
4064 Access these new components instead of the global variables no longer
4066 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4067 components that were previously global variables.
4069 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4070 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4073 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4074 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4076 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4077 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4078 components in the private part of the project tree data.
4080 * prj.ads (Private_Project_Tree_Data): new components moved from
4081 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4082 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4083 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4085 2009-04-24 Vincent Celier <celier@adacore.com>
4087 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4089 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4090 projects, when --unchecked-shared-lib-imports is used.
4092 2009-04-24 Robert Dewar <dewar@adacore.com>
4094 * sem_ch7.adb: Minor reformatting
4096 2009-04-24 Tristan Gingold <gingold@adacore.com>
4098 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4101 2009-04-24 Emmanuel Briot <briot@adacore.com>
4103 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4104 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4105 (For_All_Imported_Projects): new procedure
4106 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4107 above rather than duplicating code.
4109 2009-04-24 Emmanuel Briot <briot@adacore.com>
4111 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4112 (Source_Id, Source_Data): use a real list to store sources rather than
4113 using an external table to store the elements. This makes code more
4114 efficient and more readable.
4116 2009-04-24 Emmanuel Briot <briot@adacore.com>
4118 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4119 (Source_Iterator): new type.
4120 This removes the need for having the sources on three different
4121 lists at the project tree, project and language level. They are now
4124 2009-04-24 Emmanuel Briot <briot@adacore.com>
4126 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4128 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4130 * sem_warn.adb: Add comment on obsolete warning
4132 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4134 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4136 2009-04-24 Emmanuel Briot <briot@adacore.com>
4138 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4139 to Language_Ptr to better reflect its new implementation.
4140 (Project_Data.First_Languages_Processing): renamed to Languages now
4141 that the field with that name is no longer used
4142 (Project_Data.Languages): removed, no longer used, and duplicates
4143 information already available through First_Language_Processing.
4144 (Prj.Language_Index): now an actual pointer, instead of an index into
4145 a table. This makes the list somewhat more obvious, but more importantly
4146 removes the need to pass a pointer to the project_tree_data in a few
4147 places, and makes accessing the attributes of a languages more
4150 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4151 Thomas Quinot <quinot@adacore.com>
4153 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4154 * gcc-interface/misc.c (internal_error_function): Make copy of return
4155 from pp_formatted_text before assigning BUFFER to it.
4156 (gnat_init): Likewise for main_input_filename and gnat_argv.
4157 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4159 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4161 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4162 (Target_Double_Scalar_Alignment): Likewise.
4163 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4164 (Get_Double_Float_Alignment): New imported function.
4165 (Get_Double_Scalar_Alignment): Likewise.
4166 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4167 the alignment of "double" floating-point types and "double" or larger
4168 scalar types, as parameterized by Target_Double_Float_Alignment and
4169 Target_Double_Scalar_Alignment respectively.
4170 * gcc-interface/gigi.h (double_float_alignment): Declare.
4171 (double_scalar_alignment): Likewise.
4172 (is_double_float_or_array): Likewise.
4173 (is_double_scalar_or_array): Likewise.
4174 (get_target_double_float_alignment): Likewise.
4175 (get_target_double_scalar_alignment): Likewise.
4176 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4177 (get_target_strict_alignment): ...this.
4178 (get_target_double_float_alignment): New function.
4179 (get_target_double_scalar_alignment): Likewise.
4180 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4181 Test the presence of an alignment clause for under-aligned integer
4182 types. Take into account specific caps for the alignment of "double"
4183 floating-point types and "double" or larger scalar types, as
4184 parameterized by Target_Double_Float_Alignment and
4185 Target_Double_Scalar_Alignment respectively.
4186 (validate_alignment): Likewise.
4187 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4188 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4189 * gcc-interface/utils.c (double_float_alignment): New global variable.
4190 (double_scalar_alignment): Likewise.
4191 (is_double_float_or_array): New predicate.
4192 (is_double_scalar_or_array): Likewise.
4194 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4196 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4197 the conditional expression only if it is common to both arms.
4199 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4201 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4202 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4203 arguments to build_allocator.
4204 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4205 Remove code handling special allocator and assert its uselessness.
4207 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4209 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4210 alignment is specified, do not promote that of the component type
4212 <E_Array_Subtype>: Likewise.
4214 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4216 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4217 * sinfo.ads (Object Declaration): Likewise.
4218 (Assignment Statement): Likewise.
4219 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4220 Do not force Is_True_Constant to false on the temporary.
4221 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4222 the RHS of object declarations.
4223 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4224 New case. Return 1 if the object is atomic.
4225 <N_Assignment_Statement>: Likewise.
4227 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4229 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4230 For packed array types, make the original array type a parallel type
4231 for the modular type and its JM wrapper if the type is bit-packed.
4232 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4233 record type for packed array types. Remove kludge.
4235 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4237 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4238 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4239 Use front-end predicates to compute signedness and precision.
4240 <E_String_Literal_Subtype>: Fold range type.
4241 Make sure to set longest_float_type_node to a scalar type.
4242 (elaborate_entity): Use consistent Constraint_Error spelling.
4243 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4244 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4245 output for the modulus, if any.
4246 <ENUMERAL_TYPE>: Likewise for the RM size.
4247 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4249 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4250 of BLKmode bit-fields to compute their addressability.
4251 (create_index_type): Adjust comments.
4252 (create_param_decl): Create the biased subtype manually.
4253 * gcc-interface/utils2.c (build_component_ref): Use consistent
4254 Constraint_Error spelling.
4256 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4258 * gcc-interface/cuintp.c: Clean up include directives.
4259 * gcc-interface/targtyps.c: Likewise.
4260 * gcc-interface/decl.c: Likewise.
4261 * gcc-interface/misc.c: Likewise.
4262 * gcc-interface/trans.c: Likewise.
4263 * gcc-interface/utils.c: Likewise.
4264 * gcc-interface/utils2.c: Likewise.
4265 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4267 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4269 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4270 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4271 (SET_DECL_LANG_SPECIFIC): Likewise.
4273 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4274 Update comment about use of build_range_type.
4275 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4276 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4277 check for other cases of overloading.
4278 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4279 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4280 Use size_int in lieu of build_int_cst.
4281 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4284 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4286 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4287 type is an enumeral or a boolean type, change it to an integer type
4288 with the same mode and signedness.
4290 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4292 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4293 for an external constant whose initializer is not absolute.
4295 2009-04-22 Taras Glek <tglek@mozilla.com>
4297 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4298 * gcc-interface/trans.c: Likewise.
4299 * gcc-interface/utils.c: Likewise.
4301 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4303 * sem_res.adb: Create block around procedure call when actual is a
4306 2009-04-22 Thomas Quinot <quinot@adacore.com>
4308 * s-soflin.ads: Fix typos
4310 2009-04-22 Vincent Celier <celier@adacore.com>
4312 * prj-env.adb: Minor comment change
4314 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4315 Get_Name_String with No_File.
4317 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4318 cannot be created even when not in verbose mode.
4320 2009-04-22 Emmanuel Briot <briot@adacore.com>
4322 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4323 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4324 Multi_Language modes, to avoid code duplication.
4325 (Project_Data.Include_Language): Removed.
4327 2009-04-22 Vincent Celier <celier@adacore.com>
4329 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4330 the temporary file cannot be created, indicating the directory when the
4331 creation was attempted.
4333 2009-04-22 Emmanuel Briot <briot@adacore.com>
4335 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4336 the language names, not their indices.
4338 2009-04-22 Emmanuel Briot <briot@adacore.com>
4340 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4341 (Source_Data.Language_Name): Field removed.
4343 2009-04-22 Emmanuel Briot <briot@adacore.com>
4345 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4348 2009-04-22 Emmanuel Briot <briot@adacore.com>
4350 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4351 separate_suffix to the same value as the body_suffix.
4353 2009-04-22 Robert Dewar <dewar@adacore.com>
4355 * prj.adb: Minor code reorganization
4358 * prj-proc.adb: Minor code reorganization, clean up.
4360 * prj-nmsc.adb: Minor reformatting
4361 Minor code reorganization
4363 * gnat_ugn.texi: Add to doc on strict aliasing
4365 2009-04-22 Pascal Obry <obry@adacore.com>
4367 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4370 * s-tasini.adb: Minor reformatting.
4372 * s-tassta.adb: Minor reformatting.
4374 2009-04-22 Emmanuel Briot <briot@adacore.com>
4376 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4377 smaller subprograms.
4378 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4379 other Check_Naming_Schemes functions that plays a totally different
4381 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4382 extracted from the above. These were partially rewritten to avoid
4383 unnecessary code and temporary variables.
4384 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4385 and Get_Unit (which for now still exist since they contain mode-specific
4388 2009-04-22 Emmanuel Briot <briot@adacore.com>
4390 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4391 Remove duplicated code.
4392 (Canonical_Case_File_Name): new subprogram
4393 (Check_And_Normalize_Unit_Names): new subprogram
4394 (Write_Attr): new subprogram
4395 Better sharing of code
4396 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4397 split Check_Naming and help find duplicated code
4398 (Check_Common): new subprogram, sharing code between ada_only and
4399 multi_language mode.
4400 (Naming_Data.Dot_Repl_Loc): field removed
4402 2009-04-22 Emmanuel Briot <briot@adacore.com>
4404 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4405 Minor refactoring to reduce the size of
4406 Process_Sources_In_Multi_Language_Mode.
4407 Avoid extra copied of Source_Data, which we found in the past could be
4409 (Mark_Excluded_Sources): new subprogram.
4410 (Remove_Locally_Removed_Files_From_Units): merged into the above
4411 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4412 and allow better sharing of code between multi_lang and ada_only modes
4413 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4415 2009-04-22 Emmanuel Briot <briot@adacore.com>
4417 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4418 Removed, since unused.
4420 2009-04-22 Vincent Celier <celier@adacore.com>
4422 * prj-attr.adb: New single project level attribute
4423 Separate_Run_Path_Options.
4425 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4426 attribute Seperate_Run_Path_Options.
4428 * prj.ads: (Project_Configuration): New Boolean component
4429 Separate_Run_Path_Options, defaulted to False.
4431 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4433 2009-04-22 Robert Dewar <dewar@adacore.com>
4435 * sem_type.adb: Minor reformatting
4437 * mlib.adb: Minor reformatting
4439 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4442 2009-04-22 Nicolas Setton <setton@adacore.com>
4444 * link.c: Add flag __gnat_separate_run_path_options.
4446 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4448 * mlib.ads (Separate_Run_Path_Options): Declare.
4450 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4451 switch per directory, rather than one "rpath" switch listing all
4454 * gnatlink.adb (Process_Binder_File): Likewise.
4456 * make.adb (Gnatmake): Likewise.
4458 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4460 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4461 Add a call to Move_Final_List when the target of the assignment is a
4462 return object that needs finalization and the expression is a
4463 controlled build-in-place function.
4465 2009-04-22 Vincent Celier <celier@adacore.com>
4467 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4468 Including_Libraries set to True.
4470 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4472 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4473 create a unit table entry for the subprogram declaration created for a
4474 child suprogram body that has no separate specification.
4476 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4477 subprogram body, call Make_Child_Decl_Unit.
4479 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4480 table can only be the created specification of a child subprogram body
4481 that is the main unit, which has not been entered in the table yet.
4483 * errout.adb (Output_Messages): Ignore created specification of a
4484 child subprogram body to prevent repeated listing of error messages.
4486 * gnat1drv.adb (gnat1drv): The generated specification for a child
4487 subprogram body does not generate code.
4489 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4491 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4492 since this unit is now part of bootstrap units, so must use Ada 95
4495 2009-04-22 Thomas Quinot <quinot@adacore.com>
4497 * a-tasatt.adb: Minor reformatting
4499 2009-04-22 Bob Duff <duff@adacore.com>
4501 * s-stalib.ads: Remove "with System;" since we're inside System, so
4504 2009-04-22 Vincent Celier <celier@adacore.com>
4506 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4507 the source record, as there may be a dependency file even if no object
4510 2009-04-22 Robert Dewar <dewar@adacore.com>
4512 * lib-load.adb: Minor reformatting
4514 * lib-load.ads: Minor reformatting
4516 * sinfo.ads: Minor reformatting
4518 2009-04-22 Bob Duff <duff@adacore.com>
4520 * exp_pakd.adb: Minor comment fixes.
4522 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4523 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4524 include units containing instantiations, as well as units that are
4525 generic instantiations.
4527 * sem.adb: Include dependents and corresponding specs/bodies in the
4530 * gcc-interface/Make-lang.in:
4531 sem now depends on s-bitops, because of the packed array of Booleans.
4533 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4535 * gcc-interface/ada-tree.def: Fix formatting nits.
4536 (REGION_STMT): Delete.
4537 (HANDLER_STMT): Likewise.
4538 * gcc-interface/ada-tree.h: Fix formatting nits.
4540 (REGION_STMT_BODY): Likewise.
4541 (REGION_STMT_HANDLE): Likewise.
4542 (REGION_STMT_BLOCK): Likewise.
4543 (HANDLER_STMT_ARG): Likewise.
4544 (HANDLER_STMT_LIST): Likewise.
4545 (HANDLER_STMT_BLOCK): Likewise.
4546 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4547 (fp_size_to_prec): Likewise.
4548 (largest_move_alignment): Delete.
4549 (gnat_compute_largest_alignment): Likewise.
4551 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4552 Remove redundant code.
4553 <E_Array_Type>: Remove redundant assert.
4554 <E_Array_Subtype>: Exit early from index computation in pathological
4556 Rewrite conditional assignment.
4557 (make_type_from_size): Likewise.
4558 * gcc-interface/misc.c (largest_move_alignment): Delete.
4559 (gnat_finish_incomplete_decl): Likewise.
4560 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4561 (asm_out_file): Likewise
4562 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4563 (gnat_dwarf_name): Move around.
4564 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4565 (gigi): Remove call to gnat_compute_largest_alignment.
4566 * utils.c (create_field_decl): Rewrite conditional assignment.
4569 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4571 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4572 on entry. Defer common processing for types. Reorder and clean up.
4573 Compute the equivalent GNAT node and the default size for types only.
4574 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4575 <E_Access_Type>: For an unconstrained designated type, do not pretend
4576 that a dummy type is always made.
4577 <all> Fix nits in comments.
4578 (validate_size): Fix formatting nits and comments.
4579 (set_rm_size): Likewise.
4580 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4581 passed to TARGET_PROMOTE_PROTOTYPES hook.
4583 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4585 * fe.h (Get_External_Name): Declare.
4586 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4587 (concat_name): ...this.
4588 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4589 gnu_entity_name and adjust for above renaming.
4590 <E_Access_Type>: Use create_concat_name to get the name of the various
4591 types associated with unconstrained array types.
4592 (make_aligning_type): Adjust for above renaming.
4593 (maybe_pad_type): Likewise.
4594 (components_to_record): Likewise. Use get_identifier_with_length for
4595 the encoding of the variant.
4596 (get_entity_name): Use get_identifier_with_length.
4597 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4598 Do not fiddle with Name_Buffer.
4599 (concat_id_with_name): Rename to...
4600 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4602 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4605 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4607 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4610 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4612 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4614 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4616 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4617 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4618 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4619 Remove useless support code for packed array types and assert its
4621 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4622 adjust for TYPE_RM_SIZE change.
4623 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4624 of Associated_Node_For_Itype accessor for packed array types.
4625 (make_packable_type): Likewise.
4626 (maybe_pad_type): Likewise.
4627 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4628 TYPE_RM_SIZE change.
4629 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4630 (rm_size): Fix nits in comments. Rework conditional statements.
4631 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4633 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4634 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4635 appropriate function to initialize the size_type_node. Adjust for
4636 TYPE_RM_SIZE change.
4638 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4640 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4641 for imported subprograms.
4643 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4645 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4646 constant objects covered by 13.3(19) volatile.
4648 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4650 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4651 of dummy fat pointer types to the debug back-end.
4653 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4655 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4656 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4657 before wrapping it up in the record type. Do not overwrite the
4658 Ada size of the record type with the Esize.
4660 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4662 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4663 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4664 if the conversion is on the LHS of an assignment and a no-op.
4665 <all> Do not convert the result to the result type if the Parent
4666 node is such a conversion.
4668 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4670 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4671 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4672 of types with unknown discriminants.
4673 (substitute_in_type): Rewrite and restrict to formal substitutions.
4674 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4675 (update_pointer_to): Update comment.
4677 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4679 * sem_ch8.adb (Use_One_Package): In an instance, if two
4680 potentially_use_visible and non-overloadable homonyms are available
4681 from the actuals of distinct formal packages, retain the current one,
4682 which was visible in the generic, to prevent spurious visibility
4684 (End_Use_Package): Restore use_visibility when needed.
4686 2009-04-20 Sergey Rybin <rybin@adacore.com>
4688 * gnat_ugn.texi, vms_data.ads: Update doc.
4690 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4692 * gcc-interface/Make-lang.in: Update dependencies
4694 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4697 2009-04-20 Robert Dewar <dewar@adacore.com>
4699 * checks.ads: Fix documentation of range check handling
4701 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4703 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
4704 a redundant use_type clause.
4706 2009-04-20 Robert Dewar <dewar@adacore.com>
4708 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
4709 this attribute can be evaluated at compile time.
4710 (Eval_Attribute, case Range_Length): Same improvement
4712 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
4714 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4716 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
4717 for better handling of null procedures.
4718 (Check_Overriding_Indicator): Do not emit a warning on a missing
4719 overriding indicator on an operator when the type of which the operator
4720 is a primitive is private.
4722 2009-04-20 Bob Duff <duff@adacore.com>
4724 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
4727 2009-04-20 Robert Dewar <dewar@adacore.com>
4729 * sem_attr.adb: Minor reformatting
4731 * gnatcmd.adb: Minor reformatting
4733 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4735 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
4736 overloaded and one interpretation matches the context, label the
4737 operand with the type of first formal.
4739 2009-04-20 Bob Duff <duff@adacore.com>
4741 * debug.ads: Minor comment fix.
4743 * debug.adb: Minor comment fixes.
4745 2009-04-20 Javier Miranda <miranda@adacore.com>
4747 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
4749 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
4751 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
4752 is expanded into a call to Raise_Exception, avoid passing the
4753 exception-name'identity in runtimes in which this argument
4756 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
4758 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
4759 generated bindings for cil.
4761 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4763 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
4764 discriminants, collect components from the Underlying_Record_View,
4765 which will be used in the expansion of the aggregate into assignments.
4767 * sem_ch3.adb: Do not label derived type with unknown discriminants as
4768 having a private declaration.
4770 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4772 * exp_util.adb (Expand_Subtype_From_Expr): use the
4773 underlying_record_view when available, to create the proper constrained
4774 subtype for an object of a derived type with unknown discriminants.
4776 2009-04-20 Javier Miranda <miranda@adacore.com>
4778 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
4779 formals that have pragma unreferenced.
4781 2009-04-20 Pascal Obry <obry@adacore.com>
4783 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
4784 Remove all calls to To_Lower_If_Case_Insensitive to preserve
4785 the pathname original casing.
4787 2009-04-20 Robert Dewar <dewar@adacore.com>
4789 * g-trasym.adb: Minor reformatting
4791 * s-os_lib.adb: Minor reformatting
4793 * sem.adb: Minor reformatting
4794 Minor code reorganization
4796 * sem_ch3.adb: Minor reformatting
4798 * sem_ch4.adb: Minor reformatting
4800 * sem_ch8.adb: Minor reformatting
4802 * sem_type.adb: Minor reformatting
4804 2009-04-20 Javier Miranda <miranda@adacore.com>
4806 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
4807 generated by derivations of tagged types use the aliased subprogram a
4808 reference to locate their controlling type.
4810 2009-04-20 Tristan Gingold <gingold@adacore.com>
4812 * g-trasym.adb: Set size of result buffer before calling
4815 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4817 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
4818 to a function returning an array can be interpreted as a call with
4819 defaulted parameters whose result is indexed, take into account the
4820 types of all the indices of the array result type.
4822 2009-04-20 Pascal Obry <obry@adacore.com>
4824 * a-direct.adb, s-os_lib.adb: Minor reformatting.
4826 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4828 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
4829 null exclusion qualifiers for object renaming declarations.
4831 2009-04-20 Nicolas Roche <roche@adacore.com>
4833 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
4834 unsigned long long. So compare local_time and utc_time before computing
4837 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4839 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4840 of the Underlying_Record_View before that of the derived type.
4842 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
4843 with unknown discriminants with regard to the parent subtype.
4845 2009-04-20 Bob Duff <duff@adacore.com>
4847 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
4848 that are not included. This is necessary if the main unit is a generic
4851 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
4852 because it doesn't work if -gnatn is used.
4854 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4856 * rtsfind.adb (RTE, RTE_Record_Component): In
4857 Configurable_Run_Time_Mode, do not enable front-end inlining.
4859 2009-04-20 Thomas Quinot <quinot@adacore.com>
4861 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
4862 System.Address_To_Access_Conversions.
4864 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4866 * sem.adb: Guard against ill-formed subunits.
4868 2009-04-20 Bob Duff <duff@adacore.com>
4870 * output.adb (Flush_Buffer): Do not indent blank lines.
4871 (Ignore_Output): New procedure for output suppression.
4873 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4875 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
4876 when it is positive. This avoids a potential constraint error raised
4877 by the conversion to Natural.
4879 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4881 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
4882 involves a target that has a specified address, don't set Forward_OK
4883 and Backward_OK to False if the rhs is an aggregate, since overlap
4886 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4888 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
4889 in an object renaming declaration when the expected type is an
4890 anonymous access type.
4892 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
4893 ambiguity when one interpretation is an anonymous access type and the
4894 other is a named access type, and the context itself is anonymous
4896 2009-04-20 Thomas Quinot <quinot@adacore.com>
4898 * einfo.ads: Minor comment rewording
4900 * sem_aggr.adb: Minor comment rewording
4902 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
4904 2009-04-20 Pascal Obry <obry@adacore.com>
4906 * adaint.c (__gnat_is_readable_file): Check for file existence
4907 when not using ACL (always the case on remote drives).
4909 2009-04-20 Robert Dewar <dewar@adacore.com>
4911 * sinfo.ads: Minor comment fixes
4913 * exp_disp.adb: Minor reformatting
4915 * gnat1drv.adb: Minor reformatting
4917 * output.adb: Minor reformatting
4919 * s-vxwext-kernel.ads: Minor reformatting
4921 * sem.ads: Minor reformatting
4923 * sem.adb: Minor reformatting
4925 * sem_elim.adb: Minor reformatting
4927 * uname.ads: Minor reformatting
4929 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4931 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
4932 a small dope of 4 words to the adjustment to the stack pointer.
4934 2009-04-20 Thomas Quinot <quinot@adacore.com>
4936 * xoscons.adb: generate C header s-oscons.h in
4937 addition to s-oscons.ads.
4939 * socket.c: On VMS, use s-oscons.h.
4941 * sem_ch3.adb: Minor reformatting
4943 * exp_ch9.adb: Minor reformatting
4945 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4947 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
4948 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
4949 (call_to_gnu): Likewise.
4951 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4953 * gcc-interface/trans.c (gigi): Declare the name of the compilation
4954 unit as the first global name at the very beginning.
4956 2009-04-20 Thomas Quinot <quinot@adacore.com>
4958 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4959 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
4960 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
4961 since HP-UX supports neither inet_aton nor inet_pton (altough the
4962 latter is part of the Single UNIX Specification!).
4963 So reorganize code, and share C implementation based on inet_addr(3)
4964 with VMS (instead of having a VMS specific Ada implementation in
4967 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4969 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
4970 to return the object file name saved by Set_Object_Output_File_Name.
4972 2009-04-20 Emmanuel Briot <briot@adacore.com>
4974 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
4975 for the standard command line, when argc has been modified since the
4976 start of the application.
4978 2009-04-20 Thomas Quinot <quinot@adacore.com>
4980 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
4981 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
4983 2009-04-20 Bob Duff <duff@adacore.com>
4985 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
4988 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4990 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
4991 subprogram as Eliminated when source operation is.
4992 (Expand_N_Protected_Type_Declaration): Generate protected and
4993 unprotected specs for the internal operations, even if the source
4994 operation is eliminated.
4996 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4998 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
4999 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5000 of the primitive subprograms associated with dispatching select
5001 statements when the runtime is in configurable mode.
5003 2009-04-20 Ed Falis <falis@adacore.com>
5005 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5007 2009-04-20 Thomas Quinot <quinot@adacore.com>
5009 * s-oscons-tmplt.c: Add support for generating a dummy version of
5010 s-oscons.ads providing all possible constants.
5012 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5014 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5015 ANSI version (not the UNICODE version) of WSAStringToAddress.
5017 2009-04-20 Pascal Obry <obry@adacore.com>
5019 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5020 allocated for the security descriptor and make sure all
5021 handles are closed before leaving this procedure.
5023 2009-04-20 Javier Miranda <miranda@adacore.com>
5025 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5026 (Set_Is_Underlying_Record_View): New subprogram
5028 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5029 private types with unknown discriminants use the underlying record view
5032 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5033 underlying record view in the full view of private types whose parent
5034 has unknown discriminants.
5035 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5036 associated with an underlying record view.
5037 (Derived_Type_Declaration): Avoid deriving parent primitives in
5038 underlying record views.
5040 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5041 records with unknown discriminants.
5043 * sem_type.adb (Covers): Handle underlying record views.
5044 (Is_Ancestor): Add support for underlying record views.
5046 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5047 dispatching call if the type of the target object is tagged and has
5048 unknown discriminants.
5050 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5051 unknown discriminants.
5053 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5054 tables for internally built underlying record views.
5056 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5057 empty list of component associations.
5059 2009-04-20 Thomas Quinot <quinot@adacore.com>
5061 * sem_ch10.adb: Minor reformatting
5063 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5064 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5065 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5066 standard inet_pton API (and emulate it on platforms that do not
5068 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5069 DECC$INET_ADDR, imported in Ada.
5070 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5071 implementation provided by GNAT runtime.
5072 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5075 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5077 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5079 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5081 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5082 with_clause if it is the main unit.
5084 2009-04-20 Thomas Quinot <quinot@adacore.com>
5086 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5087 (no behaviour change): Use Append instead of Increment_Last followed
5090 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5092 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5093 declarations of all primitives associated with dispatching asynchronous,
5094 conditional and timed selects when dispaching calls are forbidden and
5095 select statements are not allowed (such as in Ravenscar).
5096 (Predefined_Primitive_Bodies): Ditto for bodies.
5098 * exp_disp.ad (Make_DT): Do not create and populate the
5099 Select_Specific_Data of the dispatch table when dispatching calls are
5100 forbidden and select statements are not allowed (such as in Ravenscar).
5102 2009-04-20 Robert Dewar <dewar@adacore.com>
5104 * a-tifiio.adb: Minor reformatting
5106 2009-04-20 Thomas Quinot <quinot@adacore.com>
5108 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5109 other C library functions, report *failure* with a zero status, and
5110 success with a non-zero status.
5112 2009-04-20 Bob Duff <duff@adacore.com>
5114 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5115 (Semantics): After analyzing each unit, Append it to the
5116 Comp_Unit_List, if appropriate.
5118 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5120 (Gnat1drv): Correct comment regarding Back_End_Mode.
5122 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5124 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5126 2009-04-20 Thomas Quinot <quinot@adacore.com>
5128 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5129 output.adb, output.ads, s-taprop-hpux-dce.adb,
5130 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5133 2009-04-20 Thomas Quinot <quinot@adacore.com>
5135 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5136 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5137 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5138 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5139 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5140 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5142 * debug.adb: Fix typo
5144 * gnat_rm.texi: Minor doc fix.
5146 * sem_ch7.adb, freeze.adb: Minor reformatting
5148 2009-04-20 Thomas Quinot <quinot@adacore.com>
5150 * g-socket.ads: Add new constants:
5152 Unspecified_Group_Inet_Addr
5153 All_Hosts_Group_Inet_Addr
5154 All_Routers_Group_Inet_Addr
5156 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5157 ERANGE (Result too large).
5158 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5159 propagation of errno to caller.
5161 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5163 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5164 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5167 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5169 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5170 checking for references to eliminated subprograms that should be
5172 (Eliminate_Error_Message): Update comment to say "references" rather
5173 than "calls" (since attribute cases are handled here as well).
5175 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5176 checking for references to eliminated subprograms that should be
5177 flagged. Add with and use of Sem and Sem_Util.
5179 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5180 Add with and use of Sem_Elim.
5182 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5183 applied to eliminated subprograms.
5184 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5185 eliminated subprograms.
5186 Add with and use of Sem_Elim.
5188 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5189 to eliminated subprograms, now handled during Resolve_Call.
5190 Remove with and use of Sem_Elim.
5192 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5193 testing Is_Eliminated, for proper handling of primitive derived from
5194 eliminated subprograms.
5196 2009-04-20 Vincent Celier <celier@adacore.com>
5198 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5199 has been declared (Library_GCC or Linker'Driver), for the driver name.
5201 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5202 Linker'Driver is, use Linker'Driver as the shared library linker.
5203 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5204 Library_GCC is declared.
5205 (Check_Library_Attributes): Set up the shared linker driver: either
5206 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5209 2009-04-20 Thomas Quinot <quinot@adacore.com>
5211 * g-socket.ads (Send_Socket): Fix misleading comment.
5213 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5215 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5218 2009-04-20 Geert Bosch <bosch@adacore.com>
5220 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5221 fixed types with smalls that are neither integer or the reciprocal
5224 2009-04-20 Bob Duff <duff@adacore.com>
5226 * uname.ads: Minor comment fix.
5228 * types.ads: Minor comment fix.
5230 2009-04-20 Pascal Obry <obry@adacore.com>
5232 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5233 avoid warning. At the same time fix a memory leak.
5235 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5236 returned by the above routine.
5238 2009-04-20 Robert Dewar <dewar@adacore.com>
5240 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5241 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5242 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5243 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5245 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5247 2009-04-20 Pascal Obry <obry@adacore.com>
5249 * initialize.c (__gnat_initialize): Add braces to kill warning.
5251 * adaint.c: Minor reformatting, remove trailing spaces.
5253 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5255 * gcc-interface/Make-lang.in: Update dependencies.
5257 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5259 * adaint.h (__gnat_lwp_self): Declare on Linux.
5261 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5263 2009-04-20 Robert Dewar <dewar@adacore.com>
5265 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5266 front-end part of -fpreserve-control-flow switch.
5268 2009-04-20 Bob Duff <duff@adacore.com>
5270 * rtsfind.adb: Minor comment fix
5272 2009-04-20 Robert Dewar <dewar@adacore.com>
5274 * exp_aggr.adb: Minor reformatting
5275 Minor code reorganization (use Nkind_In)
5277 * g-socket.adb: Minor reformatting
5279 * g-socket.ads: Minor comment fix
5281 * s-auxdec.ads: Minor comment and organization update.
5283 * s-auxdec-vms_64.ads: Minor comment and organization update.
5285 * sem_ch10.adb: Minor addition of ??? comment
5287 * sem_disp.adb: Minor reformatting
5289 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5291 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5292 list a caller of an inlined subprogram, if the caller itself is not
5295 2009-04-20 Pascal Obry <obry@adacore.com>
5297 * adaint.c: Disable use of ACL on network drives.
5299 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5301 * gnat_ugn.texi: Add examples.
5303 2009-04-20 Thomas Quinot <quinot@adacore.com>
5305 * g-socket.ads (Abort_Selector): Clarify documentation.
5307 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5309 * opt.ads (Inspector_Mode): Update documentation of this flag.
5311 2009-04-20 Thomas Quinot <quinot@adacore.com>
5313 * g-socket.ads: Minor reformatting
5315 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5316 consider S_resolvLib error codes since we only use the hostLib wrappers.
5318 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5320 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5321 of the Underlying_Record_View after that of the derived type.
5323 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5325 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5328 2009-04-20 Javier Miranda <miranda@adacore.com>
5330 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5332 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5335 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5338 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5339 in internally built overriding subprograms.
5341 2009-04-20 Doug Rupp <rupp@adacore.com>
5343 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5345 * s-auxdec.ads: Likewise
5347 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5349 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5350 type by an interface.
5352 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5353 minimze difference in expanded tree when compiled as spec of the main
5354 unit, or as a spec in the context of another unit.
5356 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5358 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5359 (localtime_tzoff): This routine no longer accepts an actual of type
5361 (UTC_Time_Offset): Remove local variable Secs_TM.
5363 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5364 actual of type struct tm*. Add local variable of type struct tm for all
5365 targets that provide localtime_r and need to invoke it.
5367 2009-04-20 Thomas Quinot <quinot@adacore.com>
5369 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5370 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5371 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5373 2009-04-20 Robert Dewar <dewar@adacore.com>
5375 * sem_ch3.adb: Minor reformatting
5377 * lib-load.adb: Minor reformatting
5379 * sem_ch4.adb: Minor reformatting
5381 2009-04-20 Robert Dewar <dewar@adacore.com>
5383 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5384 (equal values => False).
5386 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5388 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5389 to null procedures can be inlined unconditionally.
5391 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5393 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5394 non-addressable parameter passed by reference, do not convert the
5395 actual if its type is already the nominal type, unless it is of
5396 self-referential size.
5398 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5400 * gnat_ugn.texi: Fix typos.
5402 2009-04-20 Robert Dewar <dewar@adacore.com>
5404 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5405 Validate_Unchecked_Warnings to suppress warnings about size or
5406 alignment or extra bits if either type involved has pragma Warnings
5407 (Off) set for the type entity.
5409 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5411 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5412 a builtin type and give it a name.
5414 2009-04-17 Diego Novillo <dnovillo@google.com>
5416 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5417 (LANG_HOOKS_EXPAND_EXPR): Remove.
5419 2009-04-17 Robert Dewar <dewar@adacore.com>
5421 * sem_ch3.adb: Minor reformatting
5423 2009-04-17 Pascal Obry <obry@adacore.com>
5425 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5427 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5429 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5430 illegal constraints on type derived from formal discrete types.
5432 2009-04-17 Thomas Quinot <quinot@adacore.com>
5436 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5437 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5438 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5439 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5440 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5441 Replace calls to send(2) with equivalent sendto(2) calls.
5442 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5443 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5444 report an error in that case. Factor code common to the two versions
5445 (datagram and stream) in common routine Stream_Write.
5447 2009-04-17 Robert Dewar <dewar@adacore.com>
5449 * exp_disp.adb: Minor reformatting
5450 Minor code reorganization (use Nkind_In)
5452 * prepcomp.adb: Minor reformatting
5454 * sem_ch3.adb: Minor reformatting
5456 * sem_res.adb: Minor comment addition
5458 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5461 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5462 setting Is_Referenced
5464 * types.ads: Minor reformatting
5466 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5468 * gnat_ugn.texi: Initial documentation on binding generator.
5470 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5472 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5473 type extensions whose parent is a type with unknown discriminants.
5475 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5476 aggregate has unknown discriminants, use the Underlying_Record_View to
5477 obtain the discriminants of the ancestor part.
5479 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5480 Underlying_Record_Views share the dispatching information of the
5481 original record extension.
5483 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5484 discriminants, propagate dispach table information to the
5485 Underlying_Record_View.
5487 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5488 discriminants and declaration is not a completion, generate
5489 Underlying_Record_View to provide proper discriminant information to
5490 the front-end and to gigi.
5492 2009-04-17 Robert Dewar <dewar@adacore.com>
5494 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5495 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5496 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5497 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5498 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5499 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5500 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5501 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5502 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5503 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5504 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5505 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5506 s-conca3.ads: Remove unneeded pragma Warnings
5508 2009-04-17 Robert Dewar <dewar@adacore.com>
5510 * g-moreex.adb: Add comments.
5512 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5514 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5517 * prepcomp.adb: Add ??? comment
5519 * a-tasatt.adb: Minor reformatting
5521 * g-trasym-vms-alpha.adb: Add ??? comment
5523 * g-trasym-vms-ia64.adb: Add ??? comment
5525 * xoscons.adb: Minor reformatting
5527 * s-tassta.adb: Minor reformatting
5529 * s-scaval.adb: Add ??? comment
5531 * stand.ads: Minor code clean up (remove junk with of Namet)
5533 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5534 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5535 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5536 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5537 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5538 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5539 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5540 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5541 Warnings off pragmas.
5543 2009-04-17 Pascal Obry <obry@adacore.com>
5545 * initialize.c: Fix test for reallocating the arguments array.
5547 2009-04-17 Geert Bosch <bosch@adacore.com>
5549 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5550 conversion truncate only for decimal fixed point types.
5552 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5554 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5557 2009-04-17 Robert Dewar <dewar@adacore.com>
5559 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5560 Backwards_OK if either operand has an address clause.
5562 2009-04-17 Pascal Obry <obry@adacore.com>
5564 * initialize.c: Code clean up, use realloc.
5566 2009-04-17 Pascal Obry <obry@adacore.com>
5568 * initialize.c: Do not get Unicode command line if Unicode support not
5570 Add support for wildcard expansion for Unicode parameters on Win32.
5572 * mingw32.h: Add missing macros when Unicode support not activated.
5574 2009-04-17 Javier Miranda <miranda@adacore.com>
5576 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5577 avoid generating code that references the Current_Master
5578 when compiling without tasks.
5580 2009-04-17 Vincent Celier <celier@adacore.com>
5582 * prj-attr.adb: New project level attribute Target
5584 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5587 * prj.ads (Project_Configuration): New component Target
5589 2009-04-17 Thomas Quinot <quinot@adacore.com>
5591 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5592 case for the case of an aggregate component, the attach call for the
5593 result is actually needed.
5595 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5596 an array aggregate must be disabled if the component type requires
5599 * exp_ch3.adb: Minor reformatting
5601 2009-04-17 Bob Duff <duff@adacore.com>
5603 * output.ads (Indent,Outdent): New procedures for indenting the output.
5604 (Write_Char): Correct comment -- LF _is_ allowed.
5606 * output.adb (Indent,Outdent): New procedures for indenting the output.
5607 Keep track of the indentation level, and make sure it doesn't get too
5609 (Flush_Buffer): Insert spaces at the beginning of each line, if
5610 indentation level is nonzero.
5611 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5613 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5614 "Next_Col := 1;". Flush_Buffer does that.
5616 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5617 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5618 relevant analysis routines, and calls Indent/Outdent to make the
5619 indentation reflect the nesting level. Add "helper" routines, since
5620 otherwise lots of "return;" statements would skip the debugging output.
5622 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5624 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5625 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5626 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5628 2009-04-17 Thomas Quinot <quinot@adacore.com>
5630 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5632 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5634 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5635 clause in a unit that is a package body or a subunit, when the previous
5636 clause appears in a spec or a parent.
5638 2009-04-17 Thomas Quinot <quinot@adacore.com>
5640 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5642 * exp_ch7.adb: Minor reformatting
5644 2009-04-17 Bob Duff <duff@adacore.com>
5646 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5647 allocator, check that the expression of the qualified expression obeys
5648 the constraints of the subtype of the qualified expression.
5650 2009-04-17 Thomas Quinot <quinot@adacore.com>
5652 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5654 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5656 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5657 aggregate, using context imposed by subtype mark in allocator.
5659 2009-04-17 Pascal Obry <obry@adacore.com>
5661 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5663 2009-04-17 Nicolas Roche <roche@adacore.com>
5665 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5668 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5670 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5671 cover both calls and attribute references ("call" => "reference").
5673 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5675 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5676 type for which Storage_Size is set to 0 is legal in a pure unit.
5678 2009-04-17 Thomas Quinot <quinot@adacore.com>
5680 * exp_ch7.adb: Minor reformatting
5682 2009-04-17 Robert Dewar <dewar@adacore.com>
5684 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5685 restriction if outside main extended source unit.
5687 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5688 for parents of child units as well as the child unit itself.
5690 2009-04-17 Bob Duff <duff@adacore.com>
5692 * checks.ads: Minor comment fix
5694 * exp_aggr.ads: Minor comment fix
5696 2009-04-17 Nicolas Roche <roche@adacore.com>
5698 * adaint.c: Improve cross compiler detection and handling.
5700 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5702 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5704 2009-04-17 Pascal Obry <obry@adacore.com>
5706 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
5709 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
5710 value when no encoding form paramter is set on Text_IO services.
5712 * adaint.c: CurrentCodePage new variable on Windows.
5713 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5716 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5719 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
5720 environment variable value. Default is UTF-8.
5722 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
5723 fopen and freopen encoding parameter is now set to Unspecified.
5724 The default value is in this case UTF-8 (as it was before) but
5725 use the new macros that convert to/from the code page set
5726 at runtime (CurrentCodePage).
5728 * s-fileio.adb: When no encoding specified use Unspecified value.
5730 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5732 * atree.adb, atree.ads: Remove dead code.
5734 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5736 * gcc-interface/Make-lang.in: Update dependencies.
5738 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5740 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
5741 illegal uses of incomplete types in formal parts and return types.
5743 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
5744 access to subprograms.
5746 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
5747 Taft-amendment types as the return type of an access_to_function type.
5749 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5750 type for access_to_subprograms. The check is performed on package exit.
5752 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5754 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
5756 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
5758 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
5760 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
5761 semantic units, because the handling of itypes in the copied tree
5762 requires semantic information that does not belong in atree.
5764 2009-04-17 Robert Dewar <dewar@adacore.com>
5766 * par-ch6.adb: Minor reformatting
5768 * prj.adb: Minor reformatting
5770 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5772 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
5773 on protected subprogram bodies, so exclude the case where Pf_Flags is
5774 Pf_Decl_Pbod from the error check.
5776 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
5777 indicators on subprograms in protected bodies, and proceed with parsing
5780 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
5781 subprograms from the check for primitiveness on subprograms with
5782 overriding indicators.
5783 (Check_Overriding_Indicator): Include protected subprograms in the
5784 style check for missing overriding indicators.
5786 2009-04-17 Tristan Gingold <gingold@adacore.com>
5788 * init.c: Fix stack checking for x86 Darwin.
5790 2009-04-17 Vincent Celier <celier@adacore.com>
5792 * prj-attr.adb: New project level attribute Object_File_Suffix
5795 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
5797 (Process_Compiler): Process attribute Object_File_Suffix
5799 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
5800 platform suffix, when specified.
5802 * prj.ads (Language_Config): New component Object_File_Suffix,
5803 defaulted to No_Name.
5804 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
5806 * snames.ads-tmpl: New standard name Object_File_Suffix
5808 2009-04-17 Robert Dewar <dewar@adacore.com>
5810 * gnat_rm.texi: Add documentation about No_Streams restriction
5812 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
5813 attributes when checking No_Streams restriction.
5815 2009-04-17 Thomas Quinot <quinot@adacore.com>
5817 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
5819 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
5820 missing calls to RE_Request_Destroy to deallocate request objects after
5823 2009-04-17 Nicolas Setton <setton@adacore.com>
5825 * link.c: Fix support for passing a response file under Darwin.
5827 2009-04-17 Emmanuel Briot <briot@adacore.com>
5829 * prj.adb (Free): new subprogram.
5831 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5833 * sem_ch3.adb: additional initialization on incomplete subtypes.
5835 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
5836 part and one of the formals is an incomplete tagged type, attach to
5837 list of private dependends of the type for later validation.
5839 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
5840 primitive operations of a Taft-amendmment type.
5842 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5843 type. The check is performed on package exit, possibly after the
5844 subprogram is frozen.
5846 2009-04-17 Vincent Celier <celier@adacore.com>
5848 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
5849 before looking for source directories, but make sure that there are nil
5850 if they are not explicitely declared and there is explicitely no
5851 sources in the project.
5853 2009-04-17 Pascal Obry <obry@adacore.com>
5855 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
5857 * init.c: Fix minor typo and style fix.
5859 2009-04-17 Robert Dewar <dewar@adacore.com>
5861 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
5863 * sem_attr.adb (Analyze_Attribute, case Address): Use
5864 PE_Address_Of_Intrinsic.
5866 * types.ads: Add PE_Address_Of_Intrinsic
5868 * types.h: Add PE_Address_Of_Intrinsic
5870 2009-04-17 Nicolas Setton <setton@adacore.com>
5872 * gcc-interface/Makefile.in: Under darwin, build shared libraries
5873 with install_name starting with "@rpath/".
5875 2009-04-17 Nicolas Setton <setton@adacore.com>
5877 * link.c: Add darwin section
5879 2009-04-16 Robert Dewar <dewar@adacore.com>
5881 * g-pehage.adb: Minor reformatting
5883 * sem_ch12.adb: Minor reformatting
5885 * exp_dist.adb: Minor reformatting
5887 * bindgen.adb: Minor style fixes.
5889 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5891 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
5892 indexed components to the case where the prefix is a static string
5895 2009-04-16 Javier Miranda <miranda@adacore.com>
5897 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
5898 objects avoid any further expansion of the expression initializing the
5901 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5903 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
5904 that hides an outer homograph, make that homograph invisible when
5905 analyzing the actuals, to to prevent illegal direct visibility on it.
5907 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5909 * g-pehage.adb (Initialize): Fix off-by-one error.
5911 2009-04-16 Tristan Gingold <gingold@adacore.com>
5913 * init.c: Detect real stack overflow on Darwin.
5915 * system-darwin-x86.ads: Use stack probing on darwin x86.
5917 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5919 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
5920 take the address of an intrinsic subprogram.
5922 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5924 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
5925 for the targets where GNAT.Traceback.Symbolic is not supported.
5927 2009-04-16 Vincent Celier <celier@adacore.com>
5929 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
5931 * g-trasym.ads: Update comments.
5933 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5935 * tracebak.c (STOP_FRAME): Verify validity of the current address
5936 before dereferencing.
5938 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5940 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
5941 the original location of the index expressions and the index subtypes,
5942 to prevent spurious out-of-scope references in gigi.
5944 2009-04-16 Tristan Gingold <gingold@adacore.com>
5946 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
5947 Add support for stack checking on darwin.
5949 2009-04-16 Vincent Celier <celier@adacore.com>
5951 * prj-attr.adb: New attribute Runtime_Source_Dir
5953 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
5954 attribute Runtime_Source_Dir.
5955 (Check_Naming_Schemes): Give default values to out parameters to avoid
5958 * prj.ads (Language_Config): New component Runtime_Source_Dir
5960 * snames.ads-tmpl: New standard name Runtime_Source_Dir
5962 2009-04-16 Pascal Obry <obry@adacore.com>
5964 * adaint.h, adaint.c (__gnat_rmdir): New routine.
5965 Simple wrapper routines used to convert to proper encoding on
5968 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
5970 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
5973 2009-04-16 Pascal Obry <obry@adacore.com>
5975 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
5977 2009-04-16 Thomas Quinot <quinot@adacore.com>
5979 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
5980 integrated preprocessor.
5982 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
5983 (Initialize): Split into two subprograms, Initialize (to be called
5984 prior to compiler command line processing) and Setup_Hooks (to be called
5985 later on when the first source file is loaded).
5987 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
5988 Add call to Prep.Initialize.
5990 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
5991 to Prep.Setup_Hooks.
5993 2009-04-16 Pascal Obry <obry@adacore.com>
5995 * adaint.h, adaint.c (__gnat_chdir): New routine.
5996 Simple wrapper routines used to convert to proper encoding on
5999 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6001 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6003 2009-04-16 Quentin Ochem <ochem@adacore.com>
6005 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6008 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6010 * a-convec.ads (Is_Empty): Mark inline.
6012 2009-04-16 Nicolas Roche <roche@adacore.com>
6014 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6016 2009-04-16 Thomas Quinot <quinot@adacore.com>
6018 * prepcomp.adb: Minor reformatting
6020 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6022 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6023 Access_Subprogram types can also be imported.
6024 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6027 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6029 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6030 preserve homonym chain when the declaration is rewritten into a
6031 renaming declaration, in order to preserve visibility structure.
6033 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6035 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6036 taken into account for VM targets.
6038 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6040 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6042 (Year_Week_In_Year): New routine which contains the original code from
6043 Week_In_Year. Add the missing special case for January 1st falling on
6046 2009-04-16 Thomas Quinot <quinot@adacore.com>
6048 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6049 actual type, use the base type to build the To_Any function.
6050 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6052 2009-04-16 Thomas Quinot <quinot@adacore.com>
6054 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6055 restrict.adb: Minor code reorganization (use
6056 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6058 2009-04-16 Bob Duff <duff@adacore.com>
6060 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6063 2009-04-16 Thomas Quinot <quinot@adacore.com>
6065 * sem_ch4.adb: Minor reformatting
6067 * adaint.c: Remove junk duplicated code.
6069 * sem_ch3.adb: Minor reformatting
6071 * exp_dist.adb: Minor comment rewording
6073 2009-04-16 Robert Dewar <dewar@adacore.com>
6075 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6078 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6080 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6081 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6083 2009-04-16 Robert Dewar <dewar@adacore.com>
6085 * Make-lang.in: Add entries for s-conca?.o
6087 * Makefile.rtl: Add entries for s-conca?
6089 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6090 of concatenation expansion
6092 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6093 string cases instead of expanding assignments inline.
6095 * opt.ads (Optimize_Size): New flag
6097 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6098 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6099 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6100 s-conca9.adb, s-conca9.ads: New file.
6102 2009-04-16 Robert Dewar <dewar@adacore.com>
6104 * exp_ch6.adb: Add comments
6106 * rtsfind.ads: Add entries for s-conca? routines
6108 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6110 * gcc-interface/Make-lang.in: Update dependencies.
6112 * gcc-interface/Makefile.in: Update translation for vms.
6114 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6116 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6117 and made global, to be used when installing parents of a child
6118 instance, to provide mappings for entities declared in formal packages
6119 of ancestor units. Now called from Install_Formal_Packages.
6121 2009-04-16 Doug Rupp <rupp@adacore.com>
6123 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6124 notation for clarity.
6126 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6127 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6128 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6129 (Initialize): Initialize Known_Tasks with Environment task.
6131 * s-taskin.ads (Task_States): Move new states to end for the sake of
6134 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6136 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6138 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6139 operation has an inline pragma, propagate the flag to the internal
6140 unprotected subprogram.
6142 2009-04-16 Doug Rupp <rupp@adacore.com>
6144 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6145 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6146 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6147 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6149 * s-taprop-vms.adb (Enter_Task): Likewise.
6150 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6152 * s-tassta.adb (Activate_Tasks): After task creation set state to
6153 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6154 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6155 Set state to Runnable after above.
6156 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6157 Debug_Event_Terminated.
6159 * s-taskin.ads (Task_States): Add new states Activiting and
6160 Activator_Delay_Sleep.
6161 (Bit_Array, Debug_Event_Array): New types.
6162 (Global_Task_Debug_Event_Set: New flag.
6163 (Common_ATCB): New field Debug_Events.
6165 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6167 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6170 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6171 Activating and when Acceptor_Delay_Sleep.
6173 * s-tasdeb.ads: Add constants for Debug_Events.
6174 (Debug_Event_Kind_Type): New subtype.
6175 (Signal_Debug_Event): New subprogram.
6177 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6179 2009-04-16 Thomas Quinot <quinot@adacore.com>
6181 * sem_elim.adb: Minor reformatting
6183 * freeze.adb: Minor reformatting
6185 * exp_ch4.adb: Minor reformatting
6187 2009-04-16 Emmanuel Briot <briot@adacore.com>
6189 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6191 2009-04-16 Robert Dewar <dewar@adacore.com>
6193 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6195 2009-04-16 Vincent Celier <celier@adacore.com>
6197 * fmap.adb (Initialize): Show the current line when the mapping file
6198 is detected as "incorrectly formatted".
6200 2009-04-16 Robert Dewar <dewar@adacore.com>
6202 * sem_ch12.adb: Minor reformatting
6204 * sem_ch5.adb: Minor comment addition
6206 * sem_util.adb: Minor reformatting
6208 * sinput-p.adb: Minor reformatting
6209 Add missing pragma Warnings (On)
6211 2009-04-16 Ed Falis <falis@adacore.com>
6213 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6215 2009-04-16 Vincent Celier <celier@adacore.com>
6217 * ali-util.adb: Minor comment spelling error fix
6219 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6221 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6222 generate an assignment loop in case of overlap.
6224 2009-04-16 Olivier Hainque <hainque@adacore.com>
6226 * gnat_ugn.texi (gnatmem description): Make it explicit that
6227 gnatmem is designed to work in association with static runtime
6230 2009-04-16 Thomas Quinot <quinot@adacore.com>
6232 * sem_type.adb: Minor reformatting
6234 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6236 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6237 concerning return codes of gettimeofday and return value check.
6239 2009-04-16 Ed Falis <falis@adacore.com>
6241 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6242 body can be renaming of imported routines.
6244 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6246 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6249 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6251 * exp_ch9.adb: Comment improvements.
6252 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6255 2009-04-15 Bob Duff <duff@adacore.com>
6257 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6258 "while X /= null loop" where X is unchanged inside the loop. We were
6259 not warning in this case, because of the pointers -- we feared that the
6260 loop variable could be updated via a pointer, if there are any pointers
6261 around the place. But that is impossible in this case.
6263 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6264 the case of dereferences. In X.all, X cannot be an l-value. We now
6265 catch that case (and implicit dereferences, too).
6267 2009-04-15 Vincent Celier <celier@adacore.com>
6269 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6271 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6273 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6275 (Analyze_Package_Instantiation): If generic unit in child instance is
6276 the same as generic unit in parent instance, look for an outer homonym
6277 to locate the desired generic.
6279 2009-04-15 Bob Duff <duff@adacore.com>
6281 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6282 warnings unless the loop comes from source, because checking generated
6283 loops is a waste of time, and makes it harder to debug
6284 Check_Infinite_Loop_Warning.
6286 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6287 tested in the while loop is a renaming, do not warn. Otherwise, we get
6288 false alarms, because it's usually renaming something that we can't
6289 deal with (an indexed component, a global variable, ...).
6291 * gnat_rm.texi: Fix typo
6293 2009-04-15 Thomas Quinot <quinot@adacore.com>
6295 * sem_ch6.adb: Minor reformatting
6297 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6299 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6300 immediate parent of the controlled function call is a component
6303 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6305 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6306 corresponding class-wide type is also in use.
6308 2009-04-15 Thomas Quinot <quinot@adacore.com>
6310 * frontend.adb: Minor comment fix
6312 2009-04-15 Robert Dewar <dewar@adacore.com>
6314 * gnatchop.adb (BOM_Length): New global variable
6315 (Write_Unit): Add new parameter Write_BOM
6316 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6319 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6321 2009-04-15 Geert Bosch <bosch@adacore.com>
6323 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6324 (Backend_Overflow_Checks): Set to True.
6326 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6328 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6329 keyword is given in a record extension.
6331 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6333 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6334 of a controlled function call in the context of a record aggregate.
6335 This does not apply to array aggregates since the call will be expanded
6338 2009-04-15 Ed Falis <falis@adacore.com>
6340 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6341 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6342 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6343 s-osinte-vxworks* and s-vxwext*.
6345 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6347 * gcc-interface/Make-lang.in: Update dependencies.
6349 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6352 2009-04-15 Robert Dewar <dewar@adacore.com>
6354 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6355 of node for location for warning messages.
6357 * gnatchop.adb: Minor reformatting
6359 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6361 * exp_ch6.adb: additional guard for renaming declarations for in
6362 parameters of an array type.
6364 2009-04-15 Robert Dewar <dewar@adacore.com>
6366 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6367 in case they were rewritten by expander (Force_Evaluation).
6369 * targparm.adb (Get_Target_Parameters): Correct check for
6370 Suppress_Exception_Locations.
6372 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6374 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6375 inlined is of an array type that is not bit-packed, use a renaming
6376 declaration to capture its value, rather than a constant declaration.
6378 2009-04-15 Robert Dewar <dewar@adacore.com>
6380 * rtsfind.adb: Minor reformatting.
6382 2009-04-15 Emmanuel Briot <briot@adacore.com>
6384 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6385 Restore, and free the saved context.
6387 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6389 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6390 for illegal private extension from a synchronized interface parent in
6391 front of check for illegal limited extension so that limited extension
6392 from a synchronized interface will be rejected.
6393 (Check_Ifaces): Check that a private extension that has a synchronized
6394 interface as a progenitor must be explicitly declared synchronized.
6395 Also check that a record extension cannot derive from a synchronized
6398 2009-04-15 Pascal Obry <obry@adacore.com>
6400 * adaint.h (__gnat_unlink): Add spec.
6401 (__gnat_rename): Likewise.
6403 2009-04-15 Vincent Celier <celier@adacore.com>
6405 * prj-nmsc.adb: Minor spelling error corrections in error messages
6407 2009-04-15 Robert Dewar <dewar@adacore.com>
6409 * sinfo.ads: Minor comment update
6411 * opt.ads: Minor comment updates
6413 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6416 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6418 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6419 that generates the code needed to update a dispatch table when a
6420 primitive operation is declared with a subprogram body without previous
6421 spec. Insertion of the generated code is responsibility of the caller.
6422 (Make_DT): When building static tables, append the code created by
6423 Register_Primitive to update a secondary table after it has been
6426 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6428 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6429 on an overriding operation that implements an interface operation only
6430 if not building static dispatch tables.
6432 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6434 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6435 does not cause overflow when converted to Duration. Use the safe value
6436 as the maximum allowable time delay..
6438 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6440 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6441 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6442 translated to "-j 2".
6444 2009-04-15 Bob Duff <duff@adacore.com>
6446 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6447 with_clauses, to avoid code duplication. Change this processing so we
6448 always add a with_clause on the main unit if needed.
6450 2009-04-15 Pascal Obry <obry@adacore.com>
6452 Add support for Win32 native encoding for delete/rename routines.
6454 * adaint.c (__gnat_unlink): New routine.
6455 (__gnat_rename): New routine.
6456 Simple wrapper routines used to convert to proper encoding on
6459 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6460 call to the C library.
6462 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6464 2009-04-15 Robert Dewar <dewar@adacore.com>
6466 * s-tassta.adb: Minor reformatting
6468 2009-04-15 Robert Dewar <dewar@adacore.com>
6470 * frontend.adb (Frontend): Set proper default for
6471 Warn_On_Non_Local_Exception.
6473 * opt.ads (Exception_Handler_Encountered): New flag
6474 (No_Warn_On_Non_Local_Exception): New flag
6476 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6478 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6479 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6481 2009-04-15 Cyrille Comar <comar@adacore.com>
6483 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6484 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6485 message when exception traces are active since it would generate
6486 redundant information.
6487 (Exception_Traces.Notify_Exception): put message output by a critical
6488 section to avoid unsynchronized output.
6489 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6490 section to avoid unsynchronized output.
6492 2009-04-15 Emmanuel Briot <briot@adacore.com>
6494 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6495 (Free): New subprogram.
6497 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6499 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6500 (Formatting_Operations.Time_Of): Change the way four year chunks of
6501 nanoseconds are added to the intermediate result.
6503 2009-04-15 Nicolas Setton <setton@adacore.com>
6505 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6506 does not need to wait for a carriage return.
6508 2009-04-15 Tristan Gingold <gingold@adacore.com>
6510 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6513 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6515 * freeze.adb (Freeze_Entity): improve error message for improper use of
6517 Diagnose additional illegal uses of incomplete types in formal parts.
6518 appearing in formal parts.
6520 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6522 2009-04-15 Robert Dewar <dewar@adacore.com>
6524 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6526 2009-04-15 Nicolas Roche <roche@adacore.com>
6528 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6531 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6533 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6535 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6537 * sem_ch4.adb: improve error message on exponentiation.
6539 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6541 * a-calend.adb: Move constant Epoch_Offset from package
6542 Conversion_Operations to top level.
6543 (Delay_Operations.To_Duration): Define a constant which represents
6544 "end of time" and use it as a guard against very distant delay dates.
6545 Protect the code against overflow when performing the origin shift to
6548 2009-04-15 Robert Dewar <dewar@adacore.com>
6550 * sem_prag.adb: Minor reformatting.
6552 * sem_type.adb: Minor reformatting
6554 2009-04-15 Javier Miranda <miranda@adacore.com>
6556 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6557 support to check eliminated subprograms.
6559 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6561 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6562 dispatching subprograms.
6564 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6565 operations. Initialize with "null" the slots of eliminated dispaching
6567 (Write_DT): Add output for eliminated primitives.
6569 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6571 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6573 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6574 the second is redundant, regardless of scopes.
6576 2009-04-15 Vincent Celier <celier@adacore.com>
6578 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6579 the object directory as when there are no sources, they may not be any
6582 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6583 directory, when there are no exec directory.
6585 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6587 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6588 ambiguities, refine removal of universal interpretations from complex
6589 expressions with literal arguments, when some numeric operators have
6590 been declared abstract.
6592 2009-04-15 Ed Falis <falis@adacore.com>
6594 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6595 and backward compatibility for targets using probing for stack overflow
6597 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6599 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6600 after any declaration, including renaming declarations.
6602 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6604 * gcc-interface/Make-lang.in: Update dependencies.
6606 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6607 Update xenomai target pairs.
6609 2009-04-15 Javier Miranda <miranda@adacore.com>
6611 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6613 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6614 functions returning anonymous access to class-wide limited types. Mark
6615 also the containing scope as a task master.
6617 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6618 limited-withed packages. Required to restore their visibility after
6619 processing packages associated with implicit with-clauses.
6621 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6622 associated with return statements because this work is now done by
6623 Check_Anonymous_Return.
6624 (Build_Master): Code cleanup.
6626 2009-04-15 Thomas Quinot <quinot@adacore.com>
6628 * sem_warn.ads: Minor reformatting
6630 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6632 * sem_ch3.adb: better error message for illegal interfaces
6634 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6635 formal is an incomplete type from a limited_with clause.
6637 2009-04-15 Vincent Celier <celier@adacore.com>
6639 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6640 Externally_Built indicating if the project is externally built. If it
6641 is, and --subdirs is specified, but the subdir does not exist, look
6642 for the specified directory, without the subdir.
6644 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6646 * a-tasatt.adb: Fix typo, plus minor reformatting
6648 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6650 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6652 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6654 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6655 private extension whose parent is a synchronized interface carries an
6656 explicit synchronized keyword.
6658 2009-04-15 Thomas Quinot <quinot@adacore.com>
6660 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6661 instantiate generic shared object package with the corresponding
6664 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6666 * system-linux-sparc.ads: Remove obsolete entries.
6668 2009-04-15 Thomas Quinot <quinot@adacore.com>
6670 * s-tasuti.ads: Add ??? comment
6672 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6674 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6675 type even if the designated type comes from a limited_with clause, to
6676 ensure that the symbol for the finalization list of the access type is
6679 2009-04-10 Robert Dewar <dewar@adacore.com>
6681 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6682 for warning suppression.
6684 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6686 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6687 identical, there is no redudancy to check.
6689 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6691 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6692 calls initializing SS_Allocator (which is initialized in following
6694 (Expand_Simple_Function_Return): Add comment about False value for
6695 Comes_From_Source on secondary-stack allocator.
6697 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
6698 (Build_Entry_Name): Add comment.
6700 2009-04-10 Robert Dewar <dewar@adacore.com>
6702 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
6704 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
6705 bound tested, since this is now done more generally in Sem_Res.
6707 * sem_res.adb (Resolve_Comparison_Op): Add call to
6708 Check_Lower_Bound_Tested.
6709 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
6711 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
6712 (Low_Bound_Tested): New name for Low_Bound_Known flag
6714 * exp_ch5.adb: Minor reformatting
6717 Add comments on copying the Comes_From_Source flag for allocators
6720 Add comments on copying the Comes_From_Source flag for allocators
6722 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
6723 Comes_From_Source flag from old allocator to new one.
6725 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6727 * sem_ch6.ads: Address missing documentation query
6729 2009-04-10 Vincent Celier <celier@adacore.com>
6732 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
6733 and Response_File_Switches.
6735 * prj-nmsc.adb (Process_Linker): Process new attributes
6736 Max_Command_Line_Length, Response_File_Format and
6737 Response_File_Switches.
6739 * prj.ads (Response_File_Format): New enumeration type
6740 (Project_Configuration): New componants Max_Command_Line_Length,
6741 Resp_File_Format and Resp_File_Options.
6743 * snames.ads-tmpl: Add new standard names for linking response files
6744 for gprbuild: GNU, None, Object_List, Option_List,
6745 Max_Command_Line_Length, Response_File_Format and
6746 Response_File_Switches.
6748 2009-04-10 Geert Bosch <bosch@adacore.com>
6750 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
6751 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
6752 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
6753 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
6754 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
6755 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6756 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
6757 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
6758 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
6759 system-vxworks-arm.ads, system-vxworks-m68k.ads,
6760 system-vxworks-mips.ads, system-vxworks-ppc.ads,
6761 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
6762 (Backend_Overflow_Checks): Set to True.
6764 2009-04-10 Thomas Quinot <quinot@adacore.com>
6766 * exp_attr.adb: Minor reformatting
6768 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6770 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
6771 analyze the expression for a postcondition, even if the compiler mode
6774 2009-04-10 Robert Dewar <dewar@adacore.com>
6776 * sem_aux.adb: Minor reformatting
6778 2009-04-10 Ed Falis <falis@adacore.com>
6780 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
6782 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
6784 2009-04-10 Thomas Quinot <quinot@adacore.com>
6786 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
6787 undocumented formal.
6790 * a-direio.ads: Fix typo in comment
6792 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
6793 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
6794 Use uniform phrasing for comment at start of subprogram body.
6796 * xsnamest.adb: Add note to explain why we use specific names for the
6797 newly generated files instead of generating snames.{ads,adb,h} directly
6799 2009-04-10 Sergey Rybin <rybin@adacore.com>
6802 Add qualifier for new gnatstub option '--no-exception'
6805 Add the description of the new gnatstub option '--no-exception'
6807 2009-04-10 Robert Dewar <dewar@adacore.com>
6809 * rtsfind.adb: Minor reformatting
6811 2009-04-10 Thomas Quinot <quinot@adacore.com>
6813 * sem_disp.adb: Minor reformatting.
6814 Add comment pointing to RM clause for the case of warning against a
6815 (failed) attempt at declaring a primitive operation elsewhere than in a
6818 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6820 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
6821 an actual for a previous formal package of the current instance.
6823 2009-04-10 Bob Duff <duff@adacore.com>
6825 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
6826 them first, rather than on the extended main unit.
6828 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6830 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
6831 specification of full view carries a null exclusion indicator, create
6832 an itype for it, to check for conformance with partial view.
6834 2009-04-10 Bob Duff <duff@adacore.com>
6836 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
6838 * rtsfind.adb: Minor comment changes, and remove useless code.
6840 * sinfo.ads: Add ??? comment.
6842 2009-04-10 Vincent Celier <celier@adacore.com>
6844 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
6846 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6848 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
6849 type is a synchronized type, retrieve tag information from the
6850 corresponding record, which has the dispatch table link.
6852 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
6854 * g-comlin.adb (Group_Analysis): Take care of switches that might be
6855 decomposed afterwards, but are present as-is in the command line
6856 configuration, and thus should be kept as-is.
6858 2009-04-10 Robert Dewar <dewar@adacore.com>
6860 * gnat_rm.texi: Document that postconditions are tested on implicit
6863 * sem_aux.adb: Minor reformatting
6865 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6867 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
6870 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
6871 Null_Exclusion_In_Return_Present when an access-to-function type has a
6872 result type with an explicit not null.
6874 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
6875 given on the result type, then create a null-excluding itype for the
6878 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
6879 the case where a null exclusion is imposed on a named access type.
6880 (Analyze_Subprogram_Specification): Push and pop the scope of the
6881 function around the call to Analyze_Return_Type in the case of no
6882 formals, for consistency with handling when formals are present
6883 (Process_Formals does this). Ensures that any itype created for the
6884 return type will be associated with the proper scope.
6886 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
6887 exclusion is given on a generic function's result type, then create a
6888 null-excluding itype for the generic function.
6889 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
6890 for an actual for a formal in object according to the setting on the
6891 formal. Ensures null exclusion checks are done when the association is
6894 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
6895 N_Access_Function_Definition.
6897 * sinfo.adb: Add Get_ and Set_ operations for
6898 Null_Exclusion_In_Return_Present.
6900 2009-04-10 Bob Duff <duff@adacore.com>
6902 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
6903 call to the _Postconditions procedure in the case of implicit returns
6904 from analysis to expansion. This eliminates some duplicated code. Use
6905 the Postcondition_Proc to find the identity of this procedure during
6908 2009-04-10 Robert Dewar <dewar@adacore.com>
6910 * sem_ch6.adb: Minor code clean up.
6912 * einfo.ads, sem_attr.adb: Minor comment fixes.
6914 2009-04-10 Robert Dewar <dewar@adacore.com>
6916 * sem_ch8.adb: Minor reformatting
6918 2009-04-10 Robert Dewar <dewar@adacore.com>
6920 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
6923 * sem_ch6.adb: Minor code clean up.
6925 2009-04-10 Robert Dewar <dewar@adacore.com>
6927 * mlib-tgt-specific-xi.adb: Minor reformatting
6929 2009-04-10 Bob Duff <duff@adacore.com>
6931 * einfo.ads: Minor comment fixes
6933 2009-04-10 Vincent Celier <celier@adacore.com>
6935 * snames.ads-tmpl: Remove names that are no longer used in the
6937 Mark specifically those that are used only in gprbuild
6939 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
6941 * init.c: Adjust EH support code on Alpha/Tru64.
6943 2009-04-10 Bob Duff <duff@adacore.com>
6945 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
6946 procedure on every path that could return implicitly (not via a return
6947 statement) from a procedure.
6949 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6951 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
6952 valid scope for a task declarations and therefore for a master id.
6954 2009-04-10 Robert Dewar <dewar@adacore.com>
6956 * sem_aux.adb: Minor reformatting
6958 2009-04-10 Vincent Celier <celier@adacore.com>
6960 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
6962 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
6963 (Set_Obsolescent_Check): New procedure to change the value of
6964 Obsolescent_Check_Flag.
6966 * scn.ads (Set_Obsolescent_Check): New procedure to control
6969 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
6970 obsolescent features while preprocessing.
6972 2009-04-10 Thomas Quinot <quinot@adacore.com>
6974 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
6975 generated files on all platforms.
6977 2009-04-10 Robert Dewar <dewar@adacore.com>
6979 * sem_aux.adb: Minor reformatting
6981 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6983 * sem_ch3.adb (Access_Definition): Handle properly the case of a
6984 protected function with formals that returns an anonymous access type.
6986 2009-04-10 Thomas Quinot <quinot@adacore.com>
6988 * sem_disp.adb: Minor reformatting
6990 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
6992 * seh_init.c: Do not use the 32-bit specific implementation of
6993 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
6996 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6998 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
6999 a '/' at the end so we better use the complete target name to determine
7000 whether it is a PowerPC 55xx target.
7002 2009-04-10 Thomas Quinot <quinot@adacore.com>
7004 * sem_eval.adb: Minor reformatting
7006 2009-04-10 Thomas Quinot <quinot@adacore.com>
7008 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7011 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7014 * xsnamest.adb: New file.
7016 * gcc-interface/Make-lang.in: New target for automated generation of
7017 snames.ads, snames.adb and snames.h
7019 2009-04-10 Tristan Gingold <gingold@adacore.com>
7021 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7022 avoid compile time warnings.
7023 Do not add gcc/config in include search list while compiling the RTS.
7024 Pragma Thread_Local_Storage is available on any target.
7026 2009-04-10 Bob Duff <duff@adacore.com>
7028 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7030 2009-04-10 Tristan Gingold <gingold@adacore.com>
7032 * init.c: Install signal handler on Darwin.
7034 2009-04-10 Robert Dewar <dewar@adacore.com>
7036 * sem_prag.adb: Minor reformatting
7038 * exp_util.adb (Make_Non_Empty_Check): New function
7039 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7040 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7042 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7044 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7046 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7048 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7049 tool prefix for AVR and PowerPC 55xx targets.
7051 2009-04-10 Robert Dewar <dewar@adacore.com>
7053 * sem_warn.adb (Within_Postcondition): New function
7054 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7056 2009-04-10 Robert Dewar <dewar@adacore.com>
7058 * sem_warn.adb: Minor reformatting
7060 * make.adb: Minor reformatting.
7062 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7064 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7065 entity and the scope is a subprogram, retrieve the Sloc of the
7066 subprogram's body rather than using the sloc of the spec, for better
7067 line-stepping behavior in gdb.
7068 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7069 controller, use the Sloc of the first declaration of the containing list
7070 rather than that of the node that triggered creation of the list
7073 2009-04-10 Vincent Celier <celier@adacore.com>
7075 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7076 to avoid gcc warning.
7078 2009-04-10 Robert Dewar <dewar@adacore.com>
7080 * g-comlin.adb: Add ??? comment
7082 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7084 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7085 unreferenced entities for a package with no visible declarations.
7087 2009-04-10 Robert Dewar <dewar@adacore.com>
7089 * exp_ch9.adb: Minor reformatting
7091 2009-04-10 Thomas Quinot <quinot@adacore.com>
7093 * sem_prag.adb: Minor reformatting
7095 2009-04-10 Vincent Celier <celier@adacore.com>
7098 (Check_Library_Attributes): For a project qualified as a library project
7099 that is not a library project, indicate in the error message which
7100 attributes are missing (Library_Dir and/or Library_Name).
7102 2009-04-10 Bob Duff <duff@adacore.com>
7104 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7105 generated nodes, because it might confuse various circuits in the FE.
7107 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7109 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7110 of pragma. It will be recopied and analyzed when used in call to
7113 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7114 initialization operations and recognize use of it in procedure calls
7117 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7118 argument, because it may have side-effects.
7120 * exp_ch2.adb: Remove obsolete comments on default functions
7122 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7124 * adaint.c (RTX section): Do for RTX the same thing as we do for
7125 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7127 2009-04-10 Robert Dewar <dewar@adacore.com>
7129 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7131 * sem_res.adb (Resolve_Call): Fix test for
7132 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7133 a non-dynamic scope).
7135 2009-04-10 Robert Dewar <dewar@adacore.com>
7137 * make.adb: Add comment.
7140 2009-04-10 Nicolas Setton <setton@adacore.com>
7142 * s-osprim-darwin.adb: New file.
7144 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7146 2009-04-10 Thomas Quinot <quinot@adacore.com>
7148 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7150 2009-04-09 Nick Clifton <nickc@redhat.com>
7152 * adadecode.h: Change copyright header to refer to version
7153 3 of the GNU General Public License with version 3.1 of the
7154 GCC Runtime Library Exception and to point readers at the
7155 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7157 * 9drpc.adb: Likewise.
7158 * a-assert.adb: Likewise.
7159 * a-astaco.adb: Likewise.
7160 * a-calari.adb: Likewise.
7161 * a-calcon.adb: Likewise.
7162 * a-calcon.ads: Likewise.
7163 * a-caldel.ads: Likewise.
7164 * a-calend-vms.adb: Likewise.
7165 * a-calend-vms.ads: Likewise.
7166 * a-calend.adb: Likewise.
7167 * a-calend.ads: Likewise.
7168 * a-calfor.adb: Likewise.
7169 * a-catizo.adb: Likewise.
7170 * a-cdlili.adb: Likewise.
7171 * a-cdlili.ads: Likewise.
7172 * a-cgaaso.adb: Likewise.
7173 * a-cgaaso.ads: Likewise.
7174 * a-cgarso.adb: Likewise.
7175 * a-cgcaso.adb: Likewise.
7176 * a-chacon.adb: Likewise.
7177 * a-chacon.ads: Likewise.
7178 * a-chahan.adb: Likewise.
7179 * a-chahan.ads: Likewise.
7180 * a-chlat9.ads: Likewise.
7181 * a-chtgke.adb: Likewise.
7182 * a-chtgke.ads: Likewise.
7183 * a-chtgop.adb: Likewise.
7184 * a-chtgop.ads: Likewise.
7185 * a-chzla1.ads: Likewise.
7186 * a-chzla9.ads: Likewise.
7187 * a-cidlli.adb: Likewise.
7188 * a-cidlli.ads: Likewise.
7189 * a-cihama.adb: Likewise.
7190 * a-cihama.ads: Likewise.
7191 * a-cihase.adb: Likewise.
7192 * a-cihase.ads: Likewise.
7193 * a-ciorma.adb: Likewise.
7194 * a-ciorma.ads: Likewise.
7195 * a-ciormu.adb: Likewise.
7196 * a-ciormu.ads: Likewise.
7197 * a-ciorse.adb: Likewise.
7198 * a-ciorse.ads: Likewise.
7199 * a-clrefi.adb: Likewise.
7200 * a-clrefi.ads: Likewise.
7201 * a-cohama.adb: Likewise.
7202 * a-cohama.ads: Likewise.
7203 * a-cohase.adb: Likewise.
7204 * a-cohase.ads: Likewise.
7205 * a-cohata.ads: Likewise.
7206 * a-coinve.adb: Likewise.
7207 * a-coinve.ads: Likewise.
7208 * a-colien.adb: Likewise.
7209 * a-colien.ads: Likewise.
7210 * a-colire.adb: Likewise.
7211 * a-colire.ads: Likewise.
7212 * a-comlin.adb: Likewise.
7213 * a-comlin.ads: Likewise.
7214 * a-convec.adb: Likewise.
7215 * a-convec.ads: Likewise.
7216 * a-coorma.adb: Likewise.
7217 * a-coorma.ads: Likewise.
7218 * a-coormu.adb: Likewise.
7219 * a-coormu.ads: Likewise.
7220 * a-coorse.adb: Likewise.
7221 * a-coorse.ads: Likewise.
7222 * a-coprnu.adb: Likewise.
7223 * a-coprnu.ads: Likewise.
7224 * a-crbltr.ads: Likewise.
7225 * a-crbtgk.adb: Likewise.
7226 * a-crbtgk.ads: Likewise.
7227 * a-crbtgo.adb: Likewise.
7228 * a-crbtgo.ads: Likewise.
7229 * a-crdlli.adb: Likewise.
7230 * a-crdlli.ads: Likewise.
7231 * a-cwila1.ads: Likewise.
7232 * a-cwila9.ads: Likewise.
7233 * a-decima.adb: Likewise.
7234 * a-decima.ads: Likewise.
7235 * a-diocst.adb: Likewise.
7236 * a-diocst.ads: Likewise.
7237 * a-direct.adb: Likewise.
7238 * a-direct.ads: Likewise.
7239 * a-direio.adb: Likewise.
7240 * a-direio.ads: Likewise.
7241 * a-dirval-mingw.adb: Likewise.
7242 * a-dirval-vms.adb: Likewise.
7243 * a-dirval.adb: Likewise.
7244 * a-dirval.ads: Likewise.
7245 * a-dynpri.adb: Likewise.
7246 * a-einuoc.adb: Likewise.
7247 * a-einuoc.ads: Likewise.
7248 * a-elchha.adb: Likewise.
7249 * a-elchha.ads: Likewise.
7250 * a-envvar.adb: Likewise.
7251 * a-excach.adb: Likewise.
7252 * a-except-2005.adb: Likewise.
7253 * a-except-2005.ads: Likewise.
7254 * a-except.adb: Likewise.
7255 * a-except.ads: Likewise.
7256 * a-excpol-abort.adb: Likewise.
7257 * a-excpol.adb: Likewise.
7258 * a-exctra.adb: Likewise.
7259 * a-exctra.ads: Likewise.
7260 * a-exetim-mingw.adb: Likewise.
7261 * a-exetim-mingw.ads: Likewise.
7262 * a-exexda.adb: Likewise.
7263 * a-exexpr-gcc.adb: Likewise.
7264 * a-exexpr.adb: Likewise.
7265 * a-exextr.adb: Likewise.
7266 * a-exstat.adb: Likewise.
7267 * a-filico.adb: Likewise.
7268 * a-filico.ads: Likewise.
7269 * a-finali.adb: Likewise.
7270 * a-finali.ads: Likewise.
7271 * a-interr.ads: Likewise.
7272 * a-intnam-aix.ads: Likewise.
7273 * a-intnam-darwin.ads: Likewise.
7274 * a-intnam-dummy.ads: Likewise.
7275 * a-intnam-freebsd.ads: Likewise.
7276 * a-intnam-hpux.ads: Likewise.
7277 * a-intnam-irix.ads: Likewise.
7278 * a-intnam-linux.ads: Likewise.
7279 * a-intnam-lynxos.ads: Likewise.
7280 * a-intnam-mingw.ads: Likewise.
7281 * a-intnam-rtems.ads: Likewise.
7282 * a-intnam-solaris.ads: Likewise.
7283 * a-intnam-tru64.ads: Likewise.
7284 * a-intnam-vms.ads: Likewise.
7285 * a-intnam-vxworks.ads: Likewise.
7286 * a-intsig.adb: Likewise.
7287 * a-intsig.ads: Likewise.
7288 * a-ngcefu.adb: Likewise.
7289 * a-ngcoar.adb: Likewise.
7290 * a-ngcoty.adb: Likewise.
7291 * a-ngcoty.ads: Likewise.
7292 * a-ngelfu.adb: Likewise.
7293 * a-ngrear.adb: Likewise.
7294 * a-ngrear.ads: Likewise.
7295 * a-nudira.adb: Likewise.
7296 * a-nudira.ads: Likewise.
7297 * a-nuflra.adb: Likewise.
7298 * a-nuflra.ads: Likewise.
7299 * a-numaux-darwin.adb: Likewise.
7300 * a-numaux-darwin.ads: Likewise.
7301 * a-numaux-libc-x86.ads: Likewise.
7302 * a-numaux-vxworks.ads: Likewise.
7303 * a-numaux-x86.adb: Likewise.
7304 * a-numaux-x86.ads: Likewise.
7305 * a-numaux.ads: Likewise.
7306 * a-rbtgso.adb: Likewise.
7307 * a-rbtgso.ads: Likewise.
7308 * a-reatim.ads: Likewise.
7309 * a-retide.adb: Likewise.
7310 * a-retide.ads: Likewise.
7311 * a-rttiev.adb: Likewise.
7312 * a-rttiev.ads: Likewise.
7313 * a-secain.adb: Likewise.
7314 * a-secain.ads: Likewise.
7315 * a-sequio.adb: Likewise.
7316 * a-sequio.ads: Likewise.
7317 * a-shcain.adb: Likewise.
7318 * a-shcain.ads: Likewise.
7319 * a-siocst.adb: Likewise.
7320 * a-siocst.ads: Likewise.
7321 * a-slcain.adb: Likewise.
7322 * a-slcain.ads: Likewise.
7323 * a-ssicst.adb: Likewise.
7324 * a-ssicst.ads: Likewise.
7325 * a-stboha.adb: Likewise.
7326 * a-stmaco.ads: Likewise.
7327 * a-storio.adb: Likewise.
7328 * a-strbou.adb: Likewise.
7329 * a-strbou.ads: Likewise.
7330 * a-stream.ads: Likewise.
7331 * a-strfix.adb: Likewise.
7332 * a-strhas.adb: Likewise.
7333 * a-strmap.adb: Likewise.
7334 * a-strmap.ads: Likewise.
7335 * a-strsea.adb: Likewise.
7336 * a-strsea.ads: Likewise.
7337 * a-strsup.adb: Likewise.
7338 * a-strsup.ads: Likewise.
7339 * a-strunb.adb: Likewise.
7340 * a-strunb.ads: Likewise.
7341 * a-ststio.adb: Likewise.
7342 * a-ststio.ads: Likewise.
7343 * a-stunau.adb: Likewise.
7344 * a-stunau.ads: Likewise.
7345 * a-stunha.adb: Likewise.
7346 * a-stwibo.adb: Likewise.
7347 * a-stwibo.ads: Likewise.
7348 * a-stwifi.adb: Likewise.
7349 * a-stwiha.adb: Likewise.
7350 * a-stwima.adb: Likewise.
7351 * a-stwima.ads: Likewise.
7352 * a-stwise.adb: Likewise.
7353 * a-stwise.ads: Likewise.
7354 * a-stwisu.adb: Likewise.
7355 * a-stwisu.ads: Likewise.
7356 * a-stwiun.adb: Likewise.
7357 * a-stwiun.ads: Likewise.
7358 * a-stzbou.adb: Likewise.
7359 * a-stzbou.ads: Likewise.
7360 * a-stzfix.adb: Likewise.
7361 * a-stzhas.adb: Likewise.
7362 * a-stzmap.adb: Likewise.
7363 * a-stzmap.ads: Likewise.
7364 * a-stzsea.adb: Likewise.
7365 * a-stzsea.ads: Likewise.
7366 * a-stzsup.adb: Likewise.
7367 * a-stzsup.ads: Likewise.
7368 * a-stzunb.adb: Likewise.
7369 * a-stzunb.ads: Likewise.
7370 * a-suteio.adb: Likewise.
7371 * a-suteio.ads: Likewise.
7372 * a-swbwha.adb: Likewise.
7373 * a-swmwco.ads: Likewise.
7374 * a-swunau.adb: Likewise.
7375 * a-swunau.ads: Likewise.
7376 * a-swuwha.adb: Likewise.
7377 * a-swuwti.adb: Likewise.
7378 * a-swuwti.ads: Likewise.
7379 * a-sytaco.adb: Likewise.
7380 * a-sytaco.ads: Likewise.
7381 * a-szbzha.adb: Likewise.
7382 * a-szmzco.ads: Likewise.
7383 * a-szunau.adb: Likewise.
7384 * a-szunau.ads: Likewise.
7385 * a-szuzha.adb: Likewise.
7386 * a-szuzti.adb: Likewise.
7387 * a-szuzti.ads: Likewise.
7388 * a-tags.adb: Likewise.
7389 * a-tags.ads: Likewise.
7390 * a-tasatt.ads: Likewise.
7391 * a-taside.adb: Likewise.
7392 * a-taside.ads: Likewise.
7393 * a-taster.adb: Likewise.
7394 * a-teioed.adb: Likewise.
7395 * a-teioed.ads: Likewise.
7396 * a-textio.adb: Likewise.
7397 * a-textio.ads: Likewise.
7398 * a-tiboio.adb: Likewise.
7399 * a-ticoau.adb: Likewise.
7400 * a-ticoau.ads: Likewise.
7401 * a-ticoio.adb: Likewise.
7402 * a-ticoio.ads: Likewise.
7403 * a-tideau.adb: Likewise.
7404 * a-tideau.ads: Likewise.
7405 * a-tideio.adb: Likewise.
7406 * a-tideio.ads: Likewise.
7407 * a-tienau.adb: Likewise.
7408 * a-tienau.ads: Likewise.
7409 * a-tienio.adb: Likewise.
7410 * a-tienio.ads: Likewise.
7411 * a-tifiio.adb: Likewise.
7412 * a-tifiio.ads: Likewise.
7413 * a-tiflau.adb: Likewise.
7414 * a-tiflau.ads: Likewise.
7415 * a-tiflio.adb: Likewise.
7416 * a-tiflio.ads: Likewise.
7417 * a-tigeau.adb: Likewise.
7418 * a-tigeau.ads: Likewise.
7419 * a-tiinau.adb: Likewise.
7420 * a-tiinau.ads: Likewise.
7421 * a-tiinio.adb: Likewise.
7422 * a-tiinio.ads: Likewise.
7423 * a-timoau.adb: Likewise.
7424 * a-timoau.ads: Likewise.
7425 * a-timoio.adb: Likewise.
7426 * a-timoio.ads: Likewise.
7427 * a-tiocst.adb: Likewise.
7428 * a-tiocst.ads: Likewise.
7429 * a-titest.adb: Likewise.
7430 * a-wichun.adb: Likewise.
7431 * a-wichun.ads: Likewise.
7432 * a-witeio.adb: Likewise.
7433 * a-witeio.ads: Likewise.
7434 * a-wtcoau.adb: Likewise.
7435 * a-wtcoau.ads: Likewise.
7436 * a-wtcoio.adb: Likewise.
7437 * a-wtcstr.adb: Likewise.
7438 * a-wtcstr.ads: Likewise.
7439 * a-wtdeau.adb: Likewise.
7440 * a-wtdeau.ads: Likewise.
7441 * a-wtdeio.adb: Likewise.
7442 * a-wtdeio.ads: Likewise.
7443 * a-wtedit.adb: Likewise.
7444 * a-wtedit.ads: Likewise.
7445 * a-wtenau.adb: Likewise.
7446 * a-wtenau.ads: Likewise.
7447 * a-wtenio.adb: Likewise.
7448 * a-wtenio.ads: Likewise.
7449 * a-wtfiio.adb: Likewise.
7450 * a-wtfiio.ads: Likewise.
7451 * a-wtflau.adb: Likewise.
7452 * a-wtflau.ads: Likewise.
7453 * a-wtflio.adb: Likewise.
7454 * a-wtflio.ads: Likewise.
7455 * a-wtgeau.adb: Likewise.
7456 * a-wtgeau.ads: Likewise.
7457 * a-wtinau.adb: Likewise.
7458 * a-wtinau.ads: Likewise.
7459 * a-wtinio.adb: Likewise.
7460 * a-wtmoau.adb: Likewise.
7461 * a-wtmoau.ads: Likewise.
7462 * a-wtmoio.adb: Likewise.
7463 * a-wtmoio.ads: Likewise.
7464 * a-wttest.adb: Likewise.
7465 * a-wwboio.adb: Likewise.
7466 * a-zchuni.adb: Likewise.
7467 * a-zchuni.ads: Likewise.
7468 * a-ztcoau.adb: Likewise.
7469 * a-ztcoau.ads: Likewise.
7470 * a-ztcoio.adb: Likewise.
7471 * a-ztcstr.adb: Likewise.
7472 * a-ztcstr.ads: Likewise.
7473 * a-ztdeau.adb: Likewise.
7474 * a-ztdeau.ads: Likewise.
7475 * a-ztdeio.adb: Likewise.
7476 * a-ztdeio.ads: Likewise.
7477 * a-ztedit.adb: Likewise.
7478 * a-ztedit.ads: Likewise.
7479 * a-ztenau.adb: Likewise.
7480 * a-ztenau.ads: Likewise.
7481 * a-ztenio.adb: Likewise.
7482 * a-ztenio.ads: Likewise.
7483 * a-ztexio.adb: Likewise.
7484 * a-ztexio.ads: Likewise.
7485 * a-ztfiio.adb: Likewise.
7486 * a-ztfiio.ads: Likewise.
7487 * a-ztflau.adb: Likewise.
7488 * a-ztflau.ads: Likewise.
7489 * a-ztflio.adb: Likewise.
7490 * a-ztflio.ads: Likewise.
7491 * a-ztgeau.adb: Likewise.
7492 * a-ztgeau.ads: Likewise.
7493 * a-ztinau.adb: Likewise.
7494 * a-ztinau.ads: Likewise.
7495 * a-ztinio.adb: Likewise.
7496 * a-ztmoau.adb: Likewise.
7497 * a-ztmoau.ads: Likewise.
7498 * a-ztmoio.adb: Likewise.
7499 * a-ztmoio.ads: Likewise.
7500 * a-zttest.adb: Likewise.
7501 * a-zzboio.adb: Likewise.
7502 * adadecode.c: Likewise.
7503 * adaint.c: Likewise.
7504 * adaint.h: Likewise.
7505 * alloc.ads: Likewise.
7507 * arit64.c: Likewise.
7508 * atree.adb: Likewise.
7509 * atree.ads: Likewise.
7510 * aux-io.c: Likewise.
7512 * casing.adb: Likewise.
7513 * casing.ads: Likewise.
7515 * csets.adb: Likewise.
7516 * csets.ads: Likewise.
7517 * cstreams.c: Likewise.
7518 * ctrl_c.c: Likewise.
7519 * debug.adb: Likewise.
7520 * debug.ads: Likewise.
7521 * dec.ads: Likewise.
7522 * einfo.adb: Likewise.
7523 * einfo.ads: Likewise.
7524 * elists.adb: Likewise.
7525 * elists.ads: Likewise.
7528 * errno.c: Likewise.
7531 * final.c: Likewise.
7532 * fname.adb: Likewise.
7533 * fname.ads: Likewise.
7534 * g-allein.ads: Likewise.
7535 * g-alleve.adb: Likewise.
7536 * g-alleve.ads: Likewise.
7537 * g-altcon.adb: Likewise.
7538 * g-altcon.ads: Likewise.
7539 * g-altive.ads: Likewise.
7540 * g-alveop.adb: Likewise.
7541 * g-alveop.ads: Likewise.
7542 * g-alvety.ads: Likewise.
7543 * g-alvevi.ads: Likewise.
7544 * g-arrspl.adb: Likewise.
7545 * g-arrspl.ads: Likewise.
7546 * g-calend.ads: Likewise.
7547 * g-comlin.adb: Likewise.
7548 * g-debpoo.adb: Likewise.
7549 * g-debpoo.ads: Likewise.
7550 * g-eacodu-vms.adb: Likewise.
7551 * g-eacodu.adb: Likewise.
7552 * g-excact.adb: Likewise.
7553 * g-excact.ads: Likewise.
7554 * g-locfil.adb: Likewise.
7555 * g-os_lib.ads: Likewise.
7556 * g-rannum.adb: Likewise.
7557 * g-rannum.ads: Likewise.
7558 * g-regist.adb: Likewise.
7559 * g-regist.ads: Likewise.
7560 * g-signal.adb: Likewise.
7561 * g-signal.ads: Likewise.
7562 * g-soccon.ads: Likewise.
7563 * g-string.adb: Likewise.
7564 * g-string.ads: Likewise.
7565 * g-strspl.ads: Likewise.
7566 * g-timsta.adb: Likewise.
7567 * g-timsta.ads: Likewise.
7568 * g-trasym-vms-alpha.adb: Likewise.
7569 * g-trasym-vms-ia64.adb: Likewise.
7570 * g-utf_32.adb: Likewise.
7571 * g-utf_32.ads: Likewise.
7572 * g-wistsp.ads: Likewise.
7573 * g-zstspl.ads: Likewise.
7575 * gnatvsn.adb: Likewise.
7576 * gnatvsn.ads: Likewise.
7577 * gsocket.h: Likewise.
7578 * hostparm.ads: Likewise.
7579 * i-c.adb: Likewise.
7580 * i-cexten.ads: Likewise.
7581 * i-cobol.adb: Likewise.
7582 * i-cobol.ads: Likewise.
7583 * i-cpoint.adb: Likewise.
7584 * i-cpoint.ads: Likewise.
7585 * i-cpp.adb: Likewise.
7586 * i-cpp.ads: Likewise.
7587 * i-cstrea-vms.adb: Likewise.
7588 * i-cstrea.adb: Likewise.
7589 * i-cstrea.ads: Likewise.
7590 * i-cstrin.adb: Likewise.
7591 * i-cstrin.ads: Likewise.
7592 * i-forbla-darwin.adb: Likewise.
7593 * i-forbla-unimplemented.ads: Likewise.
7594 * i-forbla.adb: Likewise.
7595 * i-forbla.ads: Likewise.
7596 * i-forlap.ads: Likewise.
7597 * i-fortra.adb: Likewise.
7598 * i-pacdec.adb: Likewise.
7599 * i-pacdec.ads: Likewise.
7600 * i-vxwoio.adb: Likewise.
7601 * i-vxwoio.ads: Likewise.
7602 * indepsw-aix.adb: Likewise.
7603 * indepsw-gnu.adb: Likewise.
7604 * indepsw-mingw.adb: Likewise.
7605 * indepsw.adb: Likewise.
7606 * indepsw.ads: Likewise.
7608 * initialize.c: Likewise.
7609 * interfac.ads: Likewise.
7610 * krunch.adb: Likewise.
7611 * krunch.ads: Likewise.
7612 * lib-list.adb: Likewise.
7613 * lib-sort.adb: Likewise.
7614 * lib.adb: Likewise.
7615 * lib.ads: Likewise.
7617 * math_lib.adb: Likewise.
7618 * memtrack.adb: Likewise.
7619 * mingw32.h: Likewise.
7620 * mkdir.c: Likewise.
7621 * namet-sp.adb: Likewise.
7622 * namet-sp.ads: Likewise.
7623 * namet.adb: Likewise.
7624 * namet.ads: Likewise.
7625 * nlists.adb: Likewise.
7626 * nlists.ads: Likewise.
7627 * opt.adb: Likewise.
7628 * opt.ads: Likewise.
7629 * output.adb: Likewise.
7630 * output.ads: Likewise.
7631 * raise-gcc.c: Likewise.
7632 * raise.c: Likewise.
7633 * raise.h: Likewise.
7634 * repinfo.adb: Likewise.
7635 * repinfo.ads: Likewise.
7636 * repinfo.h: Likewise.
7637 * rident.ads: Likewise.
7638 * s-addima.adb: Likewise.
7639 * s-addima.ads: Likewise.
7640 * s-addope.adb: Likewise.
7641 * s-addope.ads: Likewise.
7642 * s-arit64.adb: Likewise.
7643 * s-arit64.ads: Likewise.
7644 * s-assert.adb: Likewise.
7645 * s-assert.ads: Likewise.
7646 * s-asthan-vms-alpha.adb: Likewise.
7647 * s-asthan.adb: Likewise.
7648 * s-asthan.ads: Likewise.
7649 * s-atacco.adb: Likewise.
7650 * s-atacco.ads: Likewise.
7651 * s-auxdec-empty.adb: Likewise.
7652 * s-auxdec-empty.ads: Likewise.
7653 * s-auxdec-vms_64.ads: Likewise.
7654 * s-auxdec.adb: Likewise.
7655 * s-auxdec.ads: Likewise.
7656 * s-bitops.adb: Likewise.
7657 * s-bitops.ads: Likewise.
7658 * s-boarop.ads: Likewise.
7659 * s-carsi8.adb: Likewise.
7660 * s-carsi8.ads: Likewise.
7661 * s-carun8.adb: Likewise.
7662 * s-carun8.ads: Likewise.
7663 * s-casi16.adb: Likewise.
7664 * s-casi16.ads: Likewise.
7665 * s-casi32.adb: Likewise.
7666 * s-casi32.ads: Likewise.
7667 * s-casi64.adb: Likewise.
7668 * s-casi64.ads: Likewise.
7669 * s-casuti.ads: Likewise.
7670 * s-caun16.adb: Likewise.
7671 * s-caun16.ads: Likewise.
7672 * s-caun32.adb: Likewise.
7673 * s-caun32.ads: Likewise.
7674 * s-caun64.adb: Likewise.
7675 * s-caun64.ads: Likewise.
7676 * s-chepoo.ads: Likewise.
7677 * s-crc32.adb: Likewise.
7678 * s-crc32.ads: Likewise.
7679 * s-crtl.ads: Likewise.
7680 * s-direio.adb: Likewise.
7681 * s-direio.ads: Likewise.
7682 * s-dsaser.ads: Likewise.
7683 * s-except.adb: Likewise.
7684 * s-except.ads: Likewise.
7685 * s-exctab.adb: Likewise.
7686 * s-exctab.ads: Likewise.
7687 * s-exnint.adb: Likewise.
7688 * s-exnint.ads: Likewise.
7689 * s-exnllf.adb: Likewise.
7690 * s-exnllf.ads: Likewise.
7691 * s-exnlli.adb: Likewise.
7692 * s-exnlli.ads: Likewise.
7693 * s-expint.adb: Likewise.
7694 * s-expint.ads: Likewise.
7695 * s-explli.adb: Likewise.
7696 * s-explli.ads: Likewise.
7697 * s-expllu.adb: Likewise.
7698 * s-expllu.ads: Likewise.
7699 * s-expmod.adb: Likewise.
7700 * s-expmod.ads: Likewise.
7701 * s-expuns.adb: Likewise.
7702 * s-expuns.ads: Likewise.
7703 * s-fatflt.ads: Likewise.
7704 * s-fatgen.adb: Likewise.
7705 * s-fatgen.ads: Likewise.
7706 * s-fatlfl.ads: Likewise.
7707 * s-fatllf.ads: Likewise.
7708 * s-fatsfl.ads: Likewise.
7709 * s-ficobl.ads: Likewise.
7710 * s-fileio.adb: Likewise.
7711 * s-fileio.ads: Likewise.
7712 * s-filofl.ads: Likewise.
7713 * s-finimp.adb: Likewise.
7714 * s-finimp.ads: Likewise.
7715 * s-finroo.adb: Likewise.
7716 * s-finroo.ads: Likewise.
7717 * s-fishfl.ads: Likewise.
7718 * s-fore.adb: Likewise.
7719 * s-fore.ads: Likewise.
7720 * s-fvadfl.ads: Likewise.
7721 * s-fvaffl.ads: Likewise.
7722 * s-fvagfl.ads: Likewise.
7723 * s-gearop.adb: Likewise.
7724 * s-gearop.ads: Likewise.
7725 * s-gecobl.adb: Likewise.
7726 * s-gecobl.ads: Likewise.
7727 * s-gecola.adb: Likewise.
7728 * s-gecola.ads: Likewise.
7729 * s-gerebl.adb: Likewise.
7730 * s-gerebl.ads: Likewise.
7731 * s-gerela.adb: Likewise.
7732 * s-gerela.ads: Likewise.
7733 * s-geveop.adb: Likewise.
7734 * s-geveop.ads: Likewise.
7735 * s-gloloc.adb: Likewise.
7736 * s-gloloc.ads: Likewise.
7737 * s-hibaen.ads: Likewise.
7738 * s-imenne.adb: Likewise.
7739 * s-imenne.ads: Likewise.
7740 * s-imgbiu.adb: Likewise.
7741 * s-imgbiu.ads: Likewise.
7742 * s-imgboo.adb: Likewise.
7743 * s-imgboo.ads: Likewise.
7744 * s-imgcha.adb: Likewise.
7745 * s-imgcha.ads: Likewise.
7746 * s-imgdec.adb: Likewise.
7747 * s-imgdec.ads: Likewise.
7748 * s-imgenu.adb: Likewise.
7749 * s-imgenu.ads: Likewise.
7750 * s-imgint.adb: Likewise.
7751 * s-imgint.ads: Likewise.
7752 * s-imgllb.adb: Likewise.
7753 * s-imgllb.ads: Likewise.
7754 * s-imglld.adb: Likewise.
7755 * s-imglld.ads: Likewise.
7756 * s-imglli.adb: Likewise.
7757 * s-imglli.ads: Likewise.
7758 * s-imgllu.adb: Likewise.
7759 * s-imgllu.ads: Likewise.
7760 * s-imgllw.adb: Likewise.
7761 * s-imgllw.ads: Likewise.
7762 * s-imgrea.adb: Likewise.
7763 * s-imgrea.ads: Likewise.
7764 * s-imguns.adb: Likewise.
7765 * s-imguns.ads: Likewise.
7766 * s-imgwch.adb: Likewise.
7767 * s-imgwch.ads: Likewise.
7768 * s-imgwiu.adb: Likewise.
7769 * s-imgwiu.ads: Likewise.
7770 * s-inmaop-dummy.adb: Likewise.
7771 * s-inmaop-vms.adb: Likewise.
7772 * s-inmaop.ads: Likewise.
7773 * s-interr-hwint.adb: Likewise.
7774 * s-interr-sigaction.adb: Likewise.
7775 * s-interr-vms.adb: Likewise.
7776 * s-interr.adb: Likewise.
7777 * s-interr.ads: Likewise.
7778 * s-intman-dummy.adb: Likewise.
7779 * s-intman-mingw.adb: Likewise.
7780 * s-intman-posix.adb: Likewise.
7781 * s-intman-solaris.adb: Likewise.
7782 * s-intman-vms.adb: Likewise.
7783 * s-intman-vms.ads: Likewise.
7784 * s-intman-vxworks.adb: Likewise.
7785 * s-intman-vxworks.ads: Likewise.
7786 * s-intman.ads: Likewise.
7787 * s-io.adb: Likewise.
7788 * s-io.ads: Likewise.
7789 * s-linux-alpha.ads: Likewise.
7790 * s-linux-hppa.ads: Likewise.
7791 * s-linux.ads: Likewise.
7792 * s-maccod.ads: Likewise.
7793 * s-mantis.adb: Likewise.
7794 * s-mantis.ads: Likewise.
7795 * s-mastop-irix.adb: Likewise.
7796 * s-mastop.adb: Likewise.
7797 * s-mastop.ads: Likewise.
7798 * s-memcop.ads: Likewise.
7799 * s-memory-mingw.adb: Likewise.
7800 * s-memory.adb: Likewise.
7801 * s-memory.ads: Likewise.
7802 * s-os_lib.ads: Likewise.
7803 * s-oscons-tmplt.c: Likewise.
7804 * s-osinte-aix.adb: Likewise.
7805 * s-osinte-darwin.adb: Likewise.
7806 * s-osinte-freebsd.adb: Likewise.
7807 * s-osinte-irix.adb: Likewise.
7808 * s-osinte-lynxos-3.adb: Likewise.
7809 * s-osinte-rtems.ads: Likewise.
7810 * s-osinte-tru64.adb: Likewise.
7811 * s-osinte-vxworks-kernel.adb: Likewise.
7812 * s-osinte-vxworks.adb: Likewise.
7813 * s-osprim-mingw.adb: Likewise.
7814 * s-osprim-posix.adb: Likewise.
7815 * s-osprim-solaris.adb: Likewise.
7816 * s-osprim-unix.adb: Likewise.
7817 * s-osprim-vms.adb: Likewise.
7818 * s-osprim-vms.ads: Likewise.
7819 * s-osprim-vxworks.adb: Likewise.
7820 * s-osprim.ads: Likewise.
7821 * s-pack03.adb: Likewise.
7822 * s-pack03.ads: Likewise.
7823 * s-pack05.adb: Likewise.
7824 * s-pack05.ads: Likewise.
7825 * s-pack06.adb: Likewise.
7826 * s-pack06.ads: Likewise.
7827 * s-pack07.adb: Likewise.
7828 * s-pack07.ads: Likewise.
7829 * s-pack09.adb: Likewise.
7830 * s-pack09.ads: Likewise.
7831 * s-pack10.adb: Likewise.
7832 * s-pack10.ads: Likewise.
7833 * s-pack11.adb: Likewise.
7834 * s-pack11.ads: Likewise.
7835 * s-pack12.adb: Likewise.
7836 * s-pack12.ads: Likewise.
7837 * s-pack13.adb: Likewise.
7838 * s-pack13.ads: Likewise.
7839 * s-pack14.adb: Likewise.
7840 * s-pack14.ads: Likewise.
7841 * s-pack15.adb: Likewise.
7842 * s-pack15.ads: Likewise.
7843 * s-pack17.adb: Likewise.
7844 * s-pack17.ads: Likewise.
7845 * s-pack18.adb: Likewise.
7846 * s-pack18.ads: Likewise.
7847 * s-pack19.adb: Likewise.
7848 * s-pack19.ads: Likewise.
7849 * s-pack20.adb: Likewise.
7850 * s-pack20.ads: Likewise.
7851 * s-pack21.adb: Likewise.
7852 * s-pack21.ads: Likewise.
7853 * s-pack22.adb: Likewise.
7854 * s-pack22.ads: Likewise.
7855 * s-pack23.adb: Likewise.
7856 * s-pack23.ads: Likewise.
7857 * s-pack24.adb: Likewise.
7858 * s-pack24.ads: Likewise.
7859 * s-pack25.adb: Likewise.
7860 * s-pack25.ads: Likewise.
7861 * s-pack26.adb: Likewise.
7862 * s-pack26.ads: Likewise.
7863 * s-pack27.adb: Likewise.
7864 * s-pack27.ads: Likewise.
7865 * s-pack28.adb: Likewise.
7866 * s-pack28.ads: Likewise.
7867 * s-pack29.adb: Likewise.
7868 * s-pack29.ads: Likewise.
7869 * s-pack30.adb: Likewise.
7870 * s-pack30.ads: Likewise.
7871 * s-pack31.adb: Likewise.
7872 * s-pack31.ads: Likewise.
7873 * s-pack33.adb: Likewise.
7874 * s-pack33.ads: Likewise.
7875 * s-pack34.adb: Likewise.
7876 * s-pack34.ads: Likewise.
7877 * s-pack35.adb: Likewise.
7878 * s-pack35.ads: Likewise.
7879 * s-pack36.adb: Likewise.
7880 * s-pack36.ads: Likewise.
7881 * s-pack37.adb: Likewise.
7882 * s-pack37.ads: Likewise.
7883 * s-pack38.adb: Likewise.
7884 * s-pack38.ads: Likewise.
7885 * s-pack39.adb: Likewise.
7886 * s-pack39.ads: Likewise.
7887 * s-pack40.adb: Likewise.
7888 * s-pack40.ads: Likewise.
7889 * s-pack41.adb: Likewise.
7890 * s-pack41.ads: Likewise.
7891 * s-pack42.adb: Likewise.
7892 * s-pack42.ads: Likewise.
7893 * s-pack43.adb: Likewise.
7894 * s-pack43.ads: Likewise.
7895 * s-pack44.adb: Likewise.
7896 * s-pack44.ads: Likewise.
7897 * s-pack45.adb: Likewise.
7898 * s-pack45.ads: Likewise.
7899 * s-pack46.adb: Likewise.
7900 * s-pack46.ads: Likewise.
7901 * s-pack47.adb: Likewise.
7902 * s-pack47.ads: Likewise.
7903 * s-pack48.adb: Likewise.
7904 * s-pack48.ads: Likewise.
7905 * s-pack49.adb: Likewise.
7906 * s-pack49.ads: Likewise.
7907 * s-pack50.adb: Likewise.
7908 * s-pack50.ads: Likewise.
7909 * s-pack51.adb: Likewise.
7910 * s-pack51.ads: Likewise.
7911 * s-pack52.adb: Likewise.
7912 * s-pack52.ads: Likewise.
7913 * s-pack53.adb: Likewise.
7914 * s-pack53.ads: Likewise.
7915 * s-pack54.adb: Likewise.
7916 * s-pack54.ads: Likewise.
7917 * s-pack55.adb: Likewise.
7918 * s-pack55.ads: Likewise.
7919 * s-pack56.adb: Likewise.
7920 * s-pack56.ads: Likewise.
7921 * s-pack57.adb: Likewise.
7922 * s-pack57.ads: Likewise.
7923 * s-pack58.adb: Likewise.
7924 * s-pack58.ads: Likewise.
7925 * s-pack59.adb: Likewise.
7926 * s-pack59.ads: Likewise.
7927 * s-pack60.adb: Likewise.
7928 * s-pack60.ads: Likewise.
7929 * s-pack61.adb: Likewise.
7930 * s-pack61.ads: Likewise.
7931 * s-pack62.adb: Likewise.
7932 * s-pack62.ads: Likewise.
7933 * s-pack63.adb: Likewise.
7934 * s-pack63.ads: Likewise.
7935 * s-parame-ae653.ads: Likewise.
7936 * s-parame-hpux.ads: Likewise.
7937 * s-parame-rtems.adb: Likewise.
7938 * s-parame-vms-alpha.ads: Likewise.
7939 * s-parame-vms-ia64.ads: Likewise.
7940 * s-parame-vms-restrict.ads: Likewise.
7941 * s-parame-vxworks.adb: Likewise.
7942 * s-parame-vxworks.ads: Likewise.
7943 * s-parame.adb: Likewise.
7944 * s-parame.ads: Likewise.
7945 * s-parint.adb: Likewise.
7946 * s-parint.ads: Likewise.
7947 * s-pooglo.adb: Likewise.
7948 * s-pooglo.ads: Likewise.
7949 * s-pooloc.adb: Likewise.
7950 * s-pooloc.ads: Likewise.
7951 * s-poosiz.adb: Likewise.
7952 * s-poosiz.ads: Likewise.
7953 * s-powtab.ads: Likewise.
7954 * s-proinf-irix-athread.adb: Likewise.
7955 * s-proinf-irix-athread.ads: Likewise.
7956 * s-proinf.adb: Likewise.
7957 * s-proinf.ads: Likewise.
7958 * s-purexc.ads: Likewise.
7959 * s-rannum.adb: Likewise.
7960 * s-rannum.ads: Likewise.
7961 * s-restri.adb: Likewise.
7962 * s-restri.ads: Likewise.
7963 * s-rident.ads: Likewise.
7964 * s-rpc.adb: Likewise.
7965 * s-rpc.ads: Likewise.
7966 * s-scaval.adb: Likewise.
7967 * s-scaval.ads: Likewise.
7968 * s-secsta.adb: Likewise.
7969 * s-secsta.ads: Likewise.
7970 * s-sequio.adb: Likewise.
7971 * s-sequio.ads: Likewise.
7972 * s-shasto.adb: Likewise.
7973 * s-shasto.ads: Likewise.
7974 * s-soflin.adb: Likewise.
7975 * s-soflin.ads: Likewise.
7976 * s-solita.adb: Likewise.
7977 * s-solita.ads: Likewise.
7978 * s-sopco3.adb: Likewise.
7979 * s-sopco3.ads: Likewise.
7980 * s-sopco4.adb: Likewise.
7981 * s-sopco4.ads: Likewise.
7982 * s-sopco5.adb: Likewise.
7983 * s-sopco5.ads: Likewise.
7984 * s-stache.adb: Likewise.
7985 * s-stache.ads: Likewise.
7986 * s-stalib.adb: Likewise.
7987 * s-stalib.ads: Likewise.
7988 * s-stausa.adb: Likewise.
7989 * s-stausa.ads: Likewise.
7990 * s-stchop-limit.ads: Likewise.
7991 * s-stchop-rtems.adb: Likewise.
7992 * s-stchop-vxworks.adb: Likewise.
7993 * s-stchop.adb: Likewise.
7994 * s-stchop.ads: Likewise.
7995 * s-stoele.adb: Likewise.
7996 * s-stoele.ads: Likewise.
7997 * s-stopoo.adb: Likewise.
7998 * s-stopoo.ads: Likewise.
7999 * s-stratt.adb: Likewise.
8000 * s-stratt.ads: Likewise.
8001 * s-strcom.adb: Likewise.
8002 * s-strcom.ads: Likewise.
8003 * s-string.adb: Likewise.
8004 * s-string.ads: Likewise.
8005 * s-strops.adb: Likewise.
8006 * s-strops.ads: Likewise.
8007 * s-strxdr.adb: Likewise.
8008 * s-ststop.adb: Likewise.
8009 * s-ststop.ads: Likewise.
8010 * s-taasde.adb: Likewise.
8011 * s-taasde.ads: Likewise.
8012 * s-tadeca.adb: Likewise.
8013 * s-tadeca.ads: Likewise.
8014 * s-tadert.adb: Likewise.
8015 * s-tadert.ads: Likewise.
8016 * s-taenca.adb: Likewise.
8017 * s-taenca.ads: Likewise.
8018 * s-taprob.ads: Likewise.
8019 * s-taprop-dummy.adb: Likewise.
8020 * s-taprop-hpux-dce.adb: Likewise.
8021 * s-taprop-irix.adb: Likewise.
8022 * s-taprop-linux.adb: Likewise.
8023 * s-taprop-lynxos.adb: Likewise.
8024 * s-taprop-mingw.adb: Likewise.
8025 * s-taprop-posix.adb: Likewise.
8026 * s-taprop-solaris.adb: Likewise.
8027 * s-taprop-tru64.adb: Likewise.
8028 * s-taprop-vms.adb: Likewise.
8029 * s-taprop-vxworks.adb: Likewise.
8030 * s-taprop.ads: Likewise.
8031 * s-tarest.adb: Likewise.
8032 * s-tarest.ads: Likewise.
8033 * s-tasdeb.adb: Likewise.
8034 * s-tasdeb.ads: Likewise.
8035 * s-tasinf-irix.ads: Likewise.
8036 * s-tasinf-linux.adb: Likewise.
8037 * s-tasinf-linux.ads: Likewise.
8038 * s-tasinf-mingw.adb: Likewise.
8039 * s-tasinf-mingw.ads: Likewise.
8040 * s-tasinf-solaris.adb: Likewise.
8041 * s-tasinf-solaris.ads: Likewise.
8042 * s-tasinf-tru64.ads: Likewise.
8043 * s-tasinf.adb: Likewise.
8044 * s-tasinf.ads: Likewise.
8045 * s-tasini.adb: Likewise.
8046 * s-tasini.ads: Likewise.
8047 * s-taskin.adb: Likewise.
8048 * s-taskin.ads: Likewise.
8049 * s-taspri-dummy.ads: Likewise.
8050 * s-taspri-hpux-dce.ads: Likewise.
8051 * s-taspri-mingw.ads: Likewise.
8052 * s-taspri-solaris.ads: Likewise.
8053 * s-taspri-tru64.ads: Likewise.
8054 * s-taspri-vms.ads: Likewise.
8055 * s-taspri-vxworks.ads: Likewise.
8056 * s-tasque.adb: Likewise.
8057 * s-tasque.ads: Likewise.
8058 * s-tasren.adb: Likewise.
8059 * s-tasren.ads: Likewise.
8060 * s-tasres.ads: Likewise.
8061 * s-tassta.adb: Likewise.
8062 * s-tassta.ads: Likewise.
8063 * s-tasuti.adb: Likewise.
8064 * s-tasuti.ads: Likewise.
8065 * s-tfsetr-default.adb: Likewise.
8066 * s-tfsetr-vxworks.adb: Likewise.
8067 * s-tpinop.adb: Likewise.
8068 * s-tpinop.ads: Likewise.
8069 * s-tpoben.adb: Likewise.
8070 * s-tpoben.ads: Likewise.
8071 * s-tpobop.adb: Likewise.
8072 * s-tpobop.ads: Likewise.
8073 * s-tpopde-vms.adb: Likewise.
8074 * s-tpopde-vms.ads: Likewise.
8075 * s-tpopsp-lynxos.adb: Likewise.
8076 * s-tpopsp-posix-foreign.adb: Likewise.
8077 * s-tpopsp-posix.adb: Likewise.
8078 * s-tpopsp-solaris.adb: Likewise.
8079 * s-tpopsp-vxworks.adb: Likewise.
8080 * s-tporft.adb: Likewise.
8081 * s-tposen.adb: Likewise.
8082 * s-tposen.ads: Likewise.
8083 * s-traceb.adb: Likewise.
8084 * s-traceb.ads: Likewise.
8085 * s-traces-default.adb: Likewise.
8086 * s-traces.adb: Likewise.
8087 * s-traces.ads: Likewise.
8088 * s-traent-vms.adb: Likewise.
8089 * s-traent-vms.ads: Likewise.
8090 * s-traent.adb: Likewise.
8091 * s-traent.ads: Likewise.
8092 * s-trafor-default.adb: Likewise.
8093 * s-trafor-default.ads: Likewise.
8094 * s-tratas-default.adb: Likewise.
8095 * s-tratas.adb: Likewise.
8096 * s-tratas.ads: Likewise.
8097 * s-unstyp.ads: Likewise.
8098 * s-utf_32.adb: Likewise.
8099 * s-utf_32.ads: Likewise.
8100 * s-vaflop-vms-alpha.adb: Likewise.
8101 * s-vaflop.adb: Likewise.
8102 * s-vaflop.ads: Likewise.
8103 * s-valboo.adb: Likewise.
8104 * s-valboo.ads: Likewise.
8105 * s-valcha.adb: Likewise.
8106 * s-valcha.ads: Likewise.
8107 * s-valdec.adb: Likewise.
8108 * s-valdec.ads: Likewise.
8109 * s-valenu.adb: Likewise.
8110 * s-valenu.ads: Likewise.
8111 * s-valint.adb: Likewise.
8112 * s-valint.ads: Likewise.
8113 * s-vallld.adb: Likewise.
8114 * s-vallld.ads: Likewise.
8115 * s-vallli.adb: Likewise.
8116 * s-vallli.ads: Likewise.
8117 * s-valllu.adb: Likewise.
8118 * s-valllu.ads: Likewise.
8119 * s-valrea.adb: Likewise.
8120 * s-valrea.ads: Likewise.
8121 * s-valuns.adb: Likewise.
8122 * s-valuns.ads: Likewise.
8123 * s-valuti.adb: Likewise.
8124 * s-valuti.ads: Likewise.
8125 * s-valwch.adb: Likewise.
8126 * s-valwch.ads: Likewise.
8127 * s-veboop.adb: Likewise.
8128 * s-veboop.ads: Likewise.
8129 * s-vector.ads: Likewise.
8130 * s-vercon.adb: Likewise.
8131 * s-vercon.ads: Likewise.
8132 * s-vmexta.adb: Likewise.
8133 * s-vmexta.ads: Likewise.
8134 * s-vxwext-kernel.ads: Likewise.
8135 * s-vxwext-rtp.adb: Likewise.
8136 * s-vxwext-rtp.ads: Likewise.
8137 * s-vxwext.ads: Likewise.
8138 * s-vxwork-arm.ads: Likewise.
8139 * s-vxwork-m68k.ads: Likewise.
8140 * s-vxwork-mips.ads: Likewise.
8141 * s-vxwork-ppc.ads: Likewise.
8142 * s-vxwork-sparcv9.ads: Likewise.
8143 * s-vxwork-x86.ads: Likewise.
8144 * s-wchcnv.adb: Likewise.
8145 * s-wchcnv.ads: Likewise.
8146 * s-wchcon.adb: Likewise.
8147 * s-wchcon.ads: Likewise.
8148 * s-wchjis.adb: Likewise.
8149 * s-wchjis.ads: Likewise.
8150 * s-wchstw.adb: Likewise.
8151 * s-wchstw.ads: Likewise.
8152 * s-wchwts.adb: Likewise.
8153 * s-wchwts.ads: Likewise.
8154 * s-widboo.adb: Likewise.
8155 * s-widboo.ads: Likewise.
8156 * s-widcha.adb: Likewise.
8157 * s-widcha.ads: Likewise.
8158 * s-widenu.adb: Likewise.
8159 * s-widenu.ads: Likewise.
8160 * s-widlli.adb: Likewise.
8161 * s-widlli.ads: Likewise.
8162 * s-widllu.adb: Likewise.
8163 * s-widllu.ads: Likewise.
8164 * s-widwch.adb: Likewise.
8165 * s-widwch.ads: Likewise.
8166 * s-win32.ads: Likewise.
8167 * s-winext.ads: Likewise.
8168 * s-wwdcha.adb: Likewise.
8169 * s-wwdcha.ads: Likewise.
8170 * s-wwdenu.adb: Likewise.
8171 * s-wwdenu.ads: Likewise.
8172 * s-wwdwch.adb: Likewise.
8173 * s-wwdwch.ads: Likewise.
8174 * scans.adb: Likewise.
8175 * scans.ads: Likewise.
8176 * seh_init.c: Likewise.
8177 * sfn_scan.adb: Likewise.
8178 * sinfo.adb: Likewise.
8179 * sinfo.ads: Likewise.
8180 * sinput.adb: Likewise.
8181 * sinput.ads: Likewise.
8182 * snames.adb: Likewise.
8183 * snames.ads: Likewise.
8184 * socket.c: Likewise.
8185 * stand.adb: Likewise.
8186 * stand.ads: Likewise.
8187 * stringt.adb: Likewise.
8188 * stringt.ads: Likewise.
8189 * sysdep.c: Likewise.
8190 * system-aix.ads: Likewise.
8191 * system-darwin-ppc.ads: Likewise.
8192 * system-darwin-x86.ads: Likewise.
8193 * system-darwin-x86_64.ads: Likewise.
8194 * system-freebsd-x86.ads: Likewise.
8195 * system-hpux-ia64.ads: Likewise.
8196 * system-hpux.ads: Likewise.
8197 * system-irix-n32.ads: Likewise.
8198 * system-irix-n64.ads: Likewise.
8199 * system-irix-o32.ads: Likewise.
8200 * system-linux-alpha.ads: Likewise.
8201 * system-linux-hppa.ads: Likewise.
8202 * system-linux-ia64.ads: Likewise.
8203 * system-linux-mips.ads: Likewise.
8204 * system-linux-mipsel.ads: Likewise.
8205 * system-linux-ppc.ads: Likewise.
8206 * system-linux-ppc64.ads: Likewise.
8207 * system-linux-s390.ads: Likewise.
8208 * system-linux-s390x.ads: Likewise.
8209 * system-linux-sh4.ads: Likewise.
8210 * system-linux-sparc.ads: Likewise.
8211 * system-linux-sparcv9.ads: Likewise.
8212 * system-linux-x86.ads: Likewise.
8213 * system-linux-x86_64.ads: Likewise.
8214 * system-lynxos-ppc.ads: Likewise.
8215 * system-lynxos-x86.ads: Likewise.
8216 * system-mingw-x86_64.ads: Likewise.
8217 * system-mingw.ads: Likewise.
8218 * system-rtems.ads: Likewise.
8219 * system-solaris-sparc.ads: Likewise.
8220 * system-solaris-sparcv9.ads: Likewise.
8221 * system-solaris-x86.ads: Likewise.
8222 * system-solaris-x86_64.ads: Likewise.
8223 * system-tru64.ads: Likewise.
8224 * system-vms-ia64.ads: Likewise.
8225 * system-vms-zcx.ads: Likewise.
8226 * system-vms.ads: Likewise.
8227 * system-vms_64.ads: Likewise.
8228 * system-vxworks-arm.ads: Likewise.
8229 * system-vxworks-m68k.ads: Likewise.
8230 * system-vxworks-mips.ads: Likewise.
8231 * system-vxworks-ppc.ads: Likewise.
8232 * system-vxworks-sparcv9.ads: Likewise.
8233 * system-vxworks-x86.ads: Likewise.
8234 * system.ads: Likewise.
8235 * table.adb: Likewise.
8236 * table.ads: Likewise.
8237 * targext.c: Likewise.
8238 * targparm.ads: Likewise.
8239 * tree_in.adb: Likewise.
8240 * tree_in.ads: Likewise.
8241 * tree_io.adb: Likewise.
8242 * tree_io.ads: Likewise.
8243 * types.adb: Likewise.
8244 * types.ads: Likewise.
8245 * uintp.adb: Likewise.
8246 * uintp.ads: Likewise.
8247 * uname.adb: Likewise.
8248 * uname.ads: Likewise.
8249 * urealp.adb: Likewise.
8250 * urealp.ads: Likewise.
8251 * vx_stack_info.c: Likewise.
8252 * widechar.adb: Likewise.
8253 * widechar.ads: Likewise.
8254 * exp_attr.adb: Change copyright header to refer to version
8255 3 of the GNU General Public License and to point readers at the
8256 COPYING3 file and the FSF's license web page.
8257 * sem.adb: Likewise.
8258 * sem_attr.ads: Likewise.
8259 * freeze.adb: Likewise.
8260 * freeze.ads: Likewise.
8261 * errout.ads: Likewise.
8262 * erroutc.adb: Likewise.
8263 * exp_ch11.ads: Likewise.
8265 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8267 * config-lang.in: Change copyright header to refer to version
8268 3 of the GNU General Public License and to point readers at the
8269 COPYING3 file and the FSF's license web page.
8270 * gcc-interface/trans.c: Likewise.
8271 * gnathtml.pl: Likewise.
8272 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8273 * gcc-interface/gigi.h: Likewise.
8274 * gcc-interface/misc.c: Likewise.
8275 * gcc-interface/targtyps.c: Likewise.
8277 2009-04-09 Nicolas Setton <setton@adacore.com>
8279 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8281 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8284 2009-04-09 Bob Duff <duff@adacore.com>
8286 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8287 internally-generated nodes related to select statements to avoid
8288 confusing the debugger.
8290 2009-04-09 Pascal Obry <obry@adacore.com>
8292 * make.adb: Ensure that all linker arguments are duplicated.
8294 2009-04-09 Robert Dewar <dewar@adacore.com>
8296 * sem_ch5.adb: Minor reformatting
8298 2009-04-09 Vincent Celier <celier@adacore.com>
8301 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8302 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8303 New qualifier /LXDEBUG=nnn for -gnatDnnn
8307 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8310 2009-04-09 Nicolas Setton <setton@adacore.com>
8312 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8313 to match layout of siginfo_t in sys/signal.h.
8315 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8317 2009-04-09 Thomas Quinot <quinot@adacore.com>
8319 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8321 2009-04-09 Nicolas Setton <setton@adacore.com>
8323 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8324 Add generation of Darwin-specific constants needed when binding to the
8327 2009-04-09 Robert Dewar <dewar@adacore.com>
8330 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8331 when no invalid values exist, Avoid duplicate read of atomic variable.
8333 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8334 (Standard_Unsigned): Set Is_Known_Valid
8336 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8337 subtype declaration if no constraint.
8338 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8339 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8341 2009-04-09 Robert Dewar <dewar@adacore.com>
8343 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8344 switch.ads: for numeric switches, an optional equal sign is always
8347 2009-04-09 Vincent Celier <celier@adacore.com>
8349 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8350 the case of file names is not significant.
8352 2009-04-09 Vincent Celier <celier@adacore.com>
8354 * errout.adb: Remove dependency on package Style
8356 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8359 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8362 * errutil.adb, par.adb: Import Stylesw
8364 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8366 * opt.ads: Fix typos.
8368 2009-04-09 Robert Dewar <dewar@adacore.com>
8370 * einfo.adb: Minor reformatting
8372 2009-04-09 Robert Dewar <dewar@adacore.com>
8374 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8377 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8379 2009-04-09 Robert Dewar <dewar@adacore.com>
8381 * g-comver.adb: Minor reformatting.
8383 2009-04-09 Thomas Quinot <quinot@adacore.com>
8385 * lib-load.ads (Load_Unit): Update documentation.
8387 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8389 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8390 named in a with_clause, retain the with_clause to preserve a
8391 limited_with indication.
8393 2009-04-09 Robert Dewar <dewar@adacore.com>
8395 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8396 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8397 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8398 possible to replace an OR of two separate tests.
8400 2009-04-09 Robert Dewar <dewar@adacore.com>
8402 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8405 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8406 warning status as well.
8408 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8410 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8413 * bindusg.adb, usage.adb: Update line for -gnatm switch
8415 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8418 2009-04-09 Robert Dewar <dewar@adacore.com>
8420 * sem_ch10.adb: Minor reformatting.
8422 2009-04-09 Bob Duff <duff@adacore.com>
8424 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8425 Set Sloc of generated nodes for calls to Undefer_Aborts and
8426 Save_Occurrence to No_Location, so the debugger ignores them and
8427 therefore does not jump back and forth when single stepping.
8429 2009-04-09 Robert Dewar <dewar@adacore.com>
8431 * switch-b.adb: Minor reformatting.
8433 2009-04-09 Robert Dewar <dewar@adacore.com>
8435 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8436 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8437 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8438 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8439 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8440 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8441 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8442 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8443 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8444 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8445 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8447 2009-04-09 Robert Dewar <dewar@adacore.com>
8449 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8451 * atree.h: Add Elist26
8453 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8456 2009-04-09 Javier Miranda <miranda@adacore.com>
8458 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8459 retrieve from the Dispatch_Table_Wrappers list the external name.
8460 Addition of documentation.
8461 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8462 used to export secondary dispatch tables (in the previous version of
8463 the frontend only primary dispatch tables were exported). Addition of
8465 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8466 dispatch table of a given tagged type.
8467 (Make_Tags): Modified to import secondary dispatch tables.
8469 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8470 (Constant_Redeclaration): Code cleanup.
8472 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8473 Dispatch_Table_Wrappers. Update documentation.
8475 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8476 Renamed to Dispatch_Table_Wrappers.
8478 * sem_util.adb (Collect_Interface_Components): Improve handling of
8481 * atree.ads (Elist26, Set_Elist26): New subprograms
8483 * atree.adb (Elist26, Set_Elist26): New subprograms
8485 2009-04-09 Javier Miranda <miranda@adacore.com>
8487 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8488 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8491 2009-04-09 Robert Dewar <dewar@adacore.com>
8493 * s-direio.adb: Minor reformatting
8495 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8497 2009-04-09 Robert Dewar <dewar@adacore.com>
8499 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8501 2009-04-09 Pascal Obry <obry@adacore.com>
8503 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8504 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8505 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8506 a-filico.ads: Add some missing overriding keywords.
8508 2009-04-09 Pascal Obry <obry@adacore.com>
8510 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8511 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8512 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8515 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8517 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8518 missing overriding indicator if the new declaration is not seen as
8521 2009-04-09 Thomas Quinot <quinot@adacore.com>
8523 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8524 overflows in computation of bounds.
8526 2009-04-09 Pascal Obry <obry@adacore.com>
8528 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8531 2009-04-09 Robert Dewar <dewar@adacore.com>
8533 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8534 restriction No_Streams
8536 * gnat_rm.texi: Clarify No_Streams restriction
8538 * g-socket.adb: Minor reformatting.
8540 2009-04-09 Thomas Quinot <quinot@adacore.com>
8542 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8544 2009-04-09 Geert Bosch <bosch@adacore.com>
8546 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8547 (Set_Result): Likewise.
8548 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8549 conversion, as required by RM 4.6(31).
8551 2009-04-08 Robert Dewar <dewar@adacore.com>
8553 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8556 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8559 2009-04-08 Robert Dewar <dewar@adacore.com>
8561 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8562 No_Local_Allocators restriction preventing local instantiation.
8564 2009-04-08 Thomas Quinot <quinot@adacore.com>
8566 * sem_eval.adb: Minor comment fix
8568 2009-04-08 Thomas Quinot <quinot@adacore.com>
8570 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8571 New limited controlled type used to automate the initialization and
8572 finalization of the sockets implementation.
8573 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8575 2009-04-08 Vincent Celier <celier@adacore.com>
8577 * prj-attr.adb: New read-only project-level attribute Project_Dir
8579 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8580 read-only attribute of the same name.
8581 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8582 (Recursive_Process): Ditto
8584 * snames.adb: Add new standard name Project_Dir
8586 * snames.ads: Add new standard name Project_Dir
8588 2009-04-08 Thomas Quinot <quinot@adacore.com>
8590 * checks.adb: Minor reformatting
8592 2009-04-08 Vincent Celier <celier@adacore.com>
8594 * vms_data.ads: Add documentation for new style keyword
8595 OVERRIDING_INDICATORS
8597 2009-04-08 Robert Dewar <dewar@adacore.com>
8599 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8600 spec is in the current unit.
8602 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8604 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8607 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8609 2009-04-08 Vincent Celier <celier@adacore.com>
8611 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8613 2009-04-08 Thomas Quinot <quinot@adacore.com>
8615 * checks.ads: Minor reformatting
8617 2009-04-08 Robert Dewar <dewar@adacore.com>
8619 * gnat_rm.texi: Update documentation of pragma Obsolescent
8621 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8622 be omitted, and allow Entity parameter to be omitted.
8624 2009-04-08 Thomas Quinot <quinot@adacore.com>
8626 * exp_util.adb: Minor comment fix
8628 2009-04-08 Robert Dewar <dewar@adacore.com>
8630 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8632 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8633 argument with no identifier following one that has an identifier. Was
8634 missed in some cases.
8636 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8638 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8640 * snames.adb: Add Name_Policy
8642 * snames.ads: Add Name_Policy
8644 2009-04-08 Robert Dewar <dewar@adacore.com>
8646 * gnat_rm.texi: Minor reformatting
8648 * par-ch2.adb: Minor reformatting
8650 2009-04-08 Robert Dewar <dewar@adacore.com>
8652 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8654 2009-04-08 Robert Dewar <dewar@adacore.com>
8656 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8657 properly in the presence of Remote_Types or Remote_Call_Interface.
8659 * sem_util.adb: Add comment.
8661 2009-04-08 Robert Dewar <dewar@adacore.com>
8663 * ug_words: Add /ASSUME_VALID for -gnatB
8665 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8667 * sem_cat.adb: Add clarifying commment
8669 * a-direio.ads (Bytes): Make sure value is non-zero
8671 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8673 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8674 that does not come from source, check for a rewritten function call in
8675 prefixed notation before other forms of rewriting.
8677 2009-04-08 Robert Dewar <dewar@adacore.com>
8679 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8680 these are now obsolescent units used only for bootrapping with an
8683 2009-04-08 Robert Dewar <dewar@adacore.com>
8685 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8687 * sem_ch3.adb: Minor comment updates
8689 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8691 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8692 that come from source.
8694 2009-04-08 Tristan Gingold <gingold@adacore.com>
8696 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
8697 * gcc-interface/decl.c (prepend_attributes): New case
8698 Pragma_Thread_Local_Storage.
8699 * gcc-interface/utils.c (process_attributes): New case
8700 ATTR_THREAD_LOCAL_STORAGE.
8702 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8704 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
8705 by the back-end if it contains a call to a subprogram without a
8706 previous spec that is declared in the same unit.
8708 * errout.ads: Update comments on uses of dirs
8710 2009-04-08 Robert Dewar <dewar@adacore.com>
8712 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
8714 2009-04-08 Tristan Gingold <gingold@adacore.com>
8716 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
8718 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
8720 2009-04-08 Vincent Celier <celier@adacore.com>
8723 (Add_Source): Add the mapping of the unit name to source file name in
8724 the Unit_Sources_HT hash table, if the unit name is not null.
8726 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
8728 * prj.ads (Unit_Sources_Htable): New hash table instantiation
8729 (Project_Tree_Data): New component Unit_Sources_HT
8731 2009-04-08 Thomas Quinot <quinot@adacore.com>
8733 * sem_ch8.adb: Minor reformatting.
8734 Minor code reorganization.
8736 2009-04-08 Robert Dewar <dewar@adacore.com>
8738 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
8739 snames.ads, freeze.adb, par-prag.adb: Add implementation of
8740 pragma Thread_Local_Storage, setting new flag
8741 Has_Pragma_Thread_Local_Storage in corresponding entities.
8743 2009-04-08 Emmanuel Briot <briot@adacore.com>
8745 * prj.ads: Update comment on switches file
8747 * prj-nmsc.adb: Code clean up. Use renaming clauses.
8749 2009-04-08 Robert Dewar <dewar@adacore.com>
8751 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
8753 2009-04-08 Thomas Quinot <quinot@adacore.com>
8755 * ali-util.adb: Minor comment fix
8757 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8759 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
8760 appears in a context clause, and the enclosing package is mentioned in
8761 a limited_with_clause.
8762 (Use_One_Type): Reject clause if type is still incomplete.
8764 2009-04-08 Emmanuel Briot <briot@adacore.com>
8766 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
8767 avoid copies of Source_Data variables when possible, since these
8768 involve calls to memcpy() which are done too many times.
8770 2009-04-08 Robert Dewar <dewar@adacore.com>
8772 * exp_ch4.adb (Expand_Concatenate): Clean up code
8774 2009-04-07 Thomas Quinot <quinot@adacore.com>
8776 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
8777 type for the case of concatenating a constrained array indexed by an
8780 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8782 * sem_ch6.adb (Check_Conformance): when checking conformance of an
8783 operation that overrides an abstract operation inherited from an
8784 interface, return False if only one of the controlling formals is an
8787 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8789 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
8790 mandated by AI05-105.
8792 2009-04-07 Vincent Celier <celier@adacore.com>
8794 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
8796 2009-04-07 Thomas Quinot <quinot@adacore.com>
8798 * usage.adb: Minor fix in usage message.
8800 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
8801 match declaration; the correct subtype is Node_Id, not Entity_Id,
8802 because the expected node kind is an identifier, not a defining
8805 * switch-c.adb: Minor reformatting.
8807 * uintp.adb: Minor reformatting.
8809 2009-04-07 Robert Dewar <dewar@adacore.com>
8811 * exp_ch13.adb: Minor reformatting
8813 2009-04-07 Robert Dewar <dewar@adacore.com>
8815 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
8816 against missing parent.
8818 2009-04-07 Thomas Quinot <quinot@adacore.com>
8820 * xoscons.adb: Minor reformatting
8822 2009-04-07 Robert Dewar <dewar@adacore.com>
8824 * rtsfind.ads: Remove obsolete string concatenation entries
8826 2009-04-07 Robert Dewar <dewar@adacore.com>
8828 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
8830 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8832 * sem_ch10.adb (Check_Body_Required): Handle properly imported
8835 2009-04-07 Gary Dismukes <dismukes@adacore.com>
8837 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
8838 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
8839 is of a scalar or string type then suppress the setting of the
8840 expression to Empty.
8842 * freeze.adb (Warn_Overlay): Also emit the warnings about default
8843 initialization for the cases of scalar and string objects when
8844 Init_Or_Norm_Scalars is True.
8846 2009-04-07 Bob Duff <duff@adacore.com>
8848 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
8850 2009-04-07 Bob Duff <duff@adacore.com>
8852 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
8853 Form parameter of Text_Translation=No allows binary mode for Text_IO
8856 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
8858 2009-04-07 Javier Miranda <miranda@adacore.com>
8860 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
8861 processing the bounds for bit packed arrays or VM target machines.
8863 2009-04-07 Thomas Quinot <quinot@adacore.com>
8865 * g-sothco.ads (Int_Access): Remove extraneous access type (use
8866 anonymous access instead).
8867 (Get_Socket_From_Set): Fix incorrectly reverted formals
8868 Last and Socket to match the underlying C routine.
8870 * g-socket.adb, g-socket.ads
8871 (Get): Use named parameter associations instead of positional ones in
8872 call go Get_Socket_From_Set, since this routine has two formals of the
8874 (Image): New procedure.
8876 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8877 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
8878 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
8879 for type of Arg formal.
8881 * sem_warn.adb: Minor reformatting
8883 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8885 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
8886 over record components.
8888 2009-04-07 Nicolas Roche <roche@adacore.com>
8891 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
8892 has disappeared between VxWorks 6.4 and VxWorks 6.5
8893 In RTP mode use time.h instead of times.h
8895 2009-04-07 Robert Dewar <dewar@adacore.com>
8897 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
8899 2009-04-07 Kevin Pouget <pouget@adacore.com>
8901 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
8902 expanded code for constrained types.
8904 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8906 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
8907 AI05-105: in an object renaming declaration, anonymousness is a name
8910 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
8912 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8914 * g-comlin.adb (Expansion): Fix old regression: also return directory
8915 names when matching.
8917 2009-04-07 Robert Dewar <dewar@adacore.com>
8920 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
8921 (Expand_Concatenate): New name for Expand_Concatenate_String which has
8922 been rewritten to handle all types.
8923 (Expand_Concatenate_Other): Remove
8925 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8927 * lib-xref.adb (Generate_Reference): A default subprogram in an
8928 instance appears within the tree for the instance, but generates an
8929 implicit reference in the ALI.
8931 2009-04-07 Javier Miranda <miranda@adacore.com>
8933 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
8934 derived type that has discriminants, propagate the list of interfaces
8935 to the corresponding new base type. In addition, propagate also
8936 attribute Limited_Present (found working in this patch).
8938 2009-04-07 Robert Dewar <dewar@adacore.com>
8940 * exp_ch4.adb: Rewrite concatenation expansion.
8942 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8944 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
8945 relevant to packages.
8947 2009-04-07 Robert Dewar <dewar@adacore.com>
8949 * sem_attr.adb: Minor reformatting
8951 * sem_ch6.adb: Minor reformatting
8953 2009-04-07 Tristan Gingold <gingold@adacore.com>
8955 * socket.c: Add more protections against S_resolvLib_ macros.
8957 2009-04-07 Thomas Quinot <quinot@adacore.com>
8959 * sem_attr.adb: Minor reformatting
8961 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8963 * sem_ch6.adb (New_Overloaded_Entity): New predicate
8964 Is_Overriding_Alias to handle properly types that inherit two homonym
8965 operations that have distinct dispatch table entries.
8967 2009-04-07 Emmanuel Briot <briot@adacore.com>
8969 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
8970 looking for the end of a parenthesis group
8972 2009-04-07 Tristan Gingold <gingold@adacore.com>
8974 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
8976 * socket.c Don't use resolvLib_ macros if not defined.
8978 2009-04-07 Robert Dewar <dewar@adacore.com>
8980 * g-socket.adb: Minor reformatting.
8982 * g-socthi-mingw.adb: Minor reformatting
8984 * g-sothco.ads: Minor reformatting
8987 (Expand_Concatenate_String): Complete rewrite to generate efficient code
8988 inline instead of relying on external library routines.
8990 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
8991 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
8994 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8997 (Eval_Attribute): for attributes of array objects that are not strings,
8998 attributes are not static if nominal subtype of object is unconstrained.
9000 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9002 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9003 operations for a type T in an instance do not override each other,
9004 when T is derived from a formal private type, the corresponding
9005 operations inherited by a type derived from T outside
9006 of the instance do not override each other either.
9008 2009-04-07 Robert Dewar <dewar@adacore.com>
9010 (Osint.Fail): Change calling sequence to have one string arg
9011 (Make.Make_Failed): Same change
9012 All callers are adjusted to use concatenation
9014 2009-04-07 Robert Dewar <dewar@adacore.com>
9016 * exp_ch4.adb: Fix documentation typo
9018 2009-04-07 Robert Dewar <dewar@adacore.com>
9020 * tbuild.ads: Minor reformatting
9022 2009-04-07 Javier Miranda <miranda@adacore.com>
9024 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9025 when compiling under ZFP runtime.
9027 2009-04-07 Robert Dewar <dewar@adacore.com>
9029 * g-comlin.adb: Minor reformatting
9031 2009-04-07 Thomas Quinot <quinot@adacore.com>
9033 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9034 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9035 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9036 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9038 2009-04-07 Robert Dewar <dewar@adacore.com>
9040 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9042 * opt.ads (Sprint_Line_Limit): New parameter
9044 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9046 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9048 * usage.adb: Output information for -gnatGnn -gnatDnn
9050 2009-04-07 Robert Dewar <dewar@adacore.com>
9052 * make.adb: Minor reformatting
9054 2009-04-07 Robert Dewar <dewar@adacore.com>
9056 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9058 2009-04-07 Robert Dewar <dewar@adacore.com>
9060 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9062 2009-04-07 Robert Dewar <dewar@adacore.com>
9065 Remove Assume_Valid parameter from In_Subrange_Of calls
9068 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9069 (Is_In_Range): Remove incorrect use of Assume_Valid
9070 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9073 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9074 (Is_In_Range): Documentation cleanup
9075 (Is_Out_Of_Range): Documentation cleanup
9078 Add documentation for Assume_No_Invalid_Values pragma
9080 * sem_ch12.adb: Minor reformatting
9082 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9084 * sem_prag.adb: Improve error message.
9086 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9087 LF/CR no longer recognized as line terminator
9089 * switch.ads: Minor documentation improvement
9091 * vms_data.ads: Minor reformatting
9093 2009-04-07 Robert Dewar <dewar@adacore.com>
9095 * checks.adb (Determine_Range): Add Assume_Valid parameter
9097 * checks.ads (Determine_Range): Add Assume_Valid parameter
9099 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9100 Is_Null_Loop to suppress warnings in a loop body.
9103 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9106 (Expand_N_Loop_Statement): Delete loop known not to execute
9109 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9110 fully enables the proper handling of invalid values.
9113 New calling sequence for Is_In_Range
9116 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9117 in determining if a loop range is null.
9120 (Is_In_Range): Add Assume_Valid parameter
9121 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9122 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9123 also to do more accurate and complete range analysis, catching more
9127 (Is_In_Range): Add Assume_Valid parameter
9128 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9131 New calling sequence for Is_In_Range
9134 (Suppress_Loop_Warnings): New flag
9137 (Is_Null_Loop): Update documentation
9138 (Suppress_Loop_Warnings): New flag
9140 * gnat_ugn.texi: Document -gnatB switch
9142 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9144 * gnatvsn.ads: Bump version number.
9146 2009-04-07 Thomas Quinot <quinot@adacore.com>
9148 * exp_ch3.adb: Minor rewording (comments)
9150 2009-04-07 Robert Dewar <dewar@adacore.com>
9152 * exp_disp.adb: Minor reformatting
9154 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9156 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9158 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9160 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9162 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9163 Do not convert the result. Remove obsolete comment.
9165 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9167 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9169 (Subprogram_Body_to_gnu): Fix pasto.
9171 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9173 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9174 (void_type_decl_node): Remove.
9175 (init_gigi_decls): Likewise.
9176 (gnat_install_builtins): Declare.
9177 (record_builtin_type): Likewise.
9178 (create_type_stub_decl): Likewise.
9179 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9180 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9182 <E_Array_Subtype>: Use the index types, not only their name, in the
9183 record giving the names of the bounds, if any.
9184 For a packed array type, make it artificial only if the base type
9185 was artificial as well. Remove redundant statement.
9186 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9188 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9189 (rest_of_type_decl_compilation_no_defer): Likewise.
9190 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9191 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9192 and use create_type_stub_decl to build it.
9193 (gnat_pushdecl): Rewrite condition.
9194 (gnat_install_builtins): Remove bogus declaration.
9195 (record_builtin_type): New function.
9196 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9198 (create_type_stub_decl): New function.
9199 (create_type_decl): Assert that the type is not dummy. If the type
9200 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9201 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9202 (build_vms_descriptor): Likewise.
9203 (init_gigi_decls): Delete and move bulk of code to...
9204 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9205 (emit_range_check): Add gnat_node parameter.
9206 (emit_index_check): Likewise.
9207 (emit_check): Likewise.
9208 (build_unary_op_trapv): Likewise.
9209 (build_binary_op_trapv): Likewise.
9210 (convert_with_check): Likewise.
9211 (Attribute_to_gnu): Adjust calls for above changes.
9212 (call_to_gnu): Likewise.
9213 (gnat_to_gnu): Likewise.
9214 (assoc_to_constructor): Likewise.
9215 (pos_to_constructor): Likewise.
9216 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9217 (process_type): Do not create TYPE_DECL for dummy types.
9219 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9221 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9222 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9223 * gcc-interface/utils.c: Fix comments.
9225 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9227 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9229 (gnat_to_gnu_type): Move around.
9230 (get_unpadded_type): Likewise.
9231 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9234 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9236 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9237 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9238 (call_to_gnu): Invoke it instead of manually checking.
9240 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9242 * gcc-interface/utils.c (finish_record_type): Force structural equality
9243 checks if the record type is discriminated.
9245 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9247 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9248 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9249 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9250 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9251 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9252 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9253 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9255 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9257 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9258 of TREE_CONSTANT_OVERFLOW.
9260 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9262 PR rtl-optimization/323
9263 * gcc-interface/misc.c (gnat_post_options): Set
9264 flag_excess_precision_cmdline. Give an error for
9265 -fexcess-precision=standard for processors where the option is
9268 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9271 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9274 2009-03-11 Olivier Hainque <hainque@adacore.com>
9276 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9277 checks processing, remove unintended TREE_TYPE walk on index type.
9279 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9282 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9283 call make_packable_type on fat pointer types.
9284 <E_Array_Subtype>: Likewise.
9285 <E_Record_Subtype>: Call make_packable_type on all record types
9286 except for fat pointer types.
9287 (make_packable_type): Likewise.
9288 (gnat_to_gnu_field): Likewise.
9290 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9292 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9293 EH_MECHANISM change made on 2007-12-06.
9295 2009-02-26 Andreas Schwab <schwab@suse.de>
9298 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9299 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9300 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9302 (target_cpu_default): Substitute.
9304 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9307 * a-teioed.adb (Expand): Fix Result overflow.
9309 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9311 * gcc-interface/Makefile.in: Fix multilib handling for
9314 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9316 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9318 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9320 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9322 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9324 * gcc-interface/deftarg.c: Remove.
9326 2009-02-10 Olivier Hainque <hainque@adacore.com>
9327 Eric Botcazou <ebotcazou@adacore.com>
9329 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9330 (copy_alias_set): Rename into...
9331 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9332 underlying array of unconstrained arrays for the new type as well.
9333 If the old and new alias sets don't conflict, make one a subset of
9334 the other as per the OP parameter.
9335 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9336 <E_Record_Type>: Do not copy the alias set for derived types.
9337 For all types, make the alias set of derived types a superset of
9338 that of their parent type.
9339 (make_aligning_type): Adjust calls to copy_alias_set.
9340 (make_packable_type): Likewise.
9341 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9342 Check for alias set conflict instead of strict equality to issue the
9345 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9347 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9348 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9349 (copy_alias_set): Assert that arrays have the same aliasing settings.
9350 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9352 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9354 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9355 Set TYPE_NONALIASED_COMPONENT on the array type.
9357 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9359 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9361 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9363 * gcc-interface/Makefile.in: Fix multilib handling for
9366 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9368 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9369 only useless conversions around renamed objects.
9371 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9373 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9374 the _Tag field before any discriminants in the field list.
9375 (components_to_record): Remove obsolete comment.
9379 Copyright (C) 2009 Free Software Foundation, Inc.
9381 Copying and distribution of this file, with or without modification,
9382 are permitted in any medium without royalty provided the copyright
9383 notice and this notice are preserved.