1 2009-07-13 Robert Dewar <dewar@adacore.com>
3 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
6 2009-07-13 Emmanuel Briot <briot@adacore.com>
8 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
9 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
10 Ada_Prj_Include_File_Set): Removed, since not needed
13 2009-07-13 Ed Schonberg <schonberg@adacore.com>
15 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
16 Analyze_Membership_Op.
18 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
19 Resolve_Membership_Op.
21 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
24 2009-07-13 Robert Dewar <dewar@adacore.com>
26 * clean.adb: Minor reformattting
28 2009-07-13 Emmanuel Briot <briot@adacore.com>
30 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
31 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
32 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
33 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
34 and attributes in a project tree.
35 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
36 Remove last remaining mode-specific code (ada_only or
37 multi_language). This was duplicating code
38 (Get_Mode, Set_Mode): removed, no longer used.
39 (Initialize_Project_Path): all tools will now take into account both
40 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
41 Remove some global variables and subprograms no longer used
42 Make temporary files tree-specific, to avoid interferences between
43 trees loaded in memory at the same time.
44 (Prj.Delete_Temporary_File): new subprogram
45 (Object_Paths, Source_Paths): fields no longer stored in the project
46 tree, since they are only needed locally in Set_Ada_Paths.
47 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
49 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
50 by local variables in the appropriate subprograms
51 (Has_Foreign_Sources): removed.
53 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
55 2009-07-13 Arnaud Charlet <charlet@adacore.com>
57 * gnat1drv.adb (Adjust_Global_Switches): No longer set
58 Back_Annotate_Rep_Info in inspector mode.
59 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
61 * opt.ads: Update comment.
63 2009-07-13 Robert Dewar <dewar@adacore.com>
65 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
66 prj.ads: Minor reformatting and code reorganization.
68 * par-ch3.adb (Check_Restricted_Expression): New procedure
70 2009-07-13 Ed Schonberg <schonberg@adacore.com>
72 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
73 attribute into a call of the corresponding suprogram, create extra
74 formals for the subprogram, because it may be a renaming whose
75 analysis does not create extra formals.
77 2009-07-13 Emmanuel Briot <briot@adacore.com>
79 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
80 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
81 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
82 prj-tree.ads: Minor reformatting.
83 (Processing_Flags): new record to encapsulate the set of common
84 parameters to several subprograms in the project manager.
85 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
86 Remove the need for the Current_Dir parameter in subprograms.
87 (Look_For_Sources): minor refactoring, now that we no longer need to
88 share subprograms between the two Ada_Only and Multi_Language modes
89 (Processing_Flags): New field Error_On_Unknown_Language.
90 Merge tests for library project between gnatmake and gprbuild.
92 2009-07-13 Arnaud Charlet <charlet@adacore.com>
94 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
97 2009-07-13 Emmanuel Briot <briot@adacore.com>
99 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
102 2009-07-13 Thomas Quinot <quinot@adacore.com>
104 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
105 Write,Input,Output} from private view to full view.
107 * sem_type.adb, sem_type.ads: Minor reformatting
109 2009-07-13 Nicolas Setton <setton@adacore.com>
111 * exp_dbug.ads: Add documentation note on the utility of
112 DW_AT_GNAT_encoding for IDEs.
114 2009-07-13 Robert Dewar <dewar@adacore.com>
116 * g-socthi-vxworks.adb: Minor reformatting
118 * gnatcmd.adb: Minor reformatting
120 2009-07-13 Thomas Quinot <quinot@adacore.com>
122 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
123 removed, not used anymore.
124 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
125 New subprogram, implements copy of an Any value into a limited object.
126 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
127 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
128 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
129 of parameters of a limited type, use the above new subprogram.
131 2009-07-13 Emmanuel Briot <briot@adacore.com>
133 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
135 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
137 (Error_Report): Remove global variable, replaced by parameters.
139 2009-07-13 Thomas Quinot <quinot@adacore.com>
141 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
142 standard sendto(2) interface for connected sockets (passing a null
143 destination address). Use send(2) instead for that case.
145 2009-07-13 Pascal Obry <obry@adacore.com>
147 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
149 2009-07-13 Emmanuel Briot <briot@adacore.com>
151 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
152 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
153 variables and tables in prj-nmsc.adb.
154 (Tree_Processing_Data): Renames Processing_Data, some new fields added
155 (Project_Processing_Data): New record
156 Simplify/unify check for missing sources.
158 2009-07-13 Emmanuel Briot <briot@adacore.com>
160 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
161 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
162 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
163 prj-tree.ads (Immediate_Directory_Of): Removed.
164 (Prj.Pars): Now parse the project simulating a default config file.
165 (Add_Default_GNAT_Naming_Scheme): New subprogram
166 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
167 Remove gnatmake-specific parsing of source files.
168 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
169 the error itself to provide more precise diagnostics.
170 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
171 a unit belongs to several projects.
172 (Copy_Interface_Sources): Search the full path of files to copy in the
173 list of sources of the application rather than in the list of units.
174 (Parse_Project_And_Apply_Config): Do not reset the name of the main
176 (Check_File): Use htables to find out whether a source is duplicated.
177 (Add_Source): check whether the source or unit were already seen earlier
179 * gcc-interface/Makefile.in: Update gnatmake dependencies.
181 2009-07-13 Robert Dewar <dewar@adacore.com>
183 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
184 expression if extensions permitted.
186 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
188 (P_Relation): Use P_Membership_Test
190 * par.adb (P_Membership_Test): New procedure (implement membership set
193 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
195 * sprint.adb (Sprint_Node): Handle set form for membership tests.
197 2009-07-13 Thomas Quinot <quinot@adacore.com>
199 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
200 Do not attempt to generate stubs for predefined primitives of
201 synchronized interfaces.
202 (Add_Stub_Type): Factor some code from the PCS-specific variants of
205 2009-07-13 Ed Schonberg <schonberg@adacore.com>
207 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
208 Controlling_Result flag from the operation they override.
210 2009-07-13 Arnaud Charlet <charlet@adacore.com>
212 * gcc-interface/Make-lang.in: Update dependencies
214 2009-07-13 Robert Dewar <dewar@adacore.com>
216 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
217 details on unsupported constructs.
219 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
222 * s-trafor-default.adb: Correct some warnings
224 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
225 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
228 * par-ch4.adb (Conditional_Expression): Capture proper location for
229 conditional expression, should point to IF.
231 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
232 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
233 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
234 reorganization (use conditional expressions).
236 2009-07-13 Ed Schonberg <schonberg@adacore.com>
238 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
239 build-in-place function that returns an inherently limited type (not
240 just a task type) create proper object declaration so that extra
241 build-in-place actuals are properly added to the call.
243 2009-07-13 Robert Dewar <dewar@adacore.com>
245 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
247 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
249 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
251 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
252 Warn_On_Suspicious_Modulus_Value.
254 * ug_words: Add entries for -gnatw.m/-gnatw.M.
256 * usage.adb: Add lines for -gnatw.m/.M switches.
258 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
260 2009-07-13 Javier Miranda <miranda@adacore.com>
262 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
263 reading the Is_Interface attribute of the dispatching type.
265 2009-07-13 Robert Dewar <dewar@adacore.com>
267 * a-convec.adb: Minor code reorganization (use conditional expressions)
269 2009-07-13 Robert Dewar <dewar@adacore.com>
271 * freeze.adb (Check_Suspicious_Modulus): New procedure.
273 2009-07-13 Robert Dewar <dewar@adacore.com>
275 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
278 * par-ch4.adb: Minor reformatting
280 2009-07-13 Ed Schonberg <schonberg@adacore.com>
282 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
283 => Is_Atomic_Aggregate
285 2009-07-13 Emmanuel Briot <briot@adacore.com>
287 * prj-nmsc.adb: Avoid traversing the list of source files if
288 we have already processed all locally removed files.
290 2009-07-13 Jose Ruiz <ruiz@adacore.com>
292 * gnat_ugn.texi: Fix typo.
294 2009-07-13 Robert Dewar <dewar@adacore.com>
296 * freeze.adb: Minor reformatting
297 Minor code reorganization (use Nkind_In)
299 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
301 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
303 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
304 local variable and do not test it in Compile_Time_Bad_Alignment.
305 Do not issue size or alignment warnings for the X'Address form.
306 * sem_util.ads (Find_Overlaid_Object): Delete.
307 (Find_Overlaid_Entity): New procedure.
308 * sem_util.adb (Find_Overlaid_Object): Rename to...
309 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
310 whether the address is offseted within the overlaid entity.
311 (Has_Compatible_Alignment): Track the offset globally instead of
312 passing it to Check_Offset. For an indexed component, compute the
313 full offset when possible. If the resulting offset is zero, only
315 (Check_Offset): Delete.
316 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
317 (Address_Aliased_Entity): Delete.
318 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
319 Find_Overlaid_Entity to find the overlaid entity and the offset.
320 Adjust throughout for above change.
321 (Validate_Address_Clauses): Always use attributes of entities, not of
322 their type. Tweak message for warning. Call Has_Compatible_Alignment
323 if the address is offseted to warn about incompatible alignments.
324 * gcc-interface/gigi.h (annotate_object): Declare.
325 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
326 entity. Call annotate_object instead of annotating manually objects.
327 (annotate_object): New function.
328 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
331 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
333 * gcc-interface/ada-tree.h: Minor reorganization.
334 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
335 (gnat_print_type): Likewise.
337 2009-07-11 Thomas Quinot <quinot@adacore.com>
339 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
342 * exp_ch6.adb: Minor reformatting
344 2009-07-11 Ed Schonberg <schonberg@adacore.com>
346 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
347 account possible type qualification to determine whether aggregate
348 needs a target temporary to respect atomic type or object.
350 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
351 Expand_Atomic_Aggregate.
353 2009-07-11 Emmanuel Briot <briot@adacore.com>
355 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
357 (Excluded_Sources_Htable): No longer a global table.
358 Change error message to indicate which files are illegal in the list
359 of excluded files, as opposed to only the location in the project
361 (Find_Source): New subprogram.
363 2009-07-10 Thomas Quinot <quinot@adacore.com>
365 * exp_ch7.adb: Update comments.
367 2009-07-10 Arnaud Charlet <charlet@adacore.com>
369 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
370 clause if -gnatI is set instead of crashing.
372 2009-07-10 Ed Schonberg <schonberg@adacore.com>
374 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
375 Additional work to remove redundant successive raise statements, in
376 this case access checks.
378 2009-07-10 Vincent Celier <celier@adacore.com>
380 * make.adb (Compile): Always create a deep copy of the mapping file
381 argument (-gnatem=...) as it may be deallocate/reallocate by
384 2009-07-10 Javier Miranda <miranda@adacore.com>
386 * einfo.adb (Directly_Designated_Type): Add assertion.
388 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
389 access types before using attribute Directly_Designated_Type.
391 2009-07-10 Emmanuel Briot <briot@adacore.com>
393 * prj.ads: Minor typo fix
395 2009-07-10 Ed Schonberg <schonberg@adacore.com>
397 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
400 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
401 subprogram is a function call, resolve properly, to ensure that extra
402 actuals are added as needed.
404 2009-07-10 Thomas Quinot <quinot@adacore.com>
406 * sem_aggr.adb: Minor comments editing
408 * exp_tss.adb, exp_ch3.adb: Minor reformatting
410 2009-07-10 Robert Dewar <dewar@adacore.com>
412 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
414 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
417 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
418 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
419 case of conditional expressions that may not be elaborated.
421 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
422 conditional expression where we may not execute then then or else
425 2009-07-10 Arnaud Charlet <charlet@adacore.com>
427 * i-cexten.ads (bool): New type.
429 2009-07-10 Robert Dewar <dewar@adacore.com>
431 * sinfo.ads (N_Short_Circuit): New definition
433 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
434 treepr.adb: Minor code reorganization (use N_Short_Circuit)
436 2009-07-10 Javier Miranda <miranda@adacore.com>
438 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
439 non-tagged record types.
442 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
443 with non-tagged types. Required to import C++ classes that have no
445 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
446 returning non-tagged types. For backward compatibility, if the
447 constructor returns a class wide type we internally change the
448 returned type to the corresponding non class-wide type.
451 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
452 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
453 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
454 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
457 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
459 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
461 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
463 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
465 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
468 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
471 (pragma CPP_Class): Document that it can be used now with non-tagged
473 (pragma CPP_Constructor): Document that it can be used now with
474 functions returning specific types. For backward compatibility
475 we also support functions returning class-wide types.
478 (Interfacing with C++ constructors): Update the examples to incorporate
479 the new syntax in which the functions used to import C++ constructors
480 return specific types.
481 (Interfacing with C++ at the Class Level): Update the examples to
482 incorporate the new syntax in which the functions used to import
483 C++ constructors return specific types.
485 2009-07-10 Thomas Quinot <quinot@adacore.com>
487 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
488 Make_Disp_Conditional_Select_Body,
489 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
490 interface nor a concurrent type, the primitive body is empty. Generate
491 a null statement so that it remains well formed.
493 2009-07-10 Ed Schonberg <schonberg@adacore.com>
495 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
496 replace references to them in defaulted component expressions with
497 references to the values of the discriminants of the target object.
499 2009-07-10 Ed Schonberg <schonberg@adacore.com>
501 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
502 pragma, to capture global references if the context is generic.
504 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
505 appears within the initialization procedure for the corresponding
506 record, replace it with the proper discriminal.
508 2009-07-10 Vincent Celier <celier@adacore.com>
510 * make.adb: Do not include object directories or library ALI
511 directories of library projects in the object path.
513 2009-07-10 Javier Miranda <miranda@adacore.com>
515 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
516 Typ argument to ensure proper management of access types.
518 2009-07-10 Ed Schonberg <schonberg@adacore.com>
520 * exp_ch7.adb (Build_Final_List): If the list is being built for a
521 Taft-Amendment type, place the finalization list in the package body,
522 to ensure that the tree for the spec is identical whenever it is
525 2009-07-10 Javier Miranda <miranda@adacore.com>
527 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
528 inheriting attributes from a private Parent_Base.
530 2009-07-10 Ed Schonberg <schonberg@adacore.com>
532 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
533 statements with the same condition.
535 2009-07-10 Robert Dewar <dewar@adacore.com>
537 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
539 2009-07-09 Tom Tromey <tromey@redhat.com>
541 * raise-gcc.c: Include dwarf2h (unconditionally).
543 2009-07-09 Ed Schonberg <schonberg@adacore.com>
545 * sem_ch10.adb (Install_Context): If the unit is a package body,
546 install the private with_clauses of the corresponding package
549 2009-07-09 Robert Dewar <dewar@adacore.com>
551 * checks.adb: Minor reformatting
553 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
555 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
558 2009-07-09 Thomas Quinot <quinot@adacore.com>
560 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
561 Do not warn for a constant overlaying any constant object
563 2009-07-09 Ed Schonberg <schonberg@adacore.com>
565 * sem_ch10.adb (Install_Context): If the unit is a package body,
566 install the private with_clauses of the corresponding package
569 2009-07-09 Robert Dewar <dewar@adacore.com>
571 * checks.adb: Minor reformatting
573 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
575 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
578 2009-07-09 Thomas Quinot <quinot@adacore.com>
580 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
581 Do not warn for a constant overlaying any constant object
583 2009-07-09 Arnaud Charlet <charlet@adacore.com>
585 * gcc-interface/Make-lang.in: Update dependencies
587 2009-07-09 Thomas Quinot <quinot@adacore.com>
589 * g-socket.adb (Check_Selector): Do not create local copies of the
590 socket sets on the stack.
592 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
594 * gnat_ugn.texi: Add missing VMS translations.
596 2009-07-09 Ed Schonberg <schonberg@adacore.com>
598 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
599 condition, to prevent generation of visible code during expansion,
600 when Check is not enabled.
602 2009-07-09 Gary Dismukes <dismukes@adacore.com>
604 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
605 the check gets registered for any available local handler
608 * sem_util.adb: Add with and use of Exp_Ch11.
609 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
610 that the check gets registered for any available local handler.
612 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
615 2009-07-09 Steve Baird <baird@adacore.com>
617 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
619 (Expand_N_Exception_Declaration): Fix handling of exceptions
620 declared in a subprogram.
622 2009-07-09 Emmanuel Briot <briot@adacore.com>
624 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
627 2009-07-09 Thomas Quinot <quinot@adacore.com>
629 * freeze.adb: Minor reformatting
631 * exp_ch3.adb: Minor comment fix.
633 * sinfo.ads: Minor comment fix
635 2009-07-09 Ed Schonberg <schonberg@adacore.com>
637 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
639 2009-07-09 Ed Schonberg <schonberg@adacore.com>
641 * freeze.adb (Freeze_Expression): If the expression is the name of a
642 function in a call, and the function has not been frozen yet, create
643 extra formals for it to ensure that the proper actuals are created
644 when expanding the call.
646 2009-07-09 Emmanuel Briot <briot@adacore.com>
648 * prj-pp.adb (Print): Fix handling of source index when set on a
651 2009-07-09 Ed Schonberg <schonberg@adacore.com>
653 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
654 a temporary to the source expression whose value it captures.
656 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
658 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
660 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
663 2009-07-07 Gary Dismukes <dismukes@adacore.com>
665 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
666 parameters when the subtype of the actual is not known to be a subrange
667 of the formal's subtype.
668 (Expand_Call): Generate a range check only in the E_In_parameter case
669 (in out parameter range checks are now handled in Expand_Actuals).
671 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
674 2009-07-07 Robert Dewar <dewar@adacore.com>
676 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
678 2009-07-07 Javier Miranda <miranda@adacore.com>
680 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
681 designated type comes from a limited views.
683 2009-07-07 Emmanuel Briot <briot@adacore.com>
685 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
686 locally removed files that are later made visible again in an importing
689 2009-07-07 Robert Dewar <dewar@adacore.com>
691 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
693 2009-07-07 Sergey Rybin <rybin@adacore.com>
695 * gnat_ugn.texi: Add an example to the description of gnatcheck
696 'Style_Checks' rule option.
698 2009-07-07 Tristan Gingold <gingold@adacore.com>
700 * seh_init.c: Fix inline assembly statement in seh_init.c
702 2009-07-07 Ed Schonberg <schonberg@adacore.com>
704 * sem_warn.adb (Check_References): Do not emit warnings on formals of
705 an entry body. Only the formals of the entry declaration are traced.
707 2009-07-07 Robert Dewar <dewar@adacore.com>
709 * s-osprim-mingw.adb: Minor code reorganization
711 2009-07-07 Robert Dewar <dewar@adacore.com>
713 * prj-nmsc.adb: Minor reformatting
715 2009-07-07 Pascal Obry <obry@adacore.com>
717 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
718 cases where Pattern is longer than Source.
720 2009-07-07 Pascal Obry <obry@adacore.com>
722 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
724 2009-07-07 Emmanuel Briot <briot@adacore.com>
726 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
729 2009-07-07 Ed Schonberg <schonberg@adacore.com>
731 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
732 primitive operations, in case one of them is called in the
733 initialization procedure for the type.
735 2009-07-07 Robert Dewar <dewar@adacore.com>
737 * a-calend.adb: Minor code reorganization (use conditional expressions)
739 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
740 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
741 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
742 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
743 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
744 g-comlin.adb, exp_ch11.adb: Minor reformatting.
746 2009-07-07 Gary Dismukes <dismukes@adacore.com>
748 * checks.adb (Generate_Range_Check): Replace type conversions with
749 unchecked conversions to support the case of performing range checks
750 on Enum'Val (permits integer values to be converted to enumeration).
752 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
753 Attribute_Succ): Set Do_Range_Check to False before calling
754 Expand_Pred_Succ, to prevent gigi from generating any range checks.
755 (Expand_N_Attribute_Reference, case Attribute_Val):
756 Generate a range check when needed (and set Do_Range_Check to False).
758 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
759 scalar object initialization if needed.
761 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
762 when needed on scalar allocators.
763 (Expand_N_Qualified_Expression): Generate range check when needed.
764 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
765 Checks on slice ranges handled in Resolve_Slice.
767 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
768 when needed, for all scalar assignments, not just discrete.
769 (Expand_Simple_Function_Return): Resolve the conversion created for a
770 scalar function return so that the conversion will get expanded to
771 generate a possible constraint check.
773 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
774 in out scalar actuals when subtypes don't match, to ensure generation
775 of return checks (and set Do_Range_Check to False).
776 (Expand_Call): Uncomment code to perform range checks, but make it apply
777 only to in and in out parameters (checks on parameter returns are
778 handled in Expand_Actuals). If a scalar actual for a call to a derived
779 subprogram is marked as needing a range check, peform it here (and set
780 Do_Range_Check to False).
782 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
783 range check on scalar component associations when needed.
785 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
786 infinities but the second type does not, as these aren't compatible
787 floating-point types.
789 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
790 slice is itself a slice, pick up the Etype of the prefix. This handles
791 the case where the prefix was an Image attribute expanded to a slice,
792 and ensures that we get the subtype with the slice constraint rather
793 than the unconstrained subbtype of the 'Image.
795 2009-07-07 Ed Schonberg <schonberg@adacore.com>
797 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
798 overloaded expressions in a conditional expressions.
800 * sem_res.adb (Resolve): Handle properly overloaded conditional
803 2009-07-07 Robert Dewar <dewar@adacore.com>
805 * scng.adb: Minor reformattting
807 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
808 association allows conditional expression without parens.
810 * par-ch4.adb (P_Name): Attribute arguments can be conditional
811 expressions without enclosing parentheses, and also as parameters,
812 indexing expressions etc.
813 (P_Conditional_Expression): New procedure
814 (P_Expression_If_OK): New procedure
816 * par.adb (P_Conditional_Expression): New procedure
817 (P_Expression_If_OK): New procedure
819 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
820 form of conditional expression.
822 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
823 missing True argument if ELSE argument missing.
825 * sinfo.adb (Is_Elsif): New flag
827 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
828 part of the language, and the documentation is modified accordingly.
831 2009-07-06 Olivier Hainque <hainque@adacore.com>
833 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
834 setjmp_longjmp): Attach the exception propagation reraise fallback
835 to the sequence end label location when we have it.
837 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
840 * init.c (APPLE): Include <mach/mach_init.h>.
841 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
843 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
845 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
846 (SET_DECL_LANG_SPECIFIC): Likewise.
847 (TYPE_RM_VALUE): New macro.
848 (SET_TYPE_RM_VALUE): Likewise.
849 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
850 (TYPE_RM_MIN_VALUE): Likewise.
851 (TYPE_RM_MAX_VALUE): Likewise.
852 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
853 (SET_TYPE_RM_MIN_VALUE): Likewise.
854 (SET_TYPE_RM_MAX_VALUE): Likewise.
855 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
857 2009-07-04 Laurent GUERBY <laurent@guerby.net>
860 * tracebak.c (__gnat_backtrace): Fix old-style definition.
862 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
864 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
866 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
869 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
872 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
874 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
876 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
878 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
879 the type of the left operand if it pads a self-referential type when
880 the right operand is a constructor.
882 * gcc-interface/lang-specs.h: Fix copyright date.
884 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
886 * gcc-interface/decl.c: Include tree-inline.h.
887 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
888 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
889 * gcc-interface/utils2.c: Include tree-inline.
890 (known_alignment) <CALL_EXPR>: Likewise.
892 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
894 * raise-gcc.c: Include dwarf2.h conditionally.
896 2009-06-29 Tom Tromey <tromey@redhat.com>
898 * raise-gcc.c: Include elf/dwarf2.h.
900 2009-06-27 Laurent GUERBY <laurent@guerby.net>
902 * tb-gcc.c (trace_callback): Add casts to silence warning.
904 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
906 * tb-gcc.c: Fix copyright notice.
908 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
910 * init.c (__gnat_set_globals): Add prototype.
911 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
912 (__gnat_sals_init_using_constructors): Likewise.
913 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
914 (get_block_jmpbuf_decl): Likewise.
915 (gnat_poplevel): Likewise.
916 (merge_sizes): Rename local variable.
917 (copy_type): Likewise.
918 (build_vms_descriptor32): Likewise.
919 (build_vms_descriptor): Likewise.
920 (convert_vms_descriptor64): Likewise.
921 (convert_vms_descriptor32): Likewise.
922 (convert_to_fat_pointer): Likewise.
923 (maybe_unconstrained_array): Likewise.
924 (def_fn_type): Use promoted type with va_arg.
925 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
926 (substitute_in_type): Rename local variable.
927 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
929 2009-06-26 Laurent GUERBY <laurent@guerby.net>
931 * tb-gcc.c (trace_callback): Use char* instead of void*.
932 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
933 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
934 (Attribute_to_gnu): Adjust for above change.
935 (Subprogram_Body_to_gnu): Likewise.
936 * gcc-interface/utils.c (merge_sizes): Rename local variable.
937 (copy_type): Likewise.
938 (build_vms_descriptor32): Likewise.
939 (build_vms_descriptor): Likewise.
940 (convert_vms_descriptor64): Likewise.
941 (convert_vms_descriptor32): Likewise.
942 (convert_to_fat_pointer): Likewise.
943 (maybe_unconstrained_array): Likewise.
944 * gcc-interface/decl.c (substitute_in_type): Likewise.
946 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
948 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
949 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
950 of the upper bound of the index types.
952 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
954 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
955 out common predicate. Use the maximum to compute the upper bound of
956 the index type only when it is not wider than sizetype. Perform the
957 comparison in the index type for the generic expression. Use real
958 precision to decide whether to generate special types for debugging
961 2009-06-26 Matthew Gingell <gingell@adacore.com>
963 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
965 2009-06-26 Vincent Celier <celier@adacore.com>
967 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
970 2009-06-26 Robert Dewar <dewar@adacore.com>
972 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
974 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
976 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
977 correct arguments to create_field_decl. Remove redundant iteration.
978 Rewrite computation of the maximum size.
979 <E_Array_Subtype>: Reorder and simplify handling of special cases.
980 Rewrite computation of the maximum size. Use consistent naming.
981 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
982 comparison order for consistency. Use generic integer node to
983 build the operator and fold the result.
985 2009-06-25 Vincent Celier <celier@adacore.com>
987 * vms_data.ads: Minor comment change
989 2009-06-25 Gary Dismukes <dismukes@adacore.com>
991 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
992 assignment statement to targeting a caller-provided object when the
993 result type is an interface type.
995 * exp_ch6.adb (Expand_Call): Remove redundant test of
996 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
997 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
999 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
1000 to OK_For_Limited_Init.
1002 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
1003 condition so that True is returned for all limited interfaces, not
1004 just synchronized ones. Ignore components of an interface type when
1005 checking for limited components (such a component can be a parent
1008 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
1009 (OK_For_Limited_Init): Add type parameter.
1011 * sem_ch3.adb (Check_Initialization): Add type in call to
1012 OK_For_Limited_Init.
1013 (OK_For_Limited_Init): Add new type param in call to
1014 OK_For_Limited_Init_In_05.
1015 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
1016 nonlimited type when the context type is a limited interface. Add type
1019 * sem_ch4.adb (Analyze_Allocator): Add type in call to
1020 OK_For_Limited_Init.
1022 * sem_ch6.adb (Check_Limited_Return): Add type in call to
1023 OK_For_Limited_Init.
1025 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
1026 OK_For_Limited_Init.
1027 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
1029 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
1030 class-wide interface, get the base type before applying Etype, in order
1031 to account for class-wide subtypes.
1033 2009-06-25 Emmanuel Briot <briot@adacore.com>
1035 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
1036 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
1037 between gnatmake and gprbuild.
1038 (Naming_Data): Removed, no longer used
1039 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
1040 needed locally in one subprogram, no need to store forever in the
1042 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
1044 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
1045 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
1046 Spec_Suffix_Id_Of): removed, no longer used.
1048 2009-06-25 Javier Miranda <miranda@adacore.com>
1050 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
1051 types on qualified expression in calls to imported C++ constructors.
1053 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
1054 imported C++ constructors.
1056 2009-06-25 Sergey Rybin <rybin@adacore.com>
1058 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
1060 2009-06-25 Vincent Celier <celier@adacore.com>
1062 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
1063 provided, on Windows change all '/' to '\'.
1065 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
1066 used. Minor comment changes
1068 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
1069 Remove_Forbidden_File_Name.
1071 2009-06-25 Quentin Ochem <ochem@adacore.com>
1073 * prj.ads (Unit_Index): Now general access type.
1075 2009-06-25 Pascal Obry <obry@adacore.com>
1077 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
1079 2009-06-25 Emmanuel Briot <briot@adacore.com>
1081 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
1082 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
1083 computed efficiently from the other fields.
1084 (Object_To_Global_Archive): New subprogram
1085 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
1086 (Override_Kind): Fix handling of separates in Ada.
1087 (Create_Mapping_File): Remove duplicate code
1088 (Naming_Data.Implementation_Exception, Specification_Exception):
1089 field removed, since never used.
1090 (Naming_Data.Specs, .Bodies): field removed, since this is only
1091 used while processing the project and is not needed once the tree
1092 is in memory. This brings Naming_Data and Lang_Naming_Data
1093 closer (same content now, but different use still).
1095 2009-06-25 Pascal Obry <obry@adacore.com>
1097 * sem_ch4.adb: Minor reformatting.
1099 * a-strsea.adb: Fix confusion between 'Length and 'Last.
1101 2009-06-25 Ed Schonberg <schonberg@adacore.com>
1103 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
1104 Unchecked_Access): If the context is an interface type, and the prefix
1105 is of the corresponding class-wide type, do not insert a conversion
1106 because the pointer displacement has already taken place, and we must
1107 retain the class-wide type in a dispatching context.
1109 2009-06-25 Emmanuel Briot <briot@adacore.com>
1111 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
1112 the previous source file.
1113 (Create_Mapping): Iterate on sources rather than on units.
1115 2009-06-25 Emmanuel Briot <briot@adacore.com>
1117 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
1118 prj-env.adb, prj-env.ads (Slash): removed, no longer used
1119 (Source_Data): no longer use Path.Name to point to a locally removed
1120 file. Instead we use the field Locally_Removed which is clearer
1122 2009-06-25 Arnaud Charlet <charlet@adacore.com>
1124 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
1126 * sem_maps.adb, sem_maps.ads: Removed, not used.
1128 2009-06-25 Ed Falis <falis@adacore.com>
1130 * s-vxwext-rtp.ads: Add missing declaration
1132 2009-06-25 Matthew Gingell <gingell@adacore.com>
1134 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
1135 speed up unmapped case.
1137 2009-06-25 Vincent Celier <celier@adacore.com>
1139 * prj-nmsc.adb (Check): Change error message for illegal abstract
1142 2009-06-25 Robert Dewar <dewar@adacore.com>
1144 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
1146 2009-06-25 Emmanuel Briot <briot@adacore.com>
1148 * fmap.ads: Add documentation on mapping files
1150 2009-06-25 Robert Dewar <dewar@adacore.com>
1152 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
1155 2009-06-24 Robert Dewar <dewar@adacore.com>
1157 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
1159 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
1163 2009-06-24 Ed Schonberg <schonberg@adacore.com>
1165 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
1166 present when checking whether a call may be interpreted as an indexing
1167 of the result of a call.
1169 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
1170 body for a null procedure on the freeze actions for the procedure, so
1171 that it will be analyzed at the proper place without premature freezing
1174 * sem_ch3.adb (Check_Completion): Code cleanup.
1175 Do not diagnose a null procedure without a body, if previous errors
1176 have disabled expansion.
1178 2009-06-24 Doug Rupp <rupp@adacore.com>
1180 * init.c [VMS] Resignal C$_SIGKILL
1182 2009-06-24 Ed Falis <falis@adacore.com>
1184 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
1185 Define ERROR in body for VxWorks 6 kernel
1187 2009-06-24 Pascal Obry <obry@adacore.com>
1189 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
1190 in [Send/Receive]_Socket.
1192 2009-06-24 Emmanuel Briot <briot@adacore.com>
1194 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1195 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
1196 to several subprograms.
1197 (Source_Data.Other_Part): Removed, since can be computed from the
1199 (Other_Part): New subprogram.
1201 2009-06-24 Emmanuel Briot <briot@adacore.com>
1203 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
1204 the full base name of the file when the suffix doesn't start with a '.'.
1206 2009-06-24 Vincent Celier <celier@adacore.com>
1208 * prj-nmsc.adb (Check): A project declared abstract is legal if no
1209 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
1212 2009-06-24 Robert Dewar <dewar@adacore.com>
1214 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
1215 prj-env.adb: Minor reformatting
1217 2009-06-24 Ed Falis <falis@adacore.com>
1219 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
1220 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
1221 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
1222 support for VxWorks SMP.
1224 * gcc-interface/Make-lang.in: Update dependencies
1226 2009-06-24 Emmanuel Briot <briot@adacore.com>
1228 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
1229 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
1231 (Source_Data.Lang_Kind): Removed, since it duplicates information
1232 already available through Language.Config.
1233 (Source_Data.Compile): Removed, since information is already available
1234 through the language.
1235 (Is_Compilable): New subprogram.
1236 (Source_Data.Dependency): Removed, since already available through
1238 (Source_Data.Object_Exist, Object_Linked): Removed since available
1239 through the language already.
1240 (Unit_Data.File_Names): Is now also set in multi_language mode, to
1241 bring the two modes closer in the resulting data structures.
1242 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
1243 just the name that would point into a hash table.
1244 (Get_Language_From_Name): New subprogram.
1246 2009-06-24 Javier Miranda <miranda@adacore.com>
1248 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
1249 visible through limited-with context clauses. In addition, avoid an
1250 extra tag check that is not required when the class-wide
1251 designated types of the operand and target types are
1253 (Tagged_Membership): Handle entities from the limited view.
1255 2009-06-24 Emmanuel Briot <briot@adacore.com>
1257 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
1258 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
1259 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
1260 different vocabularies for similar concepts (Impl/Body_Part and
1261 Spec/Specification).
1262 (Unit_Data): now points directly to a Source_Id, rather than duplicating
1263 some of the information in File_Name_Data. This also saves a bit of
1264 memory. However, since we are now using a pointer we need to test
1265 for null explicitly in several places of the code
1267 2009-06-24 Javier Miranda <miranda@adacore.com>
1269 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
1270 from processing the type conversion when the node is
1271 replaced by an N_Raise_Program_Error node.
1273 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
1275 * sem_ch6.adb (Designates_From_With_Type): New routine.
1276 (Process_Formals): Since anonymous access types are no longer flagged
1277 as from with types, traverse the designated type to determine whether
1278 it is coming from a limited view.
1280 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
1281 (Full_Designated_Type): Use Available_View to extract the non-limited /
1282 full view of a type.
1284 2009-06-24 Robert Dewar <dewar@adacore.com>
1286 * exp_ch6.adb: Minor reformatting
1288 * layout.adb: Minor reformatting
1290 * make.adb: Minor reformatting
1292 2009-06-24 Thomas Quinot <quinot@adacore.com>
1294 * sem_ch10.adb: Minor code reorganization.
1296 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
1298 * ttypes.ads: Minor editing.
1300 2009-06-24 Robert Dewar <dewar@adacore.com>
1302 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
1303 in deciding to do call-by-copy code.
1305 2009-06-24 Vincent Celier <celier@adacore.com>
1307 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
1308 check if an externally built library file is more current than the
1311 2009-06-23 Olivier Hainque <hainque@adacore.com>
1313 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
1314 c-common.c and populate in gnat_internal_attribute_table.
1316 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1318 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
1319 Available_View only when designated type of an anonymous access type
1322 2009-06-23 Robert Dewar <dewar@adacore.com>
1324 * sem_ch10.adb: Minor reformatting
1326 * ali.ads: Mino reformatting.
1328 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
1329 turning off inlining if ASIS mode active).
1331 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
1332 This belongs in gnat1drv.adb after switches are scanned.
1334 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
1336 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
1337 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
1338 when dealing with class-wide types. Detect a legal shadow entity and
1339 retrieve its non-limited view.
1341 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
1342 subprogram to top package level from Intall_Limited_Withed_Unit.
1343 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
1344 Add check which prevents the installation of a limited view if the
1345 non-limited view is already visible through a with clause.
1346 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
1347 legal shadow entity which may occur in subprogram formals of anonymous
1350 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
1352 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
1353 From_With_Type from the designated type to the generated anonymous
1354 access type. Remove associated comment.
1356 * sem_res.adb Add with and use clauses for Sem_Ch10.
1357 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
1358 non-limited view. Since the shadow entity may replace a regular
1359 incomplete type, return the available full view.
1361 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1363 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
1364 incomplete type declarations. Previous code was potentially quadratic
1365 in the number of visible declarations in any package appearing in a
1366 limited_with_clause.
1368 2009-06-23 Robert Dewar <dewar@adacore.com>
1370 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
1371 xref_lib.adb: Minor reformatting
1373 2009-06-23 Robert Dewar <dewar@adacore.com>
1375 * a-stzhas.adb: Provide dummy body to avoid build problems with old
1376 versions which did have a body for this unit.
1378 2009-06-23 Vincent Celier <celier@adacore.com>
1380 * prj-attr.adb: Attribute names Initial_Required_Switches and
1381 Final_Required_Switches changed to Leading_Required_Switches and
1382 Trailing_Required_Switches.
1384 * prj-nmsc.adb (Process_Compiler): Attribute names
1385 Initial_Required_Switches and Final_Required_Switches changed to
1386 Leading_Required_Switches and Trailing_Required_Switches.
1388 * prj.ads (Language_Config): Component Initial_Required_Switches and
1389 Final_Required_Switches changed to Leading_Required_Switches and
1390 Trailing_Required_Switches.
1392 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
1393 Final_Required_Switches; add standard names Leading_Required_Switches
1394 and Trailing_Required_Switches.
1396 2009-06-23 Thomas Quinot <quinot@adacore.com>
1398 * prj-conf.adb: Minor reformatting
1400 * xref_lib.adb: Minor cleanup
1402 2009-06-23 Emmanuel Briot <briot@adacore.com>
1404 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
1405 prj-conf.ads (Check_Configuration): New parameter
1406 Compiler_Driver_Mandatory.
1408 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1410 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
1411 context of the current unit has an inline pragma, the instance is not
1412 rewritten as the declaration of the package wrapper. Handle both
1413 possibilities when retrieving the visible subprogram that renames the
1414 instantiation itself.
1416 2009-06-23 Javier Miranda <miranda@adacore.com>
1418 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
1419 designated types referencing entities from the limited view.
1421 2009-06-23 Robert Dewar <dewar@adacore.com>
1423 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
1425 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
1428 * prj-conf.ads: Minor reformatting
1430 * prj-conf.adb: Minor reformatting
1432 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
1434 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
1435 to correspond to the log format that gnatmem now expects.
1437 2009-06-23 Vincent Celier <celier@adacore.com>
1439 * prj-attr.adb: New attributes Initial_Required_Switches,
1440 Final_Required_Switches and Object_File_Switches
1442 * prj-nmsc.adb (Process_Compiler): Process new attributes
1443 Name_Final_Required_Switches, Name_Initial_Required_Switches and
1444 Name_Object_File_Switches.
1446 * prj.ads (Language_Config): New component
1447 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
1448 Compiler_Final_Required_Switches and Object_File_Switches.
1450 * snames.ads-tmpl: New standard names Initial_Required_Switches,
1451 Final_Required_Switches and Object_File_Switches
1453 2009-06-23 Pascal Obry <obry@adacore.com>
1455 * s-strhas.adb, s-strhas.ads: Minor reformatting.
1457 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1459 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
1460 not indicate that the enclosing unit needs a body.
1462 2009-06-23 Emmanuel Briot <briot@adacore.com>
1464 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
1466 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1468 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
1469 primitive equality include it with its source name even if the
1470 operation is currently invisible, to make sure that the corresponding
1471 slot in the dispatch table is reserved for the internal equality
1472 subsequently generated during expansion.
1474 2009-06-23 Matthew Gingell <gingell@adacore.com>
1476 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
1478 2009-06-22 Jose Ruiz <ruiz@adacore.com>
1480 * sysdep.c (__gnat_localtime_tzoff for RTX):
1481 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
1482 GetTimeZoneInformation instead.
1484 2009-06-22 Robert Dewar <dewar@adacore.com>
1486 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
1488 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1490 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
1491 instantiations declared in a previous generic package body.
1493 2009-06-22 Robert Dewar <dewar@adacore.com>
1495 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
1496 restriction No_Direct_Boolean_Operators.
1498 2009-06-22 Thomas Quinot <quinot@adacore.com>
1500 * bindusg.adb: Minor fixes to gnatbind usage message
1502 * sem_eval.adb: Minor reformatting
1504 2009-06-22 Javier Miranda <miranda@adacore.com>
1506 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
1507 freezing point the check on the use of abstract types in object
1508 declarations. Done to allow the declaration of C++ imported variables
1509 or constants whose type corresponds with an imported C++ classes for
1510 which the constructor is not imported.
1512 2009-06-22 Thomas Quinot <quinot@adacore.com>
1514 * sem_ch6.adb: Minor reformatting
1516 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1518 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
1519 component is constrained with an expression rather than with a
1520 discriminant of the enclosing type, use that expression when building
1521 the call to default-initialize the component, when the call is part of
1522 an aggregate with box initialization.
1524 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1526 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
1527 unconditional rather than a style check, because a formal name out of
1528 order is suspicious.
1530 2009-06-22 Vincent Celier <celier@adacore.com>
1532 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
1533 creating a directory automatically.
1535 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
1537 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
1538 untagged derived type, add a hidden component for every constrained
1539 discriminant of the parent type to keep record layout consistent.
1541 2009-06-22 Thomas Quinot <quinot@adacore.com>
1543 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
1546 2009-06-22 Matthew Gingell <gingell@adacore.com>
1548 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
1549 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
1550 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
1551 a-swuwha.adb: New unit System.String_Hash.
1552 Refactor redundant cut and pasted hash functions with instances of a
1553 new generic hash function.
1554 Implement a new string hashing algorithm which appears in testing to
1555 be move effective than to previous approach.
1557 2009-06-22 Ed Falis <falis@adacore.com>
1559 * sysdep.c: remove include for nfsLib.h and an NFS specific error
1560 message for VxWorks 653 vThreads: not supported by the OS.
1562 * gsocket.h: disable sockets for VxWorks 653 vThreads.
1564 2009-06-22 Robert Dewar <dewar@adacore.com>
1566 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
1568 2009-06-22 Robert Dewar <dewar@adacore.com>
1570 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
1573 * freeze.adb: Minor comment updates
1575 * s-valrea.adb (Bad_Based_Value): New procedure
1576 (Scan_Real): Raise exceptions with messages
1578 2009-06-22 Matthew Gingell <gingell@adacore.com>
1580 * adaint.h: Complete previous change.
1582 2009-06-22 Thomas Quinot <quinot@adacore.com>
1584 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
1586 2009-06-22 Ed Schonberg <schonberg@adacore.com>
1588 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
1589 enabled, emit warning when a non-controlling argument of the overriding
1590 operation appears out of place vis-a-vis of the formal of the
1591 overridden operation.
1593 2009-06-22 Vincent Celier <celier@adacore.com>
1595 * gnatcmd.adb (Check_Files): Close temporary files after all file names
1596 have been written into it.
1598 2009-06-22 Matthew Gingell <gingell@adacore.com>
1600 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
1603 2009-06-22 Thomas Quinot <quinot@adacore.com>
1605 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
1606 view of the root type is visible at the point of the call.
1608 2009-06-22 Pat Rogers <rogers@adacore.com>
1610 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
1612 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
1614 * freeze.adb: Add comments.
1616 2009-06-21 Thomas Quinot <quinot@adacore.com>
1618 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
1619 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
1620 Factor out code to new subprogram...
1621 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
1622 for a default initialized variable.
1623 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
1624 entity that has an associated freeze node.
1625 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
1626 If there is an init call for the object, defer it to the object freeze
1628 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
1629 name clash with new subprogram introduced in Exp_Util.
1631 2009-06-21 Robert Dewar <dewar@adacore.com>
1633 * einfo.ads: Minor reformatting
1635 2009-06-21 Ed Falis <falis@adacore.com>
1637 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
1639 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
1641 * einfo.ads: Update comments.
1643 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
1645 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
1646 where the controlling formal is of private class-wide type whose
1647 completion is a synchronized type can be converted into direct calls.
1649 2009-06-21 Vincent Celier <celier@adacore.com>
1651 * gnatcmd.adb (Check_Files): When all sources of the project are to be
1652 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
1653 of sources using -files=, so that the distinction can be made by the
1654 tool of a call with no source (to display the usage) from a call with
1655 a project file that contains no source.
1657 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
1659 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
1660 case of VM convention arrays.
1662 2009-06-20 Robert Dewar <dewar@adacore.com>
1664 * a-nudira.adb: Minor reformatting
1666 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1668 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
1669 expressions (possibly from a parent type) indicate that the scope of
1670 the new itypes is the initialization procedure being built.
1672 2009-06-20 Robert Dewar <dewar@adacore.com>
1674 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
1675 Needs_64, and now computed without anomolies for some dynamic types.
1677 2009-06-20 Thomas Quinot <quinot@adacore.com>
1679 * sem_prag.adb: Minor reformatting
1681 * exp_disp.ads: Minor reformatting
1683 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1685 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
1686 function call is a legal expression to initialize a limited object.
1688 * exp_ch3.adb: Rename various freeze operations that perform expansion
1689 actions, to prevent confusion with subprograms in the freeze package.
1691 2009-06-20 Ed Schonberg <schonberg@adacore.com>
1693 * sem.adb (Walk_Library_Units): Check instantiations first.
1695 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
1696 private primitive if it is a function with a controlling result that is
1697 a type extension with progenitors.
1699 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
1700 a primitive operation of a synchronized tagged type that has a
1703 2009-06-20 Thomas Quinot <quinot@adacore.com>
1705 * einfo.ads: Fix typo.
1707 2009-06-20 Ed Falis <falis@adacore.com>
1709 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
1711 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1713 * gcc-interface/trans.c (emit_check): Do not wrap up the result
1715 (protect_multiple_eval): Always protect complex expressions.
1717 2009-06-19 Emmanuel Briot <briot@adacore.com>
1719 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
1720 make sure we always return a name ending with a path separator.
1722 2009-06-19 Javier Miranda <miranda@adacore.com>
1724 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
1725 Save and restore the visibility of the parent when installed.
1727 2009-06-19 Jose Ruiz <ruiz@adacore.com>
1729 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
1730 by Common which contains all these fields.
1732 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
1733 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
1734 Remove code duplication in this package by means of calling the
1735 equivalent code in s-taprob.
1737 2009-06-19 Robert Dewar <dewar@adacore.com>
1739 * a-einuoc.ads: Minor reformatting
1741 2009-06-19 Ed Falis <falis@adacore.com>
1743 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
1744 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
1746 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1748 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
1750 2009-06-19 Robert Dewar <dewar@adacore.com>
1752 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
1755 * checks.adb (Determine_Range): Move the test for generic types later.
1757 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
1759 (Eval_Relational_Op): Fold more cases including string compares
1761 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
1764 2009-06-19 Robert Dewar <dewar@adacore.com>
1766 * sem_type.ads, sem_ch12.adb: Minor reformatting
1768 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
1770 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1772 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
1773 primitive operation of a rivate extension whose controlling argument
1774 is an out parameter.
1776 * sem.adb (Walk_Library_Units): exclude generic package declarations
1779 2009-06-19 Thomas Quinot <quinot@adacore.com>
1781 * i-vxwoio.ads: Add comments
1783 2009-06-19 Thomas Quinot <quinot@adacore.com>
1785 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1786 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
1787 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
1788 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
1789 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
1790 Thin_Common.Socket_Ioctl.
1791 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
1792 __gnat_socket_ioctl.
1793 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
1794 argument after the file descriptor and request code.
1796 2009-06-19 Robert Dewar <dewar@adacore.com>
1798 * checks.adb: Minor reformatting
1800 2009-06-19 Jose Ruiz <ruiz@adacore.com>
1802 * env.c (__gnat_environ): RTX does not support this functionality.
1804 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1806 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
1807 traverse, to account for front-end inlining and instantiations in a
1808 spec or in the main unit.
1810 2009-06-19 Robert Dewar <dewar@adacore.com>
1812 * checks.adb (Determine_Range): Do not attempt to get range of generic
1815 2009-06-19 Sergey Rybin <rybin@adacore.com>
1817 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
1818 gnatmetric option for generating the schema file for gnatmetric XML
1819 output. Add corresponding VMS qualifier.
1821 2009-06-19 Robert Dewar <dewar@adacore.com>
1823 * g-cgi.adb: Minor reformatting
1825 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1827 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
1828 signal code for SIGFPE and raise Program_Error for SIGILL.
1830 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
1832 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1834 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
1835 generic package if there is a visibility candidate that is declared in
1838 2009-06-18 Olivier Hainque <hainque@adacore.com>
1840 * system-aix64.ads: New file.
1841 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
1842 64bit system.ads for ppc64 multilib variants.
1844 2009-06-16 Robert Dewar <dewar@adacore.com>
1845 Olivier Hainque <hainque@adacore.com>
1847 Relax constraints on Machine_Attribute argument types:
1848 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
1850 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
1851 * gcc-interface/decl.c (prepend_attributes): Accept static
1852 expressions of any type as attribute arguments, not only string
1854 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
1855 the relaxation of the restriction on the Info argument type.
1857 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
1859 * gcc-interface/utils.c (record_builtin_type): Pass location
1860 argument to build_decl.
1861 (create_type_stub_decl): Same.
1862 (create_type_decl): Same.
1863 (create_var_decl_1): Same.
1864 (create_field_decl): Same.
1865 (create_param_decl): Same.
1866 (create_label_decl): Same.
1867 (create_subprog_decl): Same.
1868 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
1869 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
1870 argument to create_artificial_label.
1871 (Loop_Statement_to_gnu): Same.
1872 (Subprogram_Body_to_gnu): Same.
1873 (gnat_gimplify_stmt): Same.
1875 2009-06-11 Richard Henderson <rth@redhat.com>
1877 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
1880 2009-06-11 Ed Schonberg <schonberg@adacore.com>
1882 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
1883 accessibiliy check on access_to_subprogram in the context of an
1884 anonymous access that is not an access parameter.
1886 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
1888 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
1890 2009-06-11 Quentin Ochem <ochem@adacore.com>
1892 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
1893 comments for message handled by GPS.
1895 2009-06-11 Matthew Gingell <gingell@adacore.com>
1897 * adaint.c: Use fopen64 instead of fopen on platforms where we know
1900 2009-06-11 Pascal Obry <obry@adacore.com>
1902 * g-cgi.ads: Fix comment typo.
1904 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
1906 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
1908 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
1909 a reference to the original type for the type of the field of the
1911 (maybe_pad_type): Likewise.
1913 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
1914 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
1915 Pass correctly typed arguments to create_field_decl.
1916 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
1917 case of contrained discriminants as well. Use the padded base type
1918 in the other case as well. Rename temporary variable. Tweak test.
1919 Factor common access pattern. Set GNU_SIZE only once.
1921 2009-06-09 Olivier Hainque <hainque@adacore.com>
1923 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
1924 helper for build_call_alloc_dealloc with arguments to be interpreted
1925 identically. Process the case where a GNAT_PROC to call is provided.
1926 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
1927 and return an allocator for DATA_SIZE bytes aimed at containing a
1928 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
1929 DATA_TYPE alignments greater than what the latter offers.
1930 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
1931 release a DATA_TYPE object designated by DATA_PTR using the
1932 __gnat_free entry point.
1933 (build_call_alloc_dealloc): Expect object data type instead of naked
1934 alignment constraint. Use the new helpers.
1935 (build_allocator): Remove special processing for the super-aligned
1936 case, now handled by build_call_alloc_dealloc. Pass data
1937 type instead of the former alignment argument, as expected by the new
1939 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
1941 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
1942 Remove special processing for the super-aligned case, now handled
1943 by build_call_alloc_dealloc. Pass data type instead of the former
1944 alignment argument, as expected by the new interface.
1946 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
1948 * lib-writ.adb (flag_compare_debug): Import.
1949 (Write_ALI): Skip during -fcompare-debug-second.
1951 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1953 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1954 adjusting the discriminant nodes in an extension, use the full view
1955 of the parent subtype if it is of a private kind.
1957 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1959 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
1960 _Parent field, if any, to the record before adding the other fields.
1961 <E_Record_Subtype>: Put the _Controller field before the other fields
1962 except for the _Tag or _Parent fields.
1963 (components_to_record): Likewise. Retrieve the _Parent field from the
1966 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1968 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
1969 remove unused parameter and simplify.
1970 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
1971 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
1972 as context for all discriminants. Fix formatting nits.
1973 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
1974 before Discriminant_Constraint. Adjust for above renaming. Do not
1975 set GNU_TYPE more than once.
1976 (elaborate_entity): Test Has_Discriminants on the entity and use
1977 Implementation_Base_Type.
1978 (components_to_record): Rename component_list to gnat_component_list.
1979 Retrieve the _Parent field from the list. Fix nits in comments.
1980 Clarify logic in loop. Pass correct arguments to create_field_decl.
1982 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
1984 * gcc-interface/Make-lang.in: Fix formatting.
1986 2009-06-01 Olivier Hainque <hainque@adacore.com>
1987 Eric Botcazou <ebotcazou@adacore.com>
1989 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
1990 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
1991 on the result if at least one of the input fields couldn't be output
1992 as a static constant any more.
1994 2009-06-01 Olivier Hainque <hainque@adacore.com>
1995 Eric Botcazou <ebotcazou@adacore.com>
1997 * gcc-interface/utils2.c (gnat_build_constructor): Factor
1998 out code. Use initializer_constant_valid_for_bitfield_p and
1999 CONSTRUCTOR_BITFIELD_P for bit-fields.
2001 2009-05-26 Ian Lance Taylor <iant@google.com>
2003 * gcc-interface/Makefile.in (COMPILER): Define.
2004 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
2005 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
2006 (seh_init.o, tracebak.o): Likewise.
2007 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
2008 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
2009 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
2010 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
2011 (ada/utils2.o): Likewise.
2013 2009-05-24 Olivier Hainque <hainque@adacore.com>
2015 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
2016 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
2017 Add -auxbase variants to the list of recognized internal switches.
2018 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
2020 * lib.ads: Make comment on internal GCC switches more general.
2021 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
2024 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2026 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
2028 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2030 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
2033 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2035 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
2036 original type because of the alignment when there is an address clause.
2038 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
2040 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
2041 discriminants affect the shape of the subtype, retrieve the GCC type
2042 directly from the original field if the GNAT types for the field and
2043 the original field are the same.
2045 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
2047 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
2049 (TYPE_RM_VALUES): Likewise.
2050 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
2051 (SET_TYPE_RM_SIZE): New macro.
2052 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
2053 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
2054 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
2055 * gcc-interface/gigi.h (create_range_type): Declare.
2056 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
2057 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
2058 <E_Signed_Integer_Subtype>: Build a regular integer type first and
2059 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2060 <E_Floating_Point_Subtype>: Build a regular floating-point type first
2061 and then set the RM bounds.
2062 <E_Array_Type>: Use create_range_type instead of build_range_type.
2063 <E_Array_Subtype>: Build a regular integer type first and then set
2064 the RM bounds for the extra subtype.
2065 <E_String_Literal_Subtype>: Use create_range_type instead of
2067 <all>: Set the RM bounds for enumeration types and the GCC bounds for
2068 floating-point types.
2069 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
2070 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
2071 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2072 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
2073 types and with RM bounds for subtypes.
2074 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
2075 (gnat_print_type) <REAL_TYPE>: New case.
2076 <ENUMERAL_TYPE>: Fall through to above case.
2077 (gnat_get_subrange_bounds): New function.
2078 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
2079 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
2080 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
2081 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
2082 (create_range_type): New function.
2083 (create_param_decl): Build a regular integer type first and then set
2084 the RM bounds for the extra subtype.
2085 (unchecked_convert): Remove kludge for 'Valid.
2086 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
2087 the index to sizetype instead of TYPE_DOMAIN.
2089 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
2091 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
2092 parameter and move check for static expression to...
2093 (elaborate_expression): ...here. Adjust call to above function.
2094 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
2095 in calls to elaborate_expression.
2096 (elaborate_entity): Likewise.
2097 (substitution_list): Likewise.
2098 (maybe_variable): Fix formatting.
2099 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
2101 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
2103 2009-05-07 Arnaud Charlet <charlet@adacore.com>
2105 * gcc-interface/Make-lang.in: Update dependencies.
2107 2009-05-06 Laurent GUERBY <laurent@guerby.net>
2109 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
2110 Define sa_handler_pos.
2111 * s-osinte-linux.ads: Use it.
2112 * s-linux-mipsel.ads: New.
2113 * system-linux-mips64el.ads: New.
2114 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
2117 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2119 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
2120 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
2121 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
2122 (Tagged_Type_Expansion): New flag.
2123 Replace use of VM_Target related to tagged types expansion by
2124 Tagged_Type_Expansion, since tagged type expansion is not necessarily
2125 linked to VM targets.
2127 2009-05-06 Robert Dewar <dewar@adacore.com>
2129 * sem_attr.adb: Add processing for Standard'Compiler_Version
2131 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
2133 (Expr_First_Char): Add ??? comment that paren skipping needs work
2134 (Expr_Last_Char): Add ??? comment that paren skipping needs work
2136 * exp_attr.adb: Add processing for Compiler_Version
2138 * sem_attr.adb: New attribute Compiler_Version
2140 * snames.ads-tmpl: Add entries for Compiler_Version attribute
2142 * gnat_rm.texi: Document Compiler_Version attribute
2144 2009-05-06 Robert Dewar <dewar@adacore.com>
2146 * errout.adb: Minor reformatting
2148 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
2149 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2150 styleg.adb: Add stylized comments to error messages that are included
2151 in the codefix circuitry of IDE's such as GPS.
2153 2009-05-06 Sergey Rybin <rybin@adacore.com>
2155 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
2156 new form of the rule parameter that allows to specify the suffix for
2157 access-to-access type names.
2159 2009-05-06 Robert Dewar <dewar@adacore.com>
2161 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
2162 out parameter assigned when exception handlers are present.
2164 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
2165 assignments on exit.
2167 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
2168 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
2169 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
2170 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
2171 messages that are included in the codefix circuitry of IDE's such as
2174 * sinput.ads, sinput.adb (Expr_First_Char): New function
2175 (Expr_Last_Char): New function
2177 2009-05-06 Sergey Rybin <rybin@adacore.com>
2179 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
2180 Add formal definition for extra exit point metric
2182 2009-05-06 Pascal Obry <obry@adacore.com>
2184 * adaint.c: Support for setting attributes on unicode filename on
2187 2009-05-06 Robert Dewar <dewar@adacore.com>
2189 * sem_warn.adb: Minor reformatting
2191 2009-05-06 Javier Miranda <miranda@adacore.com>
2193 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
2194 not have discriminants or components with default expressions.
2195 (Analyze_Pragma): For pragma CPP_Class check that imported types
2196 have no discriminants and components have no default expression.
2198 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
2199 class-wide types in the expression of a record component association.
2201 2009-05-06 Sergey Rybin <rybin@adacore.com>
2203 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
2205 * gnat_ugn.texi: Add description for the new extra exit points metric
2206 (gnatmetric section).
2208 2009-05-06 Robert Dewar <dewar@adacore.com>
2210 * s-fileio.adb: Minor comment update
2212 * sem_ch8.adb: Minor reformatting
2214 * exp_ch3.adb: Update comments.
2216 2009-05-06 Tristan Gingold <gingold@adacore.com>
2218 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
2220 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2222 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
2223 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
2225 * gcc-interface/Make-lang.in: Update dependencies
2227 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2229 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
2230 change. The context clause of a generic instance declaration must be
2231 preserved until the end of the compilation, because it may have to be
2232 installed/removed repeatedly.
2233 The latest change to sem.adb ensures that the context of both spec and
2234 body of an instance is traversed before the instance itself, making
2235 this patch redundant.
2237 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2239 * sem_aggr.adb: Fix typo.
2241 2009-05-06 Thomas Quinot <quinot@adacore.com>
2243 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
2244 declaration, do not adjust if the declaration is to be rewritten into
2247 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2249 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
2252 2009-05-06 Bob Duff <duff@adacore.com>
2254 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
2255 otherwise the compiler would be allowed to optimize away the cleanup
2258 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2260 * gnat_ugn.texi: Fix typo.
2262 2009-05-06 Thomas Quinot <quinot@adacore.com>
2264 * g-debuti.adb: Minor reformatting
2266 * exp_attr.adb: Minor reformatting
2268 2009-05-06 Robert Dewar <dewar@adacore.com>
2270 * sem_aggr.adb: Minor reformatting.
2272 * g-socthi-vms.adb: Minor reformatting
2274 2009-05-06 Bob Duff <duff@adacore.com>
2276 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
2277 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
2279 2009-05-06 Bob Duff <duff@adacore.com>
2281 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
2284 2009-05-06 Javier Miranda <miranda@adacore.com>
2286 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
2287 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
2288 extension aggregates.
2289 (Resolve_Record_Aggregate): Add support for C++ constructors in
2290 extension aggregates.
2292 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
2293 constructors in extension aggregates.
2295 2009-05-06 Robert Dewar <dewar@adacore.com>
2297 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
2300 2009-05-06 Thomas Quinot <quinot@adacore.com>
2302 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
2303 packed type, since on OpenVMS, struct msghdr is packed.
2305 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2307 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2308 call returning an unconstrained composite value, create the proper
2309 subtype for it, as is done for object dclarations with unconstrained
2310 nominal subtypes. Perform this transformation regarless of whether
2311 call comes from source.
2313 2009-05-06 Robert Dewar <dewar@adacore.com>
2315 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
2319 Add documentation for pragma Implicit_Packing applied to record
2322 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2324 * sem.adb (Walk_Library_Items): Place all with_clauses of an
2325 instantiation on the spec, because late instance bodies may generate
2326 with_clauses for the instance body but are inserted in the instance
2329 2009-05-06 Emmanuel Briot <briot@adacore.com>
2331 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
2332 support for returning the directory even if it doesn't exist. This is
2333 used for the object directory, since we are always setting it to a
2334 non-null value, and we should set it to an absolute name rather than a
2335 relative name for the sake of external tools that might depend on it.
2336 (Check_Library_Attributes): When Project.Library_Dir is known, check
2337 that the directory exists.
2339 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2341 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
2342 reference is an implicit dereference, do not freeze the designated type
2343 if within a default expression or when preanalyzing a pre/postcondtion.
2345 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2347 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2348 call returning an unconstrained composite value, create the proper
2349 subtype for it, as is done for object dclarations with unconstrained
2352 2009-05-06 Robert Dewar <dewar@adacore.com>
2354 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
2357 * freeze.adb: Minor reformatting
2359 2009-05-06 Thomas Quinot <quinot@adacore.com>
2361 * sem_ch3.adb (Access_Type_Declaration): An access type whose
2362 designated type is a limited view from a limited with clause (flagged
2363 From_With_Type) is not itself such a limited view.
2365 2009-05-06 Emmanuel Briot <briot@adacore.com>
2367 * prj-nmsc.adb: Remove unused variable.
2369 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
2370 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
2371 makeutl.ads, since not all users of prj.ads need this.
2373 2009-05-06 Javier Miranda <miranda@adacore.com>
2375 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
2376 constructor in case of aggregates whose type is a CPP_Class type.
2378 2009-05-06 Robert Dewar <dewar@adacore.com>
2380 * sem_ch13.adb: Minor comment additions
2382 * osint.adb: Minor reformatting
2384 2009-05-06 Pascal Obry <obry@adacore.com>
2386 * initialize.c: On Windows, keep full pathname to expanded command
2389 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2391 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
2392 an aggregate with box default is of a discriminated private type, do
2393 not build a subaggregate for it.
2394 A proper call to the initialization procedure is generated for it.
2396 2009-05-06 Thomas Quinot <quinot@adacore.com>
2398 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
2399 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
2400 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
2401 use standard array code for Standard.String.
2402 (Exp_Dist): Bump PolyORB s-parint API version to 3.
2403 (Rtsfind): New entities TA_Std_String, Unbounded_String.
2405 2009-05-06 Robert Dewar <dewar@adacore.com>
2407 * g-comlin.ads: Minor reformatting
2409 * xoscons.adb: Minor reformatting
2411 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2413 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
2414 Underlying_Type before retrieving the type definition for gathering
2415 components, to account for the case where the type is private.
2417 2009-05-06 Tristan Gingold <gingold@adacore.com>
2419 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
2421 2009-05-06 Thomas Quinot <quinot@adacore.com>
2423 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2424 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
2425 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
2426 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
2427 Windows versions): Fix incorrect base
2428 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
2429 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
2430 System.Address for the To parameter instead of a Sockaddr_In_Access, to
2431 achieve independance from AF_INET family, and also to allow this
2432 parameter to be retrieved from a Msghdr for the Windows case where
2433 these routines are used to implement C_Sendmsg and C_Recvmsg.
2435 2009-05-06 Bob Duff <duff@adacore.com>
2437 * g-expect.adb, g-expect.ads: Minor reformatting
2439 * sdefault.ads: Minor comment fix
2441 * g-expect-vms.adb: Minor reformatting
2443 * table.ads, table.adb (Append_All): New convenience procedure for
2444 appending a whole array.
2446 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
2447 box message. Call Osint.Dump_Source_File_Names to print out the file
2448 list, instead of rummaging around in various data structures.
2450 * debug.adb: New switch -gnatd.n, to print source file names as they
2453 * alloc.ads: Add parameters for Osint.File_Name_Chars.
2455 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
2456 out source file names during a "bug box".
2457 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
2458 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
2459 If it's not part of the runtimes, store it for later printing by
2460 Dump_Source_File_Names.
2462 2009-05-06 Javier Miranda <miranda@adacore.com>
2464 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
2465 documentation and add reference to the GNAT user guide for further
2468 2009-05-06 Javier Miranda <miranda@adacore.com>
2470 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
2471 also wrong examples that use extension aggregates.
2473 2009-05-06 Albert Lee <lee@adacore.com>
2475 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
2476 of Msg_Iovlen_T for VMS.
2478 2009-05-04 Laurent GUERBY <laurent@guerby.net>
2481 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
2483 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2485 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
2486 box-defaulted operator in an instantiation, when the type of the
2487 operands is not directly visible.
2489 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2491 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
2492 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
2493 analysis of the ancestor part. Remove prohibition against limited
2494 interpretations of the ancestor expression in the case of Ada 2005.
2495 Revise error message in overloaded case, adding a message to cover
2498 2009-04-29 Thomas Quinot <quinot@adacore.com>
2500 * xoscons.adb: Minor reformatting
2502 2009-04-29 Bob Duff <duff@adacore.com>
2504 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
2505 attribute_definition_clauses for the following attributes when the
2506 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
2507 Storage_Size, Write. Otherwise, we get spurious errors (for example,
2508 missing Read attribute on remote types).
2510 * gnat_ugn.texi: Document the change, and add a stern warning.
2512 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2514 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
2515 disabled not just for the current scope, but for the innermost dynamic
2518 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2520 * gcc-interface/Make-lang.in: Update dependencies
2522 2009-04-29 Vincent Celier <celier@adacore.com>
2524 * prj-part.adb: Minor comment update
2526 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2528 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
2529 box-initialized records with discriminated subcomponents that are
2530 constrained by discriminants of enclosing components. New subsidiary
2531 procedures Add_Discriminant_Values, Propagate_Discriminants.
2533 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2535 * g-socket.adb: Code clean up.
2537 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2539 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
2540 function entity, to cover the case of a parameterless function call
2541 that has not been resolved.
2543 2009-04-29 Robert Dewar <dewar@adacore.com>
2545 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
2546 reformatting and comment updates.
2548 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2550 * gnat_ugn.texi: Update some documentation about interfacing with C++
2551 Mention -fkeep-inline-functions.
2553 * gnat_ugn.texi: Minor edits
2555 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2557 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
2558 for a defaulted component of an enclosing aggregate, inherit the type
2559 from the component declaration of the enclosing type.
2561 2009-04-29 Albert Lee <lee@adacore.com>
2563 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
2564 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
2565 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
2566 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
2567 Relocate the Msghdr record type from GNAT.Sockets.Thin to
2568 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
2569 type for the Msg_Iovlen field.
2571 2009-04-29 Vincent Celier <celier@adacore.com>
2573 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
2574 Source_File_Index_Table entries for the source, to avoid crash when
2577 * gnatcmd.adb (Test_If_Relative_Path): Use
2578 Makeutl.Test_If_Relative_Path.
2580 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
2581 Including_RTS is True.
2583 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
2584 Including_RTS defaulted to False.
2586 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
2589 2009-04-29 Javier Miranda <miranda@adacore.com>
2591 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
2593 2009-04-29 Javier Miranda <miranda@adacore.com>
2595 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
2596 associated with dyamically tagged expressions if the expression
2597 initializing a tagged type corresponds with a non default CPP
2599 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
2600 of limited type objects.
2602 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
2603 when a CPP constructor is called in an assignment. Disable also the
2604 error message associated with dyamically tagged expressions if the
2605 exporession initializing a tagged type corresponds with a non default
2608 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
2609 non-default C++ constructors.
2611 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
2613 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
2614 non-default constructors.
2615 (Init_Proc): Add support for non-default constructors.
2617 * exp_disp.adb (Set_Default_Constructor): Removed.
2618 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
2619 but extending its functionality to handle non-default constructors.
2621 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
2622 constructors. Minor code cleanup removing unrequired label and goto
2625 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
2627 (Build_Init_Statements): Add support for non-default constructors.
2628 (Expand_N_Object_Declaration): Add support for non-default constructors.
2629 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
2630 to Set_CPP_Constructors.
2632 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
2633 non-default constructors.
2634 Required to handle its use in build-in-place statements.
2636 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
2637 pragma for non-default C++ constructors and the new compiler support
2638 that allows the use of these constructors in record components, limited
2639 aggregates, and extended return statements.
2641 2009-04-29 Vincent Celier <celier@adacore.com>
2643 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
2644 project extending an abstract project.
2646 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2648 * targparm.ads: Fix oversight.
2650 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2652 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
2653 derivation when necessary, to find the user-subprogram that is actally
2656 2009-04-29 Robert Dewar <dewar@adacore.com>
2658 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
2661 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2663 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
2664 primitive operation, rather than source line of synchronized type, when
2665 building the wrapper for a primitive operation that overrides an
2666 operation inherited from a progenitor, to improve the error message on
2667 duplicate declarations.
2669 * sem_ch3.adb (Process_Full_View): Use new signature of
2672 2009-04-29 Robert Dewar <dewar@adacore.com>
2674 * prj-nmsc.ads: Minor reformatting
2676 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2678 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
2679 expression on the existing parent If statement.
2681 2009-04-29 Robert Dewar <dewar@adacore.com>
2683 * prj-proc.adb, prj.ads: Minor reformatting
2685 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
2687 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
2688 existing parent If statement on the newly created one.
2690 2009-04-29 Emmanuel Briot <briot@adacore.com>
2692 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2693 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
2694 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
2695 (Set_In_Configuration, In_Configuration): Removed.
2696 Replaced by an extra parameter Is_Config_File in several parameter to
2697 avoid global variables to store the state of the parser.
2699 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2701 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
2702 with_clauses generated for the same unit through rtsfind, and that
2703 appear in the context of different units.
2705 * rtsfind.adb: New attribute First_Implicit_With, component of the
2706 Unit_Record that stores information about a unit loaded through rtsfind.
2708 2009-04-29 Gary Dismukes <dismukes@adacore.com>
2710 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
2711 (other conditions permitting), so that abstract stream subprograms will
2712 be declared for them.
2714 2009-04-29 Bob Duff <duff@adacore.com>
2716 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
2718 * g-expect.ads: Minor comment fixes.
2720 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2722 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
2723 dispatching operation is a body without previous spec, update the list
2724 of primitive operations to ensure that cross-reference information is
2727 2009-04-29 Albert Lee <lee@adacore.com>
2729 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2730 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2731 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
2732 (GNAT.Sockets.Thin.C_Readv,
2733 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
2734 (GNAT.Sockets.Thin.C_Recvmsg,
2735 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
2737 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
2738 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
2740 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2742 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
2743 operation is a body without previous spec, update the list of
2744 primitive operations to ensure that cross-reference information is
2747 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
2748 new compilation unit node for the instance declaration, keep the
2749 context items of the original unit on it, so that the context of the
2750 instance body only holds the context inherited from the generic body.
2752 2009-04-29 Bob Duff <duff@adacore.com>
2754 * sem_res.adb: Minor comment fix.
2756 2009-04-29 Thomas Quinot <quinot@adacore.com>
2758 * sem_elim.adb: Minor reformatting
2760 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2762 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
2763 predefined unit, allow arbitrary number of components in static
2764 aggregate, to ensure that the same level of constant folding applies
2765 for Ada 95 and Ada 05 versions of the file.
2767 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2769 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
2770 information: no need for full scope check.
2771 (Eliminate_Error): Do not emit error in a generic context.
2773 2009-04-29 Ed Falis <falis@adacore.com>
2775 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
2776 VxWorks 653 POS does not support rmdir.
2778 2009-04-29 Matteo Bordin <bordin@adacore.com>
2780 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
2781 results are printed.
2783 2009-04-29 Arnaud Charlet <charlet@adacore.com>
2785 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
2788 2009-04-29 Thomas Quinot <quinot@adacore.com>
2790 * make.adb: Minor reformatting.
2791 Minor code reorganization throughout.
2793 2009-04-29 Matteo Bordin <bordin@adacore.com>
2795 * s-stausa.ads: Changed visibility of type Task_Result: moved to
2796 public part to give application visibility over it.
2797 This is for future improvement and to build a public API on top of it.
2798 Changed record components name of type Task_Result to reflect the new
2801 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
2802 reporting Stack usage.
2804 * gnat_ugn.texi: Update doc of stack usage report.
2806 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
2808 * Makefile.rtl: Add new run-time files.
2810 2009-04-29 Pascal Obry <obry@adacore.com>
2812 * initialize.c: Do not expand quoted arguments.
2814 2009-04-29 Emmanuel Briot <briot@adacore.com>
2816 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
2818 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
2819 Prj.Ultimate_Extending_Project_Of
2821 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2823 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
2824 Amendment type, add the with_clause for Finalization.List_Controller
2825 only if the current context is a package body.
2827 2009-04-29 Thomas Quinot <quinot@adacore.com>
2829 * sem_ch12.adb: Minor reformatting
2831 * sem_aggr.adb: Minor reformatting
2833 * sem_ch6.adb, sem_cat.ads: Minor reformatting
2835 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
2837 2009-04-29 Quentin Ochem <ochem@adacore.com>
2839 * prj.ads (Source_Id): Now general pointer type.
2841 2009-04-29 Thomas Quinot <quinot@adacore.com>
2843 * exp_ch7.adb, rtsfind.adb: Minor reformatting
2845 * sem_res.adb: Minor reformatting
2847 2009-04-29 Thomas Quinot <quinot@adacore.com>
2849 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
2850 operands is static only if it is a predefined concatenation operator.
2852 * sem_util.adb: Minor reformatting
2854 * sem_ch12.adb (Save_References): When propagating semantic information
2855 from generic copy back to generic template, for the case of an
2856 identifier that has been rewritten to an explicit dereference whose
2857 prefix is either an object name or a parameterless funcion call
2858 denoting a global object or function, properly capture the denoted
2859 global entity: perform the corresponding rewriting in the template,
2860 and point the rewritten identifier to the correct global entity (not
2861 to the associated identifier in the generic copy).
2863 2009-04-29 Robert Dewar <dewar@adacore.com>
2865 * rtsfind.adb, prj-env.adb: Minor reformatting
2866 Minor code reorganization
2868 2009-04-29 Emmanuel Briot <briot@adacore.com>
2870 * make.adb: Fix comment
2872 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
2873 is given as argument, as might happen in gnatmake.
2875 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2877 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
2878 an abstract operation of a progenitor is not properly overridden by an
2879 operation of a derived synchronized type.
2881 2009-04-29 Robert Dewar <dewar@adacore.com>
2883 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
2884 prj-proc.adb: Minor reformatting
2885 Minor code reorganization
2887 2009-04-29 Bob Duff <duff@adacore.com>
2889 * exp_ch7.adb (Build_Final_List): For an access type that designates a
2890 Taft Amendment type, if the access type needs finalization, make sure
2891 the implicit with clause for List_Controller occurs on the package spec.
2893 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
2894 with's created for the pseudo-children of Text_IO and friends. In
2895 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
2896 Ada.Text_IO.Integer_IO both with-ing each other.
2898 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
2899 oddball cases when pragma Extend_System is used.
2901 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
2902 the case where a package spec instantiates a generic whose body with's
2903 this package, so Walk_Library_Items won't complain about cyclic with's.
2905 2009-04-29 Emmanuel Briot <briot@adacore.com>
2907 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
2908 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
2909 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
2910 (Project_Id): now a real pointer to Project_Data, instead of an index
2911 into the Projects_Table. This simplifies the API significantly, avoiding
2912 extra lookups in this table and the need to pass the Project_Tree_Ref
2913 parameter in several cases
2915 2009-04-29 Nicolas Setton <setton@adacore.com>
2917 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
2920 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
2922 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
2925 2009-04-24 Robert Dewar <dewar@adacore.com>
2927 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
2928 clean.adb: Minor reformatting.
2929 Minor code reorganization and message improvement.
2931 2009-04-24 Emmanuel Briot <briot@adacore.com>
2933 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
2934 (Alternate_Languages): now implemented as a malloc-ed list rather
2935 than through a table.
2937 2009-04-24 Thomas Quinot <quinot@adacore.com>
2939 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
2940 accurately handle cases such as "lit" & "lit" and
2941 "lit" & static_string_constant
2943 2009-04-24 Emmanuel Briot <briot@adacore.com>
2945 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2946 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
2947 removed. Lists of projects are now implemented via standard malloc
2948 rather than through the table.
2950 2009-04-24 Thomas Quinot <quinot@adacore.com>
2952 * sem_ch12.adb: Minor reformatting
2954 * g-trasym.adb: Minor reformatting
2956 * exp_ch6.adb: Minor reformatting
2958 2009-04-24 Robert Dewar <dewar@adacore.com>
2960 * layout.adb (Layout_Type): For packed array type, copy unset
2961 size/alignment fields from the referenced Packed_Array_Type.
2963 2009-04-24 Bob Duff <duff@adacore.com>
2965 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
2966 longer needed after sem_ch12 changes.
2968 * sem.adb (Walk_Library_Items): Include with's in some debugging
2971 2009-04-24 Emmanuel Briot <briot@adacore.com>
2973 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
2974 only ever using the Project field.
2976 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2978 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
2979 Body_Required on the generated compilation node. The new node is linked
2980 to its body, but both share the same file, so we do not set this flag
2981 on the new unit so as not to create a spurious dependency on a
2982 non-existent body in the ali file for the instance.
2984 2009-04-24 Robert Dewar <dewar@adacore.com>
2986 * make.adb: Minor reformatting
2988 2009-04-24 Emmanuel Briot <briot@adacore.com>
2990 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
2991 Add_Source): merge some code between those. In particular change where
2992 file normalization is done to avoid a few extra calls to
2993 Canonicalize_File_Name. This also removes the need for passing
2994 Current_Dir in a number of subprograms.
2996 2009-04-24 Bob Duff <duff@adacore.com>
2998 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
2999 False, assign the correct unit to the Cunit field of the new table
3000 entry. We want the spec unit, not the body unit.
3002 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
3003 interface for these.
3004 (Maybe_Add_With): Check whether we're trying to a with on the current
3005 unit, and avoid creating such directly self-referential with clauses.
3006 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
3007 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
3008 and matches existing comments in the spec.
3010 * sem.adb (Walk_Library_Items): Add various special cases to make the
3013 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
3014 instead of Parent (N), for uniformity.
3016 2009-04-24 Robert Dewar <dewar@adacore.com>
3018 * errout.ads: Minor reformatting
3020 2009-04-24 Emmanuel Briot <briot@adacore.com>
3022 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
3023 behavior when the project includes sources from multiple languages
3025 2009-04-24 Vincent Celier <celier@adacore.com>
3027 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
3028 is a language other than Ada declared.
3030 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
3031 Imported_First set to True.
3033 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3035 * sem_res.adb: additional optimization to inhibit creation of
3036 redundant transient scopes.
3038 2009-04-24 Bob Duff <duff@adacore.com>
3040 * rtsfind.ads: Minor comment fix
3042 2009-04-24 Emmanuel Briot <briot@adacore.com>
3044 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
3045 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
3046 basically doing the same work (for explicit or implicit sources).
3047 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
3048 role. Rewritten to share some code (testing that all explicit sources
3049 have been found) between ada_only and multi_language modes.
3051 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
3053 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
3054 for CLI imported types.
3055 (Analyze_Pragma): Allow CIL or Java imported functions returning
3056 access-to-subprogram types.
3058 2009-04-24 Emmanuel Briot <briot@adacore.com>
3060 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
3061 (Project_Data.Dir_Path): field removed, since it can be computed
3062 directly from .Directory, and is needed only once when processing the
3063 project is buildgpr.adb or make.adb
3065 2009-04-24 Robert Dewar <dewar@adacore.com>
3067 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
3068 rtsfind.adb: Minor reformatting.
3069 Minor code reorganization
3071 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3073 * mlib-prj.adb: Use friendlier english identifier.
3075 * gnatcmd.adb, make.adb: Use better english identifiers.
3077 2009-04-24 Robert Dewar <dewar@adacore.com>
3079 * clean.adb: Minor reformatting
3081 2009-04-24 Robert Dewar <dewar@adacore.com>
3083 * einfo.adb (OK_To_Rename): New flag
3085 * einfo.ads (OK_To_Rename): New flag
3087 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
3090 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
3092 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
3095 2009-04-24 Emmanuel Briot <briot@adacore.com>
3097 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
3098 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
3099 field removed. This is not a property of the
3100 project, just a boolean used to traverse the project tree, and storing
3101 it in the structure prevents doing multiple traversal in parallel.
3102 (Project_Data.Checked): also removed, since it was playing the same role
3103 as Seen when we had two nested loops, and this is no longer necessary
3104 (For_All_Imported_Projects): removed, since in fact there was already
3105 the equivalent in For_Every_Project_Imported. The latter was rewritten
3106 to use a local hash table instead of Project_Data.Seen
3107 Various loops were rewritten to use For_Every_Project_Imported, thus
3108 removing the need for Project_Data.Seen. This avoids a lot of code
3111 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3113 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
3114 statements, even though the actual of the call is a concatenation,
3115 because the argument is static, and we want to preserve warning
3116 messages about sequences of code statements that are not marked
3119 * sem_warn.adb: remove obsolete comment about warning being obsolete
3121 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
3122 requeued and the delay has expired while within the accept statement
3123 that executes the requeue, do not perform the requeue and indicate that
3124 the timed call has been aborted.
3126 2009-04-24 Emmanuel Briot <briot@adacore.com>
3128 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3129 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
3130 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
3131 since they can be computed from the above.
3133 2009-04-24 Vincent Celier <celier@adacore.com>
3135 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
3137 * prj-env.adb: Move all global variables to the private part of the
3139 Access these new components instead of the global variables no longer
3141 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
3142 components that were previously global variables.
3144 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
3145 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
3148 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
3149 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
3151 * prj.adb (Initialize): Do not call Prj.Env.Initialize
3152 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
3153 components in the private part of the project tree data.
3155 * prj.ads (Private_Project_Tree_Data): new components moved from
3156 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
3157 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
3158 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
3160 2009-04-24 Vincent Celier <celier@adacore.com>
3162 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
3164 * prj-nmsc.adb (Check_Library): No error for imports by shared library
3165 projects, when --unchecked-shared-lib-imports is used.
3167 2009-04-24 Robert Dewar <dewar@adacore.com>
3169 * sem_ch7.adb: Minor reformatting
3171 2009-04-24 Tristan Gingold <gingold@adacore.com>
3173 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
3176 2009-04-24 Emmanuel Briot <briot@adacore.com>
3178 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
3179 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
3180 (For_All_Imported_Projects): new procedure
3181 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
3182 above rather than duplicating code.
3184 2009-04-24 Emmanuel Briot <briot@adacore.com>
3186 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3187 (Source_Id, Source_Data): use a real list to store sources rather than
3188 using an external table to store the elements. This makes code more
3189 efficient and more readable.
3191 2009-04-24 Emmanuel Briot <briot@adacore.com>
3193 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3194 (Source_Iterator): new type.
3195 This removes the need for having the sources on three different
3196 lists at the project tree, project and language level. They are now
3199 2009-04-24 Emmanuel Briot <briot@adacore.com>
3201 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
3203 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3205 * sem_warn.adb: Add comment on obsolete warning
3207 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3209 * s-tassta.adb (Create_Task): Fix violation of locking rule.
3211 2009-04-24 Emmanuel Briot <briot@adacore.com>
3213 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
3214 to Language_Ptr to better reflect its new implementation.
3215 (Project_Data.First_Languages_Processing): renamed to Languages now
3216 that the field with that name is no longer used
3217 (Project_Data.Languages): removed, no longer used, and duplicates
3218 information already available through First_Language_Processing.
3219 (Prj.Language_Index): now an actual pointer, instead of an index into
3220 a table. This makes the list somewhat more obvious, but more importantly
3221 removes the need to pass a pointer to the project_tree_data in a few
3222 places, and makes accessing the attributes of a languages more
3225 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3226 Thomas Quinot <quinot@adacore.com>
3228 * fe.h (Set_Identifier_Casing): Add const to second parameter.
3229 * gcc-interface/misc.c (internal_error_function): Make copy of return
3230 from pp_formatted_text before assigning BUFFER to it.
3231 (gnat_init): Likewise for main_input_filename and gnat_argv.
3232 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
3234 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3236 * ttypes.ads (Target_Double_Float_Alignment): New variable.
3237 (Target_Double_Scalar_Alignment): Likewise.
3238 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
3239 (Get_Double_Float_Alignment): New imported function.
3240 (Get_Double_Scalar_Alignment): Likewise.
3241 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
3242 the alignment of "double" floating-point types and "double" or larger
3243 scalar types, as parameterized by Target_Double_Float_Alignment and
3244 Target_Double_Scalar_Alignment respectively.
3245 * gcc-interface/gigi.h (double_float_alignment): Declare.
3246 (double_scalar_alignment): Likewise.
3247 (is_double_float_or_array): Likewise.
3248 (is_double_scalar_or_array): Likewise.
3249 (get_target_double_float_alignment): Likewise.
3250 (get_target_double_scalar_alignment): Likewise.
3251 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
3252 (get_target_strict_alignment): ...this.
3253 (get_target_double_float_alignment): New function.
3254 (get_target_double_scalar_alignment): Likewise.
3255 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3256 Test the presence of an alignment clause for under-aligned integer
3257 types. Take into account specific caps for the alignment of "double"
3258 floating-point types and "double" or larger scalar types, as
3259 parameterized by Target_Double_Float_Alignment and
3260 Target_Double_Scalar_Alignment respectively.
3261 (validate_alignment): Likewise.
3262 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
3263 (gigi): Initialize double_float_alignment and double_scalar_alignment.
3264 * gcc-interface/utils.c (double_float_alignment): New global variable.
3265 (double_scalar_alignment): Likewise.
3266 (is_double_float_or_array): New predicate.
3267 (is_double_scalar_or_array): Likewise.
3269 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3271 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
3272 the conditional expression only if it is common to both arms.
3274 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3276 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
3277 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
3278 arguments to build_allocator.
3279 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
3280 Remove code handling special allocator and assert its uselessness.
3282 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3284 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
3285 alignment is specified, do not promote that of the component type
3287 <E_Array_Subtype>: Likewise.
3289 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3291 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
3292 * sinfo.ads (Object Declaration): Likewise.
3293 (Assignment Statement): Likewise.
3294 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
3295 Do not force Is_True_Constant to false on the temporary.
3296 (Freeze_Entity): Do not force Is_True_Constant to false on names on
3297 the RHS of object declarations.
3298 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
3299 New case. Return 1 if the object is atomic.
3300 <N_Assignment_Statement>: Likewise.
3302 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3304 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3305 For packed array types, make the original array type a parallel type
3306 for the modular type and its JM wrapper if the type is bit-packed.
3307 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
3308 record type for packed array types. Remove kludge.
3310 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3312 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
3313 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3314 Use front-end predicates to compute signedness and precision.
3315 <E_String_Literal_Subtype>: Fold range type.
3316 Make sure to set longest_float_type_node to a scalar type.
3317 (elaborate_entity): Use consistent Constraint_Error spelling.
3318 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
3319 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
3320 output for the modulus, if any.
3321 <ENUMERAL_TYPE>: Likewise for the RM size.
3322 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
3324 * gcc-interface/utils.c (finish_record_type): Really test the alignment
3325 of BLKmode bit-fields to compute their addressability.
3326 (create_index_type): Adjust comments.
3327 (create_param_decl): Create the biased subtype manually.
3328 * gcc-interface/utils2.c (build_component_ref): Use consistent
3329 Constraint_Error spelling.
3331 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3333 * gcc-interface/cuintp.c: Clean up include directives.
3334 * gcc-interface/targtyps.c: Likewise.
3335 * gcc-interface/decl.c: Likewise.
3336 * gcc-interface/misc.c: Likewise.
3337 * gcc-interface/trans.c: Likewise.
3338 * gcc-interface/utils.c: Likewise.
3339 * gcc-interface/utils2.c: Likewise.
3340 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
3342 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3344 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
3345 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
3346 (SET_DECL_LANG_SPECIFIC): Likewise.
3348 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3349 Update comment about use of build_range_type.
3350 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
3351 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
3352 check for other cases of overloading.
3353 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
3354 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
3355 Use size_int in lieu of build_int_cst.
3356 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
3359 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3361 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
3362 type is an enumeral or a boolean type, change it to an integer type
3363 with the same mode and signedness.
3365 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3367 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
3368 for an external constant whose initializer is not absolute.
3370 2009-04-22 Taras Glek <tglek@mozilla.com>
3372 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
3373 * gcc-interface/trans.c: Likewise.
3374 * gcc-interface/utils.c: Likewise.
3376 2009-04-22 Ed Schonberg <schonberg@adacore.com>
3378 * sem_res.adb: Create block around procedure call when actual is a
3381 2009-04-22 Thomas Quinot <quinot@adacore.com>
3383 * s-soflin.ads: Fix typos
3385 2009-04-22 Vincent Celier <celier@adacore.com>
3387 * prj-env.adb: Minor comment change
3389 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
3390 Get_Name_String with No_File.
3392 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
3393 cannot be created even when not in verbose mode.
3395 2009-04-22 Emmanuel Briot <briot@adacore.com>
3397 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
3398 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
3399 Multi_Language modes, to avoid code duplication.
3400 (Project_Data.Include_Language): Removed.
3402 2009-04-22 Vincent Celier <celier@adacore.com>
3404 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
3405 the temporary file cannot be created, indicating the directory when the
3406 creation was attempted.
3408 2009-04-22 Emmanuel Briot <briot@adacore.com>
3410 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
3411 the language names, not their indices.
3413 2009-04-22 Emmanuel Briot <briot@adacore.com>
3415 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
3416 (Source_Data.Language_Name): Field removed.
3418 2009-04-22 Emmanuel Briot <briot@adacore.com>
3420 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
3423 2009-04-22 Emmanuel Briot <briot@adacore.com>
3425 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
3426 separate_suffix to the same value as the body_suffix.
3428 2009-04-22 Robert Dewar <dewar@adacore.com>
3430 * prj.adb: Minor code reorganization
3433 * prj-proc.adb: Minor code reorganization, clean up.
3435 * prj-nmsc.adb: Minor reformatting
3436 Minor code reorganization
3438 * gnat_ugn.texi: Add to doc on strict aliasing
3440 2009-04-22 Pascal Obry <obry@adacore.com>
3442 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
3445 * s-tasini.adb: Minor reformatting.
3447 * s-tassta.adb: Minor reformatting.
3449 2009-04-22 Emmanuel Briot <briot@adacore.com>
3451 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
3452 smaller subprograms.
3453 Renamed to Check_File_Naming_Schemes to avoid confusion with the
3454 other Check_Naming_Schemes functions that plays a totally different
3456 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
3457 extracted from the above. These were partially rewritten to avoid
3458 unnecessary code and temporary variables.
3459 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
3460 and Get_Unit (which for now still exist since they contain mode-specific
3463 2009-04-22 Emmanuel Briot <briot@adacore.com>
3465 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
3466 Remove duplicated code.
3467 (Canonical_Case_File_Name): new subprogram
3468 (Check_And_Normalize_Unit_Names): new subprogram
3469 (Write_Attr): new subprogram
3470 Better sharing of code
3471 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
3472 split Check_Naming and help find duplicated code
3473 (Check_Common): new subprogram, sharing code between ada_only and
3474 multi_language mode.
3475 (Naming_Data.Dot_Repl_Loc): field removed
3477 2009-04-22 Emmanuel Briot <briot@adacore.com>
3479 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
3480 Minor refactoring to reduce the size of
3481 Process_Sources_In_Multi_Language_Mode.
3482 Avoid extra copied of Source_Data, which we found in the past could be
3484 (Mark_Excluded_Sources): new subprogram.
3485 (Remove_Locally_Removed_Files_From_Units): merged into the above
3486 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
3487 and allow better sharing of code between multi_lang and ada_only modes
3488 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
3490 2009-04-22 Emmanuel Briot <briot@adacore.com>
3492 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
3493 Removed, since unused.
3495 2009-04-22 Vincent Celier <celier@adacore.com>
3497 * prj-attr.adb: New single project level attribute
3498 Separate_Run_Path_Options.
3500 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3501 attribute Seperate_Run_Path_Options.
3503 * prj.ads: (Project_Configuration): New Boolean component
3504 Separate_Run_Path_Options, defaulted to False.
3506 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
3508 2009-04-22 Robert Dewar <dewar@adacore.com>
3510 * sem_type.adb: Minor reformatting
3512 * mlib.adb: Minor reformatting
3514 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
3517 2009-04-22 Nicolas Setton <setton@adacore.com>
3519 * link.c: Add flag __gnat_separate_run_path_options.
3521 * mlib.adb (Separate_Run_Path_Options): New subprogram.
3523 * mlib.ads (Separate_Run_Path_Options): Declare.
3525 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
3526 switch per directory, rather than one "rpath" switch listing all
3529 * gnatlink.adb (Process_Binder_File): Likewise.
3531 * make.adb (Gnatmake): Likewise.
3533 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
3535 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
3536 Add a call to Move_Final_List when the target of the assignment is a
3537 return object that needs finalization and the expression is a
3538 controlled build-in-place function.
3540 2009-04-22 Vincent Celier <celier@adacore.com>
3542 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
3543 Including_Libraries set to True.
3545 2009-04-22 Ed Schonberg <schonberg@adacore.com>
3547 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
3548 create a unit table entry for the subprogram declaration created for a
3549 child suprogram body that has no separate specification.
3551 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
3552 subprogram body, call Make_Child_Decl_Unit.
3554 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
3555 table can only be the created specification of a child subprogram body
3556 that is the main unit, which has not been entered in the table yet.
3558 * errout.adb (Output_Messages): Ignore created specification of a
3559 child subprogram body to prevent repeated listing of error messages.
3561 * gnat1drv.adb (gnat1drv): The generated specification for a child
3562 subprogram body does not generate code.
3564 2009-04-22 Arnaud Charlet <charlet@adacore.com>
3566 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
3567 since this unit is now part of bootstrap units, so must use Ada 95
3570 2009-04-22 Thomas Quinot <quinot@adacore.com>
3572 * a-tasatt.adb: Minor reformatting
3574 2009-04-22 Bob Duff <duff@adacore.com>
3576 * s-stalib.ads: Remove "with System;" since we're inside System, so
3579 2009-04-22 Vincent Celier <celier@adacore.com>
3581 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
3582 the source record, as there may be a dependency file even if no object
3585 2009-04-22 Robert Dewar <dewar@adacore.com>
3587 * lib-load.adb: Minor reformatting
3589 * lib-load.ads: Minor reformatting
3591 * sinfo.ads: Minor reformatting
3593 2009-04-22 Bob Duff <duff@adacore.com>
3595 * exp_pakd.adb: Minor comment fixes.
3597 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
3598 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
3599 include units containing instantiations, as well as units that are
3600 generic instantiations.
3602 * sem.adb: Include dependents and corresponding specs/bodies in the
3605 * gcc-interface/Make-lang.in:
3606 sem now depends on s-bitops, because of the packed array of Booleans.
3608 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3610 * gcc-interface/ada-tree.def: Fix formatting nits.
3611 (REGION_STMT): Delete.
3612 (HANDLER_STMT): Likewise.
3613 * gcc-interface/ada-tree.h: Fix formatting nits.
3615 (REGION_STMT_BODY): Likewise.
3616 (REGION_STMT_HANDLE): Likewise.
3617 (REGION_STMT_BLOCK): Likewise.
3618 (HANDLER_STMT_ARG): Likewise.
3619 (HANDLER_STMT_LIST): Likewise.
3620 (HANDLER_STMT_BLOCK): Likewise.
3621 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
3622 (fp_size_to_prec): Likewise.
3623 (largest_move_alignment): Delete.
3624 (gnat_compute_largest_alignment): Likewise.
3626 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3627 Remove redundant code.
3628 <E_Array_Type>: Remove redundant assert.
3629 <E_Array_Subtype>: Exit early from index computation in pathological
3631 Rewrite conditional assignment.
3632 (make_type_from_size): Likewise.
3633 * gcc-interface/misc.c (largest_move_alignment): Delete.
3634 (gnat_finish_incomplete_decl): Likewise.
3635 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
3636 (asm_out_file): Likewise
3637 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
3638 (gnat_dwarf_name): Move around.
3639 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
3640 (gigi): Remove call to gnat_compute_largest_alignment.
3641 * utils.c (create_field_decl): Rewrite conditional assignment.
3644 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3646 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
3647 on entry. Defer common processing for types. Reorder and clean up.
3648 Compute the equivalent GNAT node and the default size for types only.
3649 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
3650 <E_Access_Type>: For an unconstrained designated type, do not pretend
3651 that a dummy type is always made.
3652 <all> Fix nits in comments.
3653 (validate_size): Fix formatting nits and comments.
3654 (set_rm_size): Likewise.
3655 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
3656 passed to TARGET_PROMOTE_PROTOTYPES hook.
3658 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3660 * fe.h (Get_External_Name): Declare.
3661 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
3662 (concat_name): ...this.
3663 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
3664 gnu_entity_name and adjust for above renaming.
3665 <E_Access_Type>: Use create_concat_name to get the name of the various
3666 types associated with unconstrained array types.
3667 (make_aligning_type): Adjust for above renaming.
3668 (maybe_pad_type): Likewise.
3669 (components_to_record): Likewise. Use get_identifier_with_length for
3670 the encoding of the variant.
3671 (get_entity_name): Use get_identifier_with_length.
3672 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
3673 Do not fiddle with Name_Buffer.
3674 (concat_id_with_name): Rename to...
3675 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
3677 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
3680 2009-04-21 Joseph Myers <joseph@codesourcery.com>
3682 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
3685 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3687 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
3689 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3691 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
3692 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
3693 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
3694 Remove useless support code for packed array types and assert its
3696 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
3697 adjust for TYPE_RM_SIZE change.
3698 <all> Fix nits in comments. Use Original_Array_Type accessor instead
3699 of Associated_Node_For_Itype accessor for packed array types.
3700 (make_packable_type): Likewise.
3701 (maybe_pad_type): Likewise.
3702 (set_rm_size): Likewise. Rework conditional statement. Adjust for
3703 TYPE_RM_SIZE change.
3704 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
3705 (rm_size): Fix nits in comments. Rework conditional statements.
3706 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
3708 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
3709 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
3710 appropriate function to initialize the size_type_node. Adjust for
3711 TYPE_RM_SIZE change.
3713 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3715 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
3716 for imported subprograms.
3718 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3720 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
3721 constant objects covered by 13.3(19) volatile.
3723 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3725 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
3726 of dummy fat pointer types to the debug back-end.
3728 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3730 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
3731 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
3732 before wrapping it up in the record type. Do not overwrite the
3733 Ada size of the record type with the Esize.
3735 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3737 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
3738 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
3739 if the conversion is on the LHS of an assignment and a no-op.
3740 <all> Do not convert the result to the result type if the Parent
3741 node is such a conversion.
3743 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3745 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
3746 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
3747 of types with unknown discriminants.
3748 (substitute_in_type): Rewrite and restrict to formal substitutions.
3749 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
3750 (update_pointer_to): Update comment.
3752 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3754 * sem_ch8.adb (Use_One_Package): In an instance, if two
3755 potentially_use_visible and non-overloadable homonyms are available
3756 from the actuals of distinct formal packages, retain the current one,
3757 which was visible in the generic, to prevent spurious visibility
3759 (End_Use_Package): Restore use_visibility when needed.
3761 2009-04-20 Sergey Rybin <rybin@adacore.com>
3763 * gnat_ugn.texi, vms_data.ads: Update doc.
3765 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3767 * gcc-interface/Make-lang.in: Update dependencies
3769 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
3772 2009-04-20 Robert Dewar <dewar@adacore.com>
3774 * checks.ads: Fix documentation of range check handling
3776 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3778 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
3779 a redundant use_type clause.
3781 2009-04-20 Robert Dewar <dewar@adacore.com>
3783 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
3784 this attribute can be evaluated at compile time.
3785 (Eval_Attribute, case Range_Length): Same improvement
3787 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
3789 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3791 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
3792 for better handling of null procedures.
3793 (Check_Overriding_Indicator): Do not emit a warning on a missing
3794 overriding indicator on an operator when the type of which the operator
3795 is a primitive is private.
3797 2009-04-20 Bob Duff <duff@adacore.com>
3799 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
3802 2009-04-20 Robert Dewar <dewar@adacore.com>
3804 * sem_attr.adb: Minor reformatting
3806 * gnatcmd.adb: Minor reformatting
3808 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3810 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
3811 overloaded and one interpretation matches the context, label the
3812 operand with the type of first formal.
3814 2009-04-20 Bob Duff <duff@adacore.com>
3816 * debug.ads: Minor comment fix.
3818 * debug.adb: Minor comment fixes.
3820 2009-04-20 Javier Miranda <miranda@adacore.com>
3822 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
3824 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
3826 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
3827 is expanded into a call to Raise_Exception, avoid passing the
3828 exception-name'identity in runtimes in which this argument
3831 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
3833 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
3834 generated bindings for cil.
3836 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3838 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
3839 discriminants, collect components from the Underlying_Record_View,
3840 which will be used in the expansion of the aggregate into assignments.
3842 * sem_ch3.adb: Do not label derived type with unknown discriminants as
3843 having a private declaration.
3845 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3847 * exp_util.adb (Expand_Subtype_From_Expr): use the
3848 underlying_record_view when available, to create the proper constrained
3849 subtype for an object of a derived type with unknown discriminants.
3851 2009-04-20 Javier Miranda <miranda@adacore.com>
3853 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
3854 formals that have pragma unreferenced.
3856 2009-04-20 Pascal Obry <obry@adacore.com>
3858 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
3859 Remove all calls to To_Lower_If_Case_Insensitive to preserve
3860 the pathname original casing.
3862 2009-04-20 Robert Dewar <dewar@adacore.com>
3864 * g-trasym.adb: Minor reformatting
3866 * s-os_lib.adb: Minor reformatting
3868 * sem.adb: Minor reformatting
3869 Minor code reorganization
3871 * sem_ch3.adb: Minor reformatting
3873 * sem_ch4.adb: Minor reformatting
3875 * sem_ch8.adb: Minor reformatting
3877 * sem_type.adb: Minor reformatting
3879 2009-04-20 Javier Miranda <miranda@adacore.com>
3881 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
3882 generated by derivations of tagged types use the aliased subprogram a
3883 reference to locate their controlling type.
3885 2009-04-20 Tristan Gingold <gingold@adacore.com>
3887 * g-trasym.adb: Set size of result buffer before calling
3890 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3892 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
3893 to a function returning an array can be interpreted as a call with
3894 defaulted parameters whose result is indexed, take into account the
3895 types of all the indices of the array result type.
3897 2009-04-20 Pascal Obry <obry@adacore.com>
3899 * a-direct.adb, s-os_lib.adb: Minor reformatting.
3901 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3903 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
3904 null exclusion qualifiers for object renaming declarations.
3906 2009-04-20 Nicolas Roche <roche@adacore.com>
3908 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
3909 unsigned long long. So compare local_time and utc_time before computing
3912 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3914 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
3915 of the Underlying_Record_View before that of the derived type.
3917 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
3918 with unknown discriminants with regard to the parent subtype.
3920 2009-04-20 Bob Duff <duff@adacore.com>
3922 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
3923 that are not included. This is necessary if the main unit is a generic
3926 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
3927 because it doesn't work if -gnatn is used.
3929 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3931 * rtsfind.adb (RTE, RTE_Record_Component): In
3932 Configurable_Run_Time_Mode, do not enable front-end inlining.
3934 2009-04-20 Thomas Quinot <quinot@adacore.com>
3936 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
3937 System.Address_To_Access_Conversions.
3939 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3941 * sem.adb: Guard against ill-formed subunits.
3943 2009-04-20 Bob Duff <duff@adacore.com>
3945 * output.adb (Flush_Buffer): Do not indent blank lines.
3946 (Ignore_Output): New procedure for output suppression.
3948 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3950 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
3951 when it is positive. This avoids a potential constraint error raised
3952 by the conversion to Natural.
3954 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3956 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
3957 involves a target that has a specified address, don't set Forward_OK
3958 and Backward_OK to False if the rhs is an aggregate, since overlap
3961 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3963 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
3964 in an object renaming declaration when the expected type is an
3965 anonymous access type.
3967 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
3968 ambiguity when one interpretation is an anonymous access type and the
3969 other is a named access type, and the context itself is anonymous
3971 2009-04-20 Thomas Quinot <quinot@adacore.com>
3973 * einfo.ads: Minor comment rewording
3975 * sem_aggr.adb: Minor comment rewording
3977 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
3979 2009-04-20 Pascal Obry <obry@adacore.com>
3981 * adaint.c (__gnat_is_readable_file): Check for file existence
3982 when not using ACL (always the case on remote drives).
3984 2009-04-20 Robert Dewar <dewar@adacore.com>
3986 * sinfo.ads: Minor comment fixes
3988 * exp_disp.adb: Minor reformatting
3990 * gnat1drv.adb: Minor reformatting
3992 * output.adb: Minor reformatting
3994 * s-vxwext-kernel.ads: Minor reformatting
3996 * sem.ads: Minor reformatting
3998 * sem.adb: Minor reformatting
4000 * sem_elim.adb: Minor reformatting
4002 * uname.ads: Minor reformatting
4004 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4006 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
4007 a small dope of 4 words to the adjustment to the stack pointer.
4009 2009-04-20 Thomas Quinot <quinot@adacore.com>
4011 * xoscons.adb: generate C header s-oscons.h in
4012 addition to s-oscons.ads.
4014 * socket.c: On VMS, use s-oscons.h.
4016 * sem_ch3.adb: Minor reformatting
4018 * exp_ch9.adb: Minor reformatting
4020 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4022 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
4023 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
4024 (call_to_gnu): Likewise.
4026 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4028 * gcc-interface/trans.c (gigi): Declare the name of the compilation
4029 unit as the first global name at the very beginning.
4031 2009-04-20 Thomas Quinot <quinot@adacore.com>
4033 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4034 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
4035 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
4036 since HP-UX supports neither inet_aton nor inet_pton (altough the
4037 latter is part of the Single UNIX Specification!).
4038 So reorganize code, and share C implementation based on inet_addr(3)
4039 with VMS (instead of having a VMS specific Ada implementation in
4042 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4044 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
4045 to return the object file name saved by Set_Object_Output_File_Name.
4047 2009-04-20 Emmanuel Briot <briot@adacore.com>
4049 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
4050 for the standard command line, when argc has been modified since the
4051 start of the application.
4053 2009-04-20 Thomas Quinot <quinot@adacore.com>
4055 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
4056 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
4058 2009-04-20 Bob Duff <duff@adacore.com>
4060 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
4063 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4065 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
4066 subprogram as Eliminated when source operation is.
4067 (Expand_N_Protected_Type_Declaration): Generate protected and
4068 unprotected specs for the internal operations, even if the source
4069 operation is eliminated.
4071 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4073 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
4074 Predefined_Primitive_Bodies): Do not create the declarations and bodies
4075 of the primitive subprograms associated with dispatching select
4076 statements when the runtime is in configurable mode.
4078 2009-04-20 Ed Falis <falis@adacore.com>
4080 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
4082 2009-04-20 Thomas Quinot <quinot@adacore.com>
4084 * s-oscons-tmplt.c: Add support for generating a dummy version of
4085 s-oscons.ads providing all possible constants.
4087 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
4089 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
4090 ANSI version (not the UNICODE version) of WSAStringToAddress.
4092 2009-04-20 Pascal Obry <obry@adacore.com>
4094 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
4095 allocated for the security descriptor and make sure all
4096 handles are closed before leaving this procedure.
4098 2009-04-20 Javier Miranda <miranda@adacore.com>
4100 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
4101 (Set_Is_Underlying_Record_View): New subprogram
4103 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
4104 private types with unknown discriminants use the underlying record view
4107 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
4108 underlying record view in the full view of private types whose parent
4109 has unknown discriminants.
4110 (Build_Derived_Record_Type): Avoid generating the class-wide entity
4111 associated with an underlying record view.
4112 (Derived_Type_Declaration): Avoid deriving parent primitives in
4113 underlying record views.
4115 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
4116 records with unknown discriminants.
4118 * sem_type.adb (Covers): Handle underlying record views.
4119 (Is_Ancestor): Add support for underlying record views.
4121 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
4122 dispatching call if the type of the target object is tagged and has
4123 unknown discriminants.
4125 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
4126 unknown discriminants.
4128 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
4129 tables for internally built underlying record views.
4131 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
4132 empty list of component associations.
4134 2009-04-20 Thomas Quinot <quinot@adacore.com>
4136 * sem_ch10.adb: Minor reformatting
4138 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4139 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
4140 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
4141 standard inet_pton API (and emulate it on platforms that do not
4143 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
4144 DECC$INET_ADDR, imported in Ada.
4145 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
4146 implementation provided by GNAT runtime.
4147 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
4150 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4152 * gnat_ugn.texi: Add documentation for -fno-ivopts.
4154 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4156 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
4157 with_clause if it is the main unit.
4159 2009-04-20 Thomas Quinot <quinot@adacore.com>
4161 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
4162 (no behaviour change): Use Append instead of Increment_Last followed
4165 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4167 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
4168 declarations of all primitives associated with dispatching asynchronous,
4169 conditional and timed selects when dispaching calls are forbidden and
4170 select statements are not allowed (such as in Ravenscar).
4171 (Predefined_Primitive_Bodies): Ditto for bodies.
4173 * exp_disp.ad (Make_DT): Do not create and populate the
4174 Select_Specific_Data of the dispatch table when dispatching calls are
4175 forbidden and select statements are not allowed (such as in Ravenscar).
4177 2009-04-20 Robert Dewar <dewar@adacore.com>
4179 * a-tifiio.adb: Minor reformatting
4181 2009-04-20 Thomas Quinot <quinot@adacore.com>
4183 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
4184 other C library functions, report *failure* with a zero status, and
4185 success with a non-zero status.
4187 2009-04-20 Bob Duff <duff@adacore.com>
4189 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
4190 (Semantics): After analyzing each unit, Append it to the
4191 Comp_Unit_List, if appropriate.
4193 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
4195 (Gnat1drv): Correct comment regarding Back_End_Mode.
4197 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4199 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
4201 2009-04-20 Thomas Quinot <quinot@adacore.com>
4203 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4204 output.adb, output.ads, s-taprop-hpux-dce.adb,
4205 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
4208 2009-04-20 Thomas Quinot <quinot@adacore.com>
4210 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
4211 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
4212 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
4213 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
4214 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
4215 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
4217 * debug.adb: Fix typo
4219 * gnat_rm.texi: Minor doc fix.
4221 * sem_ch7.adb, freeze.adb: Minor reformatting
4223 2009-04-20 Thomas Quinot <quinot@adacore.com>
4225 * g-socket.ads: Add new constants:
4227 Unspecified_Group_Inet_Addr
4228 All_Hosts_Group_Inet_Addr
4229 All_Routers_Group_Inet_Addr
4231 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
4232 ERANGE (Result too large).
4233 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
4234 propagation of errno to caller.
4236 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4238 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
4239 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
4242 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4244 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
4245 checking for references to eliminated subprograms that should be
4247 (Eliminate_Error_Message): Update comment to say "references" rather
4248 than "calls" (since attribute cases are handled here as well).
4250 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
4251 checking for references to eliminated subprograms that should be
4252 flagged. Add with and use of Sem and Sem_Util.
4254 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
4255 Add with and use of Sem_Elim.
4257 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
4258 applied to eliminated subprograms.
4259 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
4260 eliminated subprograms.
4261 Add with and use of Sem_Elim.
4263 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
4264 to eliminated subprograms, now handled during Resolve_Call.
4265 Remove with and use of Sem_Elim.
4267 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
4268 testing Is_Eliminated, for proper handling of primitive derived from
4269 eliminated subprograms.
4271 2009-04-20 Vincent Celier <celier@adacore.com>
4273 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
4274 has been declared (Library_GCC or Linker'Driver), for the driver name.
4276 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
4277 Linker'Driver is, use Linker'Driver as the shared library linker.
4278 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
4279 Library_GCC is declared.
4280 (Check_Library_Attributes): Set up the shared linker driver: either
4281 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
4284 2009-04-20 Thomas Quinot <quinot@adacore.com>
4286 * g-socket.ads (Send_Socket): Fix misleading comment.
4288 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4290 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
4293 2009-04-20 Geert Bosch <bosch@adacore.com>
4295 * a-tifiio.adb (Put): Avoid generating too many digits for certain
4296 fixed types with smalls that are neither integer or the reciprocal
4299 2009-04-20 Bob Duff <duff@adacore.com>
4301 * uname.ads: Minor comment fix.
4303 * types.ads: Minor comment fix.
4305 2009-04-20 Pascal Obry <obry@adacore.com>
4307 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
4308 avoid warning. At the same time fix a memory leak.
4310 * osint.adb (Get_Libraries_From_Registry): Properly free memory
4311 returned by the above routine.
4313 2009-04-20 Robert Dewar <dewar@adacore.com>
4315 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
4316 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
4317 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
4318 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
4320 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
4322 2009-04-20 Pascal Obry <obry@adacore.com>
4324 * initialize.c (__gnat_initialize): Add braces to kill warning.
4326 * adaint.c: Minor reformatting, remove trailing spaces.
4328 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4330 * gcc-interface/Make-lang.in: Update dependencies.
4332 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4334 * adaint.h (__gnat_lwp_self): Declare on Linux.
4336 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
4338 2009-04-20 Robert Dewar <dewar@adacore.com>
4340 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
4341 front-end part of -fpreserve-control-flow switch.
4343 2009-04-20 Bob Duff <duff@adacore.com>
4345 * rtsfind.adb: Minor comment fix
4347 2009-04-20 Robert Dewar <dewar@adacore.com>
4349 * exp_aggr.adb: Minor reformatting
4350 Minor code reorganization (use Nkind_In)
4352 * g-socket.adb: Minor reformatting
4354 * g-socket.ads: Minor comment fix
4356 * s-auxdec.ads: Minor comment and organization update.
4358 * s-auxdec-vms_64.ads: Minor comment and organization update.
4360 * sem_ch10.adb: Minor addition of ??? comment
4362 * sem_disp.adb: Minor reformatting
4364 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4366 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
4367 list a caller of an inlined subprogram, if the caller itself is not
4370 2009-04-20 Pascal Obry <obry@adacore.com>
4372 * adaint.c: Disable use of ACL on network drives.
4374 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4376 * gnat_ugn.texi: Add examples.
4378 2009-04-20 Thomas Quinot <quinot@adacore.com>
4380 * g-socket.ads (Abort_Selector): Clarify documentation.
4382 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4384 * opt.ads (Inspector_Mode): Update documentation of this flag.
4386 2009-04-20 Thomas Quinot <quinot@adacore.com>
4388 * g-socket.ads: Minor reformatting
4390 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
4391 consider S_resolvLib error codes since we only use the hostLib wrappers.
4393 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4395 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4396 of the Underlying_Record_View after that of the derived type.
4398 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4400 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
4403 2009-04-20 Javier Miranda <miranda@adacore.com>
4405 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
4407 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
4410 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
4413 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
4414 in internally built overriding subprograms.
4416 2009-04-20 Doug Rupp <rupp@adacore.com>
4418 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
4420 * s-auxdec.ads: Likewise
4422 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4424 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
4425 type by an interface.
4427 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
4428 minimze difference in expanded tree when compiled as spec of the main
4429 unit, or as a spec in the context of another unit.
4431 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4433 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
4434 (localtime_tzoff): This routine no longer accepts an actual of type
4436 (UTC_Time_Offset): Remove local variable Secs_TM.
4438 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
4439 actual of type struct tm*. Add local variable of type struct tm for all
4440 targets that provide localtime_r and need to invoke it.
4442 2009-04-20 Thomas Quinot <quinot@adacore.com>
4444 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
4445 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
4446 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
4448 2009-04-20 Robert Dewar <dewar@adacore.com>
4450 * sem_ch3.adb: Minor reformatting
4452 * lib-load.adb: Minor reformatting
4454 * sem_ch4.adb: Minor reformatting
4456 2009-04-20 Robert Dewar <dewar@adacore.com>
4458 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
4459 (equal values => False).
4461 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4463 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
4464 to null procedures can be inlined unconditionally.
4466 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4468 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
4469 non-addressable parameter passed by reference, do not convert the
4470 actual if its type is already the nominal type, unless it is of
4471 self-referential size.
4473 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4475 * gnat_ugn.texi: Fix typos.
4477 2009-04-20 Robert Dewar <dewar@adacore.com>
4479 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
4480 Validate_Unchecked_Warnings to suppress warnings about size or
4481 alignment or extra bits if either type involved has pragma Warnings
4482 (Off) set for the type entity.
4484 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
4486 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
4487 a builtin type and give it a name.
4489 2009-04-17 Diego Novillo <dnovillo@google.com>
4491 * gcc-interface/misc.c (gnat_expand_expr): Remove.
4492 (LANG_HOOKS_EXPAND_EXPR): Remove.
4494 2009-04-17 Robert Dewar <dewar@adacore.com>
4496 * sem_ch3.adb: Minor reformatting
4498 2009-04-17 Pascal Obry <obry@adacore.com>
4500 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
4502 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4504 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
4505 illegal constraints on type derived from formal discrete types.
4507 2009-04-17 Thomas Quinot <quinot@adacore.com>
4511 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4512 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4513 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
4514 g-socket.ads (GNAT.Sockets.Thin.C_Send,
4515 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
4516 Replace calls to send(2) with equivalent sendto(2) calls.
4517 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
4518 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
4519 report an error in that case. Factor code common to the two versions
4520 (datagram and stream) in common routine Stream_Write.
4522 2009-04-17 Robert Dewar <dewar@adacore.com>
4524 * exp_disp.adb: Minor reformatting
4525 Minor code reorganization (use Nkind_In)
4527 * prepcomp.adb: Minor reformatting
4529 * sem_ch3.adb: Minor reformatting
4531 * sem_res.adb: Minor comment addition
4533 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
4536 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
4537 setting Is_Referenced
4539 * types.ads: Minor reformatting
4541 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4543 * gnat_ugn.texi: Initial documentation on binding generator.
4545 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4547 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
4548 type extensions whose parent is a type with unknown discriminants.
4550 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
4551 aggregate has unknown discriminants, use the Underlying_Record_View to
4552 obtain the discriminants of the ancestor part.
4554 * exp_disp.adb (Build_Dispatch_Tables): Types that are
4555 Underlying_Record_Views share the dispatching information of the
4556 original record extension.
4558 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
4559 discriminants, propagate dispach table information to the
4560 Underlying_Record_View.
4562 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
4563 discriminants and declaration is not a completion, generate
4564 Underlying_Record_View to provide proper discriminant information to
4565 the front-end and to gigi.
4567 2009-04-17 Robert Dewar <dewar@adacore.com>
4569 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
4570 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
4571 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
4572 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
4573 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
4574 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
4575 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
4576 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
4577 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
4578 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
4579 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
4580 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
4581 s-conca3.ads: Remove unneeded pragma Warnings
4583 2009-04-17 Robert Dewar <dewar@adacore.com>
4585 * g-moreex.adb: Add comments.
4587 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
4589 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
4592 * prepcomp.adb: Add ??? comment
4594 * a-tasatt.adb: Minor reformatting
4596 * g-trasym-vms-alpha.adb: Add ??? comment
4598 * g-trasym-vms-ia64.adb: Add ??? comment
4600 * xoscons.adb: Minor reformatting
4602 * s-tassta.adb: Minor reformatting
4604 * s-scaval.adb: Add ??? comment
4606 * stand.ads: Minor code clean up (remove junk with of Namet)
4608 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
4609 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
4610 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
4611 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
4612 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
4613 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
4614 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
4615 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
4616 Warnings off pragmas.
4618 2009-04-17 Pascal Obry <obry@adacore.com>
4620 * initialize.c: Fix test for reallocating the arguments array.
4622 2009-04-17 Geert Bosch <bosch@adacore.com>
4624 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
4625 conversion truncate only for decimal fixed point types.
4627 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
4629 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
4632 2009-04-17 Robert Dewar <dewar@adacore.com>
4634 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
4635 Backwards_OK if either operand has an address clause.
4637 2009-04-17 Pascal Obry <obry@adacore.com>
4639 * initialize.c: Code clean up, use realloc.
4641 2009-04-17 Pascal Obry <obry@adacore.com>
4643 * initialize.c: Do not get Unicode command line if Unicode support not
4645 Add support for wildcard expansion for Unicode parameters on Win32.
4647 * mingw32.h: Add missing macros when Unicode support not activated.
4649 2009-04-17 Javier Miranda <miranda@adacore.com>
4651 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
4652 avoid generating code that references the Current_Master
4653 when compiling without tasks.
4655 2009-04-17 Vincent Celier <celier@adacore.com>
4657 * prj-attr.adb: New project level attribute Target
4659 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4662 * prj.ads (Project_Configuration): New component Target
4664 2009-04-17 Thomas Quinot <quinot@adacore.com>
4666 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
4667 case for the case of an aggregate component, the attach call for the
4668 result is actually needed.
4670 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
4671 an array aggregate must be disabled if the component type requires
4674 * exp_ch3.adb: Minor reformatting
4676 2009-04-17 Bob Duff <duff@adacore.com>
4678 * output.ads (Indent,Outdent): New procedures for indenting the output.
4679 (Write_Char): Correct comment -- LF _is_ allowed.
4681 * output.adb (Indent,Outdent): New procedures for indenting the output.
4682 Keep track of the indentation level, and make sure it doesn't get too
4684 (Flush_Buffer): Insert spaces at the beginning of each line, if
4685 indentation level is nonzero.
4686 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
4688 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
4689 "Next_Col := 1;". Flush_Buffer does that.
4691 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
4692 controlled by the -gnatdc switch. It now occurs on entry/exit to the
4693 relevant analysis routines, and calls Indent/Outdent to make the
4694 indentation reflect the nesting level. Add "helper" routines, since
4695 otherwise lots of "return;" statements would skip the debugging output.
4697 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4699 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
4700 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
4701 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
4703 2009-04-17 Thomas Quinot <quinot@adacore.com>
4705 * exp_aggr.adb: Minor code reorganization, no behaviour change.
4707 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4709 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
4710 clause in a unit that is a package body or a subunit, when the previous
4711 clause appears in a spec or a parent.
4713 2009-04-17 Thomas Quinot <quinot@adacore.com>
4715 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
4717 * exp_ch7.adb: Minor reformatting
4719 2009-04-17 Bob Duff <duff@adacore.com>
4721 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
4722 allocator, check that the expression of the qualified expression obeys
4723 the constraints of the subtype of the qualified expression.
4725 2009-04-17 Thomas Quinot <quinot@adacore.com>
4727 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
4729 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4731 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
4732 aggregate, using context imposed by subtype mark in allocator.
4734 2009-04-17 Pascal Obry <obry@adacore.com>
4736 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
4738 2009-04-17 Nicolas Roche <roche@adacore.com>
4740 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
4743 2009-04-17 Gary Dismukes <dismukes@adacore.com>
4745 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
4746 cover both calls and attribute references ("call" => "reference").
4748 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4750 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
4751 type for which Storage_Size is set to 0 is legal in a pure unit.
4753 2009-04-17 Thomas Quinot <quinot@adacore.com>
4755 * exp_ch7.adb: Minor reformatting
4757 2009-04-17 Robert Dewar <dewar@adacore.com>
4759 * restrict.adb (Check_Restriction_No_Dependence): Don't check
4760 restriction if outside main extended source unit.
4762 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
4763 for parents of child units as well as the child unit itself.
4765 2009-04-17 Bob Duff <duff@adacore.com>
4767 * checks.ads: Minor comment fix
4769 * exp_aggr.ads: Minor comment fix
4771 2009-04-17 Nicolas Roche <roche@adacore.com>
4773 * adaint.c: Improve cross compiler detection and handling.
4775 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
4777 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
4779 2009-04-17 Pascal Obry <obry@adacore.com>
4781 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
4784 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
4785 value when no encoding form paramter is set on Text_IO services.
4787 * adaint.c: CurrentCodePage new variable on Windows.
4788 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4791 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4794 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
4795 environment variable value. Default is UTF-8.
4797 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
4798 fopen and freopen encoding parameter is now set to Unspecified.
4799 The default value is in this case UTF-8 (as it was before) but
4800 use the new macros that convert to/from the code page set
4801 at runtime (CurrentCodePage).
4803 * s-fileio.adb: When no encoding specified use Unspecified value.
4805 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4807 * atree.adb, atree.ads: Remove dead code.
4809 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4811 * gcc-interface/Make-lang.in: Update dependencies.
4813 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4815 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
4816 illegal uses of incomplete types in formal parts and return types.
4818 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
4819 access to subprograms.
4821 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
4822 Taft-amendment types as the return type of an access_to_function type.
4824 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4825 type for access_to_subprograms. The check is performed on package exit.
4827 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4829 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
4831 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
4833 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
4835 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
4836 semantic units, because the handling of itypes in the copied tree
4837 requires semantic information that does not belong in atree.
4839 2009-04-17 Robert Dewar <dewar@adacore.com>
4841 * par-ch6.adb: Minor reformatting
4843 * prj.adb: Minor reformatting
4845 2009-04-17 Gary Dismukes <dismukes@adacore.com>
4847 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
4848 on protected subprogram bodies, so exclude the case where Pf_Flags is
4849 Pf_Decl_Pbod from the error check.
4851 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
4852 indicators on subprograms in protected bodies, and proceed with parsing
4855 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
4856 subprograms from the check for primitiveness on subprograms with
4857 overriding indicators.
4858 (Check_Overriding_Indicator): Include protected subprograms in the
4859 style check for missing overriding indicators.
4861 2009-04-17 Tristan Gingold <gingold@adacore.com>
4863 * init.c: Fix stack checking for x86 Darwin.
4865 2009-04-17 Vincent Celier <celier@adacore.com>
4867 * prj-attr.adb: New project level attribute Object_File_Suffix
4870 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
4872 (Process_Compiler): Process attribute Object_File_Suffix
4874 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
4875 platform suffix, when specified.
4877 * prj.ads (Language_Config): New component Object_File_Suffix,
4878 defaulted to No_Name.
4879 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
4881 * snames.ads-tmpl: New standard name Object_File_Suffix
4883 2009-04-17 Robert Dewar <dewar@adacore.com>
4885 * gnat_rm.texi: Add documentation about No_Streams restriction
4887 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
4888 attributes when checking No_Streams restriction.
4890 2009-04-17 Thomas Quinot <quinot@adacore.com>
4892 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
4894 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
4895 missing calls to RE_Request_Destroy to deallocate request objects after
4898 2009-04-17 Nicolas Setton <setton@adacore.com>
4900 * link.c: Fix support for passing a response file under Darwin.
4902 2009-04-17 Emmanuel Briot <briot@adacore.com>
4904 * prj.adb (Free): new subprogram.
4906 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4908 * sem_ch3.adb: additional initialization on incomplete subtypes.
4910 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
4911 part and one of the formals is an incomplete tagged type, attach to
4912 list of private dependends of the type for later validation.
4914 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
4915 primitive operations of a Taft-amendmment type.
4917 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4918 type. The check is performed on package exit, possibly after the
4919 subprogram is frozen.
4921 2009-04-17 Vincent Celier <celier@adacore.com>
4923 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
4924 before looking for source directories, but make sure that there are nil
4925 if they are not explicitely declared and there is explicitely no
4926 sources in the project.
4928 2009-04-17 Pascal Obry <obry@adacore.com>
4930 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
4932 * init.c: Fix minor typo and style fix.
4934 2009-04-17 Robert Dewar <dewar@adacore.com>
4936 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
4938 * sem_attr.adb (Analyze_Attribute, case Address): Use
4939 PE_Address_Of_Intrinsic.
4941 * types.ads: Add PE_Address_Of_Intrinsic
4943 * types.h: Add PE_Address_Of_Intrinsic
4945 2009-04-17 Nicolas Setton <setton@adacore.com>
4947 * gcc-interface/Makefile.in: Under darwin, build shared libraries
4948 with install_name starting with "@rpath/".
4950 2009-04-17 Nicolas Setton <setton@adacore.com>
4952 * link.c: Add darwin section
4954 2009-04-16 Robert Dewar <dewar@adacore.com>
4956 * g-pehage.adb: Minor reformatting
4958 * sem_ch12.adb: Minor reformatting
4960 * exp_dist.adb: Minor reformatting
4962 * bindgen.adb: Minor style fixes.
4964 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4966 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
4967 indexed components to the case where the prefix is a static string
4970 2009-04-16 Javier Miranda <miranda@adacore.com>
4972 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
4973 objects avoid any further expansion of the expression initializing the
4976 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4978 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
4979 that hides an outer homograph, make that homograph invisible when
4980 analyzing the actuals, to to prevent illegal direct visibility on it.
4982 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
4984 * g-pehage.adb (Initialize): Fix off-by-one error.
4986 2009-04-16 Tristan Gingold <gingold@adacore.com>
4988 * init.c: Detect real stack overflow on Darwin.
4990 * system-darwin-x86.ads: Use stack probing on darwin x86.
4992 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4994 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
4995 take the address of an intrinsic subprogram.
4997 2009-04-16 Arnaud Charlet <charlet@adacore.com>
4999 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
5000 for the targets where GNAT.Traceback.Symbolic is not supported.
5002 2009-04-16 Vincent Celier <celier@adacore.com>
5004 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
5006 * g-trasym.ads: Update comments.
5008 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5010 * tracebak.c (STOP_FRAME): Verify validity of the current address
5011 before dereferencing.
5013 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5015 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
5016 the original location of the index expressions and the index subtypes,
5017 to prevent spurious out-of-scope references in gigi.
5019 2009-04-16 Tristan Gingold <gingold@adacore.com>
5021 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
5022 Add support for stack checking on darwin.
5024 2009-04-16 Vincent Celier <celier@adacore.com>
5026 * prj-attr.adb: New attribute Runtime_Source_Dir
5028 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
5029 attribute Runtime_Source_Dir.
5030 (Check_Naming_Schemes): Give default values to out parameters to avoid
5033 * prj.ads (Language_Config): New component Runtime_Source_Dir
5035 * snames.ads-tmpl: New standard name Runtime_Source_Dir
5037 2009-04-16 Pascal Obry <obry@adacore.com>
5039 * adaint.h, adaint.c (__gnat_rmdir): New routine.
5040 Simple wrapper routines used to convert to proper encoding on
5043 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
5045 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
5048 2009-04-16 Pascal Obry <obry@adacore.com>
5050 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
5052 2009-04-16 Thomas Quinot <quinot@adacore.com>
5054 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
5055 integrated preprocessor.
5057 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
5058 (Initialize): Split into two subprograms, Initialize (to be called
5059 prior to compiler command line processing) and Setup_Hooks (to be called
5060 later on when the first source file is loaded).
5062 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
5063 Add call to Prep.Initialize.
5065 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
5066 to Prep.Setup_Hooks.
5068 2009-04-16 Pascal Obry <obry@adacore.com>
5070 * adaint.h, adaint.c (__gnat_chdir): New routine.
5071 Simple wrapper routines used to convert to proper encoding on
5074 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
5076 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
5078 2009-04-16 Quentin Ochem <ochem@adacore.com>
5080 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
5083 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5085 * a-convec.ads (Is_Empty): Mark inline.
5087 2009-04-16 Nicolas Roche <roche@adacore.com>
5089 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
5091 2009-04-16 Thomas Quinot <quinot@adacore.com>
5093 * prepcomp.adb: Minor reformatting
5095 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5097 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
5098 Access_Subprogram types can also be imported.
5099 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
5102 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5104 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5105 preserve homonym chain when the declaration is rewritten into a
5106 renaming declaration, in order to preserve visibility structure.
5108 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5110 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
5111 taken into account for VM targets.
5113 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5115 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
5117 (Year_Week_In_Year): New routine which contains the original code from
5118 Week_In_Year. Add the missing special case for January 1st falling on
5121 2009-04-16 Thomas Quinot <quinot@adacore.com>
5123 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
5124 actual type, use the base type to build the To_Any function.
5125 (Build_From_Any_Function): Remove junk, useless subtype conversion.
5127 2009-04-16 Thomas Quinot <quinot@adacore.com>
5129 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
5130 restrict.adb: Minor code reorganization (use
5131 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
5133 2009-04-16 Bob Duff <duff@adacore.com>
5135 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
5138 2009-04-16 Thomas Quinot <quinot@adacore.com>
5140 * sem_ch4.adb: Minor reformatting
5142 * adaint.c: Remove junk duplicated code.
5144 * sem_ch3.adb: Minor reformatting
5146 * exp_dist.adb: Minor comment rewording
5148 2009-04-16 Robert Dewar <dewar@adacore.com>
5150 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
5153 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5155 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
5156 usable before calling Add_One_Interp, to resolve spurious ambiguities.
5158 2009-04-16 Robert Dewar <dewar@adacore.com>
5160 * Make-lang.in: Add entries for s-conca?.o
5162 * Makefile.rtl: Add entries for s-conca?
5164 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
5165 of concatenation expansion
5167 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
5168 string cases instead of expanding assignments inline.
5170 * opt.ads (Optimize_Size): New flag
5172 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
5173 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
5174 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
5175 s-conca9.adb, s-conca9.ads: New file.
5177 2009-04-16 Robert Dewar <dewar@adacore.com>
5179 * exp_ch6.adb: Add comments
5181 * rtsfind.ads: Add entries for s-conca? routines
5183 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5185 * gcc-interface/Make-lang.in: Update dependencies.
5187 * gcc-interface/Makefile.in: Update translation for vms.
5189 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5191 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
5192 and made global, to be used when installing parents of a child
5193 instance, to provide mappings for entities declared in formal packages
5194 of ancestor units. Now called from Install_Formal_Packages.
5196 2009-04-16 Doug Rupp <rupp@adacore.com>
5198 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
5199 notation for clarity.
5201 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5202 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
5203 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
5204 (Initialize): Initialize Known_Tasks with Environment task.
5206 * s-taskin.ads (Task_States): Move new states to end for the sake of
5209 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
5211 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5213 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
5214 operation has an inline pragma, propagate the flag to the internal
5215 unprotected subprogram.
5217 2009-04-16 Doug Rupp <rupp@adacore.com>
5219 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
5220 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
5221 s-taprop-hpux-dce.adb, s-taprop-posix.adb
5222 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
5224 * s-taprop-vms.adb (Enter_Task): Likewise.
5225 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
5227 * s-tassta.adb (Activate_Tasks): After task creation set state to
5228 Activating, vice Runnable. Initialize Known_Tasks, moved here from
5229 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
5230 Set state to Runnable after above.
5231 (Task_Wrapper): Set Debug_Event_Run. In exception block set
5232 Debug_Event_Terminated.
5234 * s-taskin.ads (Task_States): Add new states Activiting and
5235 Activator_Delay_Sleep.
5236 (Bit_Array, Debug_Event_Array): New types.
5237 (Global_Task_Debug_Event_Set: New flag.
5238 (Common_ATCB): New field Debug_Events.
5240 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
5242 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
5245 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
5246 Activating and when Acceptor_Delay_Sleep.
5248 * s-tasdeb.ads: Add constants for Debug_Events.
5249 (Debug_Event_Kind_Type): New subtype.
5250 (Signal_Debug_Event): New subprogram.
5252 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
5254 2009-04-16 Thomas Quinot <quinot@adacore.com>
5256 * sem_elim.adb: Minor reformatting
5258 * freeze.adb: Minor reformatting
5260 * exp_ch4.adb: Minor reformatting
5262 2009-04-16 Emmanuel Briot <briot@adacore.com>
5264 * prj-nmsc.adb (Path_Name_Of): fix memory leak
5266 2009-04-16 Robert Dewar <dewar@adacore.com>
5268 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
5270 2009-04-16 Vincent Celier <celier@adacore.com>
5272 * fmap.adb (Initialize): Show the current line when the mapping file
5273 is detected as "incorrectly formatted".
5275 2009-04-16 Robert Dewar <dewar@adacore.com>
5277 * sem_ch12.adb: Minor reformatting
5279 * sem_ch5.adb: Minor comment addition
5281 * sem_util.adb: Minor reformatting
5283 * sinput-p.adb: Minor reformatting
5284 Add missing pragma Warnings (On)
5286 2009-04-16 Ed Falis <falis@adacore.com>
5288 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
5290 2009-04-16 Vincent Celier <celier@adacore.com>
5292 * ali-util.adb: Minor comment spelling error fix
5294 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5296 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
5297 generate an assignment loop in case of overlap.
5299 2009-04-16 Olivier Hainque <hainque@adacore.com>
5301 * gnat_ugn.texi (gnatmem description): Make it explicit that
5302 gnatmem is designed to work in association with static runtime
5305 2009-04-16 Thomas Quinot <quinot@adacore.com>
5307 * sem_type.adb: Minor reformatting
5309 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5311 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
5312 concerning return codes of gettimeofday and return value check.
5314 2009-04-16 Ed Falis <falis@adacore.com>
5316 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
5317 body can be renaming of imported routines.
5319 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5321 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
5324 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5326 * exp_ch9.adb: Comment improvements.
5327 (Build_Entry_Family_Name): Add parentheses around the index of a entry
5330 2009-04-15 Bob Duff <duff@adacore.com>
5332 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
5333 "while X /= null loop" where X is unchanged inside the loop. We were
5334 not warning in this case, because of the pointers -- we feared that the
5335 loop variable could be updated via a pointer, if there are any pointers
5336 around the place. But that is impossible in this case.
5338 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
5339 the case of dereferences. In X.all, X cannot be an l-value. We now
5340 catch that case (and implicit dereferences, too).
5342 2009-04-15 Vincent Celier <celier@adacore.com>
5344 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
5346 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5348 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
5350 (Analyze_Package_Instantiation): If generic unit in child instance is
5351 the same as generic unit in parent instance, look for an outer homonym
5352 to locate the desired generic.
5354 2009-04-15 Bob Duff <duff@adacore.com>
5356 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
5357 warnings unless the loop comes from source, because checking generated
5358 loops is a waste of time, and makes it harder to debug
5359 Check_Infinite_Loop_Warning.
5361 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
5362 tested in the while loop is a renaming, do not warn. Otherwise, we get
5363 false alarms, because it's usually renaming something that we can't
5364 deal with (an indexed component, a global variable, ...).
5366 * gnat_rm.texi: Fix typo
5368 2009-04-15 Thomas Quinot <quinot@adacore.com>
5370 * sem_ch6.adb: Minor reformatting
5372 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5374 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
5375 immediate parent of the controlled function call is a component
5378 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5380 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
5381 corresponding class-wide type is also in use.
5383 2009-04-15 Thomas Quinot <quinot@adacore.com>
5385 * frontend.adb: Minor comment fix
5387 2009-04-15 Robert Dewar <dewar@adacore.com>
5389 * gnatchop.adb (BOM_Length): New global variable
5390 (Write_Unit): Add new parameter Write_BOM
5391 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
5394 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
5396 2009-04-15 Geert Bosch <bosch@adacore.com>
5398 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
5399 (Backend_Overflow_Checks): Set to True.
5401 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5403 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
5404 keyword is given in a record extension.
5406 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5408 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
5409 of a controlled function call in the context of a record aggregate.
5410 This does not apply to array aggregates since the call will be expanded
5413 2009-04-15 Ed Falis <falis@adacore.com>
5415 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
5416 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
5417 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
5418 s-osinte-vxworks* and s-vxwext*.
5420 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5422 * gcc-interface/Make-lang.in: Update dependencies.
5424 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
5427 2009-04-15 Robert Dewar <dewar@adacore.com>
5429 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
5430 of node for location for warning messages.
5432 * gnatchop.adb: Minor reformatting
5434 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5436 * exp_ch6.adb: additional guard for renaming declarations for in
5437 parameters of an array type.
5439 2009-04-15 Robert Dewar <dewar@adacore.com>
5441 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
5442 in case they were rewritten by expander (Force_Evaluation).
5444 * targparm.adb (Get_Target_Parameters): Correct check for
5445 Suppress_Exception_Locations.
5447 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5449 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
5450 inlined is of an array type that is not bit-packed, use a renaming
5451 declaration to capture its value, rather than a constant declaration.
5453 2009-04-15 Robert Dewar <dewar@adacore.com>
5455 * rtsfind.adb: Minor reformatting.
5457 2009-04-15 Emmanuel Briot <briot@adacore.com>
5459 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
5460 Restore, and free the saved context.
5462 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5464 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
5465 for illegal private extension from a synchronized interface parent in
5466 front of check for illegal limited extension so that limited extension
5467 from a synchronized interface will be rejected.
5468 (Check_Ifaces): Check that a private extension that has a synchronized
5469 interface as a progenitor must be explicitly declared synchronized.
5470 Also check that a record extension cannot derive from a synchronized
5473 2009-04-15 Pascal Obry <obry@adacore.com>
5475 * adaint.h (__gnat_unlink): Add spec.
5476 (__gnat_rename): Likewise.
5478 2009-04-15 Vincent Celier <celier@adacore.com>
5480 * prj-nmsc.adb: Minor spelling error corrections in error messages
5482 2009-04-15 Robert Dewar <dewar@adacore.com>
5484 * sinfo.ads: Minor comment update
5486 * opt.ads: Minor comment updates
5488 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
5491 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5493 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
5494 that generates the code needed to update a dispatch table when a
5495 primitive operation is declared with a subprogram body without previous
5496 spec. Insertion of the generated code is responsibility of the caller.
5497 (Make_DT): When building static tables, append the code created by
5498 Register_Primitive to update a secondary table after it has been
5501 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
5503 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
5504 on an overriding operation that implements an interface operation only
5505 if not building static dispatch tables.
5507 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5509 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
5510 does not cause overflow when converted to Duration. Use the safe value
5511 as the maximum allowable time delay..
5513 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
5515 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
5516 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
5517 translated to "-j 2".
5519 2009-04-15 Bob Duff <duff@adacore.com>
5521 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
5522 with_clauses, to avoid code duplication. Change this processing so we
5523 always add a with_clause on the main unit if needed.
5525 2009-04-15 Pascal Obry <obry@adacore.com>
5527 Add support for Win32 native encoding for delete/rename routines.
5529 * adaint.c (__gnat_unlink): New routine.
5530 (__gnat_rename): New routine.
5531 Simple wrapper routines used to convert to proper encoding on
5534 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
5535 call to the C library.
5537 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
5539 2009-04-15 Robert Dewar <dewar@adacore.com>
5541 * s-tassta.adb: Minor reformatting
5543 2009-04-15 Robert Dewar <dewar@adacore.com>
5545 * frontend.adb (Frontend): Set proper default for
5546 Warn_On_Non_Local_Exception.
5548 * opt.ads (Exception_Handler_Encountered): New flag
5549 (No_Warn_On_Non_Local_Exception): New flag
5551 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
5553 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5554 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5556 2009-04-15 Cyrille Comar <comar@adacore.com>
5558 * s-tassta.adb, a-exextr.adb, a-elchha.adb
5559 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
5560 message when exception traces are active since it would generate
5561 redundant information.
5562 (Exception_Traces.Notify_Exception): put message output by a critical
5563 section to avoid unsynchronized output.
5564 (Trace_Unhandled_Exception_In_Task): put message output by a critical
5565 section to avoid unsynchronized output.
5567 2009-04-15 Emmanuel Briot <briot@adacore.com>
5569 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
5570 (Free): New subprogram.
5572 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5574 * a-calend.adb: Add new constant Nanos_In_Four_Years.
5575 (Formatting_Operations.Time_Of): Change the way four year chunks of
5576 nanoseconds are added to the intermediate result.
5578 2009-04-15 Nicolas Setton <setton@adacore.com>
5580 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
5581 does not need to wait for a carriage return.
5583 2009-04-15 Tristan Gingold <gingold@adacore.com>
5585 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
5588 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5590 * freeze.adb (Freeze_Entity): improve error message for improper use of
5592 Diagnose additional illegal uses of incomplete types in formal parts.
5593 appearing in formal parts.
5595 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
5597 2009-04-15 Robert Dewar <dewar@adacore.com>
5599 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
5601 2009-04-15 Nicolas Roche <roche@adacore.com>
5603 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
5606 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
5608 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
5610 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5612 * sem_ch4.adb: improve error message on exponentiation.
5614 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5616 * a-calend.adb: Move constant Epoch_Offset from package
5617 Conversion_Operations to top level.
5618 (Delay_Operations.To_Duration): Define a constant which represents
5619 "end of time" and use it as a guard against very distant delay dates.
5620 Protect the code against overflow when performing the origin shift to
5623 2009-04-15 Robert Dewar <dewar@adacore.com>
5625 * sem_prag.adb: Minor reformatting.
5627 * sem_type.adb: Minor reformatting
5629 2009-04-15 Javier Miranda <miranda@adacore.com>
5631 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
5632 support to check eliminated subprograms.
5634 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
5636 * sem_elim.adb (Set_Eliminated): Add support for elimination of
5637 dispatching subprograms.
5639 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
5640 operations. Initialize with "null" the slots of eliminated dispaching
5642 (Write_DT): Add output for eliminated primitives.
5644 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
5646 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5648 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
5649 the second is redundant, regardless of scopes.
5651 2009-04-15 Vincent Celier <celier@adacore.com>
5653 * prj-nmsc.adb (Get_Directories): Check for sources before checking
5654 the object directory as when there are no sources, they may not be any
5657 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
5658 directory, when there are no exec directory.
5660 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5662 * sem_type.adb (Remove_Conversions): In order to resolve spurious
5663 ambiguities, refine removal of universal interpretations from complex
5664 expressions with literal arguments, when some numeric operators have
5665 been declared abstract.
5667 2009-04-15 Ed Falis <falis@adacore.com>
5669 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
5670 and backward compatibility for targets using probing for stack overflow
5672 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5674 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
5675 after any declaration, including renaming declarations.
5677 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5679 * gcc-interface/Make-lang.in: Update dependencies.
5681 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
5682 Update xenomai target pairs.
5684 2009-04-15 Javier Miranda <miranda@adacore.com>
5686 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
5688 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
5689 functions returning anonymous access to class-wide limited types. Mark
5690 also the containing scope as a task master.
5692 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
5693 limited-withed packages. Required to restore their visibility after
5694 processing packages associated with implicit with-clauses.
5696 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
5697 associated with return statements because this work is now done by
5698 Check_Anonymous_Return.
5699 (Build_Master): Code cleanup.
5701 2009-04-15 Thomas Quinot <quinot@adacore.com>
5703 * sem_warn.ads: Minor reformatting
5705 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5707 * sem_ch3.adb: better error message for illegal interfaces
5709 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
5710 formal is an incomplete type from a limited_with clause.
5712 2009-04-15 Vincent Celier <celier@adacore.com>
5714 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
5715 Externally_Built indicating if the project is externally built. If it
5716 is, and --subdirs is specified, but the subdir does not exist, look
5717 for the specified directory, without the subdir.
5719 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5721 * a-tasatt.adb: Fix typo, plus minor reformatting
5723 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
5725 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
5727 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5729 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
5730 private extension whose parent is a synchronized interface carries an
5731 explicit synchronized keyword.
5733 2009-04-15 Thomas Quinot <quinot@adacore.com>
5735 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
5736 instantiate generic shared object package with the corresponding
5739 2009-04-15 Arnaud Charlet <charlet@adacore.com>
5741 * system-linux-sparc.ads: Remove obsolete entries.
5743 2009-04-15 Thomas Quinot <quinot@adacore.com>
5745 * s-tasuti.ads: Add ??? comment
5747 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5749 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
5750 type even if the designated type comes from a limited_with clause, to
5751 ensure that the symbol for the finalization list of the access type is
5754 2009-04-10 Robert Dewar <dewar@adacore.com>
5756 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
5757 for warning suppression.
5759 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5761 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
5762 identical, there is no redudancy to check.
5764 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5766 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
5767 calls initializing SS_Allocator (which is initialized in following
5769 (Expand_Simple_Function_Return): Add comment about False value for
5770 Comes_From_Source on secondary-stack allocator.
5772 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
5773 (Build_Entry_Name): Add comment.
5775 2009-04-10 Robert Dewar <dewar@adacore.com>
5777 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
5779 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
5780 bound tested, since this is now done more generally in Sem_Res.
5782 * sem_res.adb (Resolve_Comparison_Op): Add call to
5783 Check_Lower_Bound_Tested.
5784 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
5786 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
5787 (Low_Bound_Tested): New name for Low_Bound_Known flag
5789 * exp_ch5.adb: Minor reformatting
5792 Add comments on copying the Comes_From_Source flag for allocators
5795 Add comments on copying the Comes_From_Source flag for allocators
5797 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
5798 Comes_From_Source flag from old allocator to new one.
5800 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5802 * sem_ch6.ads: Address missing documentation query
5804 2009-04-10 Vincent Celier <celier@adacore.com>
5807 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
5808 and Response_File_Switches.
5810 * prj-nmsc.adb (Process_Linker): Process new attributes
5811 Max_Command_Line_Length, Response_File_Format and
5812 Response_File_Switches.
5814 * prj.ads (Response_File_Format): New enumeration type
5815 (Project_Configuration): New componants Max_Command_Line_Length,
5816 Resp_File_Format and Resp_File_Options.
5818 * snames.ads-tmpl: Add new standard names for linking response files
5819 for gprbuild: GNU, None, Object_List, Option_List,
5820 Max_Command_Line_Length, Response_File_Format and
5821 Response_File_Switches.
5823 2009-04-10 Geert Bosch <bosch@adacore.com>
5825 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
5826 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
5827 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
5828 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
5829 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
5830 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5831 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
5832 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
5833 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
5834 system-vxworks-arm.ads, system-vxworks-m68k.ads,
5835 system-vxworks-mips.ads, system-vxworks-ppc.ads,
5836 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
5837 (Backend_Overflow_Checks): Set to True.
5839 2009-04-10 Thomas Quinot <quinot@adacore.com>
5841 * exp_attr.adb: Minor reformatting
5843 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5845 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
5846 analyze the expression for a postcondition, even if the compiler mode
5849 2009-04-10 Robert Dewar <dewar@adacore.com>
5851 * sem_aux.adb: Minor reformatting
5853 2009-04-10 Ed Falis <falis@adacore.com>
5855 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
5857 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
5859 2009-04-10 Thomas Quinot <quinot@adacore.com>
5861 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
5862 undocumented formal.
5865 * a-direio.ads: Fix typo in comment
5867 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
5868 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
5869 Use uniform phrasing for comment at start of subprogram body.
5871 * xsnamest.adb: Add note to explain why we use specific names for the
5872 newly generated files instead of generating snames.{ads,adb,h} directly
5874 2009-04-10 Sergey Rybin <rybin@adacore.com>
5877 Add qualifier for new gnatstub option '--no-exception'
5880 Add the description of the new gnatstub option '--no-exception'
5882 2009-04-10 Robert Dewar <dewar@adacore.com>
5884 * rtsfind.adb: Minor reformatting
5886 2009-04-10 Thomas Quinot <quinot@adacore.com>
5888 * sem_disp.adb: Minor reformatting.
5889 Add comment pointing to RM clause for the case of warning against a
5890 (failed) attempt at declaring a primitive operation elsewhere than in a
5893 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5895 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
5896 an actual for a previous formal package of the current instance.
5898 2009-04-10 Bob Duff <duff@adacore.com>
5900 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
5901 them first, rather than on the extended main unit.
5903 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5905 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
5906 specification of full view carries a null exclusion indicator, create
5907 an itype for it, to check for conformance with partial view.
5909 2009-04-10 Bob Duff <duff@adacore.com>
5911 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
5913 * rtsfind.adb: Minor comment changes, and remove useless code.
5915 * sinfo.ads: Add ??? comment.
5917 2009-04-10 Vincent Celier <celier@adacore.com>
5919 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
5921 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5923 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
5924 type is a synchronized type, retrieve tag information from the
5925 corresponding record, which has the dispatch table link.
5927 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
5929 * g-comlin.adb (Group_Analysis): Take care of switches that might be
5930 decomposed afterwards, but are present as-is in the command line
5931 configuration, and thus should be kept as-is.
5933 2009-04-10 Robert Dewar <dewar@adacore.com>
5935 * gnat_rm.texi: Document that postconditions are tested on implicit
5938 * sem_aux.adb: Minor reformatting
5940 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5942 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
5945 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
5946 Null_Exclusion_In_Return_Present when an access-to-function type has a
5947 result type with an explicit not null.
5949 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
5950 given on the result type, then create a null-excluding itype for the
5953 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
5954 the case where a null exclusion is imposed on a named access type.
5955 (Analyze_Subprogram_Specification): Push and pop the scope of the
5956 function around the call to Analyze_Return_Type in the case of no
5957 formals, for consistency with handling when formals are present
5958 (Process_Formals does this). Ensures that any itype created for the
5959 return type will be associated with the proper scope.
5961 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
5962 exclusion is given on a generic function's result type, then create a
5963 null-excluding itype for the generic function.
5964 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
5965 for an actual for a formal in object according to the setting on the
5966 formal. Ensures null exclusion checks are done when the association is
5969 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
5970 N_Access_Function_Definition.
5972 * sinfo.adb: Add Get_ and Set_ operations for
5973 Null_Exclusion_In_Return_Present.
5975 2009-04-10 Bob Duff <duff@adacore.com>
5977 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
5978 call to the _Postconditions procedure in the case of implicit returns
5979 from analysis to expansion. This eliminates some duplicated code. Use
5980 the Postcondition_Proc to find the identity of this procedure during
5983 2009-04-10 Robert Dewar <dewar@adacore.com>
5985 * sem_ch6.adb: Minor code clean up.
5987 * einfo.ads, sem_attr.adb: Minor comment fixes.
5989 2009-04-10 Robert Dewar <dewar@adacore.com>
5991 * sem_ch8.adb: Minor reformatting
5993 2009-04-10 Robert Dewar <dewar@adacore.com>
5995 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
5998 * sem_ch6.adb: Minor code clean up.
6000 2009-04-10 Robert Dewar <dewar@adacore.com>
6002 * mlib-tgt-specific-xi.adb: Minor reformatting
6004 2009-04-10 Bob Duff <duff@adacore.com>
6006 * einfo.ads: Minor comment fixes
6008 2009-04-10 Vincent Celier <celier@adacore.com>
6010 * snames.ads-tmpl: Remove names that are no longer used in the
6012 Mark specifically those that are used only in gprbuild
6014 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
6016 * init.c: Adjust EH support code on Alpha/Tru64.
6018 2009-04-10 Bob Duff <duff@adacore.com>
6020 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
6021 procedure on every path that could return implicitly (not via a return
6022 statement) from a procedure.
6024 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6026 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
6027 valid scope for a task declarations and therefore for a master id.
6029 2009-04-10 Robert Dewar <dewar@adacore.com>
6031 * sem_aux.adb: Minor reformatting
6033 2009-04-10 Vincent Celier <celier@adacore.com>
6035 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
6037 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
6038 (Set_Obsolescent_Check): New procedure to change the value of
6039 Obsolescent_Check_Flag.
6041 * scn.ads (Set_Obsolescent_Check): New procedure to control
6044 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
6045 obsolescent features while preprocessing.
6047 2009-04-10 Thomas Quinot <quinot@adacore.com>
6049 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
6050 generated files on all platforms.
6052 2009-04-10 Robert Dewar <dewar@adacore.com>
6054 * sem_aux.adb: Minor reformatting
6056 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6058 * sem_ch3.adb (Access_Definition): Handle properly the case of a
6059 protected function with formals that returns an anonymous access type.
6061 2009-04-10 Thomas Quinot <quinot@adacore.com>
6063 * sem_disp.adb: Minor reformatting
6065 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
6067 * seh_init.c: Do not use the 32-bit specific implementation of
6068 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
6071 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6073 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
6074 a '/' at the end so we better use the complete target name to determine
6075 whether it is a PowerPC 55xx target.
6077 2009-04-10 Thomas Quinot <quinot@adacore.com>
6079 * sem_eval.adb: Minor reformatting
6081 2009-04-10 Thomas Quinot <quinot@adacore.com>
6083 * snames.h, snames.ads, snames.adb: Remove files, now generated from
6086 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
6089 * xsnamest.adb: New file.
6091 * gcc-interface/Make-lang.in: New target for automated generation of
6092 snames.ads, snames.adb and snames.h
6094 2009-04-10 Tristan Gingold <gingold@adacore.com>
6096 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
6097 avoid compile time warnings.
6098 Do not add gcc/config in include search list while compiling the RTS.
6099 Pragma Thread_Local_Storage is available on any target.
6101 2009-04-10 Bob Duff <duff@adacore.com>
6103 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
6105 2009-04-10 Tristan Gingold <gingold@adacore.com>
6107 * init.c: Install signal handler on Darwin.
6109 2009-04-10 Robert Dewar <dewar@adacore.com>
6111 * sem_prag.adb: Minor reformatting
6113 * exp_util.adb (Make_Non_Empty_Check): New function
6114 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
6115 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
6117 2009-04-10 Arnaud Charlet <charlet@adacore.com>
6119 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
6121 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6123 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
6124 tool prefix for AVR and PowerPC 55xx targets.
6126 2009-04-10 Robert Dewar <dewar@adacore.com>
6128 * sem_warn.adb (Within_Postcondition): New function
6129 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
6131 2009-04-10 Robert Dewar <dewar@adacore.com>
6133 * sem_warn.adb: Minor reformatting
6135 * make.adb: Minor reformatting.
6137 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6139 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
6140 entity and the scope is a subprogram, retrieve the Sloc of the
6141 subprogram's body rather than using the sloc of the spec, for better
6142 line-stepping behavior in gdb.
6143 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
6144 controller, use the Sloc of the first declaration of the containing list
6145 rather than that of the node that triggered creation of the list
6148 2009-04-10 Vincent Celier <celier@adacore.com>
6150 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
6151 to avoid gcc warning.
6153 2009-04-10 Robert Dewar <dewar@adacore.com>
6155 * g-comlin.adb: Add ??? comment
6157 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6159 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
6160 unreferenced entities for a package with no visible declarations.
6162 2009-04-10 Robert Dewar <dewar@adacore.com>
6164 * exp_ch9.adb: Minor reformatting
6166 2009-04-10 Thomas Quinot <quinot@adacore.com>
6168 * sem_prag.adb: Minor reformatting
6170 2009-04-10 Vincent Celier <celier@adacore.com>
6173 (Check_Library_Attributes): For a project qualified as a library project
6174 that is not a library project, indicate in the error message which
6175 attributes are missing (Library_Dir and/or Library_Name).
6177 2009-04-10 Bob Duff <duff@adacore.com>
6179 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
6180 generated nodes, because it might confuse various circuits in the FE.
6182 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6184 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
6185 of pragma. It will be recopied and analyzed when used in call to
6188 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
6189 initialization operations and recognize use of it in procedure calls
6192 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
6193 argument, because it may have side-effects.
6195 * exp_ch2.adb: Remove obsolete comments on default functions
6197 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6199 * adaint.c (RTX section): Do for RTX the same thing as we do for
6200 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
6202 2009-04-10 Robert Dewar <dewar@adacore.com>
6204 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
6206 * sem_res.adb (Resolve_Call): Fix test for
6207 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
6208 a non-dynamic scope).
6210 2009-04-10 Robert Dewar <dewar@adacore.com>
6212 * make.adb: Add comment.
6215 2009-04-10 Nicolas Setton <setton@adacore.com>
6217 * s-osprim-darwin.adb: New file.
6219 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
6221 2009-04-10 Thomas Quinot <quinot@adacore.com>
6223 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
6225 2009-04-09 Nick Clifton <nickc@redhat.com>
6227 * adadecode.h: Change copyright header to refer to version
6228 3 of the GNU General Public License with version 3.1 of the
6229 GCC Runtime Library Exception and to point readers at the
6230 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
6232 * 9drpc.adb: Likewise.
6233 * a-assert.adb: Likewise.
6234 * a-astaco.adb: Likewise.
6235 * a-calari.adb: Likewise.
6236 * a-calcon.adb: Likewise.
6237 * a-calcon.ads: Likewise.
6238 * a-caldel.ads: Likewise.
6239 * a-calend-vms.adb: Likewise.
6240 * a-calend-vms.ads: Likewise.
6241 * a-calend.adb: Likewise.
6242 * a-calend.ads: Likewise.
6243 * a-calfor.adb: Likewise.
6244 * a-catizo.adb: Likewise.
6245 * a-cdlili.adb: Likewise.
6246 * a-cdlili.ads: Likewise.
6247 * a-cgaaso.adb: Likewise.
6248 * a-cgaaso.ads: Likewise.
6249 * a-cgarso.adb: Likewise.
6250 * a-cgcaso.adb: Likewise.
6251 * a-chacon.adb: Likewise.
6252 * a-chacon.ads: Likewise.
6253 * a-chahan.adb: Likewise.
6254 * a-chahan.ads: Likewise.
6255 * a-chlat9.ads: Likewise.
6256 * a-chtgke.adb: Likewise.
6257 * a-chtgke.ads: Likewise.
6258 * a-chtgop.adb: Likewise.
6259 * a-chtgop.ads: Likewise.
6260 * a-chzla1.ads: Likewise.
6261 * a-chzla9.ads: Likewise.
6262 * a-cidlli.adb: Likewise.
6263 * a-cidlli.ads: Likewise.
6264 * a-cihama.adb: Likewise.
6265 * a-cihama.ads: Likewise.
6266 * a-cihase.adb: Likewise.
6267 * a-cihase.ads: Likewise.
6268 * a-ciorma.adb: Likewise.
6269 * a-ciorma.ads: Likewise.
6270 * a-ciormu.adb: Likewise.
6271 * a-ciormu.ads: Likewise.
6272 * a-ciorse.adb: Likewise.
6273 * a-ciorse.ads: Likewise.
6274 * a-clrefi.adb: Likewise.
6275 * a-clrefi.ads: Likewise.
6276 * a-cohama.adb: Likewise.
6277 * a-cohama.ads: Likewise.
6278 * a-cohase.adb: Likewise.
6279 * a-cohase.ads: Likewise.
6280 * a-cohata.ads: Likewise.
6281 * a-coinve.adb: Likewise.
6282 * a-coinve.ads: Likewise.
6283 * a-colien.adb: Likewise.
6284 * a-colien.ads: Likewise.
6285 * a-colire.adb: Likewise.
6286 * a-colire.ads: Likewise.
6287 * a-comlin.adb: Likewise.
6288 * a-comlin.ads: Likewise.
6289 * a-convec.adb: Likewise.
6290 * a-convec.ads: Likewise.
6291 * a-coorma.adb: Likewise.
6292 * a-coorma.ads: Likewise.
6293 * a-coormu.adb: Likewise.
6294 * a-coormu.ads: Likewise.
6295 * a-coorse.adb: Likewise.
6296 * a-coorse.ads: Likewise.
6297 * a-coprnu.adb: Likewise.
6298 * a-coprnu.ads: Likewise.
6299 * a-crbltr.ads: Likewise.
6300 * a-crbtgk.adb: Likewise.
6301 * a-crbtgk.ads: Likewise.
6302 * a-crbtgo.adb: Likewise.
6303 * a-crbtgo.ads: Likewise.
6304 * a-crdlli.adb: Likewise.
6305 * a-crdlli.ads: Likewise.
6306 * a-cwila1.ads: Likewise.
6307 * a-cwila9.ads: Likewise.
6308 * a-decima.adb: Likewise.
6309 * a-decima.ads: Likewise.
6310 * a-diocst.adb: Likewise.
6311 * a-diocst.ads: Likewise.
6312 * a-direct.adb: Likewise.
6313 * a-direct.ads: Likewise.
6314 * a-direio.adb: Likewise.
6315 * a-direio.ads: Likewise.
6316 * a-dirval-mingw.adb: Likewise.
6317 * a-dirval-vms.adb: Likewise.
6318 * a-dirval.adb: Likewise.
6319 * a-dirval.ads: Likewise.
6320 * a-dynpri.adb: Likewise.
6321 * a-einuoc.adb: Likewise.
6322 * a-einuoc.ads: Likewise.
6323 * a-elchha.adb: Likewise.
6324 * a-elchha.ads: Likewise.
6325 * a-envvar.adb: Likewise.
6326 * a-excach.adb: Likewise.
6327 * a-except-2005.adb: Likewise.
6328 * a-except-2005.ads: Likewise.
6329 * a-except.adb: Likewise.
6330 * a-except.ads: Likewise.
6331 * a-excpol-abort.adb: Likewise.
6332 * a-excpol.adb: Likewise.
6333 * a-exctra.adb: Likewise.
6334 * a-exctra.ads: Likewise.
6335 * a-exetim-mingw.adb: Likewise.
6336 * a-exetim-mingw.ads: Likewise.
6337 * a-exexda.adb: Likewise.
6338 * a-exexpr-gcc.adb: Likewise.
6339 * a-exexpr.adb: Likewise.
6340 * a-exextr.adb: Likewise.
6341 * a-exstat.adb: Likewise.
6342 * a-filico.adb: Likewise.
6343 * a-filico.ads: Likewise.
6344 * a-finali.adb: Likewise.
6345 * a-finali.ads: Likewise.
6346 * a-interr.ads: Likewise.
6347 * a-intnam-aix.ads: Likewise.
6348 * a-intnam-darwin.ads: Likewise.
6349 * a-intnam-dummy.ads: Likewise.
6350 * a-intnam-freebsd.ads: Likewise.
6351 * a-intnam-hpux.ads: Likewise.
6352 * a-intnam-irix.ads: Likewise.
6353 * a-intnam-linux.ads: Likewise.
6354 * a-intnam-lynxos.ads: Likewise.
6355 * a-intnam-mingw.ads: Likewise.
6356 * a-intnam-rtems.ads: Likewise.
6357 * a-intnam-solaris.ads: Likewise.
6358 * a-intnam-tru64.ads: Likewise.
6359 * a-intnam-vms.ads: Likewise.
6360 * a-intnam-vxworks.ads: Likewise.
6361 * a-intsig.adb: Likewise.
6362 * a-intsig.ads: Likewise.
6363 * a-ngcefu.adb: Likewise.
6364 * a-ngcoar.adb: Likewise.
6365 * a-ngcoty.adb: Likewise.
6366 * a-ngcoty.ads: Likewise.
6367 * a-ngelfu.adb: Likewise.
6368 * a-ngrear.adb: Likewise.
6369 * a-ngrear.ads: Likewise.
6370 * a-nudira.adb: Likewise.
6371 * a-nudira.ads: Likewise.
6372 * a-nuflra.adb: Likewise.
6373 * a-nuflra.ads: Likewise.
6374 * a-numaux-darwin.adb: Likewise.
6375 * a-numaux-darwin.ads: Likewise.
6376 * a-numaux-libc-x86.ads: Likewise.
6377 * a-numaux-vxworks.ads: Likewise.
6378 * a-numaux-x86.adb: Likewise.
6379 * a-numaux-x86.ads: Likewise.
6380 * a-numaux.ads: Likewise.
6381 * a-rbtgso.adb: Likewise.
6382 * a-rbtgso.ads: Likewise.
6383 * a-reatim.ads: Likewise.
6384 * a-retide.adb: Likewise.
6385 * a-retide.ads: Likewise.
6386 * a-rttiev.adb: Likewise.
6387 * a-rttiev.ads: Likewise.
6388 * a-secain.adb: Likewise.
6389 * a-secain.ads: Likewise.
6390 * a-sequio.adb: Likewise.
6391 * a-sequio.ads: Likewise.
6392 * a-shcain.adb: Likewise.
6393 * a-shcain.ads: Likewise.
6394 * a-siocst.adb: Likewise.
6395 * a-siocst.ads: Likewise.
6396 * a-slcain.adb: Likewise.
6397 * a-slcain.ads: Likewise.
6398 * a-ssicst.adb: Likewise.
6399 * a-ssicst.ads: Likewise.
6400 * a-stboha.adb: Likewise.
6401 * a-stmaco.ads: Likewise.
6402 * a-storio.adb: Likewise.
6403 * a-strbou.adb: Likewise.
6404 * a-strbou.ads: Likewise.
6405 * a-stream.ads: Likewise.
6406 * a-strfix.adb: Likewise.
6407 * a-strhas.adb: Likewise.
6408 * a-strmap.adb: Likewise.
6409 * a-strmap.ads: Likewise.
6410 * a-strsea.adb: Likewise.
6411 * a-strsea.ads: Likewise.
6412 * a-strsup.adb: Likewise.
6413 * a-strsup.ads: Likewise.
6414 * a-strunb.adb: Likewise.
6415 * a-strunb.ads: Likewise.
6416 * a-ststio.adb: Likewise.
6417 * a-ststio.ads: Likewise.
6418 * a-stunau.adb: Likewise.
6419 * a-stunau.ads: Likewise.
6420 * a-stunha.adb: Likewise.
6421 * a-stwibo.adb: Likewise.
6422 * a-stwibo.ads: Likewise.
6423 * a-stwifi.adb: Likewise.
6424 * a-stwiha.adb: Likewise.
6425 * a-stwima.adb: Likewise.
6426 * a-stwima.ads: Likewise.
6427 * a-stwise.adb: Likewise.
6428 * a-stwise.ads: Likewise.
6429 * a-stwisu.adb: Likewise.
6430 * a-stwisu.ads: Likewise.
6431 * a-stwiun.adb: Likewise.
6432 * a-stwiun.ads: Likewise.
6433 * a-stzbou.adb: Likewise.
6434 * a-stzbou.ads: Likewise.
6435 * a-stzfix.adb: Likewise.
6436 * a-stzhas.adb: Likewise.
6437 * a-stzmap.adb: Likewise.
6438 * a-stzmap.ads: Likewise.
6439 * a-stzsea.adb: Likewise.
6440 * a-stzsea.ads: Likewise.
6441 * a-stzsup.adb: Likewise.
6442 * a-stzsup.ads: Likewise.
6443 * a-stzunb.adb: Likewise.
6444 * a-stzunb.ads: Likewise.
6445 * a-suteio.adb: Likewise.
6446 * a-suteio.ads: Likewise.
6447 * a-swbwha.adb: Likewise.
6448 * a-swmwco.ads: Likewise.
6449 * a-swunau.adb: Likewise.
6450 * a-swunau.ads: Likewise.
6451 * a-swuwha.adb: Likewise.
6452 * a-swuwti.adb: Likewise.
6453 * a-swuwti.ads: Likewise.
6454 * a-sytaco.adb: Likewise.
6455 * a-sytaco.ads: Likewise.
6456 * a-szbzha.adb: Likewise.
6457 * a-szmzco.ads: Likewise.
6458 * a-szunau.adb: Likewise.
6459 * a-szunau.ads: Likewise.
6460 * a-szuzha.adb: Likewise.
6461 * a-szuzti.adb: Likewise.
6462 * a-szuzti.ads: Likewise.
6463 * a-tags.adb: Likewise.
6464 * a-tags.ads: Likewise.
6465 * a-tasatt.ads: Likewise.
6466 * a-taside.adb: Likewise.
6467 * a-taside.ads: Likewise.
6468 * a-taster.adb: Likewise.
6469 * a-teioed.adb: Likewise.
6470 * a-teioed.ads: Likewise.
6471 * a-textio.adb: Likewise.
6472 * a-textio.ads: Likewise.
6473 * a-tiboio.adb: Likewise.
6474 * a-ticoau.adb: Likewise.
6475 * a-ticoau.ads: Likewise.
6476 * a-ticoio.adb: Likewise.
6477 * a-ticoio.ads: Likewise.
6478 * a-tideau.adb: Likewise.
6479 * a-tideau.ads: Likewise.
6480 * a-tideio.adb: Likewise.
6481 * a-tideio.ads: Likewise.
6482 * a-tienau.adb: Likewise.
6483 * a-tienau.ads: Likewise.
6484 * a-tienio.adb: Likewise.
6485 * a-tienio.ads: Likewise.
6486 * a-tifiio.adb: Likewise.
6487 * a-tifiio.ads: Likewise.
6488 * a-tiflau.adb: Likewise.
6489 * a-tiflau.ads: Likewise.
6490 * a-tiflio.adb: Likewise.
6491 * a-tiflio.ads: Likewise.
6492 * a-tigeau.adb: Likewise.
6493 * a-tigeau.ads: Likewise.
6494 * a-tiinau.adb: Likewise.
6495 * a-tiinau.ads: Likewise.
6496 * a-tiinio.adb: Likewise.
6497 * a-tiinio.ads: Likewise.
6498 * a-timoau.adb: Likewise.
6499 * a-timoau.ads: Likewise.
6500 * a-timoio.adb: Likewise.
6501 * a-timoio.ads: Likewise.
6502 * a-tiocst.adb: Likewise.
6503 * a-tiocst.ads: Likewise.
6504 * a-titest.adb: Likewise.
6505 * a-wichun.adb: Likewise.
6506 * a-wichun.ads: Likewise.
6507 * a-witeio.adb: Likewise.
6508 * a-witeio.ads: Likewise.
6509 * a-wtcoau.adb: Likewise.
6510 * a-wtcoau.ads: Likewise.
6511 * a-wtcoio.adb: Likewise.
6512 * a-wtcstr.adb: Likewise.
6513 * a-wtcstr.ads: Likewise.
6514 * a-wtdeau.adb: Likewise.
6515 * a-wtdeau.ads: Likewise.
6516 * a-wtdeio.adb: Likewise.
6517 * a-wtdeio.ads: Likewise.
6518 * a-wtedit.adb: Likewise.
6519 * a-wtedit.ads: Likewise.
6520 * a-wtenau.adb: Likewise.
6521 * a-wtenau.ads: Likewise.
6522 * a-wtenio.adb: Likewise.
6523 * a-wtenio.ads: Likewise.
6524 * a-wtfiio.adb: Likewise.
6525 * a-wtfiio.ads: Likewise.
6526 * a-wtflau.adb: Likewise.
6527 * a-wtflau.ads: Likewise.
6528 * a-wtflio.adb: Likewise.
6529 * a-wtflio.ads: Likewise.
6530 * a-wtgeau.adb: Likewise.
6531 * a-wtgeau.ads: Likewise.
6532 * a-wtinau.adb: Likewise.
6533 * a-wtinau.ads: Likewise.
6534 * a-wtinio.adb: Likewise.
6535 * a-wtmoau.adb: Likewise.
6536 * a-wtmoau.ads: Likewise.
6537 * a-wtmoio.adb: Likewise.
6538 * a-wtmoio.ads: Likewise.
6539 * a-wttest.adb: Likewise.
6540 * a-wwboio.adb: Likewise.
6541 * a-zchuni.adb: Likewise.
6542 * a-zchuni.ads: Likewise.
6543 * a-ztcoau.adb: Likewise.
6544 * a-ztcoau.ads: Likewise.
6545 * a-ztcoio.adb: Likewise.
6546 * a-ztcstr.adb: Likewise.
6547 * a-ztcstr.ads: Likewise.
6548 * a-ztdeau.adb: Likewise.
6549 * a-ztdeau.ads: Likewise.
6550 * a-ztdeio.adb: Likewise.
6551 * a-ztdeio.ads: Likewise.
6552 * a-ztedit.adb: Likewise.
6553 * a-ztedit.ads: Likewise.
6554 * a-ztenau.adb: Likewise.
6555 * a-ztenau.ads: Likewise.
6556 * a-ztenio.adb: Likewise.
6557 * a-ztenio.ads: Likewise.
6558 * a-ztexio.adb: Likewise.
6559 * a-ztexio.ads: Likewise.
6560 * a-ztfiio.adb: Likewise.
6561 * a-ztfiio.ads: Likewise.
6562 * a-ztflau.adb: Likewise.
6563 * a-ztflau.ads: Likewise.
6564 * a-ztflio.adb: Likewise.
6565 * a-ztflio.ads: Likewise.
6566 * a-ztgeau.adb: Likewise.
6567 * a-ztgeau.ads: Likewise.
6568 * a-ztinau.adb: Likewise.
6569 * a-ztinau.ads: Likewise.
6570 * a-ztinio.adb: Likewise.
6571 * a-ztmoau.adb: Likewise.
6572 * a-ztmoau.ads: Likewise.
6573 * a-ztmoio.adb: Likewise.
6574 * a-ztmoio.ads: Likewise.
6575 * a-zttest.adb: Likewise.
6576 * a-zzboio.adb: Likewise.
6577 * adadecode.c: Likewise.
6578 * adaint.c: Likewise.
6579 * adaint.h: Likewise.
6580 * alloc.ads: Likewise.
6582 * arit64.c: Likewise.
6583 * atree.adb: Likewise.
6584 * atree.ads: Likewise.
6585 * aux-io.c: Likewise.
6587 * casing.adb: Likewise.
6588 * casing.ads: Likewise.
6590 * csets.adb: Likewise.
6591 * csets.ads: Likewise.
6592 * cstreams.c: Likewise.
6593 * ctrl_c.c: Likewise.
6594 * debug.adb: Likewise.
6595 * debug.ads: Likewise.
6596 * dec.ads: Likewise.
6597 * einfo.adb: Likewise.
6598 * einfo.ads: Likewise.
6599 * elists.adb: Likewise.
6600 * elists.ads: Likewise.
6603 * errno.c: Likewise.
6606 * final.c: Likewise.
6607 * fname.adb: Likewise.
6608 * fname.ads: Likewise.
6609 * g-allein.ads: Likewise.
6610 * g-alleve.adb: Likewise.
6611 * g-alleve.ads: Likewise.
6612 * g-altcon.adb: Likewise.
6613 * g-altcon.ads: Likewise.
6614 * g-altive.ads: Likewise.
6615 * g-alveop.adb: Likewise.
6616 * g-alveop.ads: Likewise.
6617 * g-alvety.ads: Likewise.
6618 * g-alvevi.ads: Likewise.
6619 * g-arrspl.adb: Likewise.
6620 * g-arrspl.ads: Likewise.
6621 * g-calend.ads: Likewise.
6622 * g-comlin.adb: Likewise.
6623 * g-debpoo.adb: Likewise.
6624 * g-debpoo.ads: Likewise.
6625 * g-eacodu-vms.adb: Likewise.
6626 * g-eacodu.adb: Likewise.
6627 * g-excact.adb: Likewise.
6628 * g-excact.ads: Likewise.
6629 * g-locfil.adb: Likewise.
6630 * g-os_lib.ads: Likewise.
6631 * g-rannum.adb: Likewise.
6632 * g-rannum.ads: Likewise.
6633 * g-regist.adb: Likewise.
6634 * g-regist.ads: Likewise.
6635 * g-signal.adb: Likewise.
6636 * g-signal.ads: Likewise.
6637 * g-soccon.ads: Likewise.
6638 * g-string.adb: Likewise.
6639 * g-string.ads: Likewise.
6640 * g-strspl.ads: Likewise.
6641 * g-timsta.adb: Likewise.
6642 * g-timsta.ads: Likewise.
6643 * g-trasym-vms-alpha.adb: Likewise.
6644 * g-trasym-vms-ia64.adb: Likewise.
6645 * g-utf_32.adb: Likewise.
6646 * g-utf_32.ads: Likewise.
6647 * g-wistsp.ads: Likewise.
6648 * g-zstspl.ads: Likewise.
6650 * gnatvsn.adb: Likewise.
6651 * gnatvsn.ads: Likewise.
6652 * gsocket.h: Likewise.
6653 * hostparm.ads: Likewise.
6654 * i-c.adb: Likewise.
6655 * i-cexten.ads: Likewise.
6656 * i-cobol.adb: Likewise.
6657 * i-cobol.ads: Likewise.
6658 * i-cpoint.adb: Likewise.
6659 * i-cpoint.ads: Likewise.
6660 * i-cpp.adb: Likewise.
6661 * i-cpp.ads: Likewise.
6662 * i-cstrea-vms.adb: Likewise.
6663 * i-cstrea.adb: Likewise.
6664 * i-cstrea.ads: Likewise.
6665 * i-cstrin.adb: Likewise.
6666 * i-cstrin.ads: Likewise.
6667 * i-forbla-darwin.adb: Likewise.
6668 * i-forbla-unimplemented.ads: Likewise.
6669 * i-forbla.adb: Likewise.
6670 * i-forbla.ads: Likewise.
6671 * i-forlap.ads: Likewise.
6672 * i-fortra.adb: Likewise.
6673 * i-pacdec.adb: Likewise.
6674 * i-pacdec.ads: Likewise.
6675 * i-vxwoio.adb: Likewise.
6676 * i-vxwoio.ads: Likewise.
6677 * indepsw-aix.adb: Likewise.
6678 * indepsw-gnu.adb: Likewise.
6679 * indepsw-mingw.adb: Likewise.
6680 * indepsw.adb: Likewise.
6681 * indepsw.ads: Likewise.
6683 * initialize.c: Likewise.
6684 * interfac.ads: Likewise.
6685 * krunch.adb: Likewise.
6686 * krunch.ads: Likewise.
6687 * lib-list.adb: Likewise.
6688 * lib-sort.adb: Likewise.
6689 * lib.adb: Likewise.
6690 * lib.ads: Likewise.
6692 * math_lib.adb: Likewise.
6693 * memtrack.adb: Likewise.
6694 * mingw32.h: Likewise.
6695 * mkdir.c: Likewise.
6696 * namet-sp.adb: Likewise.
6697 * namet-sp.ads: Likewise.
6698 * namet.adb: Likewise.
6699 * namet.ads: Likewise.
6700 * nlists.adb: Likewise.
6701 * nlists.ads: Likewise.
6702 * opt.adb: Likewise.
6703 * opt.ads: Likewise.
6704 * output.adb: Likewise.
6705 * output.ads: Likewise.
6706 * raise-gcc.c: Likewise.
6707 * raise.c: Likewise.
6708 * raise.h: Likewise.
6709 * repinfo.adb: Likewise.
6710 * repinfo.ads: Likewise.
6711 * repinfo.h: Likewise.
6712 * rident.ads: Likewise.
6713 * s-addima.adb: Likewise.
6714 * s-addima.ads: Likewise.
6715 * s-addope.adb: Likewise.
6716 * s-addope.ads: Likewise.
6717 * s-arit64.adb: Likewise.
6718 * s-arit64.ads: Likewise.
6719 * s-assert.adb: Likewise.
6720 * s-assert.ads: Likewise.
6721 * s-asthan-vms-alpha.adb: Likewise.
6722 * s-asthan.adb: Likewise.
6723 * s-asthan.ads: Likewise.
6724 * s-atacco.adb: Likewise.
6725 * s-atacco.ads: Likewise.
6726 * s-auxdec-empty.adb: Likewise.
6727 * s-auxdec-empty.ads: Likewise.
6728 * s-auxdec-vms_64.ads: Likewise.
6729 * s-auxdec.adb: Likewise.
6730 * s-auxdec.ads: Likewise.
6731 * s-bitops.adb: Likewise.
6732 * s-bitops.ads: Likewise.
6733 * s-boarop.ads: Likewise.
6734 * s-carsi8.adb: Likewise.
6735 * s-carsi8.ads: Likewise.
6736 * s-carun8.adb: Likewise.
6737 * s-carun8.ads: Likewise.
6738 * s-casi16.adb: Likewise.
6739 * s-casi16.ads: Likewise.
6740 * s-casi32.adb: Likewise.
6741 * s-casi32.ads: Likewise.
6742 * s-casi64.adb: Likewise.
6743 * s-casi64.ads: Likewise.
6744 * s-casuti.ads: Likewise.
6745 * s-caun16.adb: Likewise.
6746 * s-caun16.ads: Likewise.
6747 * s-caun32.adb: Likewise.
6748 * s-caun32.ads: Likewise.
6749 * s-caun64.adb: Likewise.
6750 * s-caun64.ads: Likewise.
6751 * s-chepoo.ads: Likewise.
6752 * s-crc32.adb: Likewise.
6753 * s-crc32.ads: Likewise.
6754 * s-crtl.ads: Likewise.
6755 * s-direio.adb: Likewise.
6756 * s-direio.ads: Likewise.
6757 * s-dsaser.ads: Likewise.
6758 * s-except.adb: Likewise.
6759 * s-except.ads: Likewise.
6760 * s-exctab.adb: Likewise.
6761 * s-exctab.ads: Likewise.
6762 * s-exnint.adb: Likewise.
6763 * s-exnint.ads: Likewise.
6764 * s-exnllf.adb: Likewise.
6765 * s-exnllf.ads: Likewise.
6766 * s-exnlli.adb: Likewise.
6767 * s-exnlli.ads: Likewise.
6768 * s-expint.adb: Likewise.
6769 * s-expint.ads: Likewise.
6770 * s-explli.adb: Likewise.
6771 * s-explli.ads: Likewise.
6772 * s-expllu.adb: Likewise.
6773 * s-expllu.ads: Likewise.
6774 * s-expmod.adb: Likewise.
6775 * s-expmod.ads: Likewise.
6776 * s-expuns.adb: Likewise.
6777 * s-expuns.ads: Likewise.
6778 * s-fatflt.ads: Likewise.
6779 * s-fatgen.adb: Likewise.
6780 * s-fatgen.ads: Likewise.
6781 * s-fatlfl.ads: Likewise.
6782 * s-fatllf.ads: Likewise.
6783 * s-fatsfl.ads: Likewise.
6784 * s-ficobl.ads: Likewise.
6785 * s-fileio.adb: Likewise.
6786 * s-fileio.ads: Likewise.
6787 * s-filofl.ads: Likewise.
6788 * s-finimp.adb: Likewise.
6789 * s-finimp.ads: Likewise.
6790 * s-finroo.adb: Likewise.
6791 * s-finroo.ads: Likewise.
6792 * s-fishfl.ads: Likewise.
6793 * s-fore.adb: Likewise.
6794 * s-fore.ads: Likewise.
6795 * s-fvadfl.ads: Likewise.
6796 * s-fvaffl.ads: Likewise.
6797 * s-fvagfl.ads: Likewise.
6798 * s-gearop.adb: Likewise.
6799 * s-gearop.ads: Likewise.
6800 * s-gecobl.adb: Likewise.
6801 * s-gecobl.ads: Likewise.
6802 * s-gecola.adb: Likewise.
6803 * s-gecola.ads: Likewise.
6804 * s-gerebl.adb: Likewise.
6805 * s-gerebl.ads: Likewise.
6806 * s-gerela.adb: Likewise.
6807 * s-gerela.ads: Likewise.
6808 * s-geveop.adb: Likewise.
6809 * s-geveop.ads: Likewise.
6810 * s-gloloc.adb: Likewise.
6811 * s-gloloc.ads: Likewise.
6812 * s-hibaen.ads: Likewise.
6813 * s-imenne.adb: Likewise.
6814 * s-imenne.ads: Likewise.
6815 * s-imgbiu.adb: Likewise.
6816 * s-imgbiu.ads: Likewise.
6817 * s-imgboo.adb: Likewise.
6818 * s-imgboo.ads: Likewise.
6819 * s-imgcha.adb: Likewise.
6820 * s-imgcha.ads: Likewise.
6821 * s-imgdec.adb: Likewise.
6822 * s-imgdec.ads: Likewise.
6823 * s-imgenu.adb: Likewise.
6824 * s-imgenu.ads: Likewise.
6825 * s-imgint.adb: Likewise.
6826 * s-imgint.ads: Likewise.
6827 * s-imgllb.adb: Likewise.
6828 * s-imgllb.ads: Likewise.
6829 * s-imglld.adb: Likewise.
6830 * s-imglld.ads: Likewise.
6831 * s-imglli.adb: Likewise.
6832 * s-imglli.ads: Likewise.
6833 * s-imgllu.adb: Likewise.
6834 * s-imgllu.ads: Likewise.
6835 * s-imgllw.adb: Likewise.
6836 * s-imgllw.ads: Likewise.
6837 * s-imgrea.adb: Likewise.
6838 * s-imgrea.ads: Likewise.
6839 * s-imguns.adb: Likewise.
6840 * s-imguns.ads: Likewise.
6841 * s-imgwch.adb: Likewise.
6842 * s-imgwch.ads: Likewise.
6843 * s-imgwiu.adb: Likewise.
6844 * s-imgwiu.ads: Likewise.
6845 * s-inmaop-dummy.adb: Likewise.
6846 * s-inmaop-vms.adb: Likewise.
6847 * s-inmaop.ads: Likewise.
6848 * s-interr-hwint.adb: Likewise.
6849 * s-interr-sigaction.adb: Likewise.
6850 * s-interr-vms.adb: Likewise.
6851 * s-interr.adb: Likewise.
6852 * s-interr.ads: Likewise.
6853 * s-intman-dummy.adb: Likewise.
6854 * s-intman-mingw.adb: Likewise.
6855 * s-intman-posix.adb: Likewise.
6856 * s-intman-solaris.adb: Likewise.
6857 * s-intman-vms.adb: Likewise.
6858 * s-intman-vms.ads: Likewise.
6859 * s-intman-vxworks.adb: Likewise.
6860 * s-intman-vxworks.ads: Likewise.
6861 * s-intman.ads: Likewise.
6862 * s-io.adb: Likewise.
6863 * s-io.ads: Likewise.
6864 * s-linux-alpha.ads: Likewise.
6865 * s-linux-hppa.ads: Likewise.
6866 * s-linux.ads: Likewise.
6867 * s-maccod.ads: Likewise.
6868 * s-mantis.adb: Likewise.
6869 * s-mantis.ads: Likewise.
6870 * s-mastop-irix.adb: Likewise.
6871 * s-mastop.adb: Likewise.
6872 * s-mastop.ads: Likewise.
6873 * s-memcop.ads: Likewise.
6874 * s-memory-mingw.adb: Likewise.
6875 * s-memory.adb: Likewise.
6876 * s-memory.ads: Likewise.
6877 * s-os_lib.ads: Likewise.
6878 * s-oscons-tmplt.c: Likewise.
6879 * s-osinte-aix.adb: Likewise.
6880 * s-osinte-darwin.adb: Likewise.
6881 * s-osinte-freebsd.adb: Likewise.
6882 * s-osinte-irix.adb: Likewise.
6883 * s-osinte-lynxos-3.adb: Likewise.
6884 * s-osinte-rtems.ads: Likewise.
6885 * s-osinte-tru64.adb: Likewise.
6886 * s-osinte-vxworks-kernel.adb: Likewise.
6887 * s-osinte-vxworks.adb: Likewise.
6888 * s-osprim-mingw.adb: Likewise.
6889 * s-osprim-posix.adb: Likewise.
6890 * s-osprim-solaris.adb: Likewise.
6891 * s-osprim-unix.adb: Likewise.
6892 * s-osprim-vms.adb: Likewise.
6893 * s-osprim-vms.ads: Likewise.
6894 * s-osprim-vxworks.adb: Likewise.
6895 * s-osprim.ads: Likewise.
6896 * s-pack03.adb: Likewise.
6897 * s-pack03.ads: Likewise.
6898 * s-pack05.adb: Likewise.
6899 * s-pack05.ads: Likewise.
6900 * s-pack06.adb: Likewise.
6901 * s-pack06.ads: Likewise.
6902 * s-pack07.adb: Likewise.
6903 * s-pack07.ads: Likewise.
6904 * s-pack09.adb: Likewise.
6905 * s-pack09.ads: Likewise.
6906 * s-pack10.adb: Likewise.
6907 * s-pack10.ads: Likewise.
6908 * s-pack11.adb: Likewise.
6909 * s-pack11.ads: Likewise.
6910 * s-pack12.adb: Likewise.
6911 * s-pack12.ads: Likewise.
6912 * s-pack13.adb: Likewise.
6913 * s-pack13.ads: Likewise.
6914 * s-pack14.adb: Likewise.
6915 * s-pack14.ads: Likewise.
6916 * s-pack15.adb: Likewise.
6917 * s-pack15.ads: Likewise.
6918 * s-pack17.adb: Likewise.
6919 * s-pack17.ads: Likewise.
6920 * s-pack18.adb: Likewise.
6921 * s-pack18.ads: Likewise.
6922 * s-pack19.adb: Likewise.
6923 * s-pack19.ads: Likewise.
6924 * s-pack20.adb: Likewise.
6925 * s-pack20.ads: Likewise.
6926 * s-pack21.adb: Likewise.
6927 * s-pack21.ads: Likewise.
6928 * s-pack22.adb: Likewise.
6929 * s-pack22.ads: Likewise.
6930 * s-pack23.adb: Likewise.
6931 * s-pack23.ads: Likewise.
6932 * s-pack24.adb: Likewise.
6933 * s-pack24.ads: Likewise.
6934 * s-pack25.adb: Likewise.
6935 * s-pack25.ads: Likewise.
6936 * s-pack26.adb: Likewise.
6937 * s-pack26.ads: Likewise.
6938 * s-pack27.adb: Likewise.
6939 * s-pack27.ads: Likewise.
6940 * s-pack28.adb: Likewise.
6941 * s-pack28.ads: Likewise.
6942 * s-pack29.adb: Likewise.
6943 * s-pack29.ads: Likewise.
6944 * s-pack30.adb: Likewise.
6945 * s-pack30.ads: Likewise.
6946 * s-pack31.adb: Likewise.
6947 * s-pack31.ads: Likewise.
6948 * s-pack33.adb: Likewise.
6949 * s-pack33.ads: Likewise.
6950 * s-pack34.adb: Likewise.
6951 * s-pack34.ads: Likewise.
6952 * s-pack35.adb: Likewise.
6953 * s-pack35.ads: Likewise.
6954 * s-pack36.adb: Likewise.
6955 * s-pack36.ads: Likewise.
6956 * s-pack37.adb: Likewise.
6957 * s-pack37.ads: Likewise.
6958 * s-pack38.adb: Likewise.
6959 * s-pack38.ads: Likewise.
6960 * s-pack39.adb: Likewise.
6961 * s-pack39.ads: Likewise.
6962 * s-pack40.adb: Likewise.
6963 * s-pack40.ads: Likewise.
6964 * s-pack41.adb: Likewise.
6965 * s-pack41.ads: Likewise.
6966 * s-pack42.adb: Likewise.
6967 * s-pack42.ads: Likewise.
6968 * s-pack43.adb: Likewise.
6969 * s-pack43.ads: Likewise.
6970 * s-pack44.adb: Likewise.
6971 * s-pack44.ads: Likewise.
6972 * s-pack45.adb: Likewise.
6973 * s-pack45.ads: Likewise.
6974 * s-pack46.adb: Likewise.
6975 * s-pack46.ads: Likewise.
6976 * s-pack47.adb: Likewise.
6977 * s-pack47.ads: Likewise.
6978 * s-pack48.adb: Likewise.
6979 * s-pack48.ads: Likewise.
6980 * s-pack49.adb: Likewise.
6981 * s-pack49.ads: Likewise.
6982 * s-pack50.adb: Likewise.
6983 * s-pack50.ads: Likewise.
6984 * s-pack51.adb: Likewise.
6985 * s-pack51.ads: Likewise.
6986 * s-pack52.adb: Likewise.
6987 * s-pack52.ads: Likewise.
6988 * s-pack53.adb: Likewise.
6989 * s-pack53.ads: Likewise.
6990 * s-pack54.adb: Likewise.
6991 * s-pack54.ads: Likewise.
6992 * s-pack55.adb: Likewise.
6993 * s-pack55.ads: Likewise.
6994 * s-pack56.adb: Likewise.
6995 * s-pack56.ads: Likewise.
6996 * s-pack57.adb: Likewise.
6997 * s-pack57.ads: Likewise.
6998 * s-pack58.adb: Likewise.
6999 * s-pack58.ads: Likewise.
7000 * s-pack59.adb: Likewise.
7001 * s-pack59.ads: Likewise.
7002 * s-pack60.adb: Likewise.
7003 * s-pack60.ads: Likewise.
7004 * s-pack61.adb: Likewise.
7005 * s-pack61.ads: Likewise.
7006 * s-pack62.adb: Likewise.
7007 * s-pack62.ads: Likewise.
7008 * s-pack63.adb: Likewise.
7009 * s-pack63.ads: Likewise.
7010 * s-parame-ae653.ads: Likewise.
7011 * s-parame-hpux.ads: Likewise.
7012 * s-parame-rtems.adb: Likewise.
7013 * s-parame-vms-alpha.ads: Likewise.
7014 * s-parame-vms-ia64.ads: Likewise.
7015 * s-parame-vms-restrict.ads: Likewise.
7016 * s-parame-vxworks.adb: Likewise.
7017 * s-parame-vxworks.ads: Likewise.
7018 * s-parame.adb: Likewise.
7019 * s-parame.ads: Likewise.
7020 * s-parint.adb: Likewise.
7021 * s-parint.ads: Likewise.
7022 * s-pooglo.adb: Likewise.
7023 * s-pooglo.ads: Likewise.
7024 * s-pooloc.adb: Likewise.
7025 * s-pooloc.ads: Likewise.
7026 * s-poosiz.adb: Likewise.
7027 * s-poosiz.ads: Likewise.
7028 * s-powtab.ads: Likewise.
7029 * s-proinf-irix-athread.adb: Likewise.
7030 * s-proinf-irix-athread.ads: Likewise.
7031 * s-proinf.adb: Likewise.
7032 * s-proinf.ads: Likewise.
7033 * s-purexc.ads: Likewise.
7034 * s-rannum.adb: Likewise.
7035 * s-rannum.ads: Likewise.
7036 * s-restri.adb: Likewise.
7037 * s-restri.ads: Likewise.
7038 * s-rident.ads: Likewise.
7039 * s-rpc.adb: Likewise.
7040 * s-rpc.ads: Likewise.
7041 * s-scaval.adb: Likewise.
7042 * s-scaval.ads: Likewise.
7043 * s-secsta.adb: Likewise.
7044 * s-secsta.ads: Likewise.
7045 * s-sequio.adb: Likewise.
7046 * s-sequio.ads: Likewise.
7047 * s-shasto.adb: Likewise.
7048 * s-shasto.ads: Likewise.
7049 * s-soflin.adb: Likewise.
7050 * s-soflin.ads: Likewise.
7051 * s-solita.adb: Likewise.
7052 * s-solita.ads: Likewise.
7053 * s-sopco3.adb: Likewise.
7054 * s-sopco3.ads: Likewise.
7055 * s-sopco4.adb: Likewise.
7056 * s-sopco4.ads: Likewise.
7057 * s-sopco5.adb: Likewise.
7058 * s-sopco5.ads: Likewise.
7059 * s-stache.adb: Likewise.
7060 * s-stache.ads: Likewise.
7061 * s-stalib.adb: Likewise.
7062 * s-stalib.ads: Likewise.
7063 * s-stausa.adb: Likewise.
7064 * s-stausa.ads: Likewise.
7065 * s-stchop-limit.ads: Likewise.
7066 * s-stchop-rtems.adb: Likewise.
7067 * s-stchop-vxworks.adb: Likewise.
7068 * s-stchop.adb: Likewise.
7069 * s-stchop.ads: Likewise.
7070 * s-stoele.adb: Likewise.
7071 * s-stoele.ads: Likewise.
7072 * s-stopoo.adb: Likewise.
7073 * s-stopoo.ads: Likewise.
7074 * s-stratt.adb: Likewise.
7075 * s-stratt.ads: Likewise.
7076 * s-strcom.adb: Likewise.
7077 * s-strcom.ads: Likewise.
7078 * s-string.adb: Likewise.
7079 * s-string.ads: Likewise.
7080 * s-strops.adb: Likewise.
7081 * s-strops.ads: Likewise.
7082 * s-strxdr.adb: Likewise.
7083 * s-ststop.adb: Likewise.
7084 * s-ststop.ads: Likewise.
7085 * s-taasde.adb: Likewise.
7086 * s-taasde.ads: Likewise.
7087 * s-tadeca.adb: Likewise.
7088 * s-tadeca.ads: Likewise.
7089 * s-tadert.adb: Likewise.
7090 * s-tadert.ads: Likewise.
7091 * s-taenca.adb: Likewise.
7092 * s-taenca.ads: Likewise.
7093 * s-taprob.ads: Likewise.
7094 * s-taprop-dummy.adb: Likewise.
7095 * s-taprop-hpux-dce.adb: Likewise.
7096 * s-taprop-irix.adb: Likewise.
7097 * s-taprop-linux.adb: Likewise.
7098 * s-taprop-lynxos.adb: Likewise.
7099 * s-taprop-mingw.adb: Likewise.
7100 * s-taprop-posix.adb: Likewise.
7101 * s-taprop-solaris.adb: Likewise.
7102 * s-taprop-tru64.adb: Likewise.
7103 * s-taprop-vms.adb: Likewise.
7104 * s-taprop-vxworks.adb: Likewise.
7105 * s-taprop.ads: Likewise.
7106 * s-tarest.adb: Likewise.
7107 * s-tarest.ads: Likewise.
7108 * s-tasdeb.adb: Likewise.
7109 * s-tasdeb.ads: Likewise.
7110 * s-tasinf-irix.ads: Likewise.
7111 * s-tasinf-linux.adb: Likewise.
7112 * s-tasinf-linux.ads: Likewise.
7113 * s-tasinf-mingw.adb: Likewise.
7114 * s-tasinf-mingw.ads: Likewise.
7115 * s-tasinf-solaris.adb: Likewise.
7116 * s-tasinf-solaris.ads: Likewise.
7117 * s-tasinf-tru64.ads: Likewise.
7118 * s-tasinf.adb: Likewise.
7119 * s-tasinf.ads: Likewise.
7120 * s-tasini.adb: Likewise.
7121 * s-tasini.ads: Likewise.
7122 * s-taskin.adb: Likewise.
7123 * s-taskin.ads: Likewise.
7124 * s-taspri-dummy.ads: Likewise.
7125 * s-taspri-hpux-dce.ads: Likewise.
7126 * s-taspri-mingw.ads: Likewise.
7127 * s-taspri-solaris.ads: Likewise.
7128 * s-taspri-tru64.ads: Likewise.
7129 * s-taspri-vms.ads: Likewise.
7130 * s-taspri-vxworks.ads: Likewise.
7131 * s-tasque.adb: Likewise.
7132 * s-tasque.ads: Likewise.
7133 * s-tasren.adb: Likewise.
7134 * s-tasren.ads: Likewise.
7135 * s-tasres.ads: Likewise.
7136 * s-tassta.adb: Likewise.
7137 * s-tassta.ads: Likewise.
7138 * s-tasuti.adb: Likewise.
7139 * s-tasuti.ads: Likewise.
7140 * s-tfsetr-default.adb: Likewise.
7141 * s-tfsetr-vxworks.adb: Likewise.
7142 * s-tpinop.adb: Likewise.
7143 * s-tpinop.ads: Likewise.
7144 * s-tpoben.adb: Likewise.
7145 * s-tpoben.ads: Likewise.
7146 * s-tpobop.adb: Likewise.
7147 * s-tpobop.ads: Likewise.
7148 * s-tpopde-vms.adb: Likewise.
7149 * s-tpopde-vms.ads: Likewise.
7150 * s-tpopsp-lynxos.adb: Likewise.
7151 * s-tpopsp-posix-foreign.adb: Likewise.
7152 * s-tpopsp-posix.adb: Likewise.
7153 * s-tpopsp-solaris.adb: Likewise.
7154 * s-tpopsp-vxworks.adb: Likewise.
7155 * s-tporft.adb: Likewise.
7156 * s-tposen.adb: Likewise.
7157 * s-tposen.ads: Likewise.
7158 * s-traceb.adb: Likewise.
7159 * s-traceb.ads: Likewise.
7160 * s-traces-default.adb: Likewise.
7161 * s-traces.adb: Likewise.
7162 * s-traces.ads: Likewise.
7163 * s-traent-vms.adb: Likewise.
7164 * s-traent-vms.ads: Likewise.
7165 * s-traent.adb: Likewise.
7166 * s-traent.ads: Likewise.
7167 * s-trafor-default.adb: Likewise.
7168 * s-trafor-default.ads: Likewise.
7169 * s-tratas-default.adb: Likewise.
7170 * s-tratas.adb: Likewise.
7171 * s-tratas.ads: Likewise.
7172 * s-unstyp.ads: Likewise.
7173 * s-utf_32.adb: Likewise.
7174 * s-utf_32.ads: Likewise.
7175 * s-vaflop-vms-alpha.adb: Likewise.
7176 * s-vaflop.adb: Likewise.
7177 * s-vaflop.ads: Likewise.
7178 * s-valboo.adb: Likewise.
7179 * s-valboo.ads: Likewise.
7180 * s-valcha.adb: Likewise.
7181 * s-valcha.ads: Likewise.
7182 * s-valdec.adb: Likewise.
7183 * s-valdec.ads: Likewise.
7184 * s-valenu.adb: Likewise.
7185 * s-valenu.ads: Likewise.
7186 * s-valint.adb: Likewise.
7187 * s-valint.ads: Likewise.
7188 * s-vallld.adb: Likewise.
7189 * s-vallld.ads: Likewise.
7190 * s-vallli.adb: Likewise.
7191 * s-vallli.ads: Likewise.
7192 * s-valllu.adb: Likewise.
7193 * s-valllu.ads: Likewise.
7194 * s-valrea.adb: Likewise.
7195 * s-valrea.ads: Likewise.
7196 * s-valuns.adb: Likewise.
7197 * s-valuns.ads: Likewise.
7198 * s-valuti.adb: Likewise.
7199 * s-valuti.ads: Likewise.
7200 * s-valwch.adb: Likewise.
7201 * s-valwch.ads: Likewise.
7202 * s-veboop.adb: Likewise.
7203 * s-veboop.ads: Likewise.
7204 * s-vector.ads: Likewise.
7205 * s-vercon.adb: Likewise.
7206 * s-vercon.ads: Likewise.
7207 * s-vmexta.adb: Likewise.
7208 * s-vmexta.ads: Likewise.
7209 * s-vxwext-kernel.ads: Likewise.
7210 * s-vxwext-rtp.adb: Likewise.
7211 * s-vxwext-rtp.ads: Likewise.
7212 * s-vxwext.ads: Likewise.
7213 * s-vxwork-arm.ads: Likewise.
7214 * s-vxwork-m68k.ads: Likewise.
7215 * s-vxwork-mips.ads: Likewise.
7216 * s-vxwork-ppc.ads: Likewise.
7217 * s-vxwork-sparcv9.ads: Likewise.
7218 * s-vxwork-x86.ads: Likewise.
7219 * s-wchcnv.adb: Likewise.
7220 * s-wchcnv.ads: Likewise.
7221 * s-wchcon.adb: Likewise.
7222 * s-wchcon.ads: Likewise.
7223 * s-wchjis.adb: Likewise.
7224 * s-wchjis.ads: Likewise.
7225 * s-wchstw.adb: Likewise.
7226 * s-wchstw.ads: Likewise.
7227 * s-wchwts.adb: Likewise.
7228 * s-wchwts.ads: Likewise.
7229 * s-widboo.adb: Likewise.
7230 * s-widboo.ads: Likewise.
7231 * s-widcha.adb: Likewise.
7232 * s-widcha.ads: Likewise.
7233 * s-widenu.adb: Likewise.
7234 * s-widenu.ads: Likewise.
7235 * s-widlli.adb: Likewise.
7236 * s-widlli.ads: Likewise.
7237 * s-widllu.adb: Likewise.
7238 * s-widllu.ads: Likewise.
7239 * s-widwch.adb: Likewise.
7240 * s-widwch.ads: Likewise.
7241 * s-win32.ads: Likewise.
7242 * s-winext.ads: Likewise.
7243 * s-wwdcha.adb: Likewise.
7244 * s-wwdcha.ads: Likewise.
7245 * s-wwdenu.adb: Likewise.
7246 * s-wwdenu.ads: Likewise.
7247 * s-wwdwch.adb: Likewise.
7248 * s-wwdwch.ads: Likewise.
7249 * scans.adb: Likewise.
7250 * scans.ads: Likewise.
7251 * seh_init.c: Likewise.
7252 * sfn_scan.adb: Likewise.
7253 * sinfo.adb: Likewise.
7254 * sinfo.ads: Likewise.
7255 * sinput.adb: Likewise.
7256 * sinput.ads: Likewise.
7257 * snames.adb: Likewise.
7258 * snames.ads: Likewise.
7259 * socket.c: Likewise.
7260 * stand.adb: Likewise.
7261 * stand.ads: Likewise.
7262 * stringt.adb: Likewise.
7263 * stringt.ads: Likewise.
7264 * sysdep.c: Likewise.
7265 * system-aix.ads: Likewise.
7266 * system-darwin-ppc.ads: Likewise.
7267 * system-darwin-x86.ads: Likewise.
7268 * system-darwin-x86_64.ads: Likewise.
7269 * system-freebsd-x86.ads: Likewise.
7270 * system-hpux-ia64.ads: Likewise.
7271 * system-hpux.ads: Likewise.
7272 * system-irix-n32.ads: Likewise.
7273 * system-irix-n64.ads: Likewise.
7274 * system-irix-o32.ads: Likewise.
7275 * system-linux-alpha.ads: Likewise.
7276 * system-linux-hppa.ads: Likewise.
7277 * system-linux-ia64.ads: Likewise.
7278 * system-linux-mips.ads: Likewise.
7279 * system-linux-mipsel.ads: Likewise.
7280 * system-linux-ppc.ads: Likewise.
7281 * system-linux-ppc64.ads: Likewise.
7282 * system-linux-s390.ads: Likewise.
7283 * system-linux-s390x.ads: Likewise.
7284 * system-linux-sh4.ads: Likewise.
7285 * system-linux-sparc.ads: Likewise.
7286 * system-linux-sparcv9.ads: Likewise.
7287 * system-linux-x86.ads: Likewise.
7288 * system-linux-x86_64.ads: Likewise.
7289 * system-lynxos-ppc.ads: Likewise.
7290 * system-lynxos-x86.ads: Likewise.
7291 * system-mingw-x86_64.ads: Likewise.
7292 * system-mingw.ads: Likewise.
7293 * system-rtems.ads: Likewise.
7294 * system-solaris-sparc.ads: Likewise.
7295 * system-solaris-sparcv9.ads: Likewise.
7296 * system-solaris-x86.ads: Likewise.
7297 * system-solaris-x86_64.ads: Likewise.
7298 * system-tru64.ads: Likewise.
7299 * system-vms-ia64.ads: Likewise.
7300 * system-vms-zcx.ads: Likewise.
7301 * system-vms.ads: Likewise.
7302 * system-vms_64.ads: Likewise.
7303 * system-vxworks-arm.ads: Likewise.
7304 * system-vxworks-m68k.ads: Likewise.
7305 * system-vxworks-mips.ads: Likewise.
7306 * system-vxworks-ppc.ads: Likewise.
7307 * system-vxworks-sparcv9.ads: Likewise.
7308 * system-vxworks-x86.ads: Likewise.
7309 * system.ads: Likewise.
7310 * table.adb: Likewise.
7311 * table.ads: Likewise.
7312 * targext.c: Likewise.
7313 * targparm.ads: Likewise.
7314 * tree_in.adb: Likewise.
7315 * tree_in.ads: Likewise.
7316 * tree_io.adb: Likewise.
7317 * tree_io.ads: Likewise.
7318 * types.adb: Likewise.
7319 * types.ads: Likewise.
7320 * uintp.adb: Likewise.
7321 * uintp.ads: Likewise.
7322 * uname.adb: Likewise.
7323 * uname.ads: Likewise.
7324 * urealp.adb: Likewise.
7325 * urealp.ads: Likewise.
7326 * vx_stack_info.c: Likewise.
7327 * widechar.adb: Likewise.
7328 * widechar.ads: Likewise.
7329 * exp_attr.adb: Change copyright header to refer to version
7330 3 of the GNU General Public License and to point readers at the
7331 COPYING3 file and the FSF's license web page.
7332 * sem.adb: Likewise.
7333 * sem_attr.ads: Likewise.
7334 * freeze.adb: Likewise.
7335 * freeze.ads: Likewise.
7336 * errout.ads: Likewise.
7337 * erroutc.adb: Likewise.
7338 * exp_ch11.ads: Likewise.
7340 2009-04-09 Jakub Jelinek <jakub@redhat.com>
7342 * config-lang.in: Change copyright header to refer to version
7343 3 of the GNU General Public License and to point readers at the
7344 COPYING3 file and the FSF's license web page.
7345 * gcc-interface/trans.c: Likewise.
7346 * gnathtml.pl: Likewise.
7347 * gcc-interface/ada.h: Likewise. Remove runtime exception.
7348 * gcc-interface/gigi.h: Likewise.
7349 * gcc-interface/misc.c: Likewise.
7350 * gcc-interface/targtyps.c: Likewise.
7352 2009-04-09 Nicolas Setton <setton@adacore.com>
7354 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
7356 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
7359 2009-04-09 Bob Duff <duff@adacore.com>
7361 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
7362 internally-generated nodes related to select statements to avoid
7363 confusing the debugger.
7365 2009-04-09 Pascal Obry <obry@adacore.com>
7367 * make.adb: Ensure that all linker arguments are duplicated.
7369 2009-04-09 Robert Dewar <dewar@adacore.com>
7371 * sem_ch5.adb: Minor reformatting
7373 2009-04-09 Vincent Celier <celier@adacore.com>
7376 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
7377 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
7378 New qualifier /LXDEBUG=nnn for -gnatDnnn
7382 Update documentation for VMS qualifiers equivalent to -gnatGnn and
7385 2009-04-09 Nicolas Setton <setton@adacore.com>
7387 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
7388 to match layout of siginfo_t in sys/signal.h.
7390 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
7392 2009-04-09 Thomas Quinot <quinot@adacore.com>
7394 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
7396 2009-04-09 Nicolas Setton <setton@adacore.com>
7398 * s-oscons-tmplt.c: Allow long lines in the generated spec.
7399 Add generation of Darwin-specific constants needed when binding to the
7402 2009-04-09 Robert Dewar <dewar@adacore.com>
7405 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
7406 when no invalid values exist, Avoid duplicate read of atomic variable.
7408 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
7409 (Standard_Unsigned): Set Is_Known_Valid
7411 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
7412 subtype declaration if no constraint.
7413 (Set_Modular_Size): Set Is_Known_Valid if appropriate
7414 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
7416 2009-04-09 Robert Dewar <dewar@adacore.com>
7418 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
7419 switch.ads: for numeric switches, an optional equal sign is always
7422 2009-04-09 Vincent Celier <celier@adacore.com>
7424 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
7425 the case of file names is not significant.
7427 2009-04-09 Vincent Celier <celier@adacore.com>
7429 * errout.adb: Remove dependency on package Style
7431 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
7434 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
7437 * errutil.adb, par.adb: Import Stylesw
7439 2009-04-09 Arnaud Charlet <charlet@adacore.com>
7441 * opt.ads: Fix typos.
7443 2009-04-09 Robert Dewar <dewar@adacore.com>
7445 * einfo.adb: Minor reformatting
7447 2009-04-09 Robert Dewar <dewar@adacore.com>
7449 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
7452 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
7454 2009-04-09 Robert Dewar <dewar@adacore.com>
7456 * g-comver.adb: Minor reformatting.
7458 2009-04-09 Thomas Quinot <quinot@adacore.com>
7460 * lib-load.ads (Load_Unit): Update documentation.
7462 2009-04-09 Ed Schonberg <schonberg@adacore.com>
7464 * lib-load.adb (Load_Unit): When loading the parent of a child unit
7465 named in a with_clause, retain the with_clause to preserve a
7466 limited_with indication.
7468 2009-04-09 Robert Dewar <dewar@adacore.com>
7470 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
7471 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
7472 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
7473 possible to replace an OR of two separate tests.
7475 2009-04-09 Robert Dewar <dewar@adacore.com>
7477 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
7480 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
7481 warning status as well.
7483 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
7485 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
7488 * bindusg.adb, usage.adb: Update line for -gnatm switch
7490 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
7493 2009-04-09 Robert Dewar <dewar@adacore.com>
7495 * sem_ch10.adb: Minor reformatting.
7497 2009-04-09 Bob Duff <duff@adacore.com>
7499 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
7500 Set Sloc of generated nodes for calls to Undefer_Aborts and
7501 Save_Occurrence to No_Location, so the debugger ignores them and
7502 therefore does not jump back and forth when single stepping.
7504 2009-04-09 Robert Dewar <dewar@adacore.com>
7506 * switch-b.adb: Minor reformatting.
7508 2009-04-09 Robert Dewar <dewar@adacore.com>
7510 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
7511 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
7512 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
7513 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
7514 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
7515 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
7516 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
7517 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
7518 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
7519 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
7520 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
7522 2009-04-09 Robert Dewar <dewar@adacore.com>
7524 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
7526 * atree.h: Add Elist26
7528 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
7531 2009-04-09 Javier Miranda <miranda@adacore.com>
7533 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
7534 retrieve from the Dispatch_Table_Wrappers list the external name.
7535 Addition of documentation.
7536 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
7537 used to export secondary dispatch tables (in the previous version of
7538 the frontend only primary dispatch tables were exported). Addition of
7540 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
7541 dispatch table of a given tagged type.
7542 (Make_Tags): Modified to import secondary dispatch tables.
7544 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
7545 (Constant_Redeclaration): Code cleanup.
7547 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
7548 Dispatch_Table_Wrappers. Update documentation.
7550 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
7551 Renamed to Dispatch_Table_Wrappers.
7553 * sem_util.adb (Collect_Interface_Components): Improve handling of
7556 * atree.ads (Elist26, Set_Elist26): New subprograms
7558 * atree.adb (Elist26, Set_Elist26): New subprograms
7560 2009-04-09 Javier Miranda <miranda@adacore.com>
7562 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
7563 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
7566 2009-04-09 Robert Dewar <dewar@adacore.com>
7568 * s-direio.adb: Minor reformatting
7570 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
7572 2009-04-09 Robert Dewar <dewar@adacore.com>
7574 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
7576 2009-04-09 Pascal Obry <obry@adacore.com>
7578 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
7579 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
7580 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
7581 a-filico.ads: Add some missing overriding keywords.
7583 2009-04-09 Pascal Obry <obry@adacore.com>
7585 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
7586 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
7587 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
7590 2009-04-09 Ed Schonberg <schonberg@adacore.com>
7592 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
7593 missing overriding indicator if the new declaration is not seen as
7596 2009-04-09 Thomas Quinot <quinot@adacore.com>
7598 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
7599 overflows in computation of bounds.
7601 2009-04-09 Pascal Obry <obry@adacore.com>
7603 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
7606 2009-04-09 Robert Dewar <dewar@adacore.com>
7608 * sem_attr.adb (Check_Stream_Attribute): Check violation of
7609 restriction No_Streams
7611 * gnat_rm.texi: Clarify No_Streams restriction
7613 * g-socket.adb: Minor reformatting.
7615 2009-04-09 Thomas Quinot <quinot@adacore.com>
7617 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
7619 2009-04-09 Geert Bosch <bosch@adacore.com>
7621 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
7622 (Set_Result): Likewise.
7623 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
7624 conversion, as required by RM 4.6(31).
7626 2009-04-08 Robert Dewar <dewar@adacore.com>
7628 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
7631 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
7634 2009-04-08 Robert Dewar <dewar@adacore.com>
7636 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
7637 No_Local_Allocators restriction preventing local instantiation.
7639 2009-04-08 Thomas Quinot <quinot@adacore.com>
7641 * sem_eval.adb: Minor comment fix
7643 2009-04-08 Thomas Quinot <quinot@adacore.com>
7645 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
7646 New limited controlled type used to automate the initialization and
7647 finalization of the sockets implementation.
7648 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
7650 2009-04-08 Vincent Celier <celier@adacore.com>
7652 * prj-attr.adb: New read-only project-level attribute Project_Dir
7654 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
7655 read-only attribute of the same name.
7656 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
7657 (Recursive_Process): Ditto
7659 * snames.adb: Add new standard name Project_Dir
7661 * snames.ads: Add new standard name Project_Dir
7663 2009-04-08 Thomas Quinot <quinot@adacore.com>
7665 * checks.adb: Minor reformatting
7667 2009-04-08 Vincent Celier <celier@adacore.com>
7669 * vms_data.ads: Add documentation for new style keyword
7670 OVERRIDING_INDICATORS
7672 2009-04-08 Robert Dewar <dewar@adacore.com>
7674 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
7675 spec is in the current unit.
7677 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7679 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
7682 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
7684 2009-04-08 Vincent Celier <celier@adacore.com>
7686 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
7688 2009-04-08 Thomas Quinot <quinot@adacore.com>
7690 * checks.ads: Minor reformatting
7692 2009-04-08 Robert Dewar <dewar@adacore.com>
7694 * gnat_rm.texi: Update documentation of pragma Obsolescent
7696 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
7697 be omitted, and allow Entity parameter to be omitted.
7699 2009-04-08 Thomas Quinot <quinot@adacore.com>
7701 * exp_util.adb: Minor comment fix
7703 2009-04-08 Robert Dewar <dewar@adacore.com>
7705 * g-socket.ads: Fix bad syntax in pragma Obsolescent
7707 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
7708 argument with no identifier following one that has an identifier. Was
7709 missed in some cases.
7711 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
7713 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
7715 * snames.adb: Add Name_Policy
7717 * snames.ads: Add Name_Policy
7719 2009-04-08 Robert Dewar <dewar@adacore.com>
7721 * gnat_rm.texi: Minor reformatting
7723 * par-ch2.adb: Minor reformatting
7725 2009-04-08 Robert Dewar <dewar@adacore.com>
7727 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
7729 2009-04-08 Robert Dewar <dewar@adacore.com>
7731 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
7732 properly in the presence of Remote_Types or Remote_Call_Interface.
7734 * sem_util.adb: Add comment.
7736 2009-04-08 Robert Dewar <dewar@adacore.com>
7738 * ug_words: Add /ASSUME_VALID for -gnatB
7740 * vms_data.ads: Add /ASSUME_VALID for -gnatB
7742 * sem_cat.adb: Add clarifying commment
7744 * a-direio.ads (Bytes): Make sure value is non-zero
7746 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7748 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
7749 that does not come from source, check for a rewritten function call in
7750 prefixed notation before other forms of rewriting.
7752 2009-04-08 Robert Dewar <dewar@adacore.com>
7754 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
7755 these are now obsolescent units used only for bootrapping with an
7758 2009-04-08 Robert Dewar <dewar@adacore.com>
7760 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
7762 * sem_ch3.adb: Minor comment updates
7764 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7766 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
7767 that come from source.
7769 2009-04-08 Tristan Gingold <gingold@adacore.com>
7771 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
7772 * gcc-interface/decl.c (prepend_attributes): New case
7773 Pragma_Thread_Local_Storage.
7774 * gcc-interface/utils.c (process_attributes): New case
7775 ATTR_THREAD_LOCAL_STORAGE.
7777 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7779 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
7780 by the back-end if it contains a call to a subprogram without a
7781 previous spec that is declared in the same unit.
7783 * errout.ads: Update comments on uses of dirs
7785 2009-04-08 Robert Dewar <dewar@adacore.com>
7787 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
7789 2009-04-08 Tristan Gingold <gingold@adacore.com>
7791 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
7793 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
7795 2009-04-08 Vincent Celier <celier@adacore.com>
7798 (Add_Source): Add the mapping of the unit name to source file name in
7799 the Unit_Sources_HT hash table, if the unit name is not null.
7801 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
7803 * prj.ads (Unit_Sources_Htable): New hash table instantiation
7804 (Project_Tree_Data): New component Unit_Sources_HT
7806 2009-04-08 Thomas Quinot <quinot@adacore.com>
7808 * sem_ch8.adb: Minor reformatting.
7809 Minor code reorganization.
7811 2009-04-08 Robert Dewar <dewar@adacore.com>
7813 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
7814 snames.ads, freeze.adb, par-prag.adb: Add implementation of
7815 pragma Thread_Local_Storage, setting new flag
7816 Has_Pragma_Thread_Local_Storage in corresponding entities.
7818 2009-04-08 Emmanuel Briot <briot@adacore.com>
7820 * prj.ads: Update comment on switches file
7822 * prj-nmsc.adb: Code clean up. Use renaming clauses.
7824 2009-04-08 Robert Dewar <dewar@adacore.com>
7826 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
7828 2009-04-08 Thomas Quinot <quinot@adacore.com>
7830 * ali-util.adb: Minor comment fix
7832 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7834 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
7835 appears in a context clause, and the enclosing package is mentioned in
7836 a limited_with_clause.
7837 (Use_One_Type): Reject clause if type is still incomplete.
7839 2009-04-08 Emmanuel Briot <briot@adacore.com>
7841 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
7842 avoid copies of Source_Data variables when possible, since these
7843 involve calls to memcpy() which are done too many times.
7845 2009-04-08 Robert Dewar <dewar@adacore.com>
7847 * exp_ch4.adb (Expand_Concatenate): Clean up code
7849 2009-04-07 Thomas Quinot <quinot@adacore.com>
7851 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
7852 type for the case of concatenating a constrained array indexed by an
7855 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7857 * sem_ch6.adb (Check_Conformance): when checking conformance of an
7858 operation that overrides an abstract operation inherited from an
7859 interface, return False if only one of the controlling formals is an
7862 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7864 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
7865 mandated by AI05-105.
7867 2009-04-07 Vincent Celier <celier@adacore.com>
7869 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
7871 2009-04-07 Thomas Quinot <quinot@adacore.com>
7873 * usage.adb: Minor fix in usage message.
7875 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
7876 match declaration; the correct subtype is Node_Id, not Entity_Id,
7877 because the expected node kind is an identifier, not a defining
7880 * switch-c.adb: Minor reformatting.
7882 * uintp.adb: Minor reformatting.
7884 2009-04-07 Robert Dewar <dewar@adacore.com>
7886 * exp_ch13.adb: Minor reformatting
7888 2009-04-07 Robert Dewar <dewar@adacore.com>
7890 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
7891 against missing parent.
7893 2009-04-07 Thomas Quinot <quinot@adacore.com>
7895 * xoscons.adb: Minor reformatting
7897 2009-04-07 Robert Dewar <dewar@adacore.com>
7899 * rtsfind.ads: Remove obsolete string concatenation entries
7901 2009-04-07 Robert Dewar <dewar@adacore.com>
7903 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
7905 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7907 * sem_ch10.adb (Check_Body_Required): Handle properly imported
7910 2009-04-07 Gary Dismukes <dismukes@adacore.com>
7912 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
7913 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
7914 is of a scalar or string type then suppress the setting of the
7915 expression to Empty.
7917 * freeze.adb (Warn_Overlay): Also emit the warnings about default
7918 initialization for the cases of scalar and string objects when
7919 Init_Or_Norm_Scalars is True.
7921 2009-04-07 Bob Duff <duff@adacore.com>
7923 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
7925 2009-04-07 Bob Duff <duff@adacore.com>
7927 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
7928 Form parameter of Text_Translation=No allows binary mode for Text_IO
7931 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
7933 2009-04-07 Javier Miranda <miranda@adacore.com>
7935 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
7936 processing the bounds for bit packed arrays or VM target machines.
7938 2009-04-07 Thomas Quinot <quinot@adacore.com>
7940 * g-sothco.ads (Int_Access): Remove extraneous access type (use
7941 anonymous access instead).
7942 (Get_Socket_From_Set): Fix incorrectly reverted formals
7943 Last and Socket to match the underlying C routine.
7945 * g-socket.adb, g-socket.ads
7946 (Get): Use named parameter associations instead of positional ones in
7947 call go Get_Socket_From_Set, since this routine has two formals of the
7949 (Image): New procedure.
7951 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7952 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
7953 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
7954 for type of Arg formal.
7956 * sem_warn.adb: Minor reformatting
7958 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7960 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
7961 over record components.
7963 2009-04-07 Nicolas Roche <roche@adacore.com>
7966 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
7967 has disappeared between VxWorks 6.4 and VxWorks 6.5
7968 In RTP mode use time.h instead of times.h
7970 2009-04-07 Robert Dewar <dewar@adacore.com>
7972 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
7974 2009-04-07 Kevin Pouget <pouget@adacore.com>
7976 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
7977 expanded code for constrained types.
7979 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7981 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
7982 AI05-105: in an object renaming declaration, anonymousness is a name
7985 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
7987 2009-04-07 Arnaud Charlet <charlet@adacore.com>
7989 * g-comlin.adb (Expansion): Fix old regression: also return directory
7990 names when matching.
7992 2009-04-07 Robert Dewar <dewar@adacore.com>
7995 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
7996 (Expand_Concatenate): New name for Expand_Concatenate_String which has
7997 been rewritten to handle all types.
7998 (Expand_Concatenate_Other): Remove
8000 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8002 * lib-xref.adb (Generate_Reference): A default subprogram in an
8003 instance appears within the tree for the instance, but generates an
8004 implicit reference in the ALI.
8006 2009-04-07 Javier Miranda <miranda@adacore.com>
8008 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
8009 derived type that has discriminants, propagate the list of interfaces
8010 to the corresponding new base type. In addition, propagate also
8011 attribute Limited_Present (found working in this patch).
8013 2009-04-07 Robert Dewar <dewar@adacore.com>
8015 * exp_ch4.adb: Rewrite concatenation expansion.
8017 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8019 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
8020 relevant to packages.
8022 2009-04-07 Robert Dewar <dewar@adacore.com>
8024 * sem_attr.adb: Minor reformatting
8026 * sem_ch6.adb: Minor reformatting
8028 2009-04-07 Tristan Gingold <gingold@adacore.com>
8030 * socket.c: Add more protections against S_resolvLib_ macros.
8032 2009-04-07 Thomas Quinot <quinot@adacore.com>
8034 * sem_attr.adb: Minor reformatting
8036 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8038 * sem_ch6.adb (New_Overloaded_Entity): New predicate
8039 Is_Overriding_Alias to handle properly types that inherit two homonym
8040 operations that have distinct dispatch table entries.
8042 2009-04-07 Emmanuel Briot <briot@adacore.com>
8044 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
8045 looking for the end of a parenthesis group
8047 2009-04-07 Tristan Gingold <gingold@adacore.com>
8049 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
8051 * socket.c Don't use resolvLib_ macros if not defined.
8053 2009-04-07 Robert Dewar <dewar@adacore.com>
8055 * g-socket.adb: Minor reformatting.
8057 * g-socthi-mingw.adb: Minor reformatting
8059 * g-sothco.ads: Minor reformatting
8062 (Expand_Concatenate_String): Complete rewrite to generate efficient code
8063 inline instead of relying on external library routines.
8065 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
8066 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
8069 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8072 (Eval_Attribute): for attributes of array objects that are not strings,
8073 attributes are not static if nominal subtype of object is unconstrained.
8075 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8077 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
8078 operations for a type T in an instance do not override each other,
8079 when T is derived from a formal private type, the corresponding
8080 operations inherited by a type derived from T outside
8081 of the instance do not override each other either.
8083 2009-04-07 Robert Dewar <dewar@adacore.com>
8085 (Osint.Fail): Change calling sequence to have one string arg
8086 (Make.Make_Failed): Same change
8087 All callers are adjusted to use concatenation
8089 2009-04-07 Robert Dewar <dewar@adacore.com>
8091 * exp_ch4.adb: Fix documentation typo
8093 2009-04-07 Robert Dewar <dewar@adacore.com>
8095 * tbuild.ads: Minor reformatting
8097 2009-04-07 Javier Miranda <miranda@adacore.com>
8099 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
8100 when compiling under ZFP runtime.
8102 2009-04-07 Robert Dewar <dewar@adacore.com>
8104 * g-comlin.adb: Minor reformatting
8106 2009-04-07 Thomas Quinot <quinot@adacore.com>
8108 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8109 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
8110 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
8111 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
8113 2009-04-07 Robert Dewar <dewar@adacore.com>
8115 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
8117 * opt.ads (Sprint_Line_Limit): New parameter
8119 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
8121 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
8123 * usage.adb: Output information for -gnatGnn -gnatDnn
8125 2009-04-07 Robert Dewar <dewar@adacore.com>
8127 * make.adb: Minor reformatting
8129 2009-04-07 Robert Dewar <dewar@adacore.com>
8131 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
8133 2009-04-07 Robert Dewar <dewar@adacore.com>
8135 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
8137 2009-04-07 Robert Dewar <dewar@adacore.com>
8140 Remove Assume_Valid parameter from In_Subrange_Of calls
8143 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8144 (Is_In_Range): Remove incorrect use of Assume_Valid
8145 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
8148 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8149 (Is_In_Range): Documentation cleanup
8150 (Is_Out_Of_Range): Documentation cleanup
8153 Add documentation for Assume_No_Invalid_Values pragma
8155 * sem_ch12.adb: Minor reformatting
8157 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
8159 * sem_prag.adb: Improve error message.
8161 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
8162 LF/CR no longer recognized as line terminator
8164 * switch.ads: Minor documentation improvement
8166 * vms_data.ads: Minor reformatting
8168 2009-04-07 Robert Dewar <dewar@adacore.com>
8170 * checks.adb (Determine_Range): Add Assume_Valid parameter
8172 * checks.ads (Determine_Range): Add Assume_Valid parameter
8174 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
8175 Is_Null_Loop to suppress warnings in a loop body.
8178 (Rewrite_Comparison): Major rewrite to accomodate invalid values
8181 (Expand_N_Loop_Statement): Delete loop known not to execute
8184 (Assume_No_Invalid_Values): Now set to False, and as documented, this
8185 fully enables the proper handling of invalid values.
8188 New calling sequence for Is_In_Range
8191 (Analyze_Iteration_Scheme): Accomodate possible invalid values
8192 in determining if a loop range is null.
8195 (Is_In_Range): Add Assume_Valid parameter
8196 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8197 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
8198 also to do more accurate and complete range analysis, catching more
8202 (Is_In_Range): Add Assume_Valid parameter
8203 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8206 New calling sequence for Is_In_Range
8209 (Suppress_Loop_Warnings): New flag
8212 (Is_Null_Loop): Update documentation
8213 (Suppress_Loop_Warnings): New flag
8215 * gnat_ugn.texi: Document -gnatB switch
8217 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8219 * gnatvsn.ads: Bump version number.
8221 2009-04-07 Thomas Quinot <quinot@adacore.com>
8223 * exp_ch3.adb: Minor rewording (comments)
8225 2009-04-07 Robert Dewar <dewar@adacore.com>
8227 * exp_disp.adb: Minor reformatting
8229 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8231 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
8233 * gcc-interface/trans.c (lvalue_required_p): Likewise.
8235 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8237 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
8238 Do not convert the result. Remove obsolete comment.
8240 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8242 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
8244 (Subprogram_Body_to_gnu): Fix pasto.
8246 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8248 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
8249 (void_type_decl_node): Remove.
8250 (init_gigi_decls): Likewise.
8251 (gnat_install_builtins): Declare.
8252 (record_builtin_type): Likewise.
8253 (create_type_stub_decl): Likewise.
8254 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
8255 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
8257 <E_Array_Subtype>: Use the index types, not only their name, in the
8258 record giving the names of the bounds, if any.
8259 For a packed array type, make it artificial only if the base type
8260 was artificial as well. Remove redundant statement.
8261 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
8263 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
8264 (rest_of_type_decl_compilation_no_defer): Likewise.
8265 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
8266 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
8267 and use create_type_stub_decl to build it.
8268 (gnat_pushdecl): Rewrite condition.
8269 (gnat_install_builtins): Remove bogus declaration.
8270 (record_builtin_type): New function.
8271 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
8273 (create_type_stub_decl): New function.
8274 (create_type_decl): Assert that the type is not dummy. If the type
8275 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
8276 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
8277 (build_vms_descriptor): Likewise.
8278 (init_gigi_decls): Delete and move bulk of code to...
8279 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
8280 (emit_range_check): Add gnat_node parameter.
8281 (emit_index_check): Likewise.
8282 (emit_check): Likewise.
8283 (build_unary_op_trapv): Likewise.
8284 (build_binary_op_trapv): Likewise.
8285 (convert_with_check): Likewise.
8286 (Attribute_to_gnu): Adjust calls for above changes.
8287 (call_to_gnu): Likewise.
8288 (gnat_to_gnu): Likewise.
8289 (assoc_to_constructor): Likewise.
8290 (pos_to_constructor): Likewise.
8291 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
8292 (process_type): Do not create TYPE_DECL for dummy types.
8294 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8296 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
8297 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
8298 * gcc-interface/utils.c: Fix comments.
8300 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8302 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
8304 (gnat_to_gnu_type): Move around.
8305 (get_unpadded_type): Likewise.
8306 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
8309 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8311 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
8312 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
8313 (call_to_gnu): Invoke it instead of manually checking.
8315 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
8317 * gcc-interface/utils.c (finish_record_type): Force structural equality
8318 checks if the record type is discriminated.
8320 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
8322 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
8323 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
8324 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
8325 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
8326 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
8327 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
8328 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
8330 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8332 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
8333 of TREE_CONSTANT_OVERFLOW.
8335 2009-03-30 Joseph Myers <joseph@codesourcery.com>
8337 PR rtl-optimization/323
8338 * gcc-interface/misc.c (gnat_post_options): Set
8339 flag_excess_precision_cmdline. Give an error for
8340 -fexcess-precision=standard for processors where the option is
8343 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8346 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
8349 2009-03-11 Olivier Hainque <hainque@adacore.com>
8351 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
8352 checks processing, remove unintended TREE_TYPE walk on index type.
8354 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
8357 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
8358 call make_packable_type on fat pointer types.
8359 <E_Array_Subtype>: Likewise.
8360 <E_Record_Subtype>: Call make_packable_type on all record types
8361 except for fat pointer types.
8362 (make_packable_type): Likewise.
8363 (gnat_to_gnu_field): Likewise.
8365 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
8367 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
8368 EH_MECHANISM change made on 2007-12-06.
8370 2009-02-26 Andreas Schwab <schwab@suse.de>
8373 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
8374 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
8375 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
8377 (target_cpu_default): Substitute.
8379 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8382 * a-teioed.adb (Expand): Fix Result overflow.
8384 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8386 * gcc-interface/Makefile.in: Fix multilib handling for
8389 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8391 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
8393 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
8395 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
8397 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
8399 * gcc-interface/deftarg.c: Remove.
8401 2009-02-10 Olivier Hainque <hainque@adacore.com>
8402 Eric Botcazou <ebotcazou@adacore.com>
8404 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
8405 (copy_alias_set): Rename into...
8406 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
8407 underlying array of unconstrained arrays for the new type as well.
8408 If the old and new alias sets don't conflict, make one a subset of
8409 the other as per the OP parameter.
8410 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
8411 <E_Record_Type>: Do not copy the alias set for derived types.
8412 For all types, make the alias set of derived types a superset of
8413 that of their parent type.
8414 (make_aligning_type): Adjust calls to copy_alias_set.
8415 (make_packable_type): Likewise.
8416 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
8417 Check for alias set conflict instead of strict equality to issue the
8420 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
8422 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8423 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
8424 (copy_alias_set): Assert that arrays have the same aliasing settings.
8425 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
8427 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
8429 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8430 Set TYPE_NONALIASED_COMPONENT on the array type.
8432 2009-01-31 Laurent GUERBY <laurent@guerby.net>
8434 * gcc-interface/Makefile.in: Fix mipsel linux handling.
8436 2009-01-16 Jakub Jelinek <jakub@redhat.com>
8438 * gcc-interface/Makefile.in: Fix multilib handling for
8441 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
8443 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
8444 only useless conversions around renamed objects.
8446 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
8448 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
8449 the _Tag field before any discriminants in the field list.
8450 (components_to_record): Remove obsolete comment.
8454 Copyright (C) 2009 Free Software Foundation, Inc.
8456 Copying and distribution of this file, with or without modification,
8457 are permitted in any medium without royalty provided the copyright
8458 notice and this notice are preserved.