OSDN Git Service

54bd5d9fa3672898fef5d99b61b2b5770e7814c0
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2010-09-09  Vincent Celier  <celier@adacore.com>
2
3         * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4         System.Case_Util
5         (Canonical_Case_Env_Var_Name): Ditto
6
7 2010-09-09  Bob Duff  <duff@adacore.com>
8
9         * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
10
11 2010-09-09  Robert Dewar  <dewar@adacore.com>
12
13         * cstand.adb: Mark Boolean and Character types as Ordered
14         * einfo.adb (Has_Pragma_Ordered): New flag
15         * einfo.ads (Has_Pragma_Ordered): New flag
16         * g-calend.ads: Mark Day_Name as Ordered
17         * opt.ads: Mark Ada_Version_Type as Ordered
18         (Warn_On_Unordered_Enumeration_Type): New flag
19         * par-prag.adb: Add procdessing for pragma Ordered
20         * s-ficobl.ads (Read_File_Mode): New subtype
21         * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
22         * s-taskin.ads: Mark Entry_Call_State as ordered
23         * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
24         Has_Pragma_Ordered.
25         * sem_ch6.ads: Mark Conformance_Type as Ordered
26         * sem_prag.adb: Implement pragma Ordered
27         * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
28         (Resolve_Comparison_Op): Diagnose unordered comparison
29         (Resolve_Range): Diagnose unordered range
30         * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
31         -gnatw.u/U)
32         * snames.ads-tmpl: Add entry for pragma Ordered
33         * style.ads (Check_Enumeration_Subrange): Removed
34         * styleg.adb (Check_Enumeration_Subrange): Removed
35         * styleg.ads (Check_Enumeration_Subrange): Removed
36         * stylesw.adb: Remove handling of -gnatyE switch
37         * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
38         * vms_data.ads: Remove -gnatyE entries
39         Add -gnatw.u entries
40         * ug_words: Entries for -gnatw.u and -gnatw.U
41         * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
42         * gnat_rm.texi: Document pragma Ordered.
43         * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
44         * s-tpobop.adb: Remove comparison on unordered enumeration type.
45
46 2010-09-09  Vincent Celier  <celier@adacore.com>
47
48         * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
49         for VMS and Windows, and 1 for all other platforms.
50         * adaint.h: New function __gnat_get_env_vars_case_sensitive
51         * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
52         * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
53         Canonical_Case_File_Name, as we are dealing with environment variables,
54         not files.
55
56 2010-09-09  Robert Dewar  <dewar@adacore.com>
57
58         * sem_util.adb: Minor reformatting
59
60 2010-09-09  Vincent Celier  <celier@adacore.com>
61
62         * vms_data.ads: Add documentation for S_Make_Single.
63
64 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
65
66         * sem_util.adb (Same_Object): include formal parameters.
67
68 2010-09-09  Vincent Celier  <celier@adacore.com>
69
70         * make.adb (Queue): New package implementing a new impementation of the
71         queue, taking into account the new switch --single-compile-per-obj-dir.
72         * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
73         for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
74         * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
75         False.
76         * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
77         switch --single-compile-per-obj-dir.
78         * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
79         switch --single-compile-per-obj-dir.
80         * gnat_ugn.texi: Add documentation for new gnatmake switch
81         --single-compile-per-obj-dir.
82
83 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
84
85         * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
86
87 2010-09-09  Javier Miranda  <miranda@adacore.com>
88
89         * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
90         (Replace_Type): Code cleanup.
91         * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
92
93 2010-09-09  Thomas Quinot  <quinot@adacore.com>
94
95         * exp_ch8.adb: Minor reformatting.
96
97 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
98
99         * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
100         Corresponding_Protected_Entry.
101
102 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
103
104         * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
105         inequality, it is always rewritten as the negation of the corresponding
106         equality operation.
107         * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
108         the predefined equality of an untagged record, create a body at the
109         point of the renaming, to capture the current meaning of equality for
110         the type.
111
112 2010-09-09  Robert Dewar  <dewar@adacore.com>
113
114         * sem.adb, sem_warn.adb: Minor reformatting.
115
116 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
117
118         * sem_ch6.adb: Improve error message on untagged equality.
119         * sem.adb (Semantics): Include subprogram bodies that act as spec.
120
121 2010-09-09  Javier Miranda  <miranda@adacore.com>
122
123         * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
124
125 2010-09-09  Robert Dewar  <dewar@adacore.com>
126
127         * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
128
129 2010-09-09  Robert Dewar  <dewar@adacore.com>
130
131         * einfo.adb (Is_Aggregate_Type): New function.
132         * einfo.ads (Aggregate_Kind): New enumeration subtype
133         (Is_Aggregate_Type): New function.
134         * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
135         Is_Aggregate_Typea.
136
137 2010-09-09  Robert Dewar  <dewar@adacore.com>
138
139         * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
140         sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
141         where appropriate.
142         * restrict.ads, restrict.adb: Ditto.
143         (Restriction_Check_Needed): New function
144
145 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
146
147         * exp_ch9.ads (Find_Master_Scope): New function, extracted from
148         Build_Master_Entity, to find the proper scope for the master entity of
149         a type that may contain tasks, in the presence of transient scopes.
150         * exp_ch9.adb (Build_Master_Entity) Use new function.
151         * exp_ch3.adb (Build_Class_Wide_Master): ditto.
152
153 2010-09-09  Vincent Celier  <celier@adacore.com>
154
155         * prj-attr.adb: Add new attributes Leading_Library_Options and
156         Linker'Leading_Switches.
157         * snames.ads-tmpl: Add new standard names Leading_Library_Options and
158         Leading_Switches.
159
160 2010-09-09  Javier Miranda  <miranda@adacore.com>
161
162         * sem_ch3.adb (Derive_Subprogram): The code that checks if a
163         dispatching primitive covers some interface primitive is incomplete.
164         Replace such code by the invocation of a new subprogram that provides
165         this functionality.
166         * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
167         * sem_ch6.adb (Check_Missing_Return): Minor reformating
168         (Check_Convention): Complete if-statement conditition when reporting
169         errors (to avoid assertion failure).
170         * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
171         located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
172         (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
173         overridden null interface primitives.
174         * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
175         private type is an interface then use the parent of its full view to
176         climb to its ancestor type.
177         * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
178         (Check_Dispatching_Operation): Extend assertion to handle wrappers of
179         null interface primitives.
180         (Is_Null_Interface_Primitive): New subprogram.
181         * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
182         (Expand_Freeze_Record_Type): Do not generate specs of null interface
183         subprograms because they are now generated by Analyze_Freeze_Entity.
184
185 2010-09-09  Robert Dewar  <dewar@adacore.com>
186
187         * a-calfor.adb, sem_ch3.adb: Minor reformatting.
188
189 2010-09-09  Robert Dewar  <dewar@adacore.com>
190
191         * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
192         (Gen_Restrictions_C): Avoid explicit enumeration ranges
193         (Set_String_Replace): New procedure
194         * casing.ads (Known_Casing): New subtype declaration
195         * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
196         declaration
197         * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
198         * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
199         * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
200         * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
201         * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
202         ranges
203         * sem_res.adb (Resolve_Range): Check for enumeration subrange style rule
204         * sem_type.adb (Is_Array_Class_Record_Type): New.
205         * style.ads (Check_Enumeration_Subrange): New procedure
206         * styleg.adb (Check_Enumeration_Subrange): New procedure
207         * styleg.ads (Check_Enumeration_Subrange): New procedure
208         * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
209         * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
210         * usage.adb: Add line for -gnatyE
211         * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
212         Add missing entry for NOBOOLEAN_OPERATORS
213         * gnat_ugn.texi: Add documentation for -gnatyE
214
215 2010-09-09  Robert Dewar  <dewar@adacore.com>
216
217         * namet.adb (Initialize): Is now a dummy procedure
218         (Reinitialize): New procedure
219         Call Reinitialize from package initialization
220         * namet.ads (Initialize): Is now a dummy procedure
221         (Reinitialize): New procedure
222         * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
223         gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
224         Namet.Initialize.
225
226 2010-09-09  Bob Duff  <duff@adacore.com>
227
228         * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
229
230 2010-09-09  Robert Dewar  <dewar@adacore.com>
231
232         * s-bitops.adb (Raise_Error): Add exception message
233
234 2010-09-09  Robert Dewar  <dewar@adacore.com>
235
236         * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
237         null statement after label.
238         * sinfo.ads: Minor comment updates.
239
240 2010-09-09  Robert Dewar  <dewar@adacore.com>
241
242         * nlists.ads, nlists.adb (In_Same_List): New function.
243         Use Node_Or_Entity_Id where appropriate.
244         * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
245
246 2010-09-09  Robert Dewar  <dewar@adacore.com>
247
248         * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
249         procedure.
250         * sem_ch3.adb: Use Check_Wide_Character_Restriction
251         (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
252         * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
253         (Find_Expanded_Name): Check violation of No_Wide_Characters
254
255 2010-09-09  Robert Dewar  <dewar@adacore.com>
256
257         * par-ch5.adb: Minor reformatting.
258
259 2010-09-09  Robert Dewar  <dewar@adacore.com>
260
261         * prj-env.adb: Minor code reorganization.
262         * par-ch3.adb: Minor reformatting.
263         * gcc-interface/Make-lang.in: Update dependencies.
264
265 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
266
267         * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
268         a task declaration can be an entry body.
269
270 2010-09-09  Javier Miranda  <miranda@adacore.com>
271
272         * exp_disp.adb (Make_DT): Decorate as "static" variables containing
273         tags of library level tagged types.
274         (Make_Tags): Disable backend optimizations about aliasing for
275         declarations of access to dispatch tables.
276
277 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
278
279         * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
280         subtype for a null-excluding access type, recover the original
281         subtype_mark to get the proper visibility on the original name.
282
283 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
284
285         * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
286         create the primitive equality operation for an untagged record. The
287         operation is the predefined equality if no record component has a
288         user-defined equality, or if there is a user-defined equality for the
289         type as a whole, or when the type is derived and it has an inherited
290         equality. Otherwise the body of the operations is built as for tagged
291         types.
292         (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
293         (Make_Eq_Body): New function to create the expanded body of the equality
294         operation for tagged and untagged records.  In both cases the operation
295         composes, and the primitive operation of each record component is used
296         to generate the equality function for the type.
297         * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
298         has an abstract equality defined, replace its call with a
299         Raise_Program_Error.
300         * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
301         user-defined equality operator for an untagged record type does not
302         happen after type is frozen, and appears in the visible part if partial
303         view of type is not limited.
304
305 2010-09-09  Tristan Gingold  <gingold@adacore.com>
306
307         * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
308
309 2010-09-09  Bob Duff  <duff@adacore.com>
310
311         * gnat_ugn.texi: Remove incorrect statement about -E being the default.
312
313 2010-09-09  Pascal Obry  <obry@adacore.com>
314
315         * gnat_ugn.texi: Update doc on windows related topics.
316
317 2010-09-09  Geert Bosch  <bosch@adacore.com>
318
319         * s-fatgen.adb: Update comments.
320
321 2010-09-09  Robert Dewar  <dewar@adacore.com>
322
323         * par-ch4.adb (Box_Error): New procedure.
324
325 2010-09-09  Thomas Quinot  <quinot@adacore.com>
326
327         * sem.adb: Minor reformatting.
328
329 2010-09-09  Pascal Obry  <obry@adacore.com>
330
331         * prj-env.adb: Style fix, use /and then/ and /or else/.
332         * gnat_ugn.texi: Fix typos.
333
334 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
335
336         PR ada/45499
337         * gcc-interface/misc.c (gnat_init_options): Allow options with
338         empty canonical form.  Generate a single save_argv element from -I
339         options.
340
341 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
342
343         * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
344         Attach fake PARM_DECLs to the topmost block of the function.
345
346 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
347
348         * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
349         for the call to a function whose return type was unconstrained.
350
351 2010-08-30  Olivier Hainque  <hainque@adacore.com>
352
353         * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
354         replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
355         (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
356
357 2010-08-21  Eric Botcazou  <ebotcazou@adacore.com>
358
359         * tracebak.c: Fix typo in comment.
360
361 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
362
363         * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
364         * gcc-interface/trans.c: Likewise.
365         * gcc-interface/utils.c: Likewise.
366
367 2010-08-18  Eric Botcazou  <ebotcazou@adacore.com>
368
369         * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
370
371 2010-08-10  Robert Dewar  <dewar@adacore.com>
372
373         * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
374         * sem_util.adb: Minor reformatting.
375
376 2010-08-10  Javier Miranda  <miranda@adacore.com>
377
378         * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
379         constructors that leave the object partially initialized.
380         * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
381         that copies from parent of Typ the dispatch table slots of inherited
382         C++ primitives. It handles primary and secondary dispatch tables.
383         * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
384         use this attribute with E_Variable entities.
385         (Set_Is_Tag): Relax assertion to allow its use with variables that
386         store tags.
387         (Set_Related_Type): Relax assertion to allow its use with variables
388         that store the tag of a C++ class.
389         (Write_26_Field_Name): Remove Related_Type.
390         (Write_27_Field_Name): Add Related_Type.
391         * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
392         with E_Variable entities.
393         * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
394         pragma.
395         * sem_util.adb (Search_Tag): Add missing support for CPP types.
396         (Enclosing_CPP_Parent): New subprogram.
397         (Has_Suffix): New subprogram.
398         * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
399         closest ancestor of a type that is a C++ type.
400         (Has_Suffix): New subprogram. Used in assertions to check the suffix of
401         internal entities.
402         * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
403         instance in derivations of C++ types.
404         * exp_tss.adb (CPP_Init_Proc): New subprogram.
405         (Is_CPP_Init_Proc): New subprogram.
406         (Set_TSS): Handle new C++ init routines.
407         * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
408         dispatch tables.
409         (CPP_Init_Proc): New subprogram.
410         (Is_CPP_Init_Proc): New subprogram.
411         * exp_disp.adb (CPP_Num_Prims): New subprogram.
412         (Has_CPP_Constructors): New subprogram.
413         (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
414         initialize slots located in the C++ part of the dispatch table.
415         (Make_Tags): For CPP types declare variables used by the IP routine to
416         store the C++ tag values after the first invocation of the C++
417         constructor.
418         (Build_CPP_Init_DT): New subprogram.
419         (Set_CPP_Constructors): New implementation that builds an IP for each
420         CPP constructor. These IP are wrappers of the C++ constructors that,
421         after the first invocation of the constructor, read the C++ tags from
422         the object and save them locally. These copies of the C++ tags are used
423         by the IC routines to initialize tables of Ada derivations of CPP types.
424         (Write_DT): Indicate what primitives are imported from C++
425         * exp_disp.ads (CPP_Num_Prims): New subprogram.
426         (Has_CPP_Constructors): New subprogram.
427         * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
428         invoke the IC routine to inherit the slots of the parents.
429         * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
430         * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
431         (Is_Variable_Size_Record): Factorize code calling
432         Is_Variable_Size_Array.
433         (Build_CPP_Init_Procedure): New subprogram that builds the tree
434         corresponding to the procedure that initializes the C++ part of the
435         dispatch table of an Ada tagged type that is a derivation of a CPP type.
436         (Build_Init_Procedure): Adding documentation plus code reorganization to
437         leave more clear the construction of the IP with C++ types.
438         (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
439         it cannot be called after Make_Tags has been invoked.
440         (Inherit_CPP_Tag): Removed.
441         (Init_Secondary_Tags): For derivations of CPP types, warn on tags
442         located at variable offset.
443         * freeze.ads: Minor reformating.
444         * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
445         available in gdb.
446         * gcc-interface/Make-lang.in: Update dependencies.
447
448 2010-08-10  Robert Dewar  <dewar@adacore.com>
449
450         * a-chahan.ads: Add comments on handling of obsolescent entries.
451         * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
452         * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
453         * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
454         * sem_attr.adb (Analyze_Access_Attribute): Call
455         Check_Obsolescent_2005_Entity to check for access to obsolescent
456         Ada.Characters.Handling subprogram.
457         (Analyze_Attribute, case Class): Applying Class to untagged incomplete
458         type is obsolescent in Ada 2005.
459         (Analyze_Attribute, case Constrained): Better placement of flag when
460         flagged as obsolescent feature.
461         (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
462         * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
463         is an obsolescent feature.
464         * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
465         feature.
466         * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
467         Check_Obsolescent_2005_Entity to check for renaming obsolete
468         Ada.Characters.Handling subprogram.
469         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
470         for obsolescent restrictions in Ada 2005.
471         (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
472         (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
473         * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
474         check for obsolescent references to Ada.Characters.Handling subprograms
475
476 2010-08-10  Robert Dewar  <dewar@adacore.com>
477
478         * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
479
480 2010-08-10  Robert Dewar  <dewar@adacore.com>
481
482         * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
483         * par-ch4.adb: Change wording of Ada 2012 messages
484         * vms_data.ads: Add VMS entries for /2005, /12, /2012
485
486 2010-08-10  Robert Dewar  <dewar@adacore.com>
487
488         * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
489         codes in the range 16#80#..16#7FF#.
490         * sem_ch10.adb: Minor reformatting.
491
492 2010-08-10  Arnaud Charlet  <charlet@adacore.com>
493
494         * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
495         generate ali files in CodePeer mode, so that a gnatmake -c -k will
496         proceed further when possible
497         * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
498         messages when ignoring representation clauses (-gnatI).
499
500 2010-08-10  Ed Schonberg  <schonberg@adacore.com>
501
502         * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
503         constant-fold discriminant reference if the constraint is an object
504         with non-static expression. Expression may contain volatile references
505         in the presence of renamings.
506
507 2010-08-10  Vincent Celier  <celier@adacore.com>
508
509         * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
510         returns Index.
511         * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
512         index for an associative array where it is allowed.
513
514 2010-08-10  Thomas Quinot  <quinot@adacore.com>
515
516         * exp_attr.adb: Add comments.
517
518 2010-08-10  Jerome Lambourg  <lambourg@adacore.com>
519
520         * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
521
522 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
523
524         * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
525
526 2010-08-09  Eric Botcazou  <ebotcazou@adacore.com>
527
528         * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
529         (build_vms_descriptor): Likewise.
530
531 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
532
533         * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
534         (build_vms_descriptor32): Adjust calls to it for new parameter.
535         (build_vms_descriptor): Likewise.
536
537 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
538
539         * gcc-interface/decl.c (rec_variant):  Declare.  Declare a VEC of it.
540         (build_variant_list): Take and return a VEC instead of a tree.
541         (create_variant_part_from): Take a VEC instead of a tree for
542         variant_list.  Adjust accordingly.
543         (gnat_to_gnu_entity): Adjust for changes to previous functions.
544
545 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
546
547         * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
548         of alloca.
549         (components_to_record): Likewise.
550         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
551         * gcc-interface/utils.c (max_size): Likewise.
552         (build_vms_descriptor32): Likewise.
553         (build_vms_descriptor): Likewise.
554
555 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
556
557         * gcc-interface/decl.c (subst_pair): Declare.  Declare a VEC of it.
558         (build_subst_list): Return a VEC instead of a tree.
559         (build_variant_list): Take a VEC for subst_list.  Adjust
560         accordingly.
561         (create_field_decl_from): Likewise.
562         (create_variant_part_from): Likewise.
563         (copy_and_substitute_in_size): Likewise.
564         (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
565         Free the built vector.
566
567 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
568
569         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
570         allocator for large imported objects.
571
572 2010-08-05  Robert Dewar  <dewar@adacore.com>
573
574         * gnat1drv.adb: Minor reformatting.
575
576 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
577
578         * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
579         instantiation, process its body before the spec of the main unit,
580         because it may contain subprograms invoked in the spec of main.
581         * einfo.ads: Add documention of delayed freeze.
582
583 2010-08-05  Vincent Celier  <celier@adacore.com>
584
585         * prj-nmsc.adb (Process_Linker): Take into account new values for
586         attribute Response_File_Format.
587         * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
588         GCC_Object_List and GCC_Option_List.
589
590 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
591
592         * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
593         selected component that denotes a discriminant if it is the
594         discriminant of a component of an unconstrained record type.
595
596 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
597
598         * exp_util.adb (Insert_Actions): If the action appears within a
599         conditional expression that is already analyzed, insert action further
600         out.
601
602 2010-08-05  Robert Dewar  <dewar@adacore.com>
603
604         * exp_ch4.adb: Minor reformatting.
605
606 2010-08-05  Thomas Quinot  <quinot@adacore.com>
607
608         * exp_ch4.adb: Minor reformatting
609         * gnat1drv.adb: Minor reformatting.
610         Minor code reorganization (use Nkind_In).
611
612 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
613
614         * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
615         determine whether the expression in an address clause for an
616         initialized object must be constant. Code moved from freeze.adb.
617         (Remove_Side_Effects): When the temporary is initialized with a
618         reference, indicate that the temporary is a constant as done in all
619         other cases.
620         * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
621         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
622         If object does not need a constant address, remove side effects from
623         address expression, so it is elaborated at the point of the address
624         clause and not at the freeze point of the object, so that elaboration
625         order is respected.
626
627 2010-08-05  Vincent Celier  <celier@adacore.com>
628
629         * prj.adb (Is_Compilable): Return False for header files of non Ada
630         languages.
631
632 2010-08-05  Emmanuel Briot  <briot@adacore.com>
633
634         * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
635         exec directory as a warning rather than an error.
636
637 2010-08-05  Thomas Quinot  <quinot@adacore.com>
638
639         * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
640         reformatting.
641
642 2010-08-05  Steve Baird  <baird@adacore.com>
643
644         * exp_util.adb (Remove_Side_Effects): An access value which designates
645         a volatile object of a nonvolatile type is prohibited.
646         Do not call Make_Reference to construct a reference to such an object.
647
648 2010-08-05  Robert Dewar  <dewar@adacore.com>
649
650         * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
651         * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
652         a-suewen.adb, a-suewen.ads: New files.
653         * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
654         encoding packages.
655         * sem_elab.adb: Minor reformatting.
656
657 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
658
659         * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
660         * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
661         in case of null Comp.
662
663 2010-08-05  Robert Dewar  <dewar@adacore.com>
664
665         * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
666
667 2010-08-05  Gary Dismukes  <dismukes@adacore.com>
668
669         * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
670         nested access type whose designated type has tasks or is a protected
671         object when the restrictions No_Task_Hierarchy or
672         No_Local_Protected_Objects apply. Add ??? comment.
673         * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
674         type is not a library-level type and No_Local_Protected_Objects applies.
675         (Analyze_Task_Type): Give a warning when a task type is not a
676         library-level type and No_Task_Hierarchy applies.
677
678 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
679
680         * sem.adb: Minor reformatting
681         * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
682         mode, not useful.
683
684 2010-08-04  Eric Botcazou  <ebotcazou@adacore.com>
685
686         * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
687         include expr.h.
688         (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
689         for the debug-only entity.
690         * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
691
692 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
693
694         * gcc-interface/lang-specs.h: Don't pass -a options.
695
696 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
697
698         * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
699         options.  Check canonical_option_num_elements on options copied.
700
701 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
702
703         * gcc-interface/misc.c (gnat_handle_option): Update prototype and
704         return value type.  Don't check for missing arguments here.
705
706 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
707
708         * gcc-interface/misc.c (gnat_option_lang_mask): New.
709         (gnat_init_options): Update prototype.  Reconstruct argv array
710         from decoded options.
711
712 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
713
714         * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
715         case, merge the alias set of the old pointer type.
716
717 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
718
719         * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
720         and recurse only for multidimensional array types instead.
721
722 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
723
724         PR ada/44892
725         * gcc-interface/utils.c (convert): Fix thinko in test.
726         (unchecked_convert): When converting from a scalar type to a type with
727         a different size, pad to have the same size on both sides.
728
729 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
730
731         * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
732         equality for the component type of array types.
733
734 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
735
736         * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
737         * gcc-interface/trans.c: Likewise.
738         * gcc-interface/utils.c: Likewise.
739         * gcc-interface/utils2.c: Likewise.
740
741 2010-07-13  Laurent GUERBY  <laurent@guerby.net>
742
743         PR bootstrap/44458
744         * gcc-interface/targtyps.c: Include tm_p.h.
745         * gcc-interface/Make-lang.in: Update dependencies.
746
747 2010-07-09  Eric Botcazou  <ebotcazou@adacore.com>
748
749         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
750         CALL_EXPR.
751
752 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
753
754         * gcc-interface/utils.c: Include diagnostic-core.h in every file
755         that includes toplev.h.
756
757 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
758
759         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
760         Branch to common code handling the alignment of discrete types.
761         <E_Signed_Integer_Type>: Likewise.
762         <E_Modular_Integer_Type>: Likewise.
763
764 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
765
766         * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
767         (gnat_handle_option): Allocate only one element for gnat_argv.
768         (gnat_init): Do not populate gnat_argv.
769
770 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
771
772         * gcc-interface/trans.c: Do not include tree-flow.h.
773         * gcc-interface/Make-lang.in: Adjust dependencies.
774
775 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
776
777         * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
778         of a TREE_LIST.  Update comment.
779         * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
780         Adjust call to gnat_build_constructor.
781         (Attribute_to_gnu): Likewise.
782         (gnat_to_gnu): Likewise.
783         (pos_to_constructor): Likewise.
784         (extract_values): Likewise.
785         * gcc-interface/utils.c (build_template): Likewise.
786         (convert_vms_descriptor64): Likewise.
787         (convert_vms_descriptor32): Likewise.
788         (convert_to_fat_pointer): Likewise.
789         (convert): Likewise.
790         (unchecked_convert): Likewise.
791         * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
792         * gcc-interface/utils2.c (build_allocator): Likewise.
793         (fill_vms_descriptor): Likewise.
794         (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
795         (compare_elmt_bitpos): Adjust for parameters being constructor_elts
796         instead of TREE_LISTs.
797
798 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
799
800         * gcc-interface/misc.c: Do not include except.h.
801         * gcc-interface/Make-lang.in: Update dependencies.
802
803 2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>
804
805         * gcc-interface/trans.c: Include tree-flow.h.
806         (gnu_switch_label_stack): Delete.
807         (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
808         its associated block cannot fall through.  Do not emit the final label
809         if no cases branch to it.
810         * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
811
812 2010-06-23  Thomas Quinot  <quinot@adacore.com>
813
814         * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
815         reference to a protected subprogram outside of the protected's scope,
816         ensure the corresponding external subprogram is frozen before the
817         reference.
818
819 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
820
821         * sem_prag.adb: Fix typo in error message.
822         * sem.adb: Refine previous change.
823
824 2010-06-23  Robert Dewar  <dewar@adacore.com>
825
826         * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
827         a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
828         Implement Ada 2012 string encoding packages.
829
830 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
831
832         * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
833         a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
834         a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
835         a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
836         files.
837         * gcc-interface/Makefile.in: Enable use of above files.
838
839 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
840
841         * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
842         of address clauses if if Ignore_Rep_Clauses is active.
843         * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
844         remove address clause from tree so that it does not reach the backend.
845
846 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
847
848         * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
849         expand 'Valid from user code in CodePeer mode, will be handled by the
850         back-end directly.
851
852 2010-06-23  Bob Duff  <duff@adacore.com>
853
854         * g-comlin.ads: Minor comment improvements.
855
856 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
857
858         * sem_res.adb (Uses_SS): The expression that initializes a controlled
859         component of a record type may be a user-defined operator that is
860         rewritten as a function call.
861
862 2010-06-23  Bob Duff  <duff@adacore.com>
863
864         * g-comlin.ads, sem_ch13.adb: Minor comment fix.
865
866 2010-06-23  Eric Botcazou  <ebotcazou@adacore.com>
867
868         * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
869         label to the new sequence of statements.  Set the sloc of the raise
870         statement onto the new goto statements.
871
872 2010-06-23  Robert Dewar  <dewar@adacore.com>
873
874         * a-stuten.ads, a-stuten.adb: New files.
875         * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
876         * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
877
878 2010-06-23  Robert Dewar  <dewar@adacore.com>
879
880         * gnat_ugn.texi: Add documentation of -gnat12 switch
881         Add documentation of -gnatX switch.
882
883 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
884
885         * inline.ads: Include the current Ada_Version in the info for pending
886         instance bodies, so that declaration and body are compiled with the
887         same Ada_Version.
888         * inline.adb: Move with_clause for Opt to spec.
889         * sem_ch12.adb (Analyze_Package_Instantiation,
890         Analyze_Subprogram_Instantiation): Save current Ada_Version in
891         Pending_Instantiation information.
892         (Instantiate_Package_Body, Instantiate_Subprogram_Body,
893         Inline_Package_Body): Use the Ada_Version present in the body
894         information.
895
896 2010-06-23  Robert Dewar  <dewar@adacore.com>
897
898         * usage.adb: Add documentation for -gnat12 switch.
899         * errout.ads: Add VMS alias entry for -gnat12 switch
900         * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
901         Add documentation for pragma Extensions_Allowed.
902         * opt.ads: Add entry for Ada 2012 mode.
903         * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
904         features.
905         * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
906         Ada_2012.
907         * sem_ch13.adb: Add handling for Ada 2012 mode.
908         * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
909         * switch-c.adb: Add handling for -gnat12 switch.
910         Implement -gnat2005 and -gnat2012.
911         * usage.adb: Add documentation for -gnat12 switch.
912         * vms_data.ads: Add /12 switch for Ada 2012 mode.
913
914 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
915
916         * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
917         No_Task_Hierarchy restriction. Add comment.
918         * exp_ch9.adb, exp_ch3.adb: Update comments.
919
920 2010-06-23  Robert Dewar  <dewar@adacore.com>
921
922         * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
923         * sem_res.adb: Add comments.
924         * sem_util.adb: Minor reformatting. Add comments.
925         Change increment on Actuals_In_Call table.
926         * opt.ads: Minor: add 'constant'.
927
928 2010-06-23  Javier Miranda  <miranda@adacore.com>
929
930         * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
931         TSD to Null_Address if No_Dispatching_Calls is active.
932
933 2010-06-23  Vincent Celier  <celier@adacore.com>
934
935         * a-comlin.ads: Indicate that use of this package is not supported
936         during the elaboration of an auto-initialized Stand-Alone Library.
937
938 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
939
940         * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
941         alignment clause on a record type to determine if a component may be
942         misaligned. The decision must be taken in the back-end where target
943         alignment information is known.
944
945 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
946
947         * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
948         systematically in CodePeer mode to simplify generated code.
949         * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
950         * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
951         No_Task_Hierarchy is set instead of crasshing.
952
953 2010-06-23  Thomas Quinot  <quinot@adacore.com>
954
955         * sem_util.adb: Minor code cleanup: test for proper entity instead of
956         testing just Chars attribute when checking whether a given scope is
957         System.
958         * exp_ch4.adb, einfo.adb: Minor reformatting.
959
960 2010-06-23  Vincent Celier  <celier@adacore.com>
961
962         PR ada/44633
963         * switch-m.adb (Normalize_Compiler_Switches): Take into account
964         switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
965         -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
966
967 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
968
969         * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
970         operation with a universal real operand, and the right operand is a
971         range with universal bounds, find unique fixed point that may be
972         candidate, and warn appropriately.
973
974 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
975
976         * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
977         properly the rare cases where VMS operators are visible through
978         Extend_System, but the default System is being used and Address is a
979         private type.
980         * sem_util.adb: Widen predicate Is_VMS_Operator.
981
982 2010-06-23  Vincent Celier  <celier@adacore.com>
983
984         * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
985         and -gnateS.
986
987 2010-06-23  Olivier Hainque  <hainque@adacore.com>
988
989         * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
990         Interface_Name as foreign. These are GCC builtin imports for
991         which Ada specific processing doesn't apply.
992
993 2010-06-23  Thomas Quinot  <quinot@adacore.com>
994
995         * sem_ch12.adb: Minor reformatting.
996
997 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
998
999         * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
1000         determine whether an intrinsic subprogram is VMS specific.
1001
1002 2010-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
1003
1004         * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
1005         is present in the entity.
1006
1007 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
1008
1009         * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
1010         Fix handling of parameters.
1011         Add protection against unexpected cases.
1012         * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
1013         access level, since "A" suffix is already used elsewhere. Similarly,
1014         use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
1015         for xxx'Class.
1016
1017 2010-06-23  Thomas Quinot  <quinot@adacore.com>
1018
1019         * sem_util.adb, sem_util.ads: Minor reformatting.
1020
1021 2010-06-23  Vincent Celier  <celier@adacore.com>
1022
1023         * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
1024         the previous behavior of gprclean when there are missing files.
1025
1026 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1027
1028         * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
1029         generic body is not a fatal error.
1030         (Mark_Context): Handle properly names of child units.
1031         * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
1032         instantiations.
1033
1034 2010-06-23  Vincent Celier  <celier@adacore.com>
1035
1036         * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
1037         non-empty line.
1038
1039 2010-06-23  Bob Duff  <duff@adacore.com>
1040
1041         * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
1042         Memory_Space, because CPU_Time doesn't seem to provide any significant
1043         speed advantage in practice. Cleanup: Get rid of constant
1044         Default_Optimization; doesn't seem to add anything. Use case
1045         statements instead of if statements; seems cleaner.
1046
1047 2010-06-23  Olivier Hainque  <hainque@adacore.com>
1048
1049         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
1050         Wshadow instead of Wextra to guard warning on absence of internal
1051         builtin decl for an import.  Fix use of quote in warning text.
1052         (intrin_arglists_compatible_p): Remove processing of integer trailing
1053         args on the Ada side.  Fix use of literal > in warning text.
1054         (intrin_return_compatible_p): Never warn on "function imported as
1055         procedure".  Defer the void/void case to the common type compatibility
1056         check.
1057         (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
1058         of GCC builtin imports.
1059
1060 2010-06-23  Olivier Hainque  <hainque@adacore.com>
1061
1062         * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
1063         helper for ...
1064         (intrin_arglists_compatible_p, intrin_return_compatible_p): New
1065         functions, helpers for ...
1066         (intrin_profiles_compatible_p): New function, replacement for ...
1067         (compatible_signatures_p): Removed.
1068         (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
1069         attempt to bind an unregistered builtin function.  When we have
1070         one, use it and warn on profile incompatibilities.
1071
1072 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
1073
1074         * gcc-interface/Make-lang.in: Update dependencies.
1075
1076 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1077
1078         * sem_util.adb (Mark_Coextensions): If the expression in the allocator
1079         for a coextension in an object declaration is a concatenation, treat
1080         coextension as dynamic.
1081
1082 2010-06-23  Javier Miranda  <miranda@adacore.com>
1083
1084         * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
1085         internal entities are added to the scope of the tagged type.
1086         (Derive_Subprograms): Do not stop derivation when we find the first
1087         internal entity that has attribute Interface_Alias. After the change
1088         done to Override_Dispatching_Operations it is no longer true that
1089         these primirives are always located at the end of the list of
1090         primitives.
1091         * einfo.ads (Primitive_Operations): Add documentation.
1092         * exp_disp.adb (Write_DT): Improve output adding to the name of the
1093         primitive a prefix indicating its corresponding tagged type.
1094         * sem_disp.adb (Override_Dispatching_Operations): If the overridden
1095         entity covers the primitive of an interface that is not an ancestor of
1096         this tagged type then the new primitive is added at the end of the list
1097         of primitives.  Required to fulfill the C++ ABI.
1098
1099 2010-06-23  Javier Miranda  <miranda@adacore.com>
1100
1101         * atree.ads (Set_Reporting_Proc): New subprogram.
1102         * atree.adb: Remove dependency on packages Opt and SCIL_LL.
1103         (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
1104         to routines of package Scil_ll by indirect call to the registered
1105         subprogram.
1106         (Set_Reporting_Proc): New subprogram. Used to register a subprogram
1107         that is invoked when a node is allocated, replaced or rewritten.
1108         * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
1109         the SCIL node. Used as argument for Set_Reporting_Proc.
1110         (Initialize): Register Copy_SCIL_Node as the reporting routine that
1111         is invoked by atree.
1112
1113 2010-06-23  Thomas Quinot  <quinot@adacore.com>
1114
1115         * sem_ch3.ads: Minor reformatting.
1116
1117 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1118
1119         * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
1120         always analyze the generic body and instance, because it may be needed
1121         downstream.
1122         (Mark_Context): Prepend the with clauses for needed generic units, so
1123         they appear in a better order for CodePeer.
1124         * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
1125
1126 2010-06-23  Emmanuel Briot  <briot@adacore.com>
1127
1128         * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
1129
1130 2010-06-23  Robert Dewar  <dewar@adacore.com>
1131
1132         * g-pehage.adb, exp_ch13.adb: Minor reformatting.
1133
1134 2010-06-23  Thomas Quinot  <quinot@adacore.com>
1135
1136         * a-tags.ads: Fix description of TSD structure.
1137
1138 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1139
1140         * sem_ch12.adb (Mark_Context): When indicating that the body of a
1141         generic unit is needed prior to the unit containing an instantiation,
1142         search recursively the context of the generic to add other generic
1143         bodies that may be instantiated indirectly through the current instance.
1144
1145 2010-06-23  Robert Dewar  <dewar@adacore.com>
1146
1147         * freeze.adb: Minor reformatting.
1148
1149 2010-06-23  Bob Duff  <duff@adacore.com>
1150
1151         * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
1152
1153 2010-06-23  Vincent Celier  <celier@adacore.com>
1154
1155         * make.adb (Compile_Sources): Complete previous change.
1156
1157 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1158
1159         * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
1160         Constrained extra formal.
1161
1162 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1163
1164         * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
1165         Initialize_Scalars are enabled, compile the generated equality function
1166         for a composite type with full checks enabled, so that validity checks
1167         are performed on individual components.
1168
1169 2010-06-23  Emmanuel Briot  <briot@adacore.com>
1170
1171         * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
1172         Missing_Source_Files.
1173
1174 2010-06-23  Robert Dewar  <dewar@adacore.com>
1175
1176         * exp_ch3.adb, exp_util.adb: Minor reformatting.
1177
1178 2010-06-23  Jose Ruiz  <ruiz@adacore.com>
1179
1180         * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
1181         run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
1182         Clock (without delays) use a run time which is properly initialized.
1183
1184 2010-06-23  Vincent Celier  <celier@adacore.com>
1185
1186         * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
1187         when -f -u and a main is specified on the command line. However,
1188         attempt to compile even when the ALI file is read-only when
1189         Must_Compile is True.
1190
1191 2010-06-23  Thomas Quinot  <quinot@adacore.com>
1192
1193         * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
1194
1195 2010-06-23  Javier Miranda  <miranda@adacore.com>
1196
1197         * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
1198         entities for parent types that are interfaces. Needed in generics to
1199         handle formals that implement interfaces.
1200         (Derive_Subprograms): Add assertion for derivation of tagged types that
1201         do not cover interfaces. For generics, complete code that handles
1202         derivation of type that covers interfaces because the previous
1203         condition was weak (it required only name consistency; arguments were
1204         not checked). Add new code to locate primitives covering interfaces
1205         defined in generic units or instantiatons.
1206         * sem_util.adb (Has_Interfaces): Add missing support for derived types.
1207         * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
1208         * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
1209         interfaces that are parents of the type because they share the primary
1210         dispatch table.
1211         (Register_Primitive): Do not register primitives of interfaces that
1212         are parents of the type.
1213         * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
1214         * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
1215         primitives skip primitives of interfaces that are parents of the type.
1216
1217 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1218
1219         * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
1220         attribute cannot be constant-folded if an index type is a formal type,
1221         or is derived from one.
1222         * checks.adb (Determine_Range): ditto.
1223
1224 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
1225
1226         * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
1227
1228 2010-06-23  Bob Duff  <duff@adacore.com>
1229
1230         * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
1231         (Insert): Disallow nul characters.
1232         (misc output routines): Assert no nul characters.
1233
1234 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
1235
1236         * exp_ch4.adb: Use predefined unsigned type in all cases.
1237
1238 2010-06-23  Bob Duff  <duff@adacore.com>
1239
1240         * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
1241         * g-pehage.ads: Minor comment fixes.
1242         * g-pehage.adb: Minor: Add some additional debugging printouts under
1243         Verbose flag.
1244
1245 2010-06-23  Robert Dewar  <dewar@adacore.com>
1246
1247         * binde.adb (Better_Choice): Always prefer Pure/Preelab.
1248         (Worse_Choice): Always prefer Pure/Preelab.
1249
1250 2010-06-23  Vincent Celier  <celier@adacore.com>
1251
1252         * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
1253
1254 2010-06-23  Robert Dewar  <dewar@adacore.com>
1255
1256         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
1257         checking returns in generic case.
1258         (Check_Missing_Return): New procedure.
1259
1260 2010-06-23  Robert Dewar  <dewar@adacore.com>
1261
1262         * bindgen.adb, switch-b.adb: Minor reformatting.
1263
1264 2010-06-23  Javier Miranda  <miranda@adacore.com>
1265
1266         * frontend.adb (Frontend): Add call to initialize the new package
1267         SCIL_LL.
1268         * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
1269         Adjust_SCIL_Node.
1270         (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
1271         * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
1272         Adjust_SCIL_Node.
1273         * exp_util.adb (Insert_Actions): Remove code for
1274         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1275         (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
1276         * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
1277         N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
1278         (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
1279         * sinfo.ads (SCIL_Related_Node): Field removed.
1280         (N_SCIL_Dispatch_Table_Object_Init): Node removed.
1281         (N_SCIL_Tag_Init): Node removed.
1282         * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
1283         (Check_SCIL_Node): New implementation.
1284         (Find_SCIL_Node): Removed.
1285         * sem.adb (Analyze): Remove management of
1286         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1287         * sem_util.adb (Insert_Explicit_Dereference): Remove call to
1288         Adjust_SCIL_Node.
1289         * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
1290         Set_SCIL_Related_Node and avoid adding the SCIL node before the
1291         referenced node using Insert_Action because this is not longer required.
1292         (Expand_Short_Circuit_Operator): Remove call to SCIL node.
1293         * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
1294         * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
1295         * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
1296         because we no longer require to generate the SCIL node before the call.
1297         (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
1298         Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
1299         nodes before the referenced node using Insert_Action because this
1300         is not longer required.
1301         * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
1302         update the SCIL_Node field.
1303         * sprint.adb (Sprint_Node_Actual): Remove code for
1304         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1305         * treepr.adb (Print_Node): Print the SCIL node field (if available).
1306         * exp_ch3.adb (Build_Init_Procedure): Remove generation of
1307         SCIL_Tag_Init nodes.
1308         * scil_ll.ads, scil_ll.adb: New files.
1309         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1310         dependencies.
1311
1312 2010-06-23  Robert Dewar  <dewar@adacore.com>
1313
1314         * sem_ch6.adb: Minor reformatting.
1315
1316 2010-06-23  Doug Rupp  <rupp@adacore.com>
1317
1318         * bindusg.adb (Display): Write -Hnn line.
1319         * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as 
1320         necessary.
1321         * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
1322         valid values to 32 and 64.
1323         (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
1324         ENABLE, DISABLE as valid settings.
1325         * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
1326         * opt.ads (Heap_Size): New global variable.
1327         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant 
1328         TARGET_MALLOC64 check. Fix comment.
1329
1330 2010-06-23  Robert Dewar  <dewar@adacore.com>
1331
1332         * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
1333         reformatting.  Add comments.
1334         * errout.adb (Finalize): Properly adjust warning count when deleting
1335         continuations.
1336
1337 2010-06-22  Robert Dewar  <dewar@adacore.com>
1338
1339         * errout.adb (Finalize): Set Prev pointers.
1340         (Finalize): Delete continuations for deletion by warnings off(str).
1341         * erroutc.ads: Add Prev pointer to error message structure.
1342
1343 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1344
1345         * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
1346         child unit, examine context of parent units to locate instantiated
1347         generics whose bodies may be needed. 
1348         * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
1349         with_clause for the instantiated generic, examine the context of its
1350         parents, to set Withed_Body flag, so that it can be visited earlier.
1351         * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
1352         an unsigned type, use a type of the proper size for the intermediate
1353         value, to prevent alignment problems on unchecked conversion.
1354
1355 2010-06-22  Geert Bosch  <bosch@adacore.com>
1356
1357         * s-rannum.ads Change Generator type to be self-referential to allow
1358         Random to update its argument. Use "in" mode for the generator in the
1359         Reset procedures to allow them to be called from the Ada.Numerics
1360         packages without tricks.
1361         * s-rannum.adb: Use the self-referencing argument to get write access
1362         to the internal state of the random generator.
1363         * a-nudira.ads: Make Generator a derived type of
1364         System.Random_Numbers.Generator.
1365         * a-nudira.adb: Remove use of 'Unrestricted_Access.
1366         Put subprograms in alpha order and add headers.
1367         * g-mbdira.ads: Change Generator type to be self-referential.
1368         * g-mbdira.adb: Remove use of 'Unrestricted_Access.
1369
1370 2010-06-22  Robert Dewar  <dewar@adacore.com>
1371
1372         * freeze.adb: Minor reformatting
1373         Minor code reorganization (use Nkind_In and Ekind_In).
1374
1375 2010-06-22  Bob Duff  <duff@adacore.com>
1376
1377         * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using 
1378         -gnatc when a file is compiled that we cannot generate code for, not
1379         helpful and confusing.
1380
1381 2010-06-22  Vincent Celier  <celier@adacore.com>
1382
1383         * switch-m.adb (Normalize_Compiler_Switches): Process correctly
1384         switches -gnatknn.
1385
1386 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1387
1388         * s-rannum.adb: Replace constants with commented symbols.
1389         * s-rannum.ads: Explain significance of the initial value of the data
1390         structure.
1391
1392 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1393
1394         * a-ngcoty.adb: Clarify comment.
1395
1396 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1397
1398         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
1399         expansion for indexing packed arrays with small power-of-2 component
1400         sizes when the target is AAMP.
1401         (Expand_Packed_Element_Reference): Return without expansion for
1402         indexing packed arrays with small power-of-2 component sizes when the
1403         target is AAMP.
1404
1405 2010-06-22  Geert Bosch  <bosch@adacore.com>
1406
1407         * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
1408         Float'Range.
1409
1410 2010-06-22  Robert Dewar  <dewar@adacore.com>
1411
1412         * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
1413         updates.
1414
1415 2010-06-22  Doug Rupp  <rupp@adacore.com>
1416
1417         * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
1418         packages.
1419         * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
1420         (pragma Ident): Add a default ident string in the private part.
1421
1422 2010-06-22  Robert Dewar  <dewar@adacore.com>
1423
1424         * cstand.adb: Minor reformatting.
1425
1426 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1427
1428         * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
1429         recognize the Shift and Rotation intrinsics that are known to the
1430         compiler but have no interface name.
1431
1432 2010-06-22  Geert Bosch  <bosch@adacore.com>
1433
1434         * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
1435         scaling in case of overflow or NaN results.
1436
1437 2010-06-22  Robert Dewar  <dewar@adacore.com>
1438
1439         * cstand.adb: Complete previous change.
1440         * g-dirope.ads: Add comment.
1441         * s-stchop.adb, sfn_scan.adb: Minor reformatting.
1442
1443 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1444
1445         * cstand.adb: Add tree nodes for pragma Pack on string types.
1446
1447 2010-06-22  Javier Miranda  <miranda@adacore.com>
1448
1449         * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
1450         * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
1451         formal of a primitive.
1452         * exp_disp.adb (Is_Predefined_Dispatching_Operation,
1453          Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
1454         formal of a primitive.
1455         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
1456         to obtain the last formal of a primitive.
1457
1458 2010-06-22  Geert Bosch  <bosch@adacore.com>
1459
1460         * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
1461         depending on __EMX__ or MSDOS being defined.
1462         * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
1463         * a-excpol-abort.adb: Update comment indicating users of the file.
1464         * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
1465         Windows.
1466         * env.c: Remove empty conditional for MSDOS.
1467         * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
1468         of OS/2 in comment.
1469
1470 2010-06-22  Robert Dewar  <dewar@adacore.com>
1471
1472         * s-rannum.adb: Minor reformatting.
1473
1474 2010-06-22  Javier Miranda  <miranda@adacore.com>
1475
1476         * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
1477         exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
1478         package Sem_Util to package Sem_Aux.
1479
1480 2010-06-22  Javier Miranda  <miranda@adacore.com>
1481
1482         * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
1483         remove useless restriction on imported routines when building the
1484         dispatch tables.
1485
1486 2010-06-22  Robert Dewar  <dewar@adacore.com>
1487
1488         * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
1489         types.
1490
1491 2010-06-22  Javier Miranda  <miranda@adacore.com>
1492
1493         * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
1494         generic subprogram declarations to ensure proper context. Add missing
1495         support for generic actuals.
1496         (Try_Primitive_Operation): Add missing support for concurrent types that
1497         have no Corresponding_Record_Type. Required to diagnose errors compiling
1498         generics or when compiling with no code generation (-gnatc).
1499         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
1500         the corresponding record type.
1501         * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
1502         documentation. Do minimum decoration when processing a primitive of a
1503         concurrent tagged type that covers interfaces. Required to diagnose
1504         errors in the Object.Operation notation compiling generics or under
1505         -gnatc.
1506         * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
1507         propagation of attribute Interface_List to the corresponding record.
1508         (Expand_N_Task_Type_Declaration): Code cleanup.
1509         (Expand_N_Protected_Type_Declaration): Code cleanup.
1510
1511 2010-06-22  Matthew Heaney  <heaney@adacore.com>
1512
1513         * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1514
1515 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1516
1517         * s-rannum.adb (Random_Float_Template): Replace with unbiased version
1518         that is able to produce all representable floating-point numbers in the
1519         unit interval. Remove template parameter Shift_Right, no longer used.
1520         * gnat_rm.texi: Document the period of the pseudo-random number
1521         generator under the description of its algorithm.
1522         * gcc-interface/Make-lang.in: Update dependencies.
1523
1524 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1525
1526         * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1527         reference to discriminant (can be an expanded name as well as an
1528         identifier).
1529
1530 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1531
1532         * exp_ch6.adb: Clarify comment.
1533
1534 2010-06-22  Geert Bosch  <bosch@adacore.com>
1535
1536         * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
1537         with decimal small as decimal types, avoiding floating-point arithmetic.
1538         (Has_Decimal_Small): New function.
1539         * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
1540         fixed point types.
1541         * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
1542         callers to call the new function in Einfo that takes the entity as
1543         parameter.
1544
1545 2010-06-22  Robert Dewar  <dewar@adacore.com>
1546
1547         * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1548
1549 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1550
1551         * sem_elab.adb: Minor reformatting.
1552
1553 2010-06-22  Vincent Celier  <celier@adacore.com>
1554
1555         * gnatsym.adb: Put the object files in the table in increasing
1556         aphabetical order of base names.
1557
1558 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1559
1560         * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
1561         Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
1562         the corresponding discriminal within a record declaration.
1563
1564 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1565
1566         * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
1567         expression referring to a discriminal of the type of the aggregate (not
1568         a discriminal of some other unrelated type), and the prefix in the
1569         generated selected component must come from Lhs, not Obj.
1570
1571 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1572
1573         * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1574         when to freeze the parent type.
1575
1576 2010-06-22  Robert Dewar  <dewar@adacore.com>
1577
1578         * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
1579         exp_aggr.adb: Minor reformatting.
1580         * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
1581         GNAT.MBSS_Float_Random.
1582         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
1583
1584 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1585
1586         * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
1587         gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
1588         (Random_Float_Template, Random): New method of creating
1589         uniform floating-point variables that allow the creation of all machine
1590         values in [0 .. 1).  
1591
1592         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1593
1594 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1595
1596         * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
1597         to abstract targets to check that the type is tagged and comes from
1598         source, rather than only testing for targets of interface types. Remove
1599         premature return.
1600
1601 2010-06-22  Vincent Celier  <celier@adacore.com>
1602
1603         * vms_data.ads: Modify the declarations of qualifiers
1604         /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1605         without error.
1606
1607 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1608
1609         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1610         expansion is disabled.
1611
1612 2010-06-22  Robert Dewar  <dewar@adacore.com>
1613
1614         * makeusg.adb: Minor reformatting.
1615
1616 2010-06-22  Robert Dewar  <dewar@adacore.com>
1617
1618         * types.ads: (Dint): Removed, no longer used anywhere.
1619         * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
1620         (UI_Mul): Avoid use of UI_From_Dint.
1621         (UI_From_Dint): Removed, not used.
1622         * uintp.ads (UI_From_Dint): Removed, not used.
1623         (Uint_Min/Max_Simple_Mul): New constants.
1624
1625 2010-06-22  Vincent Celier  <celier@adacore.com>
1626
1627         * clean.adb (Parse_Cmd_Line): Recognize switch
1628         --unchecked-shared-lib-imports.
1629         (Usage): Add line for switch --unchecked-shared-lib-imports
1630         * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
1631         * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
1632         moved from GPR_Util.
1633         * switch-m.adb (Scan_Make_Switches): Recognize switch
1634         --unchecked-shared-lib-imports.
1635         * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
1636         * gnat_ugn.texi: Add documentation for new switch
1637         --unchecked-shared-lib-imports.  Add also documentation for --subdirs.
1638
1639 2010-06-22  Javier Miranda  <miranda@adacore.com>
1640
1641         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
1642         exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
1643         this patch replaces duplication of code that traverses the chain of
1644         aliased primitives by a call to routine Ultimate_Alias that
1645         provides this functionality.
1646
1647 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1648
1649         * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
1650         sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
1651         Warnings Off/On.
1652
1653 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1654
1655         * einfo.ads: Minor reformatting.
1656
1657 2010-06-22  Javier Miranda  <miranda@adacore.com>
1658
1659         * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
1660         eliminated primitives.
1661         (Make_DT): Avoid referencing eliminated primitives.
1662         (Register_Primitive): Do not register eliminated primitives in the
1663         dispatch table. Required to add this functionality when the program is
1664         compiled without static dispatch tables (-gnatd.t)
1665
1666 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1667
1668         * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
1669         tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
1670         warnings on use of internal GNAT units.
1671
1672 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
1673
1674         * s-taprop-vxworks.adb (Set_Priority): Update comments.
1675
1676 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1677
1678         * s-rannum.adb: Make stylistic change to remove mystery constant in
1679         Extract_Value.  Image_Numeral_Length: new symbolic constant.
1680
1681 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1682
1683         * einfo.ads, einfo.adb: Make Is_Protected_Interface,
1684         Is_Synchronized_Interface, Is_Task_Interface into computable
1685         predicates, to free three flags in entity nodes.
1686         * sem_ch3.adb: Remove setting of these flags.
1687
1688 2010-06-22  Robert Dewar  <dewar@adacore.com>
1689
1690         * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
1691         reformatting.
1692         * s-taprop-vxworks.adb: Add comment for Set_Priority.
1693         * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
1694         * projects.texi: Move @cindex to the left margin, since otherwise we
1695         are missing entries in the index.
1696
1697 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1698
1699         * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
1700         packages from the GNAT hierarchy instead of System when possible.
1701         * gcc-interface/Make-lang.in: Update dependencies.
1702
1703 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
1704
1705         * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
1706         previously in place to reorder the ready queue when a task drops its
1707         priority due to the loss of inherited priority.
1708
1709 2010-06-22  Vincent Celier  <celier@adacore.com>
1710
1711         * projects.texi: Minor spelling error fixes.
1712         Minor reformatting.
1713
1714 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1715
1716         * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1717         warnings for some with clauses.
1718
1719 2010-06-22  Robert Dewar  <dewar@adacore.com>
1720
1721         * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
1722         test to catch more cases where first subtype is the results we want.
1723         * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
1724         error case, since Errout will now handle this correctly.
1725         * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
1726         Update dependencies.
1727
1728 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1729
1730         * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1731         when calling Make_Temporary.
1732
1733 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1734
1735         * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1736         subprogram can be associated with an entry body.
1737
1738 2010-06-22  Robert Dewar  <dewar@adacore.com>
1739
1740         * scos.ads: Add note on membership test handling.
1741
1742 2010-06-22  Vincent Celier  <celier@adacore.com>
1743
1744         * projects.texi: Minor spelling fixes.
1745         Minor reformatting.
1746
1747 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1748
1749         * s-rannum.adb: Correct off-by-one error in Extract_Value.
1750
1751 2010-06-22  Vincent Celier  <celier@adacore.com>
1752
1753         * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1754         argument.
1755         * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1756         gcc command if it is too long.
1757
1758 2010-06-22  Robert Dewar  <dewar@adacore.com>
1759
1760         * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1761
1762 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1763
1764         * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1765         calling Make_Temporary.
1766
1767 2010-06-22  Robert Dewar  <dewar@adacore.com>
1768
1769         * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1770
1771 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1772
1773         * sem_res.adb: Additional special-case for VMS.
1774
1775 2010-06-22  Vincent Celier  <celier@adacore.com>
1776
1777         * gnatsym.adb: Minor comment fix.
1778
1779 2010-06-22  Vincent Celier  <celier@adacore.com>
1780
1781         * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1782
1783 2010-06-22  Robert Dewar  <dewar@adacore.com>
1784
1785         * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
1786         * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
1787         Ada 95 mode as an implementation defined attribute.
1788
1789 2010-06-22  Vincent Celier  <celier@adacore.com>
1790
1791         * bindusg.adb (Display): Update line for -R
1792         * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
1793         generated files when -R is used.
1794
1795 2010-06-22  Vincent Celier  <celier@adacore.com>
1796
1797         * prj-nmsc.adb (Lib_Data_Table): New table.
1798         (Check_Library_Attributes): Check if the same library name is used in
1799         two different projects that do not extend each other.
1800
1801 2010-06-22  Robert Dewar  <dewar@adacore.com>
1802
1803         * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1804
1805 2010-06-22  Vincent Celier  <celier@adacore.com>
1806
1807         * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1808         empty, make it the current working directory.
1809
1810 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1811
1812         * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1813         private type with discriminants, make sure the parent type is frozen.
1814
1815 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1816
1817         * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1818         with packed array references specially.
1819         * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1820         to a component of a bit packed array if it is the prefix of 'Bit.
1821         * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1822         * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure.  Expand a
1823         'Bit reference, where the prefix involves a packed array reference.
1824         (Get_Base_And_Bit_Offset): New helper, extracted from...
1825         (Expand_Packed_Address_Reference): ...here.  Call above procedure to
1826         get the outer object and offset expression.
1827
1828 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1829
1830         * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1831         * einfo.adb (Related_Expression, Set_Related_Expression): Add
1832         assertions.
1833
1834 2010-06-22  Javier Miranda  <miranda@adacore.com>
1835
1836         * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1837         reorganization to properly check if the operation has been inherited as
1838         an abstract operation.
1839
1840 2010-06-22  Ed Falis  <falis@adacore.com>
1841
1842         * s-osinte-vxworks.ads: Complete previous change.
1843
1844 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1845
1846         * sem_res.adb: Add comment.
1847         * projects.texi, gnat_ugn.texi: Remove macro.
1848
1849 2010-06-22  Vincent Celier  <celier@adacore.com>
1850
1851         * prj-attr.adb: Remove project level attribute Main_Language.
1852
1853 2010-06-22  Robert Dewar  <dewar@adacore.com>
1854
1855         * switch-b.adb, osint-b.adb: Minor reformatting.
1856
1857 2010-06-22  Pascal Obry  <obry@adacore.com>
1858
1859         * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1860         vector if previous send was not fully successful. If only part of
1861         the vector data was sent, we exit the loop.
1862
1863 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1864
1865         * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1866         error reporting with generic types.
1867
1868 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1869
1870         * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1871         osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1872         vms_data.ads: Add a new command line switch -A to gnatbind to output
1873         the list of all ALI files for the partition.
1874
1875 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1876
1877         * s-osinte-vxworks.ads: Fix casing.
1878         * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1879         change: Interfaces.C does not provide a long_long type.
1880
1881 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1882
1883         * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1884         native user's guide, since this document contains the two versions.
1885         * gcc-interface/Make-lang.in: Update doc dependencies.
1886
1887 2010-06-22  Robert Dewar  <dewar@adacore.com>
1888
1889         * sem_ch3.adb: Minor reformatting.  Minor code reorganization.
1890
1891 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1892
1893         * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1894         not build this file on its own (only through gnat_ugn.texi).
1895         Remove macro definitions and insert simpler version in gnat_ugn.texi.
1896
1897 2010-06-22  Robert Dewar  <dewar@adacore.com>
1898
1899         * ali-util.ads: Minor comment update.
1900         * g-socthi-mingw.adb: Minor reformatting.
1901
1902 2010-06-22  Ed Falis  <falis@adacore.com>
1903
1904         * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1905         * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1906         for specific versions of VxWorks.
1907
1908 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1909
1910         * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1911         related sections from user's guide and reference manual, since they
1912         have now been merged together into a separate document (projects.texi).
1913         This removes a lot of duplication where attributes where described
1914         in several places.
1915         The grammar for the project files is now in each of the sections
1916         (packages,expressions,...) instead of being duplicates in two other
1917         sections (one in the user's guide that contained the full grammar,
1918         and various sections in the rm that contained extracts of the same
1919         grammar).
1920         Added the full list of all supported attributes, since existing lists
1921         were incomplete
1922         Rename "associative array" into "indexed attribute"
1923         Remove sections that were duplicates ("External References in
1924         Project Files" and "External Values", and "Project Extensions"
1925         for instance). The list of valid packages in project files is now in
1926         a single place.
1927
1928 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1929
1930         * sem_ch3.adb (Add_Internal_Interface_Entities): If
1931         Find_Primitive_Covering_Interface does not find the operation, it may
1932         be because of a name conflict between the inherited operation and a
1933         local non-overloadable name. In that case look for the operation among
1934         the primitive operations of the type. This search must succeed
1935         regardless of visibility.
1936
1937 2010-06-22  Pascal Obry  <obry@adacore.com>
1938
1939         * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1940         (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1941         recvmsg emulation.
1942
1943 2010-06-22  Robert Dewar  <dewar@adacore.com>
1944
1945         * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1946         malformed tree.
1947         * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1948
1949 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1950
1951         * s-intman-vxworks.ads: Code clean up.
1952
1953 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1954
1955         * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1956         dereference, construct actual subtype of designated object to generate
1957         proper bounds checks.
1958
1959 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1960
1961         * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1962         Read_Withed_ALIs, which is more descriptive.
1963
1964 2010-06-22  Pascal Obry  <obry@adacore.com>
1965
1966         * g-sothco.ads: Minor reformatting.
1967         * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1968         C_Sendmsg implementation.
1969         (C_Sendmsg): Do not use lock (not needed).
1970         (C_Recvmsg): Likewise and also do not wait for incoming data.
1971
1972 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1973
1974         * uintp.adb: Fix scope error in operator call.
1975
1976 2010-06-22  Vincent Celier  <celier@adacore.com>
1977
1978         * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1979         * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1980         autoconfiguration is needed, fail indicating that no config project
1981         file can be found, as there is no autoconfiguration on VMS.
1982
1983 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1984
1985         * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1986         for an operator in a functional notation, when operands are universal.
1987
1988 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1989
1990         * gcc-interface/Make-lang.in: Update dependencies.
1991
1992 2010-06-22  Robert Dewar  <dewar@adacore.com>
1993
1994         * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1995         name.
1996         * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1997         * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1998         style check.
1999         * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
2000         literals.
2001
2002 2010-06-22  Vincent Celier  <celier@adacore.com>
2003
2004         * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
2005         it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
2006
2007 2010-06-22  Pascal Obry  <obry@adacore.com>
2008
2009         * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
2010         Windows.
2011         (C_Recvmsg): Make sure the routine is atomic. Also fully
2012         fill vectors in the proper order.
2013         (C_Sendmsg): Make sure the routine is atomic.
2014
2015 2010-06-22  Robert Dewar  <dewar@adacore.com>
2016
2017         * sem_ch8.adb: Update comment.
2018         * sem_res.adb: Minor code reorganization (use Ekind_In).
2019
2020 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
2021
2022         * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
2023         name is a call, use the number of actuals to determine whether this is
2024         a binary or unary operator, rather than relying on later information
2025         to resolve the overload.
2026
2027 2010-06-22  Robert Dewar  <dewar@adacore.com>
2028
2029         * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
2030
2031 2010-06-22  Robert Dewar  <dewar@adacore.com>
2032
2033         * sem_ch3.adb, sem_disp.adb: Minor code fixes.
2034         * sem_eval.adb: Minor reformatting.
2035
2036 2010-06-22  Vincent Celier  <celier@adacore.com>
2037
2038         * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
2039         to gnatlink, except on Open VMS.
2040         * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
2041         object directories if -nostdlib is used.
2042
2043 2010-06-22  Robert Dewar  <dewar@adacore.com>
2044
2045         * sem_util.adb (Is_Delegate): Put in proper alpha order.
2046         * sem_eval.adb: Minor reformatting.
2047
2048 2010-06-22  Robert Dewar  <dewar@adacore.com>
2049
2050         * g-expect-vms.adb, sem_res.adb: Minor reformatting.
2051         * exp_aggr.adb: Minor comment changes and reformatting.
2052         * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
2053         * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
2054
2055 2010-06-22  Thomas Quinot  <quinot@adacore.com>
2056
2057         * sem_util.adb (Build_Actual_Subtype): Record original expression in
2058         Related_Expression attribute of the constructed subtype.
2059         * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
2060         Node24 on types for...
2061         (Related_Expression): Make attribute available on types as well.
2062
2063 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
2064
2065         * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
2066         Directly_Designated_Type when the type argument is an access type.
2067         (Find_Interface_Tag): Retrieve Designated_Type instead of
2068         Directly_Designated_Type when the type argument is an access type.
2069         (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
2070         Directly_Designated_Type of each access discriminant.
2071         * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
2072         instead of Directly_Designated_Type when the operand and target types
2073         are access types.
2074
2075 2010-06-22  Thomas Quinot  <quinot@adacore.com>
2076
2077         * exp_aggr.adb (Flatten): Return False if one choice is statically
2078         known to be out of bounds.
2079
2080 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
2081
2082         * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
2083         a parameterless function call, preserve parentheses of original
2084         expression, for proper handling by pretty printer.
2085         * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
2086         procedure, to handle quietly identifiers that have no entity names.
2087         * exp_util.adb (Get_Current_Value_Condition): If the parent of an
2088         elsif_part is missing, it has been rewritten as a nested if, and there
2089         is no useful information on the current value of the variable.
2090
2091 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
2092
2093         * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
2094         discriminals to the current scope.
2095         * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
2096         scope, which could overwrite a different already set value.
2097
2098 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
2099
2100         * sem_res.adb (Valid_Conversion): If expression is a predefined
2101         operator, use sloc of type of interpretation to improve error message
2102         when operand is of some derived type.
2103         * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
2104
2105 2010-06-22  Emmanuel Briot  <briot@adacore.com>
2106
2107         * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
2108         that it can set out parameters as well. When a process has died, reset
2109         its Input_Fd to Invalid_Fd, so that when using multiple processes we
2110         can find out which process has died.
2111
2112 2010-06-22  Thomas Quinot  <quinot@adacore.com>
2113
2114         * sem_eval.adb (Find_Universal_Operator_Type): New
2115         subprogram to identify the operand type of an operator on universal
2116         operands, when an explicit scope indication is present. Diagnose the
2117         case where such a call is ambiguous.
2118         (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
2119         Use the above to identify the operand type so it can be properly frozen.
2120         * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
2121         type, done in an arbitrary, possibly incorrect type (the presence of
2122         some numeric type in the scope is checked for legality, but when more
2123         than one such type is in the scope, we just pick a random one, not
2124         necessarily the expected one).
2125         * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
2126         subprogram.
2127
2128 2010-06-22  Robert Dewar  <dewar@adacore.com>
2129
2130         * sem_eval.adb: Minor reformatting.
2131
2132 2010-06-22  Robert Dewar  <dewar@adacore.com>
2133
2134         * exp_ch4.adb (Expand_N_Conditional_Expression): Use
2135         Expression_With_Actions to clean up the code generated when folding
2136         constant expressions.
2137
2138 2010-06-22  Vincent Celier  <celier@adacore.com>
2139
2140         * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
2141         Has_Process.
2142
2143 2010-06-22  Vincent Celier  <celier@adacore.com>
2144
2145         * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
2146         found, check if it's path has aready been found, whatever its index.
2147
2148 2010-06-22  Robert Dewar  <dewar@adacore.com>
2149
2150         * atree.adb, gnatbind.adb: Minor reformatting.
2151         Minor code reorganization.
2152
2153 2010-06-21  Robert Dewar  <dewar@adacore.com>
2154
2155         * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
2156         known at compile time.
2157
2158 2010-06-21  Gary Dismukes  <dismukes@adacore.com>
2159
2160         * atree.adb: Fix comment typo.
2161
2162 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
2163
2164         * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
2165         whether a universal arithmetic expression in a conversion, which is
2166         rewritten from a function call with an expanded name, is ambiguous.
2167
2168 2010-06-21  Vincent Celier  <celier@adacore.com>
2169
2170         * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
2171         source files in specified list of sources.
2172         (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
2173         are never used.
2174         (Add_Source): Set the Location of the new source
2175         (Process_Exceptions_File_Based): Call Add_Source with the Location
2176         (Get_Sources_From_File): If an exception is found, set its Listed to
2177         True
2178         (Find_Sources): When Source_Files is specified, if an exception is
2179         found, set its Listed to True. Remove any exception that is not in a
2180         specified list of sources.
2181         * prj.ads (Source_Data): New component Location
2182
2183 2010-06-21  Vincent Celier  <celier@adacore.com>
2184
2185         * gnatbind.adb (Closure_Sources): Global table, moved from block.
2186
2187 2010-06-21  Thomas Quinot  <quinot@adacore.com>
2188
2189         * sem_res.adb: Minor reformatting.
2190         * atree.adb: New debugging hook "rr" for node rewrites.
2191
2192 2010-06-21  Robert Dewar  <dewar@adacore.com>
2193
2194         * g-expect.ads, g-expect.adb: Minor reformatting.
2195
2196 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2197
2198         * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
2199
2200 2010-06-21  Arnaud Charlet  <charlet@adacore.com>
2201
2202         * gcc-interface/Make-lang.in: Update dependencies.
2203
2204 2010-06-21  Thomas Quinot  <quinot@adacore.com>
2205
2206         * bindgen.ads: Update comments.
2207
2208 2010-06-21  Vincent Celier  <celier@adacore.com>
2209
2210         * gnatbind.adb: Suppress dupicates when listing the sources in the
2211         closure (switch -R).
2212
2213 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2214
2215         * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
2216         is too small.
2217
2218 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2219
2220         * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
2221         New subprograms.
2222         (Expect_Internal): No longer raises an exception, so that it can set
2223         out parameters as well. When a process has died, reset its Input_Fd
2224         to Invalid_Fd, so that when using multiple processes we can find out
2225         which process has died.
2226
2227 2010-06-21  Robert Dewar  <dewar@adacore.com>
2228
2229         * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
2230         checks.adb, sem_res.adb: Minor reformatting. Add comments.
2231
2232 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
2233
2234         * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
2235         rederivation associated with a full declaration in a private part, and
2236         there is a partial view that derives the same parent subprogram, the
2237         new entity does not become visible. This check must be applied to
2238         interface operations as well.
2239
2240 2010-06-21  Thomas Quinot  <quinot@adacore.com>
2241
2242         * checks.adb: Add comments.
2243         * prj-nmsc.adb: Minor reformatting.
2244
2245 2010-06-21  Thomas Quinot  <quinot@adacore.com>
2246
2247         * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
2248         sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
2249         extract bounds, to ensure that we get the proper captured values,
2250         rather than an expression that may have changed value since the point
2251         where the subtype was elaborated.
2252         (Find_Body_Discriminal): New utility subprogram to share code between...
2253         (Eval_Attribute): For the case of a subtype bound that references a
2254         discriminant of the current concurrent type, insert appropriate
2255         discriminal reference.
2256         (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
2257         requeue to an entry in a family in the current task, use corresponding
2258         body discriminal. 
2259         (Analyze_Accept_Statement): Rely on expansion of attribute references
2260         to insert proper discriminal references in range check for entry in
2261         family.
2262
2263 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2264
2265         * s-regpat.adb (Compile): Fix handling of big patterns.
2266
2267 2010-06-21  Robert Dewar  <dewar@adacore.com>
2268
2269         * a-tifiio.adb: Minor reformatting.
2270
2271 2010-06-21  Pascal Obry  <obry@adacore.com>
2272
2273         * prj-nmsc.adb (Search_Directories): Use the non-translated directory
2274         path to open it.
2275
2276 2010-06-21  Javier Miranda  <miranda@adacore.com>
2277
2278         * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
2279         external name.
2280
2281 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
2282
2283         * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
2284         to hold the result, indicate that the target of the declaration does
2285         not need an initialization, to prevent spurious errors when
2286         Initialize_Scalars is enabled.
2287
2288 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
2289
2290         * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
2291         Fore is not bound by line length. The Fore parameter of the internal
2292         procedure that performs the operation is an integer.
2293
2294 2010-06-21  Thomas Quinot  <quinot@adacore.com>
2295
2296         * sem_res.adb, checks.adb: Minor reformatting.
2297
2298 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2299
2300         * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
2301         into Get_Next.
2302         (Insert_Operator_Before): New subprogram, avoids duplicated code
2303         (Compile): Avoid doing two compilations when the pattern matcher ends
2304         up being small.
2305
2306 2010-06-21  Emmanuel Briot  <briot@adacore.com>
2307
2308         * s-regpat.adb: Improve debug traces
2309         (Dump): Change output format to keep it smaller.
2310
2311 2010-06-21  Javier Miranda  <miranda@adacore.com>
2312
2313         * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
2314         output to the output file when this routine completes its work.
2315
2316 2010-06-20  Eric Botcazou  <ebotcazou@adacore.com>
2317
2318         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
2319         for loop.  Call build_constructor_from_list directly in the CICO case.
2320
2321 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2322
2323         * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
2324         declaration appears in the same unit and ealier than the renamed
2325         entity, retain generated body to prevent order-of-elaboration issues in
2326         gigi.
2327
2328 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
2329
2330         * s-tpoben.adb: Update comments.
2331
2332 2010-06-18  Robert Dewar  <dewar@adacore.com>
2333
2334         * debug.adb: Minor comment change.
2335
2336 2010-06-18  Javier Miranda  <miranda@adacore.com>
2337
2338         * exp_cg.adb: Code clean up.
2339         * debug.adb: Complete documentation of switch -gnatd.Z.
2340         * gcc-interface/misc.c (callgraph_info_file): Declare.
2341
2342 2010-06-18  Javier Miranda  <miranda@adacore.com>
2343
2344         * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
2345
2346 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2347
2348         * sprint.ads: Minor reformatting.
2349         * output.ads: Update obsolete comment.
2350
2351 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2352
2353         * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
2354         an external intrinsic operation (e.g. a GCC numeric function) indicate
2355         that the renaming entity has the same characteristics, so a call to it
2356         is properly expanded.
2357
2358 2010-06-18  Javier Miranda  <miranda@adacore.com>
2359
2360         * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
2361         support for dispatch table/callgraph info generation.
2362         * gcc-interface/Make-lang.in: Update dependencies.
2363
2364 2010-06-18  Robert Dewar  <dewar@adacore.com>
2365
2366         * exp_ch6.adb: Minor reformatting.
2367         * gnatname.adb: Add comment.
2368
2369 2010-06-18  Vincent Celier  <celier@adacore.com>
2370
2371         * gnatname.adb (Scan_Args): When --and is used, make sure that the
2372         dynamic tables in the newly allocated Argument_Data are properly
2373         initialized.
2374
2375 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2376
2377         * gnat1drv.adb: Fix comment.
2378
2379 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2380
2381         * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
2382         renaming, re-expand the call with the renamed subprogram if that one
2383         is marked inlined as well.
2384
2385 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
2386
2387         * gnat1drv.adb (Adjust_Global_Switches): Enable
2388         Use_Expression_With_Actions for AAMP and VM targets.
2389
2390 2010-06-18  Vincent Celier  <celier@adacore.com>
2391
2392         * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
2393
2394 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2395
2396         * exp_ch4.adb: Minor reformatting.
2397
2398 2010-06-18  Javier Miranda  <miranda@adacore.com>
2399
2400         * debug.ads Add documentation on -gnatd.Z.
2401
2402 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2403
2404         * sem_elim.adb: Proper error message on improperly eliminated instances
2405
2406 2010-06-18  Vincent Celier  <celier@adacore.com>
2407
2408         * prj.ads (Response_File_Format): New value GCC.
2409
2410 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2411
2412         * gnat1drv.adb: Minor reformatting.
2413
2414 2010-06-18  Robert Dewar  <dewar@adacore.com>
2415
2416         * make.adb, sem_cat.adb: Minor reformatting.
2417         * sem_eval.adb: Fix typos.
2418
2419 2010-06-18  Pascal Obry  <obry@adacore.com>
2420
2421         * prj-nmsc.adb: Fix source filenames casing in debug output.
2422
2423 2010-06-18  Robert Dewar  <dewar@adacore.com>
2424
2425         * gnatcmd.adb: Minor reformatting.
2426
2427 2010-06-18  Robert Dewar  <dewar@adacore.com>
2428
2429         * sem_eval.adb (Eval_Conditional_Expression): Result is static if
2430         condition and both sub-expressions are static (and result is selected
2431         expression).
2432
2433 2010-06-18  Robert Dewar  <dewar@adacore.com>
2434
2435         * g-pehage.adb: Minor reformatting
2436
2437 2010-06-18  Pascal Obry  <obry@adacore.com>
2438
2439         * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
2440         source hash table.
2441
2442 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
2443
2444         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2445         dependencies. Fix target pairs on darwin.
2446         (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
2447
2448 2010-06-18  Pascal Obry  <obry@adacore.com>
2449
2450         * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
2451
2452 2010-06-18  Vincent Celier  <celier@adacore.com>
2453
2454         * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
2455         configuration pragmas file and, if -U is not used, for a local one.
2456
2457 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2458
2459         * sem_elim.adb (Check_Eliminated): Use full information on entity name
2460         when it is given in the pragma by a selected component.
2461         (Check_For_Eliminated_Subprogram): Do no emit error if within a
2462         instance body that is itself within a generic unit.
2463         * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
2464         eliminated, mark as well the anonymous subprogram that is its alias
2465         and appears within the wrapper package.
2466
2467 2010-06-18  Bob Duff  <duff@adacore.com>
2468
2469         * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
2470         Raise an exception if the output file cannot be opened. Add comments.
2471
2472 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2473
2474         * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
2475         not illegal per E.2.2(7) if it occurs in the private part of a
2476         Remote_Types unit.
2477
2478 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
2479
2480         * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
2481         sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
2482         par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
2483         sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
2484         sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
2485         sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
2486         par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
2487         sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
2488         sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
2489         errout.ads: Update comments. Minor reformatting.
2490
2491         * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
2492         a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
2493         a-strunb.adb (Big_String. Big_String_Access): New type.
2494
2495         * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
2496         exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
2497         sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
2498
2499 2010-06-18  Geert Bosch  <bosch@adacore.com>
2500
2501         * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
2502         Darwin.
2503
2504 2010-06-18  Robert Dewar  <dewar@adacore.com>
2505
2506         * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
2507         true for gcc.
2508
2509 2010-06-18  Robert Dewar  <dewar@adacore.com>
2510
2511         * sprint.adb: Minor format change for N_Expression_With_Actions.
2512         * repinfo.adb: Minor reformatting.
2513
2514 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2515
2516         * sem_elim.adb (Check_Eliminated): If within a subunit, use
2517         Defining_Entity to obtain the name of the entity in the proper body, to
2518         properly handle both separate packages and subprograms.
2519
2520 2010-06-18  Emmanuel Briot  <briot@adacore.com>
2521
2522         * prj-nmsc.adb (Check_File): New parameter Display_Path.
2523
2524 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2525
2526         * g-socket.adb, g-socket.ads (Null_Selector): New object.
2527
2528 2010-06-18  Pascal Obry  <obry@adacore.com>
2529
2530         * gnat_ugn.texi: Minor clarification.
2531
2532 2010-06-18  Emmanuel Briot  <briot@adacore.com>
2533
2534         * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
2535         code when using the project dir as the source dir.
2536         (Search_Directories): use the normalized name for the source directory,
2537         where symbolic names have potentially been resolved.
2538
2539 2010-06-18  Robert Dewar  <dewar@adacore.com>
2540
2541         * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
2542         when we create N_Expression_With_Actions node.
2543         (Expand_Short_Circuit): Ditto.
2544
2545 2010-06-18  Robert Dewar  <dewar@adacore.com>
2546
2547         * exp_util.adb: Minor reformatting.
2548
2549 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2550
2551         * types.ads: Clean up obsolete comments
2552         * tbuild.adb: Minor reformatting.
2553         * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
2554         exp_strm.adb, aa_drive.adb: Minor reformatting.
2555         * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
2556         intrinsic with an Interface_Name denotes an imported back-end builtin,
2557         and must be rewritten into a call, not left in the tree as an operator,
2558         so return False in that case.
2559
2560 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2561
2562         * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2563         
2564 2010-06-18  Robert Dewar  <dewar@adacore.com>
2565
2566         * scos.ads: Add proposed output for case expression
2567
2568 2010-06-18  Jose Ruiz  <ruiz@adacore.com>
2569
2570         * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2571         RTSS modules, we need to use the Microsoft linker.
2572
2573 2010-06-18  Robert Dewar  <dewar@adacore.com>
2574
2575         * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
2576         expression (cannot count on a particular branch being executed).
2577         * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
2578         * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
2579         * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
2580         within case expression.
2581         * expander.adb (Expand): Add call to Expand_N_Case_Expression
2582         * par-ch4.adb Add calls to P_Case_Expression at appropriate points
2583         (P_Case_Expression): New procedure
2584         (P_Case_Expression_Alternative): New procedure
2585         * par.adb (P_Case_Expression): New procedure
2586         * par_sco.adb (Process_Decisions): Add dummy place holder entry for
2587         N_Case_Expression.
2588         * sem.adb (Analyze): Add call to Analyze_Case_Expression
2589         * sem_case.ads (Analyze_Choices): Also used for case expressions now,
2590         this is a documentation change only.
2591         * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
2592         * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
2593         expressions.
2594         * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
2595         * sem_res.adb (Resolve_Case_Expression): New procedure.
2596         * sem_scil.adb (Find_SCIL_Node): Add processing for
2597         N_Case_Expression_Alternative.
2598         * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
2599         (N_Case_Expression_Alternative): New node.
2600         * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
2601         N_Case_Expression and N_Case_Expression_Alternative.
2602
2603 2010-06-18  Robert Dewar  <dewar@adacore.com>
2604
2605         * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2606         * gnat1drv.adb: Fix typo.
2607
2608 2010-06-18  Robert Dewar  <dewar@adacore.com>
2609
2610         * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
2611         for -gnatg.
2612         * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
2613         gnat style for -gnatg.
2614         * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
2615
2616 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2617
2618         * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2619         code between...
2620         (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2621         Test_In_Range.
2622
2623 2010-06-18  Robert Dewar  <dewar@adacore.com>
2624
2625         * sprint.adb: Minor change in output format for expression wi actions.
2626         * par-ch3.adb: Minor code reorganization.  Minor reformatting.
2627         * sem_ch5.adb: Minor comment fix.
2628
2629 2010-06-18  Robert Dewar  <dewar@adacore.com>
2630
2631         * debug.adb: New debug flag -gnatd.L to control
2632         Back_End_Handles_Limited_Types.
2633         * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
2634         limited case if Back_End_Handles_Limited_Types is True.
2635         (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
2636         simplify expansion if Use_Expression_With_Actions is True.
2637         * gnat1drv.adb (Adjust_Global_Switches): Set
2638         Back_End_Handles_Limited_Types.
2639         * opt.ads (Back_End_Handles_Limited_Types): New flag.
2640
2641 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2642
2643         * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
2644         intrinsic operator if expansion is not enabled, because in an
2645         instantiation the original operator must be present to verify the
2646         legality of the operation.
2647
2648 2010-06-18  Robert Dewar  <dewar@adacore.com>
2649
2650         * exp_disp.adb, sem_ch12.adb: Minor reformatting
2651
2652 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2653
2654         * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
2655         the class-wide type for a private extension, and the completion is a
2656         subtype, set the type of the class-wide type to the base type of the
2657         full view.
2658
2659 2010-06-18  Robert Dewar  <dewar@adacore.com>
2660
2661         * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
2662         sem_intr.adb, sem_eval.adb: Minor reformatting
2663
2664 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2665
2666         * sem_type.adb (Is_Ancestor): If either type is private, examine full
2667         view.
2668
2669 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2670
2671         * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2672         parameter rather than IN OUT.
2673
2674 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2675
2676         * exp_ch6.adb: Add extra guard.
2677
2678 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
2679
2680         * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
2681         accessibility level of a function call from the level of the innermost
2682         enclosing dynamic scope.
2683         (Innermost_Master_Scope_Depth): New function to find the depth of the
2684         nearest dynamic scope enclosing a node.
2685
2686 2010-06-18  Tristan Gingold  <gingold@adacore.com>
2687
2688         * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2689
2690 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2691
2692         * g-socket.ads: Minor reformatting.
2693
2694 2010-06-18  Vincent Celier  <celier@adacore.com>
2695
2696         * make.adb (Must_Compile): New Boolean global variable
2697         (Main_On_Command_Line): New Boolean global variable
2698         (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
2699         even when the project is externally built.
2700         (Start_Compile_If_Possible): Compile in -aL directories if
2701         Check_Readonly_Files is True. Do compile if Must_Compile is True, even
2702         when the project is externally built.
2703         (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
2704         invoked with -f -u and one or several mains on the command line.
2705         (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
2706         is specified on the command line.
2707
2708 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2709
2710         * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
2711         * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
2712         containing extented_return statements.
2713         * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
2714         constrained, do not build subtype declaration.
2715
2716 2010-06-18  Robert Dewar  <dewar@adacore.com>
2717
2718         * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2719         Warn on assigning to packed atomic component.
2720
2721 2010-06-18  Robert Dewar  <dewar@adacore.com>
2722
2723         * sem_util.ads: Minor reformatting
2724         * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
2725         Expression_With_Actions).
2726         * snames.ads-tmpl: Minor comment fix
2727
2728 2010-06-18  Robert Dewar  <dewar@adacore.com>
2729
2730         * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
2731         (Set_Imported): Use Import_Interface_Present to control message output
2732         * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
2733         * gnat_rm.texi: Document that we can have pragma Import and pragma
2734         Interface for the same subprogram.
2735
2736 2010-06-18  Robert Dewar  <dewar@adacore.com>
2737
2738         * lib-xref.adb (Generate_Reference): Fix bad reference to
2739         Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2740
2741 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
2742
2743         * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2744         function.
2745         (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2746         Use set_gnu_expr_location_from_node to set location information on the
2747         result.
2748
2749 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2750
2751         * gcc-interface/Make-lang.in: Update dependencies.
2752
2753 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2754
2755         * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2756         subprograms.
2757
2758 2010-06-17  Robert Dewar  <dewar@adacore.com>
2759
2760         * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
2761         style check messages.
2762         * sem_res.adb (Resolve_Call): Don't call
2763         Check_For_Eliminated_Subprogram if we are analyzing within a spec
2764         expression.
2765
2766 2010-06-17  Robert Dewar  <dewar@adacore.com>
2767
2768         * debug.adb: Add documentation for debug flags .X and .Y
2769         * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
2770         Use_Expression_With_Actions.
2771         * gnat1drv.adb (Adjust_Global_Switches): Set
2772         Use_Expression_With_Actions.
2773         * opt.ads (Use_Expression_With_Actions): New switch.
2774
2775 2010-06-17  Robert Dewar  <dewar@adacore.com>
2776
2777         * exp_intr.adb: Minor code reorganization (use UI_Max)
2778         * sem_intr.adb: use underlying type to check legality.
2779         * einfo.adb (Known_Static_Esize): False for generic types
2780         (Known_Static_RM_Size): False for generic types
2781         * einfo.ads (Known_Static_Esize): False for generic types
2782         (Known_Static_RM_Size): False for generic types
2783
2784 2010-06-17  Robert Dewar  <dewar@adacore.com>
2785
2786         * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2787
2788 2010-06-17  Robert Dewar  <dewar@adacore.com>
2789
2790         * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
2791         node when expanding short circuit form with actions present for right
2792         opnd.
2793         * exp_ch4.adb: Minor reformatting
2794         (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
2795         right opeand has actions present, and debug flag -gnatd.X is set.
2796         * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2797         node.
2798         * nlists.adb (Prepend_List): New procedure
2799         (Prepend_List_To): New procedure
2800         * nlists.ads (Prepend_List): New procedure
2801         (Prepend_List_To): New procedure
2802         * sem.adb: Add processing for Expression_With_Actions
2803         * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2804         * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2805         * sem_res.adb: Add processing for Expression_With_Actions.
2806         * sem_scil.adb: Add processing for Expression_With_Actions
2807         * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2808         * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2809
2810 2010-06-17  Doug Rupp  <rupp@adacore.com>
2811
2812         * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2813         involved both have underlying integer types.
2814         * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2815         to an intrinsic operator when the operand types or sizes are not
2816         identical.
2817         * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2818         64/32 Address/Integer works.
2819
2820 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2821
2822         * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2823         that it marks a unit as needed by a spec only if the corresponding
2824         instantiation appears in that spec (and not in the corresponding body).
2825         * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2826         in the pragma Eliminate has been parsed as a child unit, but the
2827         current compilation unit is in fact the parent in which the subunit is
2828         embedded.
2829
2830 2010-06-17  Vincent Celier  <celier@adacore.com>
2831
2832         * gnat_rm.texi: Fix typo
2833
2834 2010-06-17  Robert Dewar  <dewar@adacore.com>
2835
2836         * sem_util.adb: Minor reformatting
2837
2838 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2839
2840         * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2841         instance, the clause now denotes the instance body. Traverse the
2842         corresponding spec because there may be no other dependence that will
2843         force the traversal of its own context.
2844
2845 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2846
2847         * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2848         Install_Limited_Context_Clauses, to determine whether a limited_with in
2849         some parent of the current unit designates some other parent, in which
2850         case the limited_with clause must not be installed.
2851         (In_Context): Refine test.
2852
2853 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
2854
2855         * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2856         type with a dispatching equality operator that is overridden (for a
2857         tagged full type), don't include the overridden equality in the list of
2858         primitives. The overridden equality is detected by testing for an
2859         Aliased field that references the overriding equality.
2860
2861 2010-06-17  Robert Dewar  <dewar@adacore.com>
2862
2863         * freeze.adb: Minor reformatting.
2864
2865 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
2866
2867         * gnat_ugn.texi: Add a section introducing gdbserver.
2868
2869 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2870
2871         * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2872         reformatting.
2873
2874 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2875
2876         * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2877         constrained discriminated parent that is a private type.
2878         (Analyze_Record_Aggregate): when collecting inherited discriminants,
2879         handle properly an ancestor type that is a constrained private type.
2880
2881 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2882
2883         * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2884         protected, use the protected_subprogram_body only if the original
2885         subprogram has not been eliminated.
2886
2887 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2888
2889         * freeze.adb (Freeze_Expression): The designated type of an
2890         access_to_suprogram type can only be frozen if all types in its profile
2891         are fully defined.
2892
2893 2010-06-17  Robert Dewar  <dewar@adacore.com>
2894
2895         * par.adb: Minor comment fix
2896         * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2897
2898 2010-06-17  Doug Rupp  <rupp@adacore.com>
2899
2900         * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2901         change Address to Short_Address in functions where both must be the
2902         same size for intrinsics to work.
2903
2904 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2905
2906         * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2907         not denote a (private) component of a protected object.
2908
2909 2010-06-17  Bob Duff  <duff@adacore.com>
2910
2911         * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2912         the same list.
2913
2914 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
2915
2916         * gnat_ugn.texi: Update the documentation about GDB re: exception
2917         catchpoints.
2918
2919 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2920
2921         * gnatvsn.ads: Bump to 4.6 version.
2922
2923 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2924
2925         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2926         designated type of the generated pointer is the type of the original
2927         expression, not that of the function call itself, because the return
2928         type may be an untagged  derived type and the function may be an
2929         inherited operation.
2930
2931 2010-06-17  Robert Dewar  <dewar@adacore.com>
2932
2933         * exp_ch4.adb: Minor reformatting.
2934
2935 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2936
2937         * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2938         N_Component_Association nodes, to indicate that a component association
2939         of an extension aggregate denotes the value of a discriminant of an
2940         ancestor type that has been constrained by the derivation.
2941         * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2942         double expansion of the aggregate appearing in a context that delays
2943         expansion, to prevent double insertion of discriminant values when the
2944         aggregate is reanalyzed.
2945
2946 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2947
2948         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2949         Allocator as the Related_Node of Return_Obj_Access in call to
2950         Make_Temporary below as this would create a sort of infinite
2951         "recursion".
2952
2953 2010-06-17  Ben Brosgol  <brosgol@adacore.com>
2954
2955         * gnat_ugn.texi: Update gnatcheck doc.
2956
2957 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2958
2959         * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2960         incomplete view of the type that is not tagged, and the full type is a
2961         tagged extension, create class_wide type now, and warn that the
2962         incomplete view should be tagged as well.
2963
2964 2010-06-17  Vincent Celier  <celier@adacore.com>
2965
2966         * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2967         Update the last line of the usage, indicating what commands do not
2968         accept project file switches.
2969         * vms_conv.adb: Do not issue usage line for GNAT SYNC
2970         * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2971         GNAT ELIM.
2972         * gnat_ugn.texi: Document the relaxed rules for library directories in
2973         externally built library projects.
2974
2975 2010-06-17  Doug Rupp  <rupp@adacore.com>
2976
2977         * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2978         where possible.
2979         * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2980         * gcc-interface/Makefile.in: Update VMS target pairs.
2981
2982 2010-06-17  Vasiliy Fofanov  <fofanov@adacore.com>
2983
2984         * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2985         compatible with Windows NT 4.0 which doesn't provide this function.
2986
2987 2010-06-17  Vincent Celier  <celier@adacore.com>
2988
2989         * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2990         different timestamps but the checksum is the same, issue a short
2991         message saying so.
2992
2993 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2994
2995         * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2996         it means that we cannot reset interrupt handlers since this would
2997         require potentially sending the abort signal to the Server_Task.
2998
2999 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
3000
3001         * exp_ch4.adb: expand NOT for VMS types.
3002         * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
3003
3004 2010-06-17  Sergey Rybin  <rybin@adacore.com>
3005
3006         * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
3007         * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
3008         option.
3009
3010 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
3011
3012         * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
3013         protected operation if the subprogram has been eliminated.
3014
3015 2010-06-17  Vincent Celier  <celier@adacore.com>
3016
3017         * prj-nmsc.adb (Check_Library_Attributes): Allow the different
3018         directories associated with a library to be any directory when the
3019         library project is externally built.
3020
3021 2010-06-17  Vincent Celier  <celier@adacore.com>
3022
3023         * make.adb (Check): If switch -m is used, deallocate the memory that
3024         may be allocated when computing the checksum.
3025
3026 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
3027
3028         * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
3029         (C_Sendmsg): Likewise.
3030
3031 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3032
3033         * sem_res.adb: Update comments.
3034
3035 2010-06-17  Vincent Celier  <celier@adacore.com>
3036
3037         * back_end.adb (Scan_Compiler_Arguments): Process last argument
3038
3039 2010-06-17  Robert Dewar  <dewar@adacore.com>
3040
3041         * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
3042         * layout.adb, freeze.adb: Use Make_Temporary.
3043
3044 2010-06-17  Jerome Lambourg  <lambourg@adacore.com>
3045
3046         * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
3047         .NET/JVM normally as this is now perfectly supported by the backend.
3048
3049 2010-06-17  Pascal Obry  <obry@adacore.com>
3050
3051         * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
3052
3053 2010-06-17  Vincent Celier  <celier@adacore.com>
3054
3055         * make.adb (Collect_Arguments_And_Compile): Create include path file
3056         only when -x is specified.
3057         (Gnatmake): Ditto
3058         * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
3059         False.
3060         * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
3061         Objects_Path, defaulted to True. Only create include path file if
3062         Include_Path is True, only create objects path file if Objects_Path is
3063         True.
3064         * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
3065         Objects_Path, defaulted to True.
3066         * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
3067         when -x is used.
3068
3069 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
3070
3071         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3072         determine whether it has the controlling type, when the formal is an
3073         access parameter.
3074
3075 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
3076
3077         * s-crtl.ads (ssize_t): New type.
3078         (read): Fix signature.
3079         (write): Likewise.
3080         * g-socthi.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
3081         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3082         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3083         (C_Sendmsg): Likewise.
3084         * g-socthi.adb (Syscall_Recvmsg): Likewise.
3085         (Syscall_Sendmsg): Likewise.
3086         (C_Recvmsg): Likewise.
3087         (C_Sendmsg): Likewise.
3088         * g-socthi-mingw.ads: Add 'with System.CRTL' clause.  Remove ssize_t
3089         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3090         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3091         (C_Sendmsg): Likewise.
3092         * g-socthi-mingw.adb (C_Recvmsg): Likewise.
3093         (C_Sendmsg): Likewise.
3094         * g-socthi-vms.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
3095         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3096         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3097         (C_Sendmsg): Likewise.
3098         * g-socthi-vms.adb (C_Recvmsg): Likewise.
3099         (C_Sendmsg): Likewise.
3100         * g-socthi-vxworks.ads Add 'with System.CRTL' clause.  Remove ssize_t
3101         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3102         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3103         (C_Sendmsg): Likewise.
3104         * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
3105         (C_Sendmsg): Likewise.
3106         * g-sercom-linux.adb (Read): Use correct types to call 'read'.
3107         (Write): Likewise to call 'write'.
3108         * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
3109         (Write): Use correct type to call System.CRTL.write.
3110         * s-tasdeb.adb (Write): Likewise.
3111
3112 2010-06-17  Vincent Celier  <celier@adacore.com>
3113
3114         * prj-proc.adb (Copy_Package_Declarations): Change argument name
3115         Naming_Restricted to Restricted. If Restricted is True, do not copy the
3116         value of attribute Linker_Options.
3117
3118 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
3119
3120         * gcc-interface/trans.c (push_stack, pop_stack): Delete.
3121         (Case_Statement_to_gnu): Adjust.
3122         (Loop_Statement_to_gnu): Likewise.
3123         (Subprogram_Body_to_gnu): Likewise.
3124         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3125         (Compilation_Unit_to_gnu): Likewise.
3126
3127 2010-06-17  Robert Dewar  <dewar@adacore.com>
3128
3129         * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
3130         exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
3131         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
3132         sem_dist.adb, sem_util.adb: Use Make_Temporary
3133         * itypes.ads, tbuild.ads: Minor comment update
3134         * exp_ch9.adb, exp_dist.adb: Minor reformatting
3135
3136 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3137
3138         * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
3139
3140 2010-06-17  Robert Dewar  <dewar@adacore.com>
3141
3142         * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
3143
3144 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3145
3146         * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
3147
3148 2010-06-17  Robert Dewar  <dewar@adacore.com>
3149
3150         * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
3151         * tbuild.ads (Make_Temporary): More comment updates
3152         * tbuild.adb: Minor reformatting
3153
3154 2010-06-17  Robert Dewar  <dewar@adacore.com>
3155
3156         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
3157         exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
3158         Use Make_Temporary.
3159         * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
3160         instead of Node_Id.
3161         (Make_Temporary): Add more extensive documentation
3162
3163 2010-06-17  Robert Dewar  <dewar@adacore.com>
3164
3165         * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
3166         sem_warn.adb, sem_eval.adb: Minor reformatting.  Use Ekind_In.
3167         (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
3168         where the slice's actions are inserted.
3169         (Decompose_Expr): Account for possible rewriting of slice bounds
3170         resulting from side effects suppression caused by the above freezing,
3171         so that folding of bounds is preserved by such rewriting.
3172
3173 2010-06-17  Robert Dewar  <dewar@adacore.com>
3174
3175         * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
3176         * freeze.adb (Freeze_Record_Type): Add call to
3177         Check_Record_Representation_Clause.
3178         * sem_ch13.adb (Check_Record_Representation_Clause): New function
3179         (Analyze_Record_Representation_Clause): Split out overlap code into this
3180         new function.
3181         (Check_Component_Overlap): Moved inside
3182         Check_Record_Representation_Clause.
3183         * sem_ch13.ads (Check_Record_Representation_Clause): New function.
3184
3185 2010-06-17  Robert Dewar  <dewar@adacore.com>
3186
3187         * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
3188         reformatting.
3189         * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
3190         sem_eval.adb: Use Ekind_In
3191
3192 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
3193
3194         * sem_ch8.adb: better error message for illegal inherited discriminant
3195
3196 2010-06-17  Vincent Celier  <celier@adacore.com>
3197
3198         * bindusg.adb: Remove lines for -A and -C
3199         * gnat_ugn.texi: Remove all documentation and examples of switches -A
3200         and -C for gnatbind and gnatlink.
3201         * gnatlink.adb (Usage): Remove lines for -A and -C
3202         * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
3203         specified.
3204         * gcc-interface/Make-lang.in: Update dependencies.
3205
3206 2010-06-17  Vincent Celier  <celier@adacore.com>
3207
3208         * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
3209         local Argument_List variable Args.
3210         * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
3211         Args.
3212         (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
3213         for subsequent switches in Args.
3214         * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
3215         Args.
3216         * gcc-interface/Make-lang.in: Update dependencies.
3217
3218 2010-06-17  Robert Dewar  <dewar@adacore.com>
3219
3220         * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
3221         Equivalent_Type to match documentation.
3222
3223 2010-06-17  Robert Dewar  <dewar@adacore.com>
3224
3225         * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
3226         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
3227         sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
3228
3229 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3230
3231         * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
3232
3233 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3234
3235         * freeze.adb (Freeze_Expression): Short circuit operators are valid
3236         freeze node insertion points.
3237
3238 2010-06-17  Robert Dewar  <dewar@adacore.com>
3239
3240         * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
3241         * sem_ch12.adb: Add pragmas Assert and Check to previous change.
3242
3243 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
3244
3245         * layout.adb (Layout_Type): Broaden test for setting an array type's
3246         Component_Size to include all scalar types, not just discrete types
3247         (components of real types were missed).
3248         * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
3249         on the itype created for an index (consistent with Make_Index and
3250         avoids possible Assert_Failures).
3251
3252 2010-06-17  Robert Dewar  <dewar@adacore.com>
3253
3254         * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
3255         * einfo.adb: Minor code reformatting (use Ekind_In)
3256
3257 2010-06-17  Robert Dewar  <dewar@adacore.com>
3258
3259         * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
3260         found.
3261
3262 2010-06-17  Vincent Celier  <celier@adacore.com>
3263
3264         * back_end.adb: Minor comment updates
3265         * switch-c.adb: Remove dependencies on gcc C sources
3266         * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
3267         for the compiler.
3268
3269 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
3270
3271         * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
3272         * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
3273         * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
3274         Remove use of Node field in SCOs table
3275         (Output_Header): Set 'd' to initially disable pragma entry
3276         * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
3277         * scos.ads, scos.adb: Remove Node field from internal SCOs table.
3278         Use C2 field of pragma decision header to indicate enabled.
3279         * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
3280         * gcc-interface/Make-lang.in: Update dependencies.
3281
3282 2010-06-17  Vincent Celier  <celier@adacore.com>
3283
3284         * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
3285         (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
3286         (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
3287         * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
3288         Switch.C.
3289         * switch-c.adb: Copied a number of global declarations from back_end.adb
3290         (Len_Arg): New function copied from back_end.adb
3291         (Switch_Subsequently_Cancelled): New function moved from back_end.adb
3292         (Scan_Front_End_Switches): New parameter Arg_Rank used to call
3293         Switch_Subsequently_Cancelled.
3294         * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
3295         * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
3296         with -lexc on Tru64.
3297
3298 2010-06-17  Robert Dewar  <dewar@adacore.com>
3299
3300         * prj.ads, prj.adb: Minor reformatting
3301
3302 2010-06-17  Thomas Quinot  <quinot@adacore.com>
3303
3304         * put_scos.adb: Do not generate a blank line in SCOs when omitting the
3305         CP line for a disabled pragma.
3306
3307 2010-06-17  Emmanuel Briot  <briot@adacore.com>
3308
3309         * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
3310         subprogram.
3311         (Process_Declarative_Item): An invalid value in an typed variable
3312         declaration is no longer always fatal.
3313
3314 2010-06-16  Arnaud Charlet  <charlet@adacore.com>
3315
3316         * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
3317         scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
3318         documentation.
3319
3320 2010-06-16  Javier Miranda  <miranda@adacore.com>
3321
3322         * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
3323         node referenced by the SCIL node of dispatching "=" to skip the tags
3324         comparison.
3325
3326 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
3327
3328         * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
3329         to prevent cascaded errors and compilation aborts.
3330
3331 2010-06-16  Robert Dewar  <dewar@adacore.com>
3332
3333         * back_end.adb (Switch_Subsequently_Cancelled): New function
3334         Move declarations to package body level to support this change
3335         * back_end.ads (Switch_Subsequently_Cancelled): New function
3336         * gnat_ugn.texi: Document -gnat-p switch
3337         * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
3338         * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
3339         * usage.adb: Add line for -gnat-p switch
3340         * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
3341
3342 2010-06-16  Robert Dewar  <dewar@adacore.com>
3343
3344         * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
3345         modification.
3346
3347 2010-06-16  Robert Dewar  <dewar@adacore.com>
3348
3349         * exp_disp.adb: Minor reformatting
3350
3351 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
3352
3353         * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
3354         base type only if it was not previously created for the partial view.
3355
3356 2010-06-16  Thomas Quinot  <quinot@adacore.com>
3357
3358         * tbuild.ads: Minor comment fix
3359
3360 2010-06-15  Nathan Froyd  <froydnj@codesourcery.com>
3361
3362         * gcc-interface/trans.c (gnu_stack_free_list): Delete.
3363         (gnu_except_ptr_stack): Change type to VEC.  Update comment.
3364         (gnu_elab_proc_stack): Likewise.
3365         (gnu_return_label_stack): Likewise.
3366         (gnu_loop_label_stack): Likewise.
3367         (gnu_switch_label_stack): Likewise.
3368         (gnu_constraint_label_stack): Likewise.
3369         (gnu_storage_error_label_stack): Likewise.
3370         (gnu_program_error_label_stack): Likewise.
3371         (push_exception_label_stack): Take a VEC ** instead of a tree *.
3372         (push_stack): Likewise.  Remove unused second parameter.  Update
3373         callers.
3374         (pop_stack): Take a VEC * instead of a tree *.  Update callers.
3375         (gigi): Initialize stacks as VECs.
3376         (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
3377         (Case_Statement_to_gnu): Likewise.
3378         (Subprogram_Body_to_gnu): Likewise.
3379         (call_to_gnu): Likewise.
3380         (Exception_Handler_to_gnu_sjlj): Likewise.
3381         (gnat_to_gnu): Likewise.
3382         (get_exception_label): Likewise.
3383
3384 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3385
3386         * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
3387         anonymous base generated when the parent is a constrained discriminated
3388         type, propagate interface list to first subtype because it may appear
3389         in a current instance within the extension part of the derived type
3390         declaration, and its own subtype declaration has not been elaborated
3391         yet.
3392         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3393         determine whether it has the controlling type.
3394
3395 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3396
3397         * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
3398         raise of CE, SE and PE have the reason correctly set and are properly
3399         expanded before stopping the expansions of .NET/JVM exceptions.
3400
3401 2010-06-14  Robert Dewar  <dewar@adacore.com>
3402
3403         * opt.ads (Check_Policy_List): Add some clarifying comments
3404         * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
3405         on rewritten Assert pragma.
3406
3407 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3408
3409         * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
3410         controlled operations, so that they will be treated as overriding even
3411         if the overridden subprogram is marked Is_Hidden, as long as the
3412         overridden subprogram's parent subprogram is not hidden.
3413
3414 2010-06-14  Robert Dewar  <dewar@adacore.com>
3415
3416         * debug.adb: Entry for gnatw.d no longer specific for while loops
3417         * einfo.adb (First_Exit_Statement): New attribute for E_Loop
3418         * einfo.ads (First_Exit_Statement): New attribute for E_Loop
3419         * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
3420         new calling sequence to include test for EXIT WHEN.
3421         (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
3422         * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
3423         EXIT WHEN case.
3424         * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
3425         node.
3426         * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
3427         PRAGMA, not to pragma identifier).
3428         (Next_Exit_Statement): New attribute of N_Exit_Statement node
3429
3430 2010-06-14  Robert Dewar  <dewar@adacore.com>
3431
3432         * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
3433         would fail" msg.
3434
3435 2010-06-14  Robert Dewar  <dewar@adacore.com>
3436
3437         * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
3438         missing pragma argument identifier.
3439
3440 2010-06-14  Robert Dewar  <dewar@adacore.com>
3441
3442         * atree.ads, atree.adb (Ekind_In): New functions.
3443
3444 2010-06-14  Robert Dewar  <dewar@adacore.com>
3445
3446         * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
3447
3448 2010-06-14  Robert Dewar  <dewar@adacore.com>
3449
3450         * usage.adb (Usage): Redo documentation of -gnatwa.
3451
3452 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3453
3454         * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
3455         an untagged incomplete type that is a limited view.
3456
3457 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3458
3459         * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
3460         and gnatppa.
3461
3462 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3463
3464         * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
3465         factoring duplicated code between...
3466         (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
3467         * a-envvar.ads: Minor reformatting
3468
3469 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3470
3471         * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
3472         static entities.
3473         (Scan_ALI): Take into account new Visibility field.
3474         (Visibility_Kind): New type.
3475         (Xref_Entity_Record): Replace Lib field by Visibility.
3476
3477         * gcc-interface/Make-lang.in: Update dependencies.
3478
3479 2010-06-14  Pascal Obry  <obry@adacore.com>
3480
3481         * raise.h: Remove unused defintions.
3482
3483 2010-06-14  Bob Duff  <duff@adacore.com>
3484
3485         * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
3486         Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
3487         the incorrect error "proper body expected".
3488         * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
3489         allowed here" error in case of subunits, which was triggered by the
3490         above change to P_Subunit.
3491
3492 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3493
3494         * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
3495
3496 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3497
3498         * lib-util.adb: Minor code reorganization.
3499
3500 2010-06-14  Robert Dewar  <dewar@adacore.com>
3501
3502         * ali.adb (Scan_ALI): Implement reading and storing of N lines
3503         (Known_ALI_Lines): Add entry for 'N' (notes)
3504         * ali.ads (Notes): New table to store Notes information
3505         * alloc.ads: Add entries for Notes table
3506         * lib-util.adb (Write_Info_Int): New procedure
3507         (Write_Info_Slit): New procedure
3508         (Write_Info_Uint): New procedure
3509         * lib-util.ads (Write_Info_Int): New procedure
3510         (Write_Info_Slit): New procedure
3511         (Write_Info_Uint): New procedure
3512         * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
3513         * lib-writ.ads: Update documentation for N (Notes) lines
3514         * lib.adb (Store_Note): New procedure
3515         * lib.ads (Notes): New table
3516         (Store_Note): New procedure
3517         * sem_prag.adb: Call Store_Note for affected pragmas
3518
3519 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3520
3521         * socket.c: Fix wrong condition in #ifdef
3522         * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
3523         take or return char* values can't use Interfaces.C.Strings.chars_ptr,
3524         because on VMS this type is a 32-bit pointer which is not compatible
3525         with the default for C pointers for code compiled with gcc on that
3526         platform.
3527
3528 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3529
3530         * sem_util (Is_VMS_Operator): New predicate to determine whether an
3531         operator is an intrinsic operator declared in the DEC system extension.
3532         * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
3533         if the operator is a VMS intrinsic.
3534         * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
3535         constant-folded if the operands are signed and the operator is a VMS
3536         intrinsic.
3537
3538 2010-06-14  Robert Dewar  <dewar@adacore.com>
3539
3540         * g-socket.adb, gnatcmd.adb: Minor reformatting.
3541
3542 2010-06-14  Pascal Obry  <obry@adacore.com>
3543
3544         * s-finimp.adb: Fix typo.
3545         * raise.h: Remove duplicate blank line.
3546
3547 2010-06-14  Vincent Celier  <celier@adacore.com>
3548
3549         * prj-nmsc.adb (Add_Sources): Always set the object file and the
3550         switches file names, as the configuration of the language may change
3551         in an extending project.
3552         (Process_Naming_Scheme): For sources of projects that are extended, set
3553         the configuration of the language from the highest extending project
3554         where the language is declared.
3555
3556 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3557
3558         * sem_res.adb (Resolve_Call): For infinite recursion check, test
3559         whether the called subprogram is inherited from a containing subprogram.
3560         (Same_Or_Aliased_Subprograms): New function
3561
3562 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3563
3564         * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
3565         use-visible, check whether it is a primitive for more than one type.
3566
3567 2010-06-14  Robert Dewar  <dewar@adacore.com>
3568
3569         * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3570
3571         * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3572         Has_Pragma_Unmodified flag.
3573
3574 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3575
3576         * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
3577         g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
3578         now done in GNAT.Sockets if necessary.
3579         * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
3580         Ensure mutual exclusion for netdb operations if the target platform
3581         requires it.
3582         (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
3583         hostent as an opaque type to improve portability.
3584         * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
3585         gethostbyYYY using proprietary VxWorks API so that a uniform interface
3586         is available for the Ada side.
3587         * gcc-interface/Makefile.in: Remove g-sttsne-*
3588         * gcc-interface/Make-lang.in: Update dependencies.
3589
3590 2010-06-14  Vincent Celier  <celier@adacore.com>
3591
3592         * gnatcmd.adb (Mapping_File): New function.
3593
3594 2010-06-14  Javier Miranda  <miranda@adacore.com>
3595
3596         * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3597
3598 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3599
3600         * ali.adb: Fix typo.
3601         * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3602
3603 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3604
3605         * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
3606         instances.
3607
3608         * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
3609         the context does not have a homonym of the selector, emit default
3610         error message.
3611
3612 2010-06-14  Robert Dewar  <dewar@adacore.com>
3613
3614         * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3615         comment addition.
3616
3617 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3618
3619         * lib-xref.ads: Doc updates:
3620          - Allocate 'Q' for #include entity kind
3621          - Free 'Z'
3622          - Allocate 'g' for regular macros
3623          - Allocate 'G' for function-like macros
3624
3625 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3626
3627         * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
3628         Indicates that there is an instantiation in the current unit that
3629         loaded the body of the unit denoted by the with_clause.
3630         * sem_ch12.adb (Mark_Context): When instanting a generic body, check
3631         whether a with_clause in the current context denotes the unit that
3632         holds the generic declaration, and mark the with_clause accordingly.
3633         (Instantiate_Package_Body): call Mark_Context.
3634         * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
3635         whether a given body should be traversed before the spec of the main
3636         unit.
3637
3638 2010-06-14  Ed Falis  <falis@adacore.com>
3639
3640         * sysdep.c: Fix 653 build against vThreads headers.
3641
3642 2010-06-14  Robert Dewar  <dewar@adacore.com>
3643
3644         * sinfo.ads: Minor reformatting.
3645
3646 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3647
3648         * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
3649         the spec has been generated for a body without spec that carries an
3650         Inline_Always pragma.
3651
3652 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3653
3654         * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
3655         macro.
3656
3657 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3658
3659         * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
3660         declaration for VMs, as those are useless and might lead to duplicated
3661         local variable names in the generated code.
3662         * gcc-interface/Make-lang.in: Update dependencies.
3663
3664 2010-06-14  Robert Dewar  <dewar@adacore.com>
3665
3666         * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3667
3668 2010-06-14  Robert Dewar  <dewar@adacore.com>
3669
3670         * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
3671         is renamed as Has_Following_Address_Clause.
3672         * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
3673         to allow the caller to avoid Initialize_Scalars having an effect.
3674         (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
3675         scalars with an address clause specified.
3676         * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
3677         to allow the caller to avoid Initialize_Scalars having an effect.
3678         * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
3679         (where it was called Has_Address_Clause).
3680         * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
3681         (where it was called Has_Address_Clause).
3682         * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
3683         problems for Initialize_Scalars (since we no longer initialize objects
3684         with an address clause.
3685
3686 2010-06-14  Robert Dewar  <dewar@adacore.com>
3687
3688         * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3689         condition.
3690
3691 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3692
3693         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3694         on the entity of an implicitly generated postcondition procedure.
3695
3696 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3697
3698         * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3699         Discriminant_Constraint elist from full view to private view.
3700
3701 2010-06-14  Robert Dewar  <dewar@adacore.com>
3702
3703         * sem_res.adb: Minor reformatting.
3704
3705 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3706
3707         * sem.adb: New version of unit traversal.
3708
3709         * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3710         within a generic unit in the table of delayed calls.
3711
3712 2010-06-14  Robert Dewar  <dewar@adacore.com>
3713
3714         * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3715
3716 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3717
3718         * sem_ch12.adb (Save_References): If an identifier has been rewritten
3719         during analysis as an explicit dereference, keep the reference implicit
3720         in the generic, but preserve the entity if global. This prevents
3721         malformed generic trees in the presence of some nested generics.
3722
3723 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3724
3725         * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
3726         tool with '-files=' option. Also fix some small errors (wrong brackets)
3727
3728 2010-06-14  Vincent Celier  <celier@adacore.com>
3729
3730         * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3731         the ALI files on the command line.
3732
3733         * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
3734         the same value as the parameter of the same name.
3735         * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
3736         to False.
3737         * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
3738         Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
3739         emit version symbols only for the units of the library.
3740         (Gen_Versions_C): Ditto.
3741
3742 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3743
3744         * sem_ch4.adb: Fix typo.
3745
3746 2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>
3747
3748         * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3749         vector IO doesn't work at default value properly.
3750
3751 2010-06-14  Doug Rupp  <rupp@adacore.com>
3752
3753         * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3754
3755 2010-06-14  Vincent Celier  <celier@adacore.com>
3756
3757         * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3758         sources of the project if a switch -files= is used.
3759
3760 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3761
3762         * exp_attr.adb: Minor reformatting.
3763
3764 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3765
3766         * gnat_ugn.texi: Minor typo fixes and wording changes.
3767
3768 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3769
3770         * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
3771         prefixed form, do not re-analyze first actual, which may need an
3772         implicit dereference.
3773         * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
3774         prefixed notation, the analysis will rewrite the node, and possible
3775         errors appear in the rewritten name of the node.
3776         * sem_res.adb: If a call is ambiguous because its first parameter is
3777         an overloaded call, report list of candidates, to clarify ambiguity of
3778         enclosing call.
3779
3780 2010-06-14  Doug Rupp  <rupp@adacore.com>
3781
3782         * s-auxdec-vms-alpha.adb: New package body implementing legacy
3783         VAX instructions with Asm insertions.
3784         * s-auxdec-vms_64.ads: Inline VAX queue functions
3785         * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
3786         that show up only on VMS.
3787         * gcc-interface/Makefile.in: Provide translation for
3788         s-auxdec-vms-alpha.adb.
3789
3790 2010-06-14  Olivier Hainque  <hainque@adacore.com>
3791
3792         * initialize.c (VxWorks section): Update comments.
3793
3794 2010-06-14  Robert Dewar  <dewar@adacore.com>
3795
3796         * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3797
3798 2010-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3799
3800         * init.c: Code clean up.
3801
3802 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3803
3804         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3805         not insert address clause in table for later validation if type of
3806         entity is generic, to prevent possible spurious errors. 
3807
3808         * sem_ch8.adb: Code clean up.
3809
3810 2010-06-14  Ben Brosgol  <brosgol@adacore.com>
3811
3812         * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3813         texi2pdf and texi2html.
3814         Document how to change scheduling properties on HP-UX.
3815
3816 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3817
3818         * g-socket.ads: Remove misleading comments.
3819
3820 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3821
3822         * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3823         CLI_Target as this prevents proper detection of exported names
3824         duplicates when the exported language is different to CIL.
3825         (Process_Interface_Name): Add check for CIL convention exports,
3826         replacing the old one from Check_Duplicated_Export_Name.
3827
3828 2010-06-14  Matthew Heaney  <heaney@adacore.com>
3829
3830         * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3831         and new last satisfy constraints.
3832         (Delete_Last): prevent overflow for subtraction of index values
3833         (To_Vector): prevent overflow for addition of index values
3834
3835 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3836
3837         * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3838         rewritten call, preserve the resulting type to prevent spurious errors,
3839         when the call is implicitly dereferenced in the context of an in-out
3840         actual.
3841
3842         * checks.adb (Apply_Discriminant_Check): If the target of the
3843         assignment is a renaming of a heap object, create constrained type for
3844         it to apply check.
3845
3846 2010-06-14  Pascal Obry  <obry@adacore.com>
3847
3848         * prj-proc.adb: Fix copy of object directory for extending projects.
3849
3850 2010-06-14  Jose Ruiz  <ruiz@adacore.com>
3851
3852         * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3853         (__gnat_install_handler, PowerPC linux): Activate the alternative
3854         signal stack.
3855
3856 2010-06-13  Gerald Pfeifer  <gerald@pfeifer.com>
3857
3858         * gnat_rm.texi: Move to GFDL version 1.3.
3859         * gnat-style.texi: Ditto.
3860         * gnat_ugn.texi: Ditto.
3861
3862 2010-06-12  Kai Tietz  <kai.tietz@onevision.com>
3863
3864         PR ada/43731
3865         * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3866         mingw targets.
3867
3868 2010-06-11  Alexandre Oliva  <aoliva@redhat.com>
3869
3870         * gcc-interface/utils.c (update_pointer_to): Initialize last.
3871
3872 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3873
3874         * gcc-interface/ada-tree.h: Fix formatting nits.
3875
3876 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3877
3878         * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3879         allocation.
3880         (init_dummy_type): Likewise.
3881         (gnat_pushlevel): Likewise.
3882
3883         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3884         (Subprogram_Body_to_gnu): Likewise.
3885         (Compilation_Unit_to_gnu): Likewise.
3886         (start_stmt_group): Likewise.
3887         (extract_encoding): Likewise.
3888         (decode_name): Likewise.
3889
3890         * gcc-interface/misc.c (gnat_printable_name): Likewise.
3891
3892         * gcc-interface/decl.c (annotate_value): Likewise.
3893
3894         * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3895         GTY option.
3896         (struct lang_decl): Likewise.
3897         (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3898         (SET_DECL_LANG_SPECIFIC): Likewise.
3899
3900 2010-06-04  Eric Botcazou  <ebotcazou@adacore.com>
3901
3902         * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3903         * gcc-interface/lang-specs.h: Likewise.
3904
3905 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3906
3907         PR c++/44294
3908         * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3909
3910 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
3911
3912         * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3913
3914 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3915
3916         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3917         TYPE_DECL of the equivalent type instead of building a new one.
3918
3919 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3920
3921         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3922         Fix nits in comments.
3923         * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3924         * gcc-interface/trans.c (gigi): Likewise.
3925         (Attribute_to_gnu): Likewise.
3926         (Case_Statement_to_gnu): Likewise.
3927         (gnat_to_gnu): Adjust warning message.
3928         * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3929         (build_vms_descriptor32): Likewise.
3930
3931 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
3932
3933         * gcc-interface/decl.c: Pretend to be a backend file by undefining
3934         IN_GCC_FRONTEND (still need rtl.h here).
3935
3936 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3937
3938         * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3939         (gigi): Adjust call to set_stack_check_libfunc.
3940
3941 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3942
3943         * gcc-interface/utils.c: Do not include rtl.h.
3944
3945 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
3946
3947         * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3948         and gimple.h.  Explain why rtl.h has to be included.
3949         (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3950         * gcc-interface/targtyps.c: Do not include tm_p.h
3951         * gcc-interface/utils2.c: Do not include flags.h.
3952         * gcc-interface/trans.c: Do not include expr.h.  Include rtl.h instead,
3953         and explain why it has to be included.
3954         * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3955         and optabs.h.
3956         Include function.h and explain why.  Explain why except.h is included.
3957         (enumerate_modes): Remove unused function. 
3958         * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3959         * gcc-interface/Make-lang.in: Update dependencies.
3960
3961 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
3962
3963         * gcc-interface/misc.c (internal_error_function): Add context
3964         parameter.  Use it to access show_column flag and instead of using
3965         global_dc.  Call warn_if_plugins.
3966         * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3967
3968 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3969
3970         * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3971         * gcc-interface/trans.c (unshare_save_expr): Delete.
3972         (gigi): Do not unshare trees under SAVE_EXPRs here.
3973
3974 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
3975
3976         * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3977         build_call_list.
3978         * gcc-interface/utils.c (build_function_stub): Likewise.
3979
3980 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3981
3982         * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3983         for Wuninitialized without -O.
3984         
3985 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
3986
3987         * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3988         ADT_exception_data_name_id.
3989         (exception_data_name_id): New define.
3990         * gcc-interface/trans.c (gigi): Initialize it.
3991         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3992         exception type for standard exception definitions.  Do not make them
3993         volatile.
3994         <E_Record_Type>: Equate fields of types associated with an exception
3995         definition to those of the standard exception type.
3996
3997 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
3998
3999         * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
4000
4001 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
4002
4003         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
4004         code, improve comments and fix formatting nits.
4005
4006 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
4007
4008         * gcc-interface/utils.c (update_pointer_to): Return early if the old
4009         pointer already points to the new type.  Chain the old pointer and its
4010         variants at the end of new pointer's chain after updating them.
4011
4012 2010-05-10  Eric Botcazou  <ebotcazou@adacore.com>
4013
4014         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
4015         built for interfaces.
4016         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
4017         imported_p instead of Is_Imported when considering constants.
4018         Do not promote alignment of exported objects.
4019         <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
4020
4021 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4022
4023         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
4024         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
4025         constants really constant.
4026         <E_Record_Subtype>: Strip the suffix for dispatch table entities.
4027
4028 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4029
4030         * gcc-interface/decl.c (make_aligning_type): Declare the type.
4031
4032 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4033
4034         * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
4035         expressions of variant part of record types declared at library level.
4036
4037 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
4040         * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
4041         (rest_of_record_type_compilation): Adjust call to create_field_decl.
4042         (make_descriptor_field): Likewise and pass correctly typed constants.
4043         (build_unc_object_type): Likewise.
4044         (unchecked_convert): Likewise.
4045         * gcc-interface/decl.c (elaborate_expression_2): New static function.
4046         (gnat_to_gnu_entity): Use it to make alignment factors explicit.
4047         Adjust call to create_field_decl.
4048         (make_aligning_type): Likewise.
4049         (make_packable_type): Likewise.
4050         (maybe_pad_type): Likewise.
4051         (gnat_to_gnu_field): Likewise.
4052         (components_to_record): Likewise.
4053         (create_field_decl_from): Likewise.
4054         (create_variant_part_from): Remove superfluous test.
4055         * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
4056
4057 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4058
4059         * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
4060         (build_unc_object_type_from_ptr): Likewise.
4061         * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
4062         and pass it to create_type_decl.  Declare the type.  Simplify.
4063         (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
4064         it to build_unc_object_type.
4065         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
4066         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4067         (gnat_to_gnu): Likewise.
4068         * gcc-interface/utils2.c (build_allocator): Likewise.
4069
4070 2010-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4071
4072         PR 40989
4073         * gcc-interface/misc.c (gnat_handle_option): Fix long line.
4074
4075 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4076
4077         * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
4078
4079 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4080
4081         PR 40989
4082         * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
4083
4084 2010-05-02  Giuseppe Scrivano  <gscrivano@gnu.org>
4085
4086         * gnathtml.pl: Use 755 as mask for new directories.
4087
4088 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4089
4090         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
4091         constant constructors before taking their address.
4092
4093 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
4094
4095         * exp_dbug.ads: Fix outdated description.  Mention link between XVS
4096         and XVZ objects.
4097         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
4098         XVZ variable as unit size of XVS type.
4099         (maybe_pad_type): Likewise.
4100
4101 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
4102
4103         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
4104         use memmove if the array type is bit-packed.
4105
4106 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4107
4108         * gcc-interface/misc.c (gnat_init): Remove second argument in call to
4109         build_common_tree_nodes.
4110
4111 2010-04-18  Ozkan Sezer  <sezeroz@gmail.com>
4112
4113         * gsocket.h: Make sure that winsock2.h is included before windows.h.
4114
4115 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4116
4117         * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
4118         issue warning.
4119
4120 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4121
4122         * uintp.h (UI_Lt): Declare.
4123         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
4124         computation in sizetype.
4125         <E_Array_Subtype>: Use unified handling for all index types.  Do not
4126         generate MAX_EXPR-based expressions, only COND_EXPR-based ones.  Add
4127         bypass for PATs.
4128         (annotate_value): Change test for negative values.
4129         (validate_size): Apply test for negative values on GNAT nodes.
4130         (set_rm_size): Likewise.
4131         * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
4132         * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
4133         for negative values.
4134         (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
4135         (builtin_type_for_size): Adjust definition of signed_size_type_node.
4136         * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
4137         lengths against zero.
4138
4139 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4140
4141         * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
4142         * gcc-interface/gigi.h (gigi): Add standard_character parameter.
4143         (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, 
4144         LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
4145         LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
4146         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
4147         rm_size.
4148         * gcc-interface/misc.c (gnat_init): Set signedness of char as per
4149         flag_signed_char.  Tag sizetype with "size_type" moniker.
4150         * gcc-interface/trans.c (gigi): Add standard_character parameter.
4151         Remove useless built-in types.  Equate unsigned_char_type_node to
4152         Standard.Character.  Use it instead of char_type_node throughout.
4153         (Attribute_to_gnu): Likewise.
4154         (gnat_to_gnu): Likewise.
4155         * gcc-interface/utils2.c (build_call_raise): Likewise.
4156
4157 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4158
4159         * gcc-interface/gigi.h (enum standard_datatypes): Add new values
4160         ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
4161         (sbitsize_one_node): New macro.
4162         (sbitsize_unit_node): Likewise.
4163         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
4164         latent bug in the computation of subrange_p.  Fold wider_p predicate.
4165         (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
4166         the final comparison.
4167         (make_aligning_type): Build real negation and use sizetype throughout
4168         the offset computation.
4169         (maybe_pad_type): Do not issue the warning when the new size expression
4170         is too complex.
4171         (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
4172         * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
4173         sbitsize_unit_node.
4174         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
4175         double negation.
4176         (gnat_to_gnu) <N_Free_Statement>: Likewise.
4177         * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
4178         * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
4179         constants in sizetype.  Remove dead code and tweak comments.  Generate
4180         equality instead of inequality comparisons for zero length tests.
4181
4182 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4183
4184         * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
4185         * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
4186         <object>: Do not create the fake PARM_DECL if no debug info is needed.
4187         Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
4188         purposes if no debug info is needed.
4189         Fix formatting.  Reorder and add comments.
4190         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
4191         variable and remove obsolete comment.
4192         * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
4193         (convert_vms_descriptor32): Likewise.
4194         (convert): Remove dead code.
4195         <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
4196         the reference to the P_ARRAY pointer.
4197         <POINTER_TYPE>: Likewise.
4198         (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
4199         (gnat_init_decl_processing): Delete, move contents to...
4200         * gcc-interface/misc.c (gnat_init): ...here.
4201
4202 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4203
4204         * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
4205         calls.  Return true for conversion from a record subtype to its type.
4206
4207 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4208
4209         * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
4210         lieu of integer_type_node for boolean operations.
4211         (choices_to_gnu): Likewise.
4212         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4213         (Loop_Statement_to_gnu): Likewise.
4214         (establish_gnat_vms_condition_handler): Likewise.
4215         (Exception_Handler_to_gnu_sjlj): Likewise.
4216         (gnat_to_gnu): Likewise.
4217         (build_unary_op_trapv): Likewise.
4218         (build_binary_op_trapv): Likewise.
4219         (emit_range_check): Likewise.
4220         (emit_index_check): Likewise.
4221         (convert_with_check): Likewise.
4222         * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
4223         (convert_vms_descriptor32): Likewise.
4224         (convert_vms_descriptor): Likewise.
4225         * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
4226         (compare_arrays): Use boolean instead of integer constants.
4227         (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
4228         TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case.  Check that the result type
4229         is a boolean type.
4230         <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
4231         <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
4232         <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
4233         <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
4234         (build_unary_op): Use boolean_type_node in lieu of integer_type_node
4235         for boolean operations.
4236         (fill_vms_descriptor): Likewise.  Fix formatting nits.
4237
4238 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4239
4240         * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
4241         * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
4242         Merge into...
4243         (LOOP_STMT_COND): ...this.
4244         (LOOP_STMT_BOTTOM_COND_P): New flag.
4245         (LOOP_STMT_TOP_UPDATE_P): Likewise.
4246         * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
4247         (can_equal_min_val_p): New static inline function.
4248         (can_equal_max_val_p): Likewise.
4249         (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
4250         new LOOP_STMT semantics.  Use two different strategies depending on
4251         whether optimization is enabled to translate the loop.
4252         (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
4253
4254 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4255
4256         * uintp.adb (UI_From_Dint): Remove useless code.
4257         (UI_From_Int): Likewise.
4258         * uintp.h: Reorder declarations.
4259         (UI_From_gnu): Declare.
4260         (UI_Base): Likewise.
4261         (Vector_Template): Likewise.
4262         (Vector_To_Uint): Likewise.
4263         (Uint_0): Remove.
4264         (Uint_1): Likewise.
4265         * gcc-interface/gigi.h: Tweak comments.
4266         * gcc-interface/cuintp.c (UI_From_gnu): New global function.
4267         * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
4268         overflows.
4269         (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
4270         * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
4271         (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
4272         * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
4273         TYPE_MAX_VALUE.
4274
4275 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4276
4277         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
4278         TYPE_NAME.
4279         * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
4280         (smaller_form_type_p): ...this.  Change parameter and variable names.
4281         (call_to_gnu): Use the nominal type of the parameter to create the
4282         temporary if it's a smaller form of the actual type.
4283         (addressable_p): Return false if the actual type is integral and its
4284         size is greater than that of the expected type.
4285
4286 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4287
4288         * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
4289         * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
4290         (process_attributes): Delete.
4291         (post_error_ne_num): Change parameter name.
4292         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
4293         with -g3.  Remove a couple of obsolete lines.  Minor tweaks.
4294         If type annotating mode, operate on trees to compute the adjustment to
4295         the sizes of tagged types.  Fix long line.
4296         (cannot_be_superflat_p): Tweak head comment.
4297         (annotate_value): Fold local constant.
4298         (set_rm_size): Fix long line.
4299         * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
4300         (Attribute_to_gnu): Fix long line.
4301         <Attr_Size>: Remove useless assertion.
4302         Reorder statements.  Use size_binop routine.
4303         (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
4304         Create local variables for the label and the test.  Tweak comments.
4305         (Subprogram_Body_to_gnu): Reset cfun to NULL.
4306         (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
4307         (process_inlined_subprograms): Integrate into...
4308         (Compilation_Unit_to_gnu): ...this.
4309         (gnat_to_gnu): Fix long line.
4310         (post_error_ne_num): Change parameter name.
4311         * gcc-interface/utils.c (process_attributes): Static-ify.
4312         <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
4313         (create_type_decl): Add comment.
4314         (create_var_decl_1): Process the attributes after adding the VAR_DECL
4315         to the current binding level.
4316         (create_subprog_decl): Likewise for the FUNCTION_DECL.
4317         (end_subprog_body): Do not reset cfun to NULL.
4318         (build_vms_descriptor32): Fix long line.
4319         (build_vms_descriptor): Likewise.
4320         (handle_nonnull_attribute): Likewise.
4321         (convert_vms_descriptor64): Likewise.
4322         * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
4323         (gnat_protect_expr): Fix thinko.
4324
4325 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4326
4327         * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
4328         (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
4329         before translating the top-level node.
4330         (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
4331         <N_Object_Declaration>: Likewise.
4332         <N_Assignment_Statement>: Likewise.
4333         <N_Unchecked_Type_Conversion>: Likewise.
4334         (call_to_gnu): Remove kludge.
4335         (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
4336         associated with user returns to be preserved.
4337         (gnat_to_gnu): Add special code to deal with boolean rvalues.
4338         * gcc-interface/utils2.c (compare_arrays): Set input_location on all
4339         comparisons.
4340         (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
4341         <INDIRECT_REF>: Call build_fold_indirect_ref.
4342
4343 2010-04-15  Joel Sherrill  <joel.sherrill@oarcorp.com>
4344
4345         * g-socket.adb: A target can have multiple missing errno's.  This
4346         will result in multiple errno's being defined as -1.  Because of this
4347         we can not use a case but must use a series of if's to avoid 
4348         a duplicate case error in GNAT.Sockets.Resolve_Error.
4349
4350 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4351
4352         * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
4353         a statement.  Otherwise, if at top-level, push the processing of the
4354         elaboration routine.  In the misaligned case, issue the error messages
4355         again on entry and create the temporary explicitly.  Do not issue them
4356         for CONSTRUCTORs.
4357         For a function call, emit the range check if necessary.
4358         In the copy-in copy-out case, create the temporary for the return
4359         value explicitly.
4360         Do not unnecessarily convert by-ref parameters to the formal's type.
4361         Remove obsolete guards in conditions.
4362         (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
4363         target to call_to_gnu in all cases.
4364         (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
4365         (addressable_p) <CONSTRUCTOR>: Return false if not static.
4366         <COMPOUND_EXPR>: New case.
4367         * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
4368         expression if it has unconstrained array type.
4369         (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
4370         (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
4371         individual basis.
4372
4373 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4374
4375         * gcc-interface/trans.c (gigi): Do not start statement group.
4376         (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
4377         Start statement group and push binding level here...
4378         (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
4379         Do not push fake contexts at top level.  Remove redundant code.
4380         (call_to_gnu): Rename a local variable and constify another.
4381         * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
4382         (set_current_block_context): Set it as the group's block.
4383         (gnat_init_decl_processing): Delete unrelated init code.
4384         (end_subprog_body): Use NULL_TREE.
4385
4386 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4387
4388         * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
4389         side-effects of actual parameters before the call.
4390
4391 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4392
4393         * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
4394         and warning.
4395         (set_rm_size): Reorder and remove obsolete test.
4396
4397 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
4398
4399         * gcc-interface/gigi.h: Reorder declarations and tweak comments.
4400         (gigi): Adjust ATTRIBUTE_UNUSED markers.
4401         * gcc-interface/gadaint.h: New file.
4402         * gcc-interface/trans.c: Include it in lieu of adaint.h.  Reorder.
4403         (__gnat_to_canonical_file_spec): Remove declaration.
4404         (number_names): Delete.
4405         (number_files): Likewise.
4406         (gigi): Adjust.
4407         * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
4408         above change.
4409
4410 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
4411
4412         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
4413         comment.
4414         * gcc-interface/trans.c (process_freeze_entity): Use local copy of
4415         Ekind.  Return early for class-wide types.  Do not compute initializer
4416         unless necessary.  Reuse the tree for an associated class-wide type
4417         only if processing its root type.
4418
4419 2010-04-13  Joel Sherrill  <joel.sherrill@oarcorp.com>
4420
4421         * gsocket.h: Run-time can no longer be built without network
4422         OS headers available.  Changing RTEMS GNAT build procedure to
4423         reflect this and letting run-time build use network .h files.
4424
4425 2010-04-13  Duncan Sands  <baldrick@free.fr>
4426
4427         * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
4428         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
4429
4430 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4431
4432         * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
4433         (parent_name_id): New macro.
4434         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
4435         * gcc-interface/trans.c (gigi): Initialize it.
4436         (lvalue_required_p) <N_Type_Conversion>: New case.
4437         <N_Qualified_Expression>: Likewise.
4438         <N_Allocator>: Likewise.
4439         * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
4440
4441 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4442
4443         * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
4444         (DECL_CONST_ADDRESS_P): New macro.
4445         (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
4446         (SAME_FIELD_P): Likewise.
4447         * gcc-interface/decl.c (constructor_address_p): New static function.
4448         (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
4449         the return value of above function.
4450         (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
4451         passed by reference.
4452         <E_Record_Subtype>: Likewise.
4453         Set TREE_ADDRESSABLE on the type if it passed by reference.
4454         (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
4455         (create_field_decl_from): Likewise.
4456         (substitute_in_type): Likewise.
4457         (purpose_member_field): Use SAME_FIELD_P.
4458         * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
4459         * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
4460         parameter and adjust recursive calls.
4461         <N_Explicit_Dereference>: New case.
4462         <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
4463         Adjust calls to lvalue_required_p.  Do not return the initializer of a
4464         DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
4465         (call_to_gnu): Delay issuing error message for a misaligned actual and
4466         avoid the associated back-end assertion.  Test TREE_ADDRESSABLE.
4467         (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
4468         * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
4469         type is passed by reference.
4470         (convert) <CONSTRUCTOR>: Convert in-place in more cases.
4471         * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
4472         (build_simple_component_ref): Use SAME_FIELD_P.
4473
4474 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4475
4476         * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
4477         (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
4478         front-end's predicate Is_By_Reference_Type.  Use consistent order and
4479         remove ??? comment.  Use original conversion in all cases, if any.
4480         * gcc-interface/utils.c (make_dummy_type): Minor tweak.
4481         (convert): Use local copy in more cases.
4482         <INDIRECT_REF>: Remove deactivated code.
4483         (unchecked_convert): Use a couple of local copies.
4484
4485 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4486
4487         * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
4488         function.
4489         (lvalue_required_p) <N_Attribute_Reference>: Call it.
4490         (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
4491         folding the result only if lvalue_required_for_attribute_p is true.
4492         * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
4493         typed constant to build_component_ref.
4494         (unchecked_convert): Likewise.
4495         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
4496         (build_allocator): Likewise.
4497
4498 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4499
4500         * gcc-interface/utils2.c (build_cond_expr): Take the address and
4501         dereference if the result type is passed by reference.
4502
4503 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4504
4505         * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
4506         (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
4507         goto to the next statement.
4508
4509 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4510
4511         * gcc-interface/gigi.h (maybe_variable): Delete.
4512         (protect_multiple_eval): Likewise.
4513         (maybe_stabilize_reference): Likewise.
4514         (gnat_save_expr): Declare.
4515         (gnat_protect_expr): Likewise.
4516         (gnat_stabilize_reference): Likewise.
4517         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
4518         gnat_stabilize_reference.
4519         (maybe_variable): Delete.
4520         (elaborate_expression_1): Use gnat_save_expr.
4521         * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
4522         (call_to_gnu): Pass NULL to gnat_stabilize_reference.
4523         (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
4524         <N_Slice>: Use gnat_protect_exp.
4525         <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
4526         <N_In>: Use gnat_protect_expr.
4527         Pass NULL to gnat_stabilize_reference.
4528         (build_unary_op_trapv): Use gnat_protect_expr.
4529         (build_binary_op_trapv): Likewise.
4530         (emit_range_check): Likewise.
4531         (emit_index_check): Likewise.
4532         (convert_with_check): Likewise.
4533         (protect_multiple_eval): Move to utils2.c file.
4534         (maybe_stabilize_reference): Merge into...
4535         (gnat_stabilize_reference): ...this.  Move to utils2.c file.
4536         (gnat_stabilize_reference_1): Likewise.
4537         * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
4538         instead of protect_multiple_eval.
4539         * gcc-interface/utils2.c (compare_arrays): Likewise.
4540         (nonbinary_modular_operation): Likewise.
4541         (maybe_wrap_malloc): Likewise.
4542         (build_allocator): Likewise.
4543         (gnat_save_expr): New function.
4544         (gnat_protect_expr): Rename from protect_multiple_eval.  Early return
4545         in common cases.  Propagate TREE_READONLY onto dereferences.
4546         (gnat_stabilize_reference_1): Move from trans.c file.
4547         (gnat_stabilize_reference): Likewise.
4548
4549 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4550
4551         * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
4552         * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
4553         node.  Use the type of the operand to set TREE_READONLY.
4554         * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
4555         _REF node.  Do not overwrite TREE_READONLY.
4556         (call_to_gnu): Rename local variable and fix various nits.  In the
4557         copy-in/copy-out case, build the SAVE_EXPR manually.
4558         (convert_with_check): Call protect_multiple_eval in lieu of save_expr
4559         and fold the computations.
4560         (protect_multiple_eval): Always save entire fat pointers.
4561         (maybe_stabilize_reference): Minor tweaks.
4562         (gnat_stabilize_reference_1): Likewise.  Do not deal with tcc_constant,
4563         tcc_type and tcc_statement.
4564         * gcc-interface/utils.c (convert_to_fat_pointer): Call
4565         protect_multiple_eval in lieu of save_expr.
4566         (convert): Minor tweaks.
4567         (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
4568         (builtin_type_for_size): Call gnat_type_for_size directly.
4569         * gcc-interface/utils2.c (contains_save_expr_p): Delete.
4570         (contains_null_expr): Likewise
4571         (gnat_build_constructor): Do not call it.
4572         (compare_arrays): Deal with all side-effects, use protect_multiple_eval
4573         instead of gnat_stabilize_reference to protect the operands.
4574         (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
4575         save_expr.
4576         (maybe_wrap_malloc): Likewise.
4577         (build_allocator): Likewise.
4578         (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
4579         (gnat_mark_addressable): Rename parameter.
4580
4581 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4582
4583         * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
4584         (TYPE_RETURN_UNCONSTRAINED_P): ...this.
4585         (TYPE_RETURNS_BY_REF_P): Rename into.
4586         (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
4587         (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
4588         * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
4589         (build_return_expr): Likewise.
4590         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
4591         Rename local variables.  If the return Mechanism is By_Reference, pass
4592         return_by_invisible_ref_p to create_subprog_type instead of toggling
4593         TREE_ADDRESSABLE.  Test return_by_invisible_ref_p in order to annotate
4594         the mechanism.  Use regular return for contrained types with non-static
4595         size and return by invisible reference for unconstrained return types
4596         with default discriminants.  Update comment.
4597         * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
4598         returns by invisible reference, turn the RESULT_DECL into a pointer.
4599         Do not handle DECL_BY_REF_P in the CICO case here.
4600         (call_to_gnu): Remove code handling return by target pointer.  For a
4601         function call, if the return type has non-constant size, generate the
4602         assignment with an INIT_EXPR.
4603         (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
4604         If the function returns by invisible reference, build the copy return
4605         operation manually.
4606         (add_decl_expr): Initialize the variable with an INIT_EXPR.
4607         * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
4608         Adjust for renaming of macros.  Copy the node only when necessary.
4609         (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
4610         type, only change DECL_BY_REFERENCE on the RETURN_DECL.
4611         (convert_from_reference): Delete.
4612         (is_byref_result): Likewise.
4613         (gnat_genericize_r): Likewise.
4614         (gnat_genericize): Likewise.
4615         (end_subprog_body): Do not call gnat_genericize.
4616         * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
4617         (build_return_expr): Adjust parameter names, logic and comment.
4618
4619 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4620
4621         * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
4622         if the size is small enough.  Propagate the alignment if there is an
4623         alignment clause on the original array type.
4624         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4625         Deal with under-aligned packed array types.  Copy the size onto the
4626         justified modular type and don't lay it out again.  Likewise for the
4627         padding type built for other under-aligned subtypes.
4628         * gcc-interface/utils.c (finish_record_type): Do not set a default mode
4629         on the type.
4630
4631 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4632
4633         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
4634         alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
4635
4636 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
4639         do not set the result type if there is a specified target and do not
4640         convert the result in any cases.
4641         (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
4642         (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
4643
4644 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4645
4646         * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4647
4648 2010-02-27  Eric Botcazou  <ebotcazou@adacore.com>
4649
4650         PR ada/42253
4651         * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
4652         pointer base types are variant of each other.  Apply special treatment
4653         for null to fat pointer types in all cases.
4654
4655 2010-01-28  Pascal Obry  <obry@adacore.com>
4656
4657         * s-win32.ads: Add some missing constants.
4658
4659 2010-01-28  Vincent Celier  <celier@adacore.com>
4660
4661         * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
4662         Unknown_Package.
4663
4664 2010-01-28  Robert Dewar  <dewar@adacore.com>
4665
4666         * gnat_rm.texi: Minor correction
4667
4668 2010-01-27  Pascal Obry  <obry@adacore.com>
4669
4670         * g-awk.adb: ensure that an AWK session is reusable.
4671
4672 2010-01-27  Vasiliy Fofanov  <fofanov@adacore.com>
4673
4674         * g-regist.adb (For_Every_Key): Fix previous change.
4675         Minor reformatting.
4676
4677 2010-01-27  Thomas Quinot  <quinot@adacore.com>
4678
4679         * lib-writ.ads: Current version of spec for new N (note) ALI lines
4680
4681 2010-01-27  Yannick Moy  <moy@adacore.com>
4682
4683         * a-cdlili.adb (Insert): Correct exception message when cursor
4684         designates wrong list.
4685
4686 2010-01-27  Vincent Celier  <celier@adacore.com>
4687
4688         * gnatcmd.adb: When there is only one main specified, the package
4689         support Switches (<main>) and attribute Switches is specified for the
4690         main, use these switches, instead of Default_Switches ("Ada").
4691
4692 2010-01-27  Robert Dewar  <dewar@adacore.com>
4693
4694         * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4695         implementation.
4696         * exp_disp.adb: Minor reformatting
4697
4698 2010-01-27  Tristan Gingold  <gingold@adacore.com>
4699
4700         * seh_init.c: Use __ImageBase instead of _ImageBase.
4701
4702 2010-01-27  Javier Miranda  <miranda@adacore.com>
4703
4704         * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
4705         profile of interface thunks. The type of the controlling formal is now
4706         the covered interface type (instead of the target tagged type).
4707
4708 2010-01-27  Sergey Rybin  <rybin@adacore.com>
4709
4710         * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4711
4712 2010-01-27  Robert Dewar  <dewar@adacore.com>
4713
4714         * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4715         changed from Expr to N.
4716
4717 2010-01-26  Thomas Quinot  <quinot@adacore.com>
4718
4719         * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4720         * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4721         -gnatzr.
4722
4723 2010-01-26  Vincent Celier  <celier@adacore.com>
4724
4725         * prj-attr.adb: Add new attribute Library_Install_Name_Option
4726         Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
4727         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4728         attributes Run_Path_Option and Library_Install_Name_Option.
4729         * prj.ads (Project_Configuration): Replace component
4730         Run_Path_Origin_Supported with component Run_Path_Origin. Add new
4731         component Library_Install_Name_Option.
4732         * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
4733         Replace Run_Path_Origin_Supported with Run_Path_Origin
4734
4735 2010-01-26  Ed Schonberg  <schonberg@adacore.com>
4736
4737         * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
4738         is not hidden by a homograph declared in another actual package.
4739
4740 2010-01-26  Robert Dewar  <dewar@adacore.com>
4741
4742         * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4743         decisions for pragmas Assert, Check, Precondition, Postcondition if
4744         -gnata set.
4745         * scos.ads: Update comments.
4746         * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
4747         Also remove obsolete code for CT (exit point) SCOs.
4748
4749 2010-01-26  Thomas Quinot  <quinot@adacore.com>
4750
4751         * switch-c.adb: Fix handling of -gnatz*
4752
4753 2010-01-26  Robert Dewar  <dewar@adacore.com>
4754
4755         * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
4756         qualifiers for FOR/WHILE loops
4757         * scos.ads: Use separate type letters F/W for for/while loops
4758
4759 2010-01-26  Robert Dewar  <dewar@adacore.com>
4760
4761         * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
4762         entries per line, one for each statement in the sequence).
4763         * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
4764         size from 100 to 10_000 for SC_Array to avoid any real possibility of
4765         overflow. Output decisions in for loops.
4766         Exclude labels from CS lines.
4767         * scos.ads: Clarify that label is not included in the entry point
4768
4769 2010-01-26  Robert Dewar  <dewar@adacore.com>
4770
4771         * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
4772         format of statement sequence SCO entries (one location/statement).
4773         * put_scos.adb (Put_SCOs): Implement new format of CS lines
4774         * scos.ads: Update comments.
4775         * sem_eval.adb: Minor reformatting.
4776
4777 2010-01-26  Robert Dewar  <dewar@adacore.com>
4778
4779         * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
4780         (Extend_Statement_Sequence): New procedures
4781         (Traverse_Declarations_Or_Statements): New handling for exits.
4782
4783 2010-01-26  Robert Dewar  <dewar@adacore.com>
4784
4785         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4786         Case.
4787
4788 2010-01-26  Robert Dewar  <dewar@adacore.com>
4789
4790         * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4791         * scos.ads: Clarify handling of logical operators
4792
4793 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
4794
4795         * s-tpoben.adb: Update comments.
4796
4797 2010-01-26  Robert Dewar  <dewar@adacore.com>
4798
4799         * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4800         present.
4801
4802 2010-01-26  Robert Dewar  <dewar@adacore.com>
4803
4804         * scos.ads: Clean up documentation, remove obsolete XOR references
4805 2010-01-26  Vincent Celier  <celier@adacore.com>
4806
4807         * gnat_ugn.texi: Complete documentation on the restrictions for
4808         combined options in -gnatxxx switches.
4809         Fix typo.
4810
4811 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
4812
4813         * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4814         a controlled operation, abort is already deferred at this point, so we
4815         need to use Defer_Abort_Nestable.
4816
4817 2010-01-26  Vincent Celier  <celier@adacore.com>
4818
4819         * prj-conf.adb (Get_Config_Switches): Check for a default language for
4820         a project extending a project with no languages.
4821
4822 2010-01-26  Vincent Celier  <celier@adacore.com>
4823
4824         * switch-c.adb (Scan_Front_End_Switches): Take into account options
4825         that follow -gnatef.
4826         Allow -gnateG to be followed by other options.
4827
4828 2010-01-26  Robert Dewar  <dewar@adacore.com>
4829
4830         * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4831         s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4832         reformatting.
4833
4834 2010-01-26  Vasiliy Fofanov  <fofanov@adacore.com>
4835
4836         * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4837         that allows to iterate over all subkeys of a key.
4838
4839 2010-01-26  Ed Falis  <falis@adacore.com>
4840
4841         * sysdep.c: enable NFS for VxWorks MILS
4842         * env.c: enable __gnat_environ for VxWorks MILS
4843         * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4844
4845 2010-01-25  Bob Duff  <duff@adacore.com>
4846
4847         * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4848         is an internally-generated positional aggregate, and the bounds are
4849         already correctly set. We don't want to overwrite those bounds with
4850         bounds determined by context.
4851
4852 2010-01-25  Robert Dewar  <dewar@adacore.com>
4853
4854         * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4855         exp_ch9.adb, g-sechas.ads: Minor reformatting.
4856
4857 2010-01-25  Thomas Quinot  <quinot@adacore.com>
4858
4859         * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4860         integer type) before subtracting 1, otherwise the computation may wrap
4861         (because size_t is modular) and cause the conversion to fail.
4862
4863 2010-01-25  Ed Falis  <falis@adacore.com>
4864
4865         * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4866
4867 2010-01-25  Vincent Celier  <celier@adacore.com>
4868
4869         * prj-attr.adb: New attribute Run_Path_Origin_Required
4870         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4871         attribute Run_Path_Origin_Required.
4872         * prj.ads (Project_Configuration): New component
4873         Run_Path_Origin_Supported.
4874         * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4875
4876 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4877
4878         * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4879         have errors, do not continue resolution of the aggregate.
4880         * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4881         the array type indicates an error.
4882
4883 2010-01-25  Bob Duff  <duff@adacore.com>
4884
4885         * sinfo.ads: Minor comment fixes.
4886
4887 2010-01-25  Bob Duff  <duff@adacore.com>
4888
4889         * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4890
4891 2010-01-25  Arnaud Charlet  <charlet@adacore.com>
4892
4893         * gnatvsn.ads (Current_Year): Update.
4894
4895 2010-01-25  Florian Villoing  <villoing@adacore.com>
4896
4897         * gnat_ugn.texi: Fix typo.
4898
4899 2010-01-25  Thomas Quinot  <quinot@adacore.com>
4900
4901         * scos.ads: Update specification.
4902
4903 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4904
4905         * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4906         enclosing subprogram has no previous spec, attach postcondition
4907         procedure to the defining entity for the body.
4908
4909 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4910
4911         * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4912         initialization procedure of the ancestor part of an extension aggregate
4913         if it is an interface type.
4914
4915 2010-01-25  Vincent Celier  <celier@adacore.com>
4916
4917         * gnatlink.adb (Process_Binder_File): The directory for the shared
4918         version of libgcc in the run path options is found in the subdirectory
4919         indicated by __gnat_default_libgcc_subdir.
4920         * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4921         each platform.
4922
4923 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4924
4925         * sem_prag.adb: More flexible pragma Annotate.
4926
4927 2010-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4928
4929         * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4930         * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4931
4932 2010-01-18  Eric Botcazou  <ebotcazou@adacore.com>
4933
4934         * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4935
4936 2010-01-18  Jan Hubicka  <jh@suse.cz>
4937
4938         PR middle-end/42068
4939         * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4940         unit local variables.
4941
4942 2010-01-17  Laurent GUERBY  <laurent@guerby.net>
4943
4944         * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4945
4946 2010-01-11  Mikael Pettersson  <mikpe@it.uu.se>
4947
4948         * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4949         * system-linux-armeb.ads, system-linux-armel.ads: New files.
4950
4951 2010-01-09  Simon Wright  <simon@pushface.org>
4952
4953         PR ada/42626
4954         * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4955         end-quote.
4956
4957
4958 \f
4959 Copyright (C) 2010 Free Software Foundation, Inc.
4960
4961 Copying and distribution of this file, with or without modification,
4962 are permitted in any medium without royalty provided the copyright
4963 notice and this notice are preserved.