OSDN Git Service

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