1 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3 * gnat1drv.adb (Adjust_Global_Switches): No longer set
4 Back_Annotate_Rep_Info in inspector mode.
5 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
7 * opt.ads: Update comment.
9 2009-07-13 Robert Dewar <dewar@adacore.com>
11 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
12 prj.ads: Minor reformatting and code reorganization.
14 * par-ch3.adb (Check_Restricted_Expression): New procedure
16 2009-07-13 Ed Schonberg <schonberg@adacore.com>
18 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
19 attribute into a call of the corresponding suprogram, create extra
20 formals for the subprogram, because it may be a renaming whose
21 analysis does not create extra formals.
23 2009-07-13 Emmanuel Briot <briot@adacore.com>
25 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
26 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
27 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
28 prj-tree.ads: Minor reformatting.
29 (Processing_Flags): new record to encapsulate the set of common
30 parameters to several subprograms in the project manager.
31 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
32 Remove the need for the Current_Dir parameter in subprograms.
33 (Look_For_Sources): minor refactoring, now that we no longer need to
34 share subprograms between the two Ada_Only and Multi_Language modes
35 (Processing_Flags): New field Error_On_Unknown_Language.
36 Merge tests for library project between gnatmake and gprbuild.
38 2009-07-13 Arnaud Charlet <charlet@adacore.com>
40 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
43 2009-07-13 Emmanuel Briot <briot@adacore.com>
45 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
48 2009-07-13 Thomas Quinot <quinot@adacore.com>
50 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
51 Write,Input,Output} from private view to full view.
53 * sem_type.adb, sem_type.ads: Minor reformatting
55 2009-07-13 Nicolas Setton <setton@adacore.com>
57 * exp_dbug.ads: Add documentation note on the utility of
58 DW_AT_GNAT_encoding for IDEs.
60 2009-07-13 Robert Dewar <dewar@adacore.com>
62 * g-socthi-vxworks.adb: Minor reformatting
64 * gnatcmd.adb: Minor reformatting
66 2009-07-13 Thomas Quinot <quinot@adacore.com>
68 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
69 removed, not used anymore.
70 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
71 New subprogram, implements copy of an Any value into a limited object.
72 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
73 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
74 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
75 of parameters of a limited type, use the above new subprogram.
77 2009-07-13 Emmanuel Briot <briot@adacore.com>
79 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
81 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
83 (Error_Report): Remove global variable, replaced by parameters.
85 2009-07-13 Thomas Quinot <quinot@adacore.com>
87 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
88 standard sendto(2) interface for connected sockets (passing a null
89 destination address). Use send(2) instead for that case.
91 2009-07-13 Pascal Obry <obry@adacore.com>
93 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
95 2009-07-13 Emmanuel Briot <briot@adacore.com>
97 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
98 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
99 variables and tables in prj-nmsc.adb.
100 (Tree_Processing_Data): Renames Processing_Data, some new fields added
101 (Project_Processing_Data): New record
102 Simplify/unify check for missing sources.
104 2009-07-13 Emmanuel Briot <briot@adacore.com>
106 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
107 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
108 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
109 prj-tree.ads (Immediate_Directory_Of): Removed.
110 (Prj.Pars): Now parse the project simulating a default config file.
111 (Add_Default_GNAT_Naming_Scheme): New subprogram
112 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
113 Remove gnatmake-specific parsing of source files.
114 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
115 the error itself to provide more precise diagnostics.
116 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
117 a unit belongs to several projects.
118 (Copy_Interface_Sources): Search the full path of files to copy in the
119 list of sources of the application rather than in the list of units.
120 (Parse_Project_And_Apply_Config): Do not reset the name of the main
122 (Check_File): Use htables to find out whether a source is duplicated.
123 (Add_Source): check whether the source or unit were already seen earlier
125 * gcc-interface/Makefile.in: Update gnatmake dependencies.
127 2009-07-13 Robert Dewar <dewar@adacore.com>
129 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
130 expression if extensions permitted.
132 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
134 (P_Relation): Use P_Membership_Test
136 * par.adb (P_Membership_Test): New procedure (implement membership set
139 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
141 * sprint.adb (Sprint_Node): Handle set form for membership tests.
143 2009-07-13 Thomas Quinot <quinot@adacore.com>
145 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
146 Do not attempt to generate stubs for predefined primitives of
147 synchronized interfaces.
148 (Add_Stub_Type): Factor some code from the PCS-specific variants of
151 2009-07-13 Ed Schonberg <schonberg@adacore.com>
153 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
154 Controlling_Result flag from the operation they override.
156 2009-07-13 Arnaud Charlet <charlet@adacore.com>
158 * gcc-interface/Make-lang.in: Update dependencies
160 2009-07-13 Robert Dewar <dewar@adacore.com>
162 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
163 details on unsupported constructs.
165 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
168 * s-trafor-default.adb: Correct some warnings
170 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
171 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
174 * par-ch4.adb (Conditional_Expression): Capture proper location for
175 conditional expression, should point to IF.
177 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
178 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
179 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
180 reorganization (use conditional expressions).
182 2009-07-13 Ed Schonberg <schonberg@adacore.com>
184 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
185 build-in-place function that returns an inherently limited type (not
186 just a task type) create proper object declaration so that extra
187 build-in-place actuals are properly added to the call.
189 2009-07-13 Robert Dewar <dewar@adacore.com>
191 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
193 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
195 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
197 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
198 Warn_On_Suspicious_Modulus_Value.
200 * ug_words: Add entries for -gnatw.m/-gnatw.M.
202 * usage.adb: Add lines for -gnatw.m/.M switches.
204 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
206 2009-07-13 Javier Miranda <miranda@adacore.com>
208 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
209 reading the Is_Interface attribute of the dispatching type.
211 2009-07-13 Robert Dewar <dewar@adacore.com>
213 * a-convec.adb: Minor code reorganization (use conditional expressions)
215 2009-07-13 Robert Dewar <dewar@adacore.com>
217 * freeze.adb (Check_Suspicious_Modulus): New procedure.
219 2009-07-13 Robert Dewar <dewar@adacore.com>
221 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
224 * par-ch4.adb: Minor reformatting
226 2009-07-13 Ed Schonberg <schonberg@adacore.com>
228 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
229 => Is_Atomic_Aggregate
231 2009-07-13 Emmanuel Briot <briot@adacore.com>
233 * prj-nmsc.adb: Avoid traversing the list of source files if
234 we have already processed all locally removed files.
236 2009-07-13 Jose Ruiz <ruiz@adacore.com>
238 * gnat_ugn.texi: Fix typo.
240 2009-07-13 Robert Dewar <dewar@adacore.com>
242 * freeze.adb: Minor reformatting
243 Minor code reorganization (use Nkind_In)
245 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
247 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
249 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
250 local variable and do not test it in Compile_Time_Bad_Alignment.
251 Do not issue size or alignment warnings for the X'Address form.
252 * sem_util.ads (Find_Overlaid_Object): Delete.
253 (Find_Overlaid_Entity): New procedure.
254 * sem_util.adb (Find_Overlaid_Object): Rename to...
255 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
256 whether the address is offseted within the overlaid entity.
257 (Has_Compatible_Alignment): Track the offset globally instead of
258 passing it to Check_Offset. For an indexed component, compute the
259 full offset when possible. If the resulting offset is zero, only
261 (Check_Offset): Delete.
262 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
263 (Address_Aliased_Entity): Delete.
264 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
265 Find_Overlaid_Entity to find the overlaid entity and the offset.
266 Adjust throughout for above change.
267 (Validate_Address_Clauses): Always use attributes of entities, not of
268 their type. Tweak message for warning. Call Has_Compatible_Alignment
269 if the address is offseted to warn about incompatible alignments.
270 * gcc-interface/gigi.h (annotate_object): Declare.
271 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
272 entity. Call annotate_object instead of annotating manually objects.
273 (annotate_object): New function.
274 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
277 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
279 * gcc-interface/ada-tree.h: Minor reorganization.
280 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
281 (gnat_print_type): Likewise.
283 2009-07-11 Thomas Quinot <quinot@adacore.com>
285 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
288 * exp_ch6.adb: Minor reformatting
290 2009-07-11 Ed Schonberg <schonberg@adacore.com>
292 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
293 account possible type qualification to determine whether aggregate
294 needs a target temporary to respect atomic type or object.
296 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
297 Expand_Atomic_Aggregate.
299 2009-07-11 Emmanuel Briot <briot@adacore.com>
301 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
303 (Excluded_Sources_Htable): No longer a global table.
304 Change error message to indicate which files are illegal in the list
305 of excluded files, as opposed to only the location in the project
307 (Find_Source): New subprogram.
309 2009-07-10 Thomas Quinot <quinot@adacore.com>
311 * exp_ch7.adb: Update comments.
313 2009-07-10 Arnaud Charlet <charlet@adacore.com>
315 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
316 clause if -gnatI is set instead of crashing.
318 2009-07-10 Ed Schonberg <schonberg@adacore.com>
320 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
321 Additional work to remove redundant successive raise statements, in
322 this case access checks.
324 2009-07-10 Vincent Celier <celier@adacore.com>
326 * make.adb (Compile): Always create a deep copy of the mapping file
327 argument (-gnatem=...) as it may be deallocate/reallocate by
330 2009-07-10 Javier Miranda <miranda@adacore.com>
332 * einfo.adb (Directly_Designated_Type): Add assertion.
334 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
335 access types before using attribute Directly_Designated_Type.
337 2009-07-10 Emmanuel Briot <briot@adacore.com>
339 * prj.ads: Minor typo fix
341 2009-07-10 Ed Schonberg <schonberg@adacore.com>
343 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
346 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
347 subprogram is a function call, resolve properly, to ensure that extra
348 actuals are added as needed.
350 2009-07-10 Thomas Quinot <quinot@adacore.com>
352 * sem_aggr.adb: Minor comments editing
354 * exp_tss.adb, exp_ch3.adb: Minor reformatting
356 2009-07-10 Robert Dewar <dewar@adacore.com>
358 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
360 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
363 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
364 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
365 case of conditional expressions that may not be elaborated.
367 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
368 conditional expression where we may not execute then then or else
371 2009-07-10 Arnaud Charlet <charlet@adacore.com>
373 * i-cexten.ads (bool): New type.
375 2009-07-10 Robert Dewar <dewar@adacore.com>
377 * sinfo.ads (N_Short_Circuit): New definition
379 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
380 treepr.adb: Minor code reorganization (use N_Short_Circuit)
382 2009-07-10 Javier Miranda <miranda@adacore.com>
384 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
385 non-tagged record types.
388 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
389 with non-tagged types. Required to import C++ classes that have no
391 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
392 returning non-tagged types. For backward compatibility, if the
393 constructor returns a class wide type we internally change the
394 returned type to the corresponding non class-wide type.
397 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
398 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
399 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
400 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
403 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
405 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
407 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
409 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
411 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
414 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
417 (pragma CPP_Class): Document that it can be used now with non-tagged
419 (pragma CPP_Constructor): Document that it can be used now with
420 functions returning specific types. For backward compatibility
421 we also support functions returning class-wide types.
424 (Interfacing with C++ constructors): Update the examples to incorporate
425 the new syntax in which the functions used to import C++ constructors
426 return specific types.
427 (Interfacing with C++ at the Class Level): Update the examples to
428 incorporate the new syntax in which the functions used to import
429 C++ constructors return specific types.
431 2009-07-10 Thomas Quinot <quinot@adacore.com>
433 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
434 Make_Disp_Conditional_Select_Body,
435 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
436 interface nor a concurrent type, the primitive body is empty. Generate
437 a null statement so that it remains well formed.
439 2009-07-10 Ed Schonberg <schonberg@adacore.com>
441 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
442 replace references to them in defaulted component expressions with
443 references to the values of the discriminants of the target object.
445 2009-07-10 Ed Schonberg <schonberg@adacore.com>
447 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
448 pragma, to capture global references if the context is generic.
450 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
451 appears within the initialization procedure for the corresponding
452 record, replace it with the proper discriminal.
454 2009-07-10 Vincent Celier <celier@adacore.com>
456 * make.adb: Do not include object directories or library ALI
457 directories of library projects in the object path.
459 2009-07-10 Javier Miranda <miranda@adacore.com>
461 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
462 Typ argument to ensure proper management of access types.
464 2009-07-10 Ed Schonberg <schonberg@adacore.com>
466 * exp_ch7.adb (Build_Final_List): If the list is being built for a
467 Taft-Amendment type, place the finalization list in the package body,
468 to ensure that the tree for the spec is identical whenever it is
471 2009-07-10 Javier Miranda <miranda@adacore.com>
473 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
474 inheriting attributes from a private Parent_Base.
476 2009-07-10 Ed Schonberg <schonberg@adacore.com>
478 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
479 statements with the same condition.
481 2009-07-10 Robert Dewar <dewar@adacore.com>
483 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
485 2009-07-09 Tom Tromey <tromey@redhat.com>
487 * raise-gcc.c: Include dwarf2h (unconditionally).
489 2009-07-09 Ed Schonberg <schonberg@adacore.com>
491 * sem_ch10.adb (Install_Context): If the unit is a package body,
492 install the private with_clauses of the corresponding package
495 2009-07-09 Robert Dewar <dewar@adacore.com>
497 * checks.adb: Minor reformatting
499 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
501 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
504 2009-07-09 Thomas Quinot <quinot@adacore.com>
506 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
507 Do not warn for a constant overlaying any constant object
509 2009-07-09 Ed Schonberg <schonberg@adacore.com>
511 * sem_ch10.adb (Install_Context): If the unit is a package body,
512 install the private with_clauses of the corresponding package
515 2009-07-09 Robert Dewar <dewar@adacore.com>
517 * checks.adb: Minor reformatting
519 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
521 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
524 2009-07-09 Thomas Quinot <quinot@adacore.com>
526 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
527 Do not warn for a constant overlaying any constant object
529 2009-07-09 Arnaud Charlet <charlet@adacore.com>
531 * gcc-interface/Make-lang.in: Update dependencies
533 2009-07-09 Thomas Quinot <quinot@adacore.com>
535 * g-socket.adb (Check_Selector): Do not create local copies of the
536 socket sets on the stack.
538 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
540 * gnat_ugn.texi: Add missing VMS translations.
542 2009-07-09 Ed Schonberg <schonberg@adacore.com>
544 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
545 condition, to prevent generation of visible code during expansion,
546 when Check is not enabled.
548 2009-07-09 Gary Dismukes <dismukes@adacore.com>
550 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
551 the check gets registered for any available local handler
554 * sem_util.adb: Add with and use of Exp_Ch11.
555 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
556 that the check gets registered for any available local handler.
558 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
561 2009-07-09 Steve Baird <baird@adacore.com>
563 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
565 (Expand_N_Exception_Declaration): Fix handling of exceptions
566 declared in a subprogram.
568 2009-07-09 Emmanuel Briot <briot@adacore.com>
570 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
573 2009-07-09 Thomas Quinot <quinot@adacore.com>
575 * freeze.adb: Minor reformatting
577 * exp_ch3.adb: Minor comment fix.
579 * sinfo.ads: Minor comment fix
581 2009-07-09 Ed Schonberg <schonberg@adacore.com>
583 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
585 2009-07-09 Ed Schonberg <schonberg@adacore.com>
587 * freeze.adb (Freeze_Expression): If the expression is the name of a
588 function in a call, and the function has not been frozen yet, create
589 extra formals for it to ensure that the proper actuals are created
590 when expanding the call.
592 2009-07-09 Emmanuel Briot <briot@adacore.com>
594 * prj-pp.adb (Print): Fix handling of source index when set on a
597 2009-07-09 Ed Schonberg <schonberg@adacore.com>
599 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
600 a temporary to the source expression whose value it captures.
602 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
604 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
606 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
609 2009-07-07 Gary Dismukes <dismukes@adacore.com>
611 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
612 parameters when the subtype of the actual is not known to be a subrange
613 of the formal's subtype.
614 (Expand_Call): Generate a range check only in the E_In_parameter case
615 (in out parameter range checks are now handled in Expand_Actuals).
617 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
620 2009-07-07 Robert Dewar <dewar@adacore.com>
622 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
624 2009-07-07 Javier Miranda <miranda@adacore.com>
626 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
627 designated type comes from a limited views.
629 2009-07-07 Emmanuel Briot <briot@adacore.com>
631 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
632 locally removed files that are later made visible again in an importing
635 2009-07-07 Robert Dewar <dewar@adacore.com>
637 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
639 2009-07-07 Sergey Rybin <rybin@adacore.com>
641 * gnat_ugn.texi: Add an example to the description of gnatcheck
642 'Style_Checks' rule option.
644 2009-07-07 Tristan Gingold <gingold@adacore.com>
646 * seh_init.c: Fix inline assembly statement in seh_init.c
648 2009-07-07 Ed Schonberg <schonberg@adacore.com>
650 * sem_warn.adb (Check_References): Do not emit warnings on formals of
651 an entry body. Only the formals of the entry declaration are traced.
653 2009-07-07 Robert Dewar <dewar@adacore.com>
655 * s-osprim-mingw.adb: Minor code reorganization
657 2009-07-07 Robert Dewar <dewar@adacore.com>
659 * prj-nmsc.adb: Minor reformatting
661 2009-07-07 Pascal Obry <obry@adacore.com>
663 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
664 cases where Pattern is longer than Source.
666 2009-07-07 Pascal Obry <obry@adacore.com>
668 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
670 2009-07-07 Emmanuel Briot <briot@adacore.com>
672 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
675 2009-07-07 Ed Schonberg <schonberg@adacore.com>
677 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
678 primitive operations, in case one of them is called in the
679 initialization procedure for the type.
681 2009-07-07 Robert Dewar <dewar@adacore.com>
683 * a-calend.adb: Minor code reorganization (use conditional expressions)
685 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
686 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
687 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
688 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
689 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
690 g-comlin.adb, exp_ch11.adb: Minor reformatting.
692 2009-07-07 Gary Dismukes <dismukes@adacore.com>
694 * checks.adb (Generate_Range_Check): Replace type conversions with
695 unchecked conversions to support the case of performing range checks
696 on Enum'Val (permits integer values to be converted to enumeration).
698 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
699 Attribute_Succ): Set Do_Range_Check to False before calling
700 Expand_Pred_Succ, to prevent gigi from generating any range checks.
701 (Expand_N_Attribute_Reference, case Attribute_Val):
702 Generate a range check when needed (and set Do_Range_Check to False).
704 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
705 scalar object initialization if needed.
707 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
708 when needed on scalar allocators.
709 (Expand_N_Qualified_Expression): Generate range check when needed.
710 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
711 Checks on slice ranges handled in Resolve_Slice.
713 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
714 when needed, for all scalar assignments, not just discrete.
715 (Expand_Simple_Function_Return): Resolve the conversion created for a
716 scalar function return so that the conversion will get expanded to
717 generate a possible constraint check.
719 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
720 in out scalar actuals when subtypes don't match, to ensure generation
721 of return checks (and set Do_Range_Check to False).
722 (Expand_Call): Uncomment code to perform range checks, but make it apply
723 only to in and in out parameters (checks on parameter returns are
724 handled in Expand_Actuals). If a scalar actual for a call to a derived
725 subprogram is marked as needing a range check, peform it here (and set
726 Do_Range_Check to False).
728 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
729 range check on scalar component associations when needed.
731 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
732 infinities but the second type does not, as these aren't compatible
733 floating-point types.
735 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
736 slice is itself a slice, pick up the Etype of the prefix. This handles
737 the case where the prefix was an Image attribute expanded to a slice,
738 and ensures that we get the subtype with the slice constraint rather
739 than the unconstrained subbtype of the 'Image.
741 2009-07-07 Ed Schonberg <schonberg@adacore.com>
743 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
744 overloaded expressions in a conditional expressions.
746 * sem_res.adb (Resolve): Handle properly overloaded conditional
749 2009-07-07 Robert Dewar <dewar@adacore.com>
751 * scng.adb: Minor reformattting
753 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
754 association allows conditional expression without parens.
756 * par-ch4.adb (P_Name): Attribute arguments can be conditional
757 expressions without enclosing parentheses, and also as parameters,
758 indexing expressions etc.
759 (P_Conditional_Expression): New procedure
760 (P_Expression_If_OK): New procedure
762 * par.adb (P_Conditional_Expression): New procedure
763 (P_Expression_If_OK): New procedure
765 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
766 form of conditional expression.
768 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
769 missing True argument if ELSE argument missing.
771 * sinfo.adb (Is_Elsif): New flag
773 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
774 part of the language, and the documentation is modified accordingly.
777 2009-07-06 Olivier Hainque <hainque@adacore.com>
779 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
780 setjmp_longjmp): Attach the exception propagation reraise fallback
781 to the sequence end label location when we have it.
783 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
786 * init.c (APPLE): Include <mach/mach_init.h>.
787 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
789 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
791 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
792 (SET_DECL_LANG_SPECIFIC): Likewise.
793 (TYPE_RM_VALUE): New macro.
794 (SET_TYPE_RM_VALUE): Likewise.
795 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
796 (TYPE_RM_MIN_VALUE): Likewise.
797 (TYPE_RM_MAX_VALUE): Likewise.
798 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
799 (SET_TYPE_RM_MIN_VALUE): Likewise.
800 (SET_TYPE_RM_MAX_VALUE): Likewise.
801 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
803 2009-07-04 Laurent GUERBY <laurent@guerby.net>
806 * tracebak.c (__gnat_backtrace): Fix old-style definition.
808 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
810 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
812 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
815 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
818 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
820 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
822 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
824 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
825 the type of the left operand if it pads a self-referential type when
826 the right operand is a constructor.
828 * gcc-interface/lang-specs.h: Fix copyright date.
830 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
832 * gcc-interface/decl.c: Include tree-inline.h.
833 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
834 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
835 * gcc-interface/utils2.c: Include tree-inline.
836 (known_alignment) <CALL_EXPR>: Likewise.
838 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
840 * raise-gcc.c: Include dwarf2.h conditionally.
842 2009-06-29 Tom Tromey <tromey@redhat.com>
844 * raise-gcc.c: Include elf/dwarf2.h.
846 2009-06-27 Laurent GUERBY <laurent@guerby.net>
848 * tb-gcc.c (trace_callback): Add casts to silence warning.
850 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
852 * tb-gcc.c: Fix copyright notice.
854 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
856 * init.c (__gnat_set_globals): Add prototype.
857 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
858 (__gnat_sals_init_using_constructors): Likewise.
859 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
860 (get_block_jmpbuf_decl): Likewise.
861 (gnat_poplevel): Likewise.
862 (merge_sizes): Rename local variable.
863 (copy_type): Likewise.
864 (build_vms_descriptor32): Likewise.
865 (build_vms_descriptor): Likewise.
866 (convert_vms_descriptor64): Likewise.
867 (convert_vms_descriptor32): Likewise.
868 (convert_to_fat_pointer): Likewise.
869 (maybe_unconstrained_array): Likewise.
870 (def_fn_type): Use promoted type with va_arg.
871 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
872 (substitute_in_type): Rename local variable.
873 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
875 2009-06-26 Laurent GUERBY <laurent@guerby.net>
877 * tb-gcc.c (trace_callback): Use char* instead of void*.
878 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
879 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
880 (Attribute_to_gnu): Adjust for above change.
881 (Subprogram_Body_to_gnu): Likewise.
882 * gcc-interface/utils.c (merge_sizes): Rename local variable.
883 (copy_type): Likewise.
884 (build_vms_descriptor32): Likewise.
885 (build_vms_descriptor): Likewise.
886 (convert_vms_descriptor64): Likewise.
887 (convert_vms_descriptor32): Likewise.
888 (convert_to_fat_pointer): Likewise.
889 (maybe_unconstrained_array): Likewise.
890 * gcc-interface/decl.c (substitute_in_type): Likewise.
892 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
894 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
895 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
896 of the upper bound of the index types.
898 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
900 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
901 out common predicate. Use the maximum to compute the upper bound of
902 the index type only when it is not wider than sizetype. Perform the
903 comparison in the index type for the generic expression. Use real
904 precision to decide whether to generate special types for debugging
907 2009-06-26 Matthew Gingell <gingell@adacore.com>
909 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
911 2009-06-26 Vincent Celier <celier@adacore.com>
913 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
916 2009-06-26 Robert Dewar <dewar@adacore.com>
918 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
920 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
922 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
923 correct arguments to create_field_decl. Remove redundant iteration.
924 Rewrite computation of the maximum size.
925 <E_Array_Subtype>: Reorder and simplify handling of special cases.
926 Rewrite computation of the maximum size. Use consistent naming.
927 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
928 comparison order for consistency. Use generic integer node to
929 build the operator and fold the result.
931 2009-06-25 Vincent Celier <celier@adacore.com>
933 * vms_data.ads: Minor comment change
935 2009-06-25 Gary Dismukes <dismukes@adacore.com>
937 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
938 assignment statement to targeting a caller-provided object when the
939 result type is an interface type.
941 * exp_ch6.adb (Expand_Call): Remove redundant test of
942 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
943 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
945 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
946 to OK_For_Limited_Init.
948 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
949 condition so that True is returned for all limited interfaces, not
950 just synchronized ones. Ignore components of an interface type when
951 checking for limited components (such a component can be a parent
954 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
955 (OK_For_Limited_Init): Add type parameter.
957 * sem_ch3.adb (Check_Initialization): Add type in call to
959 (OK_For_Limited_Init): Add new type param in call to
960 OK_For_Limited_Init_In_05.
961 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
962 nonlimited type when the context type is a limited interface. Add type
965 * sem_ch4.adb (Analyze_Allocator): Add type in call to
968 * sem_ch6.adb (Check_Limited_Return): Add type in call to
971 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
973 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
975 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
976 class-wide interface, get the base type before applying Etype, in order
977 to account for class-wide subtypes.
979 2009-06-25 Emmanuel Briot <briot@adacore.com>
981 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
982 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
983 between gnatmake and gprbuild.
984 (Naming_Data): Removed, no longer used
985 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
986 needed locally in one subprogram, no need to store forever in the
988 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
990 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
991 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
992 Spec_Suffix_Id_Of): removed, no longer used.
994 2009-06-25 Javier Miranda <miranda@adacore.com>
996 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
997 types on qualified expression in calls to imported C++ constructors.
999 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
1000 imported C++ constructors.
1002 2009-06-25 Sergey Rybin <rybin@adacore.com>
1004 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
1006 2009-06-25 Vincent Celier <celier@adacore.com>
1008 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
1009 provided, on Windows change all '/' to '\'.
1011 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
1012 used. Minor comment changes
1014 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
1015 Remove_Forbidden_File_Name.
1017 2009-06-25 Quentin Ochem <ochem@adacore.com>
1019 * prj.ads (Unit_Index): Now general access type.
1021 2009-06-25 Pascal Obry <obry@adacore.com>
1023 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
1025 2009-06-25 Emmanuel Briot <briot@adacore.com>
1027 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
1028 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
1029 computed efficiently from the other fields.
1030 (Object_To_Global_Archive): New subprogram
1031 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
1032 (Override_Kind): Fix handling of separates in Ada.
1033 (Create_Mapping_File): Remove duplicate code
1034 (Naming_Data.Implementation_Exception, Specification_Exception):
1035 field removed, since never used.
1036 (Naming_Data.Specs, .Bodies): field removed, since this is only
1037 used while processing the project and is not needed once the tree
1038 is in memory. This brings Naming_Data and Lang_Naming_Data
1039 closer (same content now, but different use still).
1041 2009-06-25 Pascal Obry <obry@adacore.com>
1043 * sem_ch4.adb: Minor reformatting.
1045 * a-strsea.adb: Fix confusion between 'Length and 'Last.
1047 2009-06-25 Ed Schonberg <schonberg@adacore.com>
1049 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
1050 Unchecked_Access): If the context is an interface type, and the prefix
1051 is of the corresponding class-wide type, do not insert a conversion
1052 because the pointer displacement has already taken place, and we must
1053 retain the class-wide type in a dispatching context.
1055 2009-06-25 Emmanuel Briot <briot@adacore.com>
1057 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
1058 the previous source file.
1059 (Create_Mapping): Iterate on sources rather than on units.
1061 2009-06-25 Emmanuel Briot <briot@adacore.com>
1063 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
1064 prj-env.adb, prj-env.ads (Slash): removed, no longer used
1065 (Source_Data): no longer use Path.Name to point to a locally removed
1066 file. Instead we use the field Locally_Removed which is clearer
1068 2009-06-25 Arnaud Charlet <charlet@adacore.com>
1070 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
1072 * sem_maps.adb, sem_maps.ads: Removed, not used.
1074 2009-06-25 Ed Falis <falis@adacore.com>
1076 * s-vxwext-rtp.ads: Add missing declaration
1078 2009-06-25 Matthew Gingell <gingell@adacore.com>
1080 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
1081 speed up unmapped case.
1083 2009-06-25 Vincent Celier <celier@adacore.com>
1085 * prj-nmsc.adb (Check): Change error message for illegal abstract
1088 2009-06-25 Robert Dewar <dewar@adacore.com>
1090 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
1092 2009-06-25 Emmanuel Briot <briot@adacore.com>
1094 * fmap.ads: Add documentation on mapping files
1096 2009-06-25 Robert Dewar <dewar@adacore.com>
1098 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
1101 2009-06-24 Robert Dewar <dewar@adacore.com>
1103 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
1105 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
1109 2009-06-24 Ed Schonberg <schonberg@adacore.com>
1111 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
1112 present when checking whether a call may be interpreted as an indexing
1113 of the result of a call.
1115 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
1116 body for a null procedure on the freeze actions for the procedure, so
1117 that it will be analyzed at the proper place without premature freezing
1120 * sem_ch3.adb (Check_Completion): Code cleanup.
1121 Do not diagnose a null procedure without a body, if previous errors
1122 have disabled expansion.
1124 2009-06-24 Doug Rupp <rupp@adacore.com>
1126 * init.c [VMS] Resignal C$_SIGKILL
1128 2009-06-24 Ed Falis <falis@adacore.com>
1130 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
1131 Define ERROR in body for VxWorks 6 kernel
1133 2009-06-24 Pascal Obry <obry@adacore.com>
1135 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
1136 in [Send/Receive]_Socket.
1138 2009-06-24 Emmanuel Briot <briot@adacore.com>
1140 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1141 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
1142 to several subprograms.
1143 (Source_Data.Other_Part): Removed, since can be computed from the
1145 (Other_Part): New subprogram.
1147 2009-06-24 Emmanuel Briot <briot@adacore.com>
1149 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
1150 the full base name of the file when the suffix doesn't start with a '.'.
1152 2009-06-24 Vincent Celier <celier@adacore.com>
1154 * prj-nmsc.adb (Check): A project declared abstract is legal if no
1155 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
1158 2009-06-24 Robert Dewar <dewar@adacore.com>
1160 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
1161 prj-env.adb: Minor reformatting
1163 2009-06-24 Ed Falis <falis@adacore.com>
1165 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
1166 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
1167 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
1168 support for VxWorks SMP.
1170 * gcc-interface/Make-lang.in: Update dependencies
1172 2009-06-24 Emmanuel Briot <briot@adacore.com>
1174 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
1175 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
1177 (Source_Data.Lang_Kind): Removed, since it duplicates information
1178 already available through Language.Config.
1179 (Source_Data.Compile): Removed, since information is already available
1180 through the language.
1181 (Is_Compilable): New subprogram.
1182 (Source_Data.Dependency): Removed, since already available through
1184 (Source_Data.Object_Exist, Object_Linked): Removed since available
1185 through the language already.
1186 (Unit_Data.File_Names): Is now also set in multi_language mode, to
1187 bring the two modes closer in the resulting data structures.
1188 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
1189 just the name that would point into a hash table.
1190 (Get_Language_From_Name): New subprogram.
1192 2009-06-24 Javier Miranda <miranda@adacore.com>
1194 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
1195 visible through limited-with context clauses. In addition, avoid an
1196 extra tag check that is not required when the class-wide
1197 designated types of the operand and target types are
1199 (Tagged_Membership): Handle entities from the limited view.
1201 2009-06-24 Emmanuel Briot <briot@adacore.com>
1203 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
1204 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
1205 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
1206 different vocabularies for similar concepts (Impl/Body_Part and
1207 Spec/Specification).
1208 (Unit_Data): now points directly to a Source_Id, rather than duplicating
1209 some of the information in File_Name_Data. This also saves a bit of
1210 memory. However, since we are now using a pointer we need to test
1211 for null explicitly in several places of the code
1213 2009-06-24 Javier Miranda <miranda@adacore.com>
1215 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
1216 from processing the type conversion when the node is
1217 replaced by an N_Raise_Program_Error node.
1219 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
1221 * sem_ch6.adb (Designates_From_With_Type): New routine.
1222 (Process_Formals): Since anonymous access types are no longer flagged
1223 as from with types, traverse the designated type to determine whether
1224 it is coming from a limited view.
1226 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
1227 (Full_Designated_Type): Use Available_View to extract the non-limited /
1228 full view of a type.
1230 2009-06-24 Robert Dewar <dewar@adacore.com>
1232 * exp_ch6.adb: Minor reformatting
1234 * layout.adb: Minor reformatting
1236 * make.adb: Minor reformatting
1238 2009-06-24 Thomas Quinot <quinot@adacore.com>
1240 * sem_ch10.adb: Minor code reorganization.
1242 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
1244 * ttypes.ads: Minor editing.
1246 2009-06-24 Robert Dewar <dewar@adacore.com>
1248 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
1249 in deciding to do call-by-copy code.
1251 2009-06-24 Vincent Celier <celier@adacore.com>
1253 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
1254 check if an externally built library file is more current than the
1257 2009-06-23 Olivier Hainque <hainque@adacore.com>
1259 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
1260 c-common.c and populate in gnat_internal_attribute_table.
1262 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1264 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
1265 Available_View only when designated type of an anonymous access type
1268 2009-06-23 Robert Dewar <dewar@adacore.com>
1270 * sem_ch10.adb: Minor reformatting
1272 * ali.ads: Mino reformatting.
1274 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
1275 turning off inlining if ASIS mode active).
1277 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
1278 This belongs in gnat1drv.adb after switches are scanned.
1280 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
1282 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
1283 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
1284 when dealing with class-wide types. Detect a legal shadow entity and
1285 retrieve its non-limited view.
1287 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
1288 subprogram to top package level from Intall_Limited_Withed_Unit.
1289 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
1290 Add check which prevents the installation of a limited view if the
1291 non-limited view is already visible through a with clause.
1292 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
1293 legal shadow entity which may occur in subprogram formals of anonymous
1296 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
1298 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
1299 From_With_Type from the designated type to the generated anonymous
1300 access type. Remove associated comment.
1302 * sem_res.adb Add with and use clauses for Sem_Ch10.
1303 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
1304 non-limited view. Since the shadow entity may replace a regular
1305 incomplete type, return the available full view.
1307 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1309 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
1310 incomplete type declarations. Previous code was potentially quadratic
1311 in the number of visible declarations in any package appearing in a
1312 limited_with_clause.
1314 2009-06-23 Robert Dewar <dewar@adacore.com>
1316 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
1317 xref_lib.adb: Minor reformatting
1319 2009-06-23 Robert Dewar <dewar@adacore.com>
1321 * a-stzhas.adb: Provide dummy body to avoid build problems with old
1322 versions which did have a body for this unit.
1324 2009-06-23 Vincent Celier <celier@adacore.com>
1326 * prj-attr.adb: Attribute names Initial_Required_Switches and
1327 Final_Required_Switches changed to Leading_Required_Switches and
1328 Trailing_Required_Switches.
1330 * prj-nmsc.adb (Process_Compiler): Attribute names
1331 Initial_Required_Switches and Final_Required_Switches changed to
1332 Leading_Required_Switches and Trailing_Required_Switches.
1334 * prj.ads (Language_Config): Component Initial_Required_Switches and
1335 Final_Required_Switches changed to Leading_Required_Switches and
1336 Trailing_Required_Switches.
1338 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
1339 Final_Required_Switches; add standard names Leading_Required_Switches
1340 and Trailing_Required_Switches.
1342 2009-06-23 Thomas Quinot <quinot@adacore.com>
1344 * prj-conf.adb: Minor reformatting
1346 * xref_lib.adb: Minor cleanup
1348 2009-06-23 Emmanuel Briot <briot@adacore.com>
1350 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
1351 prj-conf.ads (Check_Configuration): New parameter
1352 Compiler_Driver_Mandatory.
1354 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1356 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
1357 context of the current unit has an inline pragma, the instance is not
1358 rewritten as the declaration of the package wrapper. Handle both
1359 possibilities when retrieving the visible subprogram that renames the
1360 instantiation itself.
1362 2009-06-23 Javier Miranda <miranda@adacore.com>
1364 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
1365 designated types referencing entities from the limited view.
1367 2009-06-23 Robert Dewar <dewar@adacore.com>
1369 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
1371 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
1374 * prj-conf.ads: Minor reformatting
1376 * prj-conf.adb: Minor reformatting
1378 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
1380 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
1381 to correspond to the log format that gnatmem now expects.
1383 2009-06-23 Vincent Celier <celier@adacore.com>
1385 * prj-attr.adb: New attributes Initial_Required_Switches,
1386 Final_Required_Switches and Object_File_Switches
1388 * prj-nmsc.adb (Process_Compiler): Process new attributes
1389 Name_Final_Required_Switches, Name_Initial_Required_Switches and
1390 Name_Object_File_Switches.
1392 * prj.ads (Language_Config): New component
1393 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
1394 Compiler_Final_Required_Switches and Object_File_Switches.
1396 * snames.ads-tmpl: New standard names Initial_Required_Switches,
1397 Final_Required_Switches and Object_File_Switches
1399 2009-06-23 Pascal Obry <obry@adacore.com>
1401 * s-strhas.adb, s-strhas.ads: Minor reformatting.
1403 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1405 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
1406 not indicate that the enclosing unit needs a body.
1408 2009-06-23 Emmanuel Briot <briot@adacore.com>
1410 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
1412 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1414 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
1415 primitive equality include it with its source name even if the
1416 operation is currently invisible, to make sure that the corresponding
1417 slot in the dispatch table is reserved for the internal equality
1418 subsequently generated during expansion.
1420 2009-06-23 Matthew Gingell <gingell@adacore.com>
1422 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
1424 2009-06-22 Jose Ruiz <ruiz@adacore.com>
1426 * sysdep.c (__gnat_localtime_tzoff for RTX):
1427 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
1428 GetTimeZoneInformation instead.
1430 2009-06-22 Robert Dewar <dewar@adacore.com>
1432 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
1434 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1436 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
1437 instantiations declared in a previous generic package body.
1439 2009-06-22 Robert Dewar <dewar@adacore.com>
1441 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
1442 restriction No_Direct_Boolean_Operators.
1444 2009-06-22 Thomas Quinot <quinot@adacore.com>
1446 * bindusg.adb: Minor fixes to gnatbind usage message
1448 * sem_eval.adb: Minor reformatting
1450 2009-06-22 Javier Miranda <miranda@adacore.com>
1452 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
1453 freezing point the check on the use of abstract types in object
1454 declarations. Done to allow the declaration of C++ imported variables
1455 or constants whose type corresponds with an imported C++ classes for
1456 which the constructor is not imported.
1458 2009-06-22 Thomas Quinot <quinot@adacore.com>
1460 * sem_ch6.adb: Minor reformatting
1462 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1464 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
1465 component is constrained with an expression rather than with a
1466 discriminant of the enclosing type, use that expression when building
1467 the call to default-initialize the component, when the call is part of
1468 an aggregate with box initialization.
1470 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1472 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
1473 unconditional rather than a style check, because a formal name out of
1474 order is suspicious.
1476 2009-06-22 Vincent Celier <celier@adacore.com>
1478 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
1479 creating a directory automatically.
1481 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
1483 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
1484 untagged derived type, add a hidden component for every constrained
1485 discriminant of the parent type to keep record layout consistent.
1487 2009-06-22 Thomas Quinot <quinot@adacore.com>
1489 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
1492 2009-06-22 Matthew Gingell <gingell@adacore.com>
1494 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
1495 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
1496 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
1497 a-swuwha.adb: New unit System.String_Hash.
1498 Refactor redundant cut and pasted hash functions with instances of a
1499 new generic hash function.
1500 Implement a new string hashing algorithm which appears in testing to
1501 be move effective than to previous approach.
1503 2009-06-22 Ed Falis <falis@adacore.com>
1505 * sysdep.c: remove include for nfsLib.h and an NFS specific error
1506 message for VxWorks 653 vThreads: not supported by the OS.
1508 * gsocket.h: disable sockets for VxWorks 653 vThreads.
1510 2009-06-22 Robert Dewar <dewar@adacore.com>
1512 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
1514 2009-06-22 Robert Dewar <dewar@adacore.com>
1516 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
1519 * freeze.adb: Minor comment updates
1521 * s-valrea.adb (Bad_Based_Value): New procedure
1522 (Scan_Real): Raise exceptions with messages
1524 2009-06-22 Matthew Gingell <gingell@adacore.com>
1526 * adaint.h: Complete previous change.
1528 2009-06-22 Thomas Quinot <quinot@adacore.com>
1530 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
1532 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1534 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
1535 enabled, emit warning when a non-controlling argument of the overriding
1536 operation appears out of place vis-a-vis of the formal of the
1537 overridden operation.
1539 2009-06-22 Vincent Celier <celier@adacore.com>
1541 * gnatcmd.adb (Check_Files): Close temporary files after all file names
1542 have been written into it.
1544 2009-06-22 Matthew Gingell <gingell@adacore.com>
1546 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
1549 2009-06-22 Thomas Quinot <quinot@adacore.com>
1551 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
1552 view of the root type is visible at the point of the call.
1554 2009-06-22 Pat Rogers <rogers@adacore.com>
1556 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
1558 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
1560 * freeze.adb: Add comments.
1562 2009-06-21 Thomas Quinot <quinot@adacore.com>
1564 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
1565 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
1566 Factor out code to new subprogram...
1567 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
1568 for a default initialized variable.
1569 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
1570 entity that has an associated freeze node.
1571 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
1572 If there is an init call for the object, defer it to the object freeze
1574 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
1575 name clash with new subprogram introduced in Exp_Util.
1577 2009-06-21 Robert Dewar <dewar@adacore.com>
1579 * einfo.ads: Minor reformatting
1581 2009-06-21 Ed Falis <falis@adacore.com>
1583 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
1585 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
1587 * einfo.ads: Update comments.
1589 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
1591 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
1592 where the controlling formal is of private class-wide type whose
1593 completion is a synchronized type can be converted into direct calls.
1595 2009-06-21 Vincent Celier <celier@adacore.com>
1597 * gnatcmd.adb (Check_Files): When all sources of the project are to be
1598 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
1599 of sources using -files=, so that the distinction can be made by the
1600 tool of a call with no source (to display the usage) from a call with
1601 a project file that contains no source.
1603 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
1605 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
1606 case of VM convention arrays.
1608 2009-06-20 Robert Dewar <dewar@adacore.com>
1610 * a-nudira.adb: Minor reformatting
1612 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1614 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
1615 expressions (possibly from a parent type) indicate that the scope of
1616 the new itypes is the initialization procedure being built.
1618 2009-06-20 Robert Dewar <dewar@adacore.com>
1620 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
1621 Needs_64, and now computed without anomolies for some dynamic types.
1623 2009-06-20 Thomas Quinot <quinot@adacore.com>
1625 * sem_prag.adb: Minor reformatting
1627 * exp_disp.ads: Minor reformatting
1629 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1631 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
1632 function call is a legal expression to initialize a limited object.
1634 * exp_ch3.adb: Rename various freeze operations that perform expansion
1635 actions, to prevent confusion with subprograms in the freeze package.
1637 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1639 * sem.adb (Walk_Library_Units): Check instantiations first.
1641 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
1642 private primitive if it is a function with a controlling result that is
1643 a type extension with progenitors.
1645 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
1646 a primitive operation of a synchronized tagged type that has a
1649 2009-06-20 Thomas Quinot <quinot@adacore.com>
1651 * einfo.ads: Fix typo.
1653 2009-06-20 Ed Falis <falis@adacore.com>
1655 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
1657 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1659 * gcc-interface/trans.c (emit_check): Do not wrap up the result
1661 (protect_multiple_eval): Always protect complex expressions.
1663 2009-06-19 Emmanuel Briot <briot@adacore.com>
1665 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
1666 make sure we always return a name ending with a path separator.
1668 2009-06-19 Javier Miranda <miranda@adacore.com>
1670 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
1671 Save and restore the visibility of the parent when installed.
1673 2009-06-19 Jose Ruiz <ruiz@adacore.com>
1675 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
1676 by Common which contains all these fields.
1678 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
1679 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
1680 Remove code duplication in this package by means of calling the
1681 equivalent code in s-taprob.
1683 2009-06-19 Robert Dewar <dewar@adacore.com>
1685 * a-einuoc.ads: Minor reformatting
1687 2009-06-19 Ed Falis <falis@adacore.com>
1689 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
1690 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
1692 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1694 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
1696 2009-06-19 Robert Dewar <dewar@adacore.com>
1698 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
1701 * checks.adb (Determine_Range): Move the test for generic types later.
1703 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
1705 (Eval_Relational_Op): Fold more cases including string compares
1707 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
1710 2009-06-19 Robert Dewar <dewar@adacore.com>
1712 * sem_type.ads, sem_ch12.adb: Minor reformatting
1714 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
1716 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1718 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
1719 primitive operation of a rivate extension whose controlling argument
1720 is an out parameter.
1722 * sem.adb (Walk_Library_Units): exclude generic package declarations
1725 2009-06-19 Thomas Quinot <quinot@adacore.com>
1727 * i-vxwoio.ads: Add comments
1729 2009-06-19 Thomas Quinot <quinot@adacore.com>
1731 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1732 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
1733 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
1734 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
1735 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
1736 Thin_Common.Socket_Ioctl.
1737 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
1738 __gnat_socket_ioctl.
1739 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
1740 argument after the file descriptor and request code.
1742 2009-06-19 Robert Dewar <dewar@adacore.com>
1744 * checks.adb: Minor reformatting
1746 2009-06-19 Jose Ruiz <ruiz@adacore.com>
1748 * env.c (__gnat_environ): RTX does not support this functionality.
1750 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1752 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
1753 traverse, to account for front-end inlining and instantiations in a
1754 spec or in the main unit.
1756 2009-06-19 Robert Dewar <dewar@adacore.com>
1758 * checks.adb (Determine_Range): Do not attempt to get range of generic
1761 2009-06-19 Sergey Rybin <rybin@adacore.com>
1763 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
1764 gnatmetric option for generating the schema file for gnatmetric XML
1765 output. Add corresponding VMS qualifier.
1767 2009-06-19 Robert Dewar <dewar@adacore.com>
1769 * g-cgi.adb: Minor reformatting
1771 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1773 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
1774 signal code for SIGFPE and raise Program_Error for SIGILL.
1776 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
1778 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1780 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
1781 generic package if there is a visibility candidate that is declared in
1784 2009-06-18 Olivier Hainque <hainque@adacore.com>
1786 * system-aix64.ads: New file.
1787 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
1788 64bit system.ads for ppc64 multilib variants.
1790 2009-06-16 Robert Dewar <dewar@adacore.com>
1791 Olivier Hainque <hainque@adacore.com>
1793 Relax constraints on Machine_Attribute argument types:
1794 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
1796 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
1797 * gcc-interface/decl.c (prepend_attributes): Accept static
1798 expressions of any type as attribute arguments, not only string
1800 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
1801 the relaxation of the restriction on the Info argument type.
1803 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
1805 * gcc-interface/utils.c (record_builtin_type): Pass location
1806 argument to build_decl.
1807 (create_type_stub_decl): Same.
1808 (create_type_decl): Same.
1809 (create_var_decl_1): Same.
1810 (create_field_decl): Same.
1811 (create_param_decl): Same.
1812 (create_label_decl): Same.
1813 (create_subprog_decl): Same.
1814 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
1815 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
1816 argument to create_artificial_label.
1817 (Loop_Statement_to_gnu): Same.
1818 (Subprogram_Body_to_gnu): Same.
1819 (gnat_gimplify_stmt): Same.
1821 2009-06-11 Richard Henderson <rth@redhat.com>
1823 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
1826 2009-06-11 Ed Schonberg <schonberg@adacore.com>
1828 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
1829 accessibiliy check on access_to_subprogram in the context of an
1830 anonymous access that is not an access parameter.
1832 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
1834 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
1836 2009-06-11 Quentin Ochem <ochem@adacore.com>
1838 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
1839 comments for message handled by GPS.
1841 2009-06-11 Matthew Gingell <gingell@adacore.com>
1843 * adaint.c: Use fopen64 instead of fopen on platforms where we know
1846 2009-06-11 Pascal Obry <obry@adacore.com>
1848 * g-cgi.ads: Fix comment typo.
1850 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
1852 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
1854 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
1855 a reference to the original type for the type of the field of the
1857 (maybe_pad_type): Likewise.
1859 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
1860 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
1861 Pass correctly typed arguments to create_field_decl.
1862 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
1863 case of contrained discriminants as well. Use the padded base type
1864 in the other case as well. Rename temporary variable. Tweak test.
1865 Factor common access pattern. Set GNU_SIZE only once.
1867 2009-06-09 Olivier Hainque <hainque@adacore.com>
1869 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
1870 helper for build_call_alloc_dealloc with arguments to be interpreted
1871 identically. Process the case where a GNAT_PROC to call is provided.
1872 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
1873 and return an allocator for DATA_SIZE bytes aimed at containing a
1874 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
1875 DATA_TYPE alignments greater than what the latter offers.
1876 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
1877 release a DATA_TYPE object designated by DATA_PTR using the
1878 __gnat_free entry point.
1879 (build_call_alloc_dealloc): Expect object data type instead of naked
1880 alignment constraint. Use the new helpers.
1881 (build_allocator): Remove special processing for the super-aligned
1882 case, now handled by build_call_alloc_dealloc. Pass data
1883 type instead of the former alignment argument, as expected by the new
1885 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
1887 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
1888 Remove special processing for the super-aligned case, now handled
1889 by build_call_alloc_dealloc. Pass data type instead of the former
1890 alignment argument, as expected by the new interface.
1892 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
1894 * lib-writ.adb (flag_compare_debug): Import.
1895 (Write_ALI): Skip during -fcompare-debug-second.
1897 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1899 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1900 adjusting the discriminant nodes in an extension, use the full view
1901 of the parent subtype if it is of a private kind.
1903 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
1906 _Parent field, if any, to the record before adding the other fields.
1907 <E_Record_Subtype>: Put the _Controller field before the other fields
1908 except for the _Tag or _Parent fields.
1909 (components_to_record): Likewise. Retrieve the _Parent field from the
1912 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1914 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
1915 remove unused parameter and simplify.
1916 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
1917 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
1918 as context for all discriminants. Fix formatting nits.
1919 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
1920 before Discriminant_Constraint. Adjust for above renaming. Do not
1921 set GNU_TYPE more than once.
1922 (elaborate_entity): Test Has_Discriminants on the entity and use
1923 Implementation_Base_Type.
1924 (components_to_record): Rename component_list to gnat_component_list.
1925 Retrieve the _Parent field from the list. Fix nits in comments.
1926 Clarify logic in loop. Pass correct arguments to create_field_decl.
1928 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
1930 * gcc-interface/Make-lang.in: Fix formatting.
1932 2009-06-01 Olivier Hainque <hainque@adacore.com>
1933 Eric Botcazou <ebotcazou@adacore.com>
1935 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
1936 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
1937 on the result if at least one of the input fields couldn't be output
1938 as a static constant any more.
1940 2009-06-01 Olivier Hainque <hainque@adacore.com>
1941 Eric Botcazou <ebotcazou@adacore.com>
1943 * gcc-interface/utils2.c (gnat_build_constructor): Factor
1944 out code. Use initializer_constant_valid_for_bitfield_p and
1945 CONSTRUCTOR_BITFIELD_P for bit-fields.
1947 2009-05-26 Ian Lance Taylor <iant@google.com>
1949 * gcc-interface/Makefile.in (COMPILER): Define.
1950 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
1951 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
1952 (seh_init.o, tracebak.o): Likewise.
1953 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
1954 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
1955 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
1956 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
1957 (ada/utils2.o): Likewise.
1959 2009-05-24 Olivier Hainque <hainque@adacore.com>
1961 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
1962 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
1963 Add -auxbase variants to the list of recognized internal switches.
1964 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
1966 * lib.ads: Make comment on internal GCC switches more general.
1967 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
1970 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1972 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
1974 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1976 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
1979 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1981 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
1982 original type because of the alignment when there is an address clause.
1984 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
1986 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
1987 discriminants affect the shape of the subtype, retrieve the GCC type
1988 directly from the original field if the GNAT types for the field and
1989 the original field are the same.
1991 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
1993 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
1995 (TYPE_RM_VALUES): Likewise.
1996 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
1997 (SET_TYPE_RM_SIZE): New macro.
1998 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
1999 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
2000 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
2001 * gcc-interface/gigi.h (create_range_type): Declare.
2002 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
2003 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
2004 <E_Signed_Integer_Subtype>: Build a regular integer type first and
2005 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2006 <E_Floating_Point_Subtype>: Build a regular floating-point type first
2007 and then set the RM bounds.
2008 <E_Array_Type>: Use create_range_type instead of build_range_type.
2009 <E_Array_Subtype>: Build a regular integer type first and then set
2010 the RM bounds for the extra subtype.
2011 <E_String_Literal_Subtype>: Use create_range_type instead of
2013 <all>: Set the RM bounds for enumeration types and the GCC bounds for
2014 floating-point types.
2015 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
2016 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
2017 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2018 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
2019 types and with RM bounds for subtypes.
2020 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
2021 (gnat_print_type) <REAL_TYPE>: New case.
2022 <ENUMERAL_TYPE>: Fall through to above case.
2023 (gnat_get_subrange_bounds): New function.
2024 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
2025 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
2026 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
2027 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
2028 (create_range_type): New function.
2029 (create_param_decl): Build a regular integer type first and then set
2030 the RM bounds for the extra subtype.
2031 (unchecked_convert): Remove kludge for 'Valid.
2032 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
2033 the index to sizetype instead of TYPE_DOMAIN.
2035 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
2037 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
2038 parameter and move check for static expression to...
2039 (elaborate_expression): ...here. Adjust call to above function.
2040 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
2041 in calls to elaborate_expression.
2042 (elaborate_entity): Likewise.
2043 (substitution_list): Likewise.
2044 (maybe_variable): Fix formatting.
2045 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
2047 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
2049 2009-05-07 Arnaud Charlet <charlet@adacore.com>
2051 * gcc-interface/Make-lang.in: Update dependencies.
2053 2009-05-06 Laurent GUERBY <laurent@guerby.net>
2055 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
2056 Define sa_handler_pos.
2057 * s-osinte-linux.ads: Use it.
2058 * s-linux-mipsel.ads: New.
2059 * system-linux-mips64el.ads: New.
2060 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
2063 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2065 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
2066 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
2067 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
2068 (Tagged_Type_Expansion): New flag.
2069 Replace use of VM_Target related to tagged types expansion by
2070 Tagged_Type_Expansion, since tagged type expansion is not necessarily
2071 linked to VM targets.
2073 2009-05-06 Robert Dewar <dewar@adacore.com>
2075 * sem_attr.adb: Add processing for Standard'Compiler_Version
2077 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
2079 (Expr_First_Char): Add ??? comment that paren skipping needs work
2080 (Expr_Last_Char): Add ??? comment that paren skipping needs work
2082 * exp_attr.adb: Add processing for Compiler_Version
2084 * sem_attr.adb: New attribute Compiler_Version
2086 * snames.ads-tmpl: Add entries for Compiler_Version attribute
2088 * gnat_rm.texi: Document Compiler_Version attribute
2090 2009-05-06 Robert Dewar <dewar@adacore.com>
2092 * errout.adb: Minor reformatting
2094 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
2095 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2096 styleg.adb: Add stylized comments to error messages that are included
2097 in the codefix circuitry of IDE's such as GPS.
2099 2009-05-06 Sergey Rybin <rybin@adacore.com>
2101 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
2102 new form of the rule parameter that allows to specify the suffix for
2103 access-to-access type names.
2105 2009-05-06 Robert Dewar <dewar@adacore.com>
2107 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
2108 out parameter assigned when exception handlers are present.
2110 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
2111 assignments on exit.
2113 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
2114 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
2115 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
2116 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
2117 messages that are included in the codefix circuitry of IDE's such as
2120 * sinput.ads, sinput.adb (Expr_First_Char): New function
2121 (Expr_Last_Char): New function
2123 2009-05-06 Sergey Rybin <rybin@adacore.com>
2125 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
2126 Add formal definition for extra exit point metric
2128 2009-05-06 Pascal Obry <obry@adacore.com>
2130 * adaint.c: Support for setting attributes on unicode filename on
2133 2009-05-06 Robert Dewar <dewar@adacore.com>
2135 * sem_warn.adb: Minor reformatting
2137 2009-05-06 Javier Miranda <miranda@adacore.com>
2139 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
2140 not have discriminants or components with default expressions.
2141 (Analyze_Pragma): For pragma CPP_Class check that imported types
2142 have no discriminants and components have no default expression.
2144 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
2145 class-wide types in the expression of a record component association.
2147 2009-05-06 Sergey Rybin <rybin@adacore.com>
2149 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
2151 * gnat_ugn.texi: Add description for the new extra exit points metric
2152 (gnatmetric section).
2154 2009-05-06 Robert Dewar <dewar@adacore.com>
2156 * s-fileio.adb: Minor comment update
2158 * sem_ch8.adb: Minor reformatting
2160 * exp_ch3.adb: Update comments.
2162 2009-05-06 Tristan Gingold <gingold@adacore.com>
2164 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
2166 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2168 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
2169 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
2171 * gcc-interface/Make-lang.in: Update dependencies
2173 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2175 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
2176 change. The context clause of a generic instance declaration must be
2177 preserved until the end of the compilation, because it may have to be
2178 installed/removed repeatedly.
2179 The latest change to sem.adb ensures that the context of both spec and
2180 body of an instance is traversed before the instance itself, making
2181 this patch redundant.
2183 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2185 * sem_aggr.adb: Fix typo.
2187 2009-05-06 Thomas Quinot <quinot@adacore.com>
2189 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
2190 declaration, do not adjust if the declaration is to be rewritten into
2193 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2195 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
2198 2009-05-06 Bob Duff <duff@adacore.com>
2200 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
2201 otherwise the compiler would be allowed to optimize away the cleanup
2204 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2206 * gnat_ugn.texi: Fix typo.
2208 2009-05-06 Thomas Quinot <quinot@adacore.com>
2210 * g-debuti.adb: Minor reformatting
2212 * exp_attr.adb: Minor reformatting
2214 2009-05-06 Robert Dewar <dewar@adacore.com>
2216 * sem_aggr.adb: Minor reformatting.
2218 * g-socthi-vms.adb: Minor reformatting
2220 2009-05-06 Bob Duff <duff@adacore.com>
2222 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
2223 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
2225 2009-05-06 Bob Duff <duff@adacore.com>
2227 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
2230 2009-05-06 Javier Miranda <miranda@adacore.com>
2232 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
2233 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
2234 extension aggregates.
2235 (Resolve_Record_Aggregate): Add support for C++ constructors in
2236 extension aggregates.
2238 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
2239 constructors in extension aggregates.
2241 2009-05-06 Robert Dewar <dewar@adacore.com>
2243 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
2246 2009-05-06 Thomas Quinot <quinot@adacore.com>
2248 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
2249 packed type, since on OpenVMS, struct msghdr is packed.
2251 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2253 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2254 call returning an unconstrained composite value, create the proper
2255 subtype for it, as is done for object dclarations with unconstrained
2256 nominal subtypes. Perform this transformation regarless of whether
2257 call comes from source.
2259 2009-05-06 Robert Dewar <dewar@adacore.com>
2261 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
2265 Add documentation for pragma Implicit_Packing applied to record
2268 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2270 * sem.adb (Walk_Library_Items): Place all with_clauses of an
2271 instantiation on the spec, because late instance bodies may generate
2272 with_clauses for the instance body but are inserted in the instance
2275 2009-05-06 Emmanuel Briot <briot@adacore.com>
2277 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
2278 support for returning the directory even if it doesn't exist. This is
2279 used for the object directory, since we are always setting it to a
2280 non-null value, and we should set it to an absolute name rather than a
2281 relative name for the sake of external tools that might depend on it.
2282 (Check_Library_Attributes): When Project.Library_Dir is known, check
2283 that the directory exists.
2285 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2287 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
2288 reference is an implicit dereference, do not freeze the designated type
2289 if within a default expression or when preanalyzing a pre/postcondtion.
2291 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2293 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2294 call returning an unconstrained composite value, create the proper
2295 subtype for it, as is done for object dclarations with unconstrained
2298 2009-05-06 Robert Dewar <dewar@adacore.com>
2300 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
2303 * freeze.adb: Minor reformatting
2305 2009-05-06 Thomas Quinot <quinot@adacore.com>
2307 * sem_ch3.adb (Access_Type_Declaration): An access type whose
2308 designated type is a limited view from a limited with clause (flagged
2309 From_With_Type) is not itself such a limited view.
2311 2009-05-06 Emmanuel Briot <briot@adacore.com>
2313 * prj-nmsc.adb: Remove unused variable.
2315 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
2316 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
2317 makeutl.ads, since not all users of prj.ads need this.
2319 2009-05-06 Javier Miranda <miranda@adacore.com>
2321 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
2322 constructor in case of aggregates whose type is a CPP_Class type.
2324 2009-05-06 Robert Dewar <dewar@adacore.com>
2326 * sem_ch13.adb: Minor comment additions
2328 * osint.adb: Minor reformatting
2330 2009-05-06 Pascal Obry <obry@adacore.com>
2332 * initialize.c: On Windows, keep full pathname to expanded command
2335 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2337 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
2338 an aggregate with box default is of a discriminated private type, do
2339 not build a subaggregate for it.
2340 A proper call to the initialization procedure is generated for it.
2342 2009-05-06 Thomas Quinot <quinot@adacore.com>
2344 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
2345 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
2346 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
2347 use standard array code for Standard.String.
2348 (Exp_Dist): Bump PolyORB s-parint API version to 3.
2349 (Rtsfind): New entities TA_Std_String, Unbounded_String.
2351 2009-05-06 Robert Dewar <dewar@adacore.com>
2353 * g-comlin.ads: Minor reformatting
2355 * xoscons.adb: Minor reformatting
2357 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2359 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
2360 Underlying_Type before retrieving the type definition for gathering
2361 components, to account for the case where the type is private.
2363 2009-05-06 Tristan Gingold <gingold@adacore.com>
2365 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
2367 2009-05-06 Thomas Quinot <quinot@adacore.com>
2369 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2370 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
2371 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
2372 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
2373 Windows versions): Fix incorrect base
2374 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
2375 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
2376 System.Address for the To parameter instead of a Sockaddr_In_Access, to
2377 achieve independance from AF_INET family, and also to allow this
2378 parameter to be retrieved from a Msghdr for the Windows case where
2379 these routines are used to implement C_Sendmsg and C_Recvmsg.
2381 2009-05-06 Bob Duff <duff@adacore.com>
2383 * g-expect.adb, g-expect.ads: Minor reformatting
2385 * sdefault.ads: Minor comment fix
2387 * g-expect-vms.adb: Minor reformatting
2389 * table.ads, table.adb (Append_All): New convenience procedure for
2390 appending a whole array.
2392 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
2393 box message. Call Osint.Dump_Source_File_Names to print out the file
2394 list, instead of rummaging around in various data structures.
2396 * debug.adb: New switch -gnatd.n, to print source file names as they
2399 * alloc.ads: Add parameters for Osint.File_Name_Chars.
2401 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
2402 out source file names during a "bug box".
2403 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
2404 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
2405 If it's not part of the runtimes, store it for later printing by
2406 Dump_Source_File_Names.
2408 2009-05-06 Javier Miranda <miranda@adacore.com>
2410 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
2411 documentation and add reference to the GNAT user guide for further
2414 2009-05-06 Javier Miranda <miranda@adacore.com>
2416 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
2417 also wrong examples that use extension aggregates.
2419 2009-05-06 Albert Lee <lee@adacore.com>
2421 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
2422 of Msg_Iovlen_T for VMS.
2424 2009-05-04 Laurent GUERBY <laurent@guerby.net>
2427 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
2429 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2431 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
2432 box-defaulted operator in an instantiation, when the type of the
2433 operands is not directly visible.
2435 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2437 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
2438 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
2439 analysis of the ancestor part. Remove prohibition against limited
2440 interpretations of the ancestor expression in the case of Ada 2005.
2441 Revise error message in overloaded case, adding a message to cover
2444 2009-04-29 Thomas Quinot <quinot@adacore.com>
2446 * xoscons.adb: Minor reformatting
2448 2009-04-29 Bob Duff <duff@adacore.com>
2450 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
2451 attribute_definition_clauses for the following attributes when the
2452 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
2453 Storage_Size, Write. Otherwise, we get spurious errors (for example,
2454 missing Read attribute on remote types).
2456 * gnat_ugn.texi: Document the change, and add a stern warning.
2458 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2460 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
2461 disabled not just for the current scope, but for the innermost dynamic
2464 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2466 * gcc-interface/Make-lang.in: Update dependencies
2468 2009-04-29 Vincent Celier <celier@adacore.com>
2470 * prj-part.adb: Minor comment update
2472 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2474 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
2475 box-initialized records with discriminated subcomponents that are
2476 constrained by discriminants of enclosing components. New subsidiary
2477 procedures Add_Discriminant_Values, Propagate_Discriminants.
2479 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2481 * g-socket.adb: Code clean up.
2483 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2485 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
2486 function entity, to cover the case of a parameterless function call
2487 that has not been resolved.
2489 2009-04-29 Robert Dewar <dewar@adacore.com>
2491 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
2492 reformatting and comment updates.
2494 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2496 * gnat_ugn.texi: Update some documentation about interfacing with C++
2497 Mention -fkeep-inline-functions.
2499 * gnat_ugn.texi: Minor edits
2501 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2503 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
2504 for a defaulted component of an enclosing aggregate, inherit the type
2505 from the component declaration of the enclosing type.
2507 2009-04-29 Albert Lee <lee@adacore.com>
2509 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
2510 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
2511 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
2512 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
2513 Relocate the Msghdr record type from GNAT.Sockets.Thin to
2514 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
2515 type for the Msg_Iovlen field.
2517 2009-04-29 Vincent Celier <celier@adacore.com>
2519 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
2520 Source_File_Index_Table entries for the source, to avoid crash when
2523 * gnatcmd.adb (Test_If_Relative_Path): Use
2524 Makeutl.Test_If_Relative_Path.
2526 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
2527 Including_RTS is True.
2529 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
2530 Including_RTS defaulted to False.
2532 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
2535 2009-04-29 Javier Miranda <miranda@adacore.com>
2537 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
2539 2009-04-29 Javier Miranda <miranda@adacore.com>
2541 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
2542 associated with dyamically tagged expressions if the expression
2543 initializing a tagged type corresponds with a non default CPP
2545 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
2546 of limited type objects.
2548 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
2549 when a CPP constructor is called in an assignment. Disable also the
2550 error message associated with dyamically tagged expressions if the
2551 exporession initializing a tagged type corresponds with a non default
2554 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
2555 non-default C++ constructors.
2557 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
2559 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
2560 non-default constructors.
2561 (Init_Proc): Add support for non-default constructors.
2563 * exp_disp.adb (Set_Default_Constructor): Removed.
2564 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
2565 but extending its functionality to handle non-default constructors.
2567 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
2568 constructors. Minor code cleanup removing unrequired label and goto
2571 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
2573 (Build_Init_Statements): Add support for non-default constructors.
2574 (Expand_N_Object_Declaration): Add support for non-default constructors.
2575 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
2576 to Set_CPP_Constructors.
2578 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
2579 non-default constructors.
2580 Required to handle its use in build-in-place statements.
2582 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
2583 pragma for non-default C++ constructors and the new compiler support
2584 that allows the use of these constructors in record components, limited
2585 aggregates, and extended return statements.
2587 2009-04-29 Vincent Celier <celier@adacore.com>
2589 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
2590 project extending an abstract project.
2592 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2594 * targparm.ads: Fix oversight.
2596 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2598 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
2599 derivation when necessary, to find the user-subprogram that is actally
2602 2009-04-29 Robert Dewar <dewar@adacore.com>
2604 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
2607 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2609 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
2610 primitive operation, rather than source line of synchronized type, when
2611 building the wrapper for a primitive operation that overrides an
2612 operation inherited from a progenitor, to improve the error message on
2613 duplicate declarations.
2615 * sem_ch3.adb (Process_Full_View): Use new signature of
2618 2009-04-29 Robert Dewar <dewar@adacore.com>
2620 * prj-nmsc.ads: Minor reformatting
2622 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2624 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
2625 expression on the existing parent If statement.
2627 2009-04-29 Robert Dewar <dewar@adacore.com>
2629 * prj-proc.adb, prj.ads: Minor reformatting
2631 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2633 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
2634 existing parent If statement on the newly created one.
2636 2009-04-29 Emmanuel Briot <briot@adacore.com>
2638 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2639 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
2640 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
2641 (Set_In_Configuration, In_Configuration): Removed.
2642 Replaced by an extra parameter Is_Config_File in several parameter to
2643 avoid global variables to store the state of the parser.
2645 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2647 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
2648 with_clauses generated for the same unit through rtsfind, and that
2649 appear in the context of different units.
2651 * rtsfind.adb: New attribute First_Implicit_With, component of the
2652 Unit_Record that stores information about a unit loaded through rtsfind.
2654 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2656 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
2657 (other conditions permitting), so that abstract stream subprograms will
2658 be declared for them.
2660 2009-04-29 Bob Duff <duff@adacore.com>
2662 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
2664 * g-expect.ads: Minor comment fixes.
2666 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2668 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
2669 dispatching operation is a body without previous spec, update the list
2670 of primitive operations to ensure that cross-reference information is
2673 2009-04-29 Albert Lee <lee@adacore.com>
2675 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2676 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2677 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
2678 (GNAT.Sockets.Thin.C_Readv,
2679 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
2680 (GNAT.Sockets.Thin.C_Recvmsg,
2681 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
2683 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
2684 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
2686 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2688 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
2689 operation is a body without previous spec, update the list of
2690 primitive operations to ensure that cross-reference information is
2693 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
2694 new compilation unit node for the instance declaration, keep the
2695 context items of the original unit on it, so that the context of the
2696 instance body only holds the context inherited from the generic body.
2698 2009-04-29 Bob Duff <duff@adacore.com>
2700 * sem_res.adb: Minor comment fix.
2702 2009-04-29 Thomas Quinot <quinot@adacore.com>
2704 * sem_elim.adb: Minor reformatting
2706 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2708 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
2709 predefined unit, allow arbitrary number of components in static
2710 aggregate, to ensure that the same level of constant folding applies
2711 for Ada 95 and Ada 05 versions of the file.
2713 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2715 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
2716 information: no need for full scope check.
2717 (Eliminate_Error): Do not emit error in a generic context.
2719 2009-04-29 Ed Falis <falis@adacore.com>
2721 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
2722 VxWorks 653 POS does not support rmdir.
2724 2009-04-29 Matteo Bordin <bordin@adacore.com>
2726 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
2727 results are printed.
2729 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2731 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
2734 2009-04-29 Thomas Quinot <quinot@adacore.com>
2736 * make.adb: Minor reformatting.
2737 Minor code reorganization throughout.
2739 2009-04-29 Matteo Bordin <bordin@adacore.com>
2741 * s-stausa.ads: Changed visibility of type Task_Result: moved to
2742 public part to give application visibility over it.
2743 This is for future improvement and to build a public API on top of it.
2744 Changed record components name of type Task_Result to reflect the new
2747 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
2748 reporting Stack usage.
2750 * gnat_ugn.texi: Update doc of stack usage report.
2752 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
2754 * Makefile.rtl: Add new run-time files.
2756 2009-04-29 Pascal Obry <obry@adacore.com>
2758 * initialize.c: Do not expand quoted arguments.
2760 2009-04-29 Emmanuel Briot <briot@adacore.com>
2762 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
2764 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
2765 Prj.Ultimate_Extending_Project_Of
2767 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2769 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
2770 Amendment type, add the with_clause for Finalization.List_Controller
2771 only if the current context is a package body.
2773 2009-04-29 Thomas Quinot <quinot@adacore.com>
2775 * sem_ch12.adb: Minor reformatting
2777 * sem_aggr.adb: Minor reformatting
2779 * sem_ch6.adb, sem_cat.ads: Minor reformatting
2781 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
2783 2009-04-29 Quentin Ochem <ochem@adacore.com>
2785 * prj.ads (Source_Id): Now general pointer type.
2787 2009-04-29 Thomas Quinot <quinot@adacore.com>
2789 * exp_ch7.adb, rtsfind.adb: Minor reformatting
2791 * sem_res.adb: Minor reformatting
2793 2009-04-29 Thomas Quinot <quinot@adacore.com>
2795 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
2796 operands is static only if it is a predefined concatenation operator.
2798 * sem_util.adb: Minor reformatting
2800 * sem_ch12.adb (Save_References): When propagating semantic information
2801 from generic copy back to generic template, for the case of an
2802 identifier that has been rewritten to an explicit dereference whose
2803 prefix is either an object name or a parameterless funcion call
2804 denoting a global object or function, properly capture the denoted
2805 global entity: perform the corresponding rewriting in the template,
2806 and point the rewritten identifier to the correct global entity (not
2807 to the associated identifier in the generic copy).
2809 2009-04-29 Robert Dewar <dewar@adacore.com>
2811 * rtsfind.adb, prj-env.adb: Minor reformatting
2812 Minor code reorganization
2814 2009-04-29 Emmanuel Briot <briot@adacore.com>
2816 * make.adb: Fix comment
2818 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
2819 is given as argument, as might happen in gnatmake.
2821 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2823 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
2824 an abstract operation of a progenitor is not properly overridden by an
2825 operation of a derived synchronized type.
2827 2009-04-29 Robert Dewar <dewar@adacore.com>
2829 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
2830 prj-proc.adb: Minor reformatting
2831 Minor code reorganization
2833 2009-04-29 Bob Duff <duff@adacore.com>
2835 * exp_ch7.adb (Build_Final_List): For an access type that designates a
2836 Taft Amendment type, if the access type needs finalization, make sure
2837 the implicit with clause for List_Controller occurs on the package spec.
2839 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
2840 with's created for the pseudo-children of Text_IO and friends. In
2841 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
2842 Ada.Text_IO.Integer_IO both with-ing each other.
2844 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
2845 oddball cases when pragma Extend_System is used.
2847 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
2848 the case where a package spec instantiates a generic whose body with's
2849 this package, so Walk_Library_Items won't complain about cyclic with's.
2851 2009-04-29 Emmanuel Briot <briot@adacore.com>
2853 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
2854 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
2855 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
2856 (Project_Id): now a real pointer to Project_Data, instead of an index
2857 into the Projects_Table. This simplifies the API significantly, avoiding
2858 extra lookups in this table and the need to pass the Project_Tree_Ref
2859 parameter in several cases
2861 2009-04-29 Nicolas Setton <setton@adacore.com>
2863 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
2866 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
2868 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
2871 2009-04-24 Robert Dewar <dewar@adacore.com>
2873 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
2874 clean.adb: Minor reformatting.
2875 Minor code reorganization and message improvement.
2877 2009-04-24 Emmanuel Briot <briot@adacore.com>
2879 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
2880 (Alternate_Languages): now implemented as a malloc-ed list rather
2881 than through a table.
2883 2009-04-24 Thomas Quinot <quinot@adacore.com>
2885 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
2886 accurately handle cases such as "lit" & "lit" and
2887 "lit" & static_string_constant
2889 2009-04-24 Emmanuel Briot <briot@adacore.com>
2891 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2892 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
2893 removed. Lists of projects are now implemented via standard malloc
2894 rather than through the table.
2896 2009-04-24 Thomas Quinot <quinot@adacore.com>
2898 * sem_ch12.adb: Minor reformatting
2900 * g-trasym.adb: Minor reformatting
2902 * exp_ch6.adb: Minor reformatting
2904 2009-04-24 Robert Dewar <dewar@adacore.com>
2906 * layout.adb (Layout_Type): For packed array type, copy unset
2907 size/alignment fields from the referenced Packed_Array_Type.
2909 2009-04-24 Bob Duff <duff@adacore.com>
2911 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
2912 longer needed after sem_ch12 changes.
2914 * sem.adb (Walk_Library_Items): Include with's in some debugging
2917 2009-04-24 Emmanuel Briot <briot@adacore.com>
2919 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
2920 only ever using the Project field.
2922 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2924 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
2925 Body_Required on the generated compilation node. The new node is linked
2926 to its body, but both share the same file, so we do not set this flag
2927 on the new unit so as not to create a spurious dependency on a
2928 non-existent body in the ali file for the instance.
2930 2009-04-24 Robert Dewar <dewar@adacore.com>
2932 * make.adb: Minor reformatting
2934 2009-04-24 Emmanuel Briot <briot@adacore.com>
2936 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
2937 Add_Source): merge some code between those. In particular change where
2938 file normalization is done to avoid a few extra calls to
2939 Canonicalize_File_Name. This also removes the need for passing
2940 Current_Dir in a number of subprograms.
2942 2009-04-24 Bob Duff <duff@adacore.com>
2944 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
2945 False, assign the correct unit to the Cunit field of the new table
2946 entry. We want the spec unit, not the body unit.
2948 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
2949 interface for these.
2950 (Maybe_Add_With): Check whether we're trying to a with on the current
2951 unit, and avoid creating such directly self-referential with clauses.
2952 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
2953 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
2954 and matches existing comments in the spec.
2956 * sem.adb (Walk_Library_Items): Add various special cases to make the
2959 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
2960 instead of Parent (N), for uniformity.
2962 2009-04-24 Robert Dewar <dewar@adacore.com>
2964 * errout.ads: Minor reformatting
2966 2009-04-24 Emmanuel Briot <briot@adacore.com>
2968 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
2969 behavior when the project includes sources from multiple languages
2971 2009-04-24 Vincent Celier <celier@adacore.com>
2973 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
2974 is a language other than Ada declared.
2976 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
2977 Imported_First set to True.
2979 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2981 * sem_res.adb: additional optimization to inhibit creation of
2982 redundant transient scopes.
2984 2009-04-24 Bob Duff <duff@adacore.com>
2986 * rtsfind.ads: Minor comment fix
2988 2009-04-24 Emmanuel Briot <briot@adacore.com>
2990 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
2991 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
2992 basically doing the same work (for explicit or implicit sources).
2993 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
2994 role. Rewritten to share some code (testing that all explicit sources
2995 have been found) between ada_only and multi_language modes.
2997 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
2999 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
3000 for CLI imported types.
3001 (Analyze_Pragma): Allow CIL or Java imported functions returning
3002 access-to-subprogram types.
3004 2009-04-24 Emmanuel Briot <briot@adacore.com>
3006 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
3007 (Project_Data.Dir_Path): field removed, since it can be computed
3008 directly from .Directory, and is needed only once when processing the
3009 project is buildgpr.adb or make.adb
3011 2009-04-24 Robert Dewar <dewar@adacore.com>
3013 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
3014 rtsfind.adb: Minor reformatting.
3015 Minor code reorganization
3017 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3019 * mlib-prj.adb: Use friendlier english identifier.
3021 * gnatcmd.adb, make.adb: Use better english identifiers.
3023 2009-04-24 Robert Dewar <dewar@adacore.com>
3025 * clean.adb: Minor reformatting
3027 2009-04-24 Robert Dewar <dewar@adacore.com>
3029 * einfo.adb (OK_To_Rename): New flag
3031 * einfo.ads (OK_To_Rename): New flag
3033 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
3036 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
3038 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
3041 2009-04-24 Emmanuel Briot <briot@adacore.com>
3043 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
3044 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
3045 field removed. This is not a property of the
3046 project, just a boolean used to traverse the project tree, and storing
3047 it in the structure prevents doing multiple traversal in parallel.
3048 (Project_Data.Checked): also removed, since it was playing the same role
3049 as Seen when we had two nested loops, and this is no longer necessary
3050 (For_All_Imported_Projects): removed, since in fact there was already
3051 the equivalent in For_Every_Project_Imported. The latter was rewritten
3052 to use a local hash table instead of Project_Data.Seen
3053 Various loops were rewritten to use For_Every_Project_Imported, thus
3054 removing the need for Project_Data.Seen. This avoids a lot of code
3057 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3059 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
3060 statements, even though the actual of the call is a concatenation,
3061 because the argument is static, and we want to preserve warning
3062 messages about sequences of code statements that are not marked
3065 * sem_warn.adb: remove obsolete comment about warning being obsolete
3067 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
3068 requeued and the delay has expired while within the accept statement
3069 that executes the requeue, do not perform the requeue and indicate that
3070 the timed call has been aborted.
3072 2009-04-24 Emmanuel Briot <briot@adacore.com>
3074 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3075 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
3076 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
3077 since they can be computed from the above.
3079 2009-04-24 Vincent Celier <celier@adacore.com>
3081 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
3083 * prj-env.adb: Move all global variables to the private part of the
3085 Access these new components instead of the global variables no longer
3087 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
3088 components that were previously global variables.
3090 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
3091 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
3094 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
3095 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
3097 * prj.adb (Initialize): Do not call Prj.Env.Initialize
3098 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
3099 components in the private part of the project tree data.
3101 * prj.ads (Private_Project_Tree_Data): new components moved from
3102 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
3103 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
3104 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
3106 2009-04-24 Vincent Celier <celier@adacore.com>
3108 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
3110 * prj-nmsc.adb (Check_Library): No error for imports by shared library
3111 projects, when --unchecked-shared-lib-imports is used.
3113 2009-04-24 Robert Dewar <dewar@adacore.com>
3115 * sem_ch7.adb: Minor reformatting
3117 2009-04-24 Tristan Gingold <gingold@adacore.com>
3119 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
3122 2009-04-24 Emmanuel Briot <briot@adacore.com>
3124 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
3125 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
3126 (For_All_Imported_Projects): new procedure
3127 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
3128 above rather than duplicating code.
3130 2009-04-24 Emmanuel Briot <briot@adacore.com>
3132 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3133 (Source_Id, Source_Data): use a real list to store sources rather than
3134 using an external table to store the elements. This makes code more
3135 efficient and more readable.
3137 2009-04-24 Emmanuel Briot <briot@adacore.com>
3139 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3140 (Source_Iterator): new type.
3141 This removes the need for having the sources on three different
3142 lists at the project tree, project and language level. They are now
3145 2009-04-24 Emmanuel Briot <briot@adacore.com>
3147 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
3149 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3151 * sem_warn.adb: Add comment on obsolete warning
3153 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3155 * s-tassta.adb (Create_Task): Fix violation of locking rule.
3157 2009-04-24 Emmanuel Briot <briot@adacore.com>
3159 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
3160 to Language_Ptr to better reflect its new implementation.
3161 (Project_Data.First_Languages_Processing): renamed to Languages now
3162 that the field with that name is no longer used
3163 (Project_Data.Languages): removed, no longer used, and duplicates
3164 information already available through First_Language_Processing.
3165 (Prj.Language_Index): now an actual pointer, instead of an index into
3166 a table. This makes the list somewhat more obvious, but more importantly
3167 removes the need to pass a pointer to the project_tree_data in a few
3168 places, and makes accessing the attributes of a languages more
3171 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3172 Thomas Quinot <quinot@adacore.com>
3174 * fe.h (Set_Identifier_Casing): Add const to second parameter.
3175 * gcc-interface/misc.c (internal_error_function): Make copy of return
3176 from pp_formatted_text before assigning BUFFER to it.
3177 (gnat_init): Likewise for main_input_filename and gnat_argv.
3178 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
3180 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3182 * ttypes.ads (Target_Double_Float_Alignment): New variable.
3183 (Target_Double_Scalar_Alignment): Likewise.
3184 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
3185 (Get_Double_Float_Alignment): New imported function.
3186 (Get_Double_Scalar_Alignment): Likewise.
3187 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
3188 the alignment of "double" floating-point types and "double" or larger
3189 scalar types, as parameterized by Target_Double_Float_Alignment and
3190 Target_Double_Scalar_Alignment respectively.
3191 * gcc-interface/gigi.h (double_float_alignment): Declare.
3192 (double_scalar_alignment): Likewise.
3193 (is_double_float_or_array): Likewise.
3194 (is_double_scalar_or_array): Likewise.
3195 (get_target_double_float_alignment): Likewise.
3196 (get_target_double_scalar_alignment): Likewise.
3197 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
3198 (get_target_strict_alignment): ...this.
3199 (get_target_double_float_alignment): New function.
3200 (get_target_double_scalar_alignment): Likewise.
3201 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3202 Test the presence of an alignment clause for under-aligned integer
3203 types. Take into account specific caps for the alignment of "double"
3204 floating-point types and "double" or larger scalar types, as
3205 parameterized by Target_Double_Float_Alignment and
3206 Target_Double_Scalar_Alignment respectively.
3207 (validate_alignment): Likewise.
3208 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
3209 (gigi): Initialize double_float_alignment and double_scalar_alignment.
3210 * gcc-interface/utils.c (double_float_alignment): New global variable.
3211 (double_scalar_alignment): Likewise.
3212 (is_double_float_or_array): New predicate.
3213 (is_double_scalar_or_array): Likewise.
3215 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3217 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
3218 the conditional expression only if it is common to both arms.
3220 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3222 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
3223 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
3224 arguments to build_allocator.
3225 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
3226 Remove code handling special allocator and assert its uselessness.
3228 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3230 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
3231 alignment is specified, do not promote that of the component type
3233 <E_Array_Subtype>: Likewise.
3235 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3237 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
3238 * sinfo.ads (Object Declaration): Likewise.
3239 (Assignment Statement): Likewise.
3240 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
3241 Do not force Is_True_Constant to false on the temporary.
3242 (Freeze_Entity): Do not force Is_True_Constant to false on names on
3243 the RHS of object declarations.
3244 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
3245 New case. Return 1 if the object is atomic.
3246 <N_Assignment_Statement>: Likewise.
3248 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3250 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3251 For packed array types, make the original array type a parallel type
3252 for the modular type and its JM wrapper if the type is bit-packed.
3253 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
3254 record type for packed array types. Remove kludge.
3256 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3258 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
3259 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3260 Use front-end predicates to compute signedness and precision.
3261 <E_String_Literal_Subtype>: Fold range type.
3262 Make sure to set longest_float_type_node to a scalar type.
3263 (elaborate_entity): Use consistent Constraint_Error spelling.
3264 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
3265 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
3266 output for the modulus, if any.
3267 <ENUMERAL_TYPE>: Likewise for the RM size.
3268 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
3270 * gcc-interface/utils.c (finish_record_type): Really test the alignment
3271 of BLKmode bit-fields to compute their addressability.
3272 (create_index_type): Adjust comments.
3273 (create_param_decl): Create the biased subtype manually.
3274 * gcc-interface/utils2.c (build_component_ref): Use consistent
3275 Constraint_Error spelling.
3277 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3279 * gcc-interface/cuintp.c: Clean up include directives.
3280 * gcc-interface/targtyps.c: Likewise.
3281 * gcc-interface/decl.c: Likewise.
3282 * gcc-interface/misc.c: Likewise.
3283 * gcc-interface/trans.c: Likewise.
3284 * gcc-interface/utils.c: Likewise.
3285 * gcc-interface/utils2.c: Likewise.
3286 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
3288 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3290 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
3291 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
3292 (SET_DECL_LANG_SPECIFIC): Likewise.
3294 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3295 Update comment about use of build_range_type.
3296 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
3297 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
3298 check for other cases of overloading.
3299 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
3300 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
3301 Use size_int in lieu of build_int_cst.
3302 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
3305 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3307 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
3308 type is an enumeral or a boolean type, change it to an integer type
3309 with the same mode and signedness.
3311 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3313 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
3314 for an external constant whose initializer is not absolute.
3316 2009-04-22 Taras Glek <tglek@mozilla.com>
3318 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
3319 * gcc-interface/trans.c: Likewise.
3320 * gcc-interface/utils.c: Likewise.
3322 2009-04-22 Ed Schonberg <schonberg@adacore.com>
3324 * sem_res.adb: Create block around procedure call when actual is a
3327 2009-04-22 Thomas Quinot <quinot@adacore.com>
3329 * s-soflin.ads: Fix typos
3331 2009-04-22 Vincent Celier <celier@adacore.com>
3333 * prj-env.adb: Minor comment change
3335 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
3336 Get_Name_String with No_File.
3338 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
3339 cannot be created even when not in verbose mode.
3341 2009-04-22 Emmanuel Briot <briot@adacore.com>
3343 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
3344 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
3345 Multi_Language modes, to avoid code duplication.
3346 (Project_Data.Include_Language): Removed.
3348 2009-04-22 Vincent Celier <celier@adacore.com>
3350 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
3351 the temporary file cannot be created, indicating the directory when the
3352 creation was attempted.
3354 2009-04-22 Emmanuel Briot <briot@adacore.com>
3356 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
3357 the language names, not their indices.
3359 2009-04-22 Emmanuel Briot <briot@adacore.com>
3361 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
3362 (Source_Data.Language_Name): Field removed.
3364 2009-04-22 Emmanuel Briot <briot@adacore.com>
3366 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
3369 2009-04-22 Emmanuel Briot <briot@adacore.com>
3371 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
3372 separate_suffix to the same value as the body_suffix.
3374 2009-04-22 Robert Dewar <dewar@adacore.com>
3376 * prj.adb: Minor code reorganization
3379 * prj-proc.adb: Minor code reorganization, clean up.
3381 * prj-nmsc.adb: Minor reformatting
3382 Minor code reorganization
3384 * gnat_ugn.texi: Add to doc on strict aliasing
3386 2009-04-22 Pascal Obry <obry@adacore.com>
3388 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
3391 * s-tasini.adb: Minor reformatting.
3393 * s-tassta.adb: Minor reformatting.
3395 2009-04-22 Emmanuel Briot <briot@adacore.com>
3397 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
3398 smaller subprograms.
3399 Renamed to Check_File_Naming_Schemes to avoid confusion with the
3400 other Check_Naming_Schemes functions that plays a totally different
3402 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
3403 extracted from the above. These were partially rewritten to avoid
3404 unnecessary code and temporary variables.
3405 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
3406 and Get_Unit (which for now still exist since they contain mode-specific
3409 2009-04-22 Emmanuel Briot <briot@adacore.com>
3411 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
3412 Remove duplicated code.
3413 (Canonical_Case_File_Name): new subprogram
3414 (Check_And_Normalize_Unit_Names): new subprogram
3415 (Write_Attr): new subprogram
3416 Better sharing of code
3417 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
3418 split Check_Naming and help find duplicated code
3419 (Check_Common): new subprogram, sharing code between ada_only and
3420 multi_language mode.
3421 (Naming_Data.Dot_Repl_Loc): field removed
3423 2009-04-22 Emmanuel Briot <briot@adacore.com>
3425 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
3426 Minor refactoring to reduce the size of
3427 Process_Sources_In_Multi_Language_Mode.
3428 Avoid extra copied of Source_Data, which we found in the past could be
3430 (Mark_Excluded_Sources): new subprogram.
3431 (Remove_Locally_Removed_Files_From_Units): merged into the above
3432 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
3433 and allow better sharing of code between multi_lang and ada_only modes
3434 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
3436 2009-04-22 Emmanuel Briot <briot@adacore.com>
3438 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
3439 Removed, since unused.
3441 2009-04-22 Vincent Celier <celier@adacore.com>
3443 * prj-attr.adb: New single project level attribute
3444 Separate_Run_Path_Options.
3446 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3447 attribute Seperate_Run_Path_Options.
3449 * prj.ads: (Project_Configuration): New Boolean component
3450 Separate_Run_Path_Options, defaulted to False.
3452 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
3454 2009-04-22 Robert Dewar <dewar@adacore.com>
3456 * sem_type.adb: Minor reformatting
3458 * mlib.adb: Minor reformatting
3460 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
3463 2009-04-22 Nicolas Setton <setton@adacore.com>
3465 * link.c: Add flag __gnat_separate_run_path_options.
3467 * mlib.adb (Separate_Run_Path_Options): New subprogram.
3469 * mlib.ads (Separate_Run_Path_Options): Declare.
3471 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
3472 switch per directory, rather than one "rpath" switch listing all
3475 * gnatlink.adb (Process_Binder_File): Likewise.
3477 * make.adb (Gnatmake): Likewise.
3479 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
3481 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
3482 Add a call to Move_Final_List when the target of the assignment is a
3483 return object that needs finalization and the expression is a
3484 controlled build-in-place function.
3486 2009-04-22 Vincent Celier <celier@adacore.com>
3488 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
3489 Including_Libraries set to True.
3491 2009-04-22 Ed Schonberg <schonberg@adacore.com>
3493 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
3494 create a unit table entry for the subprogram declaration created for a
3495 child suprogram body that has no separate specification.
3497 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
3498 subprogram body, call Make_Child_Decl_Unit.
3500 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
3501 table can only be the created specification of a child subprogram body
3502 that is the main unit, which has not been entered in the table yet.
3504 * errout.adb (Output_Messages): Ignore created specification of a
3505 child subprogram body to prevent repeated listing of error messages.
3507 * gnat1drv.adb (gnat1drv): The generated specification for a child
3508 subprogram body does not generate code.
3510 2009-04-22 Arnaud Charlet <charlet@adacore.com>
3512 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
3513 since this unit is now part of bootstrap units, so must use Ada 95
3516 2009-04-22 Thomas Quinot <quinot@adacore.com>
3518 * a-tasatt.adb: Minor reformatting
3520 2009-04-22 Bob Duff <duff@adacore.com>
3522 * s-stalib.ads: Remove "with System;" since we're inside System, so
3525 2009-04-22 Vincent Celier <celier@adacore.com>
3527 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
3528 the source record, as there may be a dependency file even if no object
3531 2009-04-22 Robert Dewar <dewar@adacore.com>
3533 * lib-load.adb: Minor reformatting
3535 * lib-load.ads: Minor reformatting
3537 * sinfo.ads: Minor reformatting
3539 2009-04-22 Bob Duff <duff@adacore.com>
3541 * exp_pakd.adb: Minor comment fixes.
3543 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
3544 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
3545 include units containing instantiations, as well as units that are
3546 generic instantiations.
3548 * sem.adb: Include dependents and corresponding specs/bodies in the
3551 * gcc-interface/Make-lang.in:
3552 sem now depends on s-bitops, because of the packed array of Booleans.
3554 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3556 * gcc-interface/ada-tree.def: Fix formatting nits.
3557 (REGION_STMT): Delete.
3558 (HANDLER_STMT): Likewise.
3559 * gcc-interface/ada-tree.h: Fix formatting nits.
3561 (REGION_STMT_BODY): Likewise.
3562 (REGION_STMT_HANDLE): Likewise.
3563 (REGION_STMT_BLOCK): Likewise.
3564 (HANDLER_STMT_ARG): Likewise.
3565 (HANDLER_STMT_LIST): Likewise.
3566 (HANDLER_STMT_BLOCK): Likewise.
3567 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
3568 (fp_size_to_prec): Likewise.
3569 (largest_move_alignment): Delete.
3570 (gnat_compute_largest_alignment): Likewise.
3572 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3573 Remove redundant code.
3574 <E_Array_Type>: Remove redundant assert.
3575 <E_Array_Subtype>: Exit early from index computation in pathological
3577 Rewrite conditional assignment.
3578 (make_type_from_size): Likewise.
3579 * gcc-interface/misc.c (largest_move_alignment): Delete.
3580 (gnat_finish_incomplete_decl): Likewise.
3581 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
3582 (asm_out_file): Likewise
3583 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
3584 (gnat_dwarf_name): Move around.
3585 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
3586 (gigi): Remove call to gnat_compute_largest_alignment.
3587 * utils.c (create_field_decl): Rewrite conditional assignment.
3590 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3592 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
3593 on entry. Defer common processing for types. Reorder and clean up.
3594 Compute the equivalent GNAT node and the default size for types only.
3595 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
3596 <E_Access_Type>: For an unconstrained designated type, do not pretend
3597 that a dummy type is always made.
3598 <all> Fix nits in comments.
3599 (validate_size): Fix formatting nits and comments.
3600 (set_rm_size): Likewise.
3601 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
3602 passed to TARGET_PROMOTE_PROTOTYPES hook.
3604 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3606 * fe.h (Get_External_Name): Declare.
3607 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
3608 (concat_name): ...this.
3609 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
3610 gnu_entity_name and adjust for above renaming.
3611 <E_Access_Type>: Use create_concat_name to get the name of the various
3612 types associated with unconstrained array types.
3613 (make_aligning_type): Adjust for above renaming.
3614 (maybe_pad_type): Likewise.
3615 (components_to_record): Likewise. Use get_identifier_with_length for
3616 the encoding of the variant.
3617 (get_entity_name): Use get_identifier_with_length.
3618 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
3619 Do not fiddle with Name_Buffer.
3620 (concat_id_with_name): Rename to...
3621 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
3623 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
3626 2009-04-21 Joseph Myers <joseph@codesourcery.com>
3628 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
3631 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3633 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
3635 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3637 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
3638 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
3639 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
3640 Remove useless support code for packed array types and assert its
3642 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
3643 adjust for TYPE_RM_SIZE change.
3644 <all> Fix nits in comments. Use Original_Array_Type accessor instead
3645 of Associated_Node_For_Itype accessor for packed array types.
3646 (make_packable_type): Likewise.
3647 (maybe_pad_type): Likewise.
3648 (set_rm_size): Likewise. Rework conditional statement. Adjust for
3649 TYPE_RM_SIZE change.
3650 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
3651 (rm_size): Fix nits in comments. Rework conditional statements.
3652 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
3654 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
3655 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
3656 appropriate function to initialize the size_type_node. Adjust for
3657 TYPE_RM_SIZE change.
3659 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3661 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
3662 for imported subprograms.
3664 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3666 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
3667 constant objects covered by 13.3(19) volatile.
3669 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3671 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
3672 of dummy fat pointer types to the debug back-end.
3674 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3676 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
3677 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
3678 before wrapping it up in the record type. Do not overwrite the
3679 Ada size of the record type with the Esize.
3681 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3683 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
3684 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
3685 if the conversion is on the LHS of an assignment and a no-op.
3686 <all> Do not convert the result to the result type if the Parent
3687 node is such a conversion.
3689 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3691 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
3692 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
3693 of types with unknown discriminants.
3694 (substitute_in_type): Rewrite and restrict to formal substitutions.
3695 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
3696 (update_pointer_to): Update comment.
3698 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3700 * sem_ch8.adb (Use_One_Package): In an instance, if two
3701 potentially_use_visible and non-overloadable homonyms are available
3702 from the actuals of distinct formal packages, retain the current one,
3703 which was visible in the generic, to prevent spurious visibility
3705 (End_Use_Package): Restore use_visibility when needed.
3707 2009-04-20 Sergey Rybin <rybin@adacore.com>
3709 * gnat_ugn.texi, vms_data.ads: Update doc.
3711 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3713 * gcc-interface/Make-lang.in: Update dependencies
3715 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
3718 2009-04-20 Robert Dewar <dewar@adacore.com>
3720 * checks.ads: Fix documentation of range check handling
3722 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3724 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
3725 a redundant use_type clause.
3727 2009-04-20 Robert Dewar <dewar@adacore.com>
3729 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
3730 this attribute can be evaluated at compile time.
3731 (Eval_Attribute, case Range_Length): Same improvement
3733 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
3735 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3737 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
3738 for better handling of null procedures.
3739 (Check_Overriding_Indicator): Do not emit a warning on a missing
3740 overriding indicator on an operator when the type of which the operator
3741 is a primitive is private.
3743 2009-04-20 Bob Duff <duff@adacore.com>
3745 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
3748 2009-04-20 Robert Dewar <dewar@adacore.com>
3750 * sem_attr.adb: Minor reformatting
3752 * gnatcmd.adb: Minor reformatting
3754 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3756 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
3757 overloaded and one interpretation matches the context, label the
3758 operand with the type of first formal.
3760 2009-04-20 Bob Duff <duff@adacore.com>
3762 * debug.ads: Minor comment fix.
3764 * debug.adb: Minor comment fixes.
3766 2009-04-20 Javier Miranda <miranda@adacore.com>
3768 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
3770 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
3772 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
3773 is expanded into a call to Raise_Exception, avoid passing the
3774 exception-name'identity in runtimes in which this argument
3777 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
3779 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
3780 generated bindings for cil.
3782 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3784 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
3785 discriminants, collect components from the Underlying_Record_View,
3786 which will be used in the expansion of the aggregate into assignments.
3788 * sem_ch3.adb: Do not label derived type with unknown discriminants as
3789 having a private declaration.
3791 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3793 * exp_util.adb (Expand_Subtype_From_Expr): use the
3794 underlying_record_view when available, to create the proper constrained
3795 subtype for an object of a derived type with unknown discriminants.
3797 2009-04-20 Javier Miranda <miranda@adacore.com>
3799 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
3800 formals that have pragma unreferenced.
3802 2009-04-20 Pascal Obry <obry@adacore.com>
3804 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
3805 Remove all calls to To_Lower_If_Case_Insensitive to preserve
3806 the pathname original casing.
3808 2009-04-20 Robert Dewar <dewar@adacore.com>
3810 * g-trasym.adb: Minor reformatting
3812 * s-os_lib.adb: Minor reformatting
3814 * sem.adb: Minor reformatting
3815 Minor code reorganization
3817 * sem_ch3.adb: Minor reformatting
3819 * sem_ch4.adb: Minor reformatting
3821 * sem_ch8.adb: Minor reformatting
3823 * sem_type.adb: Minor reformatting
3825 2009-04-20 Javier Miranda <miranda@adacore.com>
3827 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
3828 generated by derivations of tagged types use the aliased subprogram a
3829 reference to locate their controlling type.
3831 2009-04-20 Tristan Gingold <gingold@adacore.com>
3833 * g-trasym.adb: Set size of result buffer before calling
3836 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3838 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
3839 to a function returning an array can be interpreted as a call with
3840 defaulted parameters whose result is indexed, take into account the
3841 types of all the indices of the array result type.
3843 2009-04-20 Pascal Obry <obry@adacore.com>
3845 * a-direct.adb, s-os_lib.adb: Minor reformatting.
3847 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3849 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
3850 null exclusion qualifiers for object renaming declarations.
3852 2009-04-20 Nicolas Roche <roche@adacore.com>
3854 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
3855 unsigned long long. So compare local_time and utc_time before computing
3858 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3860 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
3861 of the Underlying_Record_View before that of the derived type.
3863 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
3864 with unknown discriminants with regard to the parent subtype.
3866 2009-04-20 Bob Duff <duff@adacore.com>
3868 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
3869 that are not included. This is necessary if the main unit is a generic
3872 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
3873 because it doesn't work if -gnatn is used.
3875 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3877 * rtsfind.adb (RTE, RTE_Record_Component): In
3878 Configurable_Run_Time_Mode, do not enable front-end inlining.
3880 2009-04-20 Thomas Quinot <quinot@adacore.com>
3882 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
3883 System.Address_To_Access_Conversions.
3885 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3887 * sem.adb: Guard against ill-formed subunits.
3889 2009-04-20 Bob Duff <duff@adacore.com>
3891 * output.adb (Flush_Buffer): Do not indent blank lines.
3892 (Ignore_Output): New procedure for output suppression.
3894 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3896 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
3897 when it is positive. This avoids a potential constraint error raised
3898 by the conversion to Natural.
3900 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3902 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
3903 involves a target that has a specified address, don't set Forward_OK
3904 and Backward_OK to False if the rhs is an aggregate, since overlap
3907 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3909 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
3910 in an object renaming declaration when the expected type is an
3911 anonymous access type.
3913 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
3914 ambiguity when one interpretation is an anonymous access type and the
3915 other is a named access type, and the context itself is anonymous
3917 2009-04-20 Thomas Quinot <quinot@adacore.com>
3919 * einfo.ads: Minor comment rewording
3921 * sem_aggr.adb: Minor comment rewording
3923 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
3925 2009-04-20 Pascal Obry <obry@adacore.com>
3927 * adaint.c (__gnat_is_readable_file): Check for file existence
3928 when not using ACL (always the case on remote drives).
3930 2009-04-20 Robert Dewar <dewar@adacore.com>
3932 * sinfo.ads: Minor comment fixes
3934 * exp_disp.adb: Minor reformatting
3936 * gnat1drv.adb: Minor reformatting
3938 * output.adb: Minor reformatting
3940 * s-vxwext-kernel.ads: Minor reformatting
3942 * sem.ads: Minor reformatting
3944 * sem.adb: Minor reformatting
3946 * sem_elim.adb: Minor reformatting
3948 * uname.ads: Minor reformatting
3950 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3952 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
3953 a small dope of 4 words to the adjustment to the stack pointer.
3955 2009-04-20 Thomas Quinot <quinot@adacore.com>
3957 * xoscons.adb: generate C header s-oscons.h in
3958 addition to s-oscons.ads.
3960 * socket.c: On VMS, use s-oscons.h.
3962 * sem_ch3.adb: Minor reformatting
3964 * exp_ch9.adb: Minor reformatting
3966 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3968 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
3969 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
3970 (call_to_gnu): Likewise.
3972 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3974 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3975 unit as the first global name at the very beginning.
3977 2009-04-20 Thomas Quinot <quinot@adacore.com>
3979 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
3980 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
3981 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
3982 since HP-UX supports neither inet_aton nor inet_pton (altough the
3983 latter is part of the Single UNIX Specification!).
3984 So reorganize code, and share C implementation based on inet_addr(3)
3985 with VMS (instead of having a VMS specific Ada implementation in
3988 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3990 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
3991 to return the object file name saved by Set_Object_Output_File_Name.
3993 2009-04-20 Emmanuel Briot <briot@adacore.com>
3995 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
3996 for the standard command line, when argc has been modified since the
3997 start of the application.
3999 2009-04-20 Thomas Quinot <quinot@adacore.com>
4001 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
4002 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
4004 2009-04-20 Bob Duff <duff@adacore.com>
4006 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
4009 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4011 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
4012 subprogram as Eliminated when source operation is.
4013 (Expand_N_Protected_Type_Declaration): Generate protected and
4014 unprotected specs for the internal operations, even if the source
4015 operation is eliminated.
4017 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4019 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
4020 Predefined_Primitive_Bodies): Do not create the declarations and bodies
4021 of the primitive subprograms associated with dispatching select
4022 statements when the runtime is in configurable mode.
4024 2009-04-20 Ed Falis <falis@adacore.com>
4026 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
4028 2009-04-20 Thomas Quinot <quinot@adacore.com>
4030 * s-oscons-tmplt.c: Add support for generating a dummy version of
4031 s-oscons.ads providing all possible constants.
4033 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
4035 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
4036 ANSI version (not the UNICODE version) of WSAStringToAddress.
4038 2009-04-20 Pascal Obry <obry@adacore.com>
4040 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
4041 allocated for the security descriptor and make sure all
4042 handles are closed before leaving this procedure.
4044 2009-04-20 Javier Miranda <miranda@adacore.com>
4046 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
4047 (Set_Is_Underlying_Record_View): New subprogram
4049 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
4050 private types with unknown discriminants use the underlying record view
4053 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
4054 underlying record view in the full view of private types whose parent
4055 has unknown discriminants.
4056 (Build_Derived_Record_Type): Avoid generating the class-wide entity
4057 associated with an underlying record view.
4058 (Derived_Type_Declaration): Avoid deriving parent primitives in
4059 underlying record views.
4061 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
4062 records with unknown discriminants.
4064 * sem_type.adb (Covers): Handle underlying record views.
4065 (Is_Ancestor): Add support for underlying record views.
4067 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
4068 dispatching call if the type of the target object is tagged and has
4069 unknown discriminants.
4071 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
4072 unknown discriminants.
4074 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
4075 tables for internally built underlying record views.
4077 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
4078 empty list of component associations.
4080 2009-04-20 Thomas Quinot <quinot@adacore.com>
4082 * sem_ch10.adb: Minor reformatting
4084 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4085 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
4086 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
4087 standard inet_pton API (and emulate it on platforms that do not
4089 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
4090 DECC$INET_ADDR, imported in Ada.
4091 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
4092 implementation provided by GNAT runtime.
4093 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
4096 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4098 * gnat_ugn.texi: Add documentation for -fno-ivopts.
4100 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4102 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
4103 with_clause if it is the main unit.
4105 2009-04-20 Thomas Quinot <quinot@adacore.com>
4107 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
4108 (no behaviour change): Use Append instead of Increment_Last followed
4111 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4113 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
4114 declarations of all primitives associated with dispatching asynchronous,
4115 conditional and timed selects when dispaching calls are forbidden and
4116 select statements are not allowed (such as in Ravenscar).
4117 (Predefined_Primitive_Bodies): Ditto for bodies.
4119 * exp_disp.ad (Make_DT): Do not create and populate the
4120 Select_Specific_Data of the dispatch table when dispatching calls are
4121 forbidden and select statements are not allowed (such as in Ravenscar).
4123 2009-04-20 Robert Dewar <dewar@adacore.com>
4125 * a-tifiio.adb: Minor reformatting
4127 2009-04-20 Thomas Quinot <quinot@adacore.com>
4129 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
4130 other C library functions, report *failure* with a zero status, and
4131 success with a non-zero status.
4133 2009-04-20 Bob Duff <duff@adacore.com>
4135 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
4136 (Semantics): After analyzing each unit, Append it to the
4137 Comp_Unit_List, if appropriate.
4139 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
4141 (Gnat1drv): Correct comment regarding Back_End_Mode.
4143 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4145 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
4147 2009-04-20 Thomas Quinot <quinot@adacore.com>
4149 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4150 output.adb, output.ads, s-taprop-hpux-dce.adb,
4151 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
4154 2009-04-20 Thomas Quinot <quinot@adacore.com>
4156 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
4157 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
4158 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
4159 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
4160 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
4161 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
4163 * debug.adb: Fix typo
4165 * gnat_rm.texi: Minor doc fix.
4167 * sem_ch7.adb, freeze.adb: Minor reformatting
4169 2009-04-20 Thomas Quinot <quinot@adacore.com>
4171 * g-socket.ads: Add new constants:
4173 Unspecified_Group_Inet_Addr
4174 All_Hosts_Group_Inet_Addr
4175 All_Routers_Group_Inet_Addr
4177 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
4178 ERANGE (Result too large).
4179 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
4180 propagation of errno to caller.
4182 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4184 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
4185 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
4188 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4190 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
4191 checking for references to eliminated subprograms that should be
4193 (Eliminate_Error_Message): Update comment to say "references" rather
4194 than "calls" (since attribute cases are handled here as well).
4196 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
4197 checking for references to eliminated subprograms that should be
4198 flagged. Add with and use of Sem and Sem_Util.
4200 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
4201 Add with and use of Sem_Elim.
4203 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
4204 applied to eliminated subprograms.
4205 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
4206 eliminated subprograms.
4207 Add with and use of Sem_Elim.
4209 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
4210 to eliminated subprograms, now handled during Resolve_Call.
4211 Remove with and use of Sem_Elim.
4213 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
4214 testing Is_Eliminated, for proper handling of primitive derived from
4215 eliminated subprograms.
4217 2009-04-20 Vincent Celier <celier@adacore.com>
4219 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
4220 has been declared (Library_GCC or Linker'Driver), for the driver name.
4222 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
4223 Linker'Driver is, use Linker'Driver as the shared library linker.
4224 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
4225 Library_GCC is declared.
4226 (Check_Library_Attributes): Set up the shared linker driver: either
4227 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
4230 2009-04-20 Thomas Quinot <quinot@adacore.com>
4232 * g-socket.ads (Send_Socket): Fix misleading comment.
4234 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4236 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
4239 2009-04-20 Geert Bosch <bosch@adacore.com>
4241 * a-tifiio.adb (Put): Avoid generating too many digits for certain
4242 fixed types with smalls that are neither integer or the reciprocal
4245 2009-04-20 Bob Duff <duff@adacore.com>
4247 * uname.ads: Minor comment fix.
4249 * types.ads: Minor comment fix.
4251 2009-04-20 Pascal Obry <obry@adacore.com>
4253 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
4254 avoid warning. At the same time fix a memory leak.
4256 * osint.adb (Get_Libraries_From_Registry): Properly free memory
4257 returned by the above routine.
4259 2009-04-20 Robert Dewar <dewar@adacore.com>
4261 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
4262 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
4263 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
4264 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
4266 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
4268 2009-04-20 Pascal Obry <obry@adacore.com>
4270 * initialize.c (__gnat_initialize): Add braces to kill warning.
4272 * adaint.c: Minor reformatting, remove trailing spaces.
4274 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4276 * gcc-interface/Make-lang.in: Update dependencies.
4278 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4280 * adaint.h (__gnat_lwp_self): Declare on Linux.
4282 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
4284 2009-04-20 Robert Dewar <dewar@adacore.com>
4286 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
4287 front-end part of -fpreserve-control-flow switch.
4289 2009-04-20 Bob Duff <duff@adacore.com>
4291 * rtsfind.adb: Minor comment fix
4293 2009-04-20 Robert Dewar <dewar@adacore.com>
4295 * exp_aggr.adb: Minor reformatting
4296 Minor code reorganization (use Nkind_In)
4298 * g-socket.adb: Minor reformatting
4300 * g-socket.ads: Minor comment fix
4302 * s-auxdec.ads: Minor comment and organization update.
4304 * s-auxdec-vms_64.ads: Minor comment and organization update.
4306 * sem_ch10.adb: Minor addition of ??? comment
4308 * sem_disp.adb: Minor reformatting
4310 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4312 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
4313 list a caller of an inlined subprogram, if the caller itself is not
4316 2009-04-20 Pascal Obry <obry@adacore.com>
4318 * adaint.c: Disable use of ACL on network drives.
4320 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4322 * gnat_ugn.texi: Add examples.
4324 2009-04-20 Thomas Quinot <quinot@adacore.com>
4326 * g-socket.ads (Abort_Selector): Clarify documentation.
4328 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4330 * opt.ads (Inspector_Mode): Update documentation of this flag.
4332 2009-04-20 Thomas Quinot <quinot@adacore.com>
4334 * g-socket.ads: Minor reformatting
4336 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
4337 consider S_resolvLib error codes since we only use the hostLib wrappers.
4339 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4341 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4342 of the Underlying_Record_View after that of the derived type.
4344 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4346 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
4349 2009-04-20 Javier Miranda <miranda@adacore.com>
4351 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
4353 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
4356 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
4359 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
4360 in internally built overriding subprograms.
4362 2009-04-20 Doug Rupp <rupp@adacore.com>
4364 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
4366 * s-auxdec.ads: Likewise
4368 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4370 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
4371 type by an interface.
4373 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
4374 minimze difference in expanded tree when compiled as spec of the main
4375 unit, or as a spec in the context of another unit.
4377 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4379 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
4380 (localtime_tzoff): This routine no longer accepts an actual of type
4382 (UTC_Time_Offset): Remove local variable Secs_TM.
4384 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
4385 actual of type struct tm*. Add local variable of type struct tm for all
4386 targets that provide localtime_r and need to invoke it.
4388 2009-04-20 Thomas Quinot <quinot@adacore.com>
4390 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
4391 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
4392 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
4394 2009-04-20 Robert Dewar <dewar@adacore.com>
4396 * sem_ch3.adb: Minor reformatting
4398 * lib-load.adb: Minor reformatting
4400 * sem_ch4.adb: Minor reformatting
4402 2009-04-20 Robert Dewar <dewar@adacore.com>
4404 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
4405 (equal values => False).
4407 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4409 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
4410 to null procedures can be inlined unconditionally.
4412 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4414 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
4415 non-addressable parameter passed by reference, do not convert the
4416 actual if its type is already the nominal type, unless it is of
4417 self-referential size.
4419 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4421 * gnat_ugn.texi: Fix typos.
4423 2009-04-20 Robert Dewar <dewar@adacore.com>
4425 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
4426 Validate_Unchecked_Warnings to suppress warnings about size or
4427 alignment or extra bits if either type involved has pragma Warnings
4428 (Off) set for the type entity.
4430 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
4432 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
4433 a builtin type and give it a name.
4435 2009-04-17 Diego Novillo <dnovillo@google.com>
4437 * gcc-interface/misc.c (gnat_expand_expr): Remove.
4438 (LANG_HOOKS_EXPAND_EXPR): Remove.
4440 2009-04-17 Robert Dewar <dewar@adacore.com>
4442 * sem_ch3.adb: Minor reformatting
4444 2009-04-17 Pascal Obry <obry@adacore.com>
4446 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
4448 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4450 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
4451 illegal constraints on type derived from formal discrete types.
4453 2009-04-17 Thomas Quinot <quinot@adacore.com>
4457 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4458 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4459 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
4460 g-socket.ads (GNAT.Sockets.Thin.C_Send,
4461 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
4462 Replace calls to send(2) with equivalent sendto(2) calls.
4463 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
4464 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
4465 report an error in that case. Factor code common to the two versions
4466 (datagram and stream) in common routine Stream_Write.
4468 2009-04-17 Robert Dewar <dewar@adacore.com>
4470 * exp_disp.adb: Minor reformatting
4471 Minor code reorganization (use Nkind_In)
4473 * prepcomp.adb: Minor reformatting
4475 * sem_ch3.adb: Minor reformatting
4477 * sem_res.adb: Minor comment addition
4479 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
4482 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
4483 setting Is_Referenced
4485 * types.ads: Minor reformatting
4487 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4489 * gnat_ugn.texi: Initial documentation on binding generator.
4491 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4493 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
4494 type extensions whose parent is a type with unknown discriminants.
4496 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
4497 aggregate has unknown discriminants, use the Underlying_Record_View to
4498 obtain the discriminants of the ancestor part.
4500 * exp_disp.adb (Build_Dispatch_Tables): Types that are
4501 Underlying_Record_Views share the dispatching information of the
4502 original record extension.
4504 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
4505 discriminants, propagate dispach table information to the
4506 Underlying_Record_View.
4508 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
4509 discriminants and declaration is not a completion, generate
4510 Underlying_Record_View to provide proper discriminant information to
4511 the front-end and to gigi.
4513 2009-04-17 Robert Dewar <dewar@adacore.com>
4515 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
4516 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
4517 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
4518 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
4519 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
4520 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
4521 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
4522 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
4523 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
4524 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
4525 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
4526 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
4527 s-conca3.ads: Remove unneeded pragma Warnings
4529 2009-04-17 Robert Dewar <dewar@adacore.com>
4531 * g-moreex.adb: Add comments.
4533 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
4535 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
4538 * prepcomp.adb: Add ??? comment
4540 * a-tasatt.adb: Minor reformatting
4542 * g-trasym-vms-alpha.adb: Add ??? comment
4544 * g-trasym-vms-ia64.adb: Add ??? comment
4546 * xoscons.adb: Minor reformatting
4548 * s-tassta.adb: Minor reformatting
4550 * s-scaval.adb: Add ??? comment
4552 * stand.ads: Minor code clean up (remove junk with of Namet)
4554 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
4555 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
4556 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
4557 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
4558 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
4559 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
4560 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
4561 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
4562 Warnings off pragmas.
4564 2009-04-17 Pascal Obry <obry@adacore.com>
4566 * initialize.c: Fix test for reallocating the arguments array.
4568 2009-04-17 Geert Bosch <bosch@adacore.com>
4570 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
4571 conversion truncate only for decimal fixed point types.
4573 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
4575 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
4578 2009-04-17 Robert Dewar <dewar@adacore.com>
4580 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
4581 Backwards_OK if either operand has an address clause.
4583 2009-04-17 Pascal Obry <obry@adacore.com>
4585 * initialize.c: Code clean up, use realloc.
4587 2009-04-17 Pascal Obry <obry@adacore.com>
4589 * initialize.c: Do not get Unicode command line if Unicode support not
4591 Add support for wildcard expansion for Unicode parameters on Win32.
4593 * mingw32.h: Add missing macros when Unicode support not activated.
4595 2009-04-17 Javier Miranda <miranda@adacore.com>
4597 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
4598 avoid generating code that references the Current_Master
4599 when compiling without tasks.
4601 2009-04-17 Vincent Celier <celier@adacore.com>
4603 * prj-attr.adb: New project level attribute Target
4605 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4608 * prj.ads (Project_Configuration): New component Target
4610 2009-04-17 Thomas Quinot <quinot@adacore.com>
4612 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
4613 case for the case of an aggregate component, the attach call for the
4614 result is actually needed.
4616 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
4617 an array aggregate must be disabled if the component type requires
4620 * exp_ch3.adb: Minor reformatting
4622 2009-04-17 Bob Duff <duff@adacore.com>
4624 * output.ads (Indent,Outdent): New procedures for indenting the output.
4625 (Write_Char): Correct comment -- LF _is_ allowed.
4627 * output.adb (Indent,Outdent): New procedures for indenting the output.
4628 Keep track of the indentation level, and make sure it doesn't get too
4630 (Flush_Buffer): Insert spaces at the beginning of each line, if
4631 indentation level is nonzero.
4632 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
4634 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
4635 "Next_Col := 1;". Flush_Buffer does that.
4637 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
4638 controlled by the -gnatdc switch. It now occurs on entry/exit to the
4639 relevant analysis routines, and calls Indent/Outdent to make the
4640 indentation reflect the nesting level. Add "helper" routines, since
4641 otherwise lots of "return;" statements would skip the debugging output.
4643 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4645 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
4646 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
4647 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
4649 2009-04-17 Thomas Quinot <quinot@adacore.com>
4651 * exp_aggr.adb: Minor code reorganization, no behaviour change.
4653 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4655 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
4656 clause in a unit that is a package body or a subunit, when the previous
4657 clause appears in a spec or a parent.
4659 2009-04-17 Thomas Quinot <quinot@adacore.com>
4661 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
4663 * exp_ch7.adb: Minor reformatting
4665 2009-04-17 Bob Duff <duff@adacore.com>
4667 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
4668 allocator, check that the expression of the qualified expression obeys
4669 the constraints of the subtype of the qualified expression.
4671 2009-04-17 Thomas Quinot <quinot@adacore.com>
4673 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
4675 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4677 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
4678 aggregate, using context imposed by subtype mark in allocator.
4680 2009-04-17 Pascal Obry <obry@adacore.com>
4682 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
4684 2009-04-17 Nicolas Roche <roche@adacore.com>
4686 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
4689 2009-04-17 Gary Dismukes <dismukes@adacore.com>
4691 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
4692 cover both calls and attribute references ("call" => "reference").
4694 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4696 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
4697 type for which Storage_Size is set to 0 is legal in a pure unit.
4699 2009-04-17 Thomas Quinot <quinot@adacore.com>
4701 * exp_ch7.adb: Minor reformatting
4703 2009-04-17 Robert Dewar <dewar@adacore.com>
4705 * restrict.adb (Check_Restriction_No_Dependence): Don't check
4706 restriction if outside main extended source unit.
4708 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
4709 for parents of child units as well as the child unit itself.
4711 2009-04-17 Bob Duff <duff@adacore.com>
4713 * checks.ads: Minor comment fix
4715 * exp_aggr.ads: Minor comment fix
4717 2009-04-17 Nicolas Roche <roche@adacore.com>
4719 * adaint.c: Improve cross compiler detection and handling.
4721 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
4723 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
4725 2009-04-17 Pascal Obry <obry@adacore.com>
4727 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
4730 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
4731 value when no encoding form paramter is set on Text_IO services.
4733 * adaint.c: CurrentCodePage new variable on Windows.
4734 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4737 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4740 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
4741 environment variable value. Default is UTF-8.
4743 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
4744 fopen and freopen encoding parameter is now set to Unspecified.
4745 The default value is in this case UTF-8 (as it was before) but
4746 use the new macros that convert to/from the code page set
4747 at runtime (CurrentCodePage).
4749 * s-fileio.adb: When no encoding specified use Unspecified value.
4751 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4753 * atree.adb, atree.ads: Remove dead code.
4755 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4757 * gcc-interface/Make-lang.in: Update dependencies.
4759 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4761 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
4762 illegal uses of incomplete types in formal parts and return types.
4764 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
4765 access to subprograms.
4767 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
4768 Taft-amendment types as the return type of an access_to_function type.
4770 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4771 type for access_to_subprograms. The check is performed on package exit.
4773 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4775 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
4777 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
4779 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
4781 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
4782 semantic units, because the handling of itypes in the copied tree
4783 requires semantic information that does not belong in atree.
4785 2009-04-17 Robert Dewar <dewar@adacore.com>
4787 * par-ch6.adb: Minor reformatting
4789 * prj.adb: Minor reformatting
4791 2009-04-17 Gary Dismukes <dismukes@adacore.com>
4793 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
4794 on protected subprogram bodies, so exclude the case where Pf_Flags is
4795 Pf_Decl_Pbod from the error check.
4797 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
4798 indicators on subprograms in protected bodies, and proceed with parsing
4801 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
4802 subprograms from the check for primitiveness on subprograms with
4803 overriding indicators.
4804 (Check_Overriding_Indicator): Include protected subprograms in the
4805 style check for missing overriding indicators.
4807 2009-04-17 Tristan Gingold <gingold@adacore.com>
4809 * init.c: Fix stack checking for x86 Darwin.
4811 2009-04-17 Vincent Celier <celier@adacore.com>
4813 * prj-attr.adb: New project level attribute Object_File_Suffix
4816 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
4818 (Process_Compiler): Process attribute Object_File_Suffix
4820 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
4821 platform suffix, when specified.
4823 * prj.ads (Language_Config): New component Object_File_Suffix,
4824 defaulted to No_Name.
4825 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
4827 * snames.ads-tmpl: New standard name Object_File_Suffix
4829 2009-04-17 Robert Dewar <dewar@adacore.com>
4831 * gnat_rm.texi: Add documentation about No_Streams restriction
4833 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
4834 attributes when checking No_Streams restriction.
4836 2009-04-17 Thomas Quinot <quinot@adacore.com>
4838 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
4840 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
4841 missing calls to RE_Request_Destroy to deallocate request objects after
4844 2009-04-17 Nicolas Setton <setton@adacore.com>
4846 * link.c: Fix support for passing a response file under Darwin.
4848 2009-04-17 Emmanuel Briot <briot@adacore.com>
4850 * prj.adb (Free): new subprogram.
4852 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4854 * sem_ch3.adb: additional initialization on incomplete subtypes.
4856 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
4857 part and one of the formals is an incomplete tagged type, attach to
4858 list of private dependends of the type for later validation.
4860 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
4861 primitive operations of a Taft-amendmment type.
4863 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4864 type. The check is performed on package exit, possibly after the
4865 subprogram is frozen.
4867 2009-04-17 Vincent Celier <celier@adacore.com>
4869 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
4870 before looking for source directories, but make sure that there are nil
4871 if they are not explicitely declared and there is explicitely no
4872 sources in the project.
4874 2009-04-17 Pascal Obry <obry@adacore.com>
4876 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
4878 * init.c: Fix minor typo and style fix.
4880 2009-04-17 Robert Dewar <dewar@adacore.com>
4882 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
4884 * sem_attr.adb (Analyze_Attribute, case Address): Use
4885 PE_Address_Of_Intrinsic.
4887 * types.ads: Add PE_Address_Of_Intrinsic
4889 * types.h: Add PE_Address_Of_Intrinsic
4891 2009-04-17 Nicolas Setton <setton@adacore.com>
4893 * gcc-interface/Makefile.in: Under darwin, build shared libraries
4894 with install_name starting with "@rpath/".
4896 2009-04-17 Nicolas Setton <setton@adacore.com>
4898 * link.c: Add darwin section
4900 2009-04-16 Robert Dewar <dewar@adacore.com>
4902 * g-pehage.adb: Minor reformatting
4904 * sem_ch12.adb: Minor reformatting
4906 * exp_dist.adb: Minor reformatting
4908 * bindgen.adb: Minor style fixes.
4910 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4912 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
4913 indexed components to the case where the prefix is a static string
4916 2009-04-16 Javier Miranda <miranda@adacore.com>
4918 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
4919 objects avoid any further expansion of the expression initializing the
4922 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4924 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
4925 that hides an outer homograph, make that homograph invisible when
4926 analyzing the actuals, to to prevent illegal direct visibility on it.
4928 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
4930 * g-pehage.adb (Initialize): Fix off-by-one error.
4932 2009-04-16 Tristan Gingold <gingold@adacore.com>
4934 * init.c: Detect real stack overflow on Darwin.
4936 * system-darwin-x86.ads: Use stack probing on darwin x86.
4938 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4940 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
4941 take the address of an intrinsic subprogram.
4943 2009-04-16 Arnaud Charlet <charlet@adacore.com>
4945 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
4946 for the targets where GNAT.Traceback.Symbolic is not supported.
4948 2009-04-16 Vincent Celier <celier@adacore.com>
4950 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
4952 * g-trasym.ads: Update comments.
4954 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
4956 * tracebak.c (STOP_FRAME): Verify validity of the current address
4957 before dereferencing.
4959 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4961 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
4962 the original location of the index expressions and the index subtypes,
4963 to prevent spurious out-of-scope references in gigi.
4965 2009-04-16 Tristan Gingold <gingold@adacore.com>
4967 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
4968 Add support for stack checking on darwin.
4970 2009-04-16 Vincent Celier <celier@adacore.com>
4972 * prj-attr.adb: New attribute Runtime_Source_Dir
4974 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
4975 attribute Runtime_Source_Dir.
4976 (Check_Naming_Schemes): Give default values to out parameters to avoid
4979 * prj.ads (Language_Config): New component Runtime_Source_Dir
4981 * snames.ads-tmpl: New standard name Runtime_Source_Dir
4983 2009-04-16 Pascal Obry <obry@adacore.com>
4985 * adaint.h, adaint.c (__gnat_rmdir): New routine.
4986 Simple wrapper routines used to convert to proper encoding on
4989 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
4991 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
4994 2009-04-16 Pascal Obry <obry@adacore.com>
4996 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
4998 2009-04-16 Thomas Quinot <quinot@adacore.com>
5000 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
5001 integrated preprocessor.
5003 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
5004 (Initialize): Split into two subprograms, Initialize (to be called
5005 prior to compiler command line processing) and Setup_Hooks (to be called
5006 later on when the first source file is loaded).
5008 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
5009 Add call to Prep.Initialize.
5011 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
5012 to Prep.Setup_Hooks.
5014 2009-04-16 Pascal Obry <obry@adacore.com>
5016 * adaint.h, adaint.c (__gnat_chdir): New routine.
5017 Simple wrapper routines used to convert to proper encoding on
5020 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
5022 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
5024 2009-04-16 Quentin Ochem <ochem@adacore.com>
5026 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
5029 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5031 * a-convec.ads (Is_Empty): Mark inline.
5033 2009-04-16 Nicolas Roche <roche@adacore.com>
5035 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
5037 2009-04-16 Thomas Quinot <quinot@adacore.com>
5039 * prepcomp.adb: Minor reformatting
5041 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5043 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
5044 Access_Subprogram types can also be imported.
5045 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
5048 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5050 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5051 preserve homonym chain when the declaration is rewritten into a
5052 renaming declaration, in order to preserve visibility structure.
5054 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5056 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
5057 taken into account for VM targets.
5059 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5061 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
5063 (Year_Week_In_Year): New routine which contains the original code from
5064 Week_In_Year. Add the missing special case for January 1st falling on
5067 2009-04-16 Thomas Quinot <quinot@adacore.com>
5069 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
5070 actual type, use the base type to build the To_Any function.
5071 (Build_From_Any_Function): Remove junk, useless subtype conversion.
5073 2009-04-16 Thomas Quinot <quinot@adacore.com>
5075 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
5076 restrict.adb: Minor code reorganization (use
5077 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
5079 2009-04-16 Bob Duff <duff@adacore.com>
5081 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
5084 2009-04-16 Thomas Quinot <quinot@adacore.com>
5086 * sem_ch4.adb: Minor reformatting
5088 * adaint.c: Remove junk duplicated code.
5090 * sem_ch3.adb: Minor reformatting
5092 * exp_dist.adb: Minor comment rewording
5094 2009-04-16 Robert Dewar <dewar@adacore.com>
5096 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
5099 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5101 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
5102 usable before calling Add_One_Interp, to resolve spurious ambiguities.
5104 2009-04-16 Robert Dewar <dewar@adacore.com>
5106 * Make-lang.in: Add entries for s-conca?.o
5108 * Makefile.rtl: Add entries for s-conca?
5110 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
5111 of concatenation expansion
5113 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
5114 string cases instead of expanding assignments inline.
5116 * opt.ads (Optimize_Size): New flag
5118 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
5119 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
5120 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
5121 s-conca9.adb, s-conca9.ads: New file.
5123 2009-04-16 Robert Dewar <dewar@adacore.com>
5125 * exp_ch6.adb: Add comments
5127 * rtsfind.ads: Add entries for s-conca? routines
5129 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5131 * gcc-interface/Make-lang.in: Update dependencies.
5133 * gcc-interface/Makefile.in: Update translation for vms.
5135 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5137 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
5138 and made global, to be used when installing parents of a child
5139 instance, to provide mappings for entities declared in formal packages
5140 of ancestor units. Now called from Install_Formal_Packages.
5142 2009-04-16 Doug Rupp <rupp@adacore.com>
5144 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
5145 notation for clarity.
5147 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5148 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
5149 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
5150 (Initialize): Initialize Known_Tasks with Environment task.
5152 * s-taskin.ads (Task_States): Move new states to end for the sake of
5155 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
5157 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5159 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
5160 operation has an inline pragma, propagate the flag to the internal
5161 unprotected subprogram.
5163 2009-04-16 Doug Rupp <rupp@adacore.com>
5165 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
5166 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
5167 s-taprop-hpux-dce.adb, s-taprop-posix.adb
5168 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
5170 * s-taprop-vms.adb (Enter_Task): Likewise.
5171 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
5173 * s-tassta.adb (Activate_Tasks): After task creation set state to
5174 Activating, vice Runnable. Initialize Known_Tasks, moved here from
5175 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
5176 Set state to Runnable after above.
5177 (Task_Wrapper): Set Debug_Event_Run. In exception block set
5178 Debug_Event_Terminated.
5180 * s-taskin.ads (Task_States): Add new states Activiting and
5181 Activator_Delay_Sleep.
5182 (Bit_Array, Debug_Event_Array): New types.
5183 (Global_Task_Debug_Event_Set: New flag.
5184 (Common_ATCB): New field Debug_Events.
5186 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
5188 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
5191 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
5192 Activating and when Acceptor_Delay_Sleep.
5194 * s-tasdeb.ads: Add constants for Debug_Events.
5195 (Debug_Event_Kind_Type): New subtype.
5196 (Signal_Debug_Event): New subprogram.
5198 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
5200 2009-04-16 Thomas Quinot <quinot@adacore.com>
5202 * sem_elim.adb: Minor reformatting
5204 * freeze.adb: Minor reformatting
5206 * exp_ch4.adb: Minor reformatting
5208 2009-04-16 Emmanuel Briot <briot@adacore.com>
5210 * prj-nmsc.adb (Path_Name_Of): fix memory leak
5212 2009-04-16 Robert Dewar <dewar@adacore.com>
5214 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
5216 2009-04-16 Vincent Celier <celier@adacore.com>
5218 * fmap.adb (Initialize): Show the current line when the mapping file
5219 is detected as "incorrectly formatted".
5221 2009-04-16 Robert Dewar <dewar@adacore.com>
5223 * sem_ch12.adb: Minor reformatting
5225 * sem_ch5.adb: Minor comment addition
5227 * sem_util.adb: Minor reformatting
5229 * sinput-p.adb: Minor reformatting
5230 Add missing pragma Warnings (On)
5232 2009-04-16 Ed Falis <falis@adacore.com>
5234 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
5236 2009-04-16 Vincent Celier <celier@adacore.com>
5238 * ali-util.adb: Minor comment spelling error fix
5240 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5242 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
5243 generate an assignment loop in case of overlap.
5245 2009-04-16 Olivier Hainque <hainque@adacore.com>
5247 * gnat_ugn.texi (gnatmem description): Make it explicit that
5248 gnatmem is designed to work in association with static runtime
5251 2009-04-16 Thomas Quinot <quinot@adacore.com>
5253 * sem_type.adb: Minor reformatting
5255 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5257 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
5258 concerning return codes of gettimeofday and return value check.
5260 2009-04-16 Ed Falis <falis@adacore.com>
5262 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
5263 body can be renaming of imported routines.
5265 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5267 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
5270 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5272 * exp_ch9.adb: Comment improvements.
5273 (Build_Entry_Family_Name): Add parentheses around the index of a entry
5276 2009-04-15 Bob Duff <duff@adacore.com>
5278 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
5279 "while X /= null loop" where X is unchanged inside the loop. We were
5280 not warning in this case, because of the pointers -- we feared that the
5281 loop variable could be updated via a pointer, if there are any pointers
5282 around the place. But that is impossible in this case.
5284 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
5285 the case of dereferences. In X.all, X cannot be an l-value. We now
5286 catch that case (and implicit dereferences, too).
5288 2009-04-15 Vincent Celier <celier@adacore.com>
5290 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
5292 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5294 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
5296 (Analyze_Package_Instantiation): If generic unit in child instance is
5297 the same as generic unit in parent instance, look for an outer homonym
5298 to locate the desired generic.
5300 2009-04-15 Bob Duff <duff@adacore.com>
5302 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
5303 warnings unless the loop comes from source, because checking generated
5304 loops is a waste of time, and makes it harder to debug
5305 Check_Infinite_Loop_Warning.
5307 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
5308 tested in the while loop is a renaming, do not warn. Otherwise, we get
5309 false alarms, because it's usually renaming something that we can't
5310 deal with (an indexed component, a global variable, ...).
5312 * gnat_rm.texi: Fix typo
5314 2009-04-15 Thomas Quinot <quinot@adacore.com>
5316 * sem_ch6.adb: Minor reformatting
5318 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5320 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
5321 immediate parent of the controlled function call is a component
5324 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5326 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
5327 corresponding class-wide type is also in use.
5329 2009-04-15 Thomas Quinot <quinot@adacore.com>
5331 * frontend.adb: Minor comment fix
5333 2009-04-15 Robert Dewar <dewar@adacore.com>
5335 * gnatchop.adb (BOM_Length): New global variable
5336 (Write_Unit): Add new parameter Write_BOM
5337 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
5340 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
5342 2009-04-15 Geert Bosch <bosch@adacore.com>
5344 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
5345 (Backend_Overflow_Checks): Set to True.
5347 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5349 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
5350 keyword is given in a record extension.
5352 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5354 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
5355 of a controlled function call in the context of a record aggregate.
5356 This does not apply to array aggregates since the call will be expanded
5359 2009-04-15 Ed Falis <falis@adacore.com>
5361 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
5362 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
5363 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
5364 s-osinte-vxworks* and s-vxwext*.
5366 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5368 * gcc-interface/Make-lang.in: Update dependencies.
5370 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
5373 2009-04-15 Robert Dewar <dewar@adacore.com>
5375 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
5376 of node for location for warning messages.
5378 * gnatchop.adb: Minor reformatting
5380 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5382 * exp_ch6.adb: additional guard for renaming declarations for in
5383 parameters of an array type.
5385 2009-04-15 Robert Dewar <dewar@adacore.com>
5387 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
5388 in case they were rewritten by expander (Force_Evaluation).
5390 * targparm.adb (Get_Target_Parameters): Correct check for
5391 Suppress_Exception_Locations.
5393 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5395 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
5396 inlined is of an array type that is not bit-packed, use a renaming
5397 declaration to capture its value, rather than a constant declaration.
5399 2009-04-15 Robert Dewar <dewar@adacore.com>
5401 * rtsfind.adb: Minor reformatting.
5403 2009-04-15 Emmanuel Briot <briot@adacore.com>
5405 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
5406 Restore, and free the saved context.
5408 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5410 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
5411 for illegal private extension from a synchronized interface parent in
5412 front of check for illegal limited extension so that limited extension
5413 from a synchronized interface will be rejected.
5414 (Check_Ifaces): Check that a private extension that has a synchronized
5415 interface as a progenitor must be explicitly declared synchronized.
5416 Also check that a record extension cannot derive from a synchronized
5419 2009-04-15 Pascal Obry <obry@adacore.com>
5421 * adaint.h (__gnat_unlink): Add spec.
5422 (__gnat_rename): Likewise.
5424 2009-04-15 Vincent Celier <celier@adacore.com>
5426 * prj-nmsc.adb: Minor spelling error corrections in error messages
5428 2009-04-15 Robert Dewar <dewar@adacore.com>
5430 * sinfo.ads: Minor comment update
5432 * opt.ads: Minor comment updates
5434 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
5437 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5439 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
5440 that generates the code needed to update a dispatch table when a
5441 primitive operation is declared with a subprogram body without previous
5442 spec. Insertion of the generated code is responsibility of the caller.
5443 (Make_DT): When building static tables, append the code created by
5444 Register_Primitive to update a secondary table after it has been
5447 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
5449 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
5450 on an overriding operation that implements an interface operation only
5451 if not building static dispatch tables.
5453 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5455 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
5456 does not cause overflow when converted to Duration. Use the safe value
5457 as the maximum allowable time delay..
5459 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
5461 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
5462 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
5463 translated to "-j 2".
5465 2009-04-15 Bob Duff <duff@adacore.com>
5467 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
5468 with_clauses, to avoid code duplication. Change this processing so we
5469 always add a with_clause on the main unit if needed.
5471 2009-04-15 Pascal Obry <obry@adacore.com>
5473 Add support for Win32 native encoding for delete/rename routines.
5475 * adaint.c (__gnat_unlink): New routine.
5476 (__gnat_rename): New routine.
5477 Simple wrapper routines used to convert to proper encoding on
5480 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
5481 call to the C library.
5483 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
5485 2009-04-15 Robert Dewar <dewar@adacore.com>
5487 * s-tassta.adb: Minor reformatting
5489 2009-04-15 Robert Dewar <dewar@adacore.com>
5491 * frontend.adb (Frontend): Set proper default for
5492 Warn_On_Non_Local_Exception.
5494 * opt.ads (Exception_Handler_Encountered): New flag
5495 (No_Warn_On_Non_Local_Exception): New flag
5497 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
5499 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5500 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5502 2009-04-15 Cyrille Comar <comar@adacore.com>
5504 * s-tassta.adb, a-exextr.adb, a-elchha.adb
5505 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
5506 message when exception traces are active since it would generate
5507 redundant information.
5508 (Exception_Traces.Notify_Exception): put message output by a critical
5509 section to avoid unsynchronized output.
5510 (Trace_Unhandled_Exception_In_Task): put message output by a critical
5511 section to avoid unsynchronized output.
5513 2009-04-15 Emmanuel Briot <briot@adacore.com>
5515 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
5516 (Free): New subprogram.
5518 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5520 * a-calend.adb: Add new constant Nanos_In_Four_Years.
5521 (Formatting_Operations.Time_Of): Change the way four year chunks of
5522 nanoseconds are added to the intermediate result.
5524 2009-04-15 Nicolas Setton <setton@adacore.com>
5526 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
5527 does not need to wait for a carriage return.
5529 2009-04-15 Tristan Gingold <gingold@adacore.com>
5531 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
5534 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5536 * freeze.adb (Freeze_Entity): improve error message for improper use of
5538 Diagnose additional illegal uses of incomplete types in formal parts.
5539 appearing in formal parts.
5541 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
5543 2009-04-15 Robert Dewar <dewar@adacore.com>
5545 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
5547 2009-04-15 Nicolas Roche <roche@adacore.com>
5549 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
5552 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
5554 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
5556 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5558 * sem_ch4.adb: improve error message on exponentiation.
5560 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5562 * a-calend.adb: Move constant Epoch_Offset from package
5563 Conversion_Operations to top level.
5564 (Delay_Operations.To_Duration): Define a constant which represents
5565 "end of time" and use it as a guard against very distant delay dates.
5566 Protect the code against overflow when performing the origin shift to
5569 2009-04-15 Robert Dewar <dewar@adacore.com>
5571 * sem_prag.adb: Minor reformatting.
5573 * sem_type.adb: Minor reformatting
5575 2009-04-15 Javier Miranda <miranda@adacore.com>
5577 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
5578 support to check eliminated subprograms.
5580 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
5582 * sem_elim.adb (Set_Eliminated): Add support for elimination of
5583 dispatching subprograms.
5585 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
5586 operations. Initialize with "null" the slots of eliminated dispaching
5588 (Write_DT): Add output for eliminated primitives.
5590 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
5592 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5594 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
5595 the second is redundant, regardless of scopes.
5597 2009-04-15 Vincent Celier <celier@adacore.com>
5599 * prj-nmsc.adb (Get_Directories): Check for sources before checking
5600 the object directory as when there are no sources, they may not be any
5603 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
5604 directory, when there are no exec directory.
5606 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5608 * sem_type.adb (Remove_Conversions): In order to resolve spurious
5609 ambiguities, refine removal of universal interpretations from complex
5610 expressions with literal arguments, when some numeric operators have
5611 been declared abstract.
5613 2009-04-15 Ed Falis <falis@adacore.com>
5615 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
5616 and backward compatibility for targets using probing for stack overflow
5618 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5620 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
5621 after any declaration, including renaming declarations.
5623 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5625 * gcc-interface/Make-lang.in: Update dependencies.
5627 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
5628 Update xenomai target pairs.
5630 2009-04-15 Javier Miranda <miranda@adacore.com>
5632 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
5634 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
5635 functions returning anonymous access to class-wide limited types. Mark
5636 also the containing scope as a task master.
5638 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
5639 limited-withed packages. Required to restore their visibility after
5640 processing packages associated with implicit with-clauses.
5642 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
5643 associated with return statements because this work is now done by
5644 Check_Anonymous_Return.
5645 (Build_Master): Code cleanup.
5647 2009-04-15 Thomas Quinot <quinot@adacore.com>
5649 * sem_warn.ads: Minor reformatting
5651 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5653 * sem_ch3.adb: better error message for illegal interfaces
5655 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
5656 formal is an incomplete type from a limited_with clause.
5658 2009-04-15 Vincent Celier <celier@adacore.com>
5660 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
5661 Externally_Built indicating if the project is externally built. If it
5662 is, and --subdirs is specified, but the subdir does not exist, look
5663 for the specified directory, without the subdir.
5665 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5667 * a-tasatt.adb: Fix typo, plus minor reformatting
5669 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
5671 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
5673 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5675 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
5676 private extension whose parent is a synchronized interface carries an
5677 explicit synchronized keyword.
5679 2009-04-15 Thomas Quinot <quinot@adacore.com>
5681 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
5682 instantiate generic shared object package with the corresponding
5685 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5687 * system-linux-sparc.ads: Remove obsolete entries.
5689 2009-04-15 Thomas Quinot <quinot@adacore.com>
5691 * s-tasuti.ads: Add ??? comment
5693 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5695 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
5696 type even if the designated type comes from a limited_with clause, to
5697 ensure that the symbol for the finalization list of the access type is
5700 2009-04-10 Robert Dewar <dewar@adacore.com>
5702 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
5703 for warning suppression.
5705 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5707 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
5708 identical, there is no redudancy to check.
5710 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5712 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
5713 calls initializing SS_Allocator (which is initialized in following
5715 (Expand_Simple_Function_Return): Add comment about False value for
5716 Comes_From_Source on secondary-stack allocator.
5718 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
5719 (Build_Entry_Name): Add comment.
5721 2009-04-10 Robert Dewar <dewar@adacore.com>
5723 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
5725 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
5726 bound tested, since this is now done more generally in Sem_Res.
5728 * sem_res.adb (Resolve_Comparison_Op): Add call to
5729 Check_Lower_Bound_Tested.
5730 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
5732 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
5733 (Low_Bound_Tested): New name for Low_Bound_Known flag
5735 * exp_ch5.adb: Minor reformatting
5738 Add comments on copying the Comes_From_Source flag for allocators
5741 Add comments on copying the Comes_From_Source flag for allocators
5743 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
5744 Comes_From_Source flag from old allocator to new one.
5746 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5748 * sem_ch6.ads: Address missing documentation query
5750 2009-04-10 Vincent Celier <celier@adacore.com>
5753 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
5754 and Response_File_Switches.
5756 * prj-nmsc.adb (Process_Linker): Process new attributes
5757 Max_Command_Line_Length, Response_File_Format and
5758 Response_File_Switches.
5760 * prj.ads (Response_File_Format): New enumeration type
5761 (Project_Configuration): New componants Max_Command_Line_Length,
5762 Resp_File_Format and Resp_File_Options.
5764 * snames.ads-tmpl: Add new standard names for linking response files
5765 for gprbuild: GNU, None, Object_List, Option_List,
5766 Max_Command_Line_Length, Response_File_Format and
5767 Response_File_Switches.
5769 2009-04-10 Geert Bosch <bosch@adacore.com>
5771 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
5772 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
5773 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
5774 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
5775 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
5776 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5777 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
5778 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
5779 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
5780 system-vxworks-arm.ads, system-vxworks-m68k.ads,
5781 system-vxworks-mips.ads, system-vxworks-ppc.ads,
5782 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
5783 (Backend_Overflow_Checks): Set to True.
5785 2009-04-10 Thomas Quinot <quinot@adacore.com>
5787 * exp_attr.adb: Minor reformatting
5789 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5791 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
5792 analyze the expression for a postcondition, even if the compiler mode
5795 2009-04-10 Robert Dewar <dewar@adacore.com>
5797 * sem_aux.adb: Minor reformatting
5799 2009-04-10 Ed Falis <falis@adacore.com>
5801 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
5803 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
5805 2009-04-10 Thomas Quinot <quinot@adacore.com>
5807 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
5808 undocumented formal.
5811 * a-direio.ads: Fix typo in comment
5813 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
5814 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
5815 Use uniform phrasing for comment at start of subprogram body.
5817 * xsnamest.adb: Add note to explain why we use specific names for the
5818 newly generated files instead of generating snames.{ads,adb,h} directly
5820 2009-04-10 Sergey Rybin <rybin@adacore.com>
5823 Add qualifier for new gnatstub option '--no-exception'
5826 Add the description of the new gnatstub option '--no-exception'
5828 2009-04-10 Robert Dewar <dewar@adacore.com>
5830 * rtsfind.adb: Minor reformatting
5832 2009-04-10 Thomas Quinot <quinot@adacore.com>
5834 * sem_disp.adb: Minor reformatting.
5835 Add comment pointing to RM clause for the case of warning against a
5836 (failed) attempt at declaring a primitive operation elsewhere than in a
5839 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5841 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
5842 an actual for a previous formal package of the current instance.
5844 2009-04-10 Bob Duff <duff@adacore.com>
5846 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
5847 them first, rather than on the extended main unit.
5849 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5851 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
5852 specification of full view carries a null exclusion indicator, create
5853 an itype for it, to check for conformance with partial view.
5855 2009-04-10 Bob Duff <duff@adacore.com>
5857 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
5859 * rtsfind.adb: Minor comment changes, and remove useless code.
5861 * sinfo.ads: Add ??? comment.
5863 2009-04-10 Vincent Celier <celier@adacore.com>
5865 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
5867 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5869 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
5870 type is a synchronized type, retrieve tag information from the
5871 corresponding record, which has the dispatch table link.
5873 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
5875 * g-comlin.adb (Group_Analysis): Take care of switches that might be
5876 decomposed afterwards, but are present as-is in the command line
5877 configuration, and thus should be kept as-is.
5879 2009-04-10 Robert Dewar <dewar@adacore.com>
5881 * gnat_rm.texi: Document that postconditions are tested on implicit
5884 * sem_aux.adb: Minor reformatting
5886 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5888 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
5891 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
5892 Null_Exclusion_In_Return_Present when an access-to-function type has a
5893 result type with an explicit not null.
5895 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
5896 given on the result type, then create a null-excluding itype for the
5899 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
5900 the case where a null exclusion is imposed on a named access type.
5901 (Analyze_Subprogram_Specification): Push and pop the scope of the
5902 function around the call to Analyze_Return_Type in the case of no
5903 formals, for consistency with handling when formals are present
5904 (Process_Formals does this). Ensures that any itype created for the
5905 return type will be associated with the proper scope.
5907 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
5908 exclusion is given on a generic function's result type, then create a
5909 null-excluding itype for the generic function.
5910 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
5911 for an actual for a formal in object according to the setting on the
5912 formal. Ensures null exclusion checks are done when the association is
5915 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
5916 N_Access_Function_Definition.
5918 * sinfo.adb: Add Get_ and Set_ operations for
5919 Null_Exclusion_In_Return_Present.
5921 2009-04-10 Bob Duff <duff@adacore.com>
5923 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
5924 call to the _Postconditions procedure in the case of implicit returns
5925 from analysis to expansion. This eliminates some duplicated code. Use
5926 the Postcondition_Proc to find the identity of this procedure during
5929 2009-04-10 Robert Dewar <dewar@adacore.com>
5931 * sem_ch6.adb: Minor code clean up.
5933 * einfo.ads, sem_attr.adb: Minor comment fixes.
5935 2009-04-10 Robert Dewar <dewar@adacore.com>
5937 * sem_ch8.adb: Minor reformatting
5939 2009-04-10 Robert Dewar <dewar@adacore.com>
5941 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
5944 * sem_ch6.adb: Minor code clean up.
5946 2009-04-10 Robert Dewar <dewar@adacore.com>
5948 * mlib-tgt-specific-xi.adb: Minor reformatting
5950 2009-04-10 Bob Duff <duff@adacore.com>
5952 * einfo.ads: Minor comment fixes
5954 2009-04-10 Vincent Celier <celier@adacore.com>
5956 * snames.ads-tmpl: Remove names that are no longer used in the
5958 Mark specifically those that are used only in gprbuild
5960 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
5962 * init.c: Adjust EH support code on Alpha/Tru64.
5964 2009-04-10 Bob Duff <duff@adacore.com>
5966 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
5967 procedure on every path that could return implicitly (not via a return
5968 statement) from a procedure.
5970 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5972 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
5973 valid scope for a task declarations and therefore for a master id.
5975 2009-04-10 Robert Dewar <dewar@adacore.com>
5977 * sem_aux.adb: Minor reformatting
5979 2009-04-10 Vincent Celier <celier@adacore.com>
5981 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
5983 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
5984 (Set_Obsolescent_Check): New procedure to change the value of
5985 Obsolescent_Check_Flag.
5987 * scn.ads (Set_Obsolescent_Check): New procedure to control
5990 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
5991 obsolescent features while preprocessing.
5993 2009-04-10 Thomas Quinot <quinot@adacore.com>
5995 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
5996 generated files on all platforms.
5998 2009-04-10 Robert Dewar <dewar@adacore.com>
6000 * sem_aux.adb: Minor reformatting
6002 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6004 * sem_ch3.adb (Access_Definition): Handle properly the case of a
6005 protected function with formals that returns an anonymous access type.
6007 2009-04-10 Thomas Quinot <quinot@adacore.com>
6009 * sem_disp.adb: Minor reformatting
6011 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
6013 * seh_init.c: Do not use the 32-bit specific implementation of
6014 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
6017 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6019 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
6020 a '/' at the end so we better use the complete target name to determine
6021 whether it is a PowerPC 55xx target.
6023 2009-04-10 Thomas Quinot <quinot@adacore.com>
6025 * sem_eval.adb: Minor reformatting
6027 2009-04-10 Thomas Quinot <quinot@adacore.com>
6029 * snames.h, snames.ads, snames.adb: Remove files, now generated from
6032 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
6035 * xsnamest.adb: New file.
6037 * gcc-interface/Make-lang.in: New target for automated generation of
6038 snames.ads, snames.adb and snames.h
6040 2009-04-10 Tristan Gingold <gingold@adacore.com>
6042 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
6043 avoid compile time warnings.
6044 Do not add gcc/config in include search list while compiling the RTS.
6045 Pragma Thread_Local_Storage is available on any target.
6047 2009-04-10 Bob Duff <duff@adacore.com>
6049 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
6051 2009-04-10 Tristan Gingold <gingold@adacore.com>
6053 * init.c: Install signal handler on Darwin.
6055 2009-04-10 Robert Dewar <dewar@adacore.com>
6057 * sem_prag.adb: Minor reformatting
6059 * exp_util.adb (Make_Non_Empty_Check): New function
6060 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
6061 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
6063 2009-04-10 Arnaud Charlet <charlet@adacore.com>
6065 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
6067 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6069 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
6070 tool prefix for AVR and PowerPC 55xx targets.
6072 2009-04-10 Robert Dewar <dewar@adacore.com>
6074 * sem_warn.adb (Within_Postcondition): New function
6075 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
6077 2009-04-10 Robert Dewar <dewar@adacore.com>
6079 * sem_warn.adb: Minor reformatting
6081 * make.adb: Minor reformatting.
6083 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6085 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
6086 entity and the scope is a subprogram, retrieve the Sloc of the
6087 subprogram's body rather than using the sloc of the spec, for better
6088 line-stepping behavior in gdb.
6089 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
6090 controller, use the Sloc of the first declaration of the containing list
6091 rather than that of the node that triggered creation of the list
6094 2009-04-10 Vincent Celier <celier@adacore.com>
6096 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
6097 to avoid gcc warning.
6099 2009-04-10 Robert Dewar <dewar@adacore.com>
6101 * g-comlin.adb: Add ??? comment
6103 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6105 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
6106 unreferenced entities for a package with no visible declarations.
6108 2009-04-10 Robert Dewar <dewar@adacore.com>
6110 * exp_ch9.adb: Minor reformatting
6112 2009-04-10 Thomas Quinot <quinot@adacore.com>
6114 * sem_prag.adb: Minor reformatting
6116 2009-04-10 Vincent Celier <celier@adacore.com>
6119 (Check_Library_Attributes): For a project qualified as a library project
6120 that is not a library project, indicate in the error message which
6121 attributes are missing (Library_Dir and/or Library_Name).
6123 2009-04-10 Bob Duff <duff@adacore.com>
6125 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
6126 generated nodes, because it might confuse various circuits in the FE.
6128 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6130 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
6131 of pragma. It will be recopied and analyzed when used in call to
6134 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
6135 initialization operations and recognize use of it in procedure calls
6138 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
6139 argument, because it may have side-effects.
6141 * exp_ch2.adb: Remove obsolete comments on default functions
6143 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6145 * adaint.c (RTX section): Do for RTX the same thing as we do for
6146 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
6148 2009-04-10 Robert Dewar <dewar@adacore.com>
6150 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
6152 * sem_res.adb (Resolve_Call): Fix test for
6153 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
6154 a non-dynamic scope).
6156 2009-04-10 Robert Dewar <dewar@adacore.com>
6158 * make.adb: Add comment.
6161 2009-04-10 Nicolas Setton <setton@adacore.com>
6163 * s-osprim-darwin.adb: New file.
6165 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
6167 2009-04-10 Thomas Quinot <quinot@adacore.com>
6169 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
6171 2009-04-09 Nick Clifton <nickc@redhat.com>
6173 * adadecode.h: Change copyright header to refer to version
6174 3 of the GNU General Public License with version 3.1 of the
6175 GCC Runtime Library Exception and to point readers at the
6176 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
6178 * 9drpc.adb: Likewise.
6179 * a-assert.adb: Likewise.
6180 * a-astaco.adb: Likewise.
6181 * a-calari.adb: Likewise.
6182 * a-calcon.adb: Likewise.
6183 * a-calcon.ads: Likewise.
6184 * a-caldel.ads: Likewise.
6185 * a-calend-vms.adb: Likewise.
6186 * a-calend-vms.ads: Likewise.
6187 * a-calend.adb: Likewise.
6188 * a-calend.ads: Likewise.
6189 * a-calfor.adb: Likewise.
6190 * a-catizo.adb: Likewise.
6191 * a-cdlili.adb: Likewise.
6192 * a-cdlili.ads: Likewise.
6193 * a-cgaaso.adb: Likewise.
6194 * a-cgaaso.ads: Likewise.
6195 * a-cgarso.adb: Likewise.
6196 * a-cgcaso.adb: Likewise.
6197 * a-chacon.adb: Likewise.
6198 * a-chacon.ads: Likewise.
6199 * a-chahan.adb: Likewise.
6200 * a-chahan.ads: Likewise.
6201 * a-chlat9.ads: Likewise.
6202 * a-chtgke.adb: Likewise.
6203 * a-chtgke.ads: Likewise.
6204 * a-chtgop.adb: Likewise.
6205 * a-chtgop.ads: Likewise.
6206 * a-chzla1.ads: Likewise.
6207 * a-chzla9.ads: Likewise.
6208 * a-cidlli.adb: Likewise.
6209 * a-cidlli.ads: Likewise.
6210 * a-cihama.adb: Likewise.
6211 * a-cihama.ads: Likewise.
6212 * a-cihase.adb: Likewise.
6213 * a-cihase.ads: Likewise.
6214 * a-ciorma.adb: Likewise.
6215 * a-ciorma.ads: Likewise.
6216 * a-ciormu.adb: Likewise.
6217 * a-ciormu.ads: Likewise.
6218 * a-ciorse.adb: Likewise.
6219 * a-ciorse.ads: Likewise.
6220 * a-clrefi.adb: Likewise.
6221 * a-clrefi.ads: Likewise.
6222 * a-cohama.adb: Likewise.
6223 * a-cohama.ads: Likewise.
6224 * a-cohase.adb: Likewise.
6225 * a-cohase.ads: Likewise.
6226 * a-cohata.ads: Likewise.
6227 * a-coinve.adb: Likewise.
6228 * a-coinve.ads: Likewise.
6229 * a-colien.adb: Likewise.
6230 * a-colien.ads: Likewise.
6231 * a-colire.adb: Likewise.
6232 * a-colire.ads: Likewise.
6233 * a-comlin.adb: Likewise.
6234 * a-comlin.ads: Likewise.
6235 * a-convec.adb: Likewise.
6236 * a-convec.ads: Likewise.
6237 * a-coorma.adb: Likewise.
6238 * a-coorma.ads: Likewise.
6239 * a-coormu.adb: Likewise.
6240 * a-coormu.ads: Likewise.
6241 * a-coorse.adb: Likewise.
6242 * a-coorse.ads: Likewise.
6243 * a-coprnu.adb: Likewise.
6244 * a-coprnu.ads: Likewise.
6245 * a-crbltr.ads: Likewise.
6246 * a-crbtgk.adb: Likewise.
6247 * a-crbtgk.ads: Likewise.
6248 * a-crbtgo.adb: Likewise.
6249 * a-crbtgo.ads: Likewise.
6250 * a-crdlli.adb: Likewise.
6251 * a-crdlli.ads: Likewise.
6252 * a-cwila1.ads: Likewise.
6253 * a-cwila9.ads: Likewise.
6254 * a-decima.adb: Likewise.
6255 * a-decima.ads: Likewise.
6256 * a-diocst.adb: Likewise.
6257 * a-diocst.ads: Likewise.
6258 * a-direct.adb: Likewise.
6259 * a-direct.ads: Likewise.
6260 * a-direio.adb: Likewise.
6261 * a-direio.ads: Likewise.
6262 * a-dirval-mingw.adb: Likewise.
6263 * a-dirval-vms.adb: Likewise.
6264 * a-dirval.adb: Likewise.
6265 * a-dirval.ads: Likewise.
6266 * a-dynpri.adb: Likewise.
6267 * a-einuoc.adb: Likewise.
6268 * a-einuoc.ads: Likewise.
6269 * a-elchha.adb: Likewise.
6270 * a-elchha.ads: Likewise.
6271 * a-envvar.adb: Likewise.
6272 * a-excach.adb: Likewise.
6273 * a-except-2005.adb: Likewise.
6274 * a-except-2005.ads: Likewise.
6275 * a-except.adb: Likewise.
6276 * a-except.ads: Likewise.
6277 * a-excpol-abort.adb: Likewise.
6278 * a-excpol.adb: Likewise.
6279 * a-exctra.adb: Likewise.
6280 * a-exctra.ads: Likewise.
6281 * a-exetim-mingw.adb: Likewise.
6282 * a-exetim-mingw.ads: Likewise.
6283 * a-exexda.adb: Likewise.
6284 * a-exexpr-gcc.adb: Likewise.
6285 * a-exexpr.adb: Likewise.
6286 * a-exextr.adb: Likewise.
6287 * a-exstat.adb: Likewise.
6288 * a-filico.adb: Likewise.
6289 * a-filico.ads: Likewise.
6290 * a-finali.adb: Likewise.
6291 * a-finali.ads: Likewise.
6292 * a-interr.ads: Likewise.
6293 * a-intnam-aix.ads: Likewise.
6294 * a-intnam-darwin.ads: Likewise.
6295 * a-intnam-dummy.ads: Likewise.
6296 * a-intnam-freebsd.ads: Likewise.
6297 * a-intnam-hpux.ads: Likewise.
6298 * a-intnam-irix.ads: Likewise.
6299 * a-intnam-linux.ads: Likewise.
6300 * a-intnam-lynxos.ads: Likewise.
6301 * a-intnam-mingw.ads: Likewise.
6302 * a-intnam-rtems.ads: Likewise.
6303 * a-intnam-solaris.ads: Likewise.
6304 * a-intnam-tru64.ads: Likewise.
6305 * a-intnam-vms.ads: Likewise.
6306 * a-intnam-vxworks.ads: Likewise.
6307 * a-intsig.adb: Likewise.
6308 * a-intsig.ads: Likewise.
6309 * a-ngcefu.adb: Likewise.
6310 * a-ngcoar.adb: Likewise.
6311 * a-ngcoty.adb: Likewise.
6312 * a-ngcoty.ads: Likewise.
6313 * a-ngelfu.adb: Likewise.
6314 * a-ngrear.adb: Likewise.
6315 * a-ngrear.ads: Likewise.
6316 * a-nudira.adb: Likewise.
6317 * a-nudira.ads: Likewise.
6318 * a-nuflra.adb: Likewise.
6319 * a-nuflra.ads: Likewise.
6320 * a-numaux-darwin.adb: Likewise.
6321 * a-numaux-darwin.ads: Likewise.
6322 * a-numaux-libc-x86.ads: Likewise.
6323 * a-numaux-vxworks.ads: Likewise.
6324 * a-numaux-x86.adb: Likewise.
6325 * a-numaux-x86.ads: Likewise.
6326 * a-numaux.ads: Likewise.
6327 * a-rbtgso.adb: Likewise.
6328 * a-rbtgso.ads: Likewise.
6329 * a-reatim.ads: Likewise.
6330 * a-retide.adb: Likewise.
6331 * a-retide.ads: Likewise.
6332 * a-rttiev.adb: Likewise.
6333 * a-rttiev.ads: Likewise.
6334 * a-secain.adb: Likewise.
6335 * a-secain.ads: Likewise.
6336 * a-sequio.adb: Likewise.
6337 * a-sequio.ads: Likewise.
6338 * a-shcain.adb: Likewise.
6339 * a-shcain.ads: Likewise.
6340 * a-siocst.adb: Likewise.
6341 * a-siocst.ads: Likewise.
6342 * a-slcain.adb: Likewise.
6343 * a-slcain.ads: Likewise.
6344 * a-ssicst.adb: Likewise.
6345 * a-ssicst.ads: Likewise.
6346 * a-stboha.adb: Likewise.
6347 * a-stmaco.ads: Likewise.
6348 * a-storio.adb: Likewise.
6349 * a-strbou.adb: Likewise.
6350 * a-strbou.ads: Likewise.
6351 * a-stream.ads: Likewise.
6352 * a-strfix.adb: Likewise.
6353 * a-strhas.adb: Likewise.
6354 * a-strmap.adb: Likewise.
6355 * a-strmap.ads: Likewise.
6356 * a-strsea.adb: Likewise.
6357 * a-strsea.ads: Likewise.
6358 * a-strsup.adb: Likewise.
6359 * a-strsup.ads: Likewise.
6360 * a-strunb.adb: Likewise.
6361 * a-strunb.ads: Likewise.
6362 * a-ststio.adb: Likewise.
6363 * a-ststio.ads: Likewise.
6364 * a-stunau.adb: Likewise.
6365 * a-stunau.ads: Likewise.
6366 * a-stunha.adb: Likewise.
6367 * a-stwibo.adb: Likewise.
6368 * a-stwibo.ads: Likewise.
6369 * a-stwifi.adb: Likewise.
6370 * a-stwiha.adb: Likewise.
6371 * a-stwima.adb: Likewise.
6372 * a-stwima.ads: Likewise.
6373 * a-stwise.adb: Likewise.
6374 * a-stwise.ads: Likewise.
6375 * a-stwisu.adb: Likewise.
6376 * a-stwisu.ads: Likewise.
6377 * a-stwiun.adb: Likewise.
6378 * a-stwiun.ads: Likewise.
6379 * a-stzbou.adb: Likewise.
6380 * a-stzbou.ads: Likewise.
6381 * a-stzfix.adb: Likewise.
6382 * a-stzhas.adb: Likewise.
6383 * a-stzmap.adb: Likewise.
6384 * a-stzmap.ads: Likewise.
6385 * a-stzsea.adb: Likewise.
6386 * a-stzsea.ads: Likewise.
6387 * a-stzsup.adb: Likewise.
6388 * a-stzsup.ads: Likewise.
6389 * a-stzunb.adb: Likewise.
6390 * a-stzunb.ads: Likewise.
6391 * a-suteio.adb: Likewise.
6392 * a-suteio.ads: Likewise.
6393 * a-swbwha.adb: Likewise.
6394 * a-swmwco.ads: Likewise.
6395 * a-swunau.adb: Likewise.
6396 * a-swunau.ads: Likewise.
6397 * a-swuwha.adb: Likewise.
6398 * a-swuwti.adb: Likewise.
6399 * a-swuwti.ads: Likewise.
6400 * a-sytaco.adb: Likewise.
6401 * a-sytaco.ads: Likewise.
6402 * a-szbzha.adb: Likewise.
6403 * a-szmzco.ads: Likewise.
6404 * a-szunau.adb: Likewise.
6405 * a-szunau.ads: Likewise.
6406 * a-szuzha.adb: Likewise.
6407 * a-szuzti.adb: Likewise.
6408 * a-szuzti.ads: Likewise.
6409 * a-tags.adb: Likewise.
6410 * a-tags.ads: Likewise.
6411 * a-tasatt.ads: Likewise.
6412 * a-taside.adb: Likewise.
6413 * a-taside.ads: Likewise.
6414 * a-taster.adb: Likewise.
6415 * a-teioed.adb: Likewise.
6416 * a-teioed.ads: Likewise.
6417 * a-textio.adb: Likewise.
6418 * a-textio.ads: Likewise.
6419 * a-tiboio.adb: Likewise.
6420 * a-ticoau.adb: Likewise.
6421 * a-ticoau.ads: Likewise.
6422 * a-ticoio.adb: Likewise.
6423 * a-ticoio.ads: Likewise.
6424 * a-tideau.adb: Likewise.
6425 * a-tideau.ads: Likewise.
6426 * a-tideio.adb: Likewise.
6427 * a-tideio.ads: Likewise.
6428 * a-tienau.adb: Likewise.
6429 * a-tienau.ads: Likewise.
6430 * a-tienio.adb: Likewise.
6431 * a-tienio.ads: Likewise.
6432 * a-tifiio.adb: Likewise.
6433 * a-tifiio.ads: Likewise.
6434 * a-tiflau.adb: Likewise.
6435 * a-tiflau.ads: Likewise.
6436 * a-tiflio.adb: Likewise.
6437 * a-tiflio.ads: Likewise.
6438 * a-tigeau.adb: Likewise.
6439 * a-tigeau.ads: Likewise.
6440 * a-tiinau.adb: Likewise.
6441 * a-tiinau.ads: Likewise.
6442 * a-tiinio.adb: Likewise.
6443 * a-tiinio.ads: Likewise.
6444 * a-timoau.adb: Likewise.
6445 * a-timoau.ads: Likewise.
6446 * a-timoio.adb: Likewise.
6447 * a-timoio.ads: Likewise.
6448 * a-tiocst.adb: Likewise.
6449 * a-tiocst.ads: Likewise.
6450 * a-titest.adb: Likewise.
6451 * a-wichun.adb: Likewise.
6452 * a-wichun.ads: Likewise.
6453 * a-witeio.adb: Likewise.
6454 * a-witeio.ads: Likewise.
6455 * a-wtcoau.adb: Likewise.
6456 * a-wtcoau.ads: Likewise.
6457 * a-wtcoio.adb: Likewise.
6458 * a-wtcstr.adb: Likewise.
6459 * a-wtcstr.ads: Likewise.
6460 * a-wtdeau.adb: Likewise.
6461 * a-wtdeau.ads: Likewise.
6462 * a-wtdeio.adb: Likewise.
6463 * a-wtdeio.ads: Likewise.
6464 * a-wtedit.adb: Likewise.
6465 * a-wtedit.ads: Likewise.
6466 * a-wtenau.adb: Likewise.
6467 * a-wtenau.ads: Likewise.
6468 * a-wtenio.adb: Likewise.
6469 * a-wtenio.ads: Likewise.
6470 * a-wtfiio.adb: Likewise.
6471 * a-wtfiio.ads: Likewise.
6472 * a-wtflau.adb: Likewise.
6473 * a-wtflau.ads: Likewise.
6474 * a-wtflio.adb: Likewise.
6475 * a-wtflio.ads: Likewise.
6476 * a-wtgeau.adb: Likewise.
6477 * a-wtgeau.ads: Likewise.
6478 * a-wtinau.adb: Likewise.
6479 * a-wtinau.ads: Likewise.
6480 * a-wtinio.adb: Likewise.
6481 * a-wtmoau.adb: Likewise.
6482 * a-wtmoau.ads: Likewise.
6483 * a-wtmoio.adb: Likewise.
6484 * a-wtmoio.ads: Likewise.
6485 * a-wttest.adb: Likewise.
6486 * a-wwboio.adb: Likewise.
6487 * a-zchuni.adb: Likewise.
6488 * a-zchuni.ads: Likewise.
6489 * a-ztcoau.adb: Likewise.
6490 * a-ztcoau.ads: Likewise.
6491 * a-ztcoio.adb: Likewise.
6492 * a-ztcstr.adb: Likewise.
6493 * a-ztcstr.ads: Likewise.
6494 * a-ztdeau.adb: Likewise.
6495 * a-ztdeau.ads: Likewise.
6496 * a-ztdeio.adb: Likewise.
6497 * a-ztdeio.ads: Likewise.
6498 * a-ztedit.adb: Likewise.
6499 * a-ztedit.ads: Likewise.
6500 * a-ztenau.adb: Likewise.
6501 * a-ztenau.ads: Likewise.
6502 * a-ztenio.adb: Likewise.
6503 * a-ztenio.ads: Likewise.
6504 * a-ztexio.adb: Likewise.
6505 * a-ztexio.ads: Likewise.
6506 * a-ztfiio.adb: Likewise.
6507 * a-ztfiio.ads: Likewise.
6508 * a-ztflau.adb: Likewise.
6509 * a-ztflau.ads: Likewise.
6510 * a-ztflio.adb: Likewise.
6511 * a-ztflio.ads: Likewise.
6512 * a-ztgeau.adb: Likewise.
6513 * a-ztgeau.ads: Likewise.
6514 * a-ztinau.adb: Likewise.
6515 * a-ztinau.ads: Likewise.
6516 * a-ztinio.adb: Likewise.
6517 * a-ztmoau.adb: Likewise.
6518 * a-ztmoau.ads: Likewise.
6519 * a-ztmoio.adb: Likewise.
6520 * a-ztmoio.ads: Likewise.
6521 * a-zttest.adb: Likewise.
6522 * a-zzboio.adb: Likewise.
6523 * adadecode.c: Likewise.
6524 * adaint.c: Likewise.
6525 * adaint.h: Likewise.
6526 * alloc.ads: Likewise.
6528 * arit64.c: Likewise.
6529 * atree.adb: Likewise.
6530 * atree.ads: Likewise.
6531 * aux-io.c: Likewise.
6533 * casing.adb: Likewise.
6534 * casing.ads: Likewise.
6536 * csets.adb: Likewise.
6537 * csets.ads: Likewise.
6538 * cstreams.c: Likewise.
6539 * ctrl_c.c: Likewise.
6540 * debug.adb: Likewise.
6541 * debug.ads: Likewise.
6542 * dec.ads: Likewise.
6543 * einfo.adb: Likewise.
6544 * einfo.ads: Likewise.
6545 * elists.adb: Likewise.
6546 * elists.ads: Likewise.
6549 * errno.c: Likewise.
6552 * final.c: Likewise.
6553 * fname.adb: Likewise.
6554 * fname.ads: Likewise.
6555 * g-allein.ads: Likewise.
6556 * g-alleve.adb: Likewise.
6557 * g-alleve.ads: Likewise.
6558 * g-altcon.adb: Likewise.
6559 * g-altcon.ads: Likewise.
6560 * g-altive.ads: Likewise.
6561 * g-alveop.adb: Likewise.
6562 * g-alveop.ads: Likewise.
6563 * g-alvety.ads: Likewise.
6564 * g-alvevi.ads: Likewise.
6565 * g-arrspl.adb: Likewise.
6566 * g-arrspl.ads: Likewise.
6567 * g-calend.ads: Likewise.
6568 * g-comlin.adb: Likewise.
6569 * g-debpoo.adb: Likewise.
6570 * g-debpoo.ads: Likewise.
6571 * g-eacodu-vms.adb: Likewise.
6572 * g-eacodu.adb: Likewise.
6573 * g-excact.adb: Likewise.
6574 * g-excact.ads: Likewise.
6575 * g-locfil.adb: Likewise.
6576 * g-os_lib.ads: Likewise.
6577 * g-rannum.adb: Likewise.
6578 * g-rannum.ads: Likewise.
6579 * g-regist.adb: Likewise.
6580 * g-regist.ads: Likewise.
6581 * g-signal.adb: Likewise.
6582 * g-signal.ads: Likewise.
6583 * g-soccon.ads: Likewise.
6584 * g-string.adb: Likewise.
6585 * g-string.ads: Likewise.
6586 * g-strspl.ads: Likewise.
6587 * g-timsta.adb: Likewise.
6588 * g-timsta.ads: Likewise.
6589 * g-trasym-vms-alpha.adb: Likewise.
6590 * g-trasym-vms-ia64.adb: Likewise.
6591 * g-utf_32.adb: Likewise.
6592 * g-utf_32.ads: Likewise.
6593 * g-wistsp.ads: Likewise.
6594 * g-zstspl.ads: Likewise.
6596 * gnatvsn.adb: Likewise.
6597 * gnatvsn.ads: Likewise.
6598 * gsocket.h: Likewise.
6599 * hostparm.ads: Likewise.
6600 * i-c.adb: Likewise.
6601 * i-cexten.ads: Likewise.
6602 * i-cobol.adb: Likewise.
6603 * i-cobol.ads: Likewise.
6604 * i-cpoint.adb: Likewise.
6605 * i-cpoint.ads: Likewise.
6606 * i-cpp.adb: Likewise.
6607 * i-cpp.ads: Likewise.
6608 * i-cstrea-vms.adb: Likewise.
6609 * i-cstrea.adb: Likewise.
6610 * i-cstrea.ads: Likewise.
6611 * i-cstrin.adb: Likewise.
6612 * i-cstrin.ads: Likewise.
6613 * i-forbla-darwin.adb: Likewise.
6614 * i-forbla-unimplemented.ads: Likewise.
6615 * i-forbla.adb: Likewise.
6616 * i-forbla.ads: Likewise.
6617 * i-forlap.ads: Likewise.
6618 * i-fortra.adb: Likewise.
6619 * i-pacdec.adb: Likewise.
6620 * i-pacdec.ads: Likewise.
6621 * i-vxwoio.adb: Likewise.
6622 * i-vxwoio.ads: Likewise.
6623 * indepsw-aix.adb: Likewise.
6624 * indepsw-gnu.adb: Likewise.
6625 * indepsw-mingw.adb: Likewise.
6626 * indepsw.adb: Likewise.
6627 * indepsw.ads: Likewise.
6629 * initialize.c: Likewise.
6630 * interfac.ads: Likewise.
6631 * krunch.adb: Likewise.
6632 * krunch.ads: Likewise.
6633 * lib-list.adb: Likewise.
6634 * lib-sort.adb: Likewise.
6635 * lib.adb: Likewise.
6636 * lib.ads: Likewise.
6638 * math_lib.adb: Likewise.
6639 * memtrack.adb: Likewise.
6640 * mingw32.h: Likewise.
6641 * mkdir.c: Likewise.
6642 * namet-sp.adb: Likewise.
6643 * namet-sp.ads: Likewise.
6644 * namet.adb: Likewise.
6645 * namet.ads: Likewise.
6646 * nlists.adb: Likewise.
6647 * nlists.ads: Likewise.
6648 * opt.adb: Likewise.
6649 * opt.ads: Likewise.
6650 * output.adb: Likewise.
6651 * output.ads: Likewise.
6652 * raise-gcc.c: Likewise.
6653 * raise.c: Likewise.
6654 * raise.h: Likewise.
6655 * repinfo.adb: Likewise.
6656 * repinfo.ads: Likewise.
6657 * repinfo.h: Likewise.
6658 * rident.ads: Likewise.
6659 * s-addima.adb: Likewise.
6660 * s-addima.ads: Likewise.
6661 * s-addope.adb: Likewise.
6662 * s-addope.ads: Likewise.
6663 * s-arit64.adb: Likewise.
6664 * s-arit64.ads: Likewise.
6665 * s-assert.adb: Likewise.
6666 * s-assert.ads: Likewise.
6667 * s-asthan-vms-alpha.adb: Likewise.
6668 * s-asthan.adb: Likewise.
6669 * s-asthan.ads: Likewise.
6670 * s-atacco.adb: Likewise.
6671 * s-atacco.ads: Likewise.
6672 * s-auxdec-empty.adb: Likewise.
6673 * s-auxdec-empty.ads: Likewise.
6674 * s-auxdec-vms_64.ads: Likewise.
6675 * s-auxdec.adb: Likewise.
6676 * s-auxdec.ads: Likewise.
6677 * s-bitops.adb: Likewise.
6678 * s-bitops.ads: Likewise.
6679 * s-boarop.ads: Likewise.
6680 * s-carsi8.adb: Likewise.
6681 * s-carsi8.ads: Likewise.
6682 * s-carun8.adb: Likewise.
6683 * s-carun8.ads: Likewise.
6684 * s-casi16.adb: Likewise.
6685 * s-casi16.ads: Likewise.
6686 * s-casi32.adb: Likewise.
6687 * s-casi32.ads: Likewise.
6688 * s-casi64.adb: Likewise.
6689 * s-casi64.ads: Likewise.
6690 * s-casuti.ads: Likewise.
6691 * s-caun16.adb: Likewise.
6692 * s-caun16.ads: Likewise.
6693 * s-caun32.adb: Likewise.
6694 * s-caun32.ads: Likewise.
6695 * s-caun64.adb: Likewise.
6696 * s-caun64.ads: Likewise.
6697 * s-chepoo.ads: Likewise.
6698 * s-crc32.adb: Likewise.
6699 * s-crc32.ads: Likewise.
6700 * s-crtl.ads: Likewise.
6701 * s-direio.adb: Likewise.
6702 * s-direio.ads: Likewise.
6703 * s-dsaser.ads: Likewise.
6704 * s-except.adb: Likewise.
6705 * s-except.ads: Likewise.
6706 * s-exctab.adb: Likewise.
6707 * s-exctab.ads: Likewise.
6708 * s-exnint.adb: Likewise.
6709 * s-exnint.ads: Likewise.
6710 * s-exnllf.adb: Likewise.
6711 * s-exnllf.ads: Likewise.
6712 * s-exnlli.adb: Likewise.
6713 * s-exnlli.ads: Likewise.
6714 * s-expint.adb: Likewise.
6715 * s-expint.ads: Likewise.
6716 * s-explli.adb: Likewise.
6717 * s-explli.ads: Likewise.
6718 * s-expllu.adb: Likewise.
6719 * s-expllu.ads: Likewise.
6720 * s-expmod.adb: Likewise.
6721 * s-expmod.ads: Likewise.
6722 * s-expuns.adb: Likewise.
6723 * s-expuns.ads: Likewise.
6724 * s-fatflt.ads: Likewise.
6725 * s-fatgen.adb: Likewise.
6726 * s-fatgen.ads: Likewise.
6727 * s-fatlfl.ads: Likewise.
6728 * s-fatllf.ads: Likewise.
6729 * s-fatsfl.ads: Likewise.
6730 * s-ficobl.ads: Likewise.
6731 * s-fileio.adb: Likewise.
6732 * s-fileio.ads: Likewise.
6733 * s-filofl.ads: Likewise.
6734 * s-finimp.adb: Likewise.
6735 * s-finimp.ads: Likewise.
6736 * s-finroo.adb: Likewise.
6737 * s-finroo.ads: Likewise.
6738 * s-fishfl.ads: Likewise.
6739 * s-fore.adb: Likewise.
6740 * s-fore.ads: Likewise.
6741 * s-fvadfl.ads: Likewise.
6742 * s-fvaffl.ads: Likewise.
6743 * s-fvagfl.ads: Likewise.
6744 * s-gearop.adb: Likewise.
6745 * s-gearop.ads: Likewise.
6746 * s-gecobl.adb: Likewise.
6747 * s-gecobl.ads: Likewise.
6748 * s-gecola.adb: Likewise.
6749 * s-gecola.ads: Likewise.
6750 * s-gerebl.adb: Likewise.
6751 * s-gerebl.ads: Likewise.
6752 * s-gerela.adb: Likewise.
6753 * s-gerela.ads: Likewise.
6754 * s-geveop.adb: Likewise.
6755 * s-geveop.ads: Likewise.
6756 * s-gloloc.adb: Likewise.
6757 * s-gloloc.ads: Likewise.
6758 * s-hibaen.ads: Likewise.
6759 * s-imenne.adb: Likewise.
6760 * s-imenne.ads: Likewise.
6761 * s-imgbiu.adb: Likewise.
6762 * s-imgbiu.ads: Likewise.
6763 * s-imgboo.adb: Likewise.
6764 * s-imgboo.ads: Likewise.
6765 * s-imgcha.adb: Likewise.
6766 * s-imgcha.ads: Likewise.
6767 * s-imgdec.adb: Likewise.
6768 * s-imgdec.ads: Likewise.
6769 * s-imgenu.adb: Likewise.
6770 * s-imgenu.ads: Likewise.
6771 * s-imgint.adb: Likewise.
6772 * s-imgint.ads: Likewise.
6773 * s-imgllb.adb: Likewise.
6774 * s-imgllb.ads: Likewise.
6775 * s-imglld.adb: Likewise.
6776 * s-imglld.ads: Likewise.
6777 * s-imglli.adb: Likewise.
6778 * s-imglli.ads: Likewise.
6779 * s-imgllu.adb: Likewise.
6780 * s-imgllu.ads: Likewise.
6781 * s-imgllw.adb: Likewise.
6782 * s-imgllw.ads: Likewise.
6783 * s-imgrea.adb: Likewise.
6784 * s-imgrea.ads: Likewise.
6785 * s-imguns.adb: Likewise.
6786 * s-imguns.ads: Likewise.
6787 * s-imgwch.adb: Likewise.
6788 * s-imgwch.ads: Likewise.
6789 * s-imgwiu.adb: Likewise.
6790 * s-imgwiu.ads: Likewise.
6791 * s-inmaop-dummy.adb: Likewise.
6792 * s-inmaop-vms.adb: Likewise.
6793 * s-inmaop.ads: Likewise.
6794 * s-interr-hwint.adb: Likewise.
6795 * s-interr-sigaction.adb: Likewise.
6796 * s-interr-vms.adb: Likewise.
6797 * s-interr.adb: Likewise.
6798 * s-interr.ads: Likewise.
6799 * s-intman-dummy.adb: Likewise.
6800 * s-intman-mingw.adb: Likewise.
6801 * s-intman-posix.adb: Likewise.
6802 * s-intman-solaris.adb: Likewise.
6803 * s-intman-vms.adb: Likewise.
6804 * s-intman-vms.ads: Likewise.
6805 * s-intman-vxworks.adb: Likewise.
6806 * s-intman-vxworks.ads: Likewise.
6807 * s-intman.ads: Likewise.
6808 * s-io.adb: Likewise.
6809 * s-io.ads: Likewise.
6810 * s-linux-alpha.ads: Likewise.
6811 * s-linux-hppa.ads: Likewise.
6812 * s-linux.ads: Likewise.
6813 * s-maccod.ads: Likewise.
6814 * s-mantis.adb: Likewise.
6815 * s-mantis.ads: Likewise.
6816 * s-mastop-irix.adb: Likewise.
6817 * s-mastop.adb: Likewise.
6818 * s-mastop.ads: Likewise.
6819 * s-memcop.ads: Likewise.
6820 * s-memory-mingw.adb: Likewise.
6821 * s-memory.adb: Likewise.
6822 * s-memory.ads: Likewise.
6823 * s-os_lib.ads: Likewise.
6824 * s-oscons-tmplt.c: Likewise.
6825 * s-osinte-aix.adb: Likewise.
6826 * s-osinte-darwin.adb: Likewise.
6827 * s-osinte-freebsd.adb: Likewise.
6828 * s-osinte-irix.adb: Likewise.
6829 * s-osinte-lynxos-3.adb: Likewise.
6830 * s-osinte-rtems.ads: Likewise.
6831 * s-osinte-tru64.adb: Likewise.
6832 * s-osinte-vxworks-kernel.adb: Likewise.
6833 * s-osinte-vxworks.adb: Likewise.
6834 * s-osprim-mingw.adb: Likewise.
6835 * s-osprim-posix.adb: Likewise.
6836 * s-osprim-solaris.adb: Likewise.
6837 * s-osprim-unix.adb: Likewise.
6838 * s-osprim-vms.adb: Likewise.
6839 * s-osprim-vms.ads: Likewise.
6840 * s-osprim-vxworks.adb: Likewise.
6841 * s-osprim.ads: Likewise.
6842 * s-pack03.adb: Likewise.
6843 * s-pack03.ads: Likewise.
6844 * s-pack05.adb: Likewise.
6845 * s-pack05.ads: Likewise.
6846 * s-pack06.adb: Likewise.
6847 * s-pack06.ads: Likewise.
6848 * s-pack07.adb: Likewise.
6849 * s-pack07.ads: Likewise.
6850 * s-pack09.adb: Likewise.
6851 * s-pack09.ads: Likewise.
6852 * s-pack10.adb: Likewise.
6853 * s-pack10.ads: Likewise.
6854 * s-pack11.adb: Likewise.
6855 * s-pack11.ads: Likewise.
6856 * s-pack12.adb: Likewise.
6857 * s-pack12.ads: Likewise.
6858 * s-pack13.adb: Likewise.
6859 * s-pack13.ads: Likewise.
6860 * s-pack14.adb: Likewise.
6861 * s-pack14.ads: Likewise.
6862 * s-pack15.adb: Likewise.
6863 * s-pack15.ads: Likewise.
6864 * s-pack17.adb: Likewise.
6865 * s-pack17.ads: Likewise.
6866 * s-pack18.adb: Likewise.
6867 * s-pack18.ads: Likewise.
6868 * s-pack19.adb: Likewise.
6869 * s-pack19.ads: Likewise.
6870 * s-pack20.adb: Likewise.
6871 * s-pack20.ads: Likewise.
6872 * s-pack21.adb: Likewise.
6873 * s-pack21.ads: Likewise.
6874 * s-pack22.adb: Likewise.
6875 * s-pack22.ads: Likewise.
6876 * s-pack23.adb: Likewise.
6877 * s-pack23.ads: Likewise.
6878 * s-pack24.adb: Likewise.
6879 * s-pack24.ads: Likewise.
6880 * s-pack25.adb: Likewise.
6881 * s-pack25.ads: Likewise.
6882 * s-pack26.adb: Likewise.
6883 * s-pack26.ads: Likewise.
6884 * s-pack27.adb: Likewise.
6885 * s-pack27.ads: Likewise.
6886 * s-pack28.adb: Likewise.
6887 * s-pack28.ads: Likewise.
6888 * s-pack29.adb: Likewise.
6889 * s-pack29.ads: Likewise.
6890 * s-pack30.adb: Likewise.
6891 * s-pack30.ads: Likewise.
6892 * s-pack31.adb: Likewise.
6893 * s-pack31.ads: Likewise.
6894 * s-pack33.adb: Likewise.
6895 * s-pack33.ads: Likewise.
6896 * s-pack34.adb: Likewise.
6897 * s-pack34.ads: Likewise.
6898 * s-pack35.adb: Likewise.
6899 * s-pack35.ads: Likewise.
6900 * s-pack36.adb: Likewise.
6901 * s-pack36.ads: Likewise.
6902 * s-pack37.adb: Likewise.
6903 * s-pack37.ads: Likewise.
6904 * s-pack38.adb: Likewise.
6905 * s-pack38.ads: Likewise.
6906 * s-pack39.adb: Likewise.
6907 * s-pack39.ads: Likewise.
6908 * s-pack40.adb: Likewise.
6909 * s-pack40.ads: Likewise.
6910 * s-pack41.adb: Likewise.
6911 * s-pack41.ads: Likewise.
6912 * s-pack42.adb: Likewise.
6913 * s-pack42.ads: Likewise.
6914 * s-pack43.adb: Likewise.
6915 * s-pack43.ads: Likewise.
6916 * s-pack44.adb: Likewise.
6917 * s-pack44.ads: Likewise.
6918 * s-pack45.adb: Likewise.
6919 * s-pack45.ads: Likewise.
6920 * s-pack46.adb: Likewise.
6921 * s-pack46.ads: Likewise.
6922 * s-pack47.adb: Likewise.
6923 * s-pack47.ads: Likewise.
6924 * s-pack48.adb: Likewise.
6925 * s-pack48.ads: Likewise.
6926 * s-pack49.adb: Likewise.
6927 * s-pack49.ads: Likewise.
6928 * s-pack50.adb: Likewise.
6929 * s-pack50.ads: Likewise.
6930 * s-pack51.adb: Likewise.
6931 * s-pack51.ads: Likewise.
6932 * s-pack52.adb: Likewise.
6933 * s-pack52.ads: Likewise.
6934 * s-pack53.adb: Likewise.
6935 * s-pack53.ads: Likewise.
6936 * s-pack54.adb: Likewise.
6937 * s-pack54.ads: Likewise.
6938 * s-pack55.adb: Likewise.
6939 * s-pack55.ads: Likewise.
6940 * s-pack56.adb: Likewise.
6941 * s-pack56.ads: Likewise.
6942 * s-pack57.adb: Likewise.
6943 * s-pack57.ads: Likewise.
6944 * s-pack58.adb: Likewise.
6945 * s-pack58.ads: Likewise.
6946 * s-pack59.adb: Likewise.
6947 * s-pack59.ads: Likewise.
6948 * s-pack60.adb: Likewise.
6949 * s-pack60.ads: Likewise.
6950 * s-pack61.adb: Likewise.
6951 * s-pack61.ads: Likewise.
6952 * s-pack62.adb: Likewise.
6953 * s-pack62.ads: Likewise.
6954 * s-pack63.adb: Likewise.
6955 * s-pack63.ads: Likewise.
6956 * s-parame-ae653.ads: Likewise.
6957 * s-parame-hpux.ads: Likewise.
6958 * s-parame-rtems.adb: Likewise.
6959 * s-parame-vms-alpha.ads: Likewise.
6960 * s-parame-vms-ia64.ads: Likewise.
6961 * s-parame-vms-restrict.ads: Likewise.
6962 * s-parame-vxworks.adb: Likewise.
6963 * s-parame-vxworks.ads: Likewise.
6964 * s-parame.adb: Likewise.
6965 * s-parame.ads: Likewise.
6966 * s-parint.adb: Likewise.
6967 * s-parint.ads: Likewise.
6968 * s-pooglo.adb: Likewise.
6969 * s-pooglo.ads: Likewise.
6970 * s-pooloc.adb: Likewise.
6971 * s-pooloc.ads: Likewise.
6972 * s-poosiz.adb: Likewise.
6973 * s-poosiz.ads: Likewise.
6974 * s-powtab.ads: Likewise.
6975 * s-proinf-irix-athread.adb: Likewise.
6976 * s-proinf-irix-athread.ads: Likewise.
6977 * s-proinf.adb: Likewise.
6978 * s-proinf.ads: Likewise.
6979 * s-purexc.ads: Likewise.
6980 * s-rannum.adb: Likewise.
6981 * s-rannum.ads: Likewise.
6982 * s-restri.adb: Likewise.
6983 * s-restri.ads: Likewise.
6984 * s-rident.ads: Likewise.
6985 * s-rpc.adb: Likewise.
6986 * s-rpc.ads: Likewise.
6987 * s-scaval.adb: Likewise.
6988 * s-scaval.ads: Likewise.
6989 * s-secsta.adb: Likewise.
6990 * s-secsta.ads: Likewise.
6991 * s-sequio.adb: Likewise.
6992 * s-sequio.ads: Likewise.
6993 * s-shasto.adb: Likewise.
6994 * s-shasto.ads: Likewise.
6995 * s-soflin.adb: Likewise.
6996 * s-soflin.ads: Likewise.
6997 * s-solita.adb: Likewise.
6998 * s-solita.ads: Likewise.
6999 * s-sopco3.adb: Likewise.
7000 * s-sopco3.ads: Likewise.
7001 * s-sopco4.adb: Likewise.
7002 * s-sopco4.ads: Likewise.
7003 * s-sopco5.adb: Likewise.
7004 * s-sopco5.ads: Likewise.
7005 * s-stache.adb: Likewise.
7006 * s-stache.ads: Likewise.
7007 * s-stalib.adb: Likewise.
7008 * s-stalib.ads: Likewise.
7009 * s-stausa.adb: Likewise.
7010 * s-stausa.ads: Likewise.
7011 * s-stchop-limit.ads: Likewise.
7012 * s-stchop-rtems.adb: Likewise.
7013 * s-stchop-vxworks.adb: Likewise.
7014 * s-stchop.adb: Likewise.
7015 * s-stchop.ads: Likewise.
7016 * s-stoele.adb: Likewise.
7017 * s-stoele.ads: Likewise.
7018 * s-stopoo.adb: Likewise.
7019 * s-stopoo.ads: Likewise.
7020 * s-stratt.adb: Likewise.
7021 * s-stratt.ads: Likewise.
7022 * s-strcom.adb: Likewise.
7023 * s-strcom.ads: Likewise.
7024 * s-string.adb: Likewise.
7025 * s-string.ads: Likewise.
7026 * s-strops.adb: Likewise.
7027 * s-strops.ads: Likewise.
7028 * s-strxdr.adb: Likewise.
7029 * s-ststop.adb: Likewise.
7030 * s-ststop.ads: Likewise.
7031 * s-taasde.adb: Likewise.
7032 * s-taasde.ads: Likewise.
7033 * s-tadeca.adb: Likewise.
7034 * s-tadeca.ads: Likewise.
7035 * s-tadert.adb: Likewise.
7036 * s-tadert.ads: Likewise.
7037 * s-taenca.adb: Likewise.
7038 * s-taenca.ads: Likewise.
7039 * s-taprob.ads: Likewise.
7040 * s-taprop-dummy.adb: Likewise.
7041 * s-taprop-hpux-dce.adb: Likewise.
7042 * s-taprop-irix.adb: Likewise.
7043 * s-taprop-linux.adb: Likewise.
7044 * s-taprop-lynxos.adb: Likewise.
7045 * s-taprop-mingw.adb: Likewise.
7046 * s-taprop-posix.adb: Likewise.
7047 * s-taprop-solaris.adb: Likewise.
7048 * s-taprop-tru64.adb: Likewise.
7049 * s-taprop-vms.adb: Likewise.
7050 * s-taprop-vxworks.adb: Likewise.
7051 * s-taprop.ads: Likewise.
7052 * s-tarest.adb: Likewise.
7053 * s-tarest.ads: Likewise.
7054 * s-tasdeb.adb: Likewise.
7055 * s-tasdeb.ads: Likewise.
7056 * s-tasinf-irix.ads: Likewise.
7057 * s-tasinf-linux.adb: Likewise.
7058 * s-tasinf-linux.ads: Likewise.
7059 * s-tasinf-mingw.adb: Likewise.
7060 * s-tasinf-mingw.ads: Likewise.
7061 * s-tasinf-solaris.adb: Likewise.
7062 * s-tasinf-solaris.ads: Likewise.
7063 * s-tasinf-tru64.ads: Likewise.
7064 * s-tasinf.adb: Likewise.
7065 * s-tasinf.ads: Likewise.
7066 * s-tasini.adb: Likewise.
7067 * s-tasini.ads: Likewise.
7068 * s-taskin.adb: Likewise.
7069 * s-taskin.ads: Likewise.
7070 * s-taspri-dummy.ads: Likewise.
7071 * s-taspri-hpux-dce.ads: Likewise.
7072 * s-taspri-mingw.ads: Likewise.
7073 * s-taspri-solaris.ads: Likewise.
7074 * s-taspri-tru64.ads: Likewise.
7075 * s-taspri-vms.ads: Likewise.
7076 * s-taspri-vxworks.ads: Likewise.
7077 * s-tasque.adb: Likewise.
7078 * s-tasque.ads: Likewise.
7079 * s-tasren.adb: Likewise.
7080 * s-tasren.ads: Likewise.
7081 * s-tasres.ads: Likewise.
7082 * s-tassta.adb: Likewise.
7083 * s-tassta.ads: Likewise.
7084 * s-tasuti.adb: Likewise.
7085 * s-tasuti.ads: Likewise.
7086 * s-tfsetr-default.adb: Likewise.
7087 * s-tfsetr-vxworks.adb: Likewise.
7088 * s-tpinop.adb: Likewise.
7089 * s-tpinop.ads: Likewise.
7090 * s-tpoben.adb: Likewise.
7091 * s-tpoben.ads: Likewise.
7092 * s-tpobop.adb: Likewise.
7093 * s-tpobop.ads: Likewise.
7094 * s-tpopde-vms.adb: Likewise.
7095 * s-tpopde-vms.ads: Likewise.
7096 * s-tpopsp-lynxos.adb: Likewise.
7097 * s-tpopsp-posix-foreign.adb: Likewise.
7098 * s-tpopsp-posix.adb: Likewise.
7099 * s-tpopsp-solaris.adb: Likewise.
7100 * s-tpopsp-vxworks.adb: Likewise.
7101 * s-tporft.adb: Likewise.
7102 * s-tposen.adb: Likewise.
7103 * s-tposen.ads: Likewise.
7104 * s-traceb.adb: Likewise.
7105 * s-traceb.ads: Likewise.
7106 * s-traces-default.adb: Likewise.
7107 * s-traces.adb: Likewise.
7108 * s-traces.ads: Likewise.
7109 * s-traent-vms.adb: Likewise.
7110 * s-traent-vms.ads: Likewise.
7111 * s-traent.adb: Likewise.
7112 * s-traent.ads: Likewise.
7113 * s-trafor-default.adb: Likewise.
7114 * s-trafor-default.ads: Likewise.
7115 * s-tratas-default.adb: Likewise.
7116 * s-tratas.adb: Likewise.
7117 * s-tratas.ads: Likewise.
7118 * s-unstyp.ads: Likewise.
7119 * s-utf_32.adb: Likewise.
7120 * s-utf_32.ads: Likewise.
7121 * s-vaflop-vms-alpha.adb: Likewise.
7122 * s-vaflop.adb: Likewise.
7123 * s-vaflop.ads: Likewise.
7124 * s-valboo.adb: Likewise.
7125 * s-valboo.ads: Likewise.
7126 * s-valcha.adb: Likewise.
7127 * s-valcha.ads: Likewise.
7128 * s-valdec.adb: Likewise.
7129 * s-valdec.ads: Likewise.
7130 * s-valenu.adb: Likewise.
7131 * s-valenu.ads: Likewise.
7132 * s-valint.adb: Likewise.
7133 * s-valint.ads: Likewise.
7134 * s-vallld.adb: Likewise.
7135 * s-vallld.ads: Likewise.
7136 * s-vallli.adb: Likewise.
7137 * s-vallli.ads: Likewise.
7138 * s-valllu.adb: Likewise.
7139 * s-valllu.ads: Likewise.
7140 * s-valrea.adb: Likewise.
7141 * s-valrea.ads: Likewise.
7142 * s-valuns.adb: Likewise.
7143 * s-valuns.ads: Likewise.
7144 * s-valuti.adb: Likewise.
7145 * s-valuti.ads: Likewise.
7146 * s-valwch.adb: Likewise.
7147 * s-valwch.ads: Likewise.
7148 * s-veboop.adb: Likewise.
7149 * s-veboop.ads: Likewise.
7150 * s-vector.ads: Likewise.
7151 * s-vercon.adb: Likewise.
7152 * s-vercon.ads: Likewise.
7153 * s-vmexta.adb: Likewise.
7154 * s-vmexta.ads: Likewise.
7155 * s-vxwext-kernel.ads: Likewise.
7156 * s-vxwext-rtp.adb: Likewise.
7157 * s-vxwext-rtp.ads: Likewise.
7158 * s-vxwext.ads: Likewise.
7159 * s-vxwork-arm.ads: Likewise.
7160 * s-vxwork-m68k.ads: Likewise.
7161 * s-vxwork-mips.ads: Likewise.
7162 * s-vxwork-ppc.ads: Likewise.
7163 * s-vxwork-sparcv9.ads: Likewise.
7164 * s-vxwork-x86.ads: Likewise.
7165 * s-wchcnv.adb: Likewise.
7166 * s-wchcnv.ads: Likewise.
7167 * s-wchcon.adb: Likewise.
7168 * s-wchcon.ads: Likewise.
7169 * s-wchjis.adb: Likewise.
7170 * s-wchjis.ads: Likewise.
7171 * s-wchstw.adb: Likewise.
7172 * s-wchstw.ads: Likewise.
7173 * s-wchwts.adb: Likewise.
7174 * s-wchwts.ads: Likewise.
7175 * s-widboo.adb: Likewise.
7176 * s-widboo.ads: Likewise.
7177 * s-widcha.adb: Likewise.
7178 * s-widcha.ads: Likewise.
7179 * s-widenu.adb: Likewise.
7180 * s-widenu.ads: Likewise.
7181 * s-widlli.adb: Likewise.
7182 * s-widlli.ads: Likewise.
7183 * s-widllu.adb: Likewise.
7184 * s-widllu.ads: Likewise.
7185 * s-widwch.adb: Likewise.
7186 * s-widwch.ads: Likewise.
7187 * s-win32.ads: Likewise.
7188 * s-winext.ads: Likewise.
7189 * s-wwdcha.adb: Likewise.
7190 * s-wwdcha.ads: Likewise.
7191 * s-wwdenu.adb: Likewise.
7192 * s-wwdenu.ads: Likewise.
7193 * s-wwdwch.adb: Likewise.
7194 * s-wwdwch.ads: Likewise.
7195 * scans.adb: Likewise.
7196 * scans.ads: Likewise.
7197 * seh_init.c: Likewise.
7198 * sfn_scan.adb: Likewise.
7199 * sinfo.adb: Likewise.
7200 * sinfo.ads: Likewise.
7201 * sinput.adb: Likewise.
7202 * sinput.ads: Likewise.
7203 * snames.adb: Likewise.
7204 * snames.ads: Likewise.
7205 * socket.c: Likewise.
7206 * stand.adb: Likewise.
7207 * stand.ads: Likewise.
7208 * stringt.adb: Likewise.
7209 * stringt.ads: Likewise.
7210 * sysdep.c: Likewise.
7211 * system-aix.ads: Likewise.
7212 * system-darwin-ppc.ads: Likewise.
7213 * system-darwin-x86.ads: Likewise.
7214 * system-darwin-x86_64.ads: Likewise.
7215 * system-freebsd-x86.ads: Likewise.
7216 * system-hpux-ia64.ads: Likewise.
7217 * system-hpux.ads: Likewise.
7218 * system-irix-n32.ads: Likewise.
7219 * system-irix-n64.ads: Likewise.
7220 * system-irix-o32.ads: Likewise.
7221 * system-linux-alpha.ads: Likewise.
7222 * system-linux-hppa.ads: Likewise.
7223 * system-linux-ia64.ads: Likewise.
7224 * system-linux-mips.ads: Likewise.
7225 * system-linux-mipsel.ads: Likewise.
7226 * system-linux-ppc.ads: Likewise.
7227 * system-linux-ppc64.ads: Likewise.
7228 * system-linux-s390.ads: Likewise.
7229 * system-linux-s390x.ads: Likewise.
7230 * system-linux-sh4.ads: Likewise.
7231 * system-linux-sparc.ads: Likewise.
7232 * system-linux-sparcv9.ads: Likewise.
7233 * system-linux-x86.ads: Likewise.
7234 * system-linux-x86_64.ads: Likewise.
7235 * system-lynxos-ppc.ads: Likewise.
7236 * system-lynxos-x86.ads: Likewise.
7237 * system-mingw-x86_64.ads: Likewise.
7238 * system-mingw.ads: Likewise.
7239 * system-rtems.ads: Likewise.
7240 * system-solaris-sparc.ads: Likewise.
7241 * system-solaris-sparcv9.ads: Likewise.
7242 * system-solaris-x86.ads: Likewise.
7243 * system-solaris-x86_64.ads: Likewise.
7244 * system-tru64.ads: Likewise.
7245 * system-vms-ia64.ads: Likewise.
7246 * system-vms-zcx.ads: Likewise.
7247 * system-vms.ads: Likewise.
7248 * system-vms_64.ads: Likewise.
7249 * system-vxworks-arm.ads: Likewise.
7250 * system-vxworks-m68k.ads: Likewise.
7251 * system-vxworks-mips.ads: Likewise.
7252 * system-vxworks-ppc.ads: Likewise.
7253 * system-vxworks-sparcv9.ads: Likewise.
7254 * system-vxworks-x86.ads: Likewise.
7255 * system.ads: Likewise.
7256 * table.adb: Likewise.
7257 * table.ads: Likewise.
7258 * targext.c: Likewise.
7259 * targparm.ads: Likewise.
7260 * tree_in.adb: Likewise.
7261 * tree_in.ads: Likewise.
7262 * tree_io.adb: Likewise.
7263 * tree_io.ads: Likewise.
7264 * types.adb: Likewise.
7265 * types.ads: Likewise.
7266 * uintp.adb: Likewise.
7267 * uintp.ads: Likewise.
7268 * uname.adb: Likewise.
7269 * uname.ads: Likewise.
7270 * urealp.adb: Likewise.
7271 * urealp.ads: Likewise.
7272 * vx_stack_info.c: Likewise.
7273 * widechar.adb: Likewise.
7274 * widechar.ads: Likewise.
7275 * exp_attr.adb: Change copyright header to refer to version
7276 3 of the GNU General Public License and to point readers at the
7277 COPYING3 file and the FSF's license web page.
7278 * sem.adb: Likewise.
7279 * sem_attr.ads: Likewise.
7280 * freeze.adb: Likewise.
7281 * freeze.ads: Likewise.
7282 * errout.ads: Likewise.
7283 * erroutc.adb: Likewise.
7284 * exp_ch11.ads: Likewise.
7286 2009-04-09 Jakub Jelinek <jakub@redhat.com>
7288 * config-lang.in: Change copyright header to refer to version
7289 3 of the GNU General Public License and to point readers at the
7290 COPYING3 file and the FSF's license web page.
7291 * gcc-interface/trans.c: Likewise.
7292 * gnathtml.pl: Likewise.
7293 * gcc-interface/ada.h: Likewise. Remove runtime exception.
7294 * gcc-interface/gigi.h: Likewise.
7295 * gcc-interface/misc.c: Likewise.
7296 * gcc-interface/targtyps.c: Likewise.
7298 2009-04-09 Nicolas Setton <setton@adacore.com>
7300 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
7302 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
7305 2009-04-09 Bob Duff <duff@adacore.com>
7307 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
7308 internally-generated nodes related to select statements to avoid
7309 confusing the debugger.
7311 2009-04-09 Pascal Obry <obry@adacore.com>
7313 * make.adb: Ensure that all linker arguments are duplicated.
7315 2009-04-09 Robert Dewar <dewar@adacore.com>
7317 * sem_ch5.adb: Minor reformatting
7319 2009-04-09 Vincent Celier <celier@adacore.com>
7322 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
7323 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
7324 New qualifier /LXDEBUG=nnn for -gnatDnnn
7328 Update documentation for VMS qualifiers equivalent to -gnatGnn and
7331 2009-04-09 Nicolas Setton <setton@adacore.com>
7333 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
7334 to match layout of siginfo_t in sys/signal.h.
7336 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
7338 2009-04-09 Thomas Quinot <quinot@adacore.com>
7340 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
7342 2009-04-09 Nicolas Setton <setton@adacore.com>
7344 * s-oscons-tmplt.c: Allow long lines in the generated spec.
7345 Add generation of Darwin-specific constants needed when binding to the
7348 2009-04-09 Robert Dewar <dewar@adacore.com>
7351 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
7352 when no invalid values exist, Avoid duplicate read of atomic variable.
7354 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
7355 (Standard_Unsigned): Set Is_Known_Valid
7357 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
7358 subtype declaration if no constraint.
7359 (Set_Modular_Size): Set Is_Known_Valid if appropriate
7360 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
7362 2009-04-09 Robert Dewar <dewar@adacore.com>
7364 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
7365 switch.ads: for numeric switches, an optional equal sign is always
7368 2009-04-09 Vincent Celier <celier@adacore.com>
7370 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
7371 the case of file names is not significant.
7373 2009-04-09 Vincent Celier <celier@adacore.com>
7375 * errout.adb: Remove dependency on package Style
7377 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
7380 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
7383 * errutil.adb, par.adb: Import Stylesw
7385 2009-04-09 Arnaud Charlet <charlet@adacore.com>
7387 * opt.ads: Fix typos.
7389 2009-04-09 Robert Dewar <dewar@adacore.com>
7391 * einfo.adb: Minor reformatting
7393 2009-04-09 Robert Dewar <dewar@adacore.com>
7395 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
7398 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
7400 2009-04-09 Robert Dewar <dewar@adacore.com>
7402 * g-comver.adb: Minor reformatting.
7404 2009-04-09 Thomas Quinot <quinot@adacore.com>
7406 * lib-load.ads (Load_Unit): Update documentation.
7408 2009-04-09 Ed Schonberg <schonberg@adacore.com>
7410 * lib-load.adb (Load_Unit): When loading the parent of a child unit
7411 named in a with_clause, retain the with_clause to preserve a
7412 limited_with indication.
7414 2009-04-09 Robert Dewar <dewar@adacore.com>
7416 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
7417 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
7418 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
7419 possible to replace an OR of two separate tests.
7421 2009-04-09 Robert Dewar <dewar@adacore.com>
7423 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
7426 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
7427 warning status as well.
7429 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
7431 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
7434 * bindusg.adb, usage.adb: Update line for -gnatm switch
7436 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
7439 2009-04-09 Robert Dewar <dewar@adacore.com>
7441 * sem_ch10.adb: Minor reformatting.
7443 2009-04-09 Bob Duff <duff@adacore.com>
7445 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
7446 Set Sloc of generated nodes for calls to Undefer_Aborts and
7447 Save_Occurrence to No_Location, so the debugger ignores them and
7448 therefore does not jump back and forth when single stepping.
7450 2009-04-09 Robert Dewar <dewar@adacore.com>
7452 * switch-b.adb: Minor reformatting.
7454 2009-04-09 Robert Dewar <dewar@adacore.com>
7456 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
7457 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
7458 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
7459 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
7460 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
7461 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
7462 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
7463 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
7464 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
7465 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
7466 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
7468 2009-04-09 Robert Dewar <dewar@adacore.com>
7470 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
7472 * atree.h: Add Elist26
7474 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
7477 2009-04-09 Javier Miranda <miranda@adacore.com>
7479 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
7480 retrieve from the Dispatch_Table_Wrappers list the external name.
7481 Addition of documentation.
7482 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
7483 used to export secondary dispatch tables (in the previous version of
7484 the frontend only primary dispatch tables were exported). Addition of
7486 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
7487 dispatch table of a given tagged type.
7488 (Make_Tags): Modified to import secondary dispatch tables.
7490 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
7491 (Constant_Redeclaration): Code cleanup.
7493 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
7494 Dispatch_Table_Wrappers. Update documentation.
7496 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
7497 Renamed to Dispatch_Table_Wrappers.
7499 * sem_util.adb (Collect_Interface_Components): Improve handling of
7502 * atree.ads (Elist26, Set_Elist26): New subprograms
7504 * atree.adb (Elist26, Set_Elist26): New subprograms
7506 2009-04-09 Javier Miranda <miranda@adacore.com>
7508 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
7509 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
7512 2009-04-09 Robert Dewar <dewar@adacore.com>
7514 * s-direio.adb: Minor reformatting
7516 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
7518 2009-04-09 Robert Dewar <dewar@adacore.com>
7520 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
7522 2009-04-09 Pascal Obry <obry@adacore.com>
7524 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
7525 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
7526 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
7527 a-filico.ads: Add some missing overriding keywords.
7529 2009-04-09 Pascal Obry <obry@adacore.com>
7531 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
7532 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
7533 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
7536 2009-04-09 Ed Schonberg <schonberg@adacore.com>
7538 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
7539 missing overriding indicator if the new declaration is not seen as
7542 2009-04-09 Thomas Quinot <quinot@adacore.com>
7544 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
7545 overflows in computation of bounds.
7547 2009-04-09 Pascal Obry <obry@adacore.com>
7549 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
7552 2009-04-09 Robert Dewar <dewar@adacore.com>
7554 * sem_attr.adb (Check_Stream_Attribute): Check violation of
7555 restriction No_Streams
7557 * gnat_rm.texi: Clarify No_Streams restriction
7559 * g-socket.adb: Minor reformatting.
7561 2009-04-09 Thomas Quinot <quinot@adacore.com>
7563 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
7565 2009-04-09 Geert Bosch <bosch@adacore.com>
7567 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
7568 (Set_Result): Likewise.
7569 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
7570 conversion, as required by RM 4.6(31).
7572 2009-04-08 Robert Dewar <dewar@adacore.com>
7574 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
7577 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
7580 2009-04-08 Robert Dewar <dewar@adacore.com>
7582 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
7583 No_Local_Allocators restriction preventing local instantiation.
7585 2009-04-08 Thomas Quinot <quinot@adacore.com>
7587 * sem_eval.adb: Minor comment fix
7589 2009-04-08 Thomas Quinot <quinot@adacore.com>
7591 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
7592 New limited controlled type used to automate the initialization and
7593 finalization of the sockets implementation.
7594 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
7596 2009-04-08 Vincent Celier <celier@adacore.com>
7598 * prj-attr.adb: New read-only project-level attribute Project_Dir
7600 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
7601 read-only attribute of the same name.
7602 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
7603 (Recursive_Process): Ditto
7605 * snames.adb: Add new standard name Project_Dir
7607 * snames.ads: Add new standard name Project_Dir
7609 2009-04-08 Thomas Quinot <quinot@adacore.com>
7611 * checks.adb: Minor reformatting
7613 2009-04-08 Vincent Celier <celier@adacore.com>
7615 * vms_data.ads: Add documentation for new style keyword
7616 OVERRIDING_INDICATORS
7618 2009-04-08 Robert Dewar <dewar@adacore.com>
7620 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
7621 spec is in the current unit.
7623 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7625 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
7628 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
7630 2009-04-08 Vincent Celier <celier@adacore.com>
7632 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
7634 2009-04-08 Thomas Quinot <quinot@adacore.com>
7636 * checks.ads: Minor reformatting
7638 2009-04-08 Robert Dewar <dewar@adacore.com>
7640 * gnat_rm.texi: Update documentation of pragma Obsolescent
7642 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
7643 be omitted, and allow Entity parameter to be omitted.
7645 2009-04-08 Thomas Quinot <quinot@adacore.com>
7647 * exp_util.adb: Minor comment fix
7649 2009-04-08 Robert Dewar <dewar@adacore.com>
7651 * g-socket.ads: Fix bad syntax in pragma Obsolescent
7653 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
7654 argument with no identifier following one that has an identifier. Was
7655 missed in some cases.
7657 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
7659 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
7661 * snames.adb: Add Name_Policy
7663 * snames.ads: Add Name_Policy
7665 2009-04-08 Robert Dewar <dewar@adacore.com>
7667 * gnat_rm.texi: Minor reformatting
7669 * par-ch2.adb: Minor reformatting
7671 2009-04-08 Robert Dewar <dewar@adacore.com>
7673 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
7675 2009-04-08 Robert Dewar <dewar@adacore.com>
7677 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
7678 properly in the presence of Remote_Types or Remote_Call_Interface.
7680 * sem_util.adb: Add comment.
7682 2009-04-08 Robert Dewar <dewar@adacore.com>
7684 * ug_words: Add /ASSUME_VALID for -gnatB
7686 * vms_data.ads: Add /ASSUME_VALID for -gnatB
7688 * sem_cat.adb: Add clarifying commment
7690 * a-direio.ads (Bytes): Make sure value is non-zero
7692 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7694 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
7695 that does not come from source, check for a rewritten function call in
7696 prefixed notation before other forms of rewriting.
7698 2009-04-08 Robert Dewar <dewar@adacore.com>
7700 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
7701 these are now obsolescent units used only for bootrapping with an
7704 2009-04-08 Robert Dewar <dewar@adacore.com>
7706 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
7708 * sem_ch3.adb: Minor comment updates
7710 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7712 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
7713 that come from source.
7715 2009-04-08 Tristan Gingold <gingold@adacore.com>
7717 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
7718 * gcc-interface/decl.c (prepend_attributes): New case
7719 Pragma_Thread_Local_Storage.
7720 * gcc-interface/utils.c (process_attributes): New case
7721 ATTR_THREAD_LOCAL_STORAGE.
7723 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7725 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
7726 by the back-end if it contains a call to a subprogram without a
7727 previous spec that is declared in the same unit.
7729 * errout.ads: Update comments on uses of dirs
7731 2009-04-08 Robert Dewar <dewar@adacore.com>
7733 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
7735 2009-04-08 Tristan Gingold <gingold@adacore.com>
7737 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
7739 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
7741 2009-04-08 Vincent Celier <celier@adacore.com>
7744 (Add_Source): Add the mapping of the unit name to source file name in
7745 the Unit_Sources_HT hash table, if the unit name is not null.
7747 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
7749 * prj.ads (Unit_Sources_Htable): New hash table instantiation
7750 (Project_Tree_Data): New component Unit_Sources_HT
7752 2009-04-08 Thomas Quinot <quinot@adacore.com>
7754 * sem_ch8.adb: Minor reformatting.
7755 Minor code reorganization.
7757 2009-04-08 Robert Dewar <dewar@adacore.com>
7759 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
7760 snames.ads, freeze.adb, par-prag.adb: Add implementation of
7761 pragma Thread_Local_Storage, setting new flag
7762 Has_Pragma_Thread_Local_Storage in corresponding entities.
7764 2009-04-08 Emmanuel Briot <briot@adacore.com>
7766 * prj.ads: Update comment on switches file
7768 * prj-nmsc.adb: Code clean up. Use renaming clauses.
7770 2009-04-08 Robert Dewar <dewar@adacore.com>
7772 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
7774 2009-04-08 Thomas Quinot <quinot@adacore.com>
7776 * ali-util.adb: Minor comment fix
7778 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7780 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
7781 appears in a context clause, and the enclosing package is mentioned in
7782 a limited_with_clause.
7783 (Use_One_Type): Reject clause if type is still incomplete.
7785 2009-04-08 Emmanuel Briot <briot@adacore.com>
7787 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
7788 avoid copies of Source_Data variables when possible, since these
7789 involve calls to memcpy() which are done too many times.
7791 2009-04-08 Robert Dewar <dewar@adacore.com>
7793 * exp_ch4.adb (Expand_Concatenate): Clean up code
7795 2009-04-07 Thomas Quinot <quinot@adacore.com>
7797 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
7798 type for the case of concatenating a constrained array indexed by an
7801 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7803 * sem_ch6.adb (Check_Conformance): when checking conformance of an
7804 operation that overrides an abstract operation inherited from an
7805 interface, return False if only one of the controlling formals is an
7808 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7810 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
7811 mandated by AI05-105.
7813 2009-04-07 Vincent Celier <celier@adacore.com>
7815 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
7817 2009-04-07 Thomas Quinot <quinot@adacore.com>
7819 * usage.adb: Minor fix in usage message.
7821 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
7822 match declaration; the correct subtype is Node_Id, not Entity_Id,
7823 because the expected node kind is an identifier, not a defining
7826 * switch-c.adb: Minor reformatting.
7828 * uintp.adb: Minor reformatting.
7830 2009-04-07 Robert Dewar <dewar@adacore.com>
7832 * exp_ch13.adb: Minor reformatting
7834 2009-04-07 Robert Dewar <dewar@adacore.com>
7836 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
7837 against missing parent.
7839 2009-04-07 Thomas Quinot <quinot@adacore.com>
7841 * xoscons.adb: Minor reformatting
7843 2009-04-07 Robert Dewar <dewar@adacore.com>
7845 * rtsfind.ads: Remove obsolete string concatenation entries
7847 2009-04-07 Robert Dewar <dewar@adacore.com>
7849 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
7851 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7853 * sem_ch10.adb (Check_Body_Required): Handle properly imported
7856 2009-04-07 Gary Dismukes <dismukes@adacore.com>
7858 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
7859 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
7860 is of a scalar or string type then suppress the setting of the
7861 expression to Empty.
7863 * freeze.adb (Warn_Overlay): Also emit the warnings about default
7864 initialization for the cases of scalar and string objects when
7865 Init_Or_Norm_Scalars is True.
7867 2009-04-07 Bob Duff <duff@adacore.com>
7869 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
7871 2009-04-07 Bob Duff <duff@adacore.com>
7873 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
7874 Form parameter of Text_Translation=No allows binary mode for Text_IO
7877 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
7879 2009-04-07 Javier Miranda <miranda@adacore.com>
7881 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
7882 processing the bounds for bit packed arrays or VM target machines.
7884 2009-04-07 Thomas Quinot <quinot@adacore.com>
7886 * g-sothco.ads (Int_Access): Remove extraneous access type (use
7887 anonymous access instead).
7888 (Get_Socket_From_Set): Fix incorrectly reverted formals
7889 Last and Socket to match the underlying C routine.
7891 * g-socket.adb, g-socket.ads
7892 (Get): Use named parameter associations instead of positional ones in
7893 call go Get_Socket_From_Set, since this routine has two formals of the
7895 (Image): New procedure.
7897 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7898 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
7899 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
7900 for type of Arg formal.
7902 * sem_warn.adb: Minor reformatting
7904 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7906 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
7907 over record components.
7909 2009-04-07 Nicolas Roche <roche@adacore.com>
7912 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
7913 has disappeared between VxWorks 6.4 and VxWorks 6.5
7914 In RTP mode use time.h instead of times.h
7916 2009-04-07 Robert Dewar <dewar@adacore.com>
7918 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
7920 2009-04-07 Kevin Pouget <pouget@adacore.com>
7922 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
7923 expanded code for constrained types.
7925 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7927 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
7928 AI05-105: in an object renaming declaration, anonymousness is a name
7931 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
7933 2009-04-07 Arnaud Charlet <charlet@adacore.com>
7935 * g-comlin.adb (Expansion): Fix old regression: also return directory
7936 names when matching.
7938 2009-04-07 Robert Dewar <dewar@adacore.com>
7941 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
7942 (Expand_Concatenate): New name for Expand_Concatenate_String which has
7943 been rewritten to handle all types.
7944 (Expand_Concatenate_Other): Remove
7946 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7948 * lib-xref.adb (Generate_Reference): A default subprogram in an
7949 instance appears within the tree for the instance, but generates an
7950 implicit reference in the ALI.
7952 2009-04-07 Javier Miranda <miranda@adacore.com>
7954 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
7955 derived type that has discriminants, propagate the list of interfaces
7956 to the corresponding new base type. In addition, propagate also
7957 attribute Limited_Present (found working in this patch).
7959 2009-04-07 Robert Dewar <dewar@adacore.com>
7961 * exp_ch4.adb: Rewrite concatenation expansion.
7963 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7965 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
7966 relevant to packages.
7968 2009-04-07 Robert Dewar <dewar@adacore.com>
7970 * sem_attr.adb: Minor reformatting
7972 * sem_ch6.adb: Minor reformatting
7974 2009-04-07 Tristan Gingold <gingold@adacore.com>
7976 * socket.c: Add more protections against S_resolvLib_ macros.
7978 2009-04-07 Thomas Quinot <quinot@adacore.com>
7980 * sem_attr.adb: Minor reformatting
7982 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7984 * sem_ch6.adb (New_Overloaded_Entity): New predicate
7985 Is_Overriding_Alias to handle properly types that inherit two homonym
7986 operations that have distinct dispatch table entries.
7988 2009-04-07 Emmanuel Briot <briot@adacore.com>
7990 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
7991 looking for the end of a parenthesis group
7993 2009-04-07 Tristan Gingold <gingold@adacore.com>
7995 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
7997 * socket.c Don't use resolvLib_ macros if not defined.
7999 2009-04-07 Robert Dewar <dewar@adacore.com>
8001 * g-socket.adb: Minor reformatting.
8003 * g-socthi-mingw.adb: Minor reformatting
8005 * g-sothco.ads: Minor reformatting
8008 (Expand_Concatenate_String): Complete rewrite to generate efficient code
8009 inline instead of relying on external library routines.
8011 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
8012 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
8015 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8018 (Eval_Attribute): for attributes of array objects that are not strings,
8019 attributes are not static if nominal subtype of object is unconstrained.
8021 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8023 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
8024 operations for a type T in an instance do not override each other,
8025 when T is derived from a formal private type, the corresponding
8026 operations inherited by a type derived from T outside
8027 of the instance do not override each other either.
8029 2009-04-07 Robert Dewar <dewar@adacore.com>
8031 (Osint.Fail): Change calling sequence to have one string arg
8032 (Make.Make_Failed): Same change
8033 All callers are adjusted to use concatenation
8035 2009-04-07 Robert Dewar <dewar@adacore.com>
8037 * exp_ch4.adb: Fix documentation typo
8039 2009-04-07 Robert Dewar <dewar@adacore.com>
8041 * tbuild.ads: Minor reformatting
8043 2009-04-07 Javier Miranda <miranda@adacore.com>
8045 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
8046 when compiling under ZFP runtime.
8048 2009-04-07 Robert Dewar <dewar@adacore.com>
8050 * g-comlin.adb: Minor reformatting
8052 2009-04-07 Thomas Quinot <quinot@adacore.com>
8054 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8055 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
8056 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
8057 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
8059 2009-04-07 Robert Dewar <dewar@adacore.com>
8061 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
8063 * opt.ads (Sprint_Line_Limit): New parameter
8065 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
8067 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
8069 * usage.adb: Output information for -gnatGnn -gnatDnn
8071 2009-04-07 Robert Dewar <dewar@adacore.com>
8073 * make.adb: Minor reformatting
8075 2009-04-07 Robert Dewar <dewar@adacore.com>
8077 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
8079 2009-04-07 Robert Dewar <dewar@adacore.com>
8081 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
8083 2009-04-07 Robert Dewar <dewar@adacore.com>
8086 Remove Assume_Valid parameter from In_Subrange_Of calls
8089 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8090 (Is_In_Range): Remove incorrect use of Assume_Valid
8091 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
8094 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8095 (Is_In_Range): Documentation cleanup
8096 (Is_Out_Of_Range): Documentation cleanup
8099 Add documentation for Assume_No_Invalid_Values pragma
8101 * sem_ch12.adb: Minor reformatting
8103 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
8105 * sem_prag.adb: Improve error message.
8107 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
8108 LF/CR no longer recognized as line terminator
8110 * switch.ads: Minor documentation improvement
8112 * vms_data.ads: Minor reformatting
8114 2009-04-07 Robert Dewar <dewar@adacore.com>
8116 * checks.adb (Determine_Range): Add Assume_Valid parameter
8118 * checks.ads (Determine_Range): Add Assume_Valid parameter
8120 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
8121 Is_Null_Loop to suppress warnings in a loop body.
8124 (Rewrite_Comparison): Major rewrite to accomodate invalid values
8127 (Expand_N_Loop_Statement): Delete loop known not to execute
8130 (Assume_No_Invalid_Values): Now set to False, and as documented, this
8131 fully enables the proper handling of invalid values.
8134 New calling sequence for Is_In_Range
8137 (Analyze_Iteration_Scheme): Accomodate possible invalid values
8138 in determining if a loop range is null.
8141 (Is_In_Range): Add Assume_Valid parameter
8142 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8143 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
8144 also to do more accurate and complete range analysis, catching more
8148 (Is_In_Range): Add Assume_Valid parameter
8149 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8152 New calling sequence for Is_In_Range
8155 (Suppress_Loop_Warnings): New flag
8158 (Is_Null_Loop): Update documentation
8159 (Suppress_Loop_Warnings): New flag
8161 * gnat_ugn.texi: Document -gnatB switch
8163 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8165 * gnatvsn.ads: Bump version number.
8167 2009-04-07 Thomas Quinot <quinot@adacore.com>
8169 * exp_ch3.adb: Minor rewording (comments)
8171 2009-04-07 Robert Dewar <dewar@adacore.com>
8173 * exp_disp.adb: Minor reformatting
8175 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8177 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
8179 * gcc-interface/trans.c (lvalue_required_p): Likewise.
8181 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8183 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
8184 Do not convert the result. Remove obsolete comment.
8186 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8188 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
8190 (Subprogram_Body_to_gnu): Fix pasto.
8192 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8194 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
8195 (void_type_decl_node): Remove.
8196 (init_gigi_decls): Likewise.
8197 (gnat_install_builtins): Declare.
8198 (record_builtin_type): Likewise.
8199 (create_type_stub_decl): Likewise.
8200 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
8201 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
8203 <E_Array_Subtype>: Use the index types, not only their name, in the
8204 record giving the names of the bounds, if any.
8205 For a packed array type, make it artificial only if the base type
8206 was artificial as well. Remove redundant statement.
8207 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
8209 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
8210 (rest_of_type_decl_compilation_no_defer): Likewise.
8211 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
8212 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
8213 and use create_type_stub_decl to build it.
8214 (gnat_pushdecl): Rewrite condition.
8215 (gnat_install_builtins): Remove bogus declaration.
8216 (record_builtin_type): New function.
8217 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
8219 (create_type_stub_decl): New function.
8220 (create_type_decl): Assert that the type is not dummy. If the type
8221 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
8222 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
8223 (build_vms_descriptor): Likewise.
8224 (init_gigi_decls): Delete and move bulk of code to...
8225 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
8226 (emit_range_check): Add gnat_node parameter.
8227 (emit_index_check): Likewise.
8228 (emit_check): Likewise.
8229 (build_unary_op_trapv): Likewise.
8230 (build_binary_op_trapv): Likewise.
8231 (convert_with_check): Likewise.
8232 (Attribute_to_gnu): Adjust calls for above changes.
8233 (call_to_gnu): Likewise.
8234 (gnat_to_gnu): Likewise.
8235 (assoc_to_constructor): Likewise.
8236 (pos_to_constructor): Likewise.
8237 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
8238 (process_type): Do not create TYPE_DECL for dummy types.
8240 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8242 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
8243 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
8244 * gcc-interface/utils.c: Fix comments.
8246 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8248 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
8250 (gnat_to_gnu_type): Move around.
8251 (get_unpadded_type): Likewise.
8252 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
8255 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8257 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
8258 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
8259 (call_to_gnu): Invoke it instead of manually checking.
8261 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
8263 * gcc-interface/utils.c (finish_record_type): Force structural equality
8264 checks if the record type is discriminated.
8266 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
8268 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
8269 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
8270 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
8271 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
8272 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
8273 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
8274 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
8276 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8278 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
8279 of TREE_CONSTANT_OVERFLOW.
8281 2009-03-30 Joseph Myers <joseph@codesourcery.com>
8283 PR rtl-optimization/323
8284 * gcc-interface/misc.c (gnat_post_options): Set
8285 flag_excess_precision_cmdline. Give an error for
8286 -fexcess-precision=standard for processors where the option is
8289 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8292 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
8295 2009-03-11 Olivier Hainque <hainque@adacore.com>
8297 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
8298 checks processing, remove unintended TREE_TYPE walk on index type.
8300 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
8303 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
8304 call make_packable_type on fat pointer types.
8305 <E_Array_Subtype>: Likewise.
8306 <E_Record_Subtype>: Call make_packable_type on all record types
8307 except for fat pointer types.
8308 (make_packable_type): Likewise.
8309 (gnat_to_gnu_field): Likewise.
8311 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
8313 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
8314 EH_MECHANISM change made on 2007-12-06.
8316 2009-02-26 Andreas Schwab <schwab@suse.de>
8319 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
8320 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
8321 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
8323 (target_cpu_default): Substitute.
8325 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8328 * a-teioed.adb (Expand): Fix Result overflow.
8330 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8332 * gcc-interface/Makefile.in: Fix multilib handling for
8335 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8337 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
8339 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
8341 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
8343 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
8345 * gcc-interface/deftarg.c: Remove.
8347 2009-02-10 Olivier Hainque <hainque@adacore.com>
8348 Eric Botcazou <ebotcazou@adacore.com>
8350 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
8351 (copy_alias_set): Rename into...
8352 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
8353 underlying array of unconstrained arrays for the new type as well.
8354 If the old and new alias sets don't conflict, make one a subset of
8355 the other as per the OP parameter.
8356 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
8357 <E_Record_Type>: Do not copy the alias set for derived types.
8358 For all types, make the alias set of derived types a superset of
8359 that of their parent type.
8360 (make_aligning_type): Adjust calls to copy_alias_set.
8361 (make_packable_type): Likewise.
8362 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
8363 Check for alias set conflict instead of strict equality to issue the
8366 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
8368 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8369 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
8370 (copy_alias_set): Assert that arrays have the same aliasing settings.
8371 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
8373 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
8375 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8376 Set TYPE_NONALIASED_COMPONENT on the array type.
8378 2009-01-31 Laurent GUERBY <laurent@guerby.net>
8380 * gcc-interface/Makefile.in: Fix mipsel linux handling.
8382 2009-01-16 Jakub Jelinek <jakub@redhat.com>
8384 * gcc-interface/Makefile.in: Fix multilib handling for
8387 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
8389 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
8390 only useless conversions around renamed objects.
8392 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
8394 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
8395 the _Tag field before any discriminants in the field list.
8396 (components_to_record): Remove obsolete comment.
8400 Copyright (C) 2009 Free Software Foundation, Inc.
8402 Copying and distribution of this file, with or without modification,
8403 are permitted in any medium without royalty provided the copyright
8404 notice and this notice are preserved.