OSDN Git Service

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