OSDN Git Service

2010-10-18 Bob Duff <duff@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2010-10-18  Bob Duff  <duff@adacore.com>
2
3         * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
4         correct, and to be in a more convenient order.
5         (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
6         recording the Default_Storage_Pool for a parent library unit.
7         * einfo.ads (Etype): Document the case in which Etype can be Empty.
8         * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
9         Default_Storage_Pool pragma.
10         * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
11         * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
12         pragma.
13         * freeze.adb (Freeze_Entity): When freezing an access type, take into
14         account any Default_Storage_Pool pragma that applies. We have to do
15         this at the freezing point, because up until that point, a Storage_Pool
16         or Storage_Size clause could occur, which should override the
17         Default_Storage_Pool.
18         * par-prag.adb: Add this pragma to the list of pragmas handled entirely
19         during semantics.
20         * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
21         Default_Storage_Pool information.
22         * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
23         currently-applicable Default_Storage_Pool pragmas.
24         * opt.adb: Save/restore the globals as appropriate.
25         * snames.ads-tmpl (Name_Default_Storage_Pool,
26         Pragma_Default_Storage_Pool): New pragma name.
27
28 2010-10-18  Vincent Celier  <celier@adacore.com>
29
30         * make.adb (Switches_Of): Put the spec and body suffix in canonical
31         case.
32
33 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
34
35         * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
36         library level, the pre/postconditions must be treated as global
37         declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
38         * freeze.adb (Freeze_Expression): If the expression is at library level
39         there is no enclosing record to check.
40
41 2010-10-18  Javier Miranda  <miranda@adacore.com>
42
43         * sem_ch3.ads (Find_Type_Name): Add documentation.
44         * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
45         propagation of the class-wide entity is now done by routine
46         Find_Type_Name to factorize this code.
47         (Analyze_Private_Extension_Declaration): Handle private type that
48         completes an incomplete type.
49         (Tag_Mismatch): Add error message for tag mismatch in a private type
50         declaration that completes an incomplete type.
51         (Find_Type_Name): Handle completion of incomplete type by means of
52         a private declaration. Generate an error if a tagged incomplete type
53         is completed by an untagged private type.
54         * sem_ch7.adb (New_Private_Type): Handle private type that completes an
55         incomplete type.
56         * einfo.ads (Full_View): Add documentation.
57
58 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
59
60         * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
61         a renaming, generate a reference for it before analyzing the renamed
62         entity, to prevent spurious warnings.
63
64 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
65
66         * adaint.c (__gnat_pthread_setaffinity_np,
67         __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
68         * s-osinte-linux.ads (pthread_setaffinity_np,
69         pthread_attr_setaffinity_np): Remove use of wrappers.
70         * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
71         whether the affinity functionality is available in the OS.
72         * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
73         are defined.
74
75 2010-10-18  Robert Dewar  <dewar@adacore.com>
76
77         * einfo.ads, einfo.adb: Minor reformatting.
78         * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
79
80 2010-10-18  Emmanuel Briot  <briot@adacore.com>
81
82         * g-comlin.adb (Is_In_Config): When the switch accepts either a space
83         or equal, we output an equal every time.
84
85 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
86
87         * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
88         member when pre/post conditions are present.
89         * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
90         includes an index parameter, and the name of the enclosed entry call is
91         an indexed component.
92
93 2010-10-18  Robert Dewar  <dewar@adacore.com>
94
95         * einfo.ads, einfo.adb: Minor reformatting.
96
97 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
98
99         * adaint.c (__gnat_pthread_setaffinity_np,
100         __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
101         availability of the underlying OS functionality before calling.
102         * s-osinte-linux.ads (pthread_setaffinity_np,
103         pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
104         to perform a check of its availability.
105         * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
106         the affinity functionality is available in the OS. Now done in a wrapper
107         * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
108         * gcc-interface/Make-lang.in: Update dependencies.
109
110 2010-10-18  Robert Dewar  <dewar@adacore.com>
111
112         * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
113         standard field).
114
115 2010-10-18  Robert Dewar  <dewar@adacore.com>
116
117         * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
118         Minor reformatting.
119
120 2010-10-18  Robert Dewar  <dewar@adacore.com>
121
122         * exp_strm.adb (Build_Elementary_Input_Call): Check
123         No_Default_Stream_Attributes.
124         (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
125         * s-rident.ads: Add restriction No_Default_Stream_Attributes
126         Put restriction No_Allocators_After_Elaboration in alpha order
127
128 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
129
130         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
131         to the affinity when expanding the task declaration.
132         (Make_Task_Create_Call): Add the affinity parameter to the call to
133         create task.
134         * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
135         taking into account the case when it applies to a subprogram (only for
136         main and with static expression) or to a task.
137         * par_prag.adb:(Prag): Make pragma CPU a valid one.
138         * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
139         used by the expander for handling the affinity parameter when creating
140         a task.
141         (Pragma_Id): Add Pragma_CPU as a valid one.
142         * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
143         (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
144         RE_Unspecified_CPU visible.
145         * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
146         two subprograms to set/get the flag indicating whether there is a
147         pragma CPU which applies to the entity.
148         * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
149         Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
150         of the affinity associated to the main subprogram (if any).
151         Default_Main_CPU is used when no affinity is set. Subprograms
152         Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
153         subprogram.
154         * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
155         value of the affinity of the main subprogram.
156         (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
157         the M line).
158         * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
159         main subprogram in the M (main) line using C=XX.
160         * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
161         Load_Unit): Add new field Main_CPU.
162         * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
163         the affinity of the main subprogram to the run time.
164         * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
165         affinity.
166         (Unspecified_CPU): Add this constant to identify the case when no
167         affinity is set for tasks.
168         * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
169         CPU in the common part of the ATCB.
170         (Initialize): Store the value coming from pragma CPU (for the
171         environment task) in the common part of the ATCB.
172         * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
173         by pragma CPU to the ATCB.
174         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
175         specified by pragma CPU to the ATCB.
176         * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
177         parameter to the call to Initialize_ATCB.
178         * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
179         to include the task affinity before creation. Additionally, the
180         affinity selected with Task_Info is also enforced changing the
181         attributes at task creation time, instead of changing it after creation.
182         (Initialize): Change the affinity of the environment task if required
183         by a pragma CPU.
184         * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
185         wrapper to check whether the function is available or not, use a weak
186         symbol.
187         (pthread_attr_setaffinity_np): Add the import of this function which is
188         used to change the affinity in the attributes used to create a thread.
189         * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
190         It was used to check whether the pthread function was available or not,
191         but the use of a weak symbol handles this situation in a cleaner way.
192         * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
193         tasks (including the environment task) if required by a pragma CPU.
194         * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
195         (including the environment task) if required by a pragma CPU.
196         * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
197         of tasks (including the environment task) if required by a pragma CPU.
198         * init.c (__gl_main_cpu): Make this value visible to the run time. It
199         will pass the affinity of the environment task.
200
201 2010-10-18  Javier Miranda  <miranda@adacore.com>
202
203         * einfo.adb (Direct_Primitive_Operations): Complete assertion.
204
205 2010-10-18  Vincent Celier  <celier@adacore.com>
206
207         * prj.ads (Source_Data): New Boolean flag In_The_Queue.
208
209 2010-10-18  Tristan Gingold  <gingold@adacore.com>
210
211         * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
212         * s-stausa.adb: Use the top parameter.  In Fill_Stack, use the
213         stack top if known.
214         * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
215         so that Pri_Stack_Info.Limit can be set and used.
216
217 2010-10-18  Robert Dewar  <dewar@adacore.com>
218
219         * einfo.ads: Minor reformatting.
220         * sem_res.adb (Resolve_Allocator): Add test for violating
221         No_Anonymous_Allocators.
222
223 2010-10-18  Robert Dewar  <dewar@adacore.com>
224
225         * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
226
227 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
228
229         * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
230         component, we generate a reference to the ultimate prefix when it is an
231         entity name. We must place the reference on the identifier for that
232         prefix, and not on the operand itself, to prevent spurious extra
233         references in the ali file.
234
235 2010-10-18  Vincent Celier  <celier@adacore.com>
236
237         * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
238
239 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
240
241         * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
242         families. Denotes a procedure that performs pre/postcondition checks
243         and then performs the entry call.
244         * sem_res.adb (Resolve_Entry_Call): If the entry has
245         pre/postconditions, replace call with a call to the PPC_Wrapper of the
246         entry.
247         * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
248         (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
249         Build_PPC_Wrapper for all entries in task and protected definitions.
250
251 2010-10-18  Tristan Gingold  <gingold@adacore.com>
252
253         * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
254         Implement stack limitation on VMS.
255         Minor reformatting.
256
257 2010-10-18  Vincent Celier  <celier@adacore.com>
258
259         * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
260         source record has been initialized.
261
262 2010-10-18  Robert Dewar  <dewar@adacore.com>
263
264         * einfo.adb: Minor code reorganization (Primitive_Operations is a
265         synthesized attribute routine and was in the wrong place).
266
267 2010-10-18  Tristan Gingold  <gingold@adacore.com>
268
269         * init.c: Indentation, and minor changes to more closely follow GNU
270         style rules.  Make more variable statics.
271
272 2010-10-18  Vincent Celier  <celier@adacore.com>
273
274         * prj.adb (Is_Compilable): On first call for a source, cache value in
275         component Compilable.
276         * prj.ads (Source_Data): New component Compilable, to cache the value
277         returned by function Is_Compilable.
278
279 2010-10-18  Vincent Celier  <celier@adacore.com>
280
281         * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
282         * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
283         Ignore.
284         (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
285         (Get_Directories): Call Find_Source_Dirs with the string list
286         indicated by attribute Ignore_Source_Sub_Dirs.
287         * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
288
289 2010-10-18  Javier Miranda  <miranda@adacore.com>
290
291         * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
292         attribute.
293         (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
294         (Set_Direct_Primitive_Operations): Renaming of old
295         Set_Primitive_Operations. Update documentation
296         * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
297         Replace occurrences of Set_Primitive_Operations by
298         Set_Direct_Primitive_Operations.
299         * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
300         concurrent types.
301         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
302         process primitives of concurrent types.
303         * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
304
305 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
306
307         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
308         (Expand_Protected_Object_Reference): Likewise.
309         * sem_attr.adb (Resolve_Attribute): Likewise.
310         * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
311         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
312
313 2010-10-18  Arnaud Charlet  <charlet@adacore.com>
314
315         * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
316
317 2010-10-18  Robert Dewar  <dewar@adacore.com>
318
319         * aspects.ads, aspects.adb: Add entries for aspects
320         Read/Write/Input/Output.
321         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
322         handling aspects Read/Write/Input/Output.
323
324 2010-10-18  Robert Dewar  <dewar@adacore.com>
325
326         * sem_util.adb (Note_Possible_Modification): Do not give warning for
327         use of pragma Unmodified unless we are sure this is a modification.
328
329 2010-10-18  Tristan Gingold  <gingold@adacore.com>
330
331         * sysdep.c: Add __gnat_get_stack_bounds.
332         * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
333
334 2010-10-18  Robert Dewar  <dewar@adacore.com>
335
336         * a-assert.ads: Fix bad name in header.
337         * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
338         reformatting.
339         * exp_aggr.adb: Fix typo in comment.
340
341 2010-10-18  Javier Miranda  <miranda@adacore.com>
342
343         * exp_util.adb (Side_Effect_Free): Code clean up.
344
345 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
346
347         * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
348         Is_Primitive_Operator. When ending the scope of a use package scope, a
349         primitive operator remains in use if the base type has a current use
350         (type) clause.
351
352 2010-10-18  Javier Miranda  <miranda@adacore.com>
353
354         * einfo.ads (Is_Dynamic_Support): Add missing support for limited
355         private types whose full-view is a task type.
356         * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
357         private types whose full-view is a task type.
358         * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
359         function Nearest_Dynamic_Scope which provides the needed functionality.
360
361 2010-10-18  Arnaud Charlet  <charlet@adacore.com>
362
363         * sem_prag.adb (Set_Exported): Do not generate error when exporting a
364         variable with an address clause in codepeer mode.
365
366 2010-10-18  Robert Dewar  <dewar@adacore.com>
367
368         * g-trasym-vms-ia64.adb: Minor reformatting.
369
370 2010-10-18  Thomas Quinot  <quinot@adacore.com>
371
372         * sem_type.adb (Covers): If either argument is Standard_Void_Type and
373         the other isn't, return False early.
374
375 2010-10-18  Ed Falis  <falis@adacore.com>
376
377         * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
378         VxWorks Cert.
379
380 2010-10-18  Robert Dewar  <dewar@adacore.com>
381
382         * sem_disp.ads: Minor comment update.
383
384 2010-10-18  Robert Dewar  <dewar@adacore.com>
385
386         * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
387         * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
388         visibility analysis of precondition and postcondition pragmas (and
389         Pre/Post aspects).
390         * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
391         aspects.
392         * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
393         of pre/post conditions (no longer needed).
394         * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
395         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
396         argument, since this is now done in the main processing for
397         pre/postcondition pragmas when they are first seen.
398         (Chain_PPC): Pre'Class and Post'Class now handled properly
399         (Chain_PPC): Handle Pre/Post aspects for entries
400         (Check_Precondition_Postcondition): Handle entry declaration case
401         (Check_Precondition_Postcondition): Handle delay of visibility analysis
402         (Check_Precondition_Postcondition): Preanalyze message argument if
403         present.
404
405 2010-10-18  Robert Dewar  <dewar@adacore.com>
406
407         * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
408
409 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
410
411         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
412         TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
413         * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
414         the INDIRECT_REF node built for objects used by reference.
415         * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
416         constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
417         (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
418
419 2010-10-13  Richard Henderson  <rth@redhat.com>
420
421         * gcc-interface/misc.c (gnat_eh_personality): Update call to
422         build_personality_function.
423         * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
424         use__gnat_personality_{v,sj}0.
425
426 2010-10-12  Vincent Celier  <celier@adacore.com>
427
428         * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
429         (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
430         of iterating through all sources of the project.
431         * prj.adb (Free): Reset hash table Source_Files_HT
432         (Reset): Reset hash table Source_Files_HT
433         * prj.ads (Source_Data): New component Next_With_File_Name
434         (Source_Files_Htable): New hash table
435         (Project_Tree_Data): New component Source_Files_HT
436
437 2010-10-12  Tristan Gingold  <gingold@adacore.com>
438
439         * g-trasym-vms-ia64.adb: Use the documented API.
440         * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
441         * gcc-interface/Make-lang.in: Update dependencies.
442
443 2010-10-12  Thomas Quinot  <quinot@adacore.com>
444
445         * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
446         PolyORB case): Request is now a controlled type: we can declare the
447         request on the stack, and we do not need explicit cleanup actions
448         anymore.
449
450 2010-10-12  Bob Duff  <duff@adacore.com>
451
452         * s-rident.ads (Profile_Info): This variable is now constant.
453
454 2010-10-12  Emmanuel Briot  <briot@adacore.com>
455
456         * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
457         parameter Separator for backward compatibility.
458
459 2010-10-12  Robert Dewar  <dewar@adacore.com>
460
461         * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
462
463 2010-10-12  Vincent Celier  <celier@adacore.com>
464
465         * debug.adb: Put detailed documentation for gnatmake switch -dm.
466
467 2010-10-12  Vincent Celier  <celier@adacore.com>
468
469         * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
470         body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
471
472 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
473
474         * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
475         using 'Access.
476
477 2010-10-12  Robert Dewar  <dewar@adacore.com>
478
479         * debug.adb: Add comment.
480         * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
481
482 2010-10-12  Javier Miranda  <miranda@adacore.com>
483
484         * exp_util.adb (Side_Effect_Free): Return true for object renaming
485         declarations that were previously generated by Remove_Side_Effects.
486
487 2010-10-12  Emmanuel Briot  <briot@adacore.com>
488
489         * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
490         "???" when an entity is defined as "*" in the ALI file.
491         * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
492         Minor reformatting.
493
494 2010-10-12  Emmanuel Briot  <briot@adacore.com>
495
496         * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
497         Set_Usage): New subprograms.
498         (Define_Switch): Change profile to add support for help messages and
499         long switches.
500
501 2010-10-12  Javier Miranda  <miranda@adacore.com>
502
503         * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
504         attribute Overridden_Operation in predefined dispatching primitives. 
505
506 2010-10-12  Emmanuel Briot  <briot@adacore.com>
507
508         * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
509         command line configuration exists and we specify an invalid section.
510
511 2010-10-12  Robert Dewar  <dewar@adacore.com>
512
513         * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
514         exception messages are generated.
515         (Process_PPCs): Fix error in inheriting Pre'Class.
516
517 2010-10-12  Jose Ruiz  <ruiz@adacore.com>
518
519         * gnatcmd.adb: Use response file for GNATstack.
520         (Check_Files): Pass the list of ci files for GNATstack using a response
521         file to avoid problems with command line length.
522         Factor out the code handling response file into a new procedure named
523         Add_To_Response_File.
524
525 2010-10-12  Vincent Celier  <celier@adacore.com>
526
527         * debug.adb: For gnatmake, document the meaning of -dm
528         * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
529         simultaneous compilations.
530         * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
531         simultaneous compilations as the number of processors.
532
533 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
534
535         * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
536         instead of options.h.
537
538 2010-10-12  Robert Dewar  <dewar@adacore.com>
539
540         * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
541         postcondition pragmas.
542
543 2010-10-12  Robert Dewar  <dewar@adacore.com>
544
545         * errout.ads, erroutc.adb: The # insertion now handles from in place of
546         at.
547         * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
548         message if new switch Exception_Locations_Suppressed is set.
549         (Expand_Pragma_Check): Revised wording for default message for case
550         of precondition or postcondition.
551         * namet.ads, namet.adb (Build_Location_String): New procedure.
552         * opt.ads (List_Inherited_Pre_Post): New flag.
553         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
554         list inherited pre/post aspects.
555         * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
556         messages for precondition/postcondition cases.
557         * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
558         if flag List_Inherited_Pre_Post is set True.
559         (Process_PPCs): Add initial handling for inherited preconditions
560         (List_Inherited_Pre_Post_Aspects): New procedure
561         * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
562         * sem_disp.adb (Inherited_Subprograms): New function
563         * sem_disp.ads (Inherited_Subprograms): New function
564         * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
565         pre/postcondition.
566         (Check_Precondition_Postcondition): Check for inherited aspects
567         * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
568         * sinfo.ads, sinfo.adb (Split_PPC): New flag.
569         * sinput.ads, sinput.adb (Build_Location_String): New function.
570         * usage.adb: Add line for -gnatw.l/-gnatw.L
571
572 2010-10-12  Javier Miranda  <miranda@adacore.com>
573
574         * exp_util.adb (Remove_Side_Effects): Remove wrong code.
575
576 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
577
578         * xref_lib.adb: Add handling of j/J letters.
579
580 2010-10-12  Pascal Obry  <obry@adacore.com>
581
582         * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
583
584 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
585
586         * make.adb (Globalize): New procedure.
587         (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
588         (Gnatmake): Call Globalize when needed.
589         (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
590         pragmas in CodePeer mode.
591         (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
592         to generate simpler and consistent code.
593
594 2010-10-12  Bob Duff  <duff@adacore.com>
595
596         * exp_util.adb (Remove_Side_Effects): Disable previous change,
597         can cause side effects to be duplicated.
598
599 2010-10-12  Robert Dewar  <dewar@adacore.com>
600
601         * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
602
603 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
604
605         * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
606         abstract inherited private operation in CodePeer mode.
607
608 2010-10-12  Thomas Quinot  <quinot@adacore.com>
609
610         * a-exetim.ads: Minor reformatting.
611         * g-socket.ads (Port_Type): Better definition corresponding to the
612         actual standard range.
613         * exp_ch5.adb: Add comment.
614         * sem_aux.adb: Minor reformatting.
615
616 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
617
618         * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
619         string_literal_subtype so that a new one can be constructed in the
620         scope of the instance.
621
622 2010-10-12  Robert Dewar  <dewar@adacore.com>
623
624         * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
625         * gnat_rm.texi (pragma Suppress_All): Document new placement rules
626         * par-prag.adb (P_Pragma, case Suppress_All): Set
627         Has_Pragma_Suppress_All flag.
628         * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
629         (Analyze_Pragma, case Suppress_All): Remove placement check
630         (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
631         * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
632         * sinfo.adb (Has_Pragma_Suppress_All): New flag
633         (Has_Pragma_Priority): New name for Has_Priority_Pragma
634         * sinfo.ads (Has_Pragma_Suppress_All): New flag
635         (Has_Pragma_Priority): New name for Has_Priority_Pragma
636
637 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
638
639         * lib-xref.ads: Mark j/J as reserved for C++ classes.
640
641 2010-10-12  Jose Ruiz  <ruiz@adacore.com>
642
643         * a-exetim-default.ads, a-exetim-posix.adb: New.
644         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
645         POSIX Realtime support to implement CPU clocks.
646         (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
647         to the tasking library.
648         (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
649         available for shared libraries.
650         * gcc-interface/Make-lang.in: Update dependencies.
651
652 2010-10-12  Robert Dewar  <dewar@adacore.com>
653
654         * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
655         apart expressions with AND THEN clauses into separate pragmas.
656         * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
657
658 2010-10-12  Robert Dewar  <dewar@adacore.com>
659
660         * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
661         aspects.
662         * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
663         * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
664         aspects.
665         (Check_Optional_Identifier): Handle case of direct arguments
666         (Chain_PPC): Test for abstract case, giving appropriate messages
667         * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
668
669 2010-10-12  Robert Dewar  <dewar@adacore.com>
670
671         * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
672         END RECORD.
673         * sem_attr.adb (Eval_Attribute): Code clean up.
674
675 2010-10-12  Robert Dewar  <dewar@adacore.com>
676
677         * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
678         messages and recovery for case of out of order Abstract/Tagged/Private
679         keywords.
680         * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
681         for case of out of order Abstract/Tagged/Private keywords.
682
683 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
684
685         * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
686         where child unit is main unit of compilation.
687
688 2010-10-12  Robert Dewar  <dewar@adacore.com>
689
690         * aspects.ads, aspects.adb (Move_Aspects): New procedure.
691         * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
692         * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
693         par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
694         aspect specifications.
695         Recognize aspect specifications for all cases
696         * par.adb: Recognize aspect specifications for all cases
697         * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
698         specifications.
699         * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
700         generic actual types (was missing some guards before).
701         * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
702         generated object
703         (Analyze_Single_Task_Declaration): Copy aspects to generated object
704
705 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
706
707         * usage.adb (usage): Adjust line for -gnatn switch.
708
709 2010-10-12  Robert Dewar  <dewar@adacore.com>
710
711         * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
712         spec case.
713
714 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
715
716         * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
717         declaration of a null procedure resolve the types of the profile of the
718         generated null body now.
719
720 2010-10-11  Robert Dewar  <dewar@adacore.com>
721
722         * debug.adb: Remove d.A flag to delay address clause (not needed any
723         more). Add d.A flag to enable tree read/write of aspect spec hash table
724         * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
725         clause.
726         (Rep_Item_Too_Late): No need for special processing for delayed rep
727         items (and it caused difficulties in the address case).
728         * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
729         * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
730
731 2010-10-11  Pat Rogers  <rogers@adacore.com>
732
733         * gnat_ugn.texi: Minor editing.
734
735 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
736
737         * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
738
739 2010-10-11  Robert Dewar  <dewar@adacore.com>
740
741         * g-htable.ads (Get_First): New procedural version for Simple_HTable
742         (Get_Next): New procedural version for Simple_HTable
743         * s-htable.adb (Get_First): New procedural version for Simple_HTable
744         (Get_Next): New procedural version for Simple_HTable
745         * s-htable.ads (Get_First): New procedural version for Simple_HTable
746         (Get_Next): New procedural version for Simple_HTable
747
748 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
749
750         * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
751         variant part, use the association list of the subaggregate, which
752         already includes the values of the needed discriminants.
753
754 2010-10-11  Robert Dewar  <dewar@adacore.com>
755
756         * aspects.ads, aspects.adb: Changes to accomodate aspect delay
757         (Tree_Write): New procedure.
758         * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
759         nodes.
760         * atree.h: Flag3 is now Has_Aspects and applies to all nodes
761         * debug.adb: Add debug flag gnatd.A
762         * einfo.adb (Has_Delayed_Aspects): New flag
763         (Get_Rep_Item_For_Entity): New function
764         * einfo.ads (Has_Delayed_Aspects): New flag
765         (Get_Rep_Item_For_Entity): New function
766         * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
767         tree.
768         * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
769         sequence for Freeze_Entity.
770         * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
771         ptr. All calls are changed to this new interface.
772         (Freeze_And_Append): Same change
773         (Freeze_Entity): Evaluate deferred aspects
774         * sem_attr.adb: New calling sequence for Freeze_Entity
775         (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
776         when we are in spec expression preanalysis mode.
777         * sem_ch10.adb: New calling sequence for Freeze_Entity
778         * sem_ch11.adb: Simplify analysis of aspect specifications now that the
779         flag Has_Aspects applies to all nodes (no need to save aspects).
780         * sem_ch12.adb: Simplify analysis of aspect specifications now that the
781         flag Has_Aspects applies to all nodes (no need to save aspects).
782         * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
783         accomodate delaying aspect evaluation to the freeze point.
784         (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
785         accomodate delayed aspects.
786         (Rep_Item_Too_Late): Deal with delayed aspects case
787         * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
788         aspects.
789         * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
790         actual types are properly frozen (this is needed because of the new
791         check in Eval_Attribute that declines to evaluate attributes
792         for unfrozen types).
793         Simplify analysis of aspect specifications now that the flag
794         Has_Aspects applies to all nodes (no need to save aspects).
795         * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
796         aspects.
797         * sem_ch5.adb: Simplify analysis of aspect specifications now that the
798         flag Has_Aspects applies to all nodes (no need to save aspects).
799         New calling sequence for Freeze_Entity.
800         * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
801         specifications now that the flag Has_Aspects applies to all nodes
802         (no need to save aspects).
803         New calling sequence for Freeze_Entity
804         * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
805         Get_Rep_Item_For_Entity
806         (Get_Pragma_Arg): Moved to Sinfo
807         * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
808         (Is_Delayed_Aspect): New flag
809         (Next_Rep_Item): Document use for aspects
810         (Get_Pragma_Arg): Moved here from Sem_Prag
811         * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
812         is output and removes semicolon (simplifies interface).
813         (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
814         applies to any node.
815         * tree_gen.adb: Write contents of Aspect_Specifications hash table
816         * tree_in.adb: Read and initialize Aspect_Specifications hash table
817         * treepr.adb (Print_Node): Print Has_Aspects flag
818         (Print_Node): Print Aspect_Specifications in Has_Aspects set
819         * xtreeprs.adb: Remove obsolete references to Flag1,2,3
820
821 2010-10-11  Robert Dewar  <dewar@adacore.com>
822
823         * aspects.ads, aspects.adb: Major revision of this package for 2nd
824         stage of aspects implementation.
825         * gcc-interface/Make-lang.in: Add entry for aspects.o
826         * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
827         * par-ch13.adb (Aspect_Specifications_Present): New function
828         (P_Aspect_Specifications): New procedure
829         * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
830         (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
831         (P_Identifier_Declarations): Handle aspect specifications
832         (P_Component_Items): Handle aspect specifications
833         (P_Subtype_Declaration): Handle aspect specifications
834         * par-ch6.adb (P_Subprogram): Handle aspect specifications
835         * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
836         * par.adb (Aspect_Specifications_Present): New function
837         (P_Aspect_Specifications): New procedure
838         * sem.adb (Analyze_Full_Type_Declaration): New name for
839         Analyze_Type_Declaration.
840         (Analyze_Formal_Package_Declaration): New name (add _Declaration)
841         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
842         (Analyze_Protected_Type_Declaration): New name (add _Declaration)
843         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
844         (Analyze_Single_Task_Declaration): New name (add _Declaration)
845         (Analyze_Task_Type_Declaration): New name (add _Declaration)
846         * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
847         Analyze_Type_Declaration.
848         * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
849         specifications.
850         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
851         specifications.
852         (Analyze_Formal_Package_Declaration): New name (add _Declaration)
853         (Analyze_Formal_Package_Declaration): Handle aspect specifications
854         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
855         (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
856         (Analyze_Formal_Type_Declaration): Handle aspect specifications
857         (Analyze_Generic_Package_Declaration): Handle aspect specifications
858         (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
859         (Analyze_Package_Instantiation): Handle aspect specifications
860         (Analyze_Subprogram_Instantiation): Handle aspect specifications
861         * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
862         _Declaration).
863         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
864         * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
865         (Duplicate_Clause): New function, calls to this function are added to
866         processing for all aspects.
867         * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
868         * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
869         Analyze_Type_Declaration.
870         * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
871         Analyze_Type_Declaration.
872         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
873         specifications.
874         (Analyze_Subprogram_Declaration): Analyze aspect specifications
875         * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
876         specifications.
877         (Analyze_Private_Type_Declaration): Analyze aspect specifications
878         * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
879         specifications.
880         (Analyze_Protected_Type_Declaration): New name (add _Declaration)
881         (Analyze_Single_Protected_Declaration): Analyze aspect specifications
882         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
883         (Analyze_Single_Task_Declaration): Analyze aspect specifications
884         (Analyze_Single_Task_Declaration): New name (add _Declaration)
885         (Analyze_Task_Type_Declaration): Analyze aspect specifications
886         (Analyze_Task_Type_Declaration): New name (add _Declaration)
887         * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
888         _Declaration).
889         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
890         (Analyze_Single_Task_Declaration): New name (add _Declaration)
891         (Analyze_Task_Type_Declaration): New name (add _Declaration)
892         * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
893         have to generate unnecessary pragma argument associations (this matches
894         the doc).
895         Throughout do changes to accomodate aspect specifications, including
896         specializing messages, handling the case of not going through all
897         homonyms, and allowing for cancellation.
898         * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
899         (Aspect_Cancel): New flag
900         (From_Aspect_Specification): New flag
901         (First_Aspect): Removed flag
902         (Last_Aspect): Removed flag
903         * sprint.adb (Sprint_Aspect_Specifications): New procedure
904         (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
905
906 2010-10-11  Bob Duff  <duff@adacore.com>
907
908         * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
909         they match in Ada 95, 2005, and 2012 modes, in the case where the
910         language didn't change. Same thing for the run-time exception message.
911
912 2010-10-11  Javier Miranda  <miranda@adacore.com>
913
914         * debug.adb Document that switch -gnatd.p enables the CIL verifier.
915
916 2010-10-11  Robert Dewar  <dewar@adacore.com>
917
918         * s-htable.adb: Minor reformatting.
919
920 2010-10-11  Javier Miranda  <miranda@adacore.com>
921
922         * debug.adb: Update comment.
923
924 2010-10-11  Vincent Celier  <celier@adacore.com>
925
926         * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
927         unconditionally as for "gnat make" the projects are not processed in
928         the GNAT driver.
929
930 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
931
932         * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
933         suppress semantic analysis of the body when inlining, prior to
934         verifying that the body does not have a with_clause on a descendant
935         unit.
936         * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
937         with_clause on a descendant. 
938         (Scope_In_Main_Unit): Simplify.
939
940 2010-10-11  Robert Dewar  <dewar@adacore.com>
941
942         * exp_ch6.adb, freeze.adb: Minor reformatting.
943
944 2010-10-11  Vincent Celier  <celier@adacore.com>
945
946         * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
947         shared library projects to import projects that are not shared library
948         projects.
949
950 2010-10-11  Javier Miranda  <miranda@adacore.com>
951
952         * debug.adb: Document that switch -gnatd.o generates the CIL listing.
953
954 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
955
956         * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
957         Suppress/Unsuppress pragmas in codepeer mode on user code.
958
959 2010-10-11  Javier Miranda  <miranda@adacore.com>
960
961         * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
962         tag check in case of dispatching call through "=".
963
964 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
965
966         * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
967         type is legal in the profile of any basic declaration.
968         * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
969         incomplete type, including a limited view of a type, is legal in the
970         profile of any subprogram declaration.
971         If the type is tagged, its use is also legal in a body.
972         * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
973         item if misplaced.
974         (Install_Limited_Withed_Unit): Refine legality checks when both the
975         limited and the non-limited view of a package are visible in the
976         context of a unit.
977         If this is not an error case, the limited view is ignored.
978         freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
979         access to subprogram declarations
980
981 2010-10-11  Robert Dewar  <dewar@adacore.com>
982
983         * exp_ch6.adb: Code clean up.
984         * exp_util.adb: Minor reformatting.
985
986 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
987
988         * sem_ch3.adb, exp_ch6.adb
989         (Make_Build_In_Place_Call_In_Anonymous_Context,
990         Make_Build_In_Place_Call_In_Assignment,
991         Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
992         Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
993         restriction.
994         (Access_Definition): Add missing handling of No_Task_Hierarchy.
995
996 2010-10-11  Javier Miranda  <miranda@adacore.com>
997
998         * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
999         class-wide expressions.
1000
1001 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
1002
1003         * xr_tabls.adb, sem_res.adb: Minor reformatting
1004
1005 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
1006
1007         * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
1008         snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
1009         handling of Attribute_Ref. Add missing blanks in some error messages.
1010         (Attribute_Ref, Name_Ref): Declare.
1011         Document 'Ref attribute.
1012
1013 2010-10-11  Robert Dewar  <dewar@adacore.com>
1014
1015         * sem_attr.adb: Minor reformatting.
1016
1017 2010-10-11  Javier Miranda  <miranda@adacore.com>
1018
1019         * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1020         package System.Aux_Dec in VM platforms.
1021
1022 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
1023
1024         * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
1025         Suppress/Unsuppress pragmas in codepeer mode.
1026         (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
1027         in codepeer mode.
1028         * einfo.ads: Fix typo.
1029
1030 2010-10-11  Emmanuel Briot  <briot@adacore.com>
1031
1032         * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1033         * prj-nmsc.adb: Minor reformatting.
1034
1035 2010-10-11  Thomas Quinot  <quinot@adacore.com>
1036
1037         * sem_attr.adb (Type_Key): Code simplification.
1038
1039 2010-10-11  Tristan Gingold  <gingold@adacore.com>
1040
1041         * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1042         very large object on VMS.
1043
1044 2010-10-11  Javier Miranda  <miranda@adacore.com>
1045
1046         * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1047         availability of attribute Instance_Spec.
1048
1049 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
1050
1051         * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1052         checking syntax only or in ASIS mode.
1053
1054 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1055
1056         * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
1057         need a freeze node if some type in the profile has one.
1058         * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
1059         entity has a freeze node, defer elaboration.
1060
1061 2010-10-11  Emmanuel Briot  <briot@adacore.com>
1062
1063         * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1064         aggregated projects.
1065
1066 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1067
1068         * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1069         call.
1070         * sem_ch6.adb: Diagnose additional error condition.
1071
1072 2010-10-11  Bob Duff  <duff@adacore.com>
1073
1074         * par.adb (Par): Clarify wording of certain error messages.
1075
1076 2010-10-11  Gary Dismukes  <dismukes@adacore.com>
1077
1078         * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1079         about nondispatching subprograms to use In_Same_List (reducing use of
1080         Parent links).
1081
1082 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1083
1084         * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1085         reference in a static call.
1086
1087 2010-10-11  Steve Baird  <baird@adacore.com>
1088
1089         * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1090         attribute should always be transformed into a string literal in
1091         Analyze_Attribute.
1092         * par-ch4.adb: Type_Key attribute's type is String; update value of
1093         Is_Parameterless_Attribute constant to reflect this.
1094         * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
1095         rewrite it as a string literal (attribute value is always known
1096         statically).
1097         * snames.ads-tmpl: Add entries for Type_Key attribute.
1098
1099 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1100
1101         * lib-xref.adb (Output_References): Common handling for objects and
1102         formals of an anonymous access type.
1103
1104 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1105
1106         * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1107
1108 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1109
1110         * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1111
1112 2010-10-11  Gary Dismukes  <dismukes@adacore.com>
1113
1114         * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
1115         a warning about subprograms of a tagged type not being dispatching,
1116         limit this to cases where the tagged type and the subprogram are
1117         declared within the same declaration list.
1118
1119 2010-10-11  Jerome Lambourg  <lambourg@adacore.com>
1120
1121         * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1122
1123 2010-10-11  Bob Duff  <duff@adacore.com>
1124
1125         * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
1126         impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
1127         switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
1128         sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
1129         sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
1130         sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
1131         sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
1132         exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
1133         exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
1134         exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
1135         instead of Ada_05 (Ada_Version_Type).
1136
1137 2010-10-11  Bob Duff  <duff@adacore.com>
1138
1139         * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
1140         sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
1141         par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
1142         opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
1143         (Ada_Version_Type).
1144
1145 2010-10-11  Javier Miranda  <miranda@adacore.com>
1146
1147         * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
1148         dereference then do not exclude dereferences of access-to-constant
1149         types to handle them as constant view of variables (and hence remove
1150         side effects when required).
1151         * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
1152         are properly handled.
1153
1154 2010-10-11  Robert Dewar  <dewar@adacore.com>
1155
1156         * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1157
1158 2010-10-11  Javier Miranda  <miranda@adacore.com>
1159
1160         * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1161         to exp_ch6.
1162         (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1163         * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
1164         exp_ch6.
1165         (Expand_Simple_Function_Return): Move to exp_ch6.
1166         (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
1167         (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1168
1169 2010-10-11  Robert Dewar  <dewar@adacore.com>
1170
1171         * snames.ads-tmpl: Add names for aspects.
1172         * aspects.ads, aspects.adb: New.
1173         * gcc-interface/Make-lang.in: Update dependencies.
1174 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1175
1176         * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
1177         a task type, it must be replaced with a reference to Self.
1178
1179 2010-10-11  Vincent Celier  <celier@adacore.com>
1180
1181         * adaint.h: Add prototype for function __gnat_create_output_file_new.
1182
1183 2010-10-11  Javier Miranda  <miranda@adacore.com>
1184
1185         * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
1186         aggregate bounds.
1187
1188 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
1189
1190         * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
1191         for AI05-0033 in CodePeer mode.
1192
1193 2010-10-11  Robert Dewar  <dewar@adacore.com>
1194
1195         * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
1196         * csinfo.adb: Aspect_Specifications is a new special field
1197         * einfo.adb (Flag3): New unused flag
1198         * exp_util.adb (Insert_Actions): Add processing for
1199         N_Aspect_Specification.
1200         * sem.adb: Add entry for N_Aspect_Specification.
1201         * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
1202         (Has_Aspect_Specifications): New flag
1203         (Permits_Aspect_Specifications): New function
1204         (Aspect_Specifications): New function
1205         (Set_Aspect_Specifications): New procedure
1206         * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
1207         (Sprint_Node): Add dummy entry for N_Aspect_Specification
1208         * treepr.adb (Flag3): New flag to be listed
1209
1210 2010-10-11  Vincent Celier  <celier@adacore.com>
1211
1212         * adaint.c: Minor reformatting.
1213
1214 2010-10-11  Robert Dewar  <dewar@adacore.com>
1215
1216         * sem_ch6.adb, s-htable.ads: Minor reformatting.
1217
1218 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1219
1220         * sem_ch4.adb (Analyze_Selected_Component): If the selector is
1221         invisible in an instantiation, and both the formal and the actual are
1222         private extensions of the same type, look for the desired component in
1223         the proper view of the parent type.
1224
1225 2010-10-11  Vincent Celier  <celier@adacore.com>
1226
1227         * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
1228         AIX, Tru64, Darwin, IRIX and HP-UX.
1229
1230 2010-10-11  Robert Dewar  <dewar@adacore.com>
1231
1232         * a-textio.adb: Minor reformatting
1233
1234 2010-10-11  Robert Dewar  <dewar@adacore.com>
1235
1236         * a-suesen.ads, a-suenst.ads,
1237         a-suesen.adb, a-suenst.adb,
1238         a-suewse.adb, a-suewst.adb,
1239         a-suewse.ads, a-suewst.ads,
1240         a-suezse.ads, a-suezst.ads,
1241         a-suezse.adb, a-suezst.adb: New name for string encoding packages.
1242         * impunit.adb: New names for string encoding units
1243         * Makefile.rtl: New names for string encoding units
1244         * rtsfind.ads: Minor code reorganization.
1245
1246 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1247
1248         * exp_ch5.adb: Code clean up.
1249
1250 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1251
1252         * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
1253         returns when in a generic context.
1254         (Analyze_Function_Return): ditto.
1255
1256 2010-10-11  Robert Dewar  <dewar@adacore.com>
1257
1258         * s-multip.ads: Fix header.
1259         * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
1260
1261 2010-10-11  Vincent Celier  <celier@adacore.com>
1262
1263         * Makefile.rtl: Add s-multip.
1264         * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
1265         defaulting to 1 for other platforms.
1266         * adaint.h: New function __gnat_number_of_cpus.
1267         * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
1268         with a single component "s-multip".
1269         * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
1270         2012.
1271         * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
1272         * s-multip.ads, s-multip.adb: New Ada 2012 package.
1273         * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
1274
1275 2010-10-11  Javier Miranda  <miranda@adacore.com>
1276
1277         * a-textio.adb: Move new implementation of Get_Line to a subunit.
1278         * a-tigeli.adb: New subunit containing the implementation of Get_Line.
1279
1280 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
1281
1282         * sem_aux.adb: Code clean up.
1283
1284 2010-10-11  Robert Dewar  <dewar@adacore.com>
1285
1286         * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
1287
1288 2010-10-11  Robert Dewar  <dewar@adacore.com>
1289
1290         * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
1291         Flag248-Flag254.  Define new field Field29.
1292
1293 2010-10-10  Olivier Hainque  <hainque@adacore.com>
1294             Eric Botcazou  <ebotcazou@adacore.com>
1295
1296         * gcc-interface/lang.opt (gdwarf+): Remove.
1297         * gcc-interface/gigi.h (get_parallel_type): Likewise
1298         * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
1299         (gnat_handle_option): Remove OPT_gdwarfplus case.
1300         (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
1301         from gnat_dwarf_extensions.
1302         * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
1303         * gcc-interface/utils.c (get_parallel_type): Remove.
1304
1305 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1306
1307         * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
1308         invert_truthvalue_loc instead of invert_truthvalue.
1309         * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
1310         (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
1311
1312 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1313
1314         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
1315         assertion on the types of the parameters.  Use KIND local variable.
1316         <E_Incomplete_Type>: Likewise.
1317
1318 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1319
1320         * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
1321         * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
1322         * gcc-interface/decl.c (annotate_object): Likewise and handle it.
1323         (gnat_to_gnu_entity): Adjust calls to annotate_object.
1324         (gnat_to_gnu_param): If fat pointer types are passed by reference on
1325         the target, pass them by explicit reference.
1326         * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
1327         * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
1328         (Subprogram_Body_to_gnu): Adjust call to annotate_object.
1329         (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
1330         * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
1331         and handle it.
1332         (build_function_stub): Iterate on the parameters of the subprogram in
1333         lieu of on the argument types.  Adjust call to convert_vms_descriptor.
1334
1335 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1336
1337         * gcc-interface/misc.c: Delete prototypes.
1338         (gnat_init_options): Use local variable.
1339         (lang_hooks): Move to the end of the file.
1340
1341 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
1342
1343         * gcc-interface/misc.c (gnat_init_options_struct): New.  Split out
1344         from gnat_init_options.
1345         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1346
1347 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1348
1349         * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
1350
1351 2010-10-08  Robert Dewar  <dewar@adacore.com>
1352
1353         * exp_ch3.adb: Minor reformatting.
1354         * exp_ch5.adb: Add comment.
1355
1356 2010-10-08  Robert Dewar  <dewar@adacore.com>
1357
1358         * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
1359         * gcc-interface/Make-lang.in: Update dependencies.
1360         * einfo.ads: Minor reformatting.
1361
1362 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1363
1364         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
1365         sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1366         exp_ch3.adb: Change Is_Inherently_Limited_Type to
1367         Is_Immutably_Limited_Type to accord with new RM terminology.
1368         * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
1369         of a formal limited private type is not immutably limited in a generic
1370         body.
1371
1372 2010-10-08  Robert Dewar  <dewar@adacore.com>
1373
1374         * sem_prag.adb (Check_Duplicate_Pragma): New procedure
1375         Add calls to this new procedure where appropriate
1376
1377 2010-10-08  Vincent Celier  <celier@adacore.com>
1378
1379         * a-textio.adb (Get_Chunk): Code clean up.
1380
1381 2010-10-08  Robert Dewar  <dewar@adacore.com>
1382
1383         * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
1384         a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
1385         a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
1386         a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
1387         a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
1388         a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
1389         a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
1390         a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
1391         parameter.
1392
1393 2010-10-08  Robert Dewar  <dewar@adacore.com>
1394
1395         * sem_cat.adb (Check_Categorization_Dependencies): Remote types
1396         packages can depend on preleborated packages.
1397
1398 2010-10-08  Robert Dewar  <dewar@adacore.com>
1399
1400         * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
1401         Interrupt_Handler and Attach_Handler not allowed in generics.
1402
1403 2010-10-08  Robert Dewar  <dewar@adacore.com>
1404
1405         * ali.adb: Set Allocator_In_Body if AB parameter present on M line
1406         * ali.ads (Allocator_In_Body): New flag
1407         * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
1408         program violating No_Allocators_After_Elaboration restriction.
1409         * gnatbind.adb (No_Restriction_List): Add entries for
1410         No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
1411         * lib-load.adb: Initialize Has_Allocator flag
1412         * lib-writ.adb: Initialize Has_Allocator flag
1413         (M_Parameters): Set AB switch if Has_Allocator flag set
1414         * lib-writ.ads: Document AB flag on M line
1415         * lib.adb (Has_Allocator): New function
1416         (Set_Has_Allocator): New procedure
1417         * lib.ads (Has_Allocator): New function
1418         (Set_Has_Allocator): New procedure
1419         (Has_Allocator): New flag in Unit_Record
1420         * sem_ch4.adb (Analyze_Allocator): Add processing for
1421         No_Allocators_After_Elaboration.
1422
1423 2010-10-08  Geert Bosch  <bosch@adacore.com>
1424
1425         * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
1426
1427 2010-10-08  Javier Miranda  <miranda@adacore.com>
1428
1429         * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
1430         Java_Constructors because in the JRE library we generate occurrences
1431         in which the "this" parameter is not the first formal.
1432
1433 2010-10-08  Robert Dewar  <dewar@adacore.com>
1434
1435         * par-ch3.adb: Minor reformatting.
1436
1437 2010-10-08  Javier Miranda  <miranda@adacore.com>
1438
1439         * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
1440         types.
1441
1442 2010-10-08  Robert Dewar  <dewar@adacore.com>
1443
1444         * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
1445         mode.
1446         * sinfo.adb (Use_Type_Clause): Add All_Present flag.
1447         * sinfo.ads (Use_Type_Clause): Add All_Present flag.
1448         * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
1449         No_Anonymous_Allocators.
1450
1451 2010-10-08  Vincent Celier  <celier@adacore.com>
1452
1453         * bindgen.adb (Gen_Restrictions_Ada): No new line after last
1454         restriction, so that the last comma is always replaced with a left
1455         parenthesis.
1456
1457 2010-10-08  Javier Miranda  <miranda@adacore.com>
1458
1459         * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
1460         first formal of delegates.
1461
1462 2010-10-08  Robert Dewar  <dewar@adacore.com>
1463
1464         * sem_aggr.adb: Minor reformatting.
1465
1466 2010-10-08  Robert Dewar  <dewar@adacore.com>
1467
1468         * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
1469         sequence for soft hyphen for Character'Image case.
1470         * rtsfind.ads (Image_Character_05): New entry
1471         * s-imgcha.adb (Image_Character_05): New procedurew
1472         * s-imgcha.ads (Image_Character_05): New procedure
1473         * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
1474         case.
1475         * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
1476         * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
1477         properly.
1478
1479 2010-10-08  Robert Dewar  <dewar@adacore.com>
1480
1481         * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
1482         for case of Wide_[Wide_]Character.
1483
1484 2010-10-08  Robert Dewar  <dewar@adacore.com>
1485
1486         * exp_ch3.adb: Minor reformating
1487         Minor code reorganization.
1488
1489 2010-10-08  Javier Miranda  <miranda@adacore.com>
1490
1491         * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
1492         pragmas CIL_Constructor and Java_Constructor.
1493         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
1494         predefined primitives for CIL/Java tagged types.
1495
1496 2010-10-08  Robert Dewar  <dewar@adacore.com>
1497
1498         * sem_ch6.adb: Minor reformatting.
1499
1500 2010-10-08  Robert Dewar  <dewar@adacore.com>
1501
1502         * gnat1drv.adb: Add call to Validate_Independence.
1503         * par-prag.adb: Add dummy entries for Independent,
1504         Independent_Componentsa.
1505         * sem_ch13.adb (Validate_Independence): New procedure
1506         (Initialize): Initialize address clause and independence check tables
1507         * sem_ch13.ads (Independence_Checks): New table
1508         (Validate_Independence): New procedure
1509         * sem_prag.adb: Add processing for pragma Independent[_Components]
1510         * snames.ads-tmpl: Add entries for pragma Independent[_Components]
1511
1512 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1513
1514         * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
1515         component with box initialization, if the component is a variant record
1516         use the values of the discriminants to select the proper variant for
1517         further box initialization.
1518
1519 2010-10-08  Thomas Quinot  <quinot@adacore.com>
1520
1521         * xsnames.adb: Remove obsolete file.
1522         * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
1523
1524 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1525
1526         * exp_aggr.adb: Complete previous change.
1527
1528 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1529
1530         * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
1531         extended return must match statically the return subtype of the
1532         enclosing function if the type is an elementary type or if it is
1533         constrained.
1534
1535 2010-10-08  Vincent Celier  <celier@adacore.com>
1536
1537         * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
1538         names.  Do not report the same duplicate unit several times.
1539         * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
1540         defaulted to False, to avoid reporting the same unit as duplicate
1541         several times.
1542
1543 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1544
1545         * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
1546         others choice is a literal, analyze it to enable later optimizations.
1547         * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
1548         and components can be handled by the backend even if it is of a limited
1549         type.
1550
1551 2010-10-08  Arnaud Charlet  <charlet@adacore.com>
1552
1553         * a-rttiev.adb (task Timer): Since this package may be elaborated
1554         before System.Interrupt, we need to call Setup_Interrupt_Mask
1555         explicitly to ensure that this task has the proper signal mask.
1556
1557 2010-10-08  Robert Dewar  <dewar@adacore.com>
1558
1559         * freeze.adb (Freeze_Entity): For array case, move some processing for
1560         pragma Pack, Component_Size clause and atomic/volatile components here
1561         instead of trying to do the job in Sem_Ch13 and Freeze.
1562         * layout.adb: Use new Addressable function
1563         * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
1564         Component_Size): Move some handling to freeze point in
1565         Freeze.Freeze_Entity.
1566         * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
1567         freeze point in Freese.Freeze_Entity.
1568         * sem_util.ads, sem_util.adb (Addressable): New function.
1569
1570 2010-10-08  Robert Dewar  <dewar@adacore.com>
1571
1572         * sprint.adb: Minor reformatting.
1573
1574 2010-10-08  Javier Miranda  <miranda@adacore.com>
1575
1576         * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
1577
1578 2010-10-08  Robert Dewar  <dewar@adacore.com>
1579
1580         * sem_ch3.adb: Minor reformatting.
1581
1582 2010-10-08  Vincent Celier  <celier@adacore.com>
1583
1584         * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
1585         not a reserved word.
1586         * prj-proc.adb (Expression): Process string list external references.
1587         * prj-strt.adb (External_Reference): Parse external_as_list external
1588         references.
1589         * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
1590         (Set_Expression_Kind_Of): Ditto
1591         * prj.adb (Initialize): Set external_as_list as a reserved word
1592         * projects.texi: Document new string external reference
1593         external_as_list.
1594         * scans.ads (Token_Type): New token Tok_External_As_List
1595         * snames.ads-tmpl: New standard name Name_External_As_List
1596
1597 2010-10-08  Thomas Quinot  <quinot@adacore.com>
1598
1599         * sem_prag.adb: Minor reformatting.
1600
1601 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1602
1603         * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
1604         instance, it is legal to derive from a non-limited actual when the
1605         formal type is untagged limited.
1606         * sem_ch12.adb (Instantiate_Type): For a formal private type, use
1607         analyzed formal as Generic_Parent_Type, to simplify later checks.
1608
1609 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1610
1611         * sem_res.adb (Insert_Default): If default value is already a
1612         raise_constraint_error do not rewrite it as new raise node, to prevent
1613         infinite loops in the warning removal machinery.
1614
1615 2010-10-08  Robert Dewar  <dewar@adacore.com>
1616
1617         * sem_util.adb, sem_prag.adb: Minor reformatting
1618
1619 2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
1620
1621         * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
1622         Add section on pragma Implemented.
1623
1624 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
1625
1626         * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
1627         concrete parent with a concrete constructor, the inherited constructor
1628         is abstract even if the derived type is a null extension.
1629
1630 2010-10-08  Thomas Quinot  <quinot@adacore.com>
1631
1632         * sem_ch4.adb: Minor reformatting.
1633
1634 2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
1635
1636         * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
1637         (Implemented_By_Entry): Removed.
1638         (Set_Implemented_By_Entry): Removed.
1639         (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
1640         * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
1641         (Implemented_By_Entry): Removed along with its associated pragma.
1642         (Set_Implemented_By_Entry): Removed along with its associated pragma.
1643         * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
1644         (Build_Dispatching_Call_Equivalent): New routine.
1645         (Build_Dispatching_Requeue): New routine.
1646         (Build_Dispatching_Requeue_To_Any): New routine.
1647         (Build_Normal_Requeue): New routine.
1648         (Build_Skip_Statement): New routine.
1649         (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
1650         several subroutines.
1651         * par-prag.adb: Replace Pragma_Implemented_By_Entry by
1652         Pragma_Implemented.
1653         * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
1654         pragma Implemented.
1655         (Check_Pragma_Implemented): New routines.
1656         (Inherit_Pragma_Implemented): New routine.
1657         * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
1658         dispatching requeue.
1659         * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
1660         and adding Implemented.
1661         (Ada_2012_Pragma): New routine.
1662         (Analyze_Pragma, case Implemented): Perform all necessary checks
1663         concerning pragma Implemented and register the pragma as a
1664         representation item with the procedure_LOCAL_NAME.
1665         (Analyze_Pragma, case Implemented_By_Entry): Removed.
1666         * sem_util.adb (Implementation_Kind): New routine.
1667         * sem_util.ads (Implementation_Kind): New routine.
1668         * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
1669         Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
1670         add Pragma_Implemented. Add special names By_Any, By_Entry and
1671         By_Protected_Procedure.
1672
1673 2010-10-08  Javier Miranda  <miranda@adacore.com>
1674
1675         * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
1676         variable Has_Static_DT by invocation of function Building_Static_DT.
1677
1678 2010-10-08  Vincent Celier  <celier@adacore.com>
1679
1680         * g-dirope.adb (Remove_Dir): Do not change the current directory when
1681         doing a recursive remove of a subdirectory.
1682
1683 2010-10-08  Javier Miranda  <miranda@adacore.com>
1684
1685         * exp_ch6.ad (Freeze_Subprogram): Factorize code.
1686         * exp_disp.adb (Make_Secondary_DT): Factorize code.
1687         (Make_DT): Factorize code.
1688
1689 2010-10-08  Robert Dewar  <dewar@adacore.com>
1690
1691         * sem_ch4.adb: Minor reformatting.
1692
1693 2010-10-08  Robert Dewar  <dewar@adacore.com>
1694
1695         * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
1696         conformance.
1697
1698 2010-10-08  Thomas Quinot  <quinot@adacore.com>
1699
1700         * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
1701         consistency with Gen_T in Instantiate_Type.
1702         Introduce constant A_Gen_Obj to avoid repeated queries for
1703         Defining_Identifier (Analyzed_Formal).
1704
1705 2010-10-08  Vincent Celier  <celier@adacore.com>
1706
1707         * prj-nmsc.adb: Minor comment fix.
1708
1709 2010-10-07  Robert Dewar  <dewar@adacore.com>
1710
1711         * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
1712         * gcc-interface/Make-lang.in: Update dependencies.
1713
1714 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1715
1716         * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
1717         unit, if the type of the formal is declared in a parent unit and is not
1718         a formal itself, the actual must be located from an enclosing parent
1719         instance by normal visibility.
1720
1721 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1722
1723         * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
1724         indicator is illegal for an uninitialized allocator.
1725
1726 2010-10-07  Robert Dewar  <dewar@adacore.com>
1727
1728         * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
1729         Component_Size): Complete previous change.
1730
1731 2010-10-07  Vincent Celier  <celier@adacore.com>
1732
1733         * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
1734         even for keywords, to avoid having the checksum to depend on the Ada
1735         version.
1736
1737 2010-10-07  Gary Dismukes  <dismukes@adacore.com>
1738
1739         * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
1740         exp_ch3.adb: Minor reformatting.
1741
1742 2010-10-07  Robert Dewar  <dewar@adacore.com>
1743
1744         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1745         Component_Size): It is now illegal to give an incorrect component size
1746         clause in the case of aliased or atomic components.
1747         * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
1748         an effective pragma Pack in the case of aliased or atomic components.
1749
1750 2010-10-07  Steve Baird  <baird@adacore.com>
1751
1752         * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
1753         in the case of a violation of an active No_Task_Hierarchy restriction.
1754
1755 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1756
1757         * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
1758         type is non-limited, an actual for it cannot be limited.
1759
1760 2010-10-07  Robert Dewar  <dewar@adacore.com>
1761
1762         * einfo.ads (No_Pool_Assigned): Update documentation.
1763         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1764         Storage_Size): We only set No_Pool_Assigned if the expression is a
1765         static constant and zero.
1766         * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
1767         should be an error not a warning.
1768
1769 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1770
1771         * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
1772         where an aggregate in an assignment can be built directly into the
1773         target, and does not require the creation of a temporary that may
1774         overflow the stack.
1775
1776 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1777
1778         * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
1779         in a record aggregate can correspond to several components of
1780         anonymous access types, as long as the designated subtypes match.
1781
1782 2010-10-07  Robert Dewar  <dewar@adacore.com>
1783
1784         * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
1785         sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
1786         restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
1787         spelling parametrize(d) => parameterize(d).
1788
1789 2010-10-07  Robert Dewar  <dewar@adacore.com>
1790
1791         * sem_ch12.adb: Add comment.
1792         * sem_ch6.adb: Minor reformatting.
1793
1794 2010-10-07  Robert Dewar  <dewar@adacore.com>
1795
1796         * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
1797         Pexp to Pf_Rec constants
1798         (P_Subprogram): Expression is always enclosed in parentheses
1799         * par.adb (Pf_Rec): add Pexp flag for parametrized expression
1800         * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
1801
1802 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1803
1804         * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
1805         checks on functions that return an abstract type or have a controlling
1806         result whose designated type is an abstract type.
1807         (Check_Private_Overriding): Implement Ada2012 checks on functions
1808         declared in the private part, if an abstract type is involved.
1809         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
1810         reject a generic function that returns an abstract type.
1811         * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
1812         function has a controlling access result, check that the tag of the
1813         return value matches the designated type of the return expression.
1814
1815 2010-10-07  Robert Dewar  <dewar@adacore.com>
1816
1817         * par-ch6.adb: Fix error in handling of parametrized expressions.
1818         * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
1819         mode.
1820         (P_Simple_Expression): Better message for qualified expression prefix
1821         * s-crc32.adb: Minor reformatting.
1822         * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
1823         storage pool (this test is moved to Sem_Intr).
1824         * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
1825         empty storage pool, moved here from Exp_Intr and made into error.
1826         (Check_Intrinsic_Call): Remove assumption in generating not-null free
1827         warning that the name of the instantiation is Free.
1828         * sinput.adb (Tree_Read): Document use of illegal free call allowed in
1829         GNAT mode.
1830         * types.ads: Remove storage size clauses from big types (since we may
1831         need to do deallocations, which are now illegal for empty pools).
1832
1833 2010-10-07  Sergey Rybin  <rybin@adacore.com>
1834
1835         * gnat_ugn.texi: Add missing word.
1836
1837 2010-10-07  Robert Dewar  <dewar@adacore.com>
1838
1839         * exp_util.adb (Insert_Actions): Add handling of
1840         N_Parametrized_Expression.
1841         * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
1842         * sem.adb: Add entry for N_Parametrized_Expression
1843         * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
1844         * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
1845         * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
1846         * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
1847         * par-ch4.adb: Minor reformatting.
1848
1849 2010-10-07  Robert Dewar  <dewar@adacore.com>
1850
1851         * scng.adb (Skip_Other_Format_Characters): New procedure
1852         (Start_Of_Wide_Character): New procedure
1853         (Scan): Use Start_Of_Wide_Character where appropriate
1854         (Scan): Improve error message for other_format chars in identifier
1855         (Scan): Allow other_format chars between tokens
1856
1857 2010-10-07  Javier Miranda  <miranda@adacore.com>
1858
1859         * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
1860         Add missing support for explicit dereferences.
1861
1862 2010-10-07  Robert Dewar  <dewar@adacore.com>
1863
1864         * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
1865
1866 2010-10-07  Robert Dewar  <dewar@adacore.com>
1867
1868         * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
1869         exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
1870         * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
1871         Exp_Util.Fully_Qualified_Name_String.
1872
1873 2010-10-07  Robert Dewar  <dewar@adacore.com>
1874
1875         * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
1876         * sem_res.adb (Resolve_Call): A call to
1877         Ada.Real_Time.Timing_Events.Set_Handler violates restriction
1878         No_Relative_Delay (AI-0211).
1879
1880 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1881
1882         * sem_ch10.adb: Small change in error message.
1883
1884 2010-10-07  Robert Dewar  <dewar@adacore.com>
1885
1886         * tbuild.ads: Minor reformatting.
1887
1888 2010-10-07  Robert Dewar  <dewar@adacore.com>
1889
1890         * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
1891
1892 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
1893
1894         * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
1895
1896 2010-10-07  Robert Dewar  <dewar@adacore.com>
1897
1898         * sem_res.adb: Minor reformatting
1899
1900 2010-10-07  Olivier Ramonat  <ramonat@adacore.com>
1901
1902         * gnat_ugn.texi: Minor editing.
1903         * opt.ads: Document that scripts rely on specific formats in opt.ads
1904
1905 2010-10-07  Robert Dewar  <dewar@adacore.com>
1906
1907         * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
1908         (To_Upper_Case): Fix to be inverse of To_Lower_Case
1909         * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
1910         (To_Upper_Case): Fix to be inverse of To_Lower_Case
1911
1912 2010-10-07  Robert Dewar  <dewar@adacore.com>
1913
1914         * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
1915         * impunit.adb: Add entries for a-wichha/a-zchhan
1916         * Makefile.rtl: Add entries for a-wichha/a-zchhan
1917
1918 2010-10-07  Vincent Celier  <celier@adacore.com>
1919
1920         * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
1921         * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
1922         replaced source, check that none of the replaced sources are in the
1923         dependencies.
1924         * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
1925         * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
1926         replaced with a source with a different file name, put it in the hash
1927         table Replaced_Sources.
1928         (Add_Source): Call Remove_Source with Data.Tree. If there is at least
1929         one replaced source, check if it has the same file name as the current
1930         source; if it has, remove it from the hash table Replaced_Sources.
1931         * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
1932         * prj.ads (Replaced_Source_HTable): New hash table
1933         (Project_Tree_Data): New components Replaced_Sources and
1934         Replaced_Source_Number.
1935
1936 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1937
1938         * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
1939         proper flag to prevent a double elaboration check on the same call.
1940         * exp_util.adb (Insert_Actions): If the enclosing node is an
1941         Expression_With_Actions and it has been analyzed already, find
1942         insertion point further up in the tree.
1943
1944 2010-10-07  Hristian Kirtchev  <kirtchev@adacore.com>
1945
1946         * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
1947         local variables. Remove the general restriction which prohibits the
1948         application of record rep clauses to Unchecked_Union types. Add Ada
1949         2012 check to detect improper naming of an Unchecked_Union
1950         discriminant in record rep clause.
1951         * sem_prag.adb: Add with and use clause for Exp_Ch7.
1952         (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
1953         type to all invocations of Check_Component and Check_Variant.
1954         (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
1955         Rewritten.  Add Ada 2012 check to detect improper use of formal
1956         private types and private extensions as component types of an
1957         Unchecked_Union declared inside a generic body.
1958         (Check_Variant): Add formal parameter UU_Typ. Propagate the
1959         Unchecked_Union type to all calls of Check_Component. Signal that the
1960         current component comes from the variant part of an Unchecked_Union
1961         type.
1962         (Inside_Generic_Body): New routine.
1963
1964 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
1965
1966         * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
1967         equality operation for a record component, verify that both formals
1968         have the same type, and the result type is boolean.
1969
1970 2010-10-07  Vincent Celier  <celier@adacore.com>
1971
1972         * gnatcmd.adb (Check_Files): When looking for the .ci file for a
1973         binder generated file, look for both b~xxx and b__xxx as gprbuild
1974         always uses b__ as the prefix of such files.
1975
1976 2010-10-07  Thomas Quinot  <quinot@adacore.com>
1977
1978         * sem_res.adb: Minor reformatting.
1979
1980 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
1981
1982         * debug.adb: Update -gnatd.J documentation.
1983
1984 2010-10-07  Robert Dewar  <dewar@adacore.com>
1985
1986         * gnat_rm.texi: Document handling of invalid values
1987         * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
1988         to match new spec.
1989         (UTF_To_Upper_Case): New function.
1990
1991 2010-10-07  Robert Dewar  <dewar@adacore.com>
1992
1993         * sem_attr.adb: Minor reformatting.
1994         * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
1995         * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
1996         properly.
1997         * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
1998         non-Ada 2012 mode.
1999         * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2000         * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2001         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2002         flag.
2003         * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2004         argument.
2005         * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2006         * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2007         same as 2005 flag.
2008
2009 2010-10-07  Javier Miranda  <miranda@adacore.com>
2010
2011         * a-tags.ads: Use new support for pragma Ada_2012 with function
2012         Type_Is_Abstract.
2013
2014 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
2015
2016         * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2017         sequence of statements.
2018
2019 2010-10-07  Vincent Celier  <celier@adacore.com>
2020
2021         * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2022
2023 2010-10-07  Javier Miranda  <miranda@adacore.com>
2024
2025         * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
2026         * rtsfind.ads (RE_Type_Is_Abstract): New entity.
2027         * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
2028
2029 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
2030
2031         * sem_ch12.adb (Mark_Context): Removed, no longer needed.
2032         (Analyze_Package_Instantiation): No longer analyze systematically a
2033         generic body in CodePeer mode.
2034         * freeze.adb, sem_attr.adb: Update comments.
2035
2036 2010-10-05  Robert Dewar  <dewar@adacore.com>
2037
2038         * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2039         mode.
2040
2041 2010-10-05  Pascal Obry  <obry@adacore.com>
2042
2043         * gnat_rm.texi: Fix typo.
2044
2045 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
2046
2047         * gnat_ugn.texi: Add note about identifiers with same name and
2048         -fdump-ada-spec.
2049
2050 2010-10-05  Robert Dewar  <dewar@adacore.com>
2051
2052         * sem_ch4.adb: Minor reformatting.
2053         * a-direct.ads: Minor comment update.
2054
2055 2010-10-05  Javier Miranda  <miranda@adacore.com>
2056
2057         * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
2058         no longer required after change in New_Overloaded_Entity.
2059         * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
2060         the fragment of code that handles derivations of interface primitives.
2061         Add missing dependence on global variable Inside_Freezing_Actions to
2062         ensure the correct management of internal interface entities.
2063         * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
2064         of the global variable Inside_Freezing_Actions to ensure that internal
2065         interface entities are well handled by New_Overloaded_Entity.
2066         * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
2067         and complete the algorithm to catch hidden primitives derived of
2068         private type that covers the interface.
2069         * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
2070         documentation.
2071
2072 2010-10-05  Robert Dewar  <dewar@adacore.com>
2073
2074         * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
2075         sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
2076         Minor code reorganization (use Nkind_In).
2077
2078 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2079
2080         * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2081         task.
2082
2083 2010-10-05  Vincent Celier  <celier@adacore.com>
2084
2085         * gnatbind.adb: If the main library file is not for a suitable main
2086         program, change the error message.
2087
2088 2010-10-05  Vincent Celier  <celier@adacore.com>
2089
2090         * a-direct.ads: Minor spelling error fixes in comments.
2091         * gnat_rm.texi: Add three entries in "Implementation Defined
2092         Characteristics" for the interpretations of the Form parameters in
2093         Ada.Directories.
2094
2095 2010-10-05  Robert Dewar  <dewar@adacore.com>
2096
2097         * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
2098         makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
2099         prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
2100         reorganization.
2101         Minor reformatting.
2102
2103 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2104
2105         * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
2106         an explicit dereference of an access to function, the prefix is not
2107         interpreted as a parameterless call.
2108
2109 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2110
2111         * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2112         private.
2113
2114 2010-10-05  Vincent Celier  <celier@adacore.com>
2115
2116         * make.adb (Switches_Of): Allow wild cards in index of attributes
2117         Switches.
2118         * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
2119         of the associative array as a glob regular expression.
2120         * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
2121         Allow_Wildcards, defaulted to False.
2122         (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
2123         * projects.texi: Document that attribute Switches (<file name>) may
2124         use wild cards in the index.
2125
2126 2010-10-05  Robert Dewar  <dewar@adacore.com>
2127
2128         * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
2129         einfo.adb: Minor reformatting.
2130         * debug.adb: Remove obsolete documentation for d.Z flag.
2131
2132 2010-10-05  Vincent Celier  <celier@adacore.com>
2133
2134         * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
2135         switch --create-info-file=.
2136         * gnat_ugn.texi: Add documentation for new gnatmake switch
2137         --source-info=
2138
2139 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2140
2141         * sem_ch3.adb: Do not elaborate type definition if syntax error.
2142
2143 2010-10-05  Javier Miranda  <miranda@adacore.com>
2144
2145         * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
2146         to generate the full-qualified names of its corresponding spec.
2147         This facilitates locating the corresponing body when reading
2148         the DG output.
2149
2150 2010-10-05  Thomas Quinot  <quinot@adacore.com>
2151
2152         * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
2153         canonical name without serial number only if the helper is becoming a
2154         primitive of the type.
2155
2156 2010-10-05  Javier Miranda  <miranda@adacore.com>
2157
2158         * exp_disp.adb (Make_DT): Minor code reorganization.
2159
2160 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2161
2162         * par-ch6.adb: improve recovery with extra paren in function spec.
2163
2164 2010-10-05  Quentin Ochem  <ochem@adacore.com>
2165
2166         * prj-tree.ads: Project_Path is now aliased.
2167
2168 2010-10-05  Thomas Quinot  <quinot@adacore.com>
2169
2170         * checks.adb: Minor reformatting.
2171
2172 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2173
2174         * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
2175         (Shared_Libgcc): New aliased variable.
2176         (Shared_Libgcc_Switch): New constant.
2177         (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
2178         * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
2179         to the compiler.
2180         * gcc-interface/Make-lang.in: Update dependencies.
2181         
2182 2010-10-05  Vincent Celier  <celier@adacore.com>
2183
2184         * prj-part.adb (Parse_Simple_Project): When checking if a child project
2185         imports its parent project, also look in projects being extended by
2186         imported projects.
2187
2188 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2189
2190         * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
2191
2192 2010-10-05  Javier Miranda  <miranda@adacore.com>
2193
2194         * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
2195         (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
2196         activate this output.
2197
2198 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
2199
2200         * back_end.adb (Call_Back_End): Generate an error message when scil
2201         generation is enabled, and no scil back-end (by default) is available.
2202
2203 2010-10-05  Javier Miranda  <miranda@adacore.com>
2204
2205         * debug.adb: Update documentation since -gnatd.Z is no longer required
2206         to generate the call-graph information.
2207
2208 2010-10-05  Javier Miranda  <miranda@adacore.com>
2209
2210         * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
2211         runtime access check by an equivalent expansion that causes
2212         no problems in the VM backend. The original expansion was
2213         not good for the VM backends because when Tagged_Type_Expansion
2214         is disabled the attribute Access_Disp_Table is not available.
2215
2216 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2217
2218         * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
2219         is class-wide and T1 is its specific type.
2220
2221 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2222
2223         * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
2224
2225 2010-10-05  Vincent Celier  <celier@adacore.com>
2226
2227         * back_end.ads: Minor spelling error correction.
2228
2229 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
2230
2231         * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
2232         warnings when -gnatC is specified here so that warnings can be
2233         re-enabled  explicitly.
2234         (Adjust_Global_Switches): No longer suppress warnings.
2235
2236 2010-10-05  Vincent Celier  <celier@adacore.com>
2237
2238         * makeutl.adb: Minor reformatting.
2239
2240 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2241
2242         * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
2243         non-discrete type appears as an actual in a call.
2244
2245 2010-10-05  Vincent Celier  <celier@adacore.com>
2246
2247         * make.adb (Scan_Make_Arg): Take into account new switch
2248         --source-info=file.
2249         * makeusg.adb: Add line for new switch --source-info=file.
2250         * makeutl.ads (Source_Info_Option): New constant String for new builder
2251         switch.
2252         * prj-conf.adb: Put subprograms in alphabetical order
2253         (Process_Project_And_Apply_Config): Read/write an eventual source info
2254         file, if necessary.
2255         * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
2256         procedure.
2257         (Look_For_Sources): If a source info file was successfully read, get
2258         the source data from the data read from the source info file.
2259         * prj-util.adb (Source_Info_Table): New table
2260         (Source_Info_Project_HTable): New hash table
2261         (Create): New procedure
2262         (Put (File), Put_Line): New procedures
2263         (Write_Source_Info_File): New procedure
2264         (Read_Source_Info_File): New procedure
2265         (Initialize): New procedure
2266         (Source_Info_Of): New procedure
2267         (Next): New procedure
2268         (Close): When file is an out file, fail if the buffer cannot be written
2269         or if the file cannot be close successfully.
2270         (Get_Line): Fail if file is an out file
2271         * prj-util.ads (Create): New procedure
2272         (Put (File), Put_Line): New procedures
2273         (Write_Source_Info_File): New procedure
2274         (Read_Source_Info_File): New procedure
2275         (Source_Info_Data): New record type
2276         (Source_Info_Iterator): New private type
2277         (Initialize): New procedure
2278         (Source_Info_Of): New procedure
2279         (Next): New procedure
2280         * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
2281         Source_Info_File_Exists.
2282
2283 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
2284
2285         * exp_ch4.adb: Fix typo.
2286
2287 2010-10-05  Thomas Quinot  <quinot@adacore.com>
2288
2289         * lib-writ.adb: Minor reformatting.
2290
2291 2010-10-05  Javier Miranda  <miranda@adacore.com>
2292
2293         * sem_ch3.adb (Access_Definition): Remove useless code.
2294
2295 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2296
2297         * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
2298         (Deep_Copy): Removed, not used.
2299
2300 2010-10-05  Javier Miranda  <miranda@adacore.com>
2301
2302         * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
2303         move code that searches in the list of primitives of a tagged type for
2304         the entity that will be overridden by user-defined routines.
2305         * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
2306         previously located in routine Add_Internal_Interface_Entities.
2307         * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
2308         * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
2309         availability of attribute Alias.
2310
2311 2010-10-05  Ed Falis  <falis@adacore.com>
2312
2313         * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
2314         s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
2315         Move definition of intContext to System.OS_Interface.
2316         Add necessary variants in System.VxWorks.Extensions.
2317
2318 2010-10-05  Doug Rupp  <rupp@adacore.com>
2319
2320         * s-asthan-vms-alpha.adb: On VMS, a task using
2321         pragma AST_Entry exhibits a memory leak when the task terminates
2322         because the vector allocated for the AST interface is not freed. Fixed
2323         by making the vector a controlled type.
2324
2325 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2326
2327         * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
2328         a "**" pattern properly exists, and report an error otherwise.
2329
2330 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2331
2332         * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
2333
2334 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2335
2336         * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
2337         subprogram.
2338         Extract some code from Get_Directories, to share with the handling
2339         of aggregate projects (for the Project_Files attributes)
2340
2341 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2342
2343         * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
2344         switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
2345         prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
2346         type.
2347
2348 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2349
2350         * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
2351
2352 2010-10-05  Emmanuel Briot  <briot@adacore.com>
2353
2354         * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
2355         (Aggregate projects): added support for parsing aggregate projects.
2356         In particular, check the presence and value of the new attributes
2357         related to aggregate projects, ie Project_Files, Project_Path
2358         and External.
2359         (Check_Attribute_Allowed, Check_Package_Allowed,
2360         Rename_Obsolescent_Attributes): new subprogram, extracting code
2361         from existing subprogram to keep their sizes smaller.
2362         (Check_Aggregate_Project, Check_Abstract_Project,
2363         Check_Missing_Sources): new subprograms
2364         (Check): remove comments that duplicated either the name of the
2365         following subprogram call, or the comment on that subprogram.
2366         * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
2367         from Parse_Single_Project.
2368         (Check_Aggregate_Imports): new subprogram.
2369
2370 2010-10-05  Vincent Celier  <celier@adacore.com>
2371
2372         * make.adb (Check): When compiling with -gnatc, recompile if the ALI
2373         file has not been generated for the current source, for example if it
2374         has been generated for the spec, but we are compiling the body.
2375
2376 2010-10-05  Bob Duff  <duff@adacore.com>
2377
2378         * xgnatugn.adb: Remove unused procedure.
2379
2380 2010-10-04  Vincent Celier  <celier@adacore.com>
2381
2382         * a-direct.adb (Copy_File): Interpret the Form parameter and call
2383         System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
2384         the Form parameter contains an incorrect value for field preserve= or
2385         mode=.
2386         * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
2387         parameter is ignored.
2388         (Copy_File): Indicate the interpretation of the Form parameter.
2389
2390 2010-10-04  Vincent Celier  <celier@adacore.com>
2391
2392         * make.adb (Gnatmake): When there are no foreign languages declared and
2393         a main in attribute Main of the main project does not exist or is a
2394         source of another project, fail immediately before attempting
2395         compilation.
2396
2397 2010-10-04  Javier Miranda  <miranda@adacore.com>
2398
2399         * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
2400         used to convert a node referencing a tag to a class-wide interface
2401         type.
2402         * exp_disp.adb (Convert_Tag_To_Interface): New function.
2403         (Expand_Interface_Conversion): Replace invocation of
2404         Unchecked_Conversion by new function Convert_Tag_To_Interface.
2405         (Write_DT): Add support for null primitives.
2406         * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
2407         cleanup code that handles interface conversions and avoid unchecked
2408         conversion of referenced tag components.
2409         * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
2410         unrequired conversions when generating a dispatching call to _assign.
2411         * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
2412
2413 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
2414
2415         * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
2416         parent is a binary boolean operation and the operand is an unpacked
2417         array.
2418         (Build_Boolean_Array_Proc_Call): If the operands are both negations,
2419         the operands of the rewritten node are the operands of the negations,
2420         not the negations themselves.
2421
2422 2010-10-04  Robert Dewar  <dewar@adacore.com>
2423
2424         * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
2425         name of entity to biased warning msg.
2426         (Analyze_Enumeration_Representation_Clause): Remove attempt to use
2427         biased rep (wrong and never worked anyway).
2428
2429 2010-10-04  Arnaud Charlet  <charlet@adacore.com>
2430
2431         * sem_elab.adb: Minor reformatting.
2432
2433 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
2434
2435         * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
2436         an access_to_protected subprogram type, and convert null value into
2437         corresponding aggregate.
2438
2439 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2440
2441         * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
2442
2443 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2444
2445         * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
2446         * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
2447         AAMP.
2448
2449 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2450
2451         * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
2452         for N_Operator_Symbol.
2453         (Indicate_Name_And_Type): Likewise.
2454         * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
2455         * sem_res.adb (Resolve): Likewise.
2456         * sem_type.adb (Add_One_Interp): Likewise.
2457         (Disambiguate): Likewise.
2458         
2459 2010-10-04  Vincent Celier  <celier@adacore.com>
2460
2461         * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
2462         than ALI file timestamp, return null.
2463
2464 2010-10-04  Vincent Celier  <celier@adacore.com>
2465
2466         * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
2467         * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
2468         replaces global constant with the same name. When a line is too long,
2469         indent properly the next continuation line.
2470         * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
2471         from 50 to 255, defaulted to 255, to indicate the maximum length of
2472         lines in the project file.
2473
2474 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2475
2476         * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
2477         Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
2478         of Traverse_Func on it to look for subprogram references in a body.
2479         Call Check_Subprogram_Refs on the body of inlined subprograms at the
2480         outer level and keep clearing the Is_Public flag of subprograms as long
2481         as it returns OK.  Do not look at anything else than subprograms once
2482         an inlined subprogram has been seen.
2483
2484 2010-10-04  Javier Miranda  <miranda@adacore.com>
2485
2486         * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
2487         the target object is an interface.
2488         * sem_disp.adb (Propagate_Tag): If the controlling argument is an
2489         interface type then we generate an implicit conversion to force
2490         displacement of the pointer to the object to reference the secondary
2491         dispatch table associated with the interface.
2492
2493 2010-10-04  Robert Dewar  <dewar@adacore.com>
2494
2495         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
2496         Enumeration_Rep_Expr to point to the literal, not the identifier.
2497         (Analyze_Enumeration_Representation_Clause): Improve error message for
2498         size too small for enum rep value
2499         (Analyze_Enumeration_Representation_Clause): Fix size test to use
2500         proper size (RM_Size, not Esize).
2501
2502 2010-10-04  Robert Dewar  <dewar@adacore.com>
2503
2504         * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
2505
2506 2010-10-04  Javier Miranda  <miranda@adacore.com>
2507
2508         * exp_cg.adb (Write_Call_Info): Code clean up.
2509
2510 2010-10-04  Arnaud Charlet  <charlet@adacore.com>
2511
2512         * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
2513
2514 2010-10-04  Robert Dewar  <dewar@adacore.com>
2515
2516         * exp_cg.adb: Minor code reorganization
2517         Minor reformatting.
2518         * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
2519
2520 2010-10-04  Bob Duff  <duff@adacore.com>
2521
2522         * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
2523         to make a qualified expression into a name (syntax-wise), then do not
2524         consider it redundant.
2525
2526 2010-10-04  Thomas Quinot  <quinot@adacore.com>
2527
2528         * sem_warn.ads: Fix typo.
2529
2530 2010-10-04  Javier Miranda  <miranda@adacore.com>
2531
2532         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
2533         TSS names.
2534         (Write_Call_Info): Add missing support for renamed primitives.
2535
2536 2010-10-04  Thomas Quinot  <quinot@adacore.com>
2537
2538         * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
2539         code between Make_Component_List_Assign and Make_Field_Assign.
2540
2541 2010-10-04  Vincent Celier  <celier@adacore.com>
2542
2543         * prj-nmsc.adb (Get_Directories): For non extending projects that
2544         declare that they have no sources, do not create a non existing object
2545         or exec directory if builder switch -p is used.
2546
2547 2010-10-04  Sergey Rybin  <rybin@adacore.com>
2548
2549         * gnat_ugn.texi (gnatcheck): Change the description of the report file
2550         format.
2551
2552 2010-10-04  Ed Falis  <falis@adacore.com>
2553
2554         * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
2555         determine whether Set_True is called from a task or an ISR.
2556         (Set_True): test for being in a task context before trying to
2557         dereference Defer_Abort or Undefer_Abort.
2558
2559 2010-10-04  Robert Dewar  <dewar@adacore.com>
2560
2561         * sem_res.adb, sinput-l.adb: Minor reformatting.
2562
2563 2010-10-04  Hristian Kirtchev  <kirtchev@adacore.com>
2564
2565         * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
2566         check when the target object is an interface since the expression of
2567         the right hand side must only cover the interface.
2568
2569 2010-10-04  Vincent Celier  <celier@adacore.com>
2570
2571         * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
2572         loading the main source, so that if it is preprocessed and -gnateG is
2573         used, the preprocessed file is written.
2574         * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
2575         if a subunit is from the main unit when it is loaded.
2576         * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
2577         to True before loading a subunit.
2578         * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
2579         to True when the main is a generic unit before loading one of its
2580         subunits.
2581         * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
2582         file only for the main unit (spec, body and subunits).
2583
2584 2010-10-04  Vincent Celier  <celier@adacore.com>
2585
2586         * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
2587         specified and the processed file cannot be written. Just issue a
2588         warning and continue.
2589
2590 2010-10-04  Thomas Quinot  <quinot@adacore.com>
2591
2592         * sem_res.adb: Minor reformatting.
2593
2594 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
2595
2596         * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
2597         is an overridden inherited operation, the desired operation is the
2598         overriding one, which is the alias of the visible one.
2599
2600 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
2601
2602         * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
2603         present before deleting from the tree, when an inherited function with
2604         a controlling result that returns a null extension is overridden by a
2605         later declaration or body.
2606
2607 2010-10-04  Gary Dismukes  <dismukes@adacore.com>
2608
2609         * checks.adb: Update comment.
2610
2611 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
2614         and define as variables.
2615         (gnat_post_options): Set optimize and optimize_size variables.
2616
2617 2010-09-29  Joel Sherrill  <joel.sherrill@oarcorp.com>
2618
2619         * g-socket.adb: Move pragma to disable warnings in case multiple errnos
2620         are not defined by target.
2621
2622 2010-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2623
2624         * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
2625
2626 2010-09-28  Richard Henderson  <rth@redhat.com>
2627
2628         * gcc-interface/misc.c (gnat_eh_personality): Use
2629         targetm.except_unwind_info.
2630
2631 2010-09-28  Jan Hubicka  <jh@suse.cz>
2632
2633         * gcc-interface/utils.c (handle_leaf_attribute): New function.
2634         (gnat_internal_attribute_tables): Add leaf.
2635
2636 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2637
2638         * gcc-interface/lang.opt (-all-warnings, -include-barrier,
2639         -include-directory, -include-directory=, -no-standard-includes,
2640         -no-standard-libraries): New.
2641
2642 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2643
2644         * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
2645         build_array_type with calls to build_nonshared_array_type.
2646         (substitute_in_type): Likewise.
2647         * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
2648         (LANG_HOOKS_TYPE_HASH_EQ): Define.
2649         (gnat_post_options): Add 'static' keyword.
2650         (gnat_type_hash_eq): New static function.
2651         * gcc-interface/utils.c (fntype_same_flags_p): New function.
2652         (create_subprog_type): Call it.
2653         (create_index_type): Call build_nonshared_range_type and tidy up.
2654         (create_range_type): Likewise.
2655         * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
2656
2657 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2658
2659         * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
2660         for PARM_DECLs.
2661         (end_subprog_body): If the body is a BIND_EXPR, make its associated
2662         block the top-level one.
2663         (build_function_stub): Build a statement group for the whole function.
2664         * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
2665         is used, create the enclosing block early and process first the OUT
2666         parameters.
2667
2668 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2669
2670         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
2671         not generate debug info for individual enumerators.
2672
2673 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2674
2675         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
2676         type instead of enumeral type as the dummy type built for the template
2677         type of fat pointers.
2678
2679 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2680
2681         * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
2682         (gnat_zaplevel): Likewise.
2683         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
2684         binding level for an external constant.
2685         <E_Constant>: Force the local context and create a fake scope before
2686         translating the defining expression of an external constant.
2687         <object>: Treat external constants at the global level explicitly for
2688         renaming declarations.
2689         (elaborate_expression_1): Force the variable to be static if the
2690         expression is global.
2691         * gcc-interface/trans.c (get_elaboration_procedure): New function.
2692         (call_to_gnu): Use it.
2693         (gnat_to_gnu): Likewise.
2694         <N_Object_Declaration>: Do not test Is_Public to force the creation of
2695         an initialization variable.
2696         (add_decl_expr): Discard the statement if the declaration is external.
2697         * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
2698         the current block if it is external.
2699         (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
2700         (gnat_zaplevel): New global function.
2701
2702 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2703
2704         * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
2705         variables against zero in all cases.
2706         (rest_of_type_decl_compilation): Likewise.
2707         * gcc-interface/trans.c (gigi): Pass properly typed constants to
2708         create_var_decl.
2709         (call_to_gnu): Fix formatting.
2710         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2711         (Exception_Handler_to_gnu_zcx): Likewise.
2712         (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
2713         constant
2714         expressions in presence of a freeze node.
2715
2716 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
2717
2718         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
2719         expressions for external constants that are aggregates.
2720         * gcc-interface/utils2.c (build_simple_component_ref): If the field
2721         is an inherited component in an extension, look through the extension.
2722
2723 2010-09-10  Vincent Celier  <celier@adacore.com>
2724
2725         * projects.texi: Add documentation for package extensions
2726         Add some documentation for attributes Leading_Library_Options and
2727         Linker'Leading_Switches.
2728
2729 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2730
2731         * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
2732         disabled, compute subtype for all string types.
2733
2734 2010-09-10  Robert Dewar  <dewar@adacore.com>
2735
2736         * gnat_ugn.texi: Add documentation for -gnatw.s/S
2737         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2738         Component_Size): Implement warning on overriden size clause.
2739         (Analyze_Record_Representation_Clause): Implement warning on overriden
2740         size clause.
2741         * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
2742         (-gnatw.s/S).
2743         * ug_words: Add entries for -gnatw.s/S.
2744         * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
2745         * gcc-interface/Make-lang.in: Update dependencies.
2746
2747 2010-09-10  Vincent Celier  <celier@adacore.com>
2748
2749         * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
2750         a package with the same name from an imported or extended project.
2751         * prj-proc.adb (Process_Declarative_Items): Process package extensions
2752
2753 2010-09-10  Bob Duff  <duff@adacore.com>
2754
2755         * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
2756         'out' parameters.
2757
2758 2010-09-10  Robert Dewar  <dewar@adacore.com>
2759
2760         * sem.adb: Minor reformatting.
2761
2762 2010-09-10  Bob Duff  <duff@adacore.com>
2763
2764         * s-os_lib.ads, g-expect.ads: Add comments.
2765
2766 2010-09-10  Robert Dewar  <dewar@adacore.com>
2767
2768         * exp_ch5.adb: Minor reformatting.
2769
2770 2010-09-10  Thomas Quinot  <quinot@adacore.com>
2771
2772         * scos.ads: Add comments.
2773
2774 2010-09-10  Vincent Celier  <celier@adacore.com>
2775
2776         * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
2777
2778 2010-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2779
2780         * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
2781         for a controlled build-in-place function call which appears in an
2782         anonymous context. The transient scope ensures that the intermediate
2783         function result is cleaned up after the master is left.
2784         (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
2785         of the transient scope. This is now done in Exand_Call which covers
2786         additional cases other than secondary stack release.
2787
2788 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
2789
2790         * sem.adb (Do_Unit_And_Dependents): Add guard.
2791
2792 2010-09-10  Robert Dewar  <dewar@adacore.com>
2793
2794         * exp_ch5.adb: Update comments.
2795         * exp_dist.adb: Minor reformatting.
2796
2797 2010-09-10  Robert Dewar  <dewar@adacore.com>
2798
2799         * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
2800         gap warnings.
2801         * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
2802         * usage.adb: Add lines for -gnatw.h/H
2803         * gnat_ugn.texi: Add documentation for J519-010
2804         Warn on record holes/gaps
2805         * ug_words: Add entries for -gnatw.h/-gnatw.H
2806         * vms_data.ads: Add entries for [NO]AVOIDGAPS
2807
2808 2010-09-10  Gary Dismukes  <dismukes@adacore.com>
2809
2810         * sem_ch6.adb: Update comment.
2811
2812 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2813
2814         * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
2815         of full view analyzed after analyzing the corresponding record
2816         declaration, to prevent spurious name conflicts with original
2817         declaration.
2818
2819 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
2820
2821         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
2822         just issue a warning, but continue with the normal processing.
2823
2824 2010-09-10  Robert Dewar  <dewar@adacore.com>
2825
2826         * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
2827         reformatting.
2828
2829 2010-09-10  Thomas Quinot  <quinot@adacore.com>
2830
2831         * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
2832         Build_TypeCode_Call): For a subtype inserted for the expansion of a
2833         generic actual type, go to the underlying type of the original actual
2834         type.
2835
2836 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2837
2838         * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
2839         guard around the increment statement, to prevent an off-by-one-value
2840         on the last iteration.
2841
2842 2010-09-10  Vincent Celier  <celier@adacore.com>
2843
2844         * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
2845         sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
2846         exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
2847         "at run time" in comments and error/warning messages.
2848
2849 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2850
2851         * exp_cg.adb: Handle properly bodies without specs.
2852
2853 2010-09-10  Emmanuel Briot  <briot@adacore.com>
2854
2855         * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
2856         present, and the user requested to either ignore this or display a
2857         warning (as opposed to an error), we still need to register the
2858         directory.
2859
2860 2010-09-10  Robert Dewar  <dewar@adacore.com>
2861
2862         * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
2863         now done in In_Extended_Main_Source_Unit.
2864         * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
2865         (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2866         as Parsing_Main_Extended_Source.
2867         * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
2868         unit.
2869         * lib-load.adb (Load_Unit): Add PMES parameter
2870         Set PMES appropriately in all calls to Load_Unit
2871         * lib-load.ads (Load_Unit): Add PMES parameter
2872         * lib.adb (In_Extended_Main_Source_Unit): When called with
2873         Compiler_State set to Parsing, test new flag
2874         Compiling_Main_Extended_Source.
2875         * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
2876         (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2877         as Parsing_Main_Extended_Source
2878         * par-load.adb (Load): Set PMES properly in call to Load_Unit
2879
2880 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2881
2882         * exp_cg.adb: Use proper entity to handle overloads.
2883         * sem_res.adb (Check_Parameterless_Call): An operator node without
2884         actuals cannot be a call, and must be treated as a string.
2885
2886 2010-09-10  Robert Dewar  <dewar@adacore.com>
2887
2888         * frontend.adb: Minor reformatting.
2889
2890 2010-09-10  Robert Dewar  <dewar@adacore.com>
2891
2892         * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
2893         * par-ch5.adb (P_Condition): Move from body to spec
2894         * par.adb (Ch5.P_Condition): Move from body to spec
2895
2896 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2897
2898         * exp_cg.adb (Write_Call_Info): If a type that has been registered in
2899         the call table is private, use its full view to generate information
2900         on its operations.
2901
2902 2010-09-10  Jose Ruiz  <ruiz@adacore.com>
2903
2904         * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
2905         pattern matching to detect predefined primitive operations take into
2906         account that there can be an extra suffix related to body-nested
2907         package entities.
2908
2909 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2910
2911         * s-pooglo.ads: Add overriding indicators.
2912
2913 2010-09-10  Vincent Celier  <celier@adacore.com>
2914
2915         * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
2916         /64_MALLOC (for -H64).
2917
2918 2010-09-10  Robert Dewar  <dewar@adacore.com>
2919
2920         * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
2921         (Error_Msg_NW): Test Parsing_Main_Subunit flag
2922         * errout.ads (Parsing_Main_Subunit): New flag
2923         * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
2924         * par-ch6.adb: Minor style fix (remove redandant parentheses)
2925         * par-ch9.adb: Minor style fix (remove redundant parens)
2926         * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
2927
2928 2010-09-10  Vincent Celier  <celier@adacore.com>
2929
2930         * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
2931         function of the same name in Makeutl.
2932         (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
2933         of removed procedure when creating a binder mapping file.
2934         * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
2935         procedure in Make.
2936         * makeutl.ads (Create_Binder_Mapping_File): New function
2937
2938 2010-09-10  Jose Ruiz  <ruiz@adacore.com>
2939
2940         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
2941         separator when trying the pattern matching to detect predefined
2942         primitive operations.
2943
2944 2010-09-10  Robert Dewar  <dewar@adacore.com>
2945
2946         * bindgen.adb, atree.adb: Minor reformatting.
2947
2948 2010-09-10  Ben Brosgol  <brosgol@adacore.com>
2949
2950         * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
2951         OpenVMS" section.
2952
2953 2010-09-10  Doug Rupp  <rupp@adacore.com>
2954
2955         * bindgen.adb: Minor comment fix for -H switch.
2956
2957 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2958
2959         * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
2960         library unit now, by traversing tree before context is expanded.
2961         (Write_Call_Info): Use enclosing unit name directly.
2962         * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
2963         tree earlier, to ensure that subsequent declarations are analyzed in a
2964         connected structure.
2965         * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
2966         list.
2967
2968 2010-09-10  Robert Dewar  <dewar@adacore.com>
2969
2970         * symbols-processing-vms-alpha.adb: Minor reformatting.
2971
2972 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
2973
2974         * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
2975         __gnat_install_handler in case the binder is called with -n.
2976
2977 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
2978
2979         * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
2980         sloc for renaming declaration and set Comes_From_Source properly to
2981         ensure that references are properly generated for an object declaration
2982         that is built in place.
2983
2984 2010-09-10  Tristan Gingold  <gingold@adacore.com>
2985
2986         * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
2987         tool.
2988         * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
2989         * gcc-interface/Makefile.in: gnat.hlp is now generated by
2990         Make-generated.in
2991
2992 2010-09-10  Bob Duff  <duff@adacore.com>
2993
2994         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
2995         := ...;", remove side effects from the right-hand side, because they
2996         might affect the value of the left-hand side, but the left-hand side is
2997         first READ (so we can do shifting and masking) and then written back,
2998         which would cause the side effects to be incorrectly overwritten.
2999
3000 2010-09-10  Robert Dewar  <dewar@adacore.com>
3001
3002         * sem_ch4.adb: Minor reformatting.
3003         * exp_ch6.adb: Add comment on testing limited on full type
3004         * gnat_rm.texi: Add documentation on Pure_Function.
3005
3006 2010-09-10  Vincent Celier  <celier@adacore.com>
3007
3008         * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3009         as a source of another project and of another language.
3010
3011 2010-09-10  Robert Dewar  <dewar@adacore.com>
3012
3013         * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
3014         errors.
3015         * freeze.adb (Check_Unsigned_Type): Ditto.
3016         * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
3017         * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
3018         (Set_Scalar_Range_For_Subtype): Ditto.
3019         * sem_eval.adb (Subtypes_Statically_Match): Ditto.
3020
3021 2010-09-10  Robert Dewar  <dewar@adacore.com>
3022
3023         * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
3024         types.
3025         * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
3026         rather than parens for fixed constants.
3027         * sprint.ads: Use square brackets rather than parens for fixed constants
3028         * urealp.adb (UR_Write): Use square brackets rather than parens
3029         (UR_Write): Add Brackets argument
3030         (UR_Write): Add many more special cases to output literals
3031         * urealp.ads (UR_Write): Use square brackets rather than parens
3032         (UR_Write): Add Brackets argument
3033
3034 2010-09-10  Robert Dewar  <dewar@adacore.com>
3035
3036         * sem_ch4.adb: Minor reformatting.
3037
3038 2010-09-10  Richard Guenther  <rguenther@suse.de>
3039
3040         * gcc-interface/utils.c (create_index_type): Use build_range_type.
3041
3042 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
3043
3044         * vms_cmds.ads: New.
3045
3046 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
3047
3048         * exp_dbug.ads: Mention enhanced encoding for array types.
3049
3050 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
3051
3052         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3053         unsupported in VM targets. Display a warning in this case.
3054
3055 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3056
3057         * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3058         not reset Sloc when printing keyword "new".
3059
3060 2010-09-10  Vincent Celier  <celier@adacore.com>
3061
3062         * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3063         GNAT_DRIVER_COMMAND_LINE.
3064
3065 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3066
3067         * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3068         clause, process the body at once.
3069
3070 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3071
3072         * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
3073         conversion is the expression is a qualified expression used to
3074         disambiguate a function call.
3075
3076 2010-09-10  Vincent Celier  <celier@adacore.com>
3077
3078         * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3079         as a source of another project and of another language.
3080
3081 2010-09-10  Robert Dewar  <dewar@adacore.com>
3082
3083         * prj-util.adb: Minor reformatting.
3084
3085 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
3086
3087         * exp_disp.adb: Minor reformatting.
3088
3089 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
3090
3091         * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3092         CodePeer mode.
3093
3094 2010-09-10  Thomas Quinot  <quinot@adacore.com>
3095
3096         * sem_res.adb: Minor reformatting.
3097         * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
3098         magic constants for task master levels (instead, reference
3099         named numbers from System.Tasking).
3100
3101 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
3102
3103         * gnatvsn.ads (Ver_Prefix): New constant string.
3104         * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
3105         (Gen_Output_File_C): Likewise.
3106         * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
3107         in comment.
3108         
3109 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3110
3111         * sem.adb (Walk_Library_Items): Do not traverse children of the main
3112         unit, to prevent spurious circularities in the walk order.
3113         (Depends_On_Main): Use elsewhere to prevent circularities when the body
3114         of an ancestor of the main unit depends on a child of the main unit.
3115
3116 2010-09-10  Robert Dewar  <dewar@adacore.com>
3117
3118         * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3119         sem_ch3.adb: Minor reformatting.
3120
3121 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3122
3123         * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
3124         that is a renaming must be derived like any other primitive operation,
3125         the renamed operation is not relevant to the derivation.
3126
3127 2010-09-10  Robert Dewar  <dewar@adacore.com>
3128
3129         * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3130         * checks.adb: Minor reformatting.
3131
3132 2010-09-10  Robert Dewar  <dewar@adacore.com>
3133
3134         * gnat_ugn.texi: Add section on intent of style checking options.
3135
3136 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
3137
3138         * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3139
3140 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3141
3142         * sem_ch3.adb: Improve error message on derivation from class-wide type
3143
3144 2010-09-10  Steve Baird  <baird@adacore.com>
3145
3146         * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3147         generation when Generate_SCIL is True.
3148
3149 2010-09-10  Geert Bosch  <bosch@adacore.com>
3150
3151         * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
3152         validity of executable name and removing any existing executable
3153         (Gnatlink): Call Check_Existing_Executable.
3154
3155 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
3156
3157         * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
3158         initialization of Task_Alternate_Stack here, cleaner since in case of
3159         ranvescar, Restricted_Ada_Task_Control_Block is not initialized
3160         implicitly.
3161
3162 2010-09-10  Thomas Quinot  <quinot@adacore.com>
3163
3164         * s-fileio.adb, a-dirval.adb: Minor reformatting.
3165
3166 2010-09-10  Emmanuel Briot  <briot@adacore.com>
3167
3168         * prj-util.adb (Executable_Of): Fix CE when the project does not
3169         contain a Builder package.
3170
3171 2010-09-10  Vincent Celier  <celier@adacore.com>
3172
3173         * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
3174         to the project path, if Prefix and Target_Name are defined.
3175         * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
3176
3177 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
3178
3179         * checks.adb (Ensure_Valid): If the expression is a boolean expression
3180         or short-circuit operation, do no emit a validity check: only the
3181         elementary operands of the expression need checking.
3182
3183 2010-09-10  Ben Brosgol  <brosgol@adacore.com>
3184
3185         * gnat_rm.texi: Document Short_Descriptors.
3186
3187 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
3188
3189         * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
3190         initialize to Null_Address.
3191         (Enter_Task): Do not set up an alternate stack for foreign threads.
3192
3193 2010-09-10  Robert Dewar  <dewar@adacore.com>
3194
3195         * opt.adb (Short_Descriptors): New flag
3196         (Short_Descriptors_Config): New flag
3197         * opt.ads (Short_Descriptors): New flag
3198         (Short_Descriptors_Config): New flag
3199         * par-prag.adb: Add dummy entry for Short_Descriptors pragma
3200         * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
3201         (Analyze_Pragma): Implement Short_Descriptors pragma
3202         * snames.ads-tmpl: Add entry for Short_Descriptors pragma
3203
3204 2010-09-10  Emmanuel Briot  <briot@adacore.com>
3205
3206         * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
3207         project's Executable_Suffix.
3208
3209 2010-09-10  Robert Dewar  <dewar@adacore.com>
3210
3211         * g-pehage.ads: Minor reformatting
3212
3213         * gnat_ugn.texi: Clarifying comment on -gnatyc
3214         * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
3215         arguments.
3216
3217 2010-09-10  Tristan Gingold  <gingold@adacore.com>
3218
3219         * Make-generated.in (gnat.hlp): New rule.
3220
3221 2010-09-10  Emmanuel Briot  <briot@adacore.com>
3222
3223         * prj-util.adb, prj-util.ads (Executable_Of): New parameter
3224         Include_Suffix.
3225
3226 2010-09-10  Robert Dewar  <dewar@adacore.com>
3227
3228         * einfo.adb: Minor code cleanup: Add assertion to
3229         Set_Corresponding_Protected_Entry.
3230
3231 2010-09-10  Bob Duff  <duff@adacore.com>
3232
3233         * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
3234         the output to standard output.
3235
3236 2010-09-09  Vincent Celier  <celier@adacore.com>
3237
3238         * gnat_ugn.texi: Add documentation for new gnatmake switch
3239         --create-map-file.
3240         * make.adb (Map_File): New global variable to store the value of switch
3241         --create-map-file.
3242         (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
3243         been specified.
3244         (Scan_Make_Arg): Recognize switch --create-map-file
3245         * makeutl.ads (Create_Map_File_Switch): New constant string for new
3246         gnatmake and gprbuild switch --create-map-file.
3247
3248 2010-09-09  Robert Dewar  <dewar@adacore.com>
3249
3250         * sinput-p.ads: Minor comment update.
3251
3252 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
3253
3254         * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
3255         Entry_Call.State if needed so that the call is marked as cancelled by
3256         Check_Pending_Actions_For_Entry_Call.
3257         (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
3258         this procedure may be called from a controlled operation
3259         (Initialize/Finalize).
3260
3261 2010-09-09  Vadim Godunko  <godunko@adacore.com>
3262
3263         * impunit.adb: Correct spelling of package's name in the comment.
3264
3265 2010-09-09  Robert Dewar  <dewar@adacore.com>
3266
3267         * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
3268         Minor reformatting
3269
3270 2010-09-09  Robert Dewar  <dewar@adacore.com>
3271
3272         * impunit.adb: Add entry for a-izteio.
3273         * checks.adb: Add comment.
3274         * debug.adb, exp_disp.adb: Minor reformatting.
3275         * exp_dbug.ads: Minor reformatting throughout (pack block comments).
3276
3277 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3278
3279         * sem_eval.adb (Is_Same_Value): Two occurrences of the same
3280         discriminant cannot be assumed to be the same value because they may
3281         refer to bounds of a component of two different instances of a
3282         discriminated type.
3283
3284 2010-09-09  Gary Dismukes  <dismukes@adacore.com>
3285
3286         * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
3287         operands of an operator to the type of an enclosing conversion, rewrite
3288         the operator so the conversion can't be flagged as redundant.
3289         Remove useless assignments to Typ and Rtyp.
3290
3291 2010-09-09  Eric Botcazou  <ebotcazou@adacore.com>
3292
3293         * gnat_ugn.texi: Fix another long line.
3294
3295 2010-09-09  Bob Duff  <duff@adacore.com>
3296
3297         * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
3298         but never assigned.
3299
3300 2010-09-09  Matthew Heaney  <heaney@adacore.com>
3301
3302         * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
3303         Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
3304         Replace_Element, Reverse_Elements, Swap): Change exception message to
3305         correctly indicate kind of tampering (cursor or element).
3306         * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
3307         Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
3308         Swap_Links, Replace_Element, Swap): Ditto.
3309         * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
3310         * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
3311         * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
3312         * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
3313         Generic_Replace_Element): Ditto
3314         * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
3315         * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
3316         Replace_Element): Ditto.
3317         * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
3318         Symmetric_Difference, Union, Include, Replace): Ditto
3319
3320 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3321
3322         * sprint.adb (Write_Id): If the parent node is an expanded name, check
3323         that its entity_or_associated_node is an entity before writing it out.
3324         * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
3325         constructors, there is no need for a dispatch table pointer because the
3326         table is fully inherited from the C++ code.
3327
3328 2010-09-09  Thomas Quinot  <quinot@adacore.com>
3329
3330         * projects.texi: Fix wrong identifiers on package end lines in project
3331         files examples.
3332         * exp_ch6.adb: Minor reformatting.
3333
3334 2010-09-09  Tristan Gingold  <gingold@adacore.com>
3335
3336         * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
3337
3338 2010-09-09  Eric Botcazou  <ebotcazou@adacore.com>
3339
3340         * gnat_ugn.texi: Fix description of -O3 optimization level.
3341
3342 2010-09-09  Yannick Moy  <moy@adacore.com>
3343
3344         * a-cihama.adb, a-cohama.adb: Fix comments.
3345
3346 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
3347
3348         * i-cexten.ads: Add comments.
3349         (Signed_128): New type, used by some C bindings.
3350         * debug.adb: Update comment.
3351
3352 2010-09-09  Sergey Rybin  <rybin@adacore.com>
3353
3354         * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
3355         gnatmetric and gnatstub) add a note that '-gnat05' should be used if
3356         the tool should process Ada 2005 sources.
3357
3358 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3359
3360         * sem_ch12.adb (Remove_Parent): If the scope containing the child
3361         instance is a block, examine the enclosing scope to determine if it is
3362         a parent instance.
3363
3364 2010-09-09  Doug Rupp  <rupp@adacore.com>
3365
3366         * sem_prag.adb (pragma Ident): Pass --identification= vice 
3367         IDENTIFICATION=
3368         * gnatlink.adb (Linker_Options): Look for --identification= vice 
3369         IDENTIFICATION=
3370
3371 2010-09-09  Gary Dismukes  <dismukes@adacore.com>
3372
3373         * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
3374         inserting and analyzing the object declaration for the temporary object
3375         created to hold a 'Old value, push the scope for the subprogram where
3376         the object is inserted, so that its Scope (and that of related objects)
3377         will be set properly.
3378
3379 2010-09-09  Vincent Celier  <celier@adacore.com>
3380
3381         * prj.adb (Get_Object_Directory): Return object directory display name
3382         * adaint.c (__gnat_get_file_names_case_sensitive): When environment
3383         variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
3384         return this value, otherwise return the default for the platform.
3385
3386 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
3387
3388         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3389         dependencies. Remove handling of gnatlbr.
3390         Do not remove s-stratt-xdr for the run-time when installing.
3391
3392 2010-09-09  Robert Dewar  <dewar@adacore.com>
3393
3394         * sem_attr.adb: Minor reformatting.
3395
3396 2010-09-09  Thomas Quinot  <quinot@adacore.com>
3397
3398         * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
3399         unsigned long, not an int.
3400
3401 2010-09-09  Vincent Celier  <celier@adacore.com>
3402
3403         * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
3404         prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
3405         we are not checking for equality of path or file names.
3406
3407 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3408
3409         * exp_util.adb (Remove_Side_Effects): If the expression is a packed
3410         array reference, reset the Analyzed flag so that it is properly
3411         expanded when the resulting object declaration is analyzed.
3412
3413 2010-09-09  Vincent Celier  <celier@adacore.com>
3414
3415         * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
3416         No_Source_File.
3417
3418 2010-09-09  Ramon Fernandez  <fernandez@adacore.com>
3419
3420         * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
3421         VX_SPE_TASK option, so disable it.
3422
3423 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3424
3425         * sem.adb (Walk_Library_Items): Traverse context of subunits of the
3426         main unit.
3427         (Is_Subunit_Of_Main): Handle null nodes properly.
3428
3429 2010-09-09  Robert Dewar  <dewar@adacore.com>
3430
3431         * par-ch2.adb: Update comments.
3432
3433 2010-09-09  Ben Brosgol  <brosgol@adacore.com>
3434
3435         * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
3436
3437 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
3438
3439         * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
3440         do not generate an error for compatibility with legacy code.
3441         ignored when generating SCIL.
3442         * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
3443
3444 2010-09-09  Thomas Quinot  <quinot@adacore.com>
3445
3446         * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
3447         s-strxdr.adb to s-stratt-xdr.adb
3448
3449 2010-09-09  Robert Dewar  <dewar@adacore.com>
3450
3451         * ali-util.adb (Obsolescent_Check): Removed.
3452         * gprep.adb (Obsolescent_Check): Removed.
3453         Remove Obsolescent_Check parameter in Scng instantiation
3454         * prj-err.adb (Obsolescent_Check): Removed.
3455         * prj-err.ads (Obsolescent_Check): Removed.
3456         Remove Obsolescent_Check parameter in Scng instantiation
3457         * scans.ads (Based_Literal_Uses_Colon): New flag
3458         * scn.adb (Obsolscent_Check_Flag): Removed
3459         (Obsolscent_Check): Removed
3460         (Set_Obsolescent_Check): Removed
3461         (Post_Scan): Add handling for obsolescent features
3462         * scn.ads (Obsolscent_Check): Removed
3463         (Set_Obsolescent_Check): Removed
3464         (Post_Scan): Can no longer be inlined
3465         Remove Obsolescent_Check from instantiation of Scng
3466         * scng.adb (Nlit): Set Based_Literal_Uses_Colon
3467         (Nlit): Remove handling of obsolescent check
3468         (Scan, case '%'): Remove handling of obsolescent check
3469         (Scan, case '|'): Call Post_Scan
3470         (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
3471         * scng.ads Remove Obsolescent_Check argument from Scng generic
3472         (Post_Scan): Now called for Tok_Vertical_Bar
3473         * sinput-l.adb: Remove calls to Set_Obsolescent_Check
3474
3475 2010-09-09  Doug Rupp  <rupp@adacore.com>
3476
3477         * gnatlbr.adb: Removed.
3478         * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
3479
3480 2010-09-09  Robert Dewar  <dewar@adacore.com>
3481
3482         * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
3483         conversions.
3484
3485 2010-09-09  Vincent Celier  <celier@adacore.com>
3486
3487         * gnatlbr.adb: Remove redundant conversions.
3488
3489 2010-09-09  Vincent Celier  <celier@adacore.com>
3490
3491         * prj-proc.adb: Minor comment spelling error fix.
3492         * osint.ads (Env_Vars_Case_Sensitive): Use function
3493         Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
3494         compute value.
3495
3496 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3497
3498         * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
3499         resolution of conditional expressions whose dependent expressions are
3500         anonymous access types.
3501
3502 2010-09-09  Robert Dewar  <dewar@adacore.com>
3503
3504         * a-ststio.adb: Minor code reorganization.
3505         * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
3506         conversion.
3507         * types.ads: Minor reformatting.
3508         * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
3509         redundant conversions.
3510         * output.adb: Minor reformatting.
3511         * sem_ch8.adb (Find_Type): Test for redundant base applies to user
3512         types.
3513         * opt.ads: Add pragma Ordered for Verbosity_Level.
3514         * prj.ads: Add pragma Ordered for type Verbosity.
3515
3516 2010-09-09  Vincent Celier  <celier@adacore.com>
3517
3518         * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
3519         System.Case_Util
3520         (Canonical_Case_Env_Var_Name): Ditto
3521
3522 2010-09-09  Bob Duff  <duff@adacore.com>
3523
3524         * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
3525
3526 2010-09-09  Robert Dewar  <dewar@adacore.com>
3527
3528         * cstand.adb: Mark Boolean and Character types as Ordered
3529         * einfo.adb (Has_Pragma_Ordered): New flag
3530         * einfo.ads (Has_Pragma_Ordered): New flag
3531         * g-calend.ads: Mark Day_Name as Ordered
3532         * opt.ads: Mark Ada_Version_Type as Ordered
3533         (Warn_On_Unordered_Enumeration_Type): New flag
3534         * par-prag.adb: Add procdessing for pragma Ordered
3535         * s-ficobl.ads (Read_File_Mode): New subtype
3536         * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
3537         * s-taskin.ads: Mark Entry_Call_State as ordered
3538         * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
3539         Has_Pragma_Ordered.
3540         * sem_ch6.ads: Mark Conformance_Type as Ordered
3541         * sem_prag.adb: Implement pragma Ordered
3542         * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
3543         (Resolve_Comparison_Op): Diagnose unordered comparison
3544         (Resolve_Range): Diagnose unordered range
3545         * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
3546         -gnatw.u/U)
3547         * snames.ads-tmpl: Add entry for pragma Ordered
3548         * style.ads (Check_Enumeration_Subrange): Removed
3549         * styleg.adb (Check_Enumeration_Subrange): Removed
3550         * styleg.ads (Check_Enumeration_Subrange): Removed
3551         * stylesw.adb: Remove handling of -gnatyE switch
3552         * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
3553         * vms_data.ads: Remove -gnatyE entries
3554         Add -gnatw.u entries
3555         * ug_words: Entries for -gnatw.u and -gnatw.U
3556         * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
3557         * gnat_rm.texi: Document pragma Ordered.
3558         * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
3559         * s-tpobop.adb: Remove comparison on unordered enumeration type.
3560
3561 2010-09-09  Vincent Celier  <celier@adacore.com>
3562
3563         * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
3564         for VMS and Windows, and 1 for all other platforms.
3565         * adaint.h: New function __gnat_get_env_vars_case_sensitive
3566         * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
3567         * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
3568         Canonical_Case_File_Name, as we are dealing with environment variables,
3569         not files.
3570
3571 2010-09-09  Robert Dewar  <dewar@adacore.com>
3572
3573         * sem_util.adb: Minor reformatting
3574
3575 2010-09-09  Vincent Celier  <celier@adacore.com>
3576
3577         * vms_data.ads: Add documentation for S_Make_Single.
3578
3579 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3580
3581         * sem_util.adb (Same_Object): include formal parameters.
3582
3583 2010-09-09  Vincent Celier  <celier@adacore.com>
3584
3585         * make.adb (Queue): New package implementing a new impementation of the
3586         queue, taking into account the new switch --single-compile-per-obj-dir.
3587         * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
3588         for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
3589         * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
3590         False.
3591         * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
3592         switch --single-compile-per-obj-dir.
3593         * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
3594         switch --single-compile-per-obj-dir.
3595         * gnat_ugn.texi: Add documentation for new gnatmake switch
3596         --single-compile-per-obj-dir.
3597
3598 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3599
3600         * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
3601
3602 2010-09-09  Javier Miranda  <miranda@adacore.com>
3603
3604         * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
3605         (Replace_Type): Code cleanup.
3606         * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
3607
3608 2010-09-09  Thomas Quinot  <quinot@adacore.com>
3609
3610         * exp_ch8.adb: Minor reformatting.
3611
3612 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3613
3614         * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
3615         Corresponding_Protected_Entry.
3616
3617 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3618
3619         * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
3620         inequality, it is always rewritten as the negation of the corresponding
3621         equality operation.
3622         * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
3623         the predefined equality of an untagged record, create a body at the
3624         point of the renaming, to capture the current meaning of equality for
3625         the type.
3626
3627 2010-09-09  Robert Dewar  <dewar@adacore.com>
3628
3629         * sem.adb, sem_warn.adb: Minor reformatting.
3630
3631 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3632
3633         * sem_ch6.adb: Improve error message on untagged equality.
3634         * sem.adb (Semantics): Include subprogram bodies that act as spec.
3635
3636 2010-09-09  Javier Miranda  <miranda@adacore.com>
3637
3638         * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
3639
3640 2010-09-09  Robert Dewar  <dewar@adacore.com>
3641
3642         * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
3643
3644 2010-09-09  Robert Dewar  <dewar@adacore.com>
3645
3646         * einfo.adb (Is_Aggregate_Type): New function.
3647         * einfo.ads (Aggregate_Kind): New enumeration subtype
3648         (Is_Aggregate_Type): New function.
3649         * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
3650         Is_Aggregate_Typea.
3651
3652 2010-09-09  Robert Dewar  <dewar@adacore.com>
3653
3654         * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
3655         sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
3656         where appropriate.
3657         * restrict.ads, restrict.adb: Ditto.
3658         (Restriction_Check_Needed): New function
3659
3660 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3661
3662         * exp_ch9.ads (Find_Master_Scope): New function, extracted from
3663         Build_Master_Entity, to find the proper scope for the master entity of
3664         a type that may contain tasks, in the presence of transient scopes.
3665         * exp_ch9.adb (Build_Master_Entity) Use new function.
3666         * exp_ch3.adb (Build_Class_Wide_Master): ditto.
3667
3668 2010-09-09  Vincent Celier  <celier@adacore.com>
3669
3670         * prj-attr.adb: Add new attributes Leading_Library_Options and
3671         Linker'Leading_Switches.
3672         * snames.ads-tmpl: Add new standard names Leading_Library_Options and
3673         Leading_Switches.
3674
3675 2010-09-09  Javier Miranda  <miranda@adacore.com>
3676
3677         * sem_ch3.adb (Derive_Subprogram): The code that checks if a
3678         dispatching primitive covers some interface primitive is incomplete.
3679         Replace such code by the invocation of a new subprogram that provides
3680         this functionality.
3681         * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
3682         * sem_ch6.adb (Check_Missing_Return): Minor reformating
3683         (Check_Convention): Complete if-statement conditition when reporting
3684         errors (to avoid assertion failure).
3685         * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
3686         located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
3687         (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
3688         overridden null interface primitives.
3689         * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
3690         private type is an interface then use the parent of its full view to
3691         climb to its ancestor type.
3692         * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
3693         (Check_Dispatching_Operation): Extend assertion to handle wrappers of
3694         null interface primitives.
3695         (Is_Null_Interface_Primitive): New subprogram.
3696         * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
3697         (Expand_Freeze_Record_Type): Do not generate specs of null interface
3698         subprograms because they are now generated by Analyze_Freeze_Entity.
3699
3700 2010-09-09  Robert Dewar  <dewar@adacore.com>
3701
3702         * a-calfor.adb, sem_ch3.adb: Minor reformatting.
3703
3704 2010-09-09  Robert Dewar  <dewar@adacore.com>
3705
3706         * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
3707         (Gen_Restrictions_C): Avoid explicit enumeration ranges
3708         (Set_String_Replace): New procedure
3709         * casing.ads (Known_Casing): New subtype declaration
3710         * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
3711         declaration
3712         * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
3713         * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
3714         * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
3715         * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
3716         * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
3717         ranges.
3718         * sem_res.adb (Resolve_Range): Check for enumeration subrange style
3719         rule.
3720         * sem_type.adb (Is_Array_Class_Record_Type): New.
3721         * style.ads (Check_Enumeration_Subrange): New procedure
3722         * styleg.adb (Check_Enumeration_Subrange): New procedure
3723         * styleg.ads (Check_Enumeration_Subrange): New procedure
3724         * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
3725         * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
3726         * usage.adb: Add line for -gnatyE
3727         * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
3728         Add missing entry for NOBOOLEAN_OPERATORS
3729         * gnat_ugn.texi: Add documentation for -gnatyE
3730
3731 2010-09-09  Robert Dewar  <dewar@adacore.com>
3732
3733         * namet.adb (Initialize): Is now a dummy procedure
3734         (Reinitialize): New procedure
3735         Call Reinitialize from package initialization
3736         * namet.ads (Initialize): Is now a dummy procedure
3737         (Reinitialize): New procedure
3738         * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
3739         gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
3740         Namet.Initialize.
3741
3742 2010-09-09  Bob Duff  <duff@adacore.com>
3743
3744         * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
3745
3746 2010-09-09  Robert Dewar  <dewar@adacore.com>
3747
3748         * s-bitops.adb (Raise_Error): Add exception message
3749
3750 2010-09-09  Robert Dewar  <dewar@adacore.com>
3751
3752         * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
3753         null statement after label.
3754         * sinfo.ads: Minor comment updates.
3755
3756 2010-09-09  Robert Dewar  <dewar@adacore.com>
3757
3758         * nlists.ads, nlists.adb (In_Same_List): New function.
3759         Use Node_Or_Entity_Id where appropriate.
3760         * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
3761
3762 2010-09-09  Robert Dewar  <dewar@adacore.com>
3763
3764         * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
3765         procedure.
3766         * sem_ch3.adb: Use Check_Wide_Character_Restriction
3767         (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
3768         * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
3769         (Find_Expanded_Name): Check violation of No_Wide_Characters
3770
3771 2010-09-09  Robert Dewar  <dewar@adacore.com>
3772
3773         * par-ch5.adb: Minor reformatting.
3774
3775 2010-09-09  Robert Dewar  <dewar@adacore.com>
3776
3777         * prj-env.adb: Minor code reorganization.
3778         * par-ch3.adb: Minor reformatting.
3779         * gcc-interface/Make-lang.in: Update dependencies.
3780
3781 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3782
3783         * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
3784         a task declaration can be an entry body.
3785
3786 2010-09-09  Javier Miranda  <miranda@adacore.com>
3787
3788         * exp_disp.adb (Make_DT): Decorate as "static" variables containing
3789         tags of library level tagged types.
3790         (Make_Tags): Disable backend optimizations about aliasing for
3791         declarations of access to dispatch tables.
3792
3793 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3794
3795         * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
3796         subtype for a null-excluding access type, recover the original
3797         subtype_mark to get the proper visibility on the original name.
3798
3799 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
3800
3801         * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
3802         create the primitive equality operation for an untagged record. The
3803         operation is the predefined equality if no record component has a
3804         user-defined equality, or if there is a user-defined equality for the
3805         type as a whole, or when the type is derived and it has an inherited
3806         equality. Otherwise the body of the operations is built as for tagged
3807         types.
3808         (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
3809         (Make_Eq_Body): New function to create the expanded body of the
3810         equality operation for tagged and untagged records.  In both cases the
3811         operation composes, and the primitive operation of each record
3812         component is used to generate the equality function for the type.
3813         * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
3814         has an abstract equality defined, replace its call with a
3815         Raise_Program_Error.
3816         * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
3817         user-defined equality operator for an untagged record type does not
3818         happen after type is frozen, and appears in the visible part if partial
3819         view of type is not limited.
3820
3821 2010-09-09  Tristan Gingold  <gingold@adacore.com>
3822
3823         * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
3824
3825 2010-09-09  Bob Duff  <duff@adacore.com>
3826
3827         * gnat_ugn.texi: Remove incorrect statement about -E being the default.
3828
3829 2010-09-09  Pascal Obry  <obry@adacore.com>
3830
3831         * gnat_ugn.texi: Update doc on windows related topics.
3832
3833 2010-09-09  Geert Bosch  <bosch@adacore.com>
3834
3835         * s-fatgen.adb: Update comments.
3836
3837 2010-09-09  Robert Dewar  <dewar@adacore.com>
3838
3839         * par-ch4.adb (Box_Error): New procedure.
3840
3841 2010-09-09  Thomas Quinot  <quinot@adacore.com>
3842
3843         * sem.adb: Minor reformatting.
3844
3845 2010-09-09  Pascal Obry  <obry@adacore.com>
3846
3847         * prj-env.adb: Style fix, use /and then/ and /or else/.
3848         * gnat_ugn.texi: Fix typos.
3849
3850 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
3851
3852         PR ada/45499
3853         * gcc-interface/misc.c (gnat_init_options): Allow options with
3854         empty canonical form.  Generate a single save_argv element from -I
3855         options.
3856
3857 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3858
3859         * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
3860         Attach fake PARM_DECLs to the topmost block of the function.
3861
3862 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3863
3864         * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
3865         for the call to a function whose return type was unconstrained.
3866
3867 2010-08-30  Olivier Hainque  <hainque@adacore.com>
3868
3869         * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
3870         replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
3871         (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
3872
3873 2010-08-21  Eric Botcazou  <ebotcazou@adacore.com>
3874
3875         * tracebak.c: Fix typo in comment.
3876
3877 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3878
3879         * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
3880         * gcc-interface/trans.c: Likewise.
3881         * gcc-interface/utils.c: Likewise.
3882
3883 2010-08-18  Eric Botcazou  <ebotcazou@adacore.com>
3884
3885         * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
3886
3887 2010-08-10  Robert Dewar  <dewar@adacore.com>
3888
3889         * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
3890         * sem_util.adb: Minor reformatting.
3891
3892 2010-08-10  Javier Miranda  <miranda@adacore.com>
3893
3894         * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
3895         constructors that leave the object partially initialized.
3896         * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
3897         that copies from parent of Typ the dispatch table slots of inherited
3898         C++ primitives. It handles primary and secondary dispatch tables.
3899         * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
3900         use this attribute with E_Variable entities.
3901         (Set_Is_Tag): Relax assertion to allow its use with variables that
3902         store tags.
3903         (Set_Related_Type): Relax assertion to allow its use with variables
3904         that store the tag of a C++ class.
3905         (Write_26_Field_Name): Remove Related_Type.
3906         (Write_27_Field_Name): Add Related_Type.
3907         * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
3908         with E_Variable entities.
3909         * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
3910         pragma.
3911         * sem_util.adb (Search_Tag): Add missing support for CPP types.
3912         (Enclosing_CPP_Parent): New subprogram.
3913         (Has_Suffix): New subprogram.
3914         * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
3915         closest ancestor of a type that is a C++ type.
3916         (Has_Suffix): New subprogram. Used in assertions to check the suffix of
3917         internal entities.
3918         * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
3919         instance in derivations of C++ types.
3920         * exp_tss.adb (CPP_Init_Proc): New subprogram.
3921         (Is_CPP_Init_Proc): New subprogram.
3922         (Set_TSS): Handle new C++ init routines.
3923         * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
3924         dispatch tables.
3925         (CPP_Init_Proc): New subprogram.
3926         (Is_CPP_Init_Proc): New subprogram.
3927         * exp_disp.adb (CPP_Num_Prims): New subprogram.
3928         (Has_CPP_Constructors): New subprogram.
3929         (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
3930         initialize slots located in the C++ part of the dispatch table.
3931         (Make_Tags): For CPP types declare variables used by the IP routine to
3932         store the C++ tag values after the first invocation of the C++
3933         constructor.
3934         (Build_CPP_Init_DT): New subprogram.
3935         (Set_CPP_Constructors): New implementation that builds an IP for each
3936         CPP constructor. These IP are wrappers of the C++ constructors that,
3937         after the first invocation of the constructor, read the C++ tags from
3938         the object and save them locally. These copies of the C++ tags are used
3939         by the IC routines to initialize tables of Ada derivations of CPP
3940         types.
3941         (Write_DT): Indicate what primitives are imported from C++
3942         * exp_disp.ads (CPP_Num_Prims): New subprogram.
3943         (Has_CPP_Constructors): New subprogram.
3944         * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
3945         invoke the IC routine to inherit the slots of the parents.
3946         * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
3947         * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
3948         (Is_Variable_Size_Record): Factorize code calling
3949         Is_Variable_Size_Array.
3950         (Build_CPP_Init_Procedure): New subprogram that builds the tree
3951         corresponding to the procedure that initializes the C++ part of the
3952         dispatch table of an Ada tagged type that is a derivation of a CPP
3953         type.
3954         (Build_Init_Procedure): Adding documentation plus code reorganization
3955         to leave more clear the construction of the IP with C++ types.
3956         (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
3957         it cannot be called after Make_Tags has been invoked.
3958         (Inherit_CPP_Tag): Removed.
3959         (Init_Secondary_Tags): For derivations of CPP types, warn on tags
3960         located at variable offset.
3961         * freeze.ads: Minor reformating.
3962         * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
3963         available in gdb.
3964         * gcc-interface/Make-lang.in: Update dependencies.
3965
3966 2010-08-10  Robert Dewar  <dewar@adacore.com>
3967
3968         * a-chahan.ads: Add comments on handling of obsolescent entries.
3969         * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
3970         * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
3971         * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
3972         * sem_attr.adb (Analyze_Access_Attribute): Call
3973         Check_Obsolescent_2005_Entity to check for access to obsolescent
3974         Ada.Characters.Handling subprogram.
3975         (Analyze_Attribute, case Class): Applying Class to untagged incomplete
3976         type is obsolescent in Ada 2005.
3977         (Analyze_Attribute, case Constrained): Better placement of flag when
3978         flagged as obsolescent feature.
3979         (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
3980         * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
3981         is an obsolescent feature.
3982         * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
3983         feature.
3984         * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
3985         Check_Obsolescent_2005_Entity to check for renaming obsolete
3986         Ada.Characters.Handling subprogram.
3987         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
3988         for obsolescent restrictions in Ada 2005.
3989         (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
3990         (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
3991         * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
3992         check for obsolescent references to Ada.Characters.Handling subprograms
3993
3994 2010-08-10  Robert Dewar  <dewar@adacore.com>
3995
3996         * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
3997
3998 2010-08-10  Robert Dewar  <dewar@adacore.com>
3999
4000         * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4001         * par-ch4.adb: Change wording of Ada 2012 messages
4002         * vms_data.ads: Add VMS entries for /2005, /12, /2012
4003
4004 2010-08-10  Robert Dewar  <dewar@adacore.com>
4005
4006         * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
4007         codes in the range 16#80#..16#7FF#.
4008         * sem_ch10.adb: Minor reformatting.
4009
4010 2010-08-10  Arnaud Charlet  <charlet@adacore.com>
4011
4012         * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
4013         generate ali files in CodePeer mode, so that a gnatmake -c -k will
4014         proceed further when possible
4015         * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
4016         messages when ignoring representation clauses (-gnatI).
4017
4018 2010-08-10  Ed Schonberg  <schonberg@adacore.com>
4019
4020         * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
4021         constant-fold discriminant reference if the constraint is an object
4022         with non-static expression. Expression may contain volatile references
4023         in the presence of renamings.
4024
4025 2010-08-10  Vincent Celier  <celier@adacore.com>
4026
4027         * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4028         returns Index.
4029         * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4030         index for an associative array where it is allowed.
4031
4032 2010-08-10  Thomas Quinot  <quinot@adacore.com>
4033
4034         * exp_attr.adb: Add comments.
4035
4036 2010-08-10  Jerome Lambourg  <lambourg@adacore.com>
4037
4038         * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4039
4040 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4041
4042         * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4043
4044 2010-08-09  Eric Botcazou  <ebotcazou@adacore.com>
4045
4046         * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4047         (build_vms_descriptor): Likewise.
4048
4049 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4050
4051         * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
4052         (build_vms_descriptor32): Adjust calls to it for new parameter.
4053         (build_vms_descriptor): Likewise.
4054
4055 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4056
4057         * gcc-interface/decl.c (rec_variant):  Declare.  Declare a VEC of it.
4058         (build_variant_list): Take and return a VEC instead of a tree.
4059         (create_variant_part_from): Take a VEC instead of a tree for
4060         variant_list.  Adjust accordingly.
4061         (gnat_to_gnu_entity): Adjust for changes to previous functions.
4062
4063 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
4064
4065         * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
4066         of alloca.
4067         (components_to_record): Likewise.
4068         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
4069         * gcc-interface/utils.c (max_size): Likewise.
4070         (build_vms_descriptor32): Likewise.
4071         (build_vms_descriptor): Likewise.
4072
4073 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
4074
4075         * gcc-interface/decl.c (subst_pair): Declare.  Declare a VEC of it.
4076         (build_subst_list): Return a VEC instead of a tree.
4077         (build_variant_list): Take a VEC for subst_list.  Adjust
4078         accordingly.
4079         (create_field_decl_from): Likewise.
4080         (create_variant_part_from): Likewise.
4081         (copy_and_substitute_in_size): Likewise.
4082         (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
4083         Free the built vector.
4084
4085 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
4086
4087         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4088         allocator for large imported objects.
4089
4090 2010-08-05  Robert Dewar  <dewar@adacore.com>
4091
4092         * gnat1drv.adb: Minor reformatting.
4093
4094 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
4095
4096         * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
4097         instantiation, process its body before the spec of the main unit,
4098         because it may contain subprograms invoked in the spec of main.
4099         * einfo.ads: Add documention of delayed freeze.
4100
4101 2010-08-05  Vincent Celier  <celier@adacore.com>
4102
4103         * prj-nmsc.adb (Process_Linker): Take into account new values for
4104         attribute Response_File_Format.
4105         * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
4106         GCC_Object_List and GCC_Option_List.
4107
4108 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
4109
4110         * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
4111         selected component that denotes a discriminant if it is the
4112         discriminant of a component of an unconstrained record type.
4113
4114 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
4115
4116         * exp_util.adb (Insert_Actions): If the action appears within a
4117         conditional expression that is already analyzed, insert action further
4118         out.
4119
4120 2010-08-05  Robert Dewar  <dewar@adacore.com>
4121
4122         * exp_ch4.adb: Minor reformatting.
4123
4124 2010-08-05  Thomas Quinot  <quinot@adacore.com>
4125
4126         * exp_ch4.adb: Minor reformatting
4127         * gnat1drv.adb: Minor reformatting.
4128         Minor code reorganization (use Nkind_In).
4129
4130 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
4131
4132         * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
4133         determine whether the expression in an address clause for an
4134         initialized object must be constant. Code moved from freeze.adb.
4135         (Remove_Side_Effects): When the temporary is initialized with a
4136         reference, indicate that the temporary is a constant as done in all
4137         other cases.
4138         * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
4139         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4140         If object does not need a constant address, remove side effects from
4141         address expression, so it is elaborated at the point of the address
4142         clause and not at the freeze point of the object, so that elaboration
4143         order is respected.
4144
4145 2010-08-05  Vincent Celier  <celier@adacore.com>
4146
4147         * prj.adb (Is_Compilable): Return False for header files of non Ada
4148         languages.
4149
4150 2010-08-05  Emmanuel Briot  <briot@adacore.com>
4151
4152         * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4153         exec directory as a warning rather than an error.
4154
4155 2010-08-05  Thomas Quinot  <quinot@adacore.com>
4156
4157         * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4158         reformatting.
4159
4160 2010-08-05  Steve Baird  <baird@adacore.com>
4161
4162         * exp_util.adb (Remove_Side_Effects): An access value which designates
4163         a volatile object of a nonvolatile type is prohibited.
4164         Do not call Make_Reference to construct a reference to such an object.
4165
4166 2010-08-05  Robert Dewar  <dewar@adacore.com>
4167
4168         * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
4169         * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
4170         a-suewen.adb, a-suewen.ads: New files.
4171         * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
4172         encoding packages.
4173         * sem_elab.adb: Minor reformatting.
4174
4175 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
4176
4177         * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
4178         * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
4179         in case of null Comp.
4180
4181 2010-08-05  Robert Dewar  <dewar@adacore.com>
4182
4183         * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
4184
4185 2010-08-05  Gary Dismukes  <dismukes@adacore.com>
4186
4187         * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
4188         nested access type whose designated type has tasks or is a protected
4189         object when the restrictions No_Task_Hierarchy or
4190         No_Local_Protected_Objects apply. Add ??? comment.
4191         * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
4192         type is not a library-level type and No_Local_Protected_Objects applies.
4193         (Analyze_Task_Type): Give a warning when a task type is not a
4194         library-level type and No_Task_Hierarchy applies.
4195
4196 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
4197
4198         * sem.adb: Minor reformatting
4199         * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
4200         mode, not useful.
4201
4202 2010-08-04  Eric Botcazou  <ebotcazou@adacore.com>
4203
4204         * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
4205         include expr.h.
4206         (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
4207         for the debug-only entity.
4208         * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
4209
4210 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4211
4212         * gcc-interface/lang-specs.h: Don't pass -a options.
4213
4214 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
4215
4216         * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
4217         options.  Check canonical_option_num_elements on options copied.
4218
4219 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4220
4221         * gcc-interface/misc.c (gnat_handle_option): Update prototype and
4222         return value type.  Don't check for missing arguments here.
4223
4224 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4225
4226         * gcc-interface/misc.c (gnat_option_lang_mask): New.
4227         (gnat_init_options): Update prototype.  Reconstruct argv array
4228         from decoded options.
4229
4230 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
4231
4232         * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
4233         case, merge the alias set of the old pointer type.
4234
4235 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
4236
4237         * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
4238         and recurse only for multidimensional array types instead.
4239
4240 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4241
4242         PR ada/44892
4243         * gcc-interface/utils.c (convert): Fix thinko in test.
4244         (unchecked_convert): When converting from a scalar type to a type with
4245         a different size, pad to have the same size on both sides.
4246
4247 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4248
4249         * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
4250         equality for the component type of array types.
4251
4252 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4253
4254         * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4255         * gcc-interface/trans.c: Likewise.
4256         * gcc-interface/utils.c: Likewise.
4257         * gcc-interface/utils2.c: Likewise.
4258
4259 2010-07-13  Laurent GUERBY  <laurent@guerby.net>
4260
4261         PR bootstrap/44458
4262         * gcc-interface/targtyps.c: Include tm_p.h.
4263         * gcc-interface/Make-lang.in: Update dependencies.
4264
4265 2010-07-09  Eric Botcazou  <ebotcazou@adacore.com>
4266
4267         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
4268         CALL_EXPR.
4269
4270 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4271
4272         * gcc-interface/utils.c: Include diagnostic-core.h in every file
4273         that includes toplev.h.
4274
4275 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4276
4277         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
4278         Branch to common code handling the alignment of discrete types.
4279         <E_Signed_Integer_Type>: Likewise.
4280         <E_Modular_Integer_Type>: Likewise.
4281
4282 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4283
4284         * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
4285         (gnat_handle_option): Allocate only one element for gnat_argv.
4286         (gnat_init): Do not populate gnat_argv.
4287
4288 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4289
4290         * gcc-interface/trans.c: Do not include tree-flow.h.
4291         * gcc-interface/Make-lang.in: Adjust dependencies.
4292
4293 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4294
4295         * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
4296         of a TREE_LIST.  Update comment.
4297         * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
4298         Adjust call to gnat_build_constructor.
4299         (Attribute_to_gnu): Likewise.
4300         (gnat_to_gnu): Likewise.
4301         (pos_to_constructor): Likewise.
4302         (extract_values): Likewise.
4303         * gcc-interface/utils.c (build_template): Likewise.
4304         (convert_vms_descriptor64): Likewise.
4305         (convert_vms_descriptor32): Likewise.
4306         (convert_to_fat_pointer): Likewise.
4307         (convert): Likewise.
4308         (unchecked_convert): Likewise.
4309         * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
4310         * gcc-interface/utils2.c (build_allocator): Likewise.
4311         (fill_vms_descriptor): Likewise.
4312         (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
4313         (compare_elmt_bitpos): Adjust for parameters being constructor_elts
4314         instead of TREE_LISTs.
4315
4316 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4317
4318         * gcc-interface/misc.c: Do not include except.h.
4319         * gcc-interface/Make-lang.in: Update dependencies.
4320
4321 2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4322
4323         * gcc-interface/trans.c: Include tree-flow.h.
4324         (gnu_switch_label_stack): Delete.
4325         (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
4326         its associated block cannot fall through.  Do not emit the final label
4327         if no cases branch to it.
4328         * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
4329
4330 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4331
4332         * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
4333         reference to a protected subprogram outside of the protected's scope,
4334         ensure the corresponding external subprogram is frozen before the
4335         reference.
4336
4337 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4338
4339         * sem_prag.adb: Fix typo in error message.
4340         * sem.adb: Refine previous change.
4341
4342 2010-06-23  Robert Dewar  <dewar@adacore.com>
4343
4344         * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
4345         a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
4346         Implement Ada 2012 string encoding packages.
4347
4348 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4349
4350         * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
4351         a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
4352         a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
4353         a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
4354         files.
4355         * gcc-interface/Makefile.in: Enable use of above files.
4356
4357 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4358
4359         * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
4360         of address clauses if if Ignore_Rep_Clauses is active.
4361         * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
4362         remove address clause from tree so that it does not reach the backend.
4363
4364 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4365
4366         * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
4367         expand 'Valid from user code in CodePeer mode, will be handled by the
4368         back-end directly.
4369
4370 2010-06-23  Bob Duff  <duff@adacore.com>
4371
4372         * g-comlin.ads: Minor comment improvements.
4373
4374 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4375
4376         * sem_res.adb (Uses_SS): The expression that initializes a controlled
4377         component of a record type may be a user-defined operator that is
4378         rewritten as a function call.
4379
4380 2010-06-23  Bob Duff  <duff@adacore.com>
4381
4382         * g-comlin.ads, sem_ch13.adb: Minor comment fix.
4383
4384 2010-06-23  Eric Botcazou  <ebotcazou@adacore.com>
4385
4386         * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
4387         label to the new sequence of statements.  Set the sloc of the raise
4388         statement onto the new goto statements.
4389
4390 2010-06-23  Robert Dewar  <dewar@adacore.com>
4391
4392         * a-stuten.ads, a-stuten.adb: New files.
4393         * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
4394         * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
4395
4396 2010-06-23  Robert Dewar  <dewar@adacore.com>
4397
4398         * gnat_ugn.texi: Add documentation of -gnat12 switch
4399         Add documentation of -gnatX switch.
4400
4401 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4402
4403         * inline.ads: Include the current Ada_Version in the info for pending
4404         instance bodies, so that declaration and body are compiled with the
4405         same Ada_Version.
4406         * inline.adb: Move with_clause for Opt to spec.
4407         * sem_ch12.adb (Analyze_Package_Instantiation,
4408         Analyze_Subprogram_Instantiation): Save current Ada_Version in
4409         Pending_Instantiation information.
4410         (Instantiate_Package_Body, Instantiate_Subprogram_Body,
4411         Inline_Package_Body): Use the Ada_Version present in the body
4412         information.
4413
4414 2010-06-23  Robert Dewar  <dewar@adacore.com>
4415
4416         * usage.adb: Add documentation for -gnat12 switch.
4417         * errout.ads: Add VMS alias entry for -gnat12 switch
4418         * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
4419         Add documentation for pragma Extensions_Allowed.
4420         * opt.ads: Add entry for Ada 2012 mode.
4421         * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
4422         features.
4423         * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
4424         Ada_2012.
4425         * sem_ch13.adb: Add handling for Ada 2012 mode.
4426         * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
4427         * switch-c.adb: Add handling for -gnat12 switch.
4428         Implement -gnat2005 and -gnat2012.
4429         * usage.adb: Add documentation for -gnat12 switch.
4430         * vms_data.ads: Add /12 switch for Ada 2012 mode.
4431
4432 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4433
4434         * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
4435         No_Task_Hierarchy restriction. Add comment.
4436         * exp_ch9.adb, exp_ch3.adb: Update comments.
4437
4438 2010-06-23  Robert Dewar  <dewar@adacore.com>
4439
4440         * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
4441         * sem_res.adb: Add comments.
4442         * sem_util.adb: Minor reformatting. Add comments.
4443         Change increment on Actuals_In_Call table.
4444         * opt.ads: Minor: add 'constant'.
4445
4446 2010-06-23  Javier Miranda  <miranda@adacore.com>
4447
4448         * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
4449         TSD to Null_Address if No_Dispatching_Calls is active.
4450
4451 2010-06-23  Vincent Celier  <celier@adacore.com>
4452
4453         * a-comlin.ads: Indicate that use of this package is not supported
4454         during the elaboration of an auto-initialized Stand-Alone Library.
4455
4456 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4457
4458         * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
4459         alignment clause on a record type to determine if a component may be
4460         misaligned. The decision must be taken in the back-end where target
4461         alignment information is known.
4462
4463 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4464
4465         * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
4466         systematically in CodePeer mode to simplify generated code.
4467         * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
4468         * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
4469         No_Task_Hierarchy is set instead of crasshing.
4470
4471 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4472
4473         * sem_util.adb: Minor code cleanup: test for proper entity instead of
4474         testing just Chars attribute when checking whether a given scope is
4475         System.
4476         * exp_ch4.adb, einfo.adb: Minor reformatting.
4477
4478 2010-06-23  Vincent Celier  <celier@adacore.com>
4479
4480         PR ada/44633
4481         * switch-m.adb (Normalize_Compiler_Switches): Take into account
4482         switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
4483         -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
4484
4485 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4486
4487         * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
4488         operation with a universal real operand, and the right operand is a
4489         range with universal bounds, find unique fixed point that may be
4490         candidate, and warn appropriately.
4491
4492 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4493
4494         * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
4495         properly the rare cases where VMS operators are visible through
4496         Extend_System, but the default System is being used and Address is a
4497         private type.
4498         * sem_util.adb: Widen predicate Is_VMS_Operator.
4499
4500 2010-06-23  Vincent Celier  <celier@adacore.com>
4501
4502         * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
4503         and -gnateS.
4504
4505 2010-06-23  Olivier Hainque  <hainque@adacore.com>
4506
4507         * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
4508         Interface_Name as foreign. These are GCC builtin imports for
4509         which Ada specific processing doesn't apply.
4510
4511 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4512
4513         * sem_ch12.adb: Minor reformatting.
4514
4515 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4516
4517         * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
4518         determine whether an intrinsic subprogram is VMS specific.
4519
4520 2010-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
4521
4522         * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
4523         is present in the entity.
4524
4525 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4526
4527         * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
4528         Fix handling of parameters.
4529         Add protection against unexpected cases.
4530         * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
4531         access level, since "A" suffix is already used elsewhere. Similarly,
4532         use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
4533         for xxx'Class.
4534
4535 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4536
4537         * sem_util.adb, sem_util.ads: Minor reformatting.
4538
4539 2010-06-23  Vincent Celier  <celier@adacore.com>
4540
4541         * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
4542         the previous behavior of gprclean when there are missing files.
4543
4544 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4545
4546         * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
4547         generic body is not a fatal error.
4548         (Mark_Context): Handle properly names of child units.
4549         * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
4550         instantiations.
4551
4552 2010-06-23  Vincent Celier  <celier@adacore.com>
4553
4554         * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
4555         non-empty line.
4556
4557 2010-06-23  Bob Duff  <duff@adacore.com>
4558
4559         * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
4560         Memory_Space, because CPU_Time doesn't seem to provide any significant
4561         speed advantage in practice. Cleanup: Get rid of constant
4562         Default_Optimization; doesn't seem to add anything. Use case
4563         statements instead of if statements; seems cleaner.
4564
4565 2010-06-23  Olivier Hainque  <hainque@adacore.com>
4566
4567         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
4568         Wshadow instead of Wextra to guard warning on absence of internal
4569         builtin decl for an import.  Fix use of quote in warning text.
4570         (intrin_arglists_compatible_p): Remove processing of integer trailing
4571         args on the Ada side.  Fix use of literal > in warning text.
4572         (intrin_return_compatible_p): Never warn on "function imported as
4573         procedure".  Defer the void/void case to the common type compatibility
4574         check.
4575         (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
4576         of GCC builtin imports.
4577
4578 2010-06-23  Olivier Hainque  <hainque@adacore.com>
4579
4580         * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
4581         helper for ...
4582         (intrin_arglists_compatible_p, intrin_return_compatible_p): New
4583         functions, helpers for ...
4584         (intrin_profiles_compatible_p): New function, replacement for ...
4585         (compatible_signatures_p): Removed.
4586         (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
4587         attempt to bind an unregistered builtin function.  When we have
4588         one, use it and warn on profile incompatibilities.
4589
4590 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4591
4592         * gcc-interface/Make-lang.in: Update dependencies.
4593
4594 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4595
4596         * sem_util.adb (Mark_Coextensions): If the expression in the allocator
4597         for a coextension in an object declaration is a concatenation, treat
4598         coextension as dynamic.
4599
4600 2010-06-23  Javier Miranda  <miranda@adacore.com>
4601
4602         * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
4603         internal entities are added to the scope of the tagged type.
4604         (Derive_Subprograms): Do not stop derivation when we find the first
4605         internal entity that has attribute Interface_Alias. After the change
4606         done to Override_Dispatching_Operations it is no longer true that
4607         these primirives are always located at the end of the list of
4608         primitives.
4609         * einfo.ads (Primitive_Operations): Add documentation.
4610         * exp_disp.adb (Write_DT): Improve output adding to the name of the
4611         primitive a prefix indicating its corresponding tagged type.
4612         * sem_disp.adb (Override_Dispatching_Operations): If the overridden
4613         entity covers the primitive of an interface that is not an ancestor of
4614         this tagged type then the new primitive is added at the end of the list
4615         of primitives.  Required to fulfill the C++ ABI.
4616
4617 2010-06-23  Javier Miranda  <miranda@adacore.com>
4618
4619         * atree.ads (Set_Reporting_Proc): New subprogram.
4620         * atree.adb: Remove dependency on packages Opt and SCIL_LL.
4621         (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
4622         to routines of package Scil_ll by indirect call to the registered
4623         subprogram.
4624         (Set_Reporting_Proc): New subprogram. Used to register a subprogram
4625         that is invoked when a node is allocated, replaced or rewritten.
4626         * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
4627         the SCIL node. Used as argument for Set_Reporting_Proc.
4628         (Initialize): Register Copy_SCIL_Node as the reporting routine that
4629         is invoked by atree.
4630
4631 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4632
4633         * sem_ch3.ads: Minor reformatting.
4634
4635 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4636
4637         * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
4638         always analyze the generic body and instance, because it may be needed
4639         downstream.
4640         (Mark_Context): Prepend the with clauses for needed generic units, so
4641         they appear in a better order for CodePeer.
4642         * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
4643
4644 2010-06-23  Emmanuel Briot  <briot@adacore.com>
4645
4646         * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
4647
4648 2010-06-23  Robert Dewar  <dewar@adacore.com>
4649
4650         * g-pehage.adb, exp_ch13.adb: Minor reformatting.
4651
4652 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4653
4654         * a-tags.ads: Fix description of TSD structure.
4655
4656 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4657
4658         * sem_ch12.adb (Mark_Context): When indicating that the body of a
4659         generic unit is needed prior to the unit containing an instantiation,
4660         search recursively the context of the generic to add other generic
4661         bodies that may be instantiated indirectly through the current instance.
4662
4663 2010-06-23  Robert Dewar  <dewar@adacore.com>
4664
4665         * freeze.adb: Minor reformatting.
4666
4667 2010-06-23  Bob Duff  <duff@adacore.com>
4668
4669         * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
4670
4671 2010-06-23  Vincent Celier  <celier@adacore.com>
4672
4673         * make.adb (Compile_Sources): Complete previous change.
4674
4675 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4676
4677         * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
4678         Constrained extra formal.
4679
4680 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4681
4682         * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
4683         Initialize_Scalars are enabled, compile the generated equality function
4684         for a composite type with full checks enabled, so that validity checks
4685         are performed on individual components.
4686
4687 2010-06-23  Emmanuel Briot  <briot@adacore.com>
4688
4689         * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
4690         Missing_Source_Files.
4691
4692 2010-06-23  Robert Dewar  <dewar@adacore.com>
4693
4694         * exp_ch3.adb, exp_util.adb: Minor reformatting.
4695
4696 2010-06-23  Jose Ruiz  <ruiz@adacore.com>
4697
4698         * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
4699         run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
4700         Clock (without delays) use a run time which is properly initialized.
4701
4702 2010-06-23  Vincent Celier  <celier@adacore.com>
4703
4704         * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
4705         when -f -u and a main is specified on the command line. However,
4706         attempt to compile even when the ALI file is read-only when
4707         Must_Compile is True.
4708
4709 2010-06-23  Thomas Quinot  <quinot@adacore.com>
4710
4711         * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
4712
4713 2010-06-23  Javier Miranda  <miranda@adacore.com>
4714
4715         * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
4716         entities for parent types that are interfaces. Needed in generics to
4717         handle formals that implement interfaces.
4718         (Derive_Subprograms): Add assertion for derivation of tagged types that
4719         do not cover interfaces. For generics, complete code that handles
4720         derivation of type that covers interfaces because the previous
4721         condition was weak (it required only name consistency; arguments were
4722         not checked). Add new code to locate primitives covering interfaces
4723         defined in generic units or instantiatons.
4724         * sem_util.adb (Has_Interfaces): Add missing support for derived types.
4725         * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
4726         * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
4727         interfaces that are parents of the type because they share the primary
4728         dispatch table.
4729         (Register_Primitive): Do not register primitives of interfaces that
4730         are parents of the type.
4731         * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
4732         * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
4733         primitives skip primitives of interfaces that are parents of the type.
4734
4735 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4736
4737         * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
4738         attribute cannot be constant-folded if an index type is a formal type,
4739         or is derived from one.
4740         * checks.adb (Determine_Range): ditto.
4741
4742 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
4743
4744         * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
4745
4746 2010-06-23  Bob Duff  <duff@adacore.com>
4747
4748         * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
4749         (Insert): Disallow nul characters.
4750         (misc output routines): Assert no nul characters.
4751
4752 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
4753
4754         * exp_ch4.adb: Use predefined unsigned type in all cases.
4755
4756 2010-06-23  Bob Duff  <duff@adacore.com>
4757
4758         * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
4759         * g-pehage.ads: Minor comment fixes.
4760         * g-pehage.adb: Minor: Add some additional debugging printouts under
4761         Verbose flag.
4762
4763 2010-06-23  Robert Dewar  <dewar@adacore.com>
4764
4765         * binde.adb (Better_Choice): Always prefer Pure/Preelab.
4766         (Worse_Choice): Always prefer Pure/Preelab.
4767
4768 2010-06-23  Vincent Celier  <celier@adacore.com>
4769
4770         * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
4771
4772 2010-06-23  Robert Dewar  <dewar@adacore.com>
4773
4774         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
4775         checking returns in generic case.
4776         (Check_Missing_Return): New procedure.
4777
4778 2010-06-23  Robert Dewar  <dewar@adacore.com>
4779
4780         * bindgen.adb, switch-b.adb: Minor reformatting.
4781
4782 2010-06-23  Javier Miranda  <miranda@adacore.com>
4783
4784         * frontend.adb (Frontend): Add call to initialize the new package
4785         SCIL_LL.
4786         * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
4787         Adjust_SCIL_Node.
4788         (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
4789         * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
4790         Adjust_SCIL_Node.
4791         * exp_util.adb (Insert_Actions): Remove code for
4792         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4793         (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
4794         * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
4795         N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
4796         (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
4797         * sinfo.ads (SCIL_Related_Node): Field removed.
4798         (N_SCIL_Dispatch_Table_Object_Init): Node removed.
4799         (N_SCIL_Tag_Init): Node removed.
4800         * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
4801         (Check_SCIL_Node): New implementation.
4802         (Find_SCIL_Node): Removed.
4803         * sem.adb (Analyze): Remove management of
4804         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4805         * sem_util.adb (Insert_Explicit_Dereference): Remove call to
4806         Adjust_SCIL_Node.
4807         * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
4808         Set_SCIL_Related_Node and avoid adding the SCIL node before the
4809         referenced node using Insert_Action because this is not longer
4810         required.
4811         (Expand_Short_Circuit_Operator): Remove call to SCIL node.
4812         * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
4813         * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
4814         Adjust_SCIL_Node.
4815         * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
4816         because we no longer require to generate the SCIL node before the call.
4817         (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
4818         Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
4819         nodes before the referenced node using Insert_Action because this
4820         is not longer required.
4821         * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
4822         update the SCIL_Node field.
4823         * sprint.adb (Sprint_Node_Actual): Remove code for
4824         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4825         * treepr.adb (Print_Node): Print the SCIL node field (if available).
4826         * exp_ch3.adb (Build_Init_Procedure): Remove generation of
4827         SCIL_Tag_Init nodes.
4828         * scil_ll.ads, scil_ll.adb: New files.
4829         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4830         dependencies.
4831
4832 2010-06-23  Robert Dewar  <dewar@adacore.com>
4833
4834         * sem_ch6.adb: Minor reformatting.
4835
4836 2010-06-23  Doug Rupp  <rupp@adacore.com>
4837
4838         * bindusg.adb (Display): Write -Hnn line.
4839         * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as 
4840         necessary.
4841         * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
4842         valid values to 32 and 64.
4843         (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
4844         ENABLE, DISABLE as valid settings.
4845         * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
4846         * opt.ads (Heap_Size): New global variable.
4847         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant 
4848         TARGET_MALLOC64 check. Fix comment.
4849
4850 2010-06-23  Robert Dewar  <dewar@adacore.com>
4851
4852         * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
4853         reformatting.  Add comments.
4854         * errout.adb (Finalize): Properly adjust warning count when deleting
4855         continuations.
4856
4857 2010-06-22  Robert Dewar  <dewar@adacore.com>
4858
4859         * errout.adb (Finalize): Set Prev pointers.
4860         (Finalize): Delete continuations for deletion by warnings off(str).
4861         * erroutc.ads: Add Prev pointer to error message structure.
4862
4863 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
4864
4865         * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
4866         child unit, examine context of parent units to locate instantiated
4867         generics whose bodies may be needed. 
4868         * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
4869         with_clause for the instantiated generic, examine the context of its
4870         parents, to set Withed_Body flag, so that it can be visited earlier.
4871         * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
4872         an unsigned type, use a type of the proper size for the intermediate
4873         value, to prevent alignment problems on unchecked conversion.
4874
4875 2010-06-22  Geert Bosch  <bosch@adacore.com>
4876
4877         * s-rannum.ads Change Generator type to be self-referential to allow
4878         Random to update its argument. Use "in" mode for the generator in the
4879         Reset procedures to allow them to be called from the Ada.Numerics
4880         packages without tricks.
4881         * s-rannum.adb: Use the self-referencing argument to get write access
4882         to the internal state of the random generator.
4883         * a-nudira.ads: Make Generator a derived type of
4884         System.Random_Numbers.Generator.
4885         * a-nudira.adb: Remove use of 'Unrestricted_Access.
4886         Put subprograms in alpha order and add headers.
4887         * g-mbdira.ads: Change Generator type to be self-referential.
4888         * g-mbdira.adb: Remove use of 'Unrestricted_Access.
4889
4890 2010-06-22  Robert Dewar  <dewar@adacore.com>
4891
4892         * freeze.adb: Minor reformatting
4893         Minor code reorganization (use Nkind_In and Ekind_In).
4894
4895 2010-06-22  Bob Duff  <duff@adacore.com>
4896
4897         * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using 
4898         -gnatc when a file is compiled that we cannot generate code for, not
4899         helpful and confusing.
4900
4901 2010-06-22  Vincent Celier  <celier@adacore.com>
4902
4903         * switch-m.adb (Normalize_Compiler_Switches): Process correctly
4904         switches -gnatknn.
4905
4906 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
4907
4908         * s-rannum.adb: Replace constants with commented symbols.
4909         * s-rannum.ads: Explain significance of the initial value of the data
4910         structure.
4911
4912 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
4913
4914         * a-ngcoty.adb: Clarify comment.
4915
4916 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
4917
4918         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
4919         expansion for indexing packed arrays with small power-of-2 component
4920         sizes when the target is AAMP.
4921         (Expand_Packed_Element_Reference): Return without expansion for
4922         indexing packed arrays with small power-of-2 component sizes when the
4923         target is AAMP.
4924
4925 2010-06-22  Geert Bosch  <bosch@adacore.com>
4926
4927         * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
4928         Float'Range.
4929
4930 2010-06-22  Robert Dewar  <dewar@adacore.com>
4931
4932         * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
4933         updates.
4934
4935 2010-06-22  Doug Rupp  <rupp@adacore.com>
4936
4937         * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
4938         packages.
4939         * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
4940         (pragma Ident): Add a default ident string in the private part.
4941
4942 2010-06-22  Robert Dewar  <dewar@adacore.com>
4943
4944         * cstand.adb: Minor reformatting.
4945
4946 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
4947
4948         * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
4949         recognize the Shift and Rotation intrinsics that are known to the
4950         compiler but have no interface name.
4951
4952 2010-06-22  Geert Bosch  <bosch@adacore.com>
4953
4954         * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
4955         scaling in case of overflow or NaN results.
4956
4957 2010-06-22  Robert Dewar  <dewar@adacore.com>
4958
4959         * cstand.adb: Complete previous change.
4960         * g-dirope.ads: Add comment.
4961         * s-stchop.adb, sfn_scan.adb: Minor reformatting.
4962
4963 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
4964
4965         * cstand.adb: Add tree nodes for pragma Pack on string types.
4966
4967 2010-06-22  Javier Miranda  <miranda@adacore.com>
4968
4969         * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
4970         * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
4971         formal of a primitive.
4972         * exp_disp.adb (Is_Predefined_Dispatching_Operation,
4973          Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
4974         formal of a primitive.
4975         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
4976         to obtain the last formal of a primitive.
4977
4978 2010-06-22  Geert Bosch  <bosch@adacore.com>
4979
4980         * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
4981         depending on __EMX__ or MSDOS being defined.
4982         * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
4983         * a-excpol-abort.adb: Update comment indicating users of the file.
4984         * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
4985         Windows.
4986         * env.c: Remove empty conditional for MSDOS.
4987         * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
4988         of OS/2 in comment.
4989
4990 2010-06-22  Robert Dewar  <dewar@adacore.com>
4991
4992         * s-rannum.adb: Minor reformatting.
4993
4994 2010-06-22  Javier Miranda  <miranda@adacore.com>
4995
4996         * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
4997         exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
4998         package Sem_Util to package Sem_Aux.
4999
5000 2010-06-22  Javier Miranda  <miranda@adacore.com>
5001
5002         * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5003         remove useless restriction on imported routines when building the
5004         dispatch tables.
5005
5006 2010-06-22  Robert Dewar  <dewar@adacore.com>
5007
5008         * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5009         types.
5010
5011 2010-06-22  Javier Miranda  <miranda@adacore.com>
5012
5013         * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
5014         generic subprogram declarations to ensure proper context. Add missing
5015         support for generic actuals.
5016         (Try_Primitive_Operation): Add missing support for concurrent types
5017         that have no Corresponding_Record_Type. Required to diagnose errors
5018         compiling
5019         generics or when compiling with no code generation (-gnatc).
5020         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
5021         the corresponding record type.
5022         * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
5023         documentation. Do minimum decoration when processing a primitive of a
5024         concurrent tagged type that covers interfaces. Required to diagnose
5025         errors in the Object.Operation notation compiling generics or under
5026         -gnatc.
5027         * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
5028         propagation of attribute Interface_List to the corresponding record.
5029         (Expand_N_Task_Type_Declaration): Code cleanup.
5030         (Expand_N_Protected_Type_Declaration): Code cleanup.
5031
5032 2010-06-22  Matthew Heaney  <heaney@adacore.com>
5033
5034         * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5035
5036 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
5037
5038         * s-rannum.adb (Random_Float_Template): Replace with unbiased version
5039         that is able to produce all representable floating-point numbers in the
5040         unit interval. Remove template parameter Shift_Right, no longer used.
5041         * gnat_rm.texi: Document the period of the pseudo-random number
5042         generator under the description of its algorithm.
5043         * gcc-interface/Make-lang.in: Update dependencies.
5044
5045 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5046
5047         * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5048         reference to discriminant (can be an expanded name as well as an
5049         identifier).
5050
5051 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5052
5053         * exp_ch6.adb: Clarify comment.
5054
5055 2010-06-22  Geert Bosch  <bosch@adacore.com>
5056
5057         * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
5058         with decimal small as decimal types, avoiding FP arithmetic.
5059         (Has_Decimal_Small): New function.
5060         * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
5061         fixed point types.
5062         * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
5063         callers to call the new function in Einfo that takes the entity as
5064         parameter.
5065
5066 2010-06-22  Robert Dewar  <dewar@adacore.com>
5067
5068         * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5069
5070 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5071
5072         * sem_elab.adb: Minor reformatting.
5073
5074 2010-06-22  Vincent Celier  <celier@adacore.com>
5075
5076         * gnatsym.adb: Put the object files in the table in increasing
5077         aphabetical order of base names.
5078
5079 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5080
5081         * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
5082         Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
5083         the corresponding discriminal within a record declaration.
5084
5085 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5086
5087         * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
5088         expression referring to a discriminal of the type of the aggregate (not
5089         a discriminal of some other unrelated type), and the prefix in the
5090         generated selected component must come from Lhs, not Obj.
5091
5092 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5093
5094         * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5095         when to freeze the parent type.
5096
5097 2010-06-22  Robert Dewar  <dewar@adacore.com>
5098
5099         * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
5100         exp_aggr.adb: Minor reformatting.
5101         * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
5102         GNAT.MBSS_Float_Random.
5103         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
5104
5105 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
5106
5107         * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
5108         gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
5109         (Random_Float_Template, Random): New method of creating
5110         uniform floating-point variables that allow the creation of all machine
5111         values in [0 .. 1).  
5112
5113         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5114
5115 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
5116
5117         * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
5118         to abstract targets to check that the type is tagged and comes from
5119         source, rather than only testing for targets of interface types. Remove
5120         premature return.
5121
5122 2010-06-22  Vincent Celier  <celier@adacore.com>
5123
5124         * vms_data.ads: Modify the declarations of qualifiers
5125         /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5126         without error.
5127
5128 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5129
5130         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5131         expansion is disabled.
5132
5133 2010-06-22  Robert Dewar  <dewar@adacore.com>
5134
5135         * makeusg.adb: Minor reformatting.
5136
5137 2010-06-22  Robert Dewar  <dewar@adacore.com>
5138
5139         * types.ads: (Dint): Removed, no longer used anywhere.
5140         * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
5141         (UI_Mul): Avoid use of UI_From_Dint.
5142         (UI_From_Dint): Removed, not used.
5143         * uintp.ads (UI_From_Dint): Removed, not used.
5144         (Uint_Min/Max_Simple_Mul): New constants.
5145
5146 2010-06-22  Vincent Celier  <celier@adacore.com>
5147
5148         * clean.adb (Parse_Cmd_Line): Recognize switch
5149         --unchecked-shared-lib-imports.
5150         (Usage): Add line for switch --unchecked-shared-lib-imports
5151         * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
5152         * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
5153         moved from GPR_Util.
5154         * switch-m.adb (Scan_Make_Switches): Recognize switch
5155         --unchecked-shared-lib-imports.
5156         * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
5157         * gnat_ugn.texi: Add documentation for new switch
5158         --unchecked-shared-lib-imports.  Add also documentation for --subdirs.
5159
5160 2010-06-22  Javier Miranda  <miranda@adacore.com>
5161
5162         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
5163         exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
5164         this patch replaces duplication of code that traverses the chain of
5165         aliased primitives by a call to routine Ultimate_Alias that
5166         provides this functionality.
5167
5168 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5169
5170         * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
5171         sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
5172         Warnings Off/On.
5173
5174 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5175
5176         * einfo.ads: Minor reformatting.
5177
5178 2010-06-22  Javier Miranda  <miranda@adacore.com>
5179
5180         * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
5181         eliminated primitives.
5182         (Make_DT): Avoid referencing eliminated primitives.
5183         (Register_Primitive): Do not register eliminated primitives in the
5184         dispatch table. Required to add this functionality when the program is
5185         compiled without static dispatch tables (-gnatd.t)
5186
5187 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5188
5189         * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
5190         tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
5191         warnings on use of internal GNAT units.
5192
5193 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
5194
5195         * s-taprop-vxworks.adb (Set_Priority): Update comments.
5196
5197 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
5198
5199         * s-rannum.adb: Make stylistic change to remove mystery constant in
5200         Extract_Value.  Image_Numeral_Length: new symbolic constant.
5201
5202 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5203
5204         * einfo.ads, einfo.adb: Make Is_Protected_Interface,
5205         Is_Synchronized_Interface, Is_Task_Interface into computable
5206         predicates, to free three flags in entity nodes.
5207         * sem_ch3.adb: Remove setting of these flags.
5208
5209 2010-06-22  Robert Dewar  <dewar@adacore.com>
5210
5211         * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
5212         reformatting.
5213         * s-taprop-vxworks.adb: Add comment for Set_Priority.
5214         * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
5215         * projects.texi: Move @cindex to the left margin, since otherwise we
5216         are missing entries in the index.
5217
5218 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5219
5220         * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
5221         packages from the GNAT hierarchy instead of System when possible.
5222         * gcc-interface/Make-lang.in: Update dependencies.
5223
5224 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
5225
5226         * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
5227         previously in place to reorder the ready queue when a task drops its
5228         priority due to the loss of inherited priority.
5229
5230 2010-06-22  Vincent Celier  <celier@adacore.com>
5231
5232         * projects.texi: Minor spelling error fixes.
5233         Minor reformatting.
5234
5235 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5236
5237         * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
5238         warnings for some with clauses.
5239
5240 2010-06-22  Robert Dewar  <dewar@adacore.com>
5241
5242         * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
5243         test to catch more cases where first subtype is the results we want.
5244         * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
5245         error case, since Errout will now handle this correctly.
5246         * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
5247         Update dependencies.
5248
5249 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5250
5251         * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
5252         when calling Make_Temporary.
5253
5254 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5255
5256         * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
5257         subprogram can be associated with an entry body.
5258
5259 2010-06-22  Robert Dewar  <dewar@adacore.com>
5260
5261         * scos.ads: Add note on membership test handling.
5262
5263 2010-06-22  Vincent Celier  <celier@adacore.com>
5264
5265         * projects.texi: Minor spelling fixes.
5266         Minor reformatting.
5267
5268 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
5269
5270         * s-rannum.adb: Correct off-by-one error in Extract_Value.
5271
5272 2010-06-22  Vincent Celier  <celier@adacore.com>
5273
5274         * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
5275         argument.
5276         * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
5277         gcc command if it is too long.
5278
5279 2010-06-22  Robert Dewar  <dewar@adacore.com>
5280
5281         * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
5282
5283 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5284
5285         * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
5286         calling Make_Temporary.
5287
5288 2010-06-22  Robert Dewar  <dewar@adacore.com>
5289
5290         * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
5291
5292 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5293
5294         * sem_res.adb: Additional special-case for VMS.
5295
5296 2010-06-22  Vincent Celier  <celier@adacore.com>
5297
5298         * gnatsym.adb: Minor comment fix.
5299
5300 2010-06-22  Vincent Celier  <celier@adacore.com>
5301
5302         * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
5303
5304 2010-06-22  Robert Dewar  <dewar@adacore.com>
5305
5306         * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
5307         * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
5308         Ada 95 mode as an implementation defined attribute.
5309
5310 2010-06-22  Vincent Celier  <celier@adacore.com>
5311
5312         * bindusg.adb (Display): Update line for -R
5313         * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
5314         generated files when -R is used.
5315
5316 2010-06-22  Vincent Celier  <celier@adacore.com>
5317
5318         * prj-nmsc.adb (Lib_Data_Table): New table.
5319         (Check_Library_Attributes): Check if the same library name is used in
5320         two different projects that do not extend each other.
5321
5322 2010-06-22  Robert Dewar  <dewar@adacore.com>
5323
5324         * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
5325
5326 2010-06-22  Vincent Celier  <celier@adacore.com>
5327
5328         * adaint.c (__gnat_locate_regular_file): If a directory in the path is
5329         empty, make it the current working directory.
5330
5331 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5332
5333         * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
5334         private type with discriminants, make sure the parent type is frozen.
5335
5336 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
5337
5338         * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
5339         with packed array references specially.
5340         * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
5341         to a component of a bit packed array if it is the prefix of 'Bit.
5342         * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
5343         * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure.  Expand a
5344         'Bit reference, where the prefix involves a packed array reference.
5345         (Get_Base_And_Bit_Offset): New helper, extracted from...
5346         (Expand_Packed_Address_Reference): ...here.  Call above procedure to
5347         get the outer object and offset expression.
5348
5349 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5350
5351         * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
5352         * einfo.adb (Related_Expression, Set_Related_Expression): Add
5353         assertions.
5354
5355 2010-06-22  Javier Miranda  <miranda@adacore.com>
5356
5357         * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
5358         reorganization to properly check if the operation has been inherited as
5359         an abstract operation.
5360
5361 2010-06-22  Ed Falis  <falis@adacore.com>
5362
5363         * s-osinte-vxworks.ads: Complete previous change.
5364
5365 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5366
5367         * sem_res.adb: Add comment.
5368         * projects.texi, gnat_ugn.texi: Remove macro.
5369
5370 2010-06-22  Vincent Celier  <celier@adacore.com>
5371
5372         * prj-attr.adb: Remove project level attribute Main_Language.
5373
5374 2010-06-22  Robert Dewar  <dewar@adacore.com>
5375
5376         * switch-b.adb, osint-b.adb: Minor reformatting.
5377
5378 2010-06-22  Pascal Obry  <obry@adacore.com>
5379
5380         * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
5381         vector if previous send was not fully successful. If only part of
5382         the vector data was sent, we exit the loop.
5383
5384 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5385
5386         * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
5387         error reporting with generic types.
5388
5389 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5390
5391         * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
5392         osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
5393         vms_data.ads: Add a new command line switch -A to gnatbind to output
5394         the list of all ALI files for the partition.
5395
5396 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5397
5398         * s-osinte-vxworks.ads: Fix casing.
5399         * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
5400         change: Interfaces.C does not provide a long_long type.
5401
5402 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5403
5404         * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
5405         native user's guide, since this document contains the two versions.
5406         * gcc-interface/Make-lang.in: Update doc dependencies.
5407
5408 2010-06-22  Robert Dewar  <dewar@adacore.com>
5409
5410         * sem_ch3.adb: Minor reformatting.  Minor code reorganization.
5411
5412 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5413
5414         * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
5415         not build this file on its own (only through gnat_ugn.texi).
5416         Remove macro definitions and insert simpler version in gnat_ugn.texi.
5417
5418 2010-06-22  Robert Dewar  <dewar@adacore.com>
5419
5420         * ali-util.ads: Minor comment update.
5421         * g-socthi-mingw.adb: Minor reformatting.
5422
5423 2010-06-22  Ed Falis  <falis@adacore.com>
5424
5425         * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
5426         * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
5427         for specific versions of VxWorks.
5428
5429 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5430
5431         * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
5432         related sections from user's guide and reference manual, since they
5433         have now been merged together into a separate document (projects.texi).
5434         This removes a lot of duplication where attributes where described
5435         in several places.
5436         The grammar for the project files is now in each of the sections
5437         (packages,expressions,...) instead of being duplicates in two other
5438         sections (one in the user's guide that contained the full grammar,
5439         and various sections in the rm that contained extracts of the same
5440         grammar).
5441         Added the full list of all supported attributes, since existing lists
5442         were incomplete
5443         Rename "associative array" into "indexed attribute"
5444         Remove sections that were duplicates ("External References in
5445         Project Files" and "External Values", and "Project Extensions"
5446         for instance). The list of valid packages in project files is now in
5447         a single place.
5448
5449 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5450
5451         * sem_ch3.adb (Add_Internal_Interface_Entities): If
5452         Find_Primitive_Covering_Interface does not find the operation, it may
5453         be because of a name conflict between the inherited operation and a
5454         local non-overloadable name. In that case look for the operation among
5455         the primitive operations of the type. This search must succeed
5456         regardless of visibility.
5457
5458 2010-06-22  Pascal Obry  <obry@adacore.com>
5459
5460         * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
5461         (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
5462         recvmsg emulation.
5463
5464 2010-06-22  Robert Dewar  <dewar@adacore.com>
5465
5466         * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
5467         malformed tree.
5468         * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
5469         Ditto.
5470
5471 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5472
5473         * s-intman-vxworks.ads: Code clean up.
5474
5475 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5476
5477         * sem_res.adb (Resolve_Slice): When the prefix is an explicit
5478         dereference, construct actual subtype of designated object to generate
5479         proper bounds checks.
5480
5481 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5482
5483         * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
5484         Read_Withed_ALIs, which is more descriptive.
5485
5486 2010-06-22  Pascal Obry  <obry@adacore.com>
5487
5488         * g-sothco.ads: Minor reformatting.
5489         * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
5490         C_Sendmsg implementation.
5491         (C_Sendmsg): Do not use lock (not needed).
5492         (C_Recvmsg): Likewise and also do not wait for incoming data.
5493
5494 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5495
5496         * uintp.adb: Fix scope error in operator call.
5497
5498 2010-06-22  Vincent Celier  <celier@adacore.com>
5499
5500         * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
5501         * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
5502         autoconfiguration is needed, fail indicating that no config project
5503         file can be found, as there is no autoconfiguration on VMS.
5504
5505 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5506
5507         * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
5508         for an operator in a functional notation, when operands are universal.
5509
5510 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
5511
5512         * gcc-interface/Make-lang.in: Update dependencies.
5513
5514 2010-06-22  Robert Dewar  <dewar@adacore.com>
5515
5516         * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
5517         name.
5518         * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
5519         * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
5520         style check.
5521         * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
5522         literals.
5523
5524 2010-06-22  Vincent Celier  <celier@adacore.com>
5525
5526         * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
5527         it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
5528
5529 2010-06-22  Pascal Obry  <obry@adacore.com>
5530
5531         * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
5532         Windows.
5533         (C_Recvmsg): Make sure the routine is atomic. Also fully
5534         fill vectors in the proper order.
5535         (C_Sendmsg): Make sure the routine is atomic.
5536
5537 2010-06-22  Robert Dewar  <dewar@adacore.com>
5538
5539         * sem_ch8.adb: Update comment.
5540         * sem_res.adb: Minor code reorganization (use Ekind_In).
5541
5542 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5543
5544         * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
5545         name is a call, use the number of actuals to determine whether this is
5546         a binary or unary operator, rather than relying on later information
5547         to resolve the overload.
5548
5549 2010-06-22  Robert Dewar  <dewar@adacore.com>
5550
5551         * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
5552
5553 2010-06-22  Robert Dewar  <dewar@adacore.com>
5554
5555         * sem_ch3.adb, sem_disp.adb: Minor code fixes.
5556         * sem_eval.adb: Minor reformatting.
5557
5558 2010-06-22  Vincent Celier  <celier@adacore.com>
5559
5560         * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
5561         to gnatlink, except on Open VMS.
5562         * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
5563         object directories if -nostdlib is used.
5564
5565 2010-06-22  Robert Dewar  <dewar@adacore.com>
5566
5567         * sem_util.adb (Is_Delegate): Put in proper alpha order.
5568         * sem_eval.adb: Minor reformatting.
5569
5570 2010-06-22  Robert Dewar  <dewar@adacore.com>
5571
5572         * g-expect-vms.adb, sem_res.adb: Minor reformatting.
5573         * exp_aggr.adb: Minor comment changes and reformatting.
5574         * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
5575         order.
5576         * sem_util.ads: Add some missing pragma Inline's.
5577
5578 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5579
5580         * sem_util.adb (Build_Actual_Subtype): Record original expression in
5581         Related_Expression attribute of the constructed subtype.
5582         * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
5583         Node24 on types for...
5584         (Related_Expression): Make attribute available on types as well.
5585
5586 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
5587
5588         * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
5589         of Directly_Designated_Type when the type argument is an access type.
5590         (Find_Interface_Tag): Retrieve Designated_Type instead of
5591         Directly_Designated_Type when the type argument is an access type.
5592         (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
5593         Directly_Designated_Type of each access discriminant.
5594         * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
5595         instead of Directly_Designated_Type when the operand and target types
5596         are access types.
5597
5598 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5599
5600         * exp_aggr.adb (Flatten): Return False if one choice is statically
5601         known to be out of bounds.
5602
5603 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5604
5605         * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
5606         a parameterless function call, preserve parentheses of original
5607         expression, for proper handling by pretty printer.
5608         * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
5609         procedure, to handle quietly identifiers that have no entity names.
5610         * exp_util.adb (Get_Current_Value_Condition): If the parent of an
5611         elsif_part is missing, it has been rewritten as a nested if, and there
5612         is no useful information on the current value of the variable.
5613
5614 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
5615
5616         * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
5617         discriminals to the current scope.
5618         * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
5619         scope, which could overwrite a different already set value.
5620
5621 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
5622
5623         * sem_res.adb (Valid_Conversion): If expression is a predefined
5624         operator, use sloc of type of interpretation to improve error message
5625         when operand is of some derived type.
5626         * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
5627
5628 2010-06-22  Emmanuel Briot  <briot@adacore.com>
5629
5630         * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
5631         that it can set out parameters as well. When a process has died, reset
5632         its Input_Fd to Invalid_Fd, so that when using multiple processes we
5633         can find out which process has died.
5634
5635 2010-06-22  Thomas Quinot  <quinot@adacore.com>
5636
5637         * sem_eval.adb (Find_Universal_Operator_Type): New
5638         subprogram to identify the operand type of an operator on universal
5639         operands, when an explicit scope indication is present. Diagnose the
5640         case where such a call is ambiguous.
5641         (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
5642         Use the above to identify the operand type so it can be properly
5643         frozen.
5644         * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
5645         type, done in an arbitrary, possibly incorrect type (the presence of
5646         some numeric type in the scope is checked for legality, but when more
5647         than one such type is in the scope, we just pick a random one, not
5648         necessarily the expected one).
5649         * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
5650         subprogram.
5651
5652 2010-06-22  Robert Dewar  <dewar@adacore.com>
5653
5654         * sem_eval.adb: Minor reformatting.
5655
5656 2010-06-22  Robert Dewar  <dewar@adacore.com>
5657
5658         * exp_ch4.adb (Expand_N_Conditional_Expression): Use
5659         Expression_With_Actions to clean up the code generated when folding
5660         constant expressions.
5661
5662 2010-06-22  Vincent Celier  <celier@adacore.com>
5663
5664         * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
5665         Has_Process.
5666
5667 2010-06-22  Vincent Celier  <celier@adacore.com>
5668
5669         * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
5670         found, check if it's path has aready been found, whatever its index.
5671
5672 2010-06-22  Robert Dewar  <dewar@adacore.com>
5673
5674         * atree.adb, gnatbind.adb: Minor reformatting.
5675         Minor code reorganization.
5676
5677 2010-06-21  Robert Dewar  <dewar@adacore.com>
5678
5679         * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
5680         known at compile time.
5681
5682 2010-06-21  Gary Dismukes  <dismukes@adacore.com>
5683
5684         * atree.adb: Fix comment typo.
5685
5686 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
5687
5688         * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
5689         whether a universal arithmetic expression in a conversion, which is
5690         rewritten from a function call with an expanded name, is ambiguous.
5691
5692 2010-06-21  Vincent Celier  <celier@adacore.com>
5693
5694         * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
5695         source files in specified list of sources.
5696         (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
5697         are never used.
5698         (Add_Source): Set the Location of the new source
5699         (Process_Exceptions_File_Based): Call Add_Source with the Location
5700         (Get_Sources_From_File): If an exception is found, set its Listed to
5701         True
5702         (Find_Sources): When Source_Files is specified, if an exception is
5703         found, set its Listed to True. Remove any exception that is not in a
5704         specified list of sources.
5705         * prj.ads (Source_Data): New component Location
5706
5707 2010-06-21  Vincent Celier  <celier@adacore.com>
5708
5709         * gnatbind.adb (Closure_Sources): Global table, moved from block.
5710
5711 2010-06-21  Thomas Quinot  <quinot@adacore.com>
5712
5713         * sem_res.adb: Minor reformatting.
5714         * atree.adb: New debugging hook "rr" for node rewrites.
5715
5716 2010-06-21  Robert Dewar  <dewar@adacore.com>
5717
5718         * g-expect.ads, g-expect.adb: Minor reformatting.
5719
5720 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5721
5722         * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
5723
5724 2010-06-21  Arnaud Charlet  <charlet@adacore.com>
5725
5726         * gcc-interface/Make-lang.in: Update dependencies.
5727
5728 2010-06-21  Thomas Quinot  <quinot@adacore.com>
5729
5730         * bindgen.ads: Update comments.
5731
5732 2010-06-21  Vincent Celier  <celier@adacore.com>
5733
5734         * gnatbind.adb: Suppress dupicates when listing the sources in the
5735         closure (switch -R).
5736
5737 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5738
5739         * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
5740         is too small.
5741
5742 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5743
5744         * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
5745         New subprograms.
5746         (Expect_Internal): No longer raises an exception, so that it can set
5747         out parameters as well. When a process has died, reset its Input_Fd
5748         to Invalid_Fd, so that when using multiple processes we can find out
5749         which process has died.
5750
5751 2010-06-21  Robert Dewar  <dewar@adacore.com>
5752
5753         * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
5754         checks.adb, sem_res.adb: Minor reformatting. Add comments.
5755
5756 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
5757
5758         * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
5759         rederivation associated with a full declaration in a private part, and
5760         there is a partial view that derives the same parent subprogram, the
5761         new entity does not become visible. This check must be applied to
5762         interface operations as well.
5763
5764 2010-06-21  Thomas Quinot  <quinot@adacore.com>
5765
5766         * checks.adb: Add comments.
5767         * prj-nmsc.adb: Minor reformatting.
5768
5769 2010-06-21  Thomas Quinot  <quinot@adacore.com>
5770
5771         * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
5772         sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
5773         extract bounds, to ensure that we get the proper captured values,
5774         rather than an expression that may have changed value since the point
5775         where the subtype was elaborated.
5776         (Find_Body_Discriminal): New utility subprogram to share code
5777         between...
5778         (Eval_Attribute): For the case of a subtype bound that references a
5779         discriminant of the current concurrent type, insert appropriate
5780         discriminal reference.
5781         (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
5782         requeue to an entry in a family in the current task, use corresponding
5783         body discriminal. 
5784         (Analyze_Accept_Statement): Rely on expansion of attribute references
5785         to insert proper discriminal references in range check for entry in
5786         family.
5787
5788 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5789
5790         * s-regpat.adb (Compile): Fix handling of big patterns.
5791
5792 2010-06-21  Robert Dewar  <dewar@adacore.com>
5793
5794         * a-tifiio.adb: Minor reformatting.
5795
5796 2010-06-21  Pascal Obry  <obry@adacore.com>
5797
5798         * prj-nmsc.adb (Search_Directories): Use the non-translated directory
5799         path to open it.
5800
5801 2010-06-21  Javier Miranda  <miranda@adacore.com>
5802
5803         * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
5804         external name.
5805
5806 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
5807
5808         * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
5809         to hold the result, indicate that the target of the declaration does
5810         not need an initialization, to prevent spurious errors when
5811         Initialize_Scalars is enabled.
5812
5813 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
5814
5815         * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
5816         Fore is not bound by line length. The Fore parameter of the internal
5817         procedure that performs the operation is an integer.
5818
5819 2010-06-21  Thomas Quinot  <quinot@adacore.com>
5820
5821         * sem_res.adb, checks.adb: Minor reformatting.
5822
5823 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5824
5825         * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
5826         into Get_Next.
5827         (Insert_Operator_Before): New subprogram, avoids duplicated code
5828         (Compile): Avoid doing two compilations when the pattern matcher ends
5829         up being small.
5830
5831 2010-06-21  Emmanuel Briot  <briot@adacore.com>
5832
5833         * s-regpat.adb: Improve debug traces
5834         (Dump): Change output format to keep it smaller.
5835
5836 2010-06-21  Javier Miranda  <miranda@adacore.com>
5837
5838         * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
5839         output to the output file when this routine completes its work.
5840
5841 2010-06-20  Eric Botcazou  <ebotcazou@adacore.com>
5842
5843         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
5844         for loop.  Call build_constructor_from_list directly in the CICO case.
5845
5846 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
5847
5848         * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
5849         declaration appears in the same unit and ealier than the renamed
5850         entity, retain generated body to prevent order-of-elaboration issues in
5851         gigi.
5852
5853 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
5854
5855         * s-tpoben.adb: Update comments.
5856
5857 2010-06-18  Robert Dewar  <dewar@adacore.com>
5858
5859         * debug.adb: Minor comment change.
5860
5861 2010-06-18  Javier Miranda  <miranda@adacore.com>
5862
5863         * exp_cg.adb: Code clean up.
5864         * debug.adb: Complete documentation of switch -gnatd.Z.
5865         * gcc-interface/misc.c (callgraph_info_file): Declare.
5866
5867 2010-06-18  Javier Miranda  <miranda@adacore.com>
5868
5869         * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
5870
5871 2010-06-18  Thomas Quinot  <quinot@adacore.com>
5872
5873         * sprint.ads: Minor reformatting.
5874         * output.ads: Update obsolete comment.
5875
5876 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
5877
5878         * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
5879         an external intrinsic operation (e.g. a GCC numeric function) indicate
5880         that the renaming entity has the same characteristics, so a call to it
5881         is properly expanded.
5882
5883 2010-06-18  Javier Miranda  <miranda@adacore.com>
5884
5885         * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
5886         support for dispatch table/callgraph info generation.
5887         * gcc-interface/Make-lang.in: Update dependencies.
5888
5889 2010-06-18  Robert Dewar  <dewar@adacore.com>
5890
5891         * exp_ch6.adb: Minor reformatting.
5892         * gnatname.adb: Add comment.
5893
5894 2010-06-18  Vincent Celier  <celier@adacore.com>
5895
5896         * gnatname.adb (Scan_Args): When --and is used, make sure that the
5897         dynamic tables in the newly allocated Argument_Data are properly
5898         initialized.
5899
5900 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
5901
5902         * gnat1drv.adb: Fix comment.
5903
5904 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
5905
5906         * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
5907         renaming, re-expand the call with the renamed subprogram if that one
5908         is marked inlined as well.
5909
5910 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
5911
5912         * gnat1drv.adb (Adjust_Global_Switches): Enable
5913         Use_Expression_With_Actions for AAMP and VM targets.
5914
5915 2010-06-18  Vincent Celier  <celier@adacore.com>
5916
5917         * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
5918
5919 2010-06-18  Thomas Quinot  <quinot@adacore.com>
5920
5921         * exp_ch4.adb: Minor reformatting.
5922
5923 2010-06-18  Javier Miranda  <miranda@adacore.com>
5924
5925         * debug.ads Add documentation on -gnatd.Z.
5926
5927 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
5928
5929         * sem_elim.adb: Proper error message on improperly eliminated instances
5930
5931 2010-06-18  Vincent Celier  <celier@adacore.com>
5932
5933         * prj.ads (Response_File_Format): New value GCC.
5934
5935 2010-06-18  Thomas Quinot  <quinot@adacore.com>
5936
5937         * gnat1drv.adb: Minor reformatting.
5938
5939 2010-06-18  Robert Dewar  <dewar@adacore.com>
5940
5941         * make.adb, sem_cat.adb: Minor reformatting.
5942         * sem_eval.adb: Fix typos.
5943
5944 2010-06-18  Pascal Obry  <obry@adacore.com>
5945
5946         * prj-nmsc.adb: Fix source filenames casing in debug output.
5947
5948 2010-06-18  Robert Dewar  <dewar@adacore.com>
5949
5950         * gnatcmd.adb: Minor reformatting.
5951
5952 2010-06-18  Robert Dewar  <dewar@adacore.com>
5953
5954         * sem_eval.adb (Eval_Conditional_Expression): Result is static if
5955         condition and both sub-expressions are static (and result is selected
5956         expression).
5957
5958 2010-06-18  Robert Dewar  <dewar@adacore.com>
5959
5960         * g-pehage.adb: Minor reformatting
5961
5962 2010-06-18  Pascal Obry  <obry@adacore.com>
5963
5964         * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
5965         source hash table.
5966
5967 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
5968
5969         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5970         dependencies. Fix target pairs on darwin.
5971         (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
5972
5973 2010-06-18  Pascal Obry  <obry@adacore.com>
5974
5975         * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
5976
5977 2010-06-18  Vincent Celier  <celier@adacore.com>
5978
5979         * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
5980         configuration pragmas file and, if -U is not used, for a local one.
5981
5982 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
5983
5984         * sem_elim.adb (Check_Eliminated): Use full information on entity name
5985         when it is given in the pragma by a selected component.
5986         (Check_For_Eliminated_Subprogram): Do no emit error if within a
5987         instance body that is itself within a generic unit.
5988         * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
5989         eliminated, mark as well the anonymous subprogram that is its alias
5990         and appears within the wrapper package.
5991
5992 2010-06-18  Bob Duff  <duff@adacore.com>
5993
5994         * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
5995         Raise an exception if the output file cannot be opened. Add comments.
5996
5997 2010-06-18  Thomas Quinot  <quinot@adacore.com>
5998
5999         * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6000         not illegal per E.2.2(7) if it occurs in the private part of a
6001         Remote_Types unit.
6002
6003 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
6004
6005         * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
6006         sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
6007         par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
6008         sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
6009         sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
6010         sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
6011         par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
6012         sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
6013         sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
6014         errout.ads: Update comments. Minor reformatting.
6015
6016         * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
6017         a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
6018         a-strunb.adb (Big_String. Big_String_Access): New type.
6019
6020         * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
6021         exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
6022         sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
6023
6024 2010-06-18  Geert Bosch  <bosch@adacore.com>
6025
6026         * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6027         Darwin.
6028
6029 2010-06-18  Robert Dewar  <dewar@adacore.com>
6030
6031         * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6032         true for gcc.
6033
6034 2010-06-18  Robert Dewar  <dewar@adacore.com>
6035
6036         * sprint.adb: Minor format change for N_Expression_With_Actions.
6037         * repinfo.adb: Minor reformatting.
6038
6039 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6040
6041         * sem_elim.adb (Check_Eliminated): If within a subunit, use
6042         Defining_Entity to obtain the name of the entity in the proper body, to
6043         properly handle both separate packages and subprograms.
6044
6045 2010-06-18  Emmanuel Briot  <briot@adacore.com>
6046
6047         * prj-nmsc.adb (Check_File): New parameter Display_Path.
6048
6049 2010-06-18  Thomas Quinot  <quinot@adacore.com>
6050
6051         * g-socket.adb, g-socket.ads (Null_Selector): New object.
6052
6053 2010-06-18  Pascal Obry  <obry@adacore.com>
6054
6055         * gnat_ugn.texi: Minor clarification.
6056
6057 2010-06-18  Emmanuel Briot  <briot@adacore.com>
6058
6059         * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
6060         code when using the project dir as the source dir.
6061         (Search_Directories): use the normalized name for the source directory,
6062         where symbolic names have potentially been resolved.
6063
6064 2010-06-18  Robert Dewar  <dewar@adacore.com>
6065
6066         * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
6067         when we create N_Expression_With_Actions node.
6068         (Expand_Short_Circuit): Ditto.
6069
6070 2010-06-18  Robert Dewar  <dewar@adacore.com>
6071
6072         * exp_util.adb: Minor reformatting.
6073
6074 2010-06-18  Thomas Quinot  <quinot@adacore.com>
6075
6076         * types.ads: Clean up obsolete comments
6077         * tbuild.adb: Minor reformatting.
6078         * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
6079         exp_strm.adb, aa_drive.adb: Minor reformatting.
6080         * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
6081         intrinsic with an Interface_Name denotes an imported back-end builtin,
6082         and must be rewritten into a call, not left in the tree as an operator,
6083         so return False in that case.
6084
6085 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6086
6087         * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6088         
6089 2010-06-18  Robert Dewar  <dewar@adacore.com>
6090
6091         * scos.ads: Add proposed output for case expression
6092
6093 2010-06-18  Jose Ruiz  <ruiz@adacore.com>
6094
6095         * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6096         RTSS modules, we need to use the Microsoft linker.
6097
6098 2010-06-18  Robert Dewar  <dewar@adacore.com>
6099
6100         * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
6101         expression (cannot count on a particular branch being executed).
6102         * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
6103         * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
6104         * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
6105         within case expression.
6106         * expander.adb (Expand): Add call to Expand_N_Case_Expression
6107         * par-ch4.adb Add calls to P_Case_Expression at appropriate points
6108         (P_Case_Expression): New procedure
6109         (P_Case_Expression_Alternative): New procedure
6110         * par.adb (P_Case_Expression): New procedure
6111         * par_sco.adb (Process_Decisions): Add dummy place holder entry for
6112         N_Case_Expression.
6113         * sem.adb (Analyze): Add call to Analyze_Case_Expression
6114         * sem_case.ads (Analyze_Choices): Also used for case expressions now,
6115         this is a documentation change only.
6116         * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
6117         * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
6118         expressions.
6119         * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
6120         * sem_res.adb (Resolve_Case_Expression): New procedure.
6121         * sem_scil.adb (Find_SCIL_Node): Add processing for
6122         N_Case_Expression_Alternative.
6123         * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
6124         (N_Case_Expression_Alternative): New node.
6125         * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
6126         N_Case_Expression and N_Case_Expression_Alternative.
6127
6128 2010-06-18  Robert Dewar  <dewar@adacore.com>
6129
6130         * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6131         reformatting.
6132         * gnat1drv.adb: Fix typo.
6133
6134 2010-06-18  Robert Dewar  <dewar@adacore.com>
6135
6136         * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
6137         for -gnatg.
6138         * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
6139         gnat style for -gnatg.
6140         * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
6141
6142 2010-06-18  Thomas Quinot  <quinot@adacore.com>
6143
6144         * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6145         code between...
6146         (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6147         Test_In_Range.
6148
6149 2010-06-18  Robert Dewar  <dewar@adacore.com>
6150
6151         * sprint.adb: Minor change in output format for expression wi actions.
6152         * par-ch3.adb: Minor code reorganization.  Minor reformatting.
6153         * sem_ch5.adb: Minor comment fix.
6154
6155 2010-06-18  Robert Dewar  <dewar@adacore.com>
6156
6157         * debug.adb: New debug flag -gnatd.L to control
6158         Back_End_Handles_Limited_Types.
6159         * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
6160         limited case if Back_End_Handles_Limited_Types is True.
6161         (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
6162         simplify expansion if Use_Expression_With_Actions is True.
6163         * gnat1drv.adb (Adjust_Global_Switches): Set
6164         Back_End_Handles_Limited_Types.
6165         * opt.ads (Back_End_Handles_Limited_Types): New flag.
6166
6167 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6168
6169         * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
6170         intrinsic operator if expansion is not enabled, because in an
6171         instantiation the original operator must be present to verify the
6172         legality of the operation.
6173
6174 2010-06-18  Robert Dewar  <dewar@adacore.com>
6175
6176         * exp_disp.adb, sem_ch12.adb: Minor reformatting
6177
6178 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6179
6180         * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
6181         the class-wide type for a private extension, and the completion is a
6182         subtype, set the type of the class-wide type to the base type of the
6183         full view.
6184
6185 2010-06-18  Robert Dewar  <dewar@adacore.com>
6186
6187         * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
6188         sem_intr.adb, sem_eval.adb: Minor reformatting
6189
6190 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6191
6192         * sem_type.adb (Is_Ancestor): If either type is private, examine full
6193         view.
6194
6195 2010-06-18  Thomas Quinot  <quinot@adacore.com>
6196
6197         * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
6198         parameter rather than IN OUT.
6199
6200 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6201
6202         * exp_ch6.adb: Add extra guard.
6203
6204 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
6205
6206         * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
6207         accessibility level of a function call from the level of the innermost
6208         enclosing dynamic scope.
6209         (Innermost_Master_Scope_Depth): New function to find the depth of the
6210         nearest dynamic scope enclosing a node.
6211
6212 2010-06-18  Tristan Gingold  <gingold@adacore.com>
6213
6214         * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
6215
6216 2010-06-18  Thomas Quinot  <quinot@adacore.com>
6217
6218         * g-socket.ads: Minor reformatting.
6219
6220 2010-06-18  Vincent Celier  <celier@adacore.com>
6221
6222         * make.adb (Must_Compile): New Boolean global variable
6223         (Main_On_Command_Line): New Boolean global variable
6224         (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
6225         even when the project is externally built.
6226         (Start_Compile_If_Possible): Compile in -aL directories if
6227         Check_Readonly_Files is True. Do compile if Must_Compile is True, even
6228         when the project is externally built.
6229         (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
6230         invoked with -f -u and one or several mains on the command line.
6231         (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
6232         main is specified on the command line.
6233
6234 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
6235
6236         * sem_ch6.adb (Build_Body_For_Inline): Handle
6237         extended_return_statements.
6238         * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
6239         containing extented_return statements.
6240         * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
6241         constrained, do not build subtype declaration.
6242
6243 2010-06-18  Robert Dewar  <dewar@adacore.com>
6244
6245         * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
6246         Warn on assigning to packed atomic component.
6247
6248 2010-06-18  Robert Dewar  <dewar@adacore.com>
6249
6250         * sem_util.ads: Minor reformatting
6251         * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
6252         Expression_With_Actions).
6253         * snames.ads-tmpl: Minor comment fix
6254
6255 2010-06-18  Robert Dewar  <dewar@adacore.com>
6256
6257         * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
6258         (Set_Imported): Use Import_Interface_Present to control message output
6259         * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
6260         * gnat_rm.texi: Document that we can have pragma Import and pragma
6261         Interface for the same subprogram.
6262
6263 2010-06-18  Robert Dewar  <dewar@adacore.com>
6264
6265         * lib-xref.adb (Generate_Reference): Fix bad reference to
6266         Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
6267
6268 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
6269
6270         * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
6271         function.
6272         (gnat_to_gnu) <N_Expression_With_Actions>: New case.
6273         Use set_gnu_expr_location_from_node to set location information on the
6274         result.
6275
6276 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
6277
6278         * gcc-interface/Make-lang.in: Update dependencies.
6279
6280 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6281
6282         * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
6283         subprograms.
6284
6285 2010-06-17  Robert Dewar  <dewar@adacore.com>
6286
6287         * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
6288         style check messages.
6289         * sem_res.adb (Resolve_Call): Don't call
6290         Check_For_Eliminated_Subprogram if we are analyzing within a spec
6291         expression.
6292
6293 2010-06-17  Robert Dewar  <dewar@adacore.com>
6294
6295         * debug.adb: Add documentation for debug flags .X and .Y
6296         * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
6297         Use_Expression_With_Actions.
6298         * gnat1drv.adb (Adjust_Global_Switches): Set
6299         Use_Expression_With_Actions.
6300         * opt.ads (Use_Expression_With_Actions): New switch.
6301
6302 2010-06-17  Robert Dewar  <dewar@adacore.com>
6303
6304         * exp_intr.adb: Minor code reorganization (use UI_Max)
6305         * sem_intr.adb: use underlying type to check legality.
6306         * einfo.adb (Known_Static_Esize): False for generic types
6307         (Known_Static_RM_Size): False for generic types
6308         * einfo.ads (Known_Static_Esize): False for generic types
6309         (Known_Static_RM_Size): False for generic types
6310
6311 2010-06-17  Robert Dewar  <dewar@adacore.com>
6312
6313         * exp_ch4.ads: Minor code reorganization (specs in alpha order).
6314
6315 2010-06-17  Robert Dewar  <dewar@adacore.com>
6316
6317         * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
6318         node when expanding short circuit form with actions present for right
6319         opnd.
6320         * exp_ch4.adb: Minor reformatting
6321         (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
6322         if right opeand has actions present, and debug flag -gnatd.X is set.
6323         * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
6324         node.
6325         * nlists.adb (Prepend_List): New procedure
6326         (Prepend_List_To): New procedure
6327         * nlists.ads (Prepend_List): New procedure
6328         (Prepend_List_To): New procedure
6329         * sem.adb: Add processing for Expression_With_Actions
6330         * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
6331         * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
6332         * sem_res.adb: Add processing for Expression_With_Actions.
6333         * sem_scil.adb: Add processing for Expression_With_Actions
6334         * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
6335         * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
6336
6337 2010-06-17  Doug Rupp  <rupp@adacore.com>
6338
6339         * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
6340         involved both have underlying integer types.
6341         * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
6342         to an intrinsic operator when the operand types or sizes are not
6343         identical.
6344         * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
6345         64/32 Address/Integer works.
6346
6347 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6348
6349         * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
6350         that it marks a unit as needed by a spec only if the corresponding
6351         instantiation appears in that spec (and not in the corresponding body).
6352         * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
6353         in the pragma Eliminate has been parsed as a child unit, but the
6354         current compilation unit is in fact the parent in which the subunit is
6355         embedded.
6356
6357 2010-06-17  Vincent Celier  <celier@adacore.com>
6358
6359         * gnat_rm.texi: Fix typo
6360
6361 2010-06-17  Robert Dewar  <dewar@adacore.com>
6362
6363         * sem_util.adb: Minor reformatting
6364
6365 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6366
6367         * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
6368         instance, the clause now denotes the instance body. Traverse the
6369         corresponding spec because there may be no other dependence that will
6370         force the traversal of its own context.
6371
6372 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6373
6374         * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
6375         Install_Limited_Context_Clauses, to determine whether a limited_with in
6376         some parent of the current unit designates some other parent, in which
6377         case the limited_with clause must not be installed.
6378         (In_Context): Refine test.
6379
6380 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
6381
6382         * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
6383         type with a dispatching equality operator that is overridden (for a
6384         tagged full type), don't include the overridden equality in the list of
6385         primitives. The overridden equality is detected by testing for an
6386         Aliased field that references the overriding equality.
6387
6388 2010-06-17  Robert Dewar  <dewar@adacore.com>
6389
6390         * freeze.adb: Minor reformatting.
6391
6392 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
6393
6394         * gnat_ugn.texi: Add a section introducing gdbserver.
6395
6396 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6397
6398         * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
6399         reformatting.
6400
6401 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6402
6403         * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
6404         constrained discriminated parent that is a private type.
6405         (Analyze_Record_Aggregate): when collecting inherited discriminants,
6406         handle properly an ancestor type that is a constrained private type.
6407
6408 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6409
6410         * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
6411         protected, use the protected_subprogram_body only if the original
6412         subprogram has not been eliminated.
6413
6414 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6415
6416         * freeze.adb (Freeze_Expression): The designated type of an
6417         access_to_suprogram type can only be frozen if all types in its profile
6418         are fully defined.
6419
6420 2010-06-17  Robert Dewar  <dewar@adacore.com>
6421
6422         * par.adb: Minor comment fix
6423         * sem_aggr.adb, sem_ch3.adb: Minor reformatting
6424
6425 2010-06-17  Doug Rupp  <rupp@adacore.com>
6426
6427         * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
6428         change Address to Short_Address in functions where both must be the
6429         same size for intrinsics to work.
6430
6431 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6432
6433         * sem_ch4.adb (Analyze_Selected_Component): A selected component may
6434         not denote a (private) component of a protected object.
6435
6436 2010-06-17  Bob Duff  <duff@adacore.com>
6437
6438         * par-labl.adb (Try_Loop): Test whether the label and the goto are in
6439         the same list.
6440
6441 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
6442
6443         * gnat_ugn.texi: Update the documentation about GDB re: exception
6444         catchpoints.
6445
6446 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
6447
6448         * gnatvsn.ads: Bump to 4.6 version.
6449
6450 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6451
6452         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
6453         designated type of the generated pointer is the type of the original
6454         expression, not that of the function call itself, because the return
6455         type may be an untagged  derived type and the function may be an
6456         inherited operation.
6457
6458 2010-06-17  Robert Dewar  <dewar@adacore.com>
6459
6460         * exp_ch4.adb: Minor reformatting.
6461
6462 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6463
6464         * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
6465         N_Component_Association nodes, to indicate that a component association
6466         of an extension aggregate denotes the value of a discriminant of an
6467         ancestor type that has been constrained by the derivation.
6468         * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
6469         double expansion of the aggregate appearing in a context that delays
6470         expansion, to prevent double insertion of discriminant values when the
6471         aggregate is reanalyzed.
6472
6473 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
6474
6475         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
6476         Allocator as the Related_Node of Return_Obj_Access in call to
6477         Make_Temporary below as this would create a sort of infinite
6478         "recursion".
6479
6480 2010-06-17  Ben Brosgol  <brosgol@adacore.com>
6481
6482         * gnat_ugn.texi: Update gnatcheck doc.
6483
6484 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6485
6486         * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
6487         incomplete view of the type that is not tagged, and the full type is a
6488         tagged extension, create class_wide type now, and warn that the
6489         incomplete view should be tagged as well.
6490
6491 2010-06-17  Vincent Celier  <celier@adacore.com>
6492
6493         * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
6494         Update the last line of the usage, indicating what commands do not
6495         accept project file switches.
6496         * vms_conv.adb: Do not issue usage line for GNAT SYNC
6497         * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
6498         GNAT ELIM.
6499         * gnat_ugn.texi: Document the relaxed rules for library directories in
6500         externally built library projects.
6501
6502 2010-06-17  Doug Rupp  <rupp@adacore.com>
6503
6504         * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
6505         where possible.
6506         * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
6507         * gcc-interface/Makefile.in: Update VMS target pairs.
6508
6509 2010-06-17  Vasiliy Fofanov  <fofanov@adacore.com>
6510
6511         * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
6512         compatible with Windows NT 4.0 which doesn't provide this function.
6513
6514 2010-06-17  Vincent Celier  <celier@adacore.com>
6515
6516         * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
6517         different timestamps but the checksum is the same, issue a short
6518         message saying so.
6519
6520 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
6521
6522         * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
6523         it means that we cannot reset interrupt handlers since this would
6524         require potentially sending the abort signal to the Server_Task.
6525
6526 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6527
6528         * exp_ch4.adb: expand NOT for VMS types.
6529         * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
6530
6531 2010-06-17  Sergey Rybin  <rybin@adacore.com>
6532
6533         * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
6534         * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
6535         option.
6536
6537 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6538
6539         * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
6540         protected operation if the subprogram has been eliminated.
6541
6542 2010-06-17  Vincent Celier  <celier@adacore.com>
6543
6544         * prj-nmsc.adb (Check_Library_Attributes): Allow the different
6545         directories associated with a library to be any directory when the
6546         library project is externally built.
6547
6548 2010-06-17  Vincent Celier  <celier@adacore.com>
6549
6550         * make.adb (Check): If switch -m is used, deallocate the memory that
6551         may be allocated when computing the checksum.
6552
6553 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
6554
6555         * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
6556         (C_Sendmsg): Likewise.
6557
6558 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6559
6560         * sem_res.adb: Update comments.
6561
6562 2010-06-17  Vincent Celier  <celier@adacore.com>
6563
6564         * back_end.adb (Scan_Compiler_Arguments): Process last argument
6565
6566 2010-06-17  Robert Dewar  <dewar@adacore.com>
6567
6568         * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
6569         * layout.adb, freeze.adb: Use Make_Temporary.
6570
6571 2010-06-17  Jerome Lambourg  <lambourg@adacore.com>
6572
6573         * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
6574         .NET/JVM normally as this is now perfectly supported by the backend.
6575
6576 2010-06-17  Pascal Obry  <obry@adacore.com>
6577
6578         * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
6579
6580 2010-06-17  Vincent Celier  <celier@adacore.com>
6581
6582         * make.adb (Collect_Arguments_And_Compile): Create include path file
6583         only when -x is specified.
6584         (Gnatmake): Ditto
6585         * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
6586         False.
6587         * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
6588         Objects_Path, defaulted to True. Only create include path file if
6589         Include_Path is True, only create objects path file if Objects_Path is
6590         True.
6591         * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
6592         Objects_Path, defaulted to True.
6593         * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
6594         when -x is used.
6595
6596 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6597
6598         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6599         determine whether it has the controlling type, when the formal is an
6600         access parameter.
6601
6602 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
6603
6604         * s-crtl.ads (ssize_t): New type.
6605         (read): Fix signature.
6606         (write): Likewise.
6607         * g-socthi.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
6608         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6609         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6610         (C_Sendmsg): Likewise.
6611         * g-socthi.adb (Syscall_Recvmsg): Likewise.
6612         (Syscall_Sendmsg): Likewise.
6613         (C_Recvmsg): Likewise.
6614         (C_Sendmsg): Likewise.
6615         * g-socthi-mingw.ads: Add 'with System.CRTL' clause.  Remove ssize_t
6616         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6617         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6618         (C_Sendmsg): Likewise.
6619         * g-socthi-mingw.adb (C_Recvmsg): Likewise.
6620         (C_Sendmsg): Likewise.
6621         * g-socthi-vms.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
6622         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6623         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6624         (C_Sendmsg): Likewise.
6625         * g-socthi-vms.adb (C_Recvmsg): Likewise.
6626         (C_Sendmsg): Likewise.
6627         * g-socthi-vxworks.ads Add 'with System.CRTL' clause.  Remove ssize_t
6628         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6629         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6630         (C_Sendmsg): Likewise.
6631         * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
6632         (C_Sendmsg): Likewise.
6633         * g-sercom-linux.adb (Read): Use correct types to call 'read'.
6634         (Write): Likewise to call 'write'.
6635         * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
6636         (Write): Use correct type to call System.CRTL.write.
6637         * s-tasdeb.adb (Write): Likewise.
6638
6639 2010-06-17  Vincent Celier  <celier@adacore.com>
6640
6641         * prj-proc.adb (Copy_Package_Declarations): Change argument name
6642         Naming_Restricted to Restricted. If Restricted is True, do not copy the
6643         value of attribute Linker_Options.
6644
6645 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
6646
6647         * gcc-interface/trans.c (push_stack, pop_stack): Delete.
6648         (Case_Statement_to_gnu): Adjust.
6649         (Loop_Statement_to_gnu): Likewise.
6650         (Subprogram_Body_to_gnu): Likewise.
6651         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6652         (Compilation_Unit_to_gnu): Likewise.
6653
6654 2010-06-17  Robert Dewar  <dewar@adacore.com>
6655
6656         * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
6657         exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
6658         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
6659         sem_dist.adb, sem_util.adb: Use Make_Temporary
6660         * itypes.ads, tbuild.ads: Minor comment update
6661         * exp_ch9.adb, exp_dist.adb: Minor reformatting
6662
6663 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6664
6665         * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
6666
6667 2010-06-17  Robert Dewar  <dewar@adacore.com>
6668
6669         * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
6670
6671 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6672
6673         * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
6674
6675 2010-06-17  Robert Dewar  <dewar@adacore.com>
6676
6677         * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
6678         * tbuild.ads (Make_Temporary): More comment updates
6679         * tbuild.adb: Minor reformatting
6680
6681 2010-06-17  Robert Dewar  <dewar@adacore.com>
6682
6683         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
6684         exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
6685         Use Make_Temporary.
6686         * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
6687         instead of Node_Id.
6688         (Make_Temporary): Add more extensive documentation
6689
6690 2010-06-17  Robert Dewar  <dewar@adacore.com>
6691
6692         * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
6693         sem_warn.adb, sem_eval.adb: Minor reformatting.  Use Ekind_In.
6694         (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
6695         where the slice's actions are inserted.
6696         (Decompose_Expr): Account for possible rewriting of slice bounds
6697         resulting from side effects suppression caused by the above freezing,
6698         so that folding of bounds is preserved by such rewriting.
6699
6700 2010-06-17  Robert Dewar  <dewar@adacore.com>
6701
6702         * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
6703         function.
6704         * freeze.adb (Freeze_Record_Type): Add call to
6705         Check_Record_Representation_Clause.
6706         * sem_ch13.adb (Check_Record_Representation_Clause): New function
6707         (Analyze_Record_Representation_Clause): Split out overlap code into
6708         this new function.
6709         (Check_Component_Overlap): Moved inside
6710         Check_Record_Representation_Clause.
6711         * sem_ch13.ads (Check_Record_Representation_Clause): New function.
6712
6713 2010-06-17  Robert Dewar  <dewar@adacore.com>
6714
6715         * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
6716         reformatting.
6717         * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
6718         sem_eval.adb: Use Ekind_In
6719
6720 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6721
6722         * sem_ch8.adb: better error message for illegal inherited discriminant
6723
6724 2010-06-17  Vincent Celier  <celier@adacore.com>
6725
6726         * bindusg.adb: Remove lines for -A and -C
6727         * gnat_ugn.texi: Remove all documentation and examples of switches -A
6728         and -C for gnatbind and gnatlink.
6729         * gnatlink.adb (Usage): Remove lines for -A and -C
6730         * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
6731         specified.
6732         * gcc-interface/Make-lang.in: Update dependencies.
6733
6734 2010-06-17  Vincent Celier  <celier@adacore.com>
6735
6736         * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
6737         local Argument_List variable Args.
6738         * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
6739         Args.
6740         (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
6741         for subsequent switches in Args.
6742         * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
6743         Args.
6744         * gcc-interface/Make-lang.in: Update dependencies.
6745
6746 2010-06-17  Robert Dewar  <dewar@adacore.com>
6747
6748         * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
6749         Equivalent_Type to match documentation.
6750
6751 2010-06-17  Robert Dewar  <dewar@adacore.com>
6752
6753         * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
6754         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
6755         sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
6756
6757 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6758
6759         * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
6760
6761 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6762
6763         * freeze.adb (Freeze_Expression): Short circuit operators are valid
6764         freeze node insertion points.
6765
6766 2010-06-17  Robert Dewar  <dewar@adacore.com>
6767
6768         * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
6769         * sem_ch12.adb: Add pragmas Assert and Check to previous change.
6770
6771 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
6772
6773         * layout.adb (Layout_Type): Broaden test for setting an array type's
6774         Component_Size to include all scalar types, not just discrete types
6775         (components of real types were missed).
6776         * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
6777         on the itype created for an index (consistent with Make_Index and
6778         avoids possible Assert_Failures).
6779
6780 2010-06-17  Robert Dewar  <dewar@adacore.com>
6781
6782         * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
6783         * einfo.adb: Minor code reformatting (use Ekind_In)
6784
6785 2010-06-17  Robert Dewar  <dewar@adacore.com>
6786
6787         * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
6788         found.
6789
6790 2010-06-17  Vincent Celier  <celier@adacore.com>
6791
6792         * back_end.adb: Minor comment updates
6793         * switch-c.adb: Remove dependencies on gcc C sources
6794         * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
6795         for the compiler.
6796
6797 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
6798
6799         * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
6800         * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
6801         * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
6802         Remove use of Node field in SCOs table
6803         (Output_Header): Set 'd' to initially disable pragma entry
6804         * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
6805         * scos.ads, scos.adb: Remove Node field from internal SCOs table.
6806         Use C2 field of pragma decision header to indicate enabled.
6807         * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
6808         * gcc-interface/Make-lang.in: Update dependencies.
6809
6810 2010-06-17  Vincent Celier  <celier@adacore.com>
6811
6812         * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
6813         (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
6814         (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
6815         * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
6816         Switch.C.
6817         * switch-c.adb: Copied a number of global declarations from
6818         back_end.adb.
6819         (Len_Arg): New function copied from back_end.adb
6820         (Switch_Subsequently_Cancelled): New function moved from back_end.adb
6821         (Scan_Front_End_Switches): New parameter Arg_Rank used to call
6822         Switch_Subsequently_Cancelled.
6823         * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
6824         * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
6825         with -lexc on Tru64.
6826
6827 2010-06-17  Robert Dewar  <dewar@adacore.com>
6828
6829         * prj.ads, prj.adb: Minor reformatting
6830
6831 2010-06-17  Thomas Quinot  <quinot@adacore.com>
6832
6833         * put_scos.adb: Do not generate a blank line in SCOs when omitting the
6834         CP line for a disabled pragma.
6835
6836 2010-06-17  Emmanuel Briot  <briot@adacore.com>
6837
6838         * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
6839         subprogram.
6840         (Process_Declarative_Item): An invalid value in an typed variable
6841         declaration is no longer always fatal.
6842
6843 2010-06-16  Arnaud Charlet  <charlet@adacore.com>
6844
6845         * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
6846         scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
6847         documentation.
6848
6849 2010-06-16  Javier Miranda  <miranda@adacore.com>
6850
6851         * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
6852         node referenced by the SCIL node of dispatching "=" to skip the tags
6853         comparison.
6854
6855 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
6856
6857         * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
6858         to prevent cascaded errors and compilation aborts.
6859
6860 2010-06-16  Robert Dewar  <dewar@adacore.com>
6861
6862         * back_end.adb (Switch_Subsequently_Cancelled): New function
6863         Move declarations to package body level to support this change
6864         * back_end.ads (Switch_Subsequently_Cancelled): New function
6865         * gnat_ugn.texi: Document -gnat-p switch
6866         * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
6867         * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
6868         * usage.adb: Add line for -gnat-p switch
6869         * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
6870
6871 2010-06-16  Robert Dewar  <dewar@adacore.com>
6872
6873         * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
6874         modification.
6875
6876 2010-06-16  Robert Dewar  <dewar@adacore.com>
6877
6878         * exp_disp.adb: Minor reformatting
6879
6880 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
6881
6882         * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
6883         base type only if it was not previously created for the partial view.
6884
6885 2010-06-16  Thomas Quinot  <quinot@adacore.com>
6886
6887         * tbuild.ads: Minor comment fix
6888
6889 2010-06-15  Nathan Froyd  <froydnj@codesourcery.com>
6890
6891         * gcc-interface/trans.c (gnu_stack_free_list): Delete.
6892         (gnu_except_ptr_stack): Change type to VEC.  Update comment.
6893         (gnu_elab_proc_stack): Likewise.
6894         (gnu_return_label_stack): Likewise.
6895         (gnu_loop_label_stack): Likewise.
6896         (gnu_switch_label_stack): Likewise.
6897         (gnu_constraint_label_stack): Likewise.
6898         (gnu_storage_error_label_stack): Likewise.
6899         (gnu_program_error_label_stack): Likewise.
6900         (push_exception_label_stack): Take a VEC ** instead of a tree *.
6901         (push_stack): Likewise.  Remove unused second parameter.  Update
6902         callers.
6903         (pop_stack): Take a VEC * instead of a tree *.  Update callers.
6904         (gigi): Initialize stacks as VECs.
6905         (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
6906         (Case_Statement_to_gnu): Likewise.
6907         (Subprogram_Body_to_gnu): Likewise.
6908         (call_to_gnu): Likewise.
6909         (Exception_Handler_to_gnu_sjlj): Likewise.
6910         (gnat_to_gnu): Likewise.
6911         (get_exception_label): Likewise.
6912
6913 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
6914
6915         * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
6916         anonymous base generated when the parent is a constrained discriminated
6917         type, propagate interface list to first subtype because it may appear
6918         in a current instance within the extension part of the derived type
6919         declaration, and its own subtype declaration has not been elaborated
6920         yet.
6921         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6922         determine whether it has the controlling type.
6923
6924 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
6925
6926         * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
6927         raise of CE, SE and PE have the reason correctly set and are properly
6928         expanded before stopping the expansions of .NET/JVM exceptions.
6929
6930 2010-06-14  Robert Dewar  <dewar@adacore.com>
6931
6932         * opt.ads (Check_Policy_List): Add some clarifying comments
6933         * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
6934         on rewritten Assert pragma.
6935
6936 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
6937
6938         * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
6939         controlled operations, so that they will be treated as overriding even
6940         if the overridden subprogram is marked Is_Hidden, as long as the
6941         overridden subprogram's parent subprogram is not hidden.
6942
6943 2010-06-14  Robert Dewar  <dewar@adacore.com>
6944
6945         * debug.adb: Entry for gnatw.d no longer specific for while loops
6946         * einfo.adb (First_Exit_Statement): New attribute for E_Loop
6947         * einfo.ads (First_Exit_Statement): New attribute for E_Loop
6948         * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
6949         new calling sequence to include test for EXIT WHEN.
6950         (Analyze_Exit_Statement): Chain EXIT statement into exit statement
6951         chain
6952         * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
6953         EXIT WHEN case.
6954         * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
6955         node.
6956         * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
6957         PRAGMA, not to pragma identifier).
6958         (Next_Exit_Statement): New attribute of N_Exit_Statement node
6959
6960 2010-06-14  Robert Dewar  <dewar@adacore.com>
6961
6962         * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
6963         would fail" msg.
6964
6965 2010-06-14  Robert Dewar  <dewar@adacore.com>
6966
6967         * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
6968         missing pragma argument identifier.
6969
6970 2010-06-14  Robert Dewar  <dewar@adacore.com>
6971
6972         * atree.ads, atree.adb (Ekind_In): New functions.
6973
6974 2010-06-14  Robert Dewar  <dewar@adacore.com>
6975
6976         * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
6977
6978 2010-06-14  Robert Dewar  <dewar@adacore.com>
6979
6980         * usage.adb (Usage): Redo documentation of -gnatwa.
6981
6982 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
6983
6984         * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
6985         an untagged incomplete type that is a limited view.
6986
6987 2010-06-14  Sergey Rybin  <rybin@adacore.com>
6988
6989         * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
6990         and gnatppa.
6991
6992 2010-06-14  Thomas Quinot  <quinot@adacore.com>
6993
6994         * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
6995         factoring duplicated code between...
6996         (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
6997         * a-envvar.ads: Minor reformatting
6998
6999 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
7000
7001         * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7002         static entities.
7003         (Scan_ALI): Take into account new Visibility field.
7004         (Visibility_Kind): New type.
7005         (Xref_Entity_Record): Replace Lib field by Visibility.
7006
7007         * gcc-interface/Make-lang.in: Update dependencies.
7008
7009 2010-06-14  Pascal Obry  <obry@adacore.com>
7010
7011         * raise.h: Remove unused defintions.
7012
7013 2010-06-14  Bob Duff  <duff@adacore.com>
7014
7015         * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
7016         Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
7017         the incorrect error "proper body expected".
7018         * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
7019         allowed here" error in case of subunits, which was triggered by the
7020         above change to P_Subunit.
7021
7022 2010-06-14  Sergey Rybin  <rybin@adacore.com>
7023
7024         * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7025
7026 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7027
7028         * lib-util.adb: Minor code reorganization.
7029
7030 2010-06-14  Robert Dewar  <dewar@adacore.com>
7031
7032         * ali.adb (Scan_ALI): Implement reading and storing of N lines
7033         (Known_ALI_Lines): Add entry for 'N' (notes)
7034         * ali.ads (Notes): New table to store Notes information
7035         * alloc.ads: Add entries for Notes table
7036         * lib-util.adb (Write_Info_Int): New procedure
7037         (Write_Info_Slit): New procedure
7038         (Write_Info_Uint): New procedure
7039         * lib-util.ads (Write_Info_Int): New procedure
7040         (Write_Info_Slit): New procedure
7041         (Write_Info_Uint): New procedure
7042         * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
7043         * lib-writ.ads: Update documentation for N (Notes) lines
7044         * lib.adb (Store_Note): New procedure
7045         * lib.ads (Notes): New table
7046         (Store_Note): New procedure
7047         * sem_prag.adb: Call Store_Note for affected pragmas
7048
7049 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7050
7051         * socket.c: Fix wrong condition in #ifdef
7052         * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
7053         take or return char* values can't use Interfaces.C.Strings.chars_ptr,
7054         because on VMS this type is a 32-bit pointer which is not compatible
7055         with the default for C pointers for code compiled with gcc on that
7056         platform.
7057
7058 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7059
7060         * sem_util (Is_VMS_Operator): New predicate to determine whether an
7061         operator is an intrinsic operator declared in the DEC system extension.
7062         * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
7063         if the operator is a VMS intrinsic.
7064         * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
7065         constant-folded if the operands are signed and the operator is a VMS
7066         intrinsic.
7067
7068 2010-06-14  Robert Dewar  <dewar@adacore.com>
7069
7070         * g-socket.adb, gnatcmd.adb: Minor reformatting.
7071
7072 2010-06-14  Pascal Obry  <obry@adacore.com>
7073
7074         * s-finimp.adb: Fix typo.
7075         * raise.h: Remove duplicate blank line.
7076
7077 2010-06-14  Vincent Celier  <celier@adacore.com>
7078
7079         * prj-nmsc.adb (Add_Sources): Always set the object file and the
7080         switches file names, as the configuration of the language may change
7081         in an extending project.
7082         (Process_Naming_Scheme): For sources of projects that are extended, set
7083         the configuration of the language from the highest extending project
7084         where the language is declared.
7085
7086 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
7087
7088         * sem_res.adb (Resolve_Call): For infinite recursion check, test
7089         whether the called subprogram is inherited from a containing
7090         subprogram.
7091         (Same_Or_Aliased_Subprograms): New function
7092
7093 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7094
7095         * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
7096         use-visible, check whether it is a primitive for more than one type.
7097
7098 2010-06-14  Robert Dewar  <dewar@adacore.com>
7099
7100         * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7101
7102         * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7103         Has_Pragma_Unmodified flag.
7104
7105 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7106
7107         * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
7108         g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
7109         now done in GNAT.Sockets if necessary.
7110         * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
7111         Ensure mutual exclusion for netdb operations if the target platform
7112         requires it.
7113         (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
7114         struct hostent as an opaque type to improve portability.
7115         * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
7116         gethostbyYYY using proprietary VxWorks API so that a uniform interface
7117         is available for the Ada side.
7118         * gcc-interface/Makefile.in: Remove g-sttsne-*
7119         * gcc-interface/Make-lang.in: Update dependencies.
7120
7121 2010-06-14  Vincent Celier  <celier@adacore.com>
7122
7123         * gnatcmd.adb (Mapping_File): New function.
7124
7125 2010-06-14  Javier Miranda  <miranda@adacore.com>
7126
7127         * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7128
7129 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
7130
7131         * ali.adb: Fix typo.
7132         * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7133
7134 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7135
7136         * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
7137         instances.
7138
7139         * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
7140         the context does not have a homonym of the selector, emit default
7141         error message.
7142
7143 2010-06-14  Robert Dewar  <dewar@adacore.com>
7144
7145         * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7146         comment addition.
7147
7148 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
7149
7150         * lib-xref.ads: Doc updates:
7151          - Allocate 'Q' for #include entity kind
7152          - Free 'Z'
7153          - Allocate 'g' for regular macros
7154          - Allocate 'G' for function-like macros
7155
7156 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7157
7158         * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
7159         Indicates that there is an instantiation in the current unit that
7160         loaded the body of the unit denoted by the with_clause.
7161         * sem_ch12.adb (Mark_Context): When instanting a generic body, check
7162         whether a with_clause in the current context denotes the unit that
7163         holds the generic declaration, and mark the with_clause accordingly.
7164         (Instantiate_Package_Body): call Mark_Context.
7165         * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
7166         whether a given body should be traversed before the spec of the main
7167         unit.
7168
7169 2010-06-14  Ed Falis  <falis@adacore.com>
7170
7171         * sysdep.c: Fix 653 build against vThreads headers.
7172
7173 2010-06-14  Robert Dewar  <dewar@adacore.com>
7174
7175         * sinfo.ads: Minor reformatting.
7176
7177 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7178
7179         * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
7180         the spec has been generated for a body without spec that carries an
7181         Inline_Always pragma.
7182
7183 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
7184
7185         * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
7186         macro.
7187
7188 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
7189
7190         * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
7191         declaration for VMs, as those are useless and might lead to duplicated
7192         local variable names in the generated code.
7193         * gcc-interface/Make-lang.in: Update dependencies.
7194
7195 2010-06-14  Robert Dewar  <dewar@adacore.com>
7196
7197         * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
7198
7199 2010-06-14  Robert Dewar  <dewar@adacore.com>
7200
7201         * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
7202         is renamed as Has_Following_Address_Clause.
7203         * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
7204         to allow the caller to avoid Initialize_Scalars having an effect.
7205         (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
7206         scalars with an address clause specified.
7207         * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
7208         to allow the caller to avoid Initialize_Scalars having an effect.
7209         * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
7210         (where it was called Has_Address_Clause).
7211         * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
7212         (where it was called Has_Address_Clause).
7213         * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
7214         problems for Initialize_Scalars (since we no longer initialize objects
7215         with an address clause.
7216
7217 2010-06-14  Robert Dewar  <dewar@adacore.com>
7218
7219         * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
7220         condition.
7221
7222 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
7223
7224         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
7225         on the entity of an implicitly generated postcondition procedure.
7226
7227 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7228
7229         * sem_ch7.adb (Preserve_Full_Attributes): Propagate
7230         Discriminant_Constraint elist from full view to private view.
7231
7232 2010-06-14  Robert Dewar  <dewar@adacore.com>
7233
7234         * sem_res.adb: Minor reformatting.
7235
7236 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7237
7238         * sem.adb: New version of unit traversal.
7239
7240         * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
7241         within a generic unit in the table of delayed calls.
7242
7243 2010-06-14  Robert Dewar  <dewar@adacore.com>
7244
7245         * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
7246
7247 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7248
7249         * sem_ch12.adb (Save_References): If an identifier has been rewritten
7250         during analysis as an explicit dereference, keep the reference implicit
7251         in the generic, but preserve the entity if global. This prevents
7252         malformed generic trees in the presence of some nested generics.
7253
7254 2010-06-14  Sergey Rybin  <rybin@adacore.com>
7255
7256         * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
7257         tool with '-files=' option. Also fix some small errors (wrong brackets)
7258
7259 2010-06-14  Vincent Celier  <celier@adacore.com>
7260
7261         * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
7262         the ALI files on the command line.
7263
7264         * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
7265         the same value as the parameter of the same name.
7266         * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
7267         to False.
7268         * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
7269         Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
7270         emit version symbols only for the units of the library.
7271         (Gen_Versions_C): Ditto.
7272
7273 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
7274
7275         * sem_ch4.adb: Fix typo.
7276
7277 2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>
7278
7279         * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
7280         vector IO doesn't work at default value properly.
7281
7282 2010-06-14  Doug Rupp  <rupp@adacore.com>
7283
7284         * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
7285
7286 2010-06-14  Vincent Celier  <celier@adacore.com>
7287
7288         * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
7289         sources of the project if a switch -files= is used.
7290
7291 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7292
7293         * exp_attr.adb: Minor reformatting.
7294
7295 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
7296
7297         * gnat_ugn.texi: Minor typo fixes and wording changes.
7298
7299 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7300
7301         * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
7302         prefixed form, do not re-analyze first actual, which may need an
7303         implicit dereference.
7304         * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
7305         prefixed notation, the analysis will rewrite the node, and possible
7306         errors appear in the rewritten name of the node.
7307         * sem_res.adb: If a call is ambiguous because its first parameter is
7308         an overloaded call, report list of candidates, to clarify ambiguity of
7309         enclosing call.
7310
7311 2010-06-14  Doug Rupp  <rupp@adacore.com>
7312
7313         * s-auxdec-vms-alpha.adb: New package body implementing legacy
7314         VAX instructions with Asm insertions.
7315         * s-auxdec-vms_64.ads: Inline VAX queue functions
7316         * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
7317         that show up only on VMS.
7318         * gcc-interface/Makefile.in: Provide translation for
7319         s-auxdec-vms-alpha.adb.
7320
7321 2010-06-14  Olivier Hainque  <hainque@adacore.com>
7322
7323         * initialize.c (VxWorks section): Update comments.
7324
7325 2010-06-14  Robert Dewar  <dewar@adacore.com>
7326
7327         * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
7328
7329 2010-06-14  Eric Botcazou  <ebotcazou@adacore.com>
7330
7331         * init.c: Code clean up.
7332
7333 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7334
7335         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
7336         not insert address clause in table for later validation if type of
7337         entity is generic, to prevent possible spurious errors. 
7338
7339         * sem_ch8.adb: Code clean up.
7340
7341 2010-06-14  Ben Brosgol  <brosgol@adacore.com>
7342
7343         * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
7344         texi2pdf and texi2html.
7345         Document how to change scheduling properties on HP-UX.
7346
7347 2010-06-14  Thomas Quinot  <quinot@adacore.com>
7348
7349         * g-socket.ads: Remove misleading comments.
7350
7351 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
7352
7353         * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
7354         CLI_Target as this prevents proper detection of exported names
7355         duplicates when the exported language is different to CIL.
7356         (Process_Interface_Name): Add check for CIL convention exports,
7357         replacing the old one from Check_Duplicated_Export_Name.
7358
7359 2010-06-14  Matthew Heaney  <heaney@adacore.com>
7360
7361         * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
7362         and new last satisfy constraints.
7363         (Delete_Last): prevent overflow for subtraction of index values
7364         (To_Vector): prevent overflow for addition of index values
7365
7366 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
7367
7368         * sem_ch4.adb (Complete_Object_Operation): After analyzing the
7369         rewritten call, preserve the resulting type to prevent spurious errors,
7370         when the call is implicitly dereferenced in the context of an in-out
7371         actual.
7372
7373         * checks.adb (Apply_Discriminant_Check): If the target of the
7374         assignment is a renaming of a heap object, create constrained type for
7375         it to apply check.
7376
7377 2010-06-14  Pascal Obry  <obry@adacore.com>
7378
7379         * prj-proc.adb: Fix copy of object directory for extending projects.
7380
7381 2010-06-14  Jose Ruiz  <ruiz@adacore.com>
7382
7383         * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
7384         (__gnat_install_handler, PowerPC linux): Activate the alternative
7385         signal stack.
7386
7387 2010-06-13  Gerald Pfeifer  <gerald@pfeifer.com>
7388
7389         * gnat_rm.texi: Move to GFDL version 1.3.
7390         * gnat-style.texi: Ditto.
7391         * gnat_ugn.texi: Ditto.
7392
7393 2010-06-12  Kai Tietz  <kai.tietz@onevision.com>
7394
7395         PR ada/43731
7396         * gcc-interface/Makefile.in: Add rules for multilib x86/x64
7397         mingw targets.
7398
7399 2010-06-11  Alexandre Oliva  <aoliva@redhat.com>
7400
7401         * gcc-interface/utils.c (update_pointer_to): Initialize last.
7402
7403 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7404
7405         * gcc-interface/ada-tree.h: Fix formatting nits.
7406
7407 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7408
7409         * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
7410         allocation.
7411         (init_dummy_type): Likewise.
7412         (gnat_pushlevel): Likewise.
7413
7414         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7415         (Subprogram_Body_to_gnu): Likewise.
7416         (Compilation_Unit_to_gnu): Likewise.
7417         (start_stmt_group): Likewise.
7418         (extract_encoding): Likewise.
7419         (decode_name): Likewise.
7420
7421         * gcc-interface/misc.c (gnat_printable_name): Likewise.
7422
7423         * gcc-interface/decl.c (annotate_value): Likewise.
7424
7425         * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
7426         GTY option.
7427         (struct lang_decl): Likewise.
7428         (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
7429         (SET_DECL_LANG_SPECIFIC): Likewise.
7430
7431 2010-06-04  Eric Botcazou  <ebotcazou@adacore.com>
7432
7433         * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
7434         * gcc-interface/lang-specs.h: Likewise.
7435
7436 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7437
7438         PR c++/44294
7439         * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
7440
7441 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
7442
7443         * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
7444
7445 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7446
7447         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
7448         TYPE_DECL of the equivalent type instead of building a new one.
7449
7450 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7451
7452         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
7453         Fix nits in comments.
7454         * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
7455         * gcc-interface/trans.c (gigi): Likewise.
7456         (Attribute_to_gnu): Likewise.
7457         (Case_Statement_to_gnu): Likewise.
7458         (gnat_to_gnu): Adjust warning message.
7459         * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
7460         (build_vms_descriptor32): Likewise.
7461
7462 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
7463
7464         * gcc-interface/decl.c: Pretend to be a backend file by undefining
7465         IN_GCC_FRONTEND (still need rtl.h here).
7466
7467 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7468
7469         * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
7470         (gigi): Adjust call to set_stack_check_libfunc.
7471
7472 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7473
7474         * gcc-interface/utils.c: Do not include rtl.h.
7475
7476 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7477
7478         * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
7479         and gimple.h.  Explain why rtl.h has to be included.
7480         (handle_vector_size_attribute): Call reconstruct_complex_type directly.
7481         * gcc-interface/targtyps.c: Do not include tm_p.h
7482         * gcc-interface/utils2.c: Do not include flags.h.
7483         * gcc-interface/trans.c: Do not include expr.h.  Include rtl.h instead,
7484         and explain why it has to be included.
7485         * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
7486         and optabs.h.
7487         Include function.h and explain why.  Explain why except.h is included.
7488         (enumerate_modes): Remove unused function. 
7489         * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
7490         * gcc-interface/Make-lang.in: Update dependencies.
7491
7492 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7493
7494         * gcc-interface/misc.c (internal_error_function): Add context
7495         parameter.  Use it to access show_column flag and instead of using
7496         global_dc.  Call warn_if_plugins.
7497         * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
7498
7499 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7500
7501         * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
7502         * gcc-interface/trans.c (unshare_save_expr): Delete.
7503         (gigi): Do not unshare trees under SAVE_EXPRs here.
7504
7505 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7506
7507         * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
7508         build_call_list.
7509         * gcc-interface/utils.c (build_function_stub): Likewise.
7510
7511 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7512
7513         * gcc-interface/misc.c (gnat_handle_option): Remove special logic
7514         for Wuninitialized without -O.
7515         
7516 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7517
7518         * gcc-interface/gigi.h (enum standard_datatypes): Add new value
7519         ADT_exception_data_name_id.
7520         (exception_data_name_id): New define.
7521         * gcc-interface/trans.c (gigi): Initialize it.
7522         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
7523         exception type for standard exception definitions.  Do not make them
7524         volatile.
7525         <E_Record_Type>: Equate fields of types associated with an exception
7526         definition to those of the standard exception type.
7527
7528 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
7529
7530         * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
7531
7532 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
7533
7534         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
7535         code, improve comments and fix formatting nits.
7536
7537 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
7538
7539         * gcc-interface/utils.c (update_pointer_to): Return early if the old
7540         pointer already points to the new type.  Chain the old pointer and its
7541         variants at the end of new pointer's chain after updating them.
7542
7543 2010-05-10  Eric Botcazou  <ebotcazou@adacore.com>
7544
7545         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
7546         built for interfaces.
7547         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
7548         imported_p instead of Is_Imported when considering constants.
7549         Do not promote alignment of exported objects.
7550         <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
7551
7552 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7553
7554         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
7555         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
7556         constants really constant.
7557         <E_Record_Subtype>: Strip the suffix for dispatch table entities.
7558
7559 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7560
7561         * gcc-interface/decl.c (make_aligning_type): Declare the type.
7562
7563 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7564
7565         * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
7566         expressions of variant part of record types declared at library level.
7567
7568 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7569
7570         * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
7571         * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
7572         (rest_of_record_type_compilation): Adjust call to create_field_decl.
7573         (make_descriptor_field): Likewise and pass correctly typed constants.
7574         (build_unc_object_type): Likewise.
7575         (unchecked_convert): Likewise.
7576         * gcc-interface/decl.c (elaborate_expression_2): New static function.
7577         (gnat_to_gnu_entity): Use it to make alignment factors explicit.
7578         Adjust call to create_field_decl.
7579         (make_aligning_type): Likewise.
7580         (make_packable_type): Likewise.
7581         (maybe_pad_type): Likewise.
7582         (gnat_to_gnu_field): Likewise.
7583         (components_to_record): Likewise.
7584         (create_field_decl_from): Likewise.
7585         (create_variant_part_from): Remove superfluous test.
7586         * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
7587
7588 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7589
7590         * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
7591         (build_unc_object_type_from_ptr): Likewise.
7592         * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
7593         and pass it to create_type_decl.  Declare the type.  Simplify.
7594         (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
7595         it to build_unc_object_type.
7596         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
7597         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7598         (gnat_to_gnu): Likewise.
7599         * gcc-interface/utils2.c (build_allocator): Likewise.
7600
7601 2010-05-07  Eric Botcazou  <ebotcazou@adacore.com>
7602
7603         PR 40989
7604         * gcc-interface/misc.c (gnat_handle_option): Fix long line.
7605
7606 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7607
7608         * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
7609
7610 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7611
7612         PR 40989
7613         * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
7614
7615 2010-05-02  Giuseppe Scrivano  <gscrivano@gnu.org>
7616
7617         * gnathtml.pl: Use 755 as mask for new directories.
7618
7619 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7620
7621         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
7622         constant constructors before taking their address.
7623
7624 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
7625
7626         * exp_dbug.ads: Fix outdated description.  Mention link between XVS
7627         and XVZ objects.
7628         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
7629         XVZ variable as unit size of XVS type.
7630         (maybe_pad_type): Likewise.
7631
7632 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
7633
7634         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
7635         use memmove if the array type is bit-packed.
7636
7637 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7638
7639         * gcc-interface/misc.c (gnat_init): Remove second argument in call to
7640         build_common_tree_nodes.
7641
7642 2010-04-18  Ozkan Sezer  <sezeroz@gmail.com>
7643
7644         * gsocket.h: Make sure that winsock2.h is included before windows.h.
7645
7646 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7647
7648         * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
7649         issue warning.
7650
7651 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7652
7653         * uintp.h (UI_Lt): Declare.
7654         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
7655         computation in sizetype.
7656         <E_Array_Subtype>: Use unified handling for all index types.  Do not
7657         generate MAX_EXPR-based expressions, only COND_EXPR-based ones.  Add
7658         bypass for PATs.
7659         (annotate_value): Change test for negative values.
7660         (validate_size): Apply test for negative values on GNAT nodes.
7661         (set_rm_size): Likewise.
7662         * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
7663         * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
7664         for negative values.
7665         (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
7666         (builtin_type_for_size): Adjust definition of signed_size_type_node.
7667         * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
7668         lengths against zero.
7669
7670 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7671
7672         * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
7673         * gcc-interface/gigi.h (gigi): Add standard_character parameter.
7674         (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, 
7675         LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
7676         LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
7677         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
7678         rm_size.
7679         * gcc-interface/misc.c (gnat_init): Set signedness of char as per
7680         flag_signed_char.  Tag sizetype with "size_type" moniker.
7681         * gcc-interface/trans.c (gigi): Add standard_character parameter.
7682         Remove useless built-in types.  Equate unsigned_char_type_node to
7683         Standard.Character.  Use it instead of char_type_node throughout.
7684         (Attribute_to_gnu): Likewise.
7685         (gnat_to_gnu): Likewise.
7686         * gcc-interface/utils2.c (build_call_raise): Likewise.
7687
7688 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7689
7690         * gcc-interface/gigi.h (enum standard_datatypes): Add new values
7691         ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
7692         (sbitsize_one_node): New macro.
7693         (sbitsize_unit_node): Likewise.
7694         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
7695         latent bug in the computation of subrange_p.  Fold wider_p predicate.
7696         (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
7697         the final comparison.
7698         (make_aligning_type): Build real negation and use sizetype throughout
7699         the offset computation.
7700         (maybe_pad_type): Do not issue the warning when the new size expression
7701         is too complex.
7702         (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
7703         * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
7704         sbitsize_unit_node.
7705         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
7706         double negation.
7707         (gnat_to_gnu) <N_Free_Statement>: Likewise.
7708         * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
7709         * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
7710         constants in sizetype.  Remove dead code and tweak comments.  Generate
7711         equality instead of inequality comparisons for zero length tests.
7712
7713 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7714
7715         * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
7716         * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
7717         <object>: Do not create the fake PARM_DECL if no debug info is needed.
7718         Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
7719         purposes if no debug info is needed.
7720         Fix formatting.  Reorder and add comments.
7721         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
7722         variable and remove obsolete comment.
7723         * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
7724         (convert_vms_descriptor32): Likewise.
7725         (convert): Remove dead code.
7726         <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
7727         the reference to the P_ARRAY pointer.
7728         <POINTER_TYPE>: Likewise.
7729         (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
7730         (gnat_init_decl_processing): Delete, move contents to...
7731         * gcc-interface/misc.c (gnat_init): ...here.
7732
7733 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7734
7735         * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
7736         calls.  Return true for conversion from a record subtype to its type.
7737
7738 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7739
7740         * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
7741         lieu of integer_type_node for boolean operations.
7742         (choices_to_gnu): Likewise.
7743         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7744         (Loop_Statement_to_gnu): Likewise.
7745         (establish_gnat_vms_condition_handler): Likewise.
7746         (Exception_Handler_to_gnu_sjlj): Likewise.
7747         (gnat_to_gnu): Likewise.
7748         (build_unary_op_trapv): Likewise.
7749         (build_binary_op_trapv): Likewise.
7750         (emit_range_check): Likewise.
7751         (emit_index_check): Likewise.
7752         (convert_with_check): Likewise.
7753         * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
7754         (convert_vms_descriptor32): Likewise.
7755         (convert_vms_descriptor): Likewise.
7756         * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
7757         (compare_arrays): Use boolean instead of integer constants.
7758         (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
7759         TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case.  Check that the result type
7760         is a boolean type.
7761         <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
7762         <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
7763         <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
7764         <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
7765         (build_unary_op): Use boolean_type_node in lieu of integer_type_node
7766         for boolean operations.
7767         (fill_vms_descriptor): Likewise.  Fix formatting nits.
7768
7769 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7770
7771         * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
7772         * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
7773         Merge into...
7774         (LOOP_STMT_COND): ...this.
7775         (LOOP_STMT_BOTTOM_COND_P): New flag.
7776         (LOOP_STMT_TOP_UPDATE_P): Likewise.
7777         * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
7778         (can_equal_min_val_p): New static inline function.
7779         (can_equal_max_val_p): Likewise.
7780         (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
7781         new LOOP_STMT semantics.  Use two different strategies depending on
7782         whether optimization is enabled to translate the loop.
7783         (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
7784
7785 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7786
7787         * uintp.adb (UI_From_Dint): Remove useless code.
7788         (UI_From_Int): Likewise.
7789         * uintp.h: Reorder declarations.
7790         (UI_From_gnu): Declare.
7791         (UI_Base): Likewise.
7792         (Vector_Template): Likewise.
7793         (Vector_To_Uint): Likewise.
7794         (Uint_0): Remove.
7795         (Uint_1): Likewise.
7796         * gcc-interface/gigi.h: Tweak comments.
7797         * gcc-interface/cuintp.c (UI_From_gnu): New global function.
7798         * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
7799         overflows.
7800         (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
7801         * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
7802         (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
7803         * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
7804         TYPE_MAX_VALUE.
7805
7806 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7807
7808         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
7809         TYPE_NAME.
7810         * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
7811         (smaller_form_type_p): ...this.  Change parameter and variable names.
7812         (call_to_gnu): Use the nominal type of the parameter to create the
7813         temporary if it's a smaller form of the actual type.
7814         (addressable_p): Return false if the actual type is integral and its
7815         size is greater than that of the expected type.
7816
7817 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7818
7819         * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
7820         * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
7821         (process_attributes): Delete.
7822         (post_error_ne_num): Change parameter name.
7823         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
7824         with -g3.  Remove a couple of obsolete lines.  Minor tweaks.
7825         If type annotating mode, operate on trees to compute the adjustment to
7826         the sizes of tagged types.  Fix long line.
7827         (cannot_be_superflat_p): Tweak head comment.
7828         (annotate_value): Fold local constant.
7829         (set_rm_size): Fix long line.
7830         * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
7831         (Attribute_to_gnu): Fix long line.
7832         <Attr_Size>: Remove useless assertion.
7833         Reorder statements.  Use size_binop routine.
7834         (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
7835         Create local variables for the label and the test.  Tweak comments.
7836         (Subprogram_Body_to_gnu): Reset cfun to NULL.
7837         (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
7838         (process_inlined_subprograms): Integrate into...
7839         (Compilation_Unit_to_gnu): ...this.
7840         (gnat_to_gnu): Fix long line.
7841         (post_error_ne_num): Change parameter name.
7842         * gcc-interface/utils.c (process_attributes): Static-ify.
7843         <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
7844         (create_type_decl): Add comment.
7845         (create_var_decl_1): Process the attributes after adding the VAR_DECL
7846         to the current binding level.
7847         (create_subprog_decl): Likewise for the FUNCTION_DECL.
7848         (end_subprog_body): Do not reset cfun to NULL.
7849         (build_vms_descriptor32): Fix long line.
7850         (build_vms_descriptor): Likewise.
7851         (handle_nonnull_attribute): Likewise.
7852         (convert_vms_descriptor64): Likewise.
7853         * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
7854         (gnat_protect_expr): Fix thinko.
7855
7856 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7857
7858         * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
7859         (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
7860         before translating the top-level node.
7861         (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
7862         <N_Object_Declaration>: Likewise.
7863         <N_Assignment_Statement>: Likewise.
7864         <N_Unchecked_Type_Conversion>: Likewise.
7865         (call_to_gnu): Remove kludge.
7866         (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
7867         associated with user returns to be preserved.
7868         (gnat_to_gnu): Add special code to deal with boolean rvalues.
7869         * gcc-interface/utils2.c (compare_arrays): Set input_location on all
7870         comparisons.
7871         (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
7872         <INDIRECT_REF>: Call build_fold_indirect_ref.
7873
7874 2010-04-15  Joel Sherrill  <joel.sherrill@oarcorp.com>
7875
7876         * g-socket.adb: A target can have multiple missing errno's.  This
7877         will result in multiple errno's being defined as -1.  Because of this
7878         we can not use a case but must use a series of if's to avoid 
7879         a duplicate case error in GNAT.Sockets.Resolve_Error.
7880
7881 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7882
7883         * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
7884         a statement.  Otherwise, if at top-level, push the processing of the
7885         elaboration routine.  In the misaligned case, issue the error messages
7886         again on entry and create the temporary explicitly.  Do not issue them
7887         for CONSTRUCTORs.
7888         For a function call, emit the range check if necessary.
7889         In the copy-in copy-out case, create the temporary for the return
7890         value explicitly.
7891         Do not unnecessarily convert by-ref parameters to the formal's type.
7892         Remove obsolete guards in conditions.
7893         (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
7894         target to call_to_gnu in all cases.
7895         (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
7896         (addressable_p) <CONSTRUCTOR>: Return false if not static.
7897         <COMPOUND_EXPR>: New case.
7898         * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
7899         expression if it has unconstrained array type.
7900         (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
7901         (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
7902         individual basis.
7903
7904 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7905
7906         * gcc-interface/trans.c (gigi): Do not start statement group.
7907         (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
7908         Start statement group and push binding level here...
7909         (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
7910         Do not push fake contexts at top level.  Remove redundant code.
7911         (call_to_gnu): Rename a local variable and constify another.
7912         * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
7913         (set_current_block_context): Set it as the group's block.
7914         (gnat_init_decl_processing): Delete unrelated init code.
7915         (end_subprog_body): Use NULL_TREE.
7916
7917 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7918
7919         * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
7920         side-effects of actual parameters before the call.
7921
7922 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7923
7924         * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
7925         and warning.
7926         (set_rm_size): Reorder and remove obsolete test.
7927
7928 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7929
7930         * gcc-interface/gigi.h: Reorder declarations and tweak comments.
7931         (gigi): Adjust ATTRIBUTE_UNUSED markers.
7932         * gcc-interface/gadaint.h: New file.
7933         * gcc-interface/trans.c: Include it in lieu of adaint.h.  Reorder.
7934         (__gnat_to_canonical_file_spec): Remove declaration.
7935         (number_names): Delete.
7936         (number_files): Likewise.
7937         (gigi): Adjust.
7938         * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
7939         above change.
7940
7941 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7942
7943         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
7944         comment.
7945         * gcc-interface/trans.c (process_freeze_entity): Use local copy of
7946         Ekind.  Return early for class-wide types.  Do not compute initializer
7947         unless necessary.  Reuse the tree for an associated class-wide type
7948         only if processing its root type.
7949
7950 2010-04-13  Joel Sherrill  <joel.sherrill@oarcorp.com>
7951
7952         * gsocket.h: Run-time can no longer be built without network
7953         OS headers available.  Changing RTEMS GNAT build procedure to
7954         reflect this and letting run-time build use network .h files.
7955
7956 2010-04-13  Duncan Sands  <baldrick@free.fr>
7957
7958         * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
7959         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
7960
7961 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
7962
7963         * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
7964         (parent_name_id): New macro.
7965         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
7966         * gcc-interface/trans.c (gigi): Initialize it.
7967         (lvalue_required_p) <N_Type_Conversion>: New case.
7968         <N_Qualified_Expression>: Likewise.
7969         <N_Allocator>: Likewise.
7970         * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
7971
7972 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
7973
7974         * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
7975         (DECL_CONST_ADDRESS_P): New macro.
7976         (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
7977         (SAME_FIELD_P): Likewise.
7978         * gcc-interface/decl.c (constructor_address_p): New static function.
7979         (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
7980         the return value of above function.
7981         (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
7982         passed by reference.
7983         <E_Record_Subtype>: Likewise.
7984         Set TREE_ADDRESSABLE on the type if it passed by reference.
7985         (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
7986         (create_field_decl_from): Likewise.
7987         (substitute_in_type): Likewise.
7988         (purpose_member_field): Use SAME_FIELD_P.
7989         * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
7990         * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
7991         parameter and adjust recursive calls.
7992         <N_Explicit_Dereference>: New case.
7993         <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
7994         Adjust calls to lvalue_required_p.  Do not return the initializer of a
7995         DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
7996         (call_to_gnu): Delay issuing error message for a misaligned actual and
7997         avoid the associated back-end assertion.  Test TREE_ADDRESSABLE.
7998         (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
7999         * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8000         type is passed by reference.
8001         (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8002         * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8003         (build_simple_component_ref): Use SAME_FIELD_P.
8004
8005 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8006
8007         * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
8008         (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
8009         front-end's predicate Is_By_Reference_Type.  Use consistent order and
8010         remove ??? comment.  Use original conversion in all cases, if any.
8011         * gcc-interface/utils.c (make_dummy_type): Minor tweak.
8012         (convert): Use local copy in more cases.
8013         <INDIRECT_REF>: Remove deactivated code.
8014         (unchecked_convert): Use a couple of local copies.
8015
8016 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8017
8018         * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
8019         function.
8020         (lvalue_required_p) <N_Attribute_Reference>: Call it.
8021         (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
8022         folding the result only if lvalue_required_for_attribute_p is true.
8023         * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
8024         typed constant to build_component_ref.
8025         (unchecked_convert): Likewise.
8026         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
8027         (build_allocator): Likewise.
8028
8029 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8030
8031         * gcc-interface/utils2.c (build_cond_expr): Take the address and
8032         dereference if the result type is passed by reference.
8033
8034 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8035
8036         * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
8037         (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
8038         goto to the next statement.
8039
8040 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8041
8042         * gcc-interface/gigi.h (maybe_variable): Delete.
8043         (protect_multiple_eval): Likewise.
8044         (maybe_stabilize_reference): Likewise.
8045         (gnat_save_expr): Declare.
8046         (gnat_protect_expr): Likewise.
8047         (gnat_stabilize_reference): Likewise.
8048         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
8049         gnat_stabilize_reference.
8050         (maybe_variable): Delete.
8051         (elaborate_expression_1): Use gnat_save_expr.
8052         * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
8053         (call_to_gnu): Pass NULL to gnat_stabilize_reference.
8054         (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
8055         <N_Slice>: Use gnat_protect_exp.
8056         <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
8057         <N_In>: Use gnat_protect_expr.
8058         Pass NULL to gnat_stabilize_reference.
8059         (build_unary_op_trapv): Use gnat_protect_expr.
8060         (build_binary_op_trapv): Likewise.
8061         (emit_range_check): Likewise.
8062         (emit_index_check): Likewise.
8063         (convert_with_check): Likewise.
8064         (protect_multiple_eval): Move to utils2.c file.
8065         (maybe_stabilize_reference): Merge into...
8066         (gnat_stabilize_reference): ...this.  Move to utils2.c file.
8067         (gnat_stabilize_reference_1): Likewise.
8068         * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
8069         instead of protect_multiple_eval.
8070         * gcc-interface/utils2.c (compare_arrays): Likewise.
8071         (nonbinary_modular_operation): Likewise.
8072         (maybe_wrap_malloc): Likewise.
8073         (build_allocator): Likewise.
8074         (gnat_save_expr): New function.
8075         (gnat_protect_expr): Rename from protect_multiple_eval.  Early return
8076         in common cases.  Propagate TREE_READONLY onto dereferences.
8077         (gnat_stabilize_reference_1): Move from trans.c file.
8078         (gnat_stabilize_reference): Likewise.
8079
8080 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8081
8082         * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
8083         * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
8084         node.  Use the type of the operand to set TREE_READONLY.
8085         * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
8086         _REF node.  Do not overwrite TREE_READONLY.
8087         (call_to_gnu): Rename local variable and fix various nits.  In the
8088         copy-in/copy-out case, build the SAVE_EXPR manually.
8089         (convert_with_check): Call protect_multiple_eval in lieu of save_expr
8090         and fold the computations.
8091         (protect_multiple_eval): Always save entire fat pointers.
8092         (maybe_stabilize_reference): Minor tweaks.
8093         (gnat_stabilize_reference_1): Likewise.  Do not deal with tcc_constant,
8094         tcc_type and tcc_statement.
8095         * gcc-interface/utils.c (convert_to_fat_pointer): Call
8096         protect_multiple_eval in lieu of save_expr.
8097         (convert): Minor tweaks.
8098         (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
8099         (builtin_type_for_size): Call gnat_type_for_size directly.
8100         * gcc-interface/utils2.c (contains_save_expr_p): Delete.
8101         (contains_null_expr): Likewise
8102         (gnat_build_constructor): Do not call it.
8103         (compare_arrays): Deal with all side-effects, use protect_multiple_eval
8104         instead of gnat_stabilize_reference to protect the operands.
8105         (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
8106         save_expr.
8107         (maybe_wrap_malloc): Likewise.
8108         (build_allocator): Likewise.
8109         (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
8110         (gnat_mark_addressable): Rename parameter.
8111
8112 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8113
8114         * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
8115         (TYPE_RETURN_UNCONSTRAINED_P): ...this.
8116         (TYPE_RETURNS_BY_REF_P): Rename into.
8117         (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
8118         (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
8119         * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
8120         (build_return_expr): Likewise.
8121         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
8122         Rename local variables.  If the return Mechanism is By_Reference, pass
8123         return_by_invisible_ref_p to create_subprog_type instead of toggling
8124         TREE_ADDRESSABLE.  Test return_by_invisible_ref_p in order to annotate
8125         the mechanism.  Use regular return for contrained types with non-static
8126         size and return by invisible reference for unconstrained return types
8127         with default discriminants.  Update comment.
8128         * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
8129         returns by invisible reference, turn the RESULT_DECL into a pointer.
8130         Do not handle DECL_BY_REF_P in the CICO case here.
8131         (call_to_gnu): Remove code handling return by target pointer.  For a
8132         function call, if the return type has non-constant size, generate the
8133         assignment with an INIT_EXPR.
8134         (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
8135         If the function returns by invisible reference, build the copy return
8136         operation manually.
8137         (add_decl_expr): Initialize the variable with an INIT_EXPR.
8138         * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
8139         Adjust for renaming of macros.  Copy the node only when necessary.
8140         (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
8141         type, only change DECL_BY_REFERENCE on the RETURN_DECL.
8142         (convert_from_reference): Delete.
8143         (is_byref_result): Likewise.
8144         (gnat_genericize_r): Likewise.
8145         (gnat_genericize): Likewise.
8146         (end_subprog_body): Do not call gnat_genericize.
8147         * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
8148         (build_return_expr): Adjust parameter names, logic and comment.
8149
8150 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8151
8152         * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
8153         if the size is small enough.  Propagate the alignment if there is an
8154         alignment clause on the original array type.
8155         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
8156         Deal with under-aligned packed array types.  Copy the size onto the
8157         justified modular type and don't lay it out again.  Likewise for the
8158         padding type built for other under-aligned subtypes.
8159         * gcc-interface/utils.c (finish_record_type): Do not set a default mode
8160         on the type.
8161
8162 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8163
8164         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
8165         alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
8166
8167 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8168
8169         * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
8170         do not set the result type if there is a specified target and do not
8171         convert the result in any cases.
8172         (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
8173         (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
8174
8175 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8176
8177         * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
8178
8179 2010-02-27  Eric Botcazou  <ebotcazou@adacore.com>
8180
8181         PR ada/42253
8182         * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
8183         pointer base types are variant of each other.  Apply special treatment
8184         for null to fat pointer types in all cases.
8185
8186 2010-01-28  Pascal Obry  <obry@adacore.com>
8187
8188         * s-win32.ads: Add some missing constants.
8189
8190 2010-01-28  Vincent Celier  <celier@adacore.com>
8191
8192         * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
8193         Unknown_Package.
8194
8195 2010-01-28  Robert Dewar  <dewar@adacore.com>
8196
8197         * gnat_rm.texi: Minor correction
8198
8199 2010-01-27  Pascal Obry  <obry@adacore.com>
8200
8201         * g-awk.adb: ensure that an AWK session is reusable.
8202
8203 2010-01-27  Vasiliy Fofanov  <fofanov@adacore.com>
8204
8205         * g-regist.adb (For_Every_Key): Fix previous change.
8206         Minor reformatting.
8207
8208 2010-01-27  Thomas Quinot  <quinot@adacore.com>
8209
8210         * lib-writ.ads: Current version of spec for new N (note) ALI lines
8211
8212 2010-01-27  Yannick Moy  <moy@adacore.com>
8213
8214         * a-cdlili.adb (Insert): Correct exception message when cursor
8215         designates wrong list.
8216
8217 2010-01-27  Vincent Celier  <celier@adacore.com>
8218
8219         * gnatcmd.adb: When there is only one main specified, the package
8220         support Switches (<main>) and attribute Switches is specified for the
8221         main, use these switches, instead of Default_Switches ("Ada").
8222
8223 2010-01-27  Robert Dewar  <dewar@adacore.com>
8224
8225         * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
8226         implementation.
8227         * exp_disp.adb: Minor reformatting
8228
8229 2010-01-27  Tristan Gingold  <gingold@adacore.com>
8230
8231         * seh_init.c: Use __ImageBase instead of _ImageBase.
8232
8233 2010-01-27  Javier Miranda  <miranda@adacore.com>
8234
8235         * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
8236         profile of interface thunks. The type of the controlling formal is now
8237         the covered interface type (instead of the target tagged type).
8238
8239 2010-01-27  Sergey Rybin  <rybin@adacore.com>
8240
8241         * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
8242
8243 2010-01-27  Robert Dewar  <dewar@adacore.com>
8244
8245         * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
8246         changed from Expr to N.
8247
8248 2010-01-26  Thomas Quinot  <quinot@adacore.com>
8249
8250         * gnat_ugn.texi: Adjust documentation of -gnatz switches.
8251         * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
8252         -gnatzr.
8253
8254 2010-01-26  Vincent Celier  <celier@adacore.com>
8255
8256         * prj-attr.adb: Add new attribute Library_Install_Name_Option
8257         Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
8258         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8259         attributes Run_Path_Option and Library_Install_Name_Option.
8260         * prj.ads (Project_Configuration): Replace component
8261         Run_Path_Origin_Supported with component Run_Path_Origin. Add new
8262         component Library_Install_Name_Option.
8263         * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
8264         Replace Run_Path_Origin_Supported with Run_Path_Origin
8265
8266 2010-01-26  Ed Schonberg  <schonberg@adacore.com>
8267
8268         * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
8269         is not hidden by a homograph declared in another actual package.
8270
8271 2010-01-26  Robert Dewar  <dewar@adacore.com>
8272
8273         * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
8274         decisions for pragmas Assert, Check, Precondition, Postcondition if
8275         -gnata set.
8276         * scos.ads: Update comments.
8277         * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
8278         Also remove obsolete code for CT (exit point) SCOs.
8279
8280 2010-01-26  Thomas Quinot  <quinot@adacore.com>
8281
8282         * switch-c.adb: Fix handling of -gnatz*
8283
8284 2010-01-26  Robert Dewar  <dewar@adacore.com>
8285
8286         * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
8287         qualifiers for FOR/WHILE loops
8288         * scos.ads: Use separate type letters F/W for for/while loops
8289
8290 2010-01-26  Robert Dewar  <dewar@adacore.com>
8291
8292         * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
8293         entries per line, one for each statement in the sequence).
8294         * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
8295         size from 100 to 10_000 for SC_Array to avoid any real possibility of
8296         overflow. Output decisions in for loops.
8297         Exclude labels from CS lines.
8298         * scos.ads: Clarify that label is not included in the entry point
8299
8300 2010-01-26  Robert Dewar  <dewar@adacore.com>
8301
8302         * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
8303         format of statement sequence SCO entries (one location/statement).
8304         * put_scos.adb (Put_SCOs): Implement new format of CS lines
8305         * scos.ads: Update comments.
8306         * sem_eval.adb: Minor reformatting.
8307
8308 2010-01-26  Robert Dewar  <dewar@adacore.com>
8309
8310         * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
8311         (Extend_Statement_Sequence): New procedures
8312         (Traverse_Declarations_Or_Statements): New handling for exits.
8313
8314 2010-01-26  Robert Dewar  <dewar@adacore.com>
8315
8316         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
8317         Case.
8318
8319 2010-01-26  Robert Dewar  <dewar@adacore.com>
8320
8321         * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
8322         * scos.ads: Clarify handling of logical operators
8323
8324 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
8325
8326         * s-tpoben.adb: Update comments.
8327
8328 2010-01-26  Robert Dewar  <dewar@adacore.com>
8329
8330         * freeze.adb (Set_Small_Size): Don't set size if alignment clause
8331         present.
8332
8333 2010-01-26  Robert Dewar  <dewar@adacore.com>
8334
8335         * scos.ads: Clean up documentation, remove obsolete XOR references
8336 2010-01-26  Vincent Celier  <celier@adacore.com>
8337
8338         * gnat_ugn.texi: Complete documentation on the restrictions for
8339         combined options in -gnatxxx switches.
8340         Fix typo.
8341
8342 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
8343
8344         * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
8345         a controlled operation, abort is already deferred at this point, so we
8346         need to use Defer_Abort_Nestable.
8347
8348 2010-01-26  Vincent Celier  <celier@adacore.com>
8349
8350         * prj-conf.adb (Get_Config_Switches): Check for a default language for
8351         a project extending a project with no languages.
8352
8353 2010-01-26  Vincent Celier  <celier@adacore.com>
8354
8355         * switch-c.adb (Scan_Front_End_Switches): Take into account options
8356         that follow -gnatef.
8357         Allow -gnateG to be followed by other options.
8358
8359 2010-01-26  Robert Dewar  <dewar@adacore.com>
8360
8361         * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
8362         s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
8363         reformatting.
8364
8365 2010-01-26  Vasiliy Fofanov  <fofanov@adacore.com>
8366
8367         * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
8368         that allows to iterate over all subkeys of a key.
8369
8370 2010-01-26  Ed Falis  <falis@adacore.com>
8371
8372         * sysdep.c: enable NFS for VxWorks MILS
8373         * env.c: enable __gnat_environ for VxWorks MILS
8374         * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
8375
8376 2010-01-25  Bob Duff  <duff@adacore.com>
8377
8378         * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
8379         is an internally-generated positional aggregate, and the bounds are
8380         already correctly set. We don't want to overwrite those bounds with
8381         bounds determined by context.
8382
8383 2010-01-25  Robert Dewar  <dewar@adacore.com>
8384
8385         * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
8386         exp_ch9.adb, g-sechas.ads: Minor reformatting.
8387
8388 2010-01-25  Thomas Quinot  <quinot@adacore.com>
8389
8390         * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
8391         integer type) before subtracting 1, otherwise the computation may wrap
8392         (because size_t is modular) and cause the conversion to fail.
8393
8394 2010-01-25  Ed Falis  <falis@adacore.com>
8395
8396         * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
8397
8398 2010-01-25  Vincent Celier  <celier@adacore.com>
8399
8400         * prj-attr.adb: New attribute Run_Path_Origin_Required
8401         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
8402         attribute Run_Path_Origin_Required.
8403         * prj.ads (Project_Configuration): New component
8404         Run_Path_Origin_Supported.
8405         * snames.ads-tmpl: New standard name Run_Path_Origin_Required
8406
8407 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
8408
8409         * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
8410         have errors, do not continue resolution of the aggregate.
8411         * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
8412         the array type indicates an error.
8413
8414 2010-01-25  Bob Duff  <duff@adacore.com>
8415
8416         * sinfo.ads: Minor comment fixes.
8417
8418 2010-01-25  Bob Duff  <duff@adacore.com>
8419
8420         * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
8421
8422 2010-01-25  Arnaud Charlet  <charlet@adacore.com>
8423
8424         * gnatvsn.ads (Current_Year): Update.
8425
8426 2010-01-25  Florian Villoing  <villoing@adacore.com>
8427
8428         * gnat_ugn.texi: Fix typo.
8429
8430 2010-01-25  Thomas Quinot  <quinot@adacore.com>
8431
8432         * scos.ads: Update specification.
8433
8434 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
8435
8436         * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
8437         enclosing subprogram has no previous spec, attach postcondition
8438         procedure to the defining entity for the body.
8439
8440 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
8441
8442         * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
8443         initialization procedure of the ancestor part of an extension aggregate
8444         if it is an interface type.
8445
8446 2010-01-25  Vincent Celier  <celier@adacore.com>
8447
8448         * gnatlink.adb (Process_Binder_File): The directory for the shared
8449         version of libgcc in the run path options is found in the subdirectory
8450         indicated by __gnat_default_libgcc_subdir.
8451         * link.c: Declare new const char * __gnat_default_libgcc_subdir for
8452         each platform.
8453
8454 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
8455
8456         * sem_prag.adb: More flexible pragma Annotate.
8457
8458 2010-01-22  Eric Botcazou  <ebotcazou@adacore.com>
8459
8460         * system-linux-armel.ads (Stack_Check_Probes): Set to True.
8461         * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
8462
8463 2010-01-18  Eric Botcazou  <ebotcazou@adacore.com>
8464
8465         * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
8466
8467 2010-01-18  Jan Hubicka  <jh@suse.cz>
8468
8469         PR middle-end/42068
8470         * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
8471         unit local variables.
8472
8473 2010-01-17  Laurent GUERBY  <laurent@guerby.net>
8474
8475         * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
8476
8477 2010-01-11  Mikael Pettersson  <mikpe@it.uu.se>
8478
8479         * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
8480         * system-linux-armeb.ads, system-linux-armel.ads: New files.
8481
8482 2010-01-09  Simon Wright  <simon@pushface.org>
8483
8484         PR ada/42626
8485         * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
8486         end-quote.
8487
8488
8489 \f
8490 Copyright (C) 2010 Free Software Foundation, Inc.
8491
8492 Copying and distribution of this file, with or without modification,
8493 are permitted in any medium without royalty provided the copyright
8494 notice and this notice are preserved.