OSDN Git Service

* gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
4         create integer types with precision 0.
5
6 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
7
8         * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
9         parameters and rewrite comments.  For a derived type, return the
10         setting of its parent type.
11         (gnat_to_gnu_entity): Do an alias set copy for derived types if they
12         are composite.  Adjust calls to above function.
13
14 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
15
16         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
17         return the RM size for padded types.
18
19 2009-10-28  Robert Dewar  <dewar@adacore.com>
20
21         * sem_type.adb: Minor reformatting
22
23 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
24
25         * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
26         suffix for task type bodies.
27
28 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
29
30         * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
31         finalization list if the designated type requires no control actions,
32         to prevent a useless semantic dependence on ada.tags.
33
34 2009-10-28  Bob Duff  <duff@adacore.com>
35
36         * s-fileio.adb: Give more information in exception messages.
37
38 2009-10-28  Robert Dewar  <dewar@adacore.com>
39
40         * gnat_ugn.texi: Document new -gnatyt requirement for space after right
41         paren if next token starts with digit or letter.
42         * styleg.adb (Check_Right_Paren): New rule for space after if next
43         character is a letter or digit.
44
45 2009-10-28  Thomas Quinot  <quinot@adacore.com>
46
47         * s-crtl.ads (System.CRTL.strerror): New function.
48
49 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
50
51         * sem_type.adb: Add guard to recover some type errors.
52
53 2009-10-28  Vincent Celier  <celier@adacore.com>
54
55         * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
56         Add_If_Not_In_List to account to the fact that a directory may be
57         removed from the list. Only remove directory if Removed is True.
58
59 2009-10-28  Gary Dismukes  <dismukes@adacore.com>
60
61         * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
62         part. Put back body of function EOF_Char.
63         * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
64         to EOF_Char.
65
66 2009-10-28  Emmanuel Briot  <briot@adacore.com>
67
68         * prj-tree.adb (Free): Fix memory leak.
69
70 2009-10-28  Thomas Quinot  <quinot@adacore.com>
71
72         * s-fileio.adb: Minor reformatting
73
74 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
75
76         * gcc-interface/Make-lang.in: Update dependencies.
77
78 2009-10-28  Robert Dewar  <dewar@adacore.com>
79
80         * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
81         types.ads: Minor reformatting
82
83 2009-10-28  Tristan Gingold  <gingold@adacore.com>
84
85         * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
86
87 2009-10-28  Thomas Quinot  <quinot@adacore.com>
88
89         * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
90         the operand of the unary minus and ABS operators.
91
92         * sem_type.adb (Covers): A concurrent type and its corresponding record
93         type are compatible.
94         * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
95         attribute reference for the current instance of a protected type while
96         analyzing an access discriminant constraint in a component definition.
97         Such a reference is handled in the corresponding record's init proc,
98         while initializing the constrained component.
99         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
100         corresponding record type, propagate components'
101         Has_Per_Object_Constraint flag.
102         * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
103         For a concurrent type, set up concurrent aspects before initializing
104         components with a per object constrain, because they may be controlled,
105         and their initialization may call entries or protected subprograms of
106         the enclosing concurrent object.
107
108 2009-10-28  Emmanuel Briot  <briot@adacore.com>
109
110         * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
111         of code.
112         (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
113         processing the directories specified explicitly in the project file.
114
115 2009-10-28  Robert Dewar  <dewar@adacore.com>
116
117         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
118         a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
119         to body).
120         (Initialize_Standard_Files): New procedure.
121         * a-tienau.adb: Minor change to make EOF directly visible
122         * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
123         a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
124         * gnat_rm.texi: Add documentation for
125         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
126         * Makefile.rtl: Add entries for
127         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
128
129 2009-10-28  Thomas Quinot  <quinot@adacore.com>
130
131         * exp_ch9.ads: Minor reformatting
132         * sem_ch3.adb: Minor reformatting
133         * sem_aggr.adb: Minor reformatting.
134         * sem_attr.adb: Minor reformatting
135         * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
136         New subprogram.
137         Minor code reorganization/factoring.
138
139 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
140
141         * gcc-interface/decl.c (purpose_member_field): New static function.
142         (annotate_rep): Use it instead of purpose_member.
143
144 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
145
146         * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
147         _Unwind_GetIP if HAVE_GETIPINFO is defined.
148         (db_action_for): Likewise.
149
150 2009-10-27  Robert Dewar  <dewar@adacore.com>
151
152         * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
153         sem_warn.ads: Minor reformatting
154
155 2009-10-27  Robert Dewar  <dewar@adacore.com>
156
157         * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
158         comments.
159
160 2009-10-27  Robert Dewar  <dewar@adacore.com>
161
162         * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
163         reformatting.
164
165 2009-10-27  Ed Schonberg  <schonberg@adacore.com>
166
167         * sem.util.ads, sem_util.adb (Denotes_Same_Object,
168         Denotes_Same_Prefix): New functions to detect overlap between actuals
169         that are not by-copy in a call, when one of them is in-out.
170         * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
171         procedure,  called on a subprogram call to warn when an in-out actual
172         that is not by-copy overlaps with another actual, thus leadind to
173         potentially dangerous aliasing in the body of the called subprogram.
174         Currently the warning is under control of the -gnatX switch.
175         * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
176
177 2009-10-27  Thomas Quinot  <quinot@adacore.com>
178
179         * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
180         visible entities when the formal package doesn't have a box.
181
182         * checks.adb: Minor reformatting.
183
184 2009-10-27  Vincent Celier  <celier@adacore.com>
185
186         * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
187         set Project to Empty_Node.
188
189 2009-10-27  Robert Dewar  <dewar@adacore.com>
190
191         * gnatbind.adb: Minor reformatting
192
193 2009-10-27  Arnaud Charlet  <charlet@adacore.com>
194
195         * exp_aggr.adb: Fix comment.
196
197 2009-10-27  Emmanuel Briot  <briot@adacore.com>
198
199         * prj-err.adb (Error_Msg): take into account continuation lines when
200         computing whether we have a warning.
201
202 2009-10-27  Vasiliy Fofanov  <fofanov@adacore.com>
203
204         * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
205         routine that is designed to create temp file descriptor specifically
206         for redirecting an output stream.
207
208 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
209
210         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
211         processing the parent type, build the COMPONENT_REF for a discriminant
212         with the proper type.
213
214 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
215
216         * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
217         * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
218         Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
219
220 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
221
222         * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
223         the constraint to the type of the discriminant.
224
225 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
226
227         * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
228         TYPE_DECL when a type is padded if there is already one and reset
229         TYPE_STUB_DECL in this case.
230
231 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
232
233         * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
234         main_identifier_node.
235
236 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
237
238         * gcc-interface/utils.c (convert): When converting to a padded type
239         with an inner type of self-referential size, pad the expression before
240         doing the unchecked conversion.
241
242 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
243
244         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
245         sure the element type is consistent.
246
247 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
248
249         * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
250
251 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
252
253         * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
254         (TYPE_IS_FAT_POINTER_P): ...this.
255         (TYPE_THIN_POINTER_P): Rename into...
256         (TYPE_IS_THIN_POINTER_P): ...this.
257         (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
258         (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
259         (TYPE_IS_PADDING_P): Change definition, move old one to...
260         (TYPE_PADDING_P): ...this.
261         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
262         (get_unpadded_type): Likewise.
263         (gnat_to_gnu_component_type): Likewise.
264         (gnat_to_gnu_param): Likewise.
265         (relate_alias_sets): Likewise.
266         (make_packable_type): Likewise.
267         (maybe_pad_type): Likewise.
268         (gnat_to_gnu_field): Likewise.
269         (is_variable_size): Likewise.
270         (annotate_object): Likewise.
271         (validate_size): Likewise.
272         (set_rm_size): Likewise.
273         (make_type_from_size): Likewise.
274         (rm_size): Likewise.
275         * gcc-interface/misc.c (gnat_print_type): Likewise.
276         (gnat_get_alias_set): Likewise.
277         * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
278         (Attribute_to_gnu): Likewise.
279         (call_to_gnu): Likewise.
280         (gnat_to_gnu): Likewise.
281         (add_decl_expr): Likewise.
282         (convert_with_check): Likewise.
283         (addressable_p): Likewise.
284         (maybe_implicit_deref): Likewise.
285         (protect_multiple_eval): Likewise.
286         (gnat_stabilize_reference_1): Likewise.
287         * gcc-interface/utils.c (gnat_pushdecl): Likewise.
288         (finish_record_type): Likewise.
289         (rest_of_record_type_compilation): Likewise.
290         (create_type_decl): Likewise.
291         (gnat_types_compatible_p): Likewise.
292         (build_template): Likewise.
293         (convert_vms_descriptor64): Likewise.
294         (convert_vms_descriptor32): Likewise.
295         (build_unc_object_type_from_ptr): Likewise.
296         (update_pointer_to): Likewise.
297         (convert_to_fat_pointer): Likewise.
298         (convert_to_fat_pointer): Likewise.
299         (convert): Likewise.
300         (remove_conversions): Likewise.
301         (maybe_unconstrained_array): Likewise.
302         (unchecked_convert): Likewise.
303         (handle_vector_type_attribute): Likewise.
304         * gcc-interface/utils2.c (build_binary_op): Likewise.
305         (build_unary_op): Likewise.
306         (build_allocator): Likewise.
307
308 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * exp_dbug.ads: Adjust type names in comments.
311         * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
312         add new IS_COMPONENT_TYPE parameter.  Adjust.  Remove dead code.
313         (gnat_to_gnu_entity): Adjust for above change.
314         (gnat_to_gnu_component_type): Likewise.
315         (gnat_to_gnu_field): Likewise.
316         * gcc-interface/trans.c (call_to_gnu): Likewise.  Do not unnecessarily
317         call max_size.
318         * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
319         * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
320
321 2009-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
322
323         * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
324         * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
325
326 2009-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
327
328         * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
329
330 2009-10-10  Samuel Tardieu  <sam@rfc1149.net>
331
332         * sem_eval.adb: Give a more precise error message.
333
334 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
335
336         PR ada/41383
337         * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
338
339 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
340
341         PR ada/38333
342         * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
343         subprogram to be completed with a "pragma Import".
344
345 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
346
347         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
348         Generate an XVZ variable alongside the XVS type if the size is
349         not constant.
350         (maybe_pad_type): Minor tweak.
351
352 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
353
354         * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
355         doesn't come from source.
356
357 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
358
359         * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
360         unit size for the component size of an array with aliased components.
361         (maybe_pad_type): Do not warn for MAX_EXPR.
362
363 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
364
365         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
366         common code processing the component type into...
367         <E_Array_Subtype>: Likewise.
368         (gnat_to_gnu_component_type): ...this new static function.
369         (maybe_pad_type): Minor cleanup.
370
371 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
372
373         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
374         the handling of constrained discriminated record subtypes.
375         (components_to_record): Declare the type of the variants and of the
376         qualified union.
377         (build_subst_list): Move around.
378         (compute_field_positions): Rename into...
379         (build_position_list): ...this.  Return a TREE_VEC.
380         (annotate_rep): Adjust for above renaming.
381         (build_variant_list): New static function.
382         (create_field_decl_from): Likewise.
383         (get_rep_part): Likewise.
384         (get_variant_part): Likewise.
385         (create_variant_part_from): Likewise.
386         (copy_and_substitute_in_size): Likewise.
387
388 2009-09-28  Olivier Hainque  <hainque@adacore.com>
389
390         PR ada/41100
391         * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
392         Account for observable alignments out of default allocators.
393
394 2009-09-28  Richard Henderson  <rth@redhat.com>
395
396         * gcc-interface/utils.c (gnat_install_builtins): Update call to
397         build_common_builtin_nodes.
398
399 2009-09-26  Eric Botcazou  <ebotcazou@adacore.com>
400
401         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
402         negative size for the array dimensions like in the constrained case.
403         <E_Array_Subtype>: Do not create an artificially non-constant high
404         bound if the low bound is non-constant.  Minor tweaks.
405
406         * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
407         and turn ALIASED into a boolean parameter.  Adjust calls to self.
408         <N_Attribute_Reference>: Return 1 for more attributes.
409         <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
410         <N_Assignment_Statement>: Return 1 for the LHS.
411         (Identifier_to_gnu): Adjust calls to lvalue_required_p.
412         (call_to_gnu): Be prepared for wrapped boolean rvalues.
413
414 2009-09-25  Olivier Hainquqe  <hainque@adacore.com>
415             Eric Botcazou  <ebotcazou@adacore.com>
416
417         * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
418         specific node.  Representative array type for VECTOR_TYPE entities.
419         * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
420         Turn an ARRAY_TYPE entity into a VECTOR_TYPE.   
421         (gnat_types_compatible_p): Handle VECTOR_TYPEs.
422         (convert): Likewise.  Arrange to produce VECTOR_CST out of constant
423         array aggregates for VECTOR_TYPE entities.
424         (unchecked_convert): Likewise.
425         (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
426         converted to the associated TYPE_REPRESENTATIVE_ARRAY.
427         (handle_pure_attribute, handle_sentinel_attribute,
428         handle_noreturn_attribute, handle_malloc_attribute,
429         handle_vector_size_attribute): Replace uses of qE format by qs.
430         Remove GCC_DIAG_STYLE definition.
431         * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
432         vector input to representative array type on entry.
433         <N_Op_Eq, etc>: Likewise.
434         * gcc-interface/gigi.h (maybe_vector_array): Declare.
435         (VECTOR_TYPE_P): New predicate.
436         * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
437
438 2009-09-24  Eric Botcazou  <ebotcazou@adacore.com>
439
440         * gcc-interface/ada.h: Fix outdated comment.
441         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
442         lieu of mark_visited.
443         * gcc-interface/gigi.h (mark_visited): Change type of parameter.
444         (MARK_VISITED): New macro.
445         (gnat_truthvalue_conversion): Delete.
446         * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
447         of mark_visited.
448         (annotate_rep): Fix formatting and tidy.
449         (compute_field_positions): Get rid of useless variable.
450         * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
451         node only once.  Use IN operator for the Nkind in more cases.
452         Remove calls to gnat_truthvalue_conversion.
453         (mark_visited): Change type of parameter and adjust.
454         (mark_visited_r): Dereference TP only once.
455         (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
456         * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
457         (build_binary_op): Remove calls to gnat_truthvalue_conversion.
458         (build_unary_op): Likewise.
459
460 2009-09-24  Dave Korn  <dave.korn.cygwin@gmail.com>
461
462         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
463         a-except% in target pairs list; don't (implicitly) compare whitespace.
464
465 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
466
467         * gcc-interface/utils.c (gnat_pushdecl): Don't set
468         DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
469         nested functions.
470
471 2009-09-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
472
473         * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
474         Bind to getpagesize() in RTEMS 4.10 and newer.
475
476 2009-09-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
477
478         * env.c [__alpha__ && __osf__] (_BSD): Define.
479         * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
480         to const char *.
481
482 2009-09-18  Pascal Obry  <obry@adacore.com>
483
484         * mingw32.h: Activate Unicode support for x86-64 Windows platform.
485
486 2009-09-18  Vadim Godunko  <godunko@adacore.com>
487
488         * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
489
490 2009-09-18  Javier Miranda  <miranda@adacore.com>
491
492         * exp_aggr.adb (Backend_Processing_Possible): Disable backend
493         processing for array aggregates in the VM backend if the array has
494         aliased components.
495
496 2009-09-18  Ed Schonberg  <schonberg@adacore.com>
497
498         * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
499         the prefix indicates a previous semantic error, and this is the first
500         error in the program.
501
502 2009-09-18  Bob Duff  <duff@adacore.com>
503
504         * gnat_ugn.texi: Minor editing.
505
506 2009-09-18  Vincent Celier  <celier@adacore.com>
507
508         * prj.ads, prj.adb (Project_Data): New component
509         Imported_Directories_Switches.
510
511 2009-09-18  Pascal Obry  <obry@adacore.com>
512
513         * mingw32.h: Include standard _mingw.h file.
514         Define _WIN32_WINNT only if not already defined.
515
516 2009-09-18  Thomas Quinot  <quinot@adacore.com>
517
518         * g-socket.adb (Is_Open): New function indicating whether a
519         Selector_Type object is open.
520
521 2009-09-18  Vincent Celier  <celier@adacore.com>
522
523         * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
524         is deleted before creating it.
525
526 2009-09-18  Robert Dewar  <dewar@adacore.com>
527
528         * bindgen.adb: Minor reformatting
529
530 2009-09-18  Arnaud Charlet  <charlet@adacore.com>
531
532         * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
533         s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
534         signal handler is installed.
535         * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
536         tasks if Abort_Task_Interrupt cannot be used.
537
538 2009-09-18  Vincent Celier  <celier@adacore.com>
539
540         * prj-tree.ads: Minor comment update
541
542 2009-09-17  Bob Duff  <duff@adacore.com>
543
544         * g-socket.ads: Document the fact that Close_Selector has no effect on
545         a closed selector.
546         * g-socket.adb: Raise an exception when a Selector that should be open
547         is closed.
548         (Check_Selector): Declare RSig as a constant rather than a renames,
549         less confusing.
550
551 2009-09-17  Robert Dewar  <dewar@adacore.com>
552
553         * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
554         prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
555         prj-tree.ads: Minor reformatting
556
557 2009-09-17  Emmanuel Briot  <briot@adacore.com>
558
559         * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
560         spec.
561         (Do_Autoconf): If the object directory does not exists, create auto.cgpr
562         in a temporary directory instead
563
564 2009-09-17  Bob Duff  <duff@adacore.com>
565
566         * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
567         terminated.
568         (Get_Priority): Correct message for "terminated" case -- it said "null".
569
570 2009-09-17  Robert Dewar  <dewar@adacore.com>
571
572         * exp_ch6.adb: Minor reformatting
573
574 2009-09-17  Emmanuel Briot  <briot@adacore.com>
575
576         * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
577         switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
578         (Project_Node_Tree_Data.Project_Path): New field.
579
580         * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
581
582 2009-09-17  Emmanuel Briot  <briot@adacore.com>
583
584         * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
585         Remove duplicate code.
586         (Prj.Ext): Fix memory leak
587         (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
588         variable. This was previously allowed in the code in
589         Is_External_Assignment, and some tests rely on it
590
591 2009-09-17  Bob Duff  <duff@adacore.com>
592
593         * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
594
595 2009-09-17  Emmanuel Briot  <briot@adacore.com>
596
597         * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
598         makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
599         prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
600         prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
601         Scenario variables are now specific to each project tree loaded in
602         memory.
603         Code clean ups.
604
605 2009-09-17  Javier Miranda  <miranda@adacore.com>
606
607         * exp_disp.adb (Make_DT): Remove wrong line of code that was
608         undocumented and probably added by mistake.
609
610 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
611
612         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
613         conversions between original and packable version of types from
614         the expression.
615
616 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
617
618         * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
619         If a padding type was made for the field, declare it.
620         (components_to_record): Add DEBUG_INFO_P parameter.  Adjust call
621         to gnat_to_gnu_field and call to self.
622         (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
623         <E_Array_Subtype>: Likewise.
624         Adjust calls to gnat_to_gnu_field and components_to_record.
625
626 2009-09-16  Robert Dewar  <dewar@adacore.com>
627
628         * prj-nmsc.adb: Minor reformatting
629
630 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
631
632         * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
633         expression is a by-reference type (tagged or inherently limited)
634         introduce an access type to capture references to the values of each
635         branch of the conditional.
636
637 2009-09-16  Emmanuel Briot  <briot@adacore.com>
638
639         * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
640         (Project_Name_And_Node.Display_Name): new field
641         The display name of a project (as written in the .gpr file) is now
642         computed when the project file itself is parsed, not when it is
643         processed.
644
645 2009-09-16  Thomas Quinot  <quinot@adacore.com>
646
647         * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
648         intrinsics untouched (to be expanded later on by gigi) if an external
649         name has been specified.
650         (Freeze_Entity): Do not generate a default external name for
651         imported subprograms with convention Intrinsic (so that the above code
652         can identify the case where an external name has been explicitly
653         provided).
654
655         * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
656         replaced by something else due to an existing #define clause.
657
658 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
659
660         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
661         Parameter_Association node, created for the extra actual generated for
662         an access parameter of a function that dispatches on result, to prevent
663         double generation of such actuals when the call is rewritten is a
664         dispatching call.
665         * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
666         * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
667         that carry this flag when rewriting the original call as a dispatching
668         call, after propagating the controlling tag.
669
670 2009-09-16  Vincent Celier  <celier@adacore.com>
671
672         * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
673         in the source data.
674         (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
675         source is allowed.
676         (Find_Source_Dirs): New parameter Rank to be recorded with the source
677         directories.
678         (Search_Directories): Call Check_File with the rank of the directory
679         * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
680         (Free): Free also Number_Lists
681         (Reset): Init also Number_Lists
682         * prj.ads (Number_List_Table): New dynamic table for lists of numbers
683         (Source_Data): New component Source_Dir_Rank. Remove component
684         Known_Order_Of_Source_Dirs, no longer needed.
685         (Project_Data): New component Source_Dir_Ranks
686         (Project_Tree_Data): New components Number_Lists
687
688 2009-09-16  Vincent Celier  <celier@adacore.com>
689
690         * gprep.adb (Yes_No): New global constant
691         Unix_Line_Terminators: New global Boolean variable
692         (Process_One_File): Create the out file with a "Text_Translation=" form
693         that depends on the use of option -T.
694         (Scan_Command_Line): Add option -T
695         (Usage): Add line for option -T
696
697 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
698
699         * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
700         predicate that describes a proper subset of
701         Is_Predefined_Dispatching_Operation and excludes stream operations,
702         which can be overridden by the user.
703         * sem_ch6.adb (Create_Extra_Formals): use
704         Is_Predefined_Internal_Operation, so that stream operations get extra
705         formals.
706         * exp_ch6.adb (Prevent double generation of extra actuals in calls to
707         'Input, which may be expanded twice, first as a function call and then
708         as a dispatching call.
709
710 2009-09-16  Thomas Quinot  <quinot@adacore.com>
711
712         * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
713         * g-expect.adb (Set_Up_Child_Communications): Use
714         System.OS_Constants.Target_OS to determine whether running on Windows.
715
716 2009-09-14  Richard Henderson  <rth@redhat.com>
717
718         * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
719
720 2009-09-14  Eric Botcazou  <ebotcazou@adacore.com>
721
722         * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
723         the unconstrained case.
724         * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
725         the encoding.  Do not give a name to the pointer type to the XUT type.
726         * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
727         for fat pointer types, if any.  Make sure DECL_ARTIFICIAL is cleared
728         on nodes with DECL_ORIGINAL_TYPE set.
729         (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
730         for fat pointer types.  Make sure DECL_ARTIFICIAL is cleared.
731
732 2009-09-14  Richard Henderson  <rth@redhat.com>
733
734         * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
735         default_init_unwind_resume_libfunc.
736         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
737         __builtin_eh_pointer.
738         * gcc-interface/utils.c (gnat_install_builtins): Update call
739         to build_common_builtin_nodes.
740
741 2009-09-13  Richard Guenther  <rguenther@suse.de>
742             Rafael Avila de Espindola  <espindola@google.com>
743
744         * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
745         eh_personality_libfunc and lang_eh_runtime_type.
746         (LANG_HOOKS_EH_PERSONALITY): Define.
747         (gnat_eh_personality_decl): New static variable.
748         (gnat_eh_personality): New static function.
749         Include gt-ada-misc.h.
750         * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
751         * gcc-interface/config-lang.in (gtfiles): Add misc.c.
752
753 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
754
755         PR ada/18302
756         * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
757
758 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
759
760         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
761         flow of control.
762         Avoid useless work when processing the Treat_As_Volatile flag.
763
764 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
765
766         * gcc-interface/targtyps.c: Reorder include directives.
767
768 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
769
770         * gcc-interface/targtyps.c: Add missing include for tm_p.h.
771         * gcc-interface/Make-lang.in: Update dependencies.
772
773 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
774
775         * make.adb: Add missing documentation for multilib handling.
776         
777 2009-09-03  Diego Novillo  <dnovillo@google.com>
778
779         * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
780
781 2009-09-02  Richard Henderson  <rth@redhat.com>
782
783         * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
784
785 2009-09-02  Olivier Hainque  <hainque@adacore.com>
786
787         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
788         and uc arguments.
789         
790 2009-09-02  Olivier Hainque  <hainque@adacore.com>
791
792         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
793         Signed_Integer_Type_Definition Scalar_Ranges.
794
795 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
796
797         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
798         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
799         (addressable_p): Return true for more rvalues.
800
801 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
802
803         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
804         POINTER_SIZE to HOST_WIDE_INT.
805
806 2009-09-01  Richard Guenther  <rguenther@suse.de>
807
808         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
809
810 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
811
812         * gcc-interface/trans.c (call_to_gnu): Tidy.
813         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
814         non-constant size but the array itself has constant size.
815         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
816         consistency error.
817         (convert_vms_descriptor32): Likewise.
818
819 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
820
821         * gcc-interface/Makefile.in: Add Ada support for 
822         GNU/kFreeBSD x86_64.
823         * system-freebsd-x86_64.ads: New file based on 
824         system-freebsd-x86.ads.
825
826 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
827
828         * gcc-interface/utils.c (convert): In the padded case, do the final
829         conversion as an unchecked conversion if the underlying types are
830         array types with variable size.
831
832 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
833
834         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
835         as visited.
836         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
837         bounds.
838         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
839         fields.
840         (gnat_gimplify_expr) <DECL_EXPR>: New case.
841
842 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
843
844         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
845         (stack_t): New record type.
846         (sigaltstack): New imported function.
847         (Alternate_Stack): New imported variable.
848         (Alternate_Stack_Size): New constant.
849
850 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
851
852         * a-calend-vms.adb: Fix typo.
853
854 2009-08-17  Tristan Gingold  <gingold@adacore.com>
855
856         * s-taprop-posix.adb: Round up the stack size to avoid failure on
857         Darwin.
858
859 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
860
861         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
862
863 2009-08-17  Vincent Celier  <celier@adacore.com>
864
865         * make.adb (Arguments_Collected): Unneeded, removed
866         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
867         ensure caller does not pass in No_Project.
868         (Compile): Add new parameter Project. Let procedure
869         Collect_Arguments_And_Compile provide the proper value.
870
871         * switch-c.adb: Add documentation for -gnatea and -gnatez
872
873 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
874
875         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
876         clash with Ada 2005 reserved word (interface).
877
878 2009-08-17  Robert Dewar  <dewar@adacore.com>
879
880         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
881         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
882         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
883         (use conditional expressions).
884
885 2009-08-17  Robert Dewar  <dewar@adacore.com>
886
887         * make.adb: Add ??? comment
888         * tbuild.adb: Minor reformatting
889
890 2009-08-17  Thomas Quinot  <quinot@adacore.com>
891
892         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
893         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
894         Use Tbuild.Make_Temporary to create entity for the temporary.
895
896 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
897
898         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
899         and ignore -mieee switch to avoid spawning an extra gcc in this case.
900
901 2009-08-17  Thomas Quinot  <quinot@adacore.com>
902
903         * tbuild.adb: Minor reformatting
904
905 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
906
907         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
908         exist, as is the case for synchronized types, use the type of the
909         discriminal in the parameter specification, to prevent a spurious
910         subtype mismatch in gigi.
911
912 2009-08-17  Robert Dewar  <dewar@adacore.com>
913
914         * prj-env.adb: Minor reformatting
915         * make.adb: Minor reformatting
916         Comment updates
917
918 2009-08-17  Javier Miranda  <miranda@adacore.com>
919
920         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
921
922 2009-08-17  Emmanuel Briot  <briot@adacore.com>
923
924         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
925         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
926         object directories must be present. In the case of gprclean at least,
927         these are optional (if they do not exist there is nothing to clean)
928
929 2009-08-17  Robert Dewar  <dewar@adacore.com>
930
931         * prj-env.adb: Minor reformatting
932         * sem_ch3.adb: Minor reformatting
933
934 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
935
936         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
937         the time zone since VxWorks chose positive values to represent west
938         time zones and negative for east zones.
939
940 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
941
942         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
943         an anonymous access type whose designated type is generic.
944
945 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
946
947         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
948         codepeer mode, friendlier.
949
950 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
951
952         * make.adb: Handle multilib
953         
954 2009-08-10  Vincent Celier  <celier@adacore.com>
955
956         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
957         the temporary file name in the error message when the temporary file
958         cannot be created.
959
960 2009-08-10  Yannick Moy  <moy@adacore.com>
961
962         * gnat_ugn.texi: Fix typo
963
964 2009-08-10  Robert Dewar  <dewar@adacore.com>
965
966         * exp_ch7.adb: Add ??? comment for last change
967
968 2009-08-10  Vincent Celier  <celier@adacore.com>
969
970         * prj-env.adb (Add_To_Buffer): New procedure
971         (Create_Config_Pragmas_File): Write to temporary file in one shot
972         (Create_Mapping_File): Ditto
973         (Set_Ada_Paths): Ditto
974
975 2009-08-10  Vincent Celier  <celier@adacore.com>
976
977         PR ada/17566
978         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
979         between a declaration name and its type.
980
981 2009-08-07  Javier Miranda  <miranda@adacore.com>
982
983         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
984         SCIL node.
985
986 2009-08-07  Robert Dewar  <dewar@adacore.com>
987
988         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
989
990 2009-08-07  Vincent Celier  <celier@adacore.com>
991
992         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
993         specified on the command line and there are switches in the Compiler
994         package of the project file, use these compilation switches to invoke
995         the tool.
996
997 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
998
999         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1000
1001 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1002
1003         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1004         even if not in main unit, to simplify debugging.
1005
1006 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
1007
1008         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1009         * gcc-interface/Make-lang.in: Update dependencies.
1010
1011 2009-08-07  Robert Dewar  <dewar@adacore.com>
1012
1013         * types.ads: Minor reformatting
1014         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1015         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1016         Output_Non_Modified_In_Out_Warnings.
1017         * sem_ch13.adb: Remove ??? comment.
1018
1019 2009-08-07  Vincent Celier  <celier@adacore.com>
1020
1021         * mlib-prj.adb (Build_Library): Include binder generate object file
1022         for SAL when library name is only one character.
1023
1024 2009-08-07  Thomas Quinot  <quinot@adacore.com>
1025
1026         * targparm.adb: Minor reformatting
1027         * sem.adb: Minor reformatting
1028         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1029
1030 2009-08-07  Emmanuel Briot  <briot@adacore.com>
1031
1032         * prj-conf.adb: Remove duplicate directory separator in the output when
1033         an object directory does not exist.
1034
1035 2009-08-07  Robert Dewar  <dewar@adacore.com>
1036
1037         * exp_util.adb: Minor reformatting
1038
1039 2009-08-07  Vincent Celier  <celier@adacore.com>
1040
1041         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1042         length used).
1043
1044 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1045
1046         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1047         detect non-static private components that will violate restriction
1048         No_Implicit_Heap_Allocation.
1049
1050 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
1051
1052         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1053
1054 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1055
1056         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1057         * gcc-interface/utils.c (end_subprog_body): Likewise.
1058         * gcc-interface/trans.c (gigi): Likewise.
1059         (gnat_to_gnu): Likewise.
1060
1061 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
1062
1063         * gnat_ugn.texi: Correct minor texi glitch.
1064
1065 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
1066
1067         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1068         expression has an underlying representation that is an unchecked union,
1069         there is no subtype to build.
1070
1071 2009-07-30  Robert Dewar  <dewar@adacore.com>
1072
1073         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1074         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1075         sem_ch7.adb, adaint.c: Minor reformatting
1076
1077 2009-07-29  Javier Miranda  <miranda@adacore.com>
1078
1079         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1080         moved from the expander to the semantic analyzer to allow the
1081         generation of these internal entities when compiling with no code
1082         generation. Required by ASIS.
1083         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1084         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1085         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1086         (Expand_Freeze_Record_Type): Remove call to
1087         Add_Internal_Interface_Entities because this routine is now called at
1088         early stage --when the freezing node is analyzed.
1089
1090 2009-07-29  Robert Dewar  <dewar@adacore.com>
1091
1092         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1093         exp_disp.adb, g-socket.adb: Minor reformatting
1094
1095 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1096
1097         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1098         attributes have been established, so that they are all inherited by the
1099         class-wide type.
1100         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1101         properly named subtypes of class-wide types.
1102
1103 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1104
1105         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1106         indicators on user-defined operators.
1107
1108 2009-07-29  Vadim Godunko  <godunko@adacore.com>
1109
1110         * g-socket.adb (Receive_Vector): Add comment.
1111
1112 2009-07-29  Javier Miranda  <miranda@adacore.com>
1113
1114         * frontend.adb (Frontend): Code cleanup.
1115         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1116         Rewriten as a procedure because it a new out-mode parameters to
1117         keep up-to-date the controlling tag node in the caller.
1118         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1119         new out-mode parameter to keep up-to-date the controlling tag node in
1120         the caller.
1121         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1122         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1123         package Sem_SCIL.
1124         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1125         available in new package Sem_SCIL.
1126         (Next_Non_SCIL_Node): Ditto.
1127         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1128         package Sem_SCIL.
1129         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1130         plus complete decoration of SCIL dispatching node.
1131         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1132         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1133         package Sem_SCIL.
1134         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1135         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1136         * sem_scil.ads, sem_scil.adb: New files.
1137         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1138         Update dependencies.
1139
1140 2009-07-28  Robert Dewar  <dewar@adacore.com>
1141
1142         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1143         makeutl.adb: Minor reformatting & code reorganization
1144         * sem_ch3.adb: Minor reformatting.
1145         Fix spelling error (constraint for constrain) in error msg.
1146
1147 2009-07-28  Emmanuel Briot  <briot@adacore.com>
1148
1149         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1150         global variable that also exists in makeutl.ads, and that some routines
1151         in that package use already.
1152         (Check): Moved part of the code to makeutl.adb for better sharing with
1153         gprbuild.
1154
1155 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1156
1157         * gcc-interface/Make-lang.in: Update dependencies.
1158
1159 2009-07-28  Emmanuel Briot  <briot@adacore.com>
1160
1161         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1162         importing project does not end up in the list, in the case of extending
1163         projects.
1164         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1165         makeutl.ads, for better sharing with gprbuild.
1166
1167 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1168
1169         * gnat_ugn.texi: Fix typo.
1170
1171 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
1172
1173         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1174         derivation that renames some discriminants and constrain others.
1175         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1176         prefix is a derived untagged type, convert to the root type to conform
1177         to the signature of the protected operations.
1178
1179 2009-07-28  Robert Dewar  <dewar@adacore.com>
1180
1181         * sinfo.ads: Update comments.
1182         * exp_attr.adb: Minor reformatting
1183
1184 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
1185
1186         * sem_aggr.adb (Get_Value): A named association in a record aggregate
1187         should be treated as a modification of the named component, not as a
1188         reference.
1189
1190 2009-07-28  Quentin Ochem  <ochem@adacore.com>
1191
1192         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1193         * prj.ads, prj.adb (Image): Ditto.
1194
1195 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1196
1197         * frontend.adb: Minor reformatting.
1198         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1199         for efficiency.
1200
1201 2009-07-28  Bob Duff  <duff@adacore.com>
1202
1203         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1204         'Address to get a pointer to the protected body wrapper.
1205
1206 2009-07-28  Javier Miranda  <miranda@adacore.com>
1207
1208         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1209         nodes if we are not generating code.
1210         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1211         attribute SCIL_Related_Node of SCIL dispatching nodes.
1212         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1213         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1214         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1215         (SCIL_Entity): Update documentation.
1216         (SCIL_Related_Node): Update documentation.
1217         (SCIL_Controlling_Tag): New attribute.
1218         (SCIL_Target_Prim): Update documentation.
1219         (N_Null_Statement): Remove attributes associated with SCIL nodes.
1220         (N_SCIL_Dispatch_Table_Object_Init): New node.
1221         (N_SCIL_Dispatch_Table_Tag_Init): New node.
1222         (N_SCIL_Dispatching_Call): New node.
1223         (N_SCIL_Tag_Init): New node.
1224         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1225         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1226         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1227         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1228         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1229         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1230         N_SCIL_Dispatching_Call nodes.
1231         * sem.adb (Analyze): No need to analyze SCIL nodes.
1232         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1233         (Next_Non_SCIL_Node): New subprogram
1234         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1235         dispatching nodes.
1236         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1237         dispatching node.
1238         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1239         dispatching node.
1240         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1241         null statement nodes.
1242         (Build_Init_Procedure): Generate new SCIL node.
1243         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1244         node.
1245         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1246         they are currently implemented as special N_Null_Statement nodes.
1247         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1248         procedure call then check if some SCIL node references it and needs
1249         readjustment.
1250         * exp_disp.ads (SCIL_Node_Kind): Removed.
1251         (Adjust_SCIL_Node): New subprogram.
1252         (Find_SCIL_Node): New subprogram.
1253         (Get_SCIL_Node_Kind): Removed.
1254         (New_SCIL_Node): Removed.
1255         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1256         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1257         decoration of its new controlling_tag attribute.
1258         (Get_SCIL_Node_Kind): Removed.
1259         (Find_SCIL_Node): New subprogram.
1260         (Make_Secondary_DT): Generate new SCIL nodes.
1261         (Make_Tags): Generate new SCIL nodes.
1262         (New_SCIL_Node): Removed.
1263         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1264         (Remove_Side_Effects): Check if relocated nodes require readjustment
1265         of some SCIL dispatching node.
1266         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1267
1268 2009-07-28  Robert Dewar  <dewar@adacore.com>
1269
1270         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1271
1272 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1273
1274         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1275
1276 2009-07-28  Vadim Godunko  <godunko@adacore.com>
1277
1278         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1279         not defined by limits.h.
1280
1281         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1282         length and maximum supported length of data vector.
1283
1284 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
1285
1286         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1287         * make.adb: Call Get_Target_Parameters before calling Usage so that
1288         VM_Target and AAMP_On_Target will be set.
1289
1290 2009-07-28  Olivier Hainque  <hainque@adacore.com>
1291
1292         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1293         * gnat_rm.texi: Remove documentation.
1294         * g-sse.ads: Minor reorg along the way.
1295         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1296         * g-ssvety.ads: Minor comment updates.
1297
1298 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1299
1300         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1301         for the new format of the report file.
1302
1303 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1304
1305         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1306
1307 2009-07-28  Pascal Obry  <obry@adacore.com>
1308
1309         * g-expect.adb: Record standard handles only on Windows.
1310
1311 2009-07-27  Emmanuel Briot  <briot@adacore.com>
1312
1313         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1314         Add comments.
1315
1316 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1317
1318         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1319         rule definition the paragraph that explains that generic functions and
1320         functions from generic packages are not checked.
1321
1322 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
1323
1324         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1325         procedure when determining whether to set the Overridden_Operation
1326         field of a subprogram overriding an inherited subprogram.
1327         
1328 2009-07-27  Robert Dewar  <dewar@adacore.com>
1329
1330         * a-except.adb, a-except-2005.ads: Minor reformatting
1331
1332 2009-07-27  Robert Dewar  <dewar@adacore.com>
1333
1334         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1335
1336 2009-07-27  Javier Miranda  <miranda@adacore.com>
1337
1338         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1339         add some documentation explaining why the SCIL nodes must be generated
1340         at that point.
1341
1342 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1343
1344         * a-except.adb: Bind to __builtin_longjmp directly.
1345         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1346         for sjlj variants.
1347         * a-exexpr.adb: Use it.
1348         * a-except-xi.adb: Likewise.
1349         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1350         * raise.h (_gnat_builtin_longjmp): Remove declaration.
1351
1352 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1353
1354         * sem_eval.adb (Compile_Time_Compare): More precise handling of
1355         Known_Valid flag, to prevent spurious range deductions when scalar
1356         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1357
1358 2009-07-27  Robert Dewar  <dewar@adacore.com>
1359
1360         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1361         and code clean up.
1362
1363 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1364
1365         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1366         Ravenscar mode. Error has already been posted on specification.
1367
1368         * sem.adb: Further code clean ups.
1369
1370 2009-07-27  Robert Dewar  <dewar@adacore.com>
1371
1372         * g-sse.ads: Minor reformatting
1373
1374 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1375
1376         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1377         alternate ali extension.
1378         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1379         account Osint.ALI_Suffix.
1380         * osint.ads (ALI_Suffix): Make visible.
1381         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1382         * gnat_ugn.texi: Document new gnatfind --ext= switch.
1383
1384 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1385
1386         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1387         its spec first.
1388
1389 2009-07-27  Javier Miranda  <miranda@adacore.com>
1390
1391         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1392         the dispatching call has is expanded.
1393
1394 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1395
1396         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1397         Is_Known_Valid flag on the temporary created for the value whose
1398         validity is being checked.
1399
1400         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1401         handle properly main units that are package specifications.
1402
1403 2009-07-27  Geert Bosch  <bosch@adacore.com>
1404
1405         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1406         * sem_aux.ads: Fix typo in comment
1407         * sem_util.ads (Is_LHS): Adjust comment to match body
1408
1409 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1410
1411         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1412         rule definition.
1413
1414 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1415
1416         * g-sse.ads, g-ssvety.ads: Update comments.
1417
1418 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1419
1420         * gnat_ugn.texi: Update gnatcheck doc.
1421
1422 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1423
1424         * lib-xref.ads: Allocate/document 'o' char for use by references to
1425         spark 'own' variables.
1426
1427 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
1428
1429         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1430         objects, since these are implicitly referenced by the return statement.
1431         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1432         Is_Return_Object in this procedure, as return objects will never make
1433         it here since they're now marked as Referenced.
1434
1435 2009-07-27  Robert Dewar  <dewar@adacore.com>
1436
1437         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1438
1439 2009-07-27  Robert Dewar  <dewar@adacore.com>
1440
1441         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1442
1443         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1444
1445 2009-07-27  Geert Bosch  <bosch@adacore.com>
1446
1447         * checks.adb (Find_Check): Minor streamlining of logic.
1448         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1449         * debug.adb: Document -gnatdX debug flag
1450         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1451         list information about reads from scalar entities.
1452         Also slightly simplify condition for Expand_Current_Value.
1453         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1454         functions.
1455
1456 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1457
1458         PR bootstrap/40578
1459         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1460         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1461         to these.
1462         (__gnat_stat): Adjust reference to STAT in prototype.
1463         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1464         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1465         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1466         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1467         __gnat_is_writable_file, __gnat_is_executable_file,
1468         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1469         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1470         __gnat_copy_attribs): Adjust all references to the above.
1471         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1472
1473 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1474
1475         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1476         done at the same time, guard against listing a body more than once.
1477
1478 2009-07-23  Robert Dewar  <dewar@adacore.com>
1479
1480         * exp_ch6.adb: Minor reformatting
1481
1482 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1483
1484         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1485         static expression is known valid.
1486         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1487         operands of a subtype with a single value.
1488
1489 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1490
1491         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1492         are in the context of the main unit body.
1493
1494 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1495
1496         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1497         misprint in rule description.
1498
1499 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1500
1501         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1502         test that the object declaration is within an extended return statement
1503         with direct test of whether the declared object associated with the
1504         build-in-place call is a return object, since the enclosing function
1505         might not even be a build-in-place function.
1506
1507 2009-07-23  Robert Dewar  <dewar@adacore.com>
1508
1509         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1510         Minor code reorganization
1511
1512 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1513
1514         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1515         for static analysis, only packed arrays are causing troubles.
1516
1517 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1518
1519         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1520         ancestor part is a call to a limited function with an unconstrained
1521         result subtype unless the aggregate has a null extension type.
1522         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1523         the parent type declaration to avoid blowups on subtype cases.
1524
1525 2009-07-23  Robert Dewar  <dewar@adacore.com>
1526
1527         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1528         comma.
1529
1530         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1531
1532         * s-regexp.adb: Minor reformatting
1533         * scos.ads: Minor reformatting.
1534
1535 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1536
1537         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1538         other similar messages.
1539         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1540         messages/implicit packing in CodePeer mode.
1541         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1542         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
1543         CodePeer mode.
1544
1545 2009-07-23  Pascal Obry  <obry@adacore.com>
1546
1547         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
1548         systems.
1549
1550 2009-07-23  Robert Dewar  <dewar@adacore.com>
1551
1552         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
1553         Minor reformatting.
1554
1555 2009-07-23  Yannick Moy  <moy@adacore.com>
1556
1557         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
1558         pattern.
1559         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
1560         string.
1561         (Raise_Exception): Ditto.
1562
1563 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1564
1565         * g-sse.ads: Simplify comment.
1566
1567 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1568
1569         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
1570         low level internal type definitions for distinct higher level
1571         binding development activities (user type definitions and
1572         operations).
1573         * gnat_rm.texi: Document it.
1574         * g-ssvety.ads: Use it.
1575         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
1576         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
1577         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
1578         for the "may_alias" attribute.
1579
1580 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1581
1582         * scos.ads: Minor typo fix
1583
1584         * gcc-interface/decl.c (validate_alignment): For the case of an
1585         implicit array base type, look for alignment clause on first subtype.
1586
1587 2009-07-23  Robert Dewar  <dewar@adacore.com>
1588
1589         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
1590         with tagged parent if tagged parent is fully repped.
1591
1592 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1593
1594         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
1595         in the context depends on the spec of the main unit, by delaying
1596         processing of the main unit body until all other units have been
1597         processed.
1598
1599 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1600
1601         * a-convec.adb: Add comments about suspicious/subtle code.
1602
1603 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1604
1605         * einfo.ads: Document use of Alias in private overriding
1606
1607 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1608
1609         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
1610         an array type, propagate alignment from first subtype to implicit base
1611         type so that other subtypes (such as the itypes for aggregates of the
1612         type) also receive the expected alignment.
1613
1614         * g-comlin.ads: Minor documentation clarification/rewording. 
1615         * scos.ads: Minor comments update.
1616         * lib-writ.ads: Minor reformatting
1617
1618 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1619
1620         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
1621         of a class-wide interface type that is a return object of a
1622         build-in-place function, bypass the interface-related expansions into
1623         renamings with displacement conversions, etc.
1624         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
1625         for the case where a renaming occurs in a build-in-place context, to
1626         assert that the bypassing of the build-in-place treatment only occurs
1627         in the case of a renaming that is an expansion of a return expression
1628         that is itself a build-in-place function call.
1629
1630 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1631
1632         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
1633         valid candidate interpretation in a prefixed view if it is hidden, but
1634         overrides an inherited operation declared in the visible part.
1635
1636 2009-07-23  Robert Dewar  <dewar@adacore.com>
1637
1638         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1639         division operands to 64-bit at all in any circumstances.
1640
1641 2009-07-23  Robert Dewar  <dewar@adacore.com>
1642
1643         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
1644         checking ranges for mod/rem to see if conditional jump will be
1645         generated.
1646         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
1647         generating special -1 test for rem, generate it whenever both
1648         operands can be negative (match circuit in Sem_Res).
1649         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
1650         destroys memory of positive range.
1651         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
1652         checking ranges for mod/rem to see if conditional jump will be generated
1653
1654 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1655
1656         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
1657         scalar components has non-static bounds, the equivalent aggregate
1658         cannot be built, even if the expression is static, because range checks
1659         will be generated.
1660
1661 2009-07-23  Robert Dewar  <dewar@adacore.com>
1662
1663         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1664         division operands to 64-bit inside a conversion if 64-bit division not
1665         available.
1666
1667 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1668
1669         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
1670
1671 2009-07-23  Javier Miranda  <miranda@adacore.com>
1672
1673         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
1674         (Entity/Set_Entity): not available in N_Null_Statement nodes
1675         (Is_Scil_Node): renamed as Is_SCIL_Node
1676         (Scil_Nkind): renamed as SCIL_Nkind
1677         (Scil_Related_Node): renamed as SCIL_Related_Node
1678         (Scil_Target_Prim): renamed as SCIL_Target_Prim
1679         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
1680         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
1681         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
1682         Update documentation
1683         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
1684         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1685         (New_Scil_Node): Renamed as New_SCIL_Node
1686         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
1687         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1688         (New_Scil_Node): Renamed as New_SCIL_Node
1689         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
1690
1691 2009-07-23  Robert Dewar  <dewar@adacore.com>
1692
1693         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
1694         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
1695         * einfo.adb: Minor reformatting
1696
1697 2009-07-23  Robert Dewar  <dewar@adacore.com>
1698
1699         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
1700         cross-referencing the new related code in
1701         Exp_Ch4.Expand_N_Type_Conversion.
1702         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
1703
1704         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
1705         Add comment.
1706
1707 2009-07-23  Javier Miranda  <miranda@adacore.com>
1708
1709         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
1710         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
1711         * exp_disp.ads (Scil_Node_Kind): Ditto.
1712         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
1713         * exp_ch3.adb (Build_Init_Procedure): Ditto.
1714
1715 2009-07-23  Javier Miranda  <miranda@adacore.com>
1716
1717         * einfo.adb (Component_Type): Add missing assertion.
1718         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
1719         reading attribute Component_Size.
1720         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
1721         before reading attributes Component_Size and Component_Type.
1722         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
1723         before reading attribute Component_Type.
1724
1725 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1726
1727         * gnat_rm.texi: Document the GNAT.SSE units.
1728
1729 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1730
1731         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
1732         not null return if it appears on a subunit.
1733
1734 2009-07-23  Robert Dewar  <dewar@adacore.com>
1735
1736         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
1737         check right away so it does not get skipped for early returns, e.g.
1738         array assignments.
1739         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
1740         left-side unless we really know the value is valid.
1741
1742         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
1743         reformatting. Minor code reorganization. Add comments.
1744
1745 2009-07-23  Robert Dewar  <dewar@adacore.com>
1746
1747         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
1748         complex condition.
1749
1750 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1751
1752         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
1753         with test of coverage, to allow specific type objects in extended
1754         returns of class-wide functions. Remove now-unnecessary special-case
1755         tests that allowed this in certain cases of expanded extended returns.
1756
1757 2009-07-23  Javier Miranda  <miranda@adacore.com>
1758
1759         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
1760         N_Null_Statements (for SCIL nodes).
1761         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
1762         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
1763         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
1764         nodes).
1765         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
1766         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
1767         associated with dispatching call.
1768         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
1769         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
1770         initialization of dispatch tables and initialization of tags.
1771         (New_Scil_Node): New function that creates a new SCIL node.
1772         (Build_Init_Procedure): Add generation of SCIL node associated with the
1773         initialization of tags done in the IP subprogram.
1774
1775 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1776
1777         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
1778         Warnings_Off, do not emit continuation messages.
1779
1780         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
1781         spec.
1782
1783 2009-07-23  Emmanuel Briot  <briot@adacore.com>
1784
1785         * ali.adb: Minor comment update
1786
1787 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
1788
1789         * s-win32.ads (HANDLE): Define to be the same size as address type.
1790         Fix copyright.
1791
1792 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1793
1794         * g-sse.ads: New file. Root of the SSE facilities trees, with
1795         general description and common declarations.
1796         * g-ssvety.ads: New file. Expose user level SSE vector types.
1797         * impunit.adb (Non_Imp_File_Names_95): Register new units.
1798         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1799         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1800
1801 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
1802
1803         * gnat_ugn.texi: Wordsmithing.
1804
1805 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1806
1807         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1808
1809 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1810
1811         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1812         they are already of the base type of the index.
1813
1814 2009-07-22  Brett Porter  <porter@adacore.com>
1815
1816         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1817
1818 2009-07-22  Robert Dewar  <dewar@adacore.com>
1819
1820         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1821         * gnat_ugn.texi: Add documentation for -gnateS switch
1822         * ug_words: Add entry for -gnateS /SCO_OUTPUT
1823         * gcc-interface/Make-lang.in: Update dependencies.
1824
1825         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1826         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1827         complete information for SCO input/output.
1828
1829 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1830
1831         * gnat_ugn.texi: Update doc for some gnatcheck rules.
1832
1833 2009-07-22  Robert Dewar  <dewar@adacore.com>
1834
1835         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1836         contents of SCO tables.
1837         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1838         scos.adb, scos.ads: New files.
1839         * gcc-interface/Make-lang.in: Update dependencies.
1840
1841         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1842         fixes and reformatting.
1843
1844 2009-07-22  Robert Dewar  <dewar@adacore.com>
1845
1846         * g-socket.ads: Minor reformatting
1847
1848 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1849
1850         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1851         include the entity kind for following cases of unreferenced entities:
1852         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1853
1854 2009-07-22  Ed Falis  <falis@adacore.com>
1855
1856         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1857         with taskSuspend.
1858
1859 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1860
1861         * adadecode.c: Make this file compilable outside of GCC.
1862
1863 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1864
1865         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1866         (partially) default-initialized socket sets are handled properly by
1867         clearing their Set component.
1868
1869 2009-07-22  Bob Duff  <duff@adacore.com>
1870
1871         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1872
1873 2009-07-22  Robert Dewar  <dewar@adacore.com>
1874
1875         * gnat_ugn.texi: Minor reformatting
1876
1877 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1878
1879         * errout.adb (Error_Msg): A style message within an instantiation
1880         should not be labelled as an error.
1881
1882 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1883
1884         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1885         in initialization expression if function does not have convention Ada.
1886
1887 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1888
1889         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1890         '--separate-label' to control label layout.
1891
1892 2009-07-22  Robert Dewar  <dewar@adacore.com>
1893
1894         * exp_tss.ads, sem_eval.adb: Minor reformatting
1895
1896 2009-07-22  Bob Duff  <duff@adacore.com>
1897
1898         * exp_dist.adb, exp_dist.ads: Update comments.
1899
1900 2009-07-22  Brett Porter  <porter@adacore.com>
1901
1902         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1903         FPSCR.
1904         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1905
1906 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1907
1908         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1909         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1910         Minor reformatting.
1911         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1912         used poor terminology.
1913
1914 2009-07-22  Robert Dewar  <dewar@adacore.com>
1915
1916         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1917         * sem_eval.adb, exp_tss.adb: Minor comment update.
1918         * stylesw.adb: Code clean up.
1919
1920 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1921
1922         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1923         component size is an exact number of bytes, an array type can have a
1924         size clause that forces packing even though the array type itself is
1925         not bit-packed.
1926
1927 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1928
1929         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1930         if there is a previous entity with the same name in the scope, ignore
1931         it if it is the renaming declaration for a generic package introduced
1932         in instances.
1933
1934 2009-07-22  Nicolas Roche  <roche@adacore.com>
1935
1936         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1937         handler on x86_64 windows.
1938
1939 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1940
1941         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1942         false positives in CodePeer, so ignore this pragma in this mode.
1943
1944 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1945
1946         * sem_util.adb, sem_ch10.adb: Minor reformatting
1947
1948         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1949         special handling for the case of no data received and Item'First =
1950         Stream_Element_Offset'First.
1951         (Last_Index): New subprogram factoring the above special handling
1952         over the various locations where it is required.
1953
1954 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1955
1956         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1957         checks in CodePeer_Mode.
1958         * gcc-interface/Make-lang.in: Update dependencies.
1959
1960 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1961
1962         * sem_aggr.adb: Improve error message.
1963
1964         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1965         of an address representation clause.
1966         * freeze.adb (Freeze_Static_Object): An local imported object is legal
1967         if it has an address clause.
1968
1969 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1970
1971         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1972         expression to insert an elab check using a conditional expression, be
1973         sure to carry the original list of interpretations to the new location.
1974
1975 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1976
1977         * gnat1drv.adb: Fix spelling error.
1978
1979 2009-07-22  Javier Miranda  <miranda@adacore.com>
1980
1981         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1982         at the library level and fix a hidden bug in its implementation: its
1983         functionality for renaming objects was broken because
1984         N_Object_Renaming_Declarations nodes are not a subclass of
1985         N_Declaration nodes (as documented in sinfo.ads).
1986         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1987         check nodes that are actuals of generic instantiations.
1988
1989 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1990
1991         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1992         context of a compilation unit is being analyzed. Used to detect
1993         circularities created by with_clauses that are not detected by the
1994         loading machinery.
1995         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1996         analyzing the context of the current compilation unit, to detect
1997         possible circularities created by with_clauses.
1998
1999 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2000
2001         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2002
2003 2009-07-22  Robert Dewar  <dewar@adacore.com>
2004
2005         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2006         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2007         procedure.
2008         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2009         * gnat_ugn.texi: Add documentation of -gnatyB
2010         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2011
2012 2009-07-22  Robert Dewar  <dewar@adacore.com>
2013
2014         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2015         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2016         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2017         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2018         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2019         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2020         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2021         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2022         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2023         obey short-circuit style rule.
2024
2025 2009-07-20  Bob Duff  <duff@adacore.com>
2026
2027         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2028         instead of "and", because otherwise Parent_Last_Bit is read
2029         uninitialized in the case where it's not a tagged type, or the tagged
2030         parent does not have a complete rep clause.
2031
2032 2009-07-20  Robert Dewar  <dewar@adacore.com>
2033
2034         * stylesw.ads: Minor documentation change.
2035
2036         * types.ads: Minor reformatting
2037
2038 2009-07-20  Javier Miranda  <miranda@adacore.com>
2039
2040         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2041         generating the tag checks associated with dispatching calls.
2042         * exp_disp.adb (Apply_Access_Checks): New subprogram.
2043         (New_Value): This routine was previously local to expand dispatching
2044         calls but it is now used also by Apply_Access_Checks.
2045         (Expand_Dispatching_Calls): Cleanup code because the functionality of
2046         tag checks is now provided by Apply_Access_Checks. 
2047         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2048         case of dispatching calls.
2049
2050 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2051
2052         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2053         CodePeer_Mode.
2054
2055 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
2056
2057         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2058         for VMS, only rewrite the first component of the associated exception's
2059         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2060         and third components  that were being replaced with 'M' and 'S'.
2061
2062 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2063
2064         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2065         Also do not generate error when parsing a spec in CodePeer mode.
2066
2067 2009-07-20  Javier Miranda  <miranda@adacore.com>
2068
2069         * checks.adb (Apply_Access_Check): Avoid checks on availability of
2070         runtime function Offset_To_Top_Ptr when compiling with no tagged
2071         types expansion.
2072         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2073         adding code to the init proc when compiling for VM backends.
2074
2075 2009-07-20  Vincent Celier  <celier@adacore.com>
2076
2077         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2078         account switches -gnatw.?
2079
2080 2009-07-20  Thomas Quinot  <quinot@adacore.com>
2081
2082         * sem_dist.adb, exp_dist.adb: Minor reformatting
2083
2084         * Make-generated.in: New file.
2085
2086         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2087
2088 2009-07-20  Javier Miranda  <miranda@adacore.com>
2089
2090         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2091         subprogram.
2092         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2093         dynamically tagged expression.
2094         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2095         factorizes code.
2096         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2097         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2098
2099 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2100
2101         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2102         CodePeer_Mode is set, to benefit from full front-end expansion
2103         (e.g. generics).
2104
2105 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2106
2107         * sem_res.adb: Add guard.
2108
2109         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2110         for possible attribute definition of External_Tag, in case clause
2111         appears in the private part of a package.
2112
2113 2009-07-20  Jerome Guitton  <guitton@adacore.com>
2114
2115         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2116
2117 2009-07-20  Vadim Godunko  <godunko@adacore.com>
2118
2119         * a-coorma.adb: Minor reformatting.
2120
2121 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2122
2123         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2124         access return types.
2125         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2126         provide an itype reference to gigi to force elaboration of the subtype
2127         at the proper point.
2128
2129 2009-07-20  Tristan Gingold  <gingold@adacore.com>
2130
2131         * g-expect.adb: Avoid closeing already closed handle.
2132
2133 2009-07-20  Robert Dewar  <dewar@adacore.com>
2134
2135         * sprint.adb (Write_Subprogram_Name): New procedure to output
2136         subprogram name with possible preceding $ (replaces
2137         Note_Implicit_Run_Time_Call).
2138
2139 2009-07-20  Robert Dewar  <dewar@adacore.com>
2140
2141         * vms_data.ads: Minor reformatting
2142
2143         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2144         applies to base type.
2145         (Parent_Subtype): Now allowed on record subtype, applies to base type
2146         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2147         for case of fully repped tagged type.
2148         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2149         tag save/restore for fully repped tagged type case.
2150         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2151         * fe.h (Is_Fully_Repped_Tagged_Type): New function
2152         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2153         overlap of tagged type components with parent type if parent type is
2154         fully repped.
2155         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2156
2157         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2158         comparisons.
2159         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2160         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2161
2162         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2163         logical operators (AND/OR/XOR), not comparison operators.
2164
2165         * sprint.ads: Minor reformatting
2166
2167 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2168
2169         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2170         intrinsics, check that argument is a string literal, rather than
2171         checking for staticness.
2172
2173 2009-07-20  Robert Dewar  <dewar@adacore.com>
2174
2175         * sem_ch13.adb: Minor reformatting
2176
2177         * einfo.ads: Minor reformatting
2178         Component_Bit_Offset is no longer considered obsolescent
2179
2180 2009-07-20  Nicolas Roche  <roche@adacore.com>
2181
2182         * a-calend.adb: Redefine time_t as signed integer with same size as
2183         Address type.
2184         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2185         Address type
2186         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2187         long
2188
2189 2009-07-20  Javier Miranda  <miranda@adacore.com>
2190
2191         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2192         constructors that have anonymous access type formals.
2193
2194         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2195         class-wide arguments in case of imported C++ subprograms.
2196
2197         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2198
2199 2009-07-20  Sergey Rybin  <rybin@adacore.com>
2200
2201         * vms_data.ads: Update qualifiers.
2202
2203 2009-07-20  Robert Dewar  <dewar@adacore.com>
2204
2205         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2206         reformatting
2207
2208 2009-07-17  Richard Guenther  <rguenther@suse.de>
2209
2210         PR c/40401
2211         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2212         state.  Remove unused parameter.
2213         (gnat_gimplify_function): Do not gimplify here.
2214         Fold into its only caller and remove.
2215         (gnat_builtin_function): Adjust for end_subprog_body signature change.
2216         (gnat_write_global_declarations): Also finalize the CU.
2217         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2218         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2219         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2220         change.
2221         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2222
2223 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
2224
2225         * gcc-interface/Make-lang.in: Update dependencies
2226
2227         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2228
2229 2009-07-15  Robert Dewar  <dewar@adacore.com>
2230
2231         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2232         N_Label. Remove SCO table entry for entry point (not used).
2233
2234         * par_sco.ads: Remove SCO entry point type (not used)
2235
2236         * switch.adb: Minor code clean up.
2237
2238 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2239
2240         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2241
2242 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2243
2244         * gnatls.adb: Minor reformatting
2245
2246         * gnatcmd.adb: Minor code reorganization
2247
2248 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2249
2250         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2251         determine whether a component of a private type has a composite type.
2252
2253 2009-07-15  Robert Dewar  <dewar@adacore.com>
2254
2255         * sem_ch10.adb: Minor reformatting throughout
2256         Minor code reorganization (put nested subprograms in alpha order)
2257
2258 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2259
2260         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2261         when compiling a call to a protected function that returns a controlled
2262         object.
2263
2264 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
2265
2266         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2267         one. Add task locking and unlocking around the critical region which
2268         mentions localtime_r and global variable timezone for various targets.
2269         Comment reformatting.
2270
2271 2009-07-15  Robert Dewar  <dewar@adacore.com>
2272
2273         * gnat_rm.texi: Document s-ststop.ads
2274
2275         * impunit.ad: (Map_Array): New table of alternative names
2276         (Get_Kind_Of_Unit): Return possible suggested alternative name
2277
2278         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2279         alternative name.
2280
2281         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2282         alternative unit if an implementation unit is with'ed.
2283
2284 2009-07-15  Robert Dewar  <dewar@adacore.com>
2285
2286         * gnat_ugn.texi: Minor updates.
2287
2288         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2289
2290 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2291
2292         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2293         conditions of a derived boolean type.
2294         Minor reformatting
2295
2296 2009-07-15  Robert Dewar  <dewar@adacore.com>
2297
2298         * gnat1drv.adb: Initialize SCO tables
2299
2300         * par-load.adb: Call SCO_Record for main unit spec
2301
2302         * par.adb: Make call to SCO_Record for main unit
2303
2304         * par_sco.adb (Unit_Table): Change format to facilitate sort
2305         (Process_Decisions): New procedure with list argument
2306         (Traverse_Generic_Package_Declaration): New procedure
2307         (Initialize): New procedure, replaces Init
2308         (SCO_Output): Sort unit table before output
2309         (SCO_Record): Avoid duplications
2310         (SCO_Record): Handle remaining cases of units
2311         (Traverse_Declarations_Or_Statements): Handle generics
2312
2313         * par_sco.ads (Initialize): New peocedure (replaces Init)
2314
2315         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2316         subunit.
2317
2318 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
2319
2320         * debug.adb: Add -gnatd.J switch for now to support scil generation in
2321         parallel. Add missing doc for -gnatd.I and -gnatd.O
2322
2323 2009-07-15  Robert Dewar  <dewar@adacore.com>
2324
2325         * lib-load.adb: Minor reformatting
2326
2327         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2328
2329 2009-07-15  Robert Dewar  <dewar@adacore.com>
2330
2331         * par.adb: Minor reformatting
2332         Add ??? comment for possible bad comment
2333
2334         * par-ch10.adb: Minor reformatting
2335
2336 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2337
2338         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2339         is a literal of a derived boolean type, it appears as an unchecked
2340         conversion. Retrieve actual value from expression of conversion.
2341
2342 2009-07-15  Robert Dewar  <dewar@adacore.com>
2343
2344         * sem_ch3.adb: Minor reformatting
2345
2346         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2347         lib-writ.ads, lib-writ.adb: Minor reformatting.
2348         Fix problem with SCO format in ALI files
2349
2350 2009-07-15  Robert Dewar  <dewar@adacore.com>
2351
2352         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2353         exp_aggr.adb: Minor code reorganization (better calling sequence for
2354         Make_Temporary).
2355
2356 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2357
2358         * opt.ads: Minor comment edits
2359
2360 2009-07-15  Tristan Gingold  <gingold@adacore.com>
2361
2362         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2363         needed.
2364
2365 2009-07-15  Robert Dewar  <dewar@adacore.com>
2366
2367         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2368         information.
2369
2370         * lib-writ.ads: Document addition of SCO lines to ALI file
2371
2372         * par_sco.ads, par_sco.adb: New files.
2373
2374         * opt.ads (Generate_SCO): New switch
2375
2376         * par.adb (Par): Call SCO_Record to record SCO information
2377
2378         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2379
2380         * switch-c.adb: Recognize -gnateS to generate SCO information
2381
2382         * usage.adb: Add line for -gnateS
2383
2384         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2385
2386 2009-07-15  Robert Dewar  <dewar@adacore.com>
2387
2388         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2389         reformatting.
2390
2391 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2392
2393         * g-socthi-mingw.adb: Minor comment addition
2394
2395         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2396
2397 2009-07-15  Robert Dewar  <dewar@adacore.com>
2398
2399         * g-htable.ads, s-htable.ads: Minor reformatting
2400
2401 2009-07-15  Robert Dewar  <dewar@adacore.com>
2402
2403         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2404         new switch -gnatw.g.
2405         (Set_GNAT_Mode_Warnings): New procedure.
2406
2407         * lib-xref.adb: Minor reformatting
2408
2409 2009-07-15  Robert Dewar  <dewar@adacore.com>
2410
2411         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2412         Minor code reorganization
2413
2414 2009-07-14  Taras Glek  <tglek@mozilla.com>
2415             Rafael Espindola  <espindola@google.com>
2416
2417         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2418         installing plugin headers.
2419
2420 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2421
2422         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2423         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2424         and link it to the expression whose value it captures.
2425
2426 2009-07-13  Robert Dewar  <dewar@adacore.com>
2427
2428         * output.adb: Minor comment addition for last change
2429
2430         * sinfo.ads: Minor reformatting
2431
2432 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2433
2434         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2435         spawn failed like on all other targets.
2436
2437 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2438
2439         * exp_ch7.adb: Indicate origin of temporary for transient expression.
2440
2441 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2442
2443         * s-oscons-tmplt.c: Add comment.
2444
2445 2009-07-13  Robert Dewar  <dewar@adacore.com>
2446
2447         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2448         reformatting. Minor code reorganization (add 9 argument version of
2449         Nkind_In).
2450
2451         * impunit.adb: Remove s-os_lib from list of system extensions.
2452
2453         * sem_util.ads: Minor reformatting
2454
2455         * output.adb: Add warnings off/on around System.OS_Lib.
2456
2457 2009-07-13  Bob Duff  <duff@adacore.com>
2458
2459         * exp_dist.adb: Minor comment updates.
2460
2461 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
2462
2463         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2464         several references to CodePeer.
2465
2466 2009-07-13  Bob Duff  <duff@adacore.com>
2467
2468         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2469         Build_TypeCode_Function_All): Do not recurse if the type is the base
2470         type.
2471
2472 2009-07-13  Robert Dewar  <dewar@adacore.com>
2473
2474         * exp_ch4.adb: Minor comment change
2475
2476 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2477
2478         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2479         type of iteration, to prevent spurious warnings.
2480
2481 2009-07-13  Nicolas Roche  <roche@adacore.com>
2482
2483         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2484         included.
2485
2486 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2487
2488         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2489         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2490         Generate_SCIL.
2491         (CodePeer_Mode): New -gnatC switch.
2492         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2493         CodePeer_Mode.
2494
2495 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
2496
2497         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2498         integer bound forces the check if it is compared to its subtype range.
2499
2500 2009-07-13  Robert Dewar  <dewar@adacore.com>
2501
2502         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2503         prj-strt.ads: Minor reformatting
2504
2505 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2506
2507         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2508         set the type of the From_Any call to the base type.
2509
2510 2009-07-13  Doug Rupp  <rupp@adacore.com>
2511
2512         * symbols-processing-vms-ia64.adb (Process): Add variables and
2513         constants to retrieve and check for symbol visibility.
2514
2515 2009-07-13  Javier Miranda  <miranda@adacore.com>
2516
2517         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2518         the identical type we remove the conversion completely because
2519         it is useless.
2520
2521 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2522
2523         * prj-err.adb (Error_Msg): One more case where a message should be
2524         considered as a warning.
2525
2526         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2527
2528 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2529
2530         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2531         calling stubs in the (library level) scope of the RCI locator, where it
2532         is attached, not in the caller's scope.
2533
2534 2009-07-13  Javier Miranda  <miranda@adacore.com>
2535
2536         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2537         interface object declarations we delay the generation of the equivalent
2538         record type declarations until its expansion because there are cases in
2539         which they are not required.            
2540
2541         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2542
2543         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2544         addition of assertion.
2545
2546         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
2547         interface types require no equivalent constrained type declarations
2548         because the expanded code only references the tag component associated
2549         with the interface.
2550         (Find_Interface_Tag): Improve management of interfaces that are
2551         ancestors of tagged types.
2552
2553         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
2554         class-wide object declarations to add missing support to statically
2555         displace the pointer to the object to reference the tag component
2556         associated with the interface.
2557
2558         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
2559         auxiliary types associated with user-defined dispatching calls if the
2560         type has no user-defined primitives.
2561
2562 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2563
2564         * mingw32.h: Make it explicit that we need XP or later.
2565
2566         * initialize.c: Remove useless extern symbol declaration.
2567
2568         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
2569         code reuse in expect.c.
2570
2571         * adaint.c: Changes throughout the Windows section to redesign storage
2572         of the child process list and the process identification.
2573
2574         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
2575         for interfacing, fix errors.
2576         (__gnat_expect_portable_execvp): use function in adaint.c
2577
2578 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2579
2580         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
2581         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
2582         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
2583         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
2584         (Prj.Nmsc.Report_Error): Removed, no longer needed.
2585         Always use Prj.Err.Report_Message.
2586
2587 2009-07-13  Robert Dewar  <dewar@adacore.com>
2588
2589         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
2590         & comment edits.
2591
2592 2009-07-13  Robert Dewar  <dewar@adacore.com>
2593
2594         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
2595         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
2596
2597 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2598
2599         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
2600         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
2601         Ada_Prj_Include_File_Set): Removed, since not needed
2602         Code clean up.
2603
2604 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2605
2606         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
2607         Analyze_Membership_Op.
2608
2609         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
2610         Resolve_Membership_Op.
2611
2612         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
2613         Expand_N_In.
2614
2615 2009-07-13  Robert Dewar  <dewar@adacore.com>
2616
2617         * clean.adb: Minor reformattting
2618
2619 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2620
2621         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
2622         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
2623         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
2624         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
2625         and attributes in a project tree.
2626         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
2627         Remove last remaining mode-specific code (ada_only or
2628         multi_language). This was duplicating code
2629         (Get_Mode, Set_Mode): removed, no longer used.
2630         (Initialize_Project_Path): all tools will now take into account both
2631         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
2632         Remove some global variables and subprograms no longer used
2633         Make temporary files tree-specific, to avoid interferences between
2634         trees loaded in memory at the same time.
2635         (Prj.Delete_Temporary_File): new subprogram
2636         (Object_Paths, Source_Paths): fields no longer stored in the project
2637         tree, since they are only needed locally in Set_Ada_Paths.
2638         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
2639         effect in practice.
2640         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
2641         by local variables in the appropriate subprograms
2642         (Has_Foreign_Sources): removed.
2643
2644         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
2645
2646 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2647
2648         * gnat1drv.adb (Adjust_Global_Switches): No longer set
2649         Back_Annotate_Rep_Info in inspector mode.
2650         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
2651
2652         * opt.ads: Update comment.
2653
2654 2009-07-13  Robert Dewar  <dewar@adacore.com>
2655
2656         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
2657         prj.ads: Minor reformatting and code reorganization.
2658
2659         * par-ch3.adb (Check_Restricted_Expression): New procedure
2660
2661 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2662
2663         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
2664         attribute into a call of the corresponding suprogram, create extra
2665         formals for the subprogram, because it may be a renaming whose
2666         analysis does not create extra formals.
2667
2668 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2669
2670         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2671         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2672         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
2673         prj-tree.ads: Minor reformatting.
2674         (Processing_Flags): new record to encapsulate the set of common
2675         parameters to several subprograms in the project manager.
2676         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
2677         Remove the need for the Current_Dir parameter in subprograms.
2678         (Look_For_Sources): minor refactoring, now that we no longer need to
2679         share subprograms between the two Ada_Only and Multi_Language modes
2680         (Processing_Flags): New field Error_On_Unknown_Language.
2681         Merge tests for library project between gnatmake and gprbuild.
2682
2683 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2684
2685         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
2686         Minor reformatting.
2687
2688 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2689
2690         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
2691         than units.
2692
2693 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2694
2695         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
2696         Write,Input,Output} from private view to full view.
2697
2698         * sem_type.adb, sem_type.ads: Minor reformatting
2699
2700 2009-07-13  Nicolas Setton  <setton@adacore.com>
2701
2702         * exp_dbug.ads: Add documentation note on the utility of
2703         DW_AT_GNAT_encoding for IDEs.
2704
2705 2009-07-13  Robert Dewar  <dewar@adacore.com>
2706
2707         * g-socthi-vxworks.adb: Minor reformatting
2708
2709         * gnatcmd.adb: Minor reformatting
2710
2711 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2712
2713         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
2714         removed, not used anymore.
2715         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
2716         New subprogram, implements copy of an Any value into a limited object.
2717         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
2718         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
2719         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
2720         of parameters of a limited type, use the above new subprogram.
2721
2722 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2723
2724         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
2725         Location.
2726         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
2727         allocated space.
2728         (Error_Report): Remove global variable, replaced by parameters.
2729
2730 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2731
2732         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
2733         standard sendto(2) interface for connected sockets (passing a null
2734         destination address). Use send(2) instead for that case.
2735
2736 2009-07-13  Pascal Obry  <obry@adacore.com>
2737
2738         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
2739
2740 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2741
2742         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2743         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
2744         variables and tables in prj-nmsc.adb.
2745         (Tree_Processing_Data): Renames Processing_Data, some new fields added
2746         (Project_Processing_Data): New record
2747         Simplify/unify check for missing sources.
2748
2749 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2750
2751         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
2752         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2753         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
2754         prj-tree.ads (Immediate_Directory_Of): Removed.
2755         (Prj.Pars): Now parse the project simulating a default config file.
2756         (Add_Default_GNAT_Naming_Scheme): New subprogram
2757         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
2758         Remove gnatmake-specific parsing of source files.
2759         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
2760         the error itself to provide more precise diagnostics.
2761         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
2762         a unit belongs to several projects.
2763         (Copy_Interface_Sources): Search the full path of files to copy in the
2764         list of sources of the application rather than in the list of units.
2765         (Parse_Project_And_Apply_Config): Do not reset the name of the main
2766         project file.
2767         (Check_File): Use htables to find out whether a source is duplicated.
2768         (Add_Source): check whether the source or unit were already seen earlier
2769
2770         * gcc-interface/Makefile.in: Update gnatmake dependencies.
2771
2772 2009-07-13  Robert Dewar  <dewar@adacore.com>
2773
2774         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
2775         expression if extensions permitted.
2776
2777         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
2778         set tests).
2779         (P_Relation): Use P_Membership_Test
2780
2781         * par.adb (P_Membership_Test): New procedure (implement membership set
2782         tests).
2783
2784         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2785
2786         * sprint.adb (Sprint_Node): Handle set form for membership tests.
2787
2788 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2789
2790         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2791         Do not attempt to generate stubs for predefined primitives of
2792         synchronized interfaces.
2793         (Add_Stub_Type): Factor some code from the PCS-specific variants of
2794         Build_Stub_Type.
2795
2796 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2797
2798         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2799         Controlling_Result flag from the operation they override.
2800
2801 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2802
2803         * gcc-interface/Make-lang.in: Update dependencies
2804
2805 2009-07-13  Robert Dewar  <dewar@adacore.com>
2806
2807         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2808         details on unsupported constructs.
2809
2810         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2811         unconditionally.
2812
2813         * s-trafor-default.adb: Correct some warnings
2814
2815         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2816         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2817         Minor reformatting.
2818
2819         * par-ch4.adb (Conditional_Expression): Capture proper location for
2820         conditional expression, should point to IF.
2821
2822         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2823         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2824         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2825         reorganization (use conditional expressions).
2826
2827 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2828
2829         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2830         build-in-place function that returns an inherently limited type (not
2831         just a task type) create proper object declaration so that extra
2832         build-in-place actuals are properly added to the call.
2833
2834 2009-07-13  Robert Dewar  <dewar@adacore.com>
2835
2836         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2837
2838         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2839
2840         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2841
2842         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2843         Warn_On_Suspicious_Modulus_Value.
2844
2845         * ug_words: Add entries for -gnatw.m/-gnatw.M.
2846
2847         * usage.adb: Add lines for -gnatw.m/.M switches.
2848
2849         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2850
2851 2009-07-13  Javier Miranda  <miranda@adacore.com>
2852
2853         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2854         reading the Is_Interface attribute of the dispatching type.
2855
2856 2009-07-13  Robert Dewar  <dewar@adacore.com>
2857
2858         * a-convec.adb: Minor code reorganization (use conditional expressions)
2859
2860 2009-07-13  Robert Dewar  <dewar@adacore.com>
2861
2862         * freeze.adb (Check_Suspicious_Modulus): New procedure.
2863
2864 2009-07-13  Robert Dewar  <dewar@adacore.com>
2865
2866         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2867         warning).
2868
2869         * par-ch4.adb: Minor reformatting
2870
2871 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2872
2873         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2874         => Is_Atomic_Aggregate
2875
2876 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2877
2878         * prj-nmsc.adb: Avoid traversing the list of source files if
2879         we have already processed all locally removed files.
2880
2881 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
2882
2883         * gnat_ugn.texi: Fix typo.
2884
2885 2009-07-13  Robert Dewar  <dewar@adacore.com>
2886
2887         * freeze.adb: Minor reformatting
2888         Minor code reorganization (use Nkind_In)
2889
2890         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2891
2892 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2893
2894         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2895         local variable and do not test it in Compile_Time_Bad_Alignment.
2896         Do not issue size or alignment warnings for the X'Address form.
2897         * sem_util.ads (Find_Overlaid_Object): Delete.
2898         (Find_Overlaid_Entity): New procedure.
2899         * sem_util.adb (Find_Overlaid_Object): Rename to...
2900         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
2901         whether the address is offseted within the overlaid entity.
2902         (Has_Compatible_Alignment): Track the offset globally instead of
2903         passing it to Check_Offset.  For an indexed component, compute the
2904         full offset when possible.  If the resulting offset is zero, only
2905         check the prefix.
2906         (Check_Offset): Delete.
2907         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2908         (Address_Aliased_Entity): Delete.
2909         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2910         Find_Overlaid_Entity to find the overlaid entity and the offset.
2911         Adjust throughout for above change.
2912         (Validate_Address_Clauses): Always use attributes of entities, not of
2913         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
2914         if the address is offseted to warn about incompatible alignments.
2915         * gcc-interface/gigi.h (annotate_object): Declare.
2916         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2917         entity.  Call annotate_object instead of annotating manually objects.
2918         (annotate_object): New function.
2919         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2920         at the end.
2921
2922 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2923
2924         * gcc-interface/ada-tree.h: Minor reorganization.
2925         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2926         (gnat_print_type): Likewise.
2927
2928 2009-07-11  Thomas Quinot  <quinot@adacore.com>
2929
2930         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2931         Lvalue -> lvalue
2932
2933         * exp_ch6.adb: Minor reformatting
2934
2935 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
2936
2937         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2938         account possible type qualification to determine whether aggregate
2939         needs a target temporary to respect atomic type or object.
2940
2941         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2942         Expand_Atomic_Aggregate.
2943
2944 2009-07-11  Emmanuel Briot  <briot@adacore.com>
2945
2946         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2947         algorithm.
2948         (Excluded_Sources_Htable): No longer a global table.
2949         Change error message to indicate which files are illegal in the list
2950         of excluded files, as opposed to only the location in the project
2951         file.
2952         (Find_Source): New subprogram.
2953
2954 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2955
2956         * exp_ch7.adb: Update comments.
2957
2958 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2959
2960         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2961         clause if -gnatI is set instead of crashing.
2962
2963 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2964
2965         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2966         Additional work to remove redundant successive raise statements, in
2967         this case access checks.
2968
2969 2009-07-10  Vincent Celier  <celier@adacore.com>
2970
2971         * make.adb (Compile): Always create a deep copy of the mapping file
2972         argument (-gnatem=...) as it may be deallocate/reallocate by
2973         Normalize_Arguments.
2974
2975 2009-07-10  Javier Miranda  <miranda@adacore.com>
2976
2977         * einfo.adb (Directly_Designated_Type): Add assertion.
2978         
2979         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2980         access types before using attribute Directly_Designated_Type.
2981
2982 2009-07-10  Emmanuel Briot  <briot@adacore.com>
2983
2984         * prj.ads: Minor typo fix
2985
2986 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2987
2988         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2989         special treatment.
2990
2991         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2992         subprogram is a function call, resolve properly, to ensure that extra
2993         actuals are added as needed.
2994
2995 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2996
2997         * sem_aggr.adb: Minor comments editing
2998
2999         * exp_tss.adb, exp_ch3.adb: Minor reformatting
3000
3001 2009-07-10  Robert Dewar  <dewar@adacore.com>
3002
3003         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3004
3005         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3006         types.
3007
3008         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3009         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3010         case of conditional expressions that may not be elaborated.
3011
3012         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3013         conditional expression where we may not execute then then or else
3014         branches.
3015
3016 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
3017
3018         * i-cexten.ads (bool): New type.
3019
3020 2009-07-10  Robert Dewar  <dewar@adacore.com>
3021
3022         * sinfo.ads (N_Short_Circuit): New definition
3023         
3024         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3025         treepr.adb: Minor code reorganization (use N_Short_Circuit)
3026
3027 2009-07-10  Javier Miranda  <miranda@adacore.com>
3028
3029         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3030         non-tagged record types.
3031
3032         * sem_prag.adb
3033         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3034         with non-tagged types. Required to import C++ classes that have no
3035         virtual primitives.
3036         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3037         returning non-tagged types. For backward compatibility, if the
3038         constructor returns a class wide type we internally change the
3039         returned type to the corresponding non class-wide type.
3040
3041         * sem_aggr.adb
3042         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3043         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3044         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3045         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3046
3047         * sem_ch3.adb
3048         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3049
3050         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3051
3052         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3053
3054         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3055
3056         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3057         cleanup.
3058         
3059         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3060
3061         * gnat_rm.texi
3062         (pragma CPP_Class): Document that it can be used now with non-tagged
3063         record types.
3064         (pragma CPP_Constructor): Document that it can be used now with
3065         functions returning specific types. For backward compatibility
3066         we also support functions returning class-wide types.
3067
3068         * gnat_ugn.texi
3069         (Interfacing with C++ constructors): Update the examples to incorporate
3070         the new syntax in which the functions used to import C++ constructors
3071         return specific types.
3072         (Interfacing with C++ at the Class Level): Update the examples to
3073         incorporate the new syntax in which the functions used to import
3074         C++ constructors return specific types.
3075
3076 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3077
3078         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3079         Make_Disp_Conditional_Select_Body,
3080         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3081         interface nor a concurrent type, the primitive body is empty. Generate
3082         a null statement so that it remains well formed.
3083
3084 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3085
3086         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3087         replace references to them in defaulted component expressions with
3088         references to the values of the discriminants of the target object.
3089
3090 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3091
3092         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3093         pragma, to capture global references if the context is generic.
3094
3095         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3096         appears within the initialization procedure for the corresponding
3097         record, replace it with the proper discriminal.
3098
3099 2009-07-10  Vincent Celier  <celier@adacore.com>
3100
3101         * make.adb: Do not include object directories or library ALI
3102         directories of library projects in the object path.
3103
3104 2009-07-10  Javier Miranda  <miranda@adacore.com>
3105
3106         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3107         Typ argument to ensure proper management of access types.
3108
3109 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3110
3111         * exp_ch7.adb (Build_Final_List): If the list is being built for a
3112         Taft-Amendment type, place the finalization list in the package body,
3113         to ensure that the tree for the spec is identical whenever it is
3114         compiled.
3115
3116 2009-07-10  Javier Miranda  <miranda@adacore.com>
3117
3118         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3119         inheriting attributes from a private Parent_Base.
3120
3121 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3122
3123         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3124         statements with the same condition.
3125
3126 2009-07-10  Robert Dewar  <dewar@adacore.com>
3127
3128         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3129
3130 2009-07-09  Tom Tromey  <tromey@redhat.com>
3131
3132         * raise-gcc.c: Include dwarf2h (unconditionally).
3133
3134 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3135
3136         * sem_ch10.adb (Install_Context): If the unit is a package body,
3137         install the private with_clauses of the corresponding package
3138         declaration.
3139
3140 2009-07-09  Robert Dewar  <dewar@adacore.com>
3141
3142         * checks.adb: Minor reformatting
3143
3144 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3145
3146         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3147         into ug_words.
3148
3149 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3150
3151         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3152         Do not warn for a constant overlaying any constant object
3153
3154 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3155
3156         * sem_ch10.adb (Install_Context): If the unit is a package body,
3157         install the private with_clauses of the corresponding package
3158         declaration.
3159
3160 2009-07-09  Robert Dewar  <dewar@adacore.com>
3161
3162         * checks.adb: Minor reformatting
3163
3164 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3165
3166         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3167         into ug_words.
3168
3169 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3170
3171         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3172         Do not warn for a constant overlaying any constant object
3173
3174 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
3175
3176         * gcc-interface/Make-lang.in: Update dependencies
3177
3178 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3179
3180         * g-socket.adb (Check_Selector): Do not create local copies of the
3181         socket sets on the stack.
3182
3183 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3184
3185         * gnat_ugn.texi: Add missing VMS translations.
3186
3187 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3188
3189         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3190         condition, to prevent generation of visible code during expansion,
3191         when Check is not enabled.
3192
3193 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
3194
3195         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3196         the check gets registered for any available local handler
3197         (Set_Local_Raise).
3198
3199         * sem_util.adb: Add with and use of Exp_Ch11.
3200         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3201         that the check gets registered for any available local handler.
3202
3203         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3204         on slice ranges.
3205
3206 2009-07-09  Steve Baird  <baird@adacore.com>
3207
3208         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3209         function.
3210         (Expand_N_Exception_Declaration): Fix handling of exceptions
3211         declared in a subprogram.
3212
3213 2009-07-09  Emmanuel Briot  <briot@adacore.com>
3214
3215         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3216         multi-unit files.
3217
3218 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3219
3220         * freeze.adb: Minor reformatting
3221
3222         * exp_ch3.adb: Minor comment fix.
3223
3224         * sinfo.ads: Minor comment fix
3225
3226 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3227
3228         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3229
3230 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3231
3232         * freeze.adb (Freeze_Expression): If the expression is the name of a
3233         function in a call, and the function has not been frozen yet, create
3234         extra formals for it to ensure that the proper actuals are created
3235         when expanding the call.
3236
3237 2009-07-09  Emmanuel Briot  <briot@adacore.com>
3238
3239         * prj-pp.adb (Print): Fix handling of source index when set on a
3240         declaration node.
3241
3242 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3243
3244         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3245         a temporary to the source expression whose value it captures.
3246
3247         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3248
3249 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3250
3251         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3252         EXPR_LOCATION.
3253
3254 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
3255
3256         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3257         parameters when the subtype of the actual is not known to be a subrange
3258         of the formal's subtype.
3259         (Expand_Call): Generate a range check only in the E_In_parameter case
3260         (in out parameter range checks are now handled in Expand_Actuals).
3261
3262         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3263         Enable_Range_Check.
3264
3265 2009-07-07  Robert Dewar  <dewar@adacore.com>
3266
3267         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3268
3269 2009-07-07  Javier Miranda  <miranda@adacore.com>
3270
3271         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3272         designated type comes from a limited views.
3273
3274 2009-07-07  Emmanuel Briot  <briot@adacore.com>
3275
3276         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3277         locally removed files that are later made visible again in an importing
3278         project.
3279
3280 2009-07-07  Robert Dewar  <dewar@adacore.com>
3281
3282         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3283
3284 2009-07-07  Sergey Rybin  <rybin@adacore.com>
3285
3286         * gnat_ugn.texi: Add an example to the description of gnatcheck
3287         'Style_Checks' rule option.
3288
3289 2009-07-07  Tristan Gingold  <gingold@adacore.com>
3290
3291         * seh_init.c: Fix inline assembly statement in seh_init.c
3292
3293 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3294
3295         * sem_warn.adb (Check_References): Do not emit warnings on formals of
3296         an entry body. Only the formals of the entry declaration are traced.
3297
3298 2009-07-07  Robert Dewar  <dewar@adacore.com>
3299
3300         * s-osprim-mingw.adb: Minor code reorganization
3301
3302 2009-07-07  Robert Dewar  <dewar@adacore.com>
3303
3304         * prj-nmsc.adb: Minor reformatting
3305
3306 2009-07-07  Pascal Obry  <obry@adacore.com>
3307
3308         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3309         cases where Pattern is longer than Source.
3310
3311 2009-07-07  Pascal Obry  <obry@adacore.com>
3312
3313         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3314
3315 2009-07-07  Emmanuel Briot  <briot@adacore.com>
3316
3317         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3318         project file.
3319
3320 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3321
3322         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3323         primitive operations, in case one of them is called in the
3324         initialization procedure for the type.
3325
3326 2009-07-07  Robert Dewar  <dewar@adacore.com>
3327
3328         * a-calend.adb: Minor code reorganization (use conditional expressions)
3329
3330         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3331         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3332         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3333         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3334         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3335         g-comlin.adb, exp_ch11.adb: Minor reformatting.
3336
3337 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
3338
3339         * checks.adb (Generate_Range_Check): Replace type conversions with
3340         unchecked conversions to support the case of performing range checks
3341         on Enum'Val (permits integer values to be converted to enumeration).
3342
3343         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3344         Attribute_Succ): Set Do_Range_Check to False before calling
3345         Expand_Pred_Succ, to prevent gigi from generating any range checks.
3346         (Expand_N_Attribute_Reference, case Attribute_Val):
3347         Generate a range check when needed (and set Do_Range_Check to False).
3348
3349         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3350         scalar object initialization if needed.
3351
3352         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3353         when needed on scalar allocators.
3354         (Expand_N_Qualified_Expression): Generate range check when needed.
3355         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3356         Checks on slice ranges handled in Resolve_Slice.
3357
3358         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3359         when needed, for all scalar assignments, not just discrete.
3360         (Expand_Simple_Function_Return): Resolve the conversion created for a
3361         scalar function return so that the conversion will get expanded to
3362         generate a possible constraint check.
3363
3364         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3365         in out scalar actuals when subtypes don't match, to ensure generation
3366         of return checks (and set Do_Range_Check to False).
3367         (Expand_Call): Uncomment code to perform range checks, but make it apply
3368         only to in and in out parameters (checks on parameter returns are
3369         handled in Expand_Actuals). If a scalar actual for a call to a derived
3370         subprogram is marked as needing a range check, peform it here (and set
3371         Do_Range_Check to False).
3372
3373         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3374         range check on scalar component associations when needed.
3375
3376         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3377         infinities but the second type does not, as these aren't compatible
3378         floating-point types.
3379
3380         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3381         slice is itself a slice, pick up the Etype of the prefix. This handles
3382         the case where the prefix was an Image attribute expanded to a slice,
3383         and ensures that we get the subtype with the slice constraint rather
3384         than the unconstrained subbtype of the 'Image.
3385
3386 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3387
3388         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3389         overloaded expressions in a conditional expressions.
3390
3391         * sem_res.adb (Resolve): Handle properly overloaded conditional
3392         expressions.
3393
3394 2009-07-07  Robert Dewar  <dewar@adacore.com>
3395
3396         * scng.adb: Minor reformattting
3397
3398         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3399         association allows conditional expression without parens.
3400
3401         * par-ch4.adb (P_Name): Attribute arguments can be conditional
3402         expressions without enclosing parentheses, and also as parameters,
3403         indexing expressions etc.
3404         (P_Conditional_Expression): New procedure
3405         (P_Expression_If_OK): New procedure
3406
3407         * par.adb (P_Conditional_Expression): New procedure
3408         (P_Expression_If_OK): New procedure
3409
3410         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3411         form of conditional expression.
3412
3413         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3414         missing True argument if ELSE argument missing.
3415
3416         * sinfo.adb (Is_Elsif): New flag
3417
3418         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3419         part of the language, and the documentation is modified accordingly.
3420         (Is_Elsif): New flag
3421
3422 2009-07-06  Olivier Hainque  <hainque@adacore.com>
3423
3424         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3425         setjmp_longjmp): Attach the exception propagation reraise fallback
3426         to the sequence end label location when we have it.
3427
3428 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3429
3430         PR ada/40608
3431         * init.c (APPLE): Include <mach/mach_init.h>.
3432         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3433
3434 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3435
3436         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3437         (SET_DECL_LANG_SPECIFIC): Likewise.
3438         (TYPE_RM_VALUE): New macro.
3439         (SET_TYPE_RM_VALUE): Likewise.
3440         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3441         (TYPE_RM_MIN_VALUE): Likewise.
3442         (TYPE_RM_MAX_VALUE): Likewise.
3443         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3444         (SET_TYPE_RM_MIN_VALUE): Likewise.
3445         (SET_TYPE_RM_MAX_VALUE): Likewise.
3446         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3447
3448 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
3449
3450         PR ada/40631
3451         * tracebak.c (__gnat_backtrace): Fix old-style definition.
3452
3453 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3454
3455         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3456
3457 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3458
3459         PR ada/40609
3460         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3461         ucontext argument.
3462
3463 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3464
3465         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3466
3467 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3468
3469         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3470         the type of the left operand if it pads a self-referential type when
3471         the right operand is a constructor.
3472
3473         * gcc-interface/lang-specs.h: Fix copyright date.
3474
3475 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3476
3477         * gcc-interface/decl.c: Include tree-inline.h.
3478         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3479         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3480         * gcc-interface/utils2.c: Include tree-inline.
3481         (known_alignment) <CALL_EXPR>: Likewise.
3482
3483 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3484
3485         * raise-gcc.c: Include dwarf2.h conditionally.
3486         
3487 2009-06-29  Tom Tromey  <tromey@redhat.com>
3488
3489         * raise-gcc.c: Include elf/dwarf2.h.
3490
3491 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
3492
3493         * tb-gcc.c (trace_callback): Add casts to silence warning.
3494
3495 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3496
3497         * tb-gcc.c: Fix copyright notice.
3498
3499 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3500
3501         * init.c (__gnat_set_globals): Add prototype.
3502         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3503         (__gnat_sals_init_using_constructors): Likewise.
3504         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3505         (get_block_jmpbuf_decl): Likewise.
3506         (gnat_poplevel): Likewise.
3507         (merge_sizes): Rename local variable.
3508         (copy_type): Likewise.
3509         (build_vms_descriptor32): Likewise.
3510         (build_vms_descriptor): Likewise.
3511         (convert_vms_descriptor64): Likewise.
3512         (convert_vms_descriptor32): Likewise.
3513         (convert_to_fat_pointer): Likewise.
3514         (maybe_unconstrained_array): Likewise.
3515         (def_fn_type): Use promoted type with va_arg.
3516         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3517         (substitute_in_type): Rename local variable.
3518         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3519
3520 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
3521
3522         * tb-gcc.c (trace_callback): Use char* instead of void*.
3523         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3524         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3525         (Attribute_to_gnu): Adjust for above change.
3526         (Subprogram_Body_to_gnu): Likewise.
3527         * gcc-interface/utils.c (merge_sizes): Rename local variable.
3528         (copy_type): Likewise.
3529         (build_vms_descriptor32): Likewise.
3530         (build_vms_descriptor): Likewise.
3531         (convert_vms_descriptor64): Likewise.
3532         (convert_vms_descriptor32): Likewise.
3533         (convert_to_fat_pointer): Likewise.
3534         (maybe_unconstrained_array): Likewise.
3535         * gcc-interface/decl.c (substitute_in_type): Likewise.
3536
3537 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3538
3539         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3540         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3541         of the upper bound of the index types.
3542
3543 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3544
3545         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
3546         out common predicate.  Use the maximum to compute the upper bound of
3547         the index type only when it is not wider than sizetype.  Perform the
3548         comparison in the index type for the generic expression.  Use real
3549         precision to decide whether to generate special types for debugging
3550         information.
3551
3552 2009-06-26  Matthew Gingell  <gingell@adacore.com>
3553
3554         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
3555
3556 2009-06-26  Vincent Celier  <celier@adacore.com>
3557
3558         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
3559         default.
3560
3561 2009-06-26  Robert Dewar  <dewar@adacore.com>
3562
3563         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
3564
3565 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3566
3567         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
3568         correct arguments to create_field_decl.  Remove redundant iteration.
3569         Rewrite computation of the maximum size.
3570         <E_Array_Subtype>: Reorder and simplify handling of special cases.
3571         Rewrite computation of the maximum size.  Use consistent naming.
3572         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
3573         comparison order for consistency.  Use generic integer node to
3574         build the operator and fold the result.
3575
3576 2009-06-25  Vincent Celier  <celier@adacore.com>
3577
3578         * vms_data.ads: Minor comment change
3579
3580 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
3581
3582         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
3583         assignment statement to targeting a caller-provided object when the
3584         result type is an interface type.
3585
3586         * exp_ch6.adb (Expand_Call): Remove redundant test of
3587         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
3588         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
3589
3590         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
3591         to OK_For_Limited_Init.
3592
3593         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
3594         condition so that True is returned for all limited interfaces, not
3595         just synchronized ones. Ignore components of an interface type when
3596         checking for limited components (such a component can be a parent
3597         component).
3598
3599         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
3600         (OK_For_Limited_Init): Add type parameter.
3601
3602         * sem_ch3.adb (Check_Initialization): Add type in call to
3603         OK_For_Limited_Init.
3604         (OK_For_Limited_Init): Add new type param in call to
3605         OK_For_Limited_Init_In_05.
3606         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
3607         nonlimited type when the context type is a limited interface. Add type
3608         on recursive calls.
3609
3610         * sem_ch4.adb (Analyze_Allocator): Add type in call to
3611         OK_For_Limited_Init.
3612
3613         * sem_ch6.adb (Check_Limited_Return): Add type in call to
3614         OK_For_Limited_Init.
3615
3616         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
3617         OK_For_Limited_Init.
3618         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
3619
3620         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
3621         class-wide interface, get the base type before applying Etype, in order
3622         to account for class-wide subtypes.
3623
3624 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3625
3626         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
3627         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
3628         between gnatmake and gprbuild.
3629         (Naming_Data): Removed, no longer used
3630         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
3631         needed locally in one subprogram, no need to store forever in the
3632         structure.
3633         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
3634         a similar role.
3635         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
3636         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
3637         Spec_Suffix_Id_Of): removed, no longer used.
3638
3639 2009-06-25  Javier Miranda  <miranda@adacore.com>
3640
3641         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
3642         types on qualified expression in calls to imported C++ constructors.
3643
3644         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
3645         imported C++ constructors.
3646
3647 2009-06-25  Sergey Rybin  <rybin@adacore.com>
3648
3649         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
3650
3651 2009-06-25  Vincent Celier  <celier@adacore.com>
3652
3653         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
3654         provided, on Windows change all '/' to '\'.
3655
3656         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
3657         used. Minor comment changes
3658
3659         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
3660         Remove_Forbidden_File_Name.
3661
3662 2009-06-25  Quentin Ochem  <ochem@adacore.com>
3663
3664         * prj.ads (Unit_Index): Now general access type.
3665
3666 2009-06-25  Pascal Obry  <obry@adacore.com>
3667
3668         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
3669
3670 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3671
3672         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
3673         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
3674         computed efficiently from the other fields.
3675         (Object_To_Global_Archive): New subprogram
3676         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
3677         (Override_Kind): Fix handling of separates in Ada.
3678         (Create_Mapping_File): Remove duplicate code
3679         (Naming_Data.Implementation_Exception, Specification_Exception):
3680         field removed, since never used.
3681         (Naming_Data.Specs, .Bodies): field removed, since this is only
3682         used while processing the project and is not needed once the tree
3683         is in memory. This brings Naming_Data and Lang_Naming_Data
3684         closer (same content now, but different use still).
3685
3686 2009-06-25  Pascal Obry  <obry@adacore.com>
3687
3688         * sem_ch4.adb: Minor reformatting.
3689
3690         * a-strsea.adb: Fix confusion between 'Length and 'Last.
3691
3692 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
3693
3694         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
3695         Unchecked_Access): If the context is an interface type, and the prefix
3696         is of the corresponding class-wide type, do not insert a conversion
3697         because the pointer displacement has already taken place, and we must
3698         retain the class-wide type in a dispatching context.
3699
3700 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3701
3702         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
3703         the previous source file.
3704         (Create_Mapping): Iterate on sources rather than on units.
3705
3706 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3707
3708         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
3709         prj-env.adb, prj-env.ads (Slash): removed, no longer used
3710         (Source_Data): no longer use Path.Name to point to a locally removed
3711         file. Instead we use the field Locally_Removed which is clearer
3712
3713 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
3714
3715         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
3716
3717         * sem_maps.adb, sem_maps.ads: Removed, not used.
3718
3719 2009-06-25  Ed Falis  <falis@adacore.com>
3720
3721         * s-vxwext-rtp.ads: Add missing declaration
3722
3723 2009-06-25  Matthew Gingell  <gingell@adacore.com>
3724
3725         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
3726         speed up unmapped case.
3727
3728 2009-06-25  Vincent Celier  <celier@adacore.com>
3729
3730         * prj-nmsc.adb (Check): Change error message for illegal abstract
3731         projects.
3732
3733 2009-06-25  Robert Dewar  <dewar@adacore.com>
3734
3735         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
3736
3737 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3738
3739         * fmap.ads: Add documentation on mapping files
3740
3741 2009-06-25  Robert Dewar  <dewar@adacore.com>
3742
3743         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
3744         reformatting
3745
3746 2009-06-24  Robert Dewar  <dewar@adacore.com>
3747
3748         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
3749
3750         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
3751         case.
3752         (Index): Ditto.
3753
3754 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
3755
3756         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
3757         present when checking whether a call may be interpreted as an indexing
3758         of the result of a call.
3759
3760         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
3761         body for a null procedure on the freeze actions for the procedure, so
3762         that it will be analyzed at the proper place without premature freezing
3763         of actuals.
3764
3765         * sem_ch3.adb (Check_Completion): Code cleanup. 
3766         Do not diagnose a null procedure without a body, if previous errors
3767         have disabled expansion.
3768
3769 2009-06-24  Doug Rupp  <rupp@adacore.com>
3770
3771         * init.c [VMS] Resignal C$_SIGKILL
3772
3773 2009-06-24  Ed Falis  <falis@adacore.com>
3774
3775         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
3776         Define ERROR in body for VxWorks 6 kernel
3777
3778 2009-06-24  Pascal Obry  <obry@adacore.com>
3779
3780         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
3781         in [Send/Receive]_Socket.
3782
3783 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3784
3785         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3786         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3787         to several subprograms.
3788         (Source_Data.Other_Part): Removed, since can be computed from the
3789         language.
3790         (Other_Part): New subprogram.
3791
3792 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3793
3794         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3795         the full base name of the file when the suffix doesn't start with a '.'.
3796
3797 2009-06-24  Vincent Celier  <celier@adacore.com>
3798
3799         * prj-nmsc.adb (Check): A project declared abstract is legal if no
3800         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3801         declared.
3802
3803 2009-06-24  Robert Dewar  <dewar@adacore.com>
3804
3805         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3806         prj-env.adb: Minor reformatting
3807
3808 2009-06-24  Ed Falis  <falis@adacore.com>
3809
3810         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3811         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3812         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3813         support for VxWorks SMP.
3814
3815         * gcc-interface/Make-lang.in: Update dependencies
3816
3817 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3818
3819         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3820         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3821         no longer useful.
3822         (Source_Data.Lang_Kind): Removed, since it duplicates information
3823         already available through Language.Config.
3824         (Source_Data.Compile): Removed, since information is already available
3825         through the language.
3826         (Is_Compilable): New subprogram.
3827         (Source_Data.Dependency): Removed, since already available through
3828         the language.
3829         (Source_Data.Object_Exist, Object_Linked): Removed since available
3830         through the language already.
3831         (Unit_Data.File_Names): Is now also set in multi_language mode, to
3832         bring the two modes closer in the resulting data structures.
3833         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3834         just the name that would point into a hash table.
3835         (Get_Language_From_Name): New subprogram.
3836
3837 2009-06-24  Javier Miranda  <miranda@adacore.com>
3838
3839         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3840         visible through limited-with context clauses. In addition, avoid an
3841         extra tag check that is not required when the class-wide
3842         designated types of the operand and target types are
3843         the same entity.
3844         (Tagged_Membership): Handle entities from the limited view.
3845
3846 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3847
3848         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3849         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3850         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3851         different vocabularies for similar concepts (Impl/Body_Part and
3852         Spec/Specification).
3853         (Unit_Data): now points directly to a Source_Id, rather than duplicating
3854         some of the information in File_Name_Data. This also saves a bit of
3855         memory. However, since we are now using a pointer we need to test
3856         for null explicitly in several places of the code
3857
3858 2009-06-24  Javier Miranda  <miranda@adacore.com>
3859
3860         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3861         from processing the type conversion when the node is
3862         replaced by an N_Raise_Program_Error node.
3863
3864 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
3865
3866         * sem_ch6.adb (Designates_From_With_Type): New routine.
3867         (Process_Formals): Since anonymous access types are no longer flagged
3868         as from with types, traverse the designated type to determine whether
3869         it is coming from a limited view.
3870
3871         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3872         (Full_Designated_Type): Use Available_View to extract the non-limited /
3873         full view of a type.
3874
3875 2009-06-24  Robert Dewar  <dewar@adacore.com>
3876
3877         * exp_ch6.adb: Minor reformatting
3878
3879         * layout.adb: Minor reformatting
3880
3881         * make.adb: Minor reformatting
3882
3883 2009-06-24  Thomas Quinot  <quinot@adacore.com>
3884
3885         * sem_ch10.adb: Minor code reorganization.
3886
3887 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3888
3889         * ttypes.ads: Minor editing.
3890         
3891 2009-06-24  Robert Dewar  <dewar@adacore.com>
3892
3893         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3894         in deciding to do call-by-copy code.
3895
3896 2009-06-24  Vincent Celier  <celier@adacore.com>
3897
3898         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3899         check if an externally built library file is more current than the
3900         executable.
3901
3902 2009-06-23  Olivier Hainque  <hainque@adacore.com>
3903
3904         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3905         c-common.c and populate in gnat_internal_attribute_table.
3906         
3907 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3908
3909         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3910         Available_View only when designated type of an anonymous access type
3911         is  limited view.
3912
3913 2009-06-23  Robert Dewar  <dewar@adacore.com>
3914
3915         * sem_ch10.adb: Minor reformatting
3916
3917         * ali.ads: Mino reformatting.
3918
3919         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3920         turning off inlining if ASIS mode active).
3921         
3922         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3923         This belongs in gnat1drv.adb after switches are scanned.
3924
3925 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
3926
3927         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3928         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3929         when dealing with class-wide types. Detect a legal shadow entity and
3930         retrieve its non-limited view.
3931
3932         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3933         subprogram to top package level from Intall_Limited_Withed_Unit.
3934         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3935         Add check which prevents the installation of a limited view if the
3936         non-limited view is already visible through a with clause.
3937         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3938         legal shadow entity which may occur in subprogram formals of anonymous
3939         access type.
3940
3941         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3942
3943         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3944         From_With_Type from the designated type to the generated anonymous
3945         access type. Remove associated comment.
3946
3947         * sem_res.adb Add with and use clauses for Sem_Ch10.
3948         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3949         non-limited view. Since the shadow entity may replace a regular
3950         incomplete type, return the available full view.
3951
3952 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3953
3954         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3955         incomplete type declarations. Previous code was potentially quadratic
3956         in the number of visible declarations in any package appearing in a
3957         limited_with_clause.
3958
3959 2009-06-23  Robert Dewar  <dewar@adacore.com>
3960
3961         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3962         xref_lib.adb: Minor reformatting
3963
3964 2009-06-23  Robert Dewar  <dewar@adacore.com>
3965
3966         * a-stzhas.adb: Provide dummy body to avoid build problems with old
3967         versions which did have a body for this unit.
3968
3969 2009-06-23  Vincent Celier  <celier@adacore.com>
3970
3971         * prj-attr.adb: Attribute names Initial_Required_Switches and
3972         Final_Required_Switches changed to Leading_Required_Switches and
3973         Trailing_Required_Switches.
3974
3975         * prj-nmsc.adb (Process_Compiler): Attribute names
3976         Initial_Required_Switches and Final_Required_Switches changed to
3977         Leading_Required_Switches and Trailing_Required_Switches.
3978
3979         * prj.ads (Language_Config): Component Initial_Required_Switches and
3980         Final_Required_Switches changed to Leading_Required_Switches and
3981         Trailing_Required_Switches.
3982
3983         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3984         Final_Required_Switches; add standard names Leading_Required_Switches
3985         and Trailing_Required_Switches.
3986
3987 2009-06-23  Thomas Quinot  <quinot@adacore.com>
3988
3989         * prj-conf.adb: Minor reformatting
3990
3991         * xref_lib.adb: Minor cleanup
3992
3993 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3994
3995         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3996         prj-conf.ads (Check_Configuration): New parameter
3997         Compiler_Driver_Mandatory.
3998
3999 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4000
4001         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4002         context of the current unit has an inline pragma, the instance is not
4003         rewritten as the declaration of the package wrapper. Handle both
4004         possibilities when retrieving the visible subprogram that renames the
4005         instantiation itself.
4006
4007 2009-06-23  Javier Miranda  <miranda@adacore.com>
4008
4009         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4010         designated types referencing entities from the limited view.
4011
4012 2009-06-23  Robert Dewar  <dewar@adacore.com>
4013
4014         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4015
4016         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4017         small values
4018
4019         * prj-conf.ads: Minor reformatting
4020
4021         * prj-conf.adb: Minor reformatting
4022
4023 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
4024
4025         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4026         to correspond to the log format that gnatmem now expects.
4027
4028 2009-06-23  Vincent Celier  <celier@adacore.com>
4029
4030         * prj-attr.adb: New attributes Initial_Required_Switches,
4031         Final_Required_Switches and Object_File_Switches
4032         
4033         * prj-nmsc.adb (Process_Compiler): Process new attributes
4034         Name_Final_Required_Switches, Name_Initial_Required_Switches and
4035         Name_Object_File_Switches.
4036
4037         * prj.ads (Language_Config): New component
4038         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4039         Compiler_Final_Required_Switches and Object_File_Switches.
4040
4041         * snames.ads-tmpl: New standard names Initial_Required_Switches,
4042         Final_Required_Switches and Object_File_Switches
4043
4044 2009-06-23  Pascal Obry  <obry@adacore.com>
4045
4046         * s-strhas.adb, s-strhas.ads: Minor reformatting.
4047
4048 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4049
4050         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4051         not indicate that the enclosing unit needs a body.
4052
4053 2009-06-23  Emmanuel Briot  <briot@adacore.com>
4054
4055         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4056
4057 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4058
4059         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4060         primitive equality include it with its source name even if the
4061         operation is currently invisible, to make sure that the corresponding
4062         slot in the dispatch table is reserved for the internal equality
4063         subsequently generated during expansion.
4064
4065 2009-06-23  Matthew Gingell  <gingell@adacore.com>
4066
4067         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4068
4069 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
4070
4071         * sysdep.c (__gnat_localtime_tzoff for RTX):
4072         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4073         GetTimeZoneInformation instead.
4074
4075 2009-06-22  Robert Dewar  <dewar@adacore.com>
4076
4077         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4078
4079 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4080
4081         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4082         instantiations declared in a previous generic package body.
4083
4084 2009-06-22  Robert Dewar  <dewar@adacore.com>
4085
4086         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4087         restriction No_Direct_Boolean_Operators.
4088
4089 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4090
4091         * bindusg.adb: Minor fixes to gnatbind usage message
4092
4093         * sem_eval.adb: Minor reformatting
4094
4095 2009-06-22  Javier Miranda  <miranda@adacore.com>
4096
4097         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4098         freezing point the check on the use of abstract types in object
4099         declarations. Done to allow the declaration of C++ imported variables
4100         or constants whose type corresponds with an imported C++ classes for
4101         which the constructor is not imported.
4102
4103 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4104
4105         * sem_ch6.adb: Minor reformatting
4106
4107 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4108
4109         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4110         component is constrained with an expression rather than with a
4111         discriminant of the enclosing type, use that expression when building
4112         the call to default-initialize the component, when the call is part of
4113         an aggregate with box initialization.
4114
4115 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4116
4117         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4118         unconditional rather than a style check, because a formal name out of
4119         order is suspicious.
4120
4121 2009-06-22  Vincent Celier  <celier@adacore.com>
4122
4123         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4124         creating a directory automatically.
4125
4126 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
4127
4128         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4129         untagged derived type, add a hidden component for every constrained
4130         discriminant of the parent type to keep record layout consistent.
4131
4132 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4133
4134         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4135         copy).
4136
4137 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4138
4139         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4140         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4141         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4142         a-swuwha.adb: New unit System.String_Hash.  
4143         Refactor redundant cut and pasted hash functions with instances of a
4144         new generic hash function.
4145         Implement a new string hashing algorithm which appears in testing to
4146         be move effective than to previous approach.
4147
4148 2009-06-22  Ed Falis  <falis@adacore.com>
4149
4150         * sysdep.c: remove include for nfsLib.h and an NFS specific error
4151         message for VxWorks 653 vThreads: not supported by the OS.
4152
4153         * gsocket.h: disable sockets for VxWorks 653 vThreads.
4154
4155 2009-06-22  Robert Dewar  <dewar@adacore.com>
4156
4157         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4158
4159 2009-06-22  Robert Dewar  <dewar@adacore.com>
4160
4161         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4162         by Sloc_Range.
4163
4164         * freeze.adb: Minor comment updates
4165
4166         * s-valrea.adb (Bad_Based_Value): New procedure
4167         (Scan_Real): Raise exceptions with messages
4168
4169 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4170
4171         * adaint.h: Complete previous change.
4172
4173 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4174
4175         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4176
4177 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4178
4179         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4180         enabled, emit warning when a non-controlling argument of the overriding
4181         operation appears out of place vis-a-vis of the formal of the
4182         overridden operation.
4183
4184 2009-06-22  Vincent Celier  <celier@adacore.com>
4185
4186         * gnatcmd.adb (Check_Files): Close temporary files after all file names
4187         have been written into it.
4188
4189 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4190
4191         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4192         available.
4193
4194 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4195
4196         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4197         view of the root type is visible at the point of the call.
4198
4199 2009-06-22  Pat Rogers  <rogers@adacore.com>
4200
4201         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4202
4203 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
4204
4205         * freeze.adb: Add comments.
4206
4207 2009-06-21  Thomas Quinot  <quinot@adacore.com>
4208
4209         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4210         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4211         Factor out code to new subprogram...
4212         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4213         for a default initialized variable.
4214         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4215         entity that has an associated freeze node.
4216         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4217         If there is an init call for the object, defer it to the object freeze
4218         point.
4219         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4220         name clash with new subprogram introduced in Exp_Util.
4221
4222 2009-06-21  Robert Dewar  <dewar@adacore.com>
4223
4224         * einfo.ads: Minor reformatting
4225
4226 2009-06-21  Ed Falis  <falis@adacore.com>
4227
4228         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4229
4230 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
4231
4232         * einfo.ads: Update comments.
4233
4234 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
4235
4236         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4237         where the controlling formal is of private class-wide type whose
4238         completion is a synchronized type can be converted into direct calls.
4239
4240 2009-06-21  Vincent Celier  <celier@adacore.com>
4241
4242         * gnatcmd.adb (Check_Files): When all sources of the project are to be
4243         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4244         of sources using -files=, so that the distinction can be made by the
4245         tool of a call with no source (to display the usage) from a call with
4246         a project file that contains no source.
4247
4248 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
4249
4250         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4251         case of VM convention arrays.
4252
4253 2009-06-20  Robert Dewar  <dewar@adacore.com>
4254
4255         * a-nudira.adb: Minor reformatting
4256
4257 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4258
4259         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4260         expressions (possibly from a parent type) indicate that the scope of
4261         the new itypes is the initialization procedure being built.
4262
4263 2009-06-20  Robert Dewar  <dewar@adacore.com>
4264
4265         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4266         Needs_64, and now computed without anomolies for some dynamic types.
4267
4268 2009-06-20  Thomas Quinot  <quinot@adacore.com>
4269
4270         * sem_prag.adb: Minor reformatting
4271
4272         * exp_disp.ads: Minor reformatting
4273
4274 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4275
4276         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4277         function call is a legal expression to initialize a limited object.
4278
4279         * exp_ch3.adb: Rename various freeze operations that perform expansion
4280         actions, to prevent confusion with subprograms in the freeze package.
4281
4282 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4283
4284         * sem.adb (Walk_Library_Units): Check instantiations first.
4285
4286         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4287         private primitive if it is a function with a controlling result that is
4288         a type extension with progenitors.
4289
4290         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4291         a primitive operation of a synchronized tagged type that has a
4292         controlling result.
4293
4294 2009-06-20  Thomas Quinot  <quinot@adacore.com>
4295
4296         * einfo.ads: Fix typo.
4297
4298 2009-06-20  Ed Falis  <falis@adacore.com>
4299
4300         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4301
4302 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4303
4304         * gcc-interface/trans.c (emit_check): Do not wrap up the result
4305         in a SAVE_EXPR.
4306         (protect_multiple_eval): Always protect complex expressions.
4307
4308 2009-06-19  Emmanuel Briot  <briot@adacore.com>
4309
4310         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4311         make sure we always return a name ending with a path separator.
4312
4313 2009-06-19  Javier Miranda  <miranda@adacore.com>
4314
4315         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4316         Save and restore the visibility of the parent when installed.
4317
4318 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
4319
4320         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4321         by Common which contains all these fields.
4322
4323         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4324         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4325         Remove code duplication in this package by means of calling the
4326         equivalent code in s-taprob.
4327
4328 2009-06-19  Robert Dewar  <dewar@adacore.com>
4329
4330         * a-einuoc.ads: Minor reformatting
4331
4332 2009-06-19  Ed Falis  <falis@adacore.com>
4333
4334         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4335         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4336
4337 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4338
4339         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4340
4341 2009-06-19  Robert Dewar  <dewar@adacore.com>
4342
4343         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4344         ranges
4345
4346         * checks.adb (Determine_Range): Move the test for generic types later.
4347
4348         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4349         cases.
4350         (Eval_Relational_Op): Fold more cases including string compares
4351
4352         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4353         function.
4354
4355 2009-06-19  Robert Dewar  <dewar@adacore.com>
4356
4357         * sem_type.ads, sem_ch12.adb: Minor reformatting
4358
4359         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4360
4361 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4362
4363         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4364         primitive operation of a rivate extension whose controlling argument
4365         is an out parameter.
4366
4367         * sem.adb (Walk_Library_Units): exclude generic package declarations
4368         from check.
4369
4370 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4371
4372         * i-vxwoio.ads: Add comments
4373
4374 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4375
4376         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4377         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4378         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4379         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4380         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4381         Thin_Common.Socket_Ioctl.
4382         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4383         __gnat_socket_ioctl.
4384         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4385         argument after the file descriptor and request code.
4386
4387 2009-06-19  Robert Dewar  <dewar@adacore.com>
4388
4389         * checks.adb: Minor reformatting
4390
4391 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
4392
4393         * env.c (__gnat_environ): RTX does not support this functionality.
4394
4395 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4396
4397         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4398         traverse, to account for front-end inlining and instantiations in a
4399         spec or in the main unit.
4400
4401 2009-06-19  Robert Dewar  <dewar@adacore.com>
4402
4403         * checks.adb (Determine_Range): Do not attempt to get range of generic
4404         type.
4405
4406 2009-06-19  Sergey Rybin  <rybin@adacore.com>
4407
4408         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4409         gnatmetric option for generating the schema file for gnatmetric XML
4410         output. Add corresponding VMS qualifier.
4411
4412 2009-06-19  Robert Dewar  <dewar@adacore.com>
4413
4414         * g-cgi.adb: Minor reformatting
4415
4416 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4417
4418         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4419         signal code for SIGFPE and raise Program_Error for SIGILL.
4420
4421         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4422
4423 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4424
4425         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4426         generic package if there is a visibility candidate that is declared in
4427         a regular package.
4428
4429 2009-06-18  Olivier Hainque  <hainque@adacore.com>
4430
4431         * system-aix64.ads: New file.
4432         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4433         64bit system.ads for ppc64 multilib variants.
4434
4435 2009-06-16  Robert Dewar  <dewar@adacore.com>
4436             Olivier Hainque  <hainque@adacore.com>
4437
4438         Relax constraints on Machine_Attribute argument types:
4439         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4440         missing type.
4441         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4442         * gcc-interface/decl.c (prepend_attributes): Accept static
4443         expressions of any type as attribute arguments, not only string
4444         literals.
4445         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4446         the relaxation of the restriction on the Info argument type.
4447         
4448 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4449
4450         * gcc-interface/utils.c (record_builtin_type): Pass location
4451         argument to build_decl.
4452         (create_type_stub_decl): Same.
4453         (create_type_decl): Same.
4454         (create_var_decl_1): Same.
4455         (create_field_decl): Same.
4456         (create_param_decl): Same.
4457         (create_label_decl): Same.
4458         (create_subprog_decl): Same.
4459         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4460         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4461         argument to create_artificial_label.
4462         (Loop_Statement_to_gnu): Same.
4463         (Subprogram_Body_to_gnu): Same.
4464         (gnat_gimplify_stmt): Same.
4465
4466 2009-06-11  Richard Henderson  <rth@redhat.com>
4467
4468         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4469         OPT_gdwarfplus.
4470
4471 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
4472
4473         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4474         accessibiliy check on access_to_subprogram in the context of an
4475         anonymous access that is not an access parameter.
4476
4477 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4478
4479         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4480         
4481 2009-06-11  Quentin Ochem  <ochem@adacore.com>
4482
4483         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4484         comments for message handled by GPS.
4485
4486 2009-06-11  Matthew Gingell  <gingell@adacore.com>
4487
4488         * adaint.c: Use fopen64 instead of fopen on platforms where we know
4489         it's supported.
4490
4491 2009-06-11  Pascal Obry  <obry@adacore.com>
4492
4493         * g-cgi.ads: Fix comment typo.
4494
4495         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4496
4497 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
4498
4499         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4500         a reference to the original type for the type of the field of the
4501         XVS type.
4502         (maybe_pad_type): Likewise.
4503
4504         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4505         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4506         Pass correctly typed arguments to create_field_decl.
4507         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4508         case of contrained discriminants as well.  Use the padded base type
4509         in the other case as well.  Rename temporary variable.  Tweak test.
4510         Factor common access pattern.  Set GNU_SIZE only once.
4511
4512 2009-06-09  Olivier Hainque  <hainque@adacore.com>
4513
4514         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4515         helper for build_call_alloc_dealloc with arguments to be interpreted
4516         identically.  Process the case where a GNAT_PROC to call is provided.
4517         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4518         and return an allocator for DATA_SIZE bytes aimed at containing a
4519         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
4520         DATA_TYPE alignments greater than what the latter offers.
4521         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4522         release a DATA_TYPE object designated by DATA_PTR using the
4523         __gnat_free entry point.
4524         (build_call_alloc_dealloc): Expect object data type instead of naked
4525         alignment constraint. Use the new helpers.
4526         (build_allocator): Remove special processing for the super-aligned
4527         case, now handled by build_call_alloc_dealloc.  Pass data
4528         type instead of the former alignment argument, as expected by the new
4529         interface.
4530         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4531         and comment.
4532         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4533         Remove special processing for the super-aligned case, now handled
4534         by build_call_alloc_dealloc.  Pass data type instead of the former
4535         alignment argument, as expected by the new interface.
4536         
4537 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
4538
4539         * lib-writ.adb (flag_compare_debug): Import.
4540         (Write_ALI): Skip during -fcompare-debug-second.
4541
4542 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4543
4544         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
4545         adjusting the discriminant nodes in an extension, use the full view
4546         of the parent subtype if it is of a private kind.
4547
4548 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4549
4550         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
4551         _Parent field, if any, to the record before adding the other fields.
4552         <E_Record_Subtype>: Put the _Controller field before the other fields
4553         except for the _Tag or _Parent fields.
4554         (components_to_record): Likewise.  Retrieve the _Parent field from the
4555         record type.
4556
4557 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4558
4559         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
4560         remove unused parameter and simplify.
4561         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
4562         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
4563         as context for all discriminants.  Fix formatting nits.
4564         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
4565         before Discriminant_Constraint.  Adjust for above renaming.  Do not
4566         set GNU_TYPE more than once.
4567         (elaborate_entity): Test Has_Discriminants on the entity and use
4568         Implementation_Base_Type.
4569         (components_to_record): Rename component_list to gnat_component_list.
4570         Retrieve the _Parent field from the list.  Fix nits in comments.
4571         Clarify logic in loop.  Pass correct arguments to create_field_decl.
4572
4573 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4574
4575         * gcc-interface/Make-lang.in: Fix formatting.
4576
4577 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4578             Eric Botcazou  <ebotcazou@adacore.com>
4579         
4580         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
4581         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
4582         on the result if at least one of the input fields couldn't be output
4583         as a static constant any more.
4584
4585 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4586             Eric Botcazou  <ebotcazou@adacore.com>
4587         
4588         * gcc-interface/utils2.c (gnat_build_constructor): Factor
4589         out code.  Use initializer_constant_valid_for_bitfield_p and
4590         CONSTRUCTOR_BITFIELD_P for bit-fields.
4591
4592 2009-05-26  Ian Lance Taylor  <iant@google.com>
4593
4594         * gcc-interface/Makefile.in (COMPILER): Define.
4595         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
4596         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
4597         (seh_init.o, tracebak.o): Likewise.
4598         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
4599         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
4600         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
4601         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
4602         (ada/utils2.o): Likewise.
4603
4604 2009-05-24  Olivier Hainque  <hainque@adacore.com>
4605
4606         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
4607         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
4608         Add -auxbase variants to the list of recognized internal switches.
4609         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
4610         adjust comments.
4611         * lib.ads: Make comment on internal GCC switches more general.
4612         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
4613         as for C.       
4614         
4615 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4616
4617         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
4618
4619 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4620
4621         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
4622         types.
4623
4624 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4625
4626         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
4627         original type because of the alignment when there is an address clause.
4628
4629 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4630
4631         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
4632         discriminants affect the shape of the subtype, retrieve the GCC type
4633         directly from the original field if the GNAT types for the field and
4634         the original field are the same.
4635
4636 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
4639         New macros.
4640         (TYPE_RM_VALUES): Likewise.
4641         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
4642         (SET_TYPE_RM_SIZE): New macro.
4643         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
4644         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
4645         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
4646         * gcc-interface/gigi.h (create_range_type): Declare.
4647         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
4648         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
4649         <E_Signed_Integer_Subtype>: Build a regular integer type first and
4650         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4651         <E_Floating_Point_Subtype>: Build a regular floating-point type first
4652         and then set the RM bounds.
4653         <E_Array_Type>: Use create_range_type instead of build_range_type.
4654         <E_Array_Subtype>: Build a regular integer type first and then set
4655         the RM bounds for the extra subtype.
4656         <E_String_Literal_Subtype>: Use create_range_type instead of
4657         build_range_type.
4658         <all>: Set the RM bounds for enumeration types and the GCC bounds for
4659         floating-point types.
4660         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
4661         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
4662         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4663         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
4664         types and with RM bounds for subtypes.
4665         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4666         (gnat_print_type) <REAL_TYPE>: New case.
4667         <ENUMERAL_TYPE>: Fall through to above case.
4668         (gnat_get_subrange_bounds): New function.
4669         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
4670         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
4671         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
4672         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
4673         (create_range_type): New function.
4674         (create_param_decl): Build a regular integer type first and then set
4675         the RM bounds for the extra subtype.
4676         (unchecked_convert): Remove kludge for 'Valid.
4677         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
4678         the index to sizetype instead of TYPE_DOMAIN.
4679
4680 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4681
4682         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
4683         parameter and move check for static expression to...
4684         (elaborate_expression): ...here.  Adjust call to above function.
4685         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
4686         in calls to elaborate_expression.
4687         (elaborate_entity): Likewise.
4688         (substitution_list): Likewise.
4689         (maybe_variable): Fix formatting.
4690         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
4691         missing guard.
4692         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
4693
4694 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
4695
4696         * gcc-interface/Make-lang.in: Update dependencies.
4697
4698 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
4699
4700         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
4701         Define sa_handler_pos.
4702         * s-osinte-linux.ads: Use it.
4703         * s-linux-mipsel.ads: New.
4704         * system-linux-mips64el.ads: New.
4705         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
4706         mips64el-linux.
4707
4708 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4709
4710         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
4711         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
4712         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
4713         (Tagged_Type_Expansion): New flag.
4714         Replace use of VM_Target related to tagged types expansion by
4715         Tagged_Type_Expansion, since tagged type expansion is not necessarily
4716         linked to VM targets.
4717
4718 2009-05-06  Robert Dewar  <dewar@adacore.com>
4719
4720         * sem_attr.adb: Add processing for Standard'Compiler_Version
4721
4722         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
4723         skipping.
4724         (Expr_First_Char): Add ??? comment that paren skipping needs work
4725         (Expr_Last_Char): Add ??? comment that paren skipping needs work
4726
4727         * exp_attr.adb: Add processing for Compiler_Version
4728
4729         * sem_attr.adb: New attribute Compiler_Version
4730
4731         * snames.ads-tmpl: Add entries for Compiler_Version attribute
4732
4733         * gnat_rm.texi: Document Compiler_Version attribute
4734
4735 2009-05-06  Robert Dewar  <dewar@adacore.com>
4736
4737         * errout.adb: Minor reformatting
4738
4739         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
4740         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
4741         styleg.adb: Add stylized comments to error messages that are included
4742         in the codefix circuitry of IDE's such as GPS.
4743
4744 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4745
4746         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
4747         new form of the rule parameter that allows to specify the suffix for
4748         access-to-access type names.
4749
4750 2009-05-06  Robert Dewar  <dewar@adacore.com>
4751
4752         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
4753         out parameter assigned when exception handlers are present.
4754
4755         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
4756         assignments on exit.
4757
4758         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
4759         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
4760         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
4761         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
4762         messages that are included in the codefix circuitry of IDE's such as
4763         GPS.
4764
4765         * sinput.ads, sinput.adb (Expr_First_Char): New function
4766         (Expr_Last_Char): New function
4767
4768 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4769
4770         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
4771         Add formal definition for extra exit point metric
4772
4773 2009-05-06  Pascal Obry  <obry@adacore.com>
4774
4775         * adaint.c: Support for setting attributes on unicode filename on
4776         Windows.
4777
4778 2009-05-06  Robert Dewar  <dewar@adacore.com>
4779
4780         * sem_warn.adb: Minor reformatting
4781
4782 2009-05-06  Javier Miranda  <miranda@adacore.com>
4783
4784         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4785         not have discriminants or components with default expressions.
4786         (Analyze_Pragma): For pragma CPP_Class check that imported types
4787         have no discriminants and components have no default expression.
4788
4789         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4790         class-wide types in the expression of a record component association.
4791
4792 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4793
4794         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4795
4796         * gnat_ugn.texi: Add description for the new extra exit points metric
4797         (gnatmetric section).
4798
4799 2009-05-06  Robert Dewar  <dewar@adacore.com>
4800
4801         * s-fileio.adb: Minor comment update
4802
4803         * sem_ch8.adb: Minor reformatting
4804
4805         * exp_ch3.adb: Update comments.
4806
4807 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4808
4809         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4810
4811 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4812
4813         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4814         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4815
4816         * gcc-interface/Make-lang.in: Update dependencies
4817
4818 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4819
4820         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4821         change. The context clause of a generic instance declaration must be
4822         preserved until the end of the compilation, because it may have to be
4823         installed/removed repeatedly.
4824         The latest change to sem.adb ensures that the context of both spec and
4825         body of an instance is traversed before the instance itself, making
4826         this patch redundant.
4827
4828 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4829
4830         * sem_aggr.adb: Fix typo.
4831
4832 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4833
4834         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4835         declaration, do not adjust if the declaration is to be rewritten into
4836         a renaming.
4837
4838 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4839
4840         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4841         discriminant part.
4842
4843 2009-05-06  Bob Duff  <duff@adacore.com>
4844
4845         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4846         otherwise the compiler would be allowed to optimize away the cleanup
4847         code.
4848
4849 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4850
4851         * gnat_ugn.texi: Fix typo.
4852
4853 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4854
4855         * g-debuti.adb: Minor reformatting
4856
4857         * exp_attr.adb: Minor reformatting
4858
4859 2009-05-06  Robert Dewar  <dewar@adacore.com>
4860
4861         * sem_aggr.adb: Minor reformatting.
4862
4863         * g-socthi-vms.adb: Minor reformatting
4864
4865 2009-05-06  Bob Duff  <duff@adacore.com>
4866
4867         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4868         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4869
4870 2009-05-06  Bob Duff  <duff@adacore.com>
4871
4872         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4873         flags.
4874
4875 2009-05-06  Javier Miranda  <miranda@adacore.com>
4876
4877         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4878         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4879         extension aggregates.
4880         (Resolve_Record_Aggregate): Add support for C++ constructors in
4881         extension aggregates.
4882
4883         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4884         constructors in extension aggregates.
4885
4886 2009-05-06  Robert Dewar  <dewar@adacore.com>
4887
4888         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4889         clause.
4890
4891 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4892
4893         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4894         packed type, since on OpenVMS, struct msghdr is packed.
4895
4896 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4897
4898         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4899         call returning an unconstrained composite value, create the proper
4900         subtype for it, as is done for object dclarations with unconstrained
4901         nominal subtypes. Perform this transformation regarless of whether
4902         call comes from source.
4903
4904 2009-05-06  Robert Dewar  <dewar@adacore.com>
4905
4906         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4907         records
4908
4909         * gnat_rm.texi:
4910         Add documentation for pragma Implicit_Packing applied to record
4911         types.
4912
4913 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4914
4915         * sem.adb (Walk_Library_Items): Place all with_clauses of an
4916         instantiation on the spec, because late instance bodies may generate
4917         with_clauses for the instance body but are inserted in the instance
4918         spec.
4919
4920 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4921
4922         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4923         support for returning the directory even if it doesn't exist. This is
4924         used for the object directory, since we are always setting it to a
4925         non-null value, and we should set it to an absolute name rather than a
4926         relative name for the sake of external tools that might depend on it.
4927         (Check_Library_Attributes): When Project.Library_Dir is known, check
4928         that the directory exists.
4929
4930 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4931
4932         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4933         reference is an implicit dereference, do not freeze the designated type
4934         if within a default expression or when preanalyzing a pre/postcondtion.
4935
4936 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4937
4938         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4939         call returning an unconstrained composite value, create the proper
4940         subtype for it, as is done for object dclarations with unconstrained
4941         nominal subtypes
4942
4943 2009-05-06  Robert Dewar  <dewar@adacore.com>
4944
4945         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4946         improvements
4947
4948         * freeze.adb: Minor reformatting
4949
4950 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4951
4952         * sem_ch3.adb (Access_Type_Declaration): An access type whose
4953         designated type is a limited view from a limited with clause (flagged
4954         From_With_Type) is not itself such a limited view.
4955
4956 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4957
4958         * prj-nmsc.adb: Remove unused variable.
4959
4960         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4961         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4962         makeutl.ads, since not all users of prj.ads need this.
4963
4964 2009-05-06  Javier Miranda  <miranda@adacore.com>
4965
4966         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4967         constructor in case of aggregates whose type is a CPP_Class type.
4968
4969 2009-05-06  Robert Dewar  <dewar@adacore.com>
4970
4971         * sem_ch13.adb: Minor comment additions
4972
4973         * osint.adb: Minor reformatting
4974
4975 2009-05-06  Pascal Obry  <obry@adacore.com>
4976
4977         * initialize.c: On Windows, keep full pathname to expanded command
4978         line patterns.
4979
4980 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4981
4982         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4983         an aggregate with box default is of a discriminated private type, do
4984         not build a subaggregate for it.
4985         A proper call to the initialization procedure is generated for it.
4986
4987 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4988
4989         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4990         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4991         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4992         use standard array code for Standard.String.
4993         (Exp_Dist): Bump PolyORB s-parint API version to 3.
4994         (Rtsfind): New entities TA_Std_String, Unbounded_String.
4995
4996 2009-05-06  Robert Dewar  <dewar@adacore.com>
4997
4998         * g-comlin.ads: Minor reformatting
4999
5000         * xoscons.adb: Minor reformatting
5001
5002 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5003
5004         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5005         Underlying_Type before retrieving the type definition for gathering
5006         components, to account for the case where the type is private.
5007
5008 2009-05-06  Tristan Gingold  <gingold@adacore.com>
5009
5010         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5011
5012 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5013
5014         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5015         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5016         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5017         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5018         Windows versions): Fix incorrect base
5019         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5020         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5021         System.Address for the To parameter instead of a Sockaddr_In_Access, to
5022         achieve independance from AF_INET family, and also to allow this
5023         parameter to be retrieved from a Msghdr for the Windows case where
5024         these routines are used to implement C_Sendmsg and C_Recvmsg.
5025
5026 2009-05-06  Bob Duff  <duff@adacore.com>
5027
5028         * g-expect.adb, g-expect.ads: Minor reformatting
5029
5030         * sdefault.ads: Minor comment fix
5031
5032         * g-expect-vms.adb: Minor reformatting
5033
5034         * table.ads, table.adb (Append_All): New convenience procedure for
5035         appending a whole array.
5036
5037         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5038         box message. Call Osint.Dump_Source_File_Names to print out the file
5039         list, instead of rummaging around in various data structures.
5040
5041         * debug.adb: New switch -gnatd.n, to print source file names as they
5042         are read.
5043
5044         * alloc.ads: Add parameters for Osint.File_Name_Chars.
5045
5046         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5047         out source file names during a "bug box".
5048         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5049         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5050         If it's not part of the runtimes, store it for later printing by
5051         Dump_Source_File_Names.
5052
5053 2009-05-06  Javier Miranda  <miranda@adacore.com>
5054
5055         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5056         documentation and add reference to the GNAT user guide for further
5057         details.
5058
5059 2009-05-06  Javier Miranda  <miranda@adacore.com>
5060
5061         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5062         also wrong examples that use extension aggregates.
5063
5064 2009-05-06  Albert Lee  <lee@adacore.com>
5065
5066         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5067         of Msg_Iovlen_T for VMS.
5068
5069 2009-05-04   Laurent GUERBY  <laurent@guerby.net>
5070
5071         PR ada/38874
5072         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5073         
5074 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5075
5076         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5077         box-defaulted operator in an instantiation, when the type of the
5078         operands is not directly visible.
5079
5080 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5081
5082         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5083         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5084         analysis of the ancestor part. Remove prohibition against limited
5085         interpretations of the ancestor expression in the case of Ada 2005.
5086         Revise error message in overloaded case, adding a message to cover
5087         the Ada 2005 case.
5088
5089 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5090
5091         * xoscons.adb: Minor reformatting
5092
5093 2009-04-29  Bob Duff  <duff@adacore.com>
5094
5095         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5096         attribute_definition_clauses for the following attributes when the
5097         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5098         Storage_Size, Write. Otherwise, we get spurious errors (for example,
5099         missing Read attribute on remote types).
5100
5101         * gnat_ugn.texi: Document the change, and add a stern warning.
5102
5103 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5104
5105         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5106         disabled not just for the current scope, but for the innermost dynamic
5107         scope as well.
5108
5109 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5110
5111         * gcc-interface/Make-lang.in: Update dependencies
5112
5113 2009-04-29  Vincent Celier  <celier@adacore.com>
5114
5115         * prj-part.adb: Minor comment update
5116
5117 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5118
5119         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5120         box-initialized records with discriminated subcomponents that are
5121         constrained by discriminants of enclosing components. New subsidiary
5122         procedures Add_Discriminant_Values, Propagate_Discriminants.
5123
5124 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5125
5126         * g-socket.adb: Code clean up.
5127
5128 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5129
5130         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5131         function entity, to cover the case of a parameterless function call
5132         that has not been resolved.
5133
5134 2009-04-29  Robert Dewar  <dewar@adacore.com>
5135
5136         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5137         reformatting and comment updates.
5138
5139 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5140
5141         * gnat_ugn.texi: Update some documentation about interfacing with C++
5142         Mention -fkeep-inline-functions.
5143
5144         * gnat_ugn.texi: Minor edits
5145
5146 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5147
5148         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5149         for a defaulted component of an enclosing aggregate, inherit the type
5150         from the component declaration of the enclosing type. 
5151
5152 2009-04-29  Albert Lee  <lee@adacore.com>
5153
5154         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5155         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5156         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5157         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5158         Relocate the Msghdr record type from GNAT.Sockets.Thin to
5159         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5160         type for the Msg_Iovlen field.
5161
5162 2009-04-29  Vincent Celier  <celier@adacore.com>
5163
5164         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5165         Source_File_Index_Table entries for the source, to avoid crash when
5166         reporting an error.
5167
5168         * gnatcmd.adb (Test_If_Relative_Path): Use
5169         Makeutl.Test_If_Relative_Path.
5170         
5171         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5172         Including_RTS is True.
5173
5174         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5175         Including_RTS defaulted to False.
5176
5177         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5178         a default value.
5179
5180 2009-04-29  Javier Miranda  <miranda@adacore.com>
5181
5182         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5183
5184 2009-04-29  Javier Miranda  <miranda@adacore.com>
5185
5186         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5187         associated with dyamically tagged expressions if the expression
5188         initializing a tagged type corresponds with a non default CPP
5189         constructor.
5190         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5191         of limited type objects.
5192
5193         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5194         when a CPP constructor is called in an assignment. Disable also the
5195         error message associated with dyamically tagged expressions if the
5196         exporession initializing a tagged type corresponds with a non default
5197         CPP constructor.
5198
5199         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5200         non-default C++ constructors.
5201
5202         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5203
5204         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5205         non-default constructors.
5206         (Init_Proc): Add support for non-default constructors.
5207
5208         * exp_disp.adb (Set_Default_Constructor): Removed.
5209         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5210         but extending its functionality to handle non-default constructors.
5211
5212         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5213         constructors. Minor code cleanup removing unrequired label and goto
5214         statement.
5215
5216         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5217         constructors.
5218         (Build_Init_Statements): Add support for non-default constructors.
5219         (Expand_N_Object_Declaration): Add support for non-default constructors.
5220         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5221         to Set_CPP_Constructors.
5222
5223         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5224         non-default constructors.
5225         Required to handle its use in build-in-place statements.
5226
5227         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5228         pragma for non-default C++ constructors and the new compiler support
5229         that allows the use of these constructors in record components, limited
5230         aggregates, and extended return statements.
5231
5232 2009-04-29  Vincent Celier  <celier@adacore.com>
5233
5234         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5235         project extending an abstract project.
5236
5237 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5238
5239         * targparm.ads: Fix oversight.
5240
5241 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5242
5243         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5244         derivation when necessary, to find the user-subprogram that is actally
5245         being overridden.
5246
5247 2009-04-29  Robert Dewar  <dewar@adacore.com>
5248
5249         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5250         components
5251
5252 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5253
5254         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5255         primitive operation, rather than source line of synchronized type, when
5256         building the wrapper for a primitive operation that overrides an
5257         operation inherited from a progenitor, to improve the error message on
5258         duplicate declarations.
5259
5260         * sem_ch3.adb (Process_Full_View): Use new signature of
5261         Build_Wrapper_Spec.
5262
5263 2009-04-29  Robert Dewar  <dewar@adacore.com>
5264
5265         * prj-nmsc.ads: Minor reformatting
5266
5267 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5268
5269         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5270         expression on the existing parent If statement.
5271
5272 2009-04-29  Robert Dewar  <dewar@adacore.com>
5273
5274         * prj-proc.adb, prj.ads: Minor reformatting
5275
5276 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5279         existing parent If statement on the newly created one.
5280
5281 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5282
5283         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5284         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5285         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5286         (Set_In_Configuration, In_Configuration): Removed.
5287         Replaced by an extra parameter Is_Config_File in several parameter to
5288         avoid global variables to store the state of the parser.
5289
5290 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5291
5292         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5293         with_clauses generated for the same unit through rtsfind, and that
5294         appear in the context of different units.
5295
5296         * rtsfind.adb: New attribute First_Implicit_With, component of the
5297         Unit_Record that stores information about a unit loaded through rtsfind.
5298
5299 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5300
5301         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5302         (other conditions permitting), so that abstract stream subprograms will
5303         be declared for them.
5304
5305 2009-04-29  Bob Duff  <duff@adacore.com>
5306
5307         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5308
5309         * g-expect.ads: Minor comment fixes.
5310
5311 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5312
5313         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5314         dispatching operation is a body without previous spec, update the list
5315         of primitive operations to ensure that cross-reference information is
5316         up-to-date.
5317
5318 2009-04-29  Albert Lee  <lee@adacore.com>
5319
5320         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5321         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5322         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5323         (GNAT.Sockets.Thin.C_Readv,
5324         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5325         (GNAT.Sockets.Thin.C_Recvmsg,
5326         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5327         sendmsg(2).  
5328         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5329         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5330
5331 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5332
5333         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5334         operation is a body without previous spec, update the list of
5335         primitive operations to ensure that cross-reference information is
5336         up-to-date.
5337
5338         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5339         new compilation unit node for the instance declaration, keep the
5340         context items of the original unit on it, so that the context of the
5341         instance body only holds the context inherited from the generic body.
5342
5343 2009-04-29  Bob Duff  <duff@adacore.com>
5344
5345         * sem_res.adb: Minor comment fix.
5346
5347 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5348
5349         * sem_elim.adb: Minor reformatting
5350
5351 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5352
5353         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5354         predefined unit, allow arbitrary number of components in static
5355         aggregate, to ensure that the same level of constant folding applies
5356         for Ada 95 and Ada 05 versions of the file.
5357
5358 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5359
5360         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5361         information: no need for full scope check.
5362         (Eliminate_Error): Do not emit error in a generic context.
5363
5364 2009-04-29  Ed Falis  <falis@adacore.com>
5365
5366         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5367         VxWorks 653 POS does not support rmdir.
5368
5369 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5370
5371         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5372         results are printed.
5373
5374 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5375
5376         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5377         unused assignment.
5378
5379 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5380
5381         * make.adb: Minor reformatting.
5382         Minor code reorganization throughout.
5383
5384 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5385
5386         * s-stausa.ads: Changed visibility of type Task_Result: moved to
5387         public part to give application visibility over it.
5388         This is for future improvement and to build a public API on top of it.
5389         Changed record components name of type Task_Result to reflect the new
5390         way of reporting. 
5391
5392         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5393         reporting Stack usage.
5394
5395         * gnat_ugn.texi: Update doc of stack usage report.
5396
5397         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5398
5399         * Makefile.rtl: Add new run-time files.
5400
5401 2009-04-29  Pascal Obry  <obry@adacore.com>
5402
5403         * initialize.c: Do not expand quoted arguments.
5404
5405 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5406
5407         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5408
5409         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5410          Prj.Ultimate_Extending_Project_Of
5411
5412 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5413
5414         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5415         Amendment type, add the with_clause for Finalization.List_Controller
5416         only if the current context is a package body.
5417
5418 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5419
5420         * sem_ch12.adb: Minor reformatting
5421
5422         * sem_aggr.adb: Minor reformatting
5423
5424         * sem_ch6.adb, sem_cat.ads: Minor reformatting
5425
5426         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5427
5428 2009-04-29  Quentin Ochem  <ochem@adacore.com>
5429
5430         * prj.ads (Source_Id): Now general pointer type.
5431
5432 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5433
5434         * exp_ch7.adb, rtsfind.adb: Minor reformatting
5435
5436         * sem_res.adb: Minor reformatting
5437
5438 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5439
5440         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5441         operands is static only if it is a predefined concatenation operator.
5442
5443         * sem_util.adb: Minor reformatting
5444
5445         * sem_ch12.adb (Save_References): When propagating semantic information
5446         from generic copy back to generic template, for the case of an
5447         identifier that has been rewritten to an explicit dereference whose
5448         prefix is either an object name or a parameterless funcion call
5449         denoting a global object or function, properly capture the denoted
5450         global entity: perform the corresponding rewriting in the template,
5451         and point the rewritten identifier to the correct global entity (not
5452         to the associated identifier in the generic copy).
5453
5454 2009-04-29  Robert Dewar  <dewar@adacore.com>
5455
5456         * rtsfind.adb, prj-env.adb: Minor reformatting
5457         Minor code reorganization
5458
5459 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5460
5461         * make.adb: Fix comment
5462
5463         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5464         is given as argument, as might happen in gnatmake.
5465
5466 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5467
5468         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5469         an abstract operation of a progenitor is not properly overridden by an
5470         operation of a derived synchronized type.
5471
5472 2009-04-29  Robert Dewar  <dewar@adacore.com>
5473
5474         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5475         prj-proc.adb: Minor reformatting
5476         Minor code reorganization
5477
5478 2009-04-29  Bob Duff  <duff@adacore.com>
5479
5480         * exp_ch7.adb (Build_Final_List): For an access type that designates a
5481         Taft Amendment type, if the access type needs finalization, make sure
5482         the implicit with clause for List_Controller occurs on the package spec.
5483
5484         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5485         with's created for the pseudo-children of Text_IO and friends. In
5486         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5487         Ada.Text_IO.Integer_IO both with-ing each other.
5488
5489         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5490         oddball cases when pragma Extend_System is used.
5491
5492         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5493         the case where a package spec instantiates a generic whose body with's
5494         this package, so Walk_Library_Items won't complain about cyclic with's.
5495
5496 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5497
5498         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5499         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5500         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5501         (Project_Id): now a real pointer to Project_Data, instead of an index
5502         into the Projects_Table. This simplifies the API significantly, avoiding
5503         extra lookups in this table and the need to pass the Project_Tree_Ref
5504         parameter in several cases
5505
5506 2009-04-29  Nicolas Setton  <setton@adacore.com>
5507
5508         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5509         darwin.
5510
5511 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
5512
5513         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5514         back kludge.
5515
5516 2009-04-24  Robert Dewar  <dewar@adacore.com>
5517
5518         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5519         clean.adb: Minor reformatting.
5520         Minor code reorganization and message improvement.
5521
5522 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5523
5524         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5525         (Alternate_Languages): now implemented as a malloc-ed list rather
5526         than through a table.
5527
5528 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5529
5530         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5531         accurately handle cases such as "lit" & "lit" and
5532         "lit" & static_string_constant
5533
5534 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5535
5536         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5537         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5538         removed. Lists of projects are now implemented via standard malloc
5539         rather than through the table.
5540
5541 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5542
5543         * sem_ch12.adb: Minor reformatting
5544
5545         * g-trasym.adb: Minor reformatting
5546
5547         * exp_ch6.adb: Minor reformatting
5548
5549 2009-04-24  Robert Dewar  <dewar@adacore.com>
5550
5551         * layout.adb (Layout_Type): For packed array type, copy unset
5552         size/alignment fields from the referenced Packed_Array_Type.
5553
5554 2009-04-24  Bob Duff  <duff@adacore.com>
5555
5556         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
5557         longer needed after sem_ch12 changes.
5558
5559         * sem.adb (Walk_Library_Items): Include with's in some debugging
5560         printouts.
5561
5562 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5563
5564         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
5565         only ever using the Project field.
5566
5567 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5568
5569         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
5570         Body_Required on the generated compilation node. The new node is linked
5571         to its body, but both share the same file, so we do not set this flag
5572         on the new unit so as not to create a spurious dependency on a
5573         non-existent body in the ali file for the instance.
5574
5575 2009-04-24  Robert Dewar  <dewar@adacore.com>
5576
5577         * make.adb: Minor reformatting
5578
5579 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5580
5581         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
5582         Add_Source): merge some code between those. In particular change where
5583         file normalization is done to avoid a few extra calls to
5584         Canonicalize_File_Name. This also removes the need for passing
5585         Current_Dir in a number of subprograms.
5586
5587 2009-04-24  Bob Duff  <duff@adacore.com>
5588
5589         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
5590         False, assign the correct unit to the Cunit field of the new table
5591         entry. We want the spec unit, not the body unit.
5592
5593         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
5594         interface for these.
5595         (Maybe_Add_With): Check whether we're trying to a with on the current
5596         unit, and avoid creating such directly self-referential with clauses.
5597         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
5598         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
5599         and matches existing comments in the spec.
5600
5601         * sem.adb (Walk_Library_Items): Add various special cases to make the
5602         assertions pass.
5603
5604         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
5605         instead of Parent (N), for uniformity.
5606
5607 2009-04-24  Robert Dewar  <dewar@adacore.com>
5608
5609         * errout.ads: Minor reformatting
5610
5611 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5612
5613         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
5614         behavior when the project includes sources from multiple languages
5615
5616 2009-04-24  Vincent Celier  <celier@adacore.com>
5617
5618         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
5619         is a language other than Ada declared.
5620
5621         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
5622         Imported_First set to True.
5623
5624 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5625
5626         * sem_res.adb: additional optimization to inhibit creation of
5627         redundant transient scopes.
5628
5629 2009-04-24  Bob Duff  <duff@adacore.com>
5630
5631         * rtsfind.ads: Minor comment fix
5632
5633 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5634
5635         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
5636         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
5637         basically doing the same work (for explicit or implicit sources).
5638         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
5639         role. Rewritten to share some code (testing that all explicit sources
5640         have been found) between ada_only and multi_language modes.
5641
5642 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
5643
5644         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
5645         for CLI imported types.
5646         (Analyze_Pragma): Allow CIL or Java imported functions returning
5647         access-to-subprogram types.
5648
5649 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5650
5651         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
5652         (Project_Data.Dir_Path): field removed, since it can be computed
5653         directly from .Directory, and is needed only once when processing the
5654         project is buildgpr.adb or make.adb
5655
5656 2009-04-24  Robert Dewar  <dewar@adacore.com>
5657
5658         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
5659         rtsfind.adb: Minor reformatting.
5660         Minor code reorganization
5661
5662 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5663
5664         * mlib-prj.adb: Use friendlier english identifier.
5665
5666         * gnatcmd.adb, make.adb: Use better english identifiers.
5667
5668 2009-04-24  Robert Dewar  <dewar@adacore.com>
5669
5670         * clean.adb: Minor reformatting
5671
5672 2009-04-24  Robert Dewar  <dewar@adacore.com>
5673
5674         * einfo.adb (OK_To_Rename): New flag
5675
5676         * einfo.ads (OK_To_Rename): New flag
5677
5678         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
5679         OK_To_Rename set.
5680
5681         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
5682
5683         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
5684         OK_To_Rename.
5685
5686 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5687
5688         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
5689         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
5690         field removed. This is not a property of the
5691         project, just a boolean used to traverse the project tree, and storing
5692         it in the structure prevents doing multiple traversal in parallel.
5693         (Project_Data.Checked): also removed, since it was playing the same role
5694         as Seen when we had two nested loops, and this is no longer necessary
5695         (For_All_Imported_Projects): removed, since in fact there was already
5696         the equivalent in For_Every_Project_Imported. The latter was rewritten
5697         to use a local hash table instead of Project_Data.Seen
5698         Various loops were rewritten to use For_Every_Project_Imported, thus
5699         removing the need for Project_Data.Seen. This avoids a lot of code
5700         duplication
5701
5702 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5703
5704         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
5705         statements, even though the actual of the call is a concatenation,
5706         because the argument is static, and we want to preserve warning
5707         messages  about sequences of code statements that are not marked
5708         volatile.
5709
5710         * sem_warn.adb: remove obsolete comment about warning being obsolete
5711
5712         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
5713         requeued and the delay has expired while within the accept statement
5714         that executes the requeue, do not perform the requeue and indicate that
5715         the timed call has been aborted.
5716
5717 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5718
5719         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5720         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
5721         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
5722         since they can be computed from the above.
5723
5724 2009-04-24  Vincent Celier  <celier@adacore.com>
5725
5726         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
5727
5728         * prj-env.adb: Move all global variables to the private part of the
5729         project tree data.
5730         Access these new components instead of the global variables no longer
5731         in existence.
5732         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
5733         components that were previously global variables.
5734
5735         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
5736         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
5737         parameter.
5738
5739         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
5740         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
5741
5742         * prj.adb (Initialize): Do not call Prj.Env.Initialize
5743         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
5744         components in the private part of the project tree data.
5745
5746         * prj.ads (Private_Project_Tree_Data): new components moved from
5747         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
5748         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
5749         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
5750
5751 2009-04-24  Vincent Celier  <celier@adacore.com>
5752
5753         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
5754
5755         * prj-nmsc.adb (Check_Library): No error for imports by shared library
5756         projects, when --unchecked-shared-lib-imports is used.
5757
5758 2009-04-24  Robert Dewar  <dewar@adacore.com>
5759
5760         * sem_ch7.adb: Minor reformatting
5761
5762 2009-04-24  Tristan Gingold  <gingold@adacore.com>
5763
5764         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
5765         mach thread id.
5766
5767 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5768
5769         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
5770         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
5771         (For_All_Imported_Projects): new procedure
5772         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
5773         above rather than duplicating code.
5774
5775 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5776
5777         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5778         (Source_Id, Source_Data): use a real list to store sources rather than
5779         using an external table to store the elements. This makes code more
5780         efficient and more readable.
5781
5782 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5783
5784         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5785         (Source_Iterator): new type.
5786         This removes the need for having the sources on three different
5787         lists at the project tree, project and language level. They are now
5788         on a single list.
5789
5790 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5791
5792         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5793
5794 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5795
5796         * sem_warn.adb: Add comment on obsolete warning
5797
5798 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5799
5800         * s-tassta.adb (Create_Task): Fix violation of locking rule.
5801
5802 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5803
5804         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5805         to Language_Ptr to better reflect its new implementation.
5806         (Project_Data.First_Languages_Processing): renamed to Languages now
5807         that the field with that name is no longer used
5808         (Project_Data.Languages): removed, no longer used, and duplicates
5809         information already available through First_Language_Processing.
5810         (Prj.Language_Index): now an actual pointer, instead of an index into
5811         a table. This makes the list somewhat more obvious, but more importantly
5812         removes the need to pass a pointer to the project_tree_data in a few
5813         places, and makes accessing the attributes of a languages more
5814         efficient.
5815
5816 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5817             Thomas Quinot  <quinot@adacore.com>
5818
5819         * fe.h (Set_Identifier_Casing): Add const to second parameter.
5820         * gcc-interface/misc.c (internal_error_function): Make copy of return
5821         from pp_formatted_text before assigning BUFFER to it.
5822         (gnat_init): Likewise for main_input_filename and gnat_argv.
5823         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5824
5825 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5826
5827         * ttypes.ads (Target_Double_Float_Alignment): New variable.
5828         (Target_Double_Scalar_Alignment): Likewise.
5829         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5830         (Get_Double_Float_Alignment): New imported function.
5831         (Get_Double_Scalar_Alignment): Likewise.
5832         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5833         the alignment of "double" floating-point types and "double" or larger
5834         scalar types, as parameterized by Target_Double_Float_Alignment and
5835         Target_Double_Scalar_Alignment respectively.
5836         * gcc-interface/gigi.h (double_float_alignment): Declare.
5837         (double_scalar_alignment): Likewise.
5838         (is_double_float_or_array): Likewise.
5839         (is_double_scalar_or_array): Likewise.
5840         (get_target_double_float_alignment): Likewise.
5841         (get_target_double_scalar_alignment): Likewise.
5842         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5843         (get_target_strict_alignment): ...this.
5844         (get_target_double_float_alignment): New function.
5845         (get_target_double_scalar_alignment): Likewise.
5846         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5847         Test the presence of an alignment clause for under-aligned integer
5848         types.  Take into account specific caps for the alignment of "double"
5849         floating-point types and "double" or larger scalar types, as
5850         parameterized by Target_Double_Float_Alignment and
5851         Target_Double_Scalar_Alignment respectively.
5852         (validate_alignment): Likewise.
5853         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5854         (gigi): Initialize double_float_alignment and double_scalar_alignment.
5855         * gcc-interface/utils.c (double_float_alignment): New global variable.
5856         (double_scalar_alignment): Likewise.
5857         (is_double_float_or_array): New predicate.
5858         (is_double_scalar_or_array): Likewise.
5859
5860 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5861
5862         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5863         the conditional expression only if it is common to both arms.
5864
5865 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5866
5867         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5868         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5869         arguments to build_allocator.
5870         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5871         Remove code handling special allocator and assert its uselessness.
5872
5873 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5874
5875         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5876         alignment is specified, do not promote that of the component type
5877         beyond it.
5878         <E_Array_Subtype>: Likewise.
5879
5880 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5881
5882         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5883         * sinfo.ads (Object Declaration): Likewise.
5884         (Assignment Statement): Likewise.
5885         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5886         Do not force Is_True_Constant to false on the temporary.
5887         (Freeze_Entity): Do not force Is_True_Constant to false on names on
5888         the RHS of object declarations.
5889         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5890         New case.  Return 1 if the object is atomic.
5891         <N_Assignment_Statement>: Likewise.
5892
5893 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5894
5895         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5896         For packed array types, make the original array type a parallel type
5897         for the modular type and its JM wrapper if the type is bit-packed.
5898         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
5899         record type for packed array types.  Remove kludge.
5900
5901 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5902
5903         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5904         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5905         Use front-end predicates to compute signedness and precision.
5906         <E_String_Literal_Subtype>: Fold range type.
5907         Make sure to set longest_float_type_node to a scalar type.
5908         (elaborate_entity): Use consistent Constraint_Error spelling.
5909         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5910         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5911         output for the modulus, if any.
5912         <ENUMERAL_TYPE>: Likewise for the RM size.
5913         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5914         spelling.
5915         * gcc-interface/utils.c (finish_record_type): Really test the alignment
5916         of BLKmode bit-fields to compute their addressability.
5917         (create_index_type): Adjust comments.
5918         (create_param_decl): Create the biased subtype manually.
5919         * gcc-interface/utils2.c (build_component_ref): Use consistent
5920         Constraint_Error spelling.
5921
5922 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5923
5924         * gcc-interface/cuintp.c: Clean up include directives.
5925         * gcc-interface/targtyps.c: Likewise.
5926         * gcc-interface/decl.c: Likewise.
5927         * gcc-interface/misc.c: Likewise.
5928         * gcc-interface/trans.c: Likewise.
5929         * gcc-interface/utils.c: Likewise.
5930         * gcc-interface/utils2.c: Likewise.
5931         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5932
5933 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5934
5935         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5936         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
5937         (SET_DECL_LANG_SPECIFIC): Likewise.
5938         Reorder macros.
5939         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5940         Update comment about use of build_range_type.
5941         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5942         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5943         check for other cases of overloading.
5944         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5945         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5946         Use size_int in lieu of build_int_cst.
5947         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5948         build_range_type.
5949
5950 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5951
5952         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5953         type is an enumeral or a boolean type, change it to an integer type
5954         with the same mode and signedness.
5955
5956 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5957
5958         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5959         for an external constant whose initializer is not absolute.
5960
5961 2009-04-22  Taras Glek  <tglek@mozilla.com>
5962
5963         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5964         * gcc-interface/trans.c: Likewise.
5965         * gcc-interface/utils.c: Likewise.
5966
5967 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5968
5969         * sem_res.adb: Create block around procedure call when actual is a
5970         concatenation.
5971
5972 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5973
5974         * s-soflin.ads: Fix typos
5975
5976 2009-04-22  Vincent Celier  <celier@adacore.com>
5977
5978         * prj-env.adb: Minor comment change
5979
5980         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5981         Get_Name_String with No_File.
5982
5983         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5984         cannot be created even when not in verbose mode.
5985
5986 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5987
5988         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5989         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5990         Multi_Language modes, to avoid code duplication.
5991         (Project_Data.Include_Language): Removed.
5992
5993 2009-04-22  Vincent Celier  <celier@adacore.com>
5994
5995         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5996         the temporary file cannot be created, indicating the directory when the
5997         creation was attempted.
5998
5999 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6000
6001         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6002         the language names, not their indices.
6003
6004 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6005
6006         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6007         (Source_Data.Language_Name): Field removed.
6008
6009 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6010
6011         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6012         Two fields removed.
6013
6014 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6015
6016         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6017         separate_suffix to the same value as the body_suffix.
6018
6019 2009-04-22  Robert Dewar  <dewar@adacore.com>
6020
6021         * prj.adb: Minor code reorganization
6022         Code clean up.
6023
6024         * prj-proc.adb: Minor code reorganization, clean up.
6025
6026         * prj-nmsc.adb: Minor reformatting
6027         Minor code reorganization
6028
6029         * gnat_ugn.texi: Add to doc on strict aliasing
6030
6031 2009-04-22  Pascal Obry  <obry@adacore.com>
6032
6033         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6034         SpinCount.
6035
6036         * s-tasini.adb: Minor reformatting.
6037
6038         * s-tassta.adb: Minor reformatting.
6039
6040 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6041
6042         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6043         smaller subprograms.
6044         Renamed to Check_File_Naming_Schemes to avoid confusion with the
6045         other Check_Naming_Schemes functions that plays a totally different
6046         role.
6047         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6048         extracted from the above. These were partially rewritten to avoid
6049         unnecessary code and temporary variables.
6050         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6051         and Get_Unit (which for now still exist since they contain mode-specific
6052         code)
6053
6054 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6055
6056         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6057         Remove duplicated code.
6058         (Canonical_Case_File_Name): new subprogram
6059         (Check_And_Normalize_Unit_Names): new subprogram
6060         (Write_Attr): new subprogram
6061         Better sharing of code
6062         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6063         split Check_Naming and help find duplicated code
6064         (Check_Common): new subprogram, sharing code between ada_only and
6065         multi_language mode.
6066         (Naming_Data.Dot_Repl_Loc): field removed
6067
6068 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6069
6070         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6071         Minor refactoring to reduce the size of
6072         Process_Sources_In_Multi_Language_Mode.
6073         Avoid extra copied of Source_Data, which we found in the past could be
6074         quite slow.
6075         (Mark_Excluded_Sources): new subprogram.
6076         (Remove_Locally_Removed_Files_From_Units): merged into the above
6077         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6078         and allow better sharing of code between multi_lang and ada_only modes
6079         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6080
6081 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6082
6083         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6084         Removed, since unused.
6085
6086 2009-04-22  Vincent Celier  <celier@adacore.com>
6087
6088         * prj-attr.adb: New single project level attribute
6089         Separate_Run_Path_Options.
6090
6091         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6092         attribute Seperate_Run_Path_Options.
6093
6094         * prj.ads: (Project_Configuration): New Boolean component
6095         Separate_Run_Path_Options, defaulted to False.
6096
6097         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6098
6099 2009-04-22  Robert Dewar  <dewar@adacore.com>
6100
6101         * sem_type.adb: Minor reformatting
6102
6103         * mlib.adb: Minor reformatting
6104
6105         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6106         syntax error.
6107
6108 2009-04-22  Nicolas Setton  <setton@adacore.com>
6109
6110         * link.c: Add flag __gnat_separate_run_path_options.
6111
6112         * mlib.adb (Separate_Run_Path_Options): New subprogram.
6113
6114         * mlib.ads (Separate_Run_Path_Options): Declare.
6115
6116         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6117         switch per directory, rather than one "rpath" switch listing all
6118         directories.
6119
6120         * gnatlink.adb (Process_Binder_File): Likewise.
6121
6122         * make.adb (Gnatmake): Likewise.
6123
6124 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
6125
6126         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6127         Add a call to Move_Final_List when the target of the assignment is a
6128         return object that needs finalization and the expression is a
6129         controlled build-in-place function.
6130
6131 2009-04-22  Vincent Celier  <celier@adacore.com>
6132
6133         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6134         Including_Libraries set to True.
6135
6136 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
6137
6138         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6139         create a unit table entry for the subprogram declaration created for a
6140         child suprogram body that has no separate specification.
6141
6142         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6143         subprogram body, call Make_Child_Decl_Unit.
6144
6145         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6146         table can only be the created specification of a child subprogram body
6147         that is the main unit, which has not been entered in the table yet.
6148
6149         * errout.adb  (Output_Messages): Ignore created specification of a
6150         child subprogram body to prevent repeated listing of error messages.
6151
6152         * gnat1drv.adb (gnat1drv): The generated specification for a child
6153         subprogram body does not generate code.
6154
6155 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
6156
6157         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6158         since this unit is now part of bootstrap units, so must use Ada 95
6159         syntax only.
6160
6161 2009-04-22  Thomas Quinot  <quinot@adacore.com>
6162
6163         * a-tasatt.adb: Minor reformatting
6164
6165 2009-04-22  Bob Duff  <duff@adacore.com>
6166
6167         * s-stalib.ads: Remove "with System;" since we're inside System, so
6168         it's unnecessary.
6169
6170 2009-04-22  Vincent Celier  <celier@adacore.com>
6171
6172         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6173         the source record, as there may be a dependency file even if no object
6174         file is created.
6175
6176 2009-04-22  Robert Dewar  <dewar@adacore.com>
6177
6178         * lib-load.adb: Minor reformatting
6179
6180         * lib-load.ads: Minor reformatting
6181
6182         * sinfo.ads: Minor reformatting
6183
6184 2009-04-22  Bob Duff  <duff@adacore.com>
6185
6186         * exp_pakd.adb: Minor comment fixes.
6187
6188         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6189         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6190         include units containing instantiations, as well as units that are
6191         generic instantiations.
6192
6193         * sem.adb: Include dependents and corresponding specs/bodies in the
6194         unit walk.
6195
6196         * gcc-interface/Make-lang.in:
6197         sem now depends on s-bitops, because of the packed array of Booleans.
6198
6199 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6200
6201         * gcc-interface/ada-tree.def: Fix formatting nits.
6202         (REGION_STMT): Delete.
6203         (HANDLER_STMT): Likewise.
6204         * gcc-interface/ada-tree.h: Fix formatting nits.
6205         (IS_STMT): Delete.
6206         (REGION_STMT_BODY): Likewise.
6207         (REGION_STMT_HANDLE): Likewise.
6208         (REGION_STMT_BLOCK): Likewise.
6209         (HANDLER_STMT_ARG): Likewise.
6210         (HANDLER_STMT_LIST): Likewise.
6211         (HANDLER_STMT_BLOCK): Likewise.
6212         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6213         (fp_size_to_prec): Likewise.
6214         (largest_move_alignment): Delete.
6215         (gnat_compute_largest_alignment): Likewise.
6216         Fix minor nits.
6217         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6218         Remove redundant code.
6219         <E_Array_Type>: Remove redundant assert.
6220         <E_Array_Subtype>: Exit early from index computation in pathological
6221         cases.
6222         Rewrite conditional assignment.
6223         (make_type_from_size): Likewise.
6224         * gcc-interface/misc.c (largest_move_alignment): Delete.
6225         (gnat_finish_incomplete_decl): Likewise.
6226         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6227         (asm_out_file): Likewise
6228         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6229         (gnat_dwarf_name): Move around.
6230         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6231         (gigi): Remove call to gnat_compute_largest_alignment.
6232         * utils.c (create_field_decl): Rewrite conditional assignment.
6233         Fix minor nits.
6234
6235 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6236
6237         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6238         on entry.  Defer common processing for types.  Reorder and clean up.
6239         Compute the equivalent GNAT node and the default size for types only.
6240         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6241         <E_Access_Type>: For an unconstrained designated type, do not pretend
6242         that a dummy type is always made.
6243         <all> Fix nits in comments.
6244         (validate_size): Fix formatting nits and comments.
6245         (set_rm_size): Likewise.
6246         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6247         passed to TARGET_PROMOTE_PROTOTYPES hook.
6248
6249 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6250
6251         * fe.h (Get_External_Name): Declare.
6252         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6253         (concat_name): ...this.
6254         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6255         gnu_entity_name and adjust for above renaming.
6256         <E_Access_Type>: Use create_concat_name to get the name of the various
6257         types associated with unconstrained array types.
6258         (make_aligning_type): Adjust for above renaming.
6259         (maybe_pad_type): Likewise.
6260         (components_to_record): Likewise.  Use get_identifier_with_length for
6261         the encoding of the variant.
6262         (get_entity_name): Use get_identifier_with_length.
6263         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
6264         Do not fiddle with Name_Buffer.
6265         (concat_id_with_name): Rename to...
6266         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
6267         with Name_Buffer.
6268         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6269         above renaming.
6270
6271 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
6272
6273         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6274         license notices.
6275
6276 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6277
6278         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6279
6280 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6281
6282         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6283         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6284         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6285         Remove useless support code for packed array types and assert its
6286         uselessness.
6287         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6288         adjust for TYPE_RM_SIZE change.
6289         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
6290         of Associated_Node_For_Itype accessor for packed array types.
6291         (make_packable_type): Likewise.
6292         (maybe_pad_type): Likewise.
6293         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
6294         TYPE_RM_SIZE change.
6295         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6296         (rm_size): Fix nits in comments.  Rework conditional statements.
6297         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6298         change.
6299         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6300         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6301         appropriate function to initialize the size_type_node.  Adjust for
6302         TYPE_RM_SIZE change.
6303
6304 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6305
6306         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6307         for imported subprograms.
6308
6309 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6310
6311         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6312         constant objects covered by 13.3(19) volatile.
6313
6314 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6315
6316         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6317         of dummy fat pointer types to the debug back-end.
6318
6319 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6320
6321         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6322         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6323         before wrapping it up in the record type.  Do not overwrite the
6324         Ada size of the record type with the Esize.
6325
6326 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6327
6328         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6329         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6330         if the conversion is on the LHS of an assignment and a no-op.
6331         <all> Do not convert the result to the result type if the Parent
6332         node is such a conversion.
6333
6334 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6335
6336         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6337         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6338         of types with unknown discriminants.
6339         (substitute_in_type): Rewrite and restrict to formal substitutions.
6340         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6341         (update_pointer_to): Update comment.
6342
6343 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6344
6345         * sem_ch8.adb (Use_One_Package): In an instance, if two
6346         potentially_use_visible and non-overloadable homonyms are available
6347         from  the actuals of distinct formal packages, retain the current one,
6348         which was visible in the generic, to prevent spurious visibility
6349         errors.
6350         (End_Use_Package): Restore use_visibility when needed.
6351
6352 2009-04-20  Sergey Rybin  <rybin@adacore.com>
6353
6354         * gnat_ugn.texi, vms_data.ads: Update doc.
6355
6356 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6357
6358         * gcc-interface/Make-lang.in: Update dependencies
6359
6360         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6361         Windows.
6362
6363 2009-04-20  Robert Dewar  <dewar@adacore.com>
6364
6365         * checks.ads: Fix documentation of range check handling
6366
6367 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6368
6369         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6370         a redundant use_type clause.
6371
6372 2009-04-20  Robert Dewar  <dewar@adacore.com>
6373
6374         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6375         this attribute can be evaluated at compile time.
6376         (Eval_Attribute, case Range_Length): Same improvement
6377
6378         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6379
6380 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6381
6382         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6383         for better handling of null procedures.
6384         (Check_Overriding_Indicator): Do not emit a warning on a missing
6385         overriding indicator on an operator when the type of which the operator
6386         is a primitive is private.
6387
6388 2009-04-20  Bob Duff  <duff@adacore.com>
6389
6390         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6391         debugging output.
6392
6393 2009-04-20  Robert Dewar  <dewar@adacore.com>
6394
6395         * sem_attr.adb: Minor reformatting
6396
6397         * gnatcmd.adb: Minor reformatting
6398
6399 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6400
6401         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6402         overloaded and one interpretation matches the context, label the
6403         operand with the type of first formal.
6404
6405 2009-04-20  Bob Duff  <duff@adacore.com>
6406
6407         * debug.ads: Minor comment fix.
6408
6409         * debug.adb: Minor comment fixes.
6410
6411 2009-04-20  Javier Miranda  <miranda@adacore.com>
6412
6413         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6414
6415         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6416
6417         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6418         is expanded into a call to Raise_Exception, avoid passing the
6419         exception-name'identity in runtimes in which this argument
6420         is not used.
6421
6422 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
6423
6424         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6425         generated bindings for cil.
6426
6427 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6428
6429         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6430         discriminants, collect components from the Underlying_Record_View,
6431         which will be used in the expansion of the aggregate into assignments.
6432
6433         * sem_ch3.adb: Do not label derived type with unknown discriminants as
6434         having a private declaration.
6435
6436 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6437
6438         * exp_util.adb (Expand_Subtype_From_Expr): use the
6439         underlying_record_view when available, to create the proper constrained
6440         subtype for an object of a derived type with unknown discriminants.
6441
6442 2009-04-20  Javier Miranda  <miranda@adacore.com>
6443
6444         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6445         formals that have pragma unreferenced.
6446
6447 2009-04-20  Pascal Obry  <obry@adacore.com>
6448
6449         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6450         Remove all calls to To_Lower_If_Case_Insensitive to preserve
6451         the pathname original casing.
6452
6453 2009-04-20  Robert Dewar  <dewar@adacore.com>
6454
6455         * g-trasym.adb: Minor reformatting
6456
6457         * s-os_lib.adb: Minor reformatting
6458
6459         * sem.adb: Minor reformatting
6460         Minor code reorganization
6461
6462         * sem_ch3.adb: Minor reformatting
6463
6464         * sem_ch4.adb: Minor reformatting
6465
6466         * sem_ch8.adb: Minor reformatting
6467
6468         * sem_type.adb: Minor reformatting
6469
6470 2009-04-20  Javier Miranda  <miranda@adacore.com>
6471
6472         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6473         generated by derivations of tagged types use the aliased subprogram a
6474         reference to locate their controlling type.
6475
6476 2009-04-20  Tristan Gingold  <gingold@adacore.com>
6477
6478         * g-trasym.adb: Set size of result buffer before calling
6479         convert_address.
6480
6481 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6482
6483         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6484         to a function returning an array can be interpreted as a call with
6485         defaulted parameters whose result is indexed, take into account the
6486         types of all the indices of the array result type.
6487
6488 2009-04-20  Pascal Obry  <obry@adacore.com>
6489
6490         * a-direct.adb, s-os_lib.adb: Minor reformatting.
6491
6492 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6493
6494         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6495         null exclusion qualifiers for object renaming declarations.
6496
6497 2009-04-20  Nicolas Roche  <roche@adacore.com>
6498
6499         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6500         unsigned long long. So compare local_time and utc_time before computing
6501         the difference.
6502
6503 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6504
6505         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6506         of the Underlying_Record_View before that of the derived type.
6507
6508         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6509         with unknown discriminants with regard to the parent subtype.
6510
6511 2009-04-20  Bob Duff  <duff@adacore.com>
6512
6513         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6514         that are not included. This is necessary if the main unit is a generic
6515         instantiation.
6516
6517         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6518         because it doesn't work if -gnatn is used.
6519
6520 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6521
6522         * rtsfind.adb (RTE, RTE_Record_Component): In
6523         Configurable_Run_Time_Mode, do not enable front-end inlining.
6524
6525 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6526
6527         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6528         System.Address_To_Access_Conversions.
6529
6530 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6531
6532         * sem.adb: Guard against ill-formed subunits.
6533
6534 2009-04-20  Bob Duff  <duff@adacore.com>
6535
6536         * output.adb (Flush_Buffer): Do not indent blank lines.
6537         (Ignore_Output): New procedure for output suppression.
6538
6539 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6540
6541         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6542         when it is positive.  This avoids a potential constraint error raised
6543         by the conversion to Natural.
6544
6545 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6546
6547         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
6548         involves a target that has a specified address, don't set Forward_OK
6549         and Backward_OK to False if the rhs is an aggregate, since overlap
6550         can't occur.
6551
6552 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6553
6554         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
6555         in an object renaming declaration when the expected type is an
6556         anonymous access type.
6557
6558         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
6559         ambiguity when one interpretation is an anonymous access type and the
6560         other is a named access type, and the context itself is anonymous
6561
6562 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6563
6564         * einfo.ads: Minor comment rewording
6565
6566         * sem_aggr.adb: Minor comment rewording
6567
6568         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
6569
6570 2009-04-20  Pascal Obry  <obry@adacore.com>
6571
6572         * adaint.c (__gnat_is_readable_file): Check for file existence
6573         when not using ACL (always the case on remote drives).
6574
6575 2009-04-20  Robert Dewar  <dewar@adacore.com>
6576
6577         * sinfo.ads: Minor comment fixes
6578
6579         * exp_disp.adb: Minor reformatting
6580
6581         * gnat1drv.adb: Minor reformatting
6582
6583         * output.adb: Minor reformatting
6584
6585         * s-vxwext-kernel.ads: Minor reformatting
6586
6587         * sem.ads: Minor reformatting
6588
6589         * sem.adb: Minor reformatting
6590
6591         * sem_elim.adb: Minor reformatting
6592
6593         * uname.ads: Minor reformatting
6594
6595 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6596
6597         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
6598         a small dope of 4 words to the adjustment to the stack pointer.
6599
6600 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6601
6602         * xoscons.adb: generate C header s-oscons.h in
6603         addition to s-oscons.ads.
6604
6605         * socket.c: On VMS, use s-oscons.h.
6606
6607         * sem_ch3.adb: Minor reformatting
6608
6609         * exp_ch9.adb: Minor reformatting
6610
6611 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6612
6613         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
6614         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
6615         (call_to_gnu): Likewise.
6616
6617 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6618
6619         * gcc-interface/trans.c (gigi): Declare the name of the compilation
6620         unit as the first global name at the very beginning.
6621
6622 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6623
6624         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6625         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
6626         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
6627         since HP-UX supports neither inet_aton nor inet_pton (altough the
6628         latter is part of the Single UNIX Specification!).
6629         So reorganize code, and share C implementation based on inet_addr(3)
6630         with VMS (instead of having a VMS specific Ada implementation in
6631         g-socthi-vms.adb).
6632
6633 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6634
6635         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
6636         to return the object file name saved by Set_Object_Output_File_Name.
6637
6638 2009-04-20  Emmanuel Briot  <briot@adacore.com>
6639
6640         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
6641         for the standard command line, when argc has been modified since the
6642         start of the application.
6643
6644 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6645
6646         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
6647         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
6648
6649 2009-04-20  Bob Duff  <duff@adacore.com>
6650
6651         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
6652         pragma Debug.
6653
6654 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6655
6656         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
6657         subprogram as Eliminated when source operation is.
6658         (Expand_N_Protected_Type_Declaration): Generate protected and
6659         unprotected specs for the internal operations, even if the source
6660         operation is eliminated.
6661
6662 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6663
6664         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
6665         Predefined_Primitive_Bodies): Do not create the declarations and bodies
6666         of the primitive subprograms associated with dispatching select
6667         statements when the runtime is in configurable mode.
6668
6669 2009-04-20  Ed Falis  <falis@adacore.com>
6670
6671         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
6672
6673 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6674
6675         * s-oscons-tmplt.c: Add support for generating a dummy version of
6676         s-oscons.ads providing all possible constants.
6677
6678         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
6679
6680         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
6681         ANSI version (not the UNICODE version) of WSAStringToAddress.
6682
6683 2009-04-20  Pascal Obry  <obry@adacore.com>
6684
6685         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
6686         allocated for the security descriptor and make sure all
6687         handles are closed before leaving this procedure.
6688
6689 2009-04-20  Javier Miranda  <miranda@adacore.com>
6690
6691         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
6692         (Set_Is_Underlying_Record_View): New subprogram
6693
6694         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
6695         private types with unknown discriminants use the underlying record view
6696         if available.
6697
6698         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
6699         underlying record view in the full view of private types whose parent
6700         has unknown discriminants.
6701         (Build_Derived_Record_Type): Avoid generating the class-wide entity
6702         associated with an underlying record view.
6703         (Derived_Type_Declaration): Avoid deriving parent primitives in
6704         underlying record views.
6705
6706         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
6707         records with unknown discriminants.
6708
6709         * sem_type.adb (Covers): Handle underlying record views.
6710         (Is_Ancestor): Add support for underlying record views.
6711
6712         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
6713         dispatching call if the type of the target object is tagged and has
6714         unknown discriminants.
6715
6716         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
6717         unknown discriminants.
6718
6719         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
6720         tables for internally built underlying record views.
6721
6722         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
6723         empty list of component associations.
6724
6725 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6726
6727         * sem_ch10.adb: Minor reformatting
6728
6729         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6730         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
6731         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
6732         standard inet_pton API (and emulate it on platforms that do not
6733         support it).
6734         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
6735         DECC$INET_ADDR, imported in Ada.
6736         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
6737         implementation provided by GNAT runtime.
6738         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
6739         Windows.
6740
6741 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6742
6743         * gnat_ugn.texi: Add documentation for -fno-ivopts.
6744
6745 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6746
6747         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
6748         with_clause if it is the main unit.
6749
6750 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6751
6752         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
6753         (no behaviour change): Use Append instead of Increment_Last followed
6754         by assignment.
6755
6756 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6757
6758         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
6759         declarations of all primitives associated with dispatching asynchronous,
6760         conditional and timed selects when dispaching calls are forbidden and
6761         select statements are not allowed (such as in Ravenscar).
6762         (Predefined_Primitive_Bodies): Ditto for bodies.
6763
6764         * exp_disp.ad (Make_DT): Do not create and populate the
6765         Select_Specific_Data of the dispatch table when dispatching calls are
6766         forbidden and select statements are not allowed (such as in Ravenscar).
6767
6768 2009-04-20  Robert Dewar  <dewar@adacore.com>
6769
6770         * a-tifiio.adb: Minor reformatting
6771
6772 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6773
6774         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
6775         other C library functions, report *failure* with a zero status, and
6776         success with a non-zero status.
6777
6778 2009-04-20  Bob Duff  <duff@adacore.com>
6779
6780         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
6781         (Semantics): After analyzing each unit, Append it to the
6782         Comp_Unit_List, if appropriate.
6783
6784         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6785         purposes.
6786         (Gnat1drv): Correct comment regarding Back_End_Mode.
6787
6788 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6789
6790         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6791
6792 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6793
6794         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6795         output.adb, output.ads, s-taprop-hpux-dce.adb,
6796         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6797         reformatting.
6798
6799 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6800
6801         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6802         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6803         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6804         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6805         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6806         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6807
6808         * debug.adb: Fix typo
6809
6810         * gnat_rm.texi: Minor doc fix.
6811
6812         * sem_ch7.adb, freeze.adb: Minor reformatting
6813
6814 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6815
6816         * g-socket.ads: Add new constants:
6817           Loopback_Inet_Addr
6818           Unspecified_Group_Inet_Addr
6819           All_Hosts_Group_Inet_Addr
6820           All_Routers_Group_Inet_Addr
6821
6822         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6823         ERANGE (Result too large).
6824         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6825         propagation of errno to caller.
6826
6827 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6828
6829         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6830         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6831         Leap_Second_Times.
6832
6833 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6834
6835         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6836         checking for references to eliminated subprograms that should be
6837         flagged.
6838         (Eliminate_Error_Message): Update comment to say "references" rather
6839         than "calls" (since attribute cases are handled here as well).
6840
6841         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6842         checking for references to eliminated subprograms that should be
6843         flagged.  Add with and use of Sem and Sem_Util.
6844
6845         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6846         Add with and use of Sem_Elim.
6847
6848         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6849         applied to eliminated subprograms.
6850         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6851         eliminated subprograms.
6852         Add with and use of Sem_Elim.
6853
6854         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6855         to eliminated subprograms, now handled during Resolve_Call.
6856         Remove with and use of Sem_Elim.
6857
6858         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6859         testing Is_Eliminated, for proper handling of primitive derived from
6860         eliminated subprograms.
6861
6862 2009-04-20  Vincent Celier  <celier@adacore.com>
6863
6864         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6865         has been declared (Library_GCC or Linker'Driver), for the driver name.
6866
6867         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6868         Linker'Driver is, use Linker'Driver as the shared library linker.
6869         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6870         Library_GCC is declared.
6871         (Check_Library_Attributes): Set up the shared linker driver: either
6872         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6873         declared.
6874
6875 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6876
6877         * g-socket.ads (Send_Socket): Fix misleading comment.
6878
6879 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6880
6881         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6882         ASIS mode.
6883
6884 2009-04-20  Geert Bosch  <bosch@adacore.com>
6885
6886         * a-tifiio.adb (Put): Avoid generating too many digits for certain
6887         fixed types with smalls that are neither integer or the reciprocal
6888         of an integer.
6889
6890 2009-04-20  Bob Duff  <duff@adacore.com>
6891
6892         * uname.ads: Minor comment fix.
6893
6894         * types.ads: Minor comment fix.
6895
6896 2009-04-20  Pascal Obry  <obry@adacore.com>
6897
6898         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6899         avoid warning. At the same time fix a memory leak.
6900
6901         * osint.adb (Get_Libraries_From_Registry): Properly free memory
6902         returned by the above routine.
6903
6904 2009-04-20  Robert Dewar  <dewar@adacore.com>
6905
6906         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6907         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6908         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6909         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6910
6911         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6912
6913 2009-04-20  Pascal Obry  <obry@adacore.com>
6914
6915         * initialize.c (__gnat_initialize): Add braces to kill warning.
6916
6917         * adaint.c: Minor reformatting, remove trailing spaces.
6918
6919 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6920
6921         * gcc-interface/Make-lang.in: Update dependencies.
6922
6923 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6924
6925         * adaint.h (__gnat_lwp_self): Declare on Linux.
6926
6927         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6928
6929 2009-04-20  Robert Dewar  <dewar@adacore.com>
6930
6931         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6932         front-end part of -fpreserve-control-flow switch.
6933
6934 2009-04-20  Bob Duff  <duff@adacore.com>
6935
6936         * rtsfind.adb: Minor comment fix
6937
6938 2009-04-20  Robert Dewar  <dewar@adacore.com>
6939
6940         * exp_aggr.adb: Minor reformatting
6941         Minor code reorganization (use Nkind_In)
6942
6943         * g-socket.adb: Minor reformatting
6944
6945         * g-socket.ads: Minor comment fix
6946
6947         * s-auxdec.ads: Minor comment and organization update.
6948
6949         * s-auxdec-vms_64.ads: Minor comment and organization update.
6950
6951         * sem_ch10.adb: Minor addition of ??? comment
6952
6953         * sem_disp.adb: Minor reformatting
6954
6955 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6956
6957         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6958         list a caller of an inlined subprogram, if the caller itself is not
6959         called.
6960
6961 2009-04-20  Pascal Obry  <obry@adacore.com>
6962
6963         * adaint.c: Disable use of ACL on network drives.
6964
6965 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6966
6967         * gnat_ugn.texi: Add examples.
6968
6969 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6970
6971         * g-socket.ads (Abort_Selector): Clarify documentation.
6972
6973 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6974
6975         * opt.ads (Inspector_Mode): Update documentation of this flag.
6976
6977 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6978
6979         * g-socket.ads: Minor reformatting
6980
6981         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6982         consider S_resolvLib error codes since we only use the hostLib wrappers.
6983
6984 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6985
6986         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6987         of the Underlying_Record_View after that of the derived type.
6988
6989 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6990
6991         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6992         in inspector mode.
6993
6994 2009-04-20  Javier Miranda  <miranda@adacore.com>
6995
6996         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6997
6998         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6999         documentation.
7000
7001         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7002
7003         * sem_disp.adb
7004         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7005         in internally built overriding subprograms.
7006
7007 2009-04-20  Doug Rupp  <rupp@adacore.com>
7008
7009         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7010
7011         * s-auxdec.ads: Likewise
7012
7013 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7014
7015         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7016         type by an interface.
7017
7018         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7019         minimze difference in expanded tree when compiled as spec of the main
7020         unit, or as a spec in the context of another unit.
7021
7022 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7023
7024         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7025         (localtime_tzoff): This routine no longer accepts an actual of type
7026         tm_Pointer.
7027         (UTC_Time_Offset): Remove local variable Secs_TM.
7028
7029         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7030         actual of type struct tm*. Add local variable of type struct tm for all
7031         targets that provide localtime_r and need to invoke it.
7032
7033 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7034
7035         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7036         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7037         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7038
7039 2009-04-20  Robert Dewar  <dewar@adacore.com>
7040
7041         * sem_ch3.adb: Minor reformatting
7042
7043         * lib-load.adb: Minor reformatting
7044
7045         * sem_ch4.adb: Minor reformatting
7046
7047 2009-04-20  Robert Dewar  <dewar@adacore.com>
7048
7049         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7050         (equal values => False).
7051
7052 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7053
7054         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7055         to null procedures can be inlined unconditionally.
7056
7057 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7058
7059         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7060         non-addressable parameter passed by reference, do not convert the
7061         actual if its type is already the nominal type, unless it is of
7062         self-referential size.
7063
7064 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7065
7066         * gnat_ugn.texi: Fix typos.
7067
7068 2009-04-20  Robert Dewar  <dewar@adacore.com>
7069
7070         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7071         Validate_Unchecked_Warnings to suppress warnings about size or
7072         alignment or extra bits if either type involved has pragma Warnings
7073         (Off) set for the type entity.
7074
7075 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7076
7077         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7078         a builtin type and give it a name.
7079
7080 2009-04-17  Diego Novillo  <dnovillo@google.com>
7081
7082         * gcc-interface/misc.c (gnat_expand_expr): Remove.
7083         (LANG_HOOKS_EXPAND_EXPR): Remove.
7084
7085 2009-04-17  Robert Dewar  <dewar@adacore.com>
7086
7087         * sem_ch3.adb: Minor reformatting
7088
7089 2009-04-17  Pascal Obry  <obry@adacore.com>
7090
7091         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7092
7093 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7094
7095         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7096         illegal constraints on type derived from formal discrete types.
7097
7098 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7099
7100         PR ada/35953
7101
7102         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7103         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7104         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7105         g-socket.ads (GNAT.Sockets.Thin.C_Send,
7106         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7107         Replace calls to send(2) with equivalent sendto(2) calls.
7108         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7109         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7110         report an error in that case. Factor code common to the two versions
7111         (datagram and stream) in common routine Stream_Write.
7112
7113 2009-04-17  Robert Dewar  <dewar@adacore.com>
7114
7115         * exp_disp.adb: Minor reformatting
7116         Minor code reorganization (use Nkind_In)
7117
7118         * prepcomp.adb: Minor reformatting
7119
7120         * sem_ch3.adb: Minor reformatting
7121
7122         * sem_res.adb: Minor comment addition
7123
7124         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7125         for address clause
7126
7127         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7128         setting Is_Referenced
7129
7130         * types.ads: Minor reformatting
7131
7132 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7133
7134         * gnat_ugn.texi: Initial documentation on binding generator.
7135
7136 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7137
7138         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7139         type extensions whose parent is a type with unknown discriminants.
7140
7141         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7142         aggregate has unknown discriminants, use the Underlying_Record_View to
7143         obtain the discriminants of the ancestor part.
7144
7145         * exp_disp.adb (Build_Dispatch_Tables): Types that are
7146         Underlying_Record_Views share the dispatching information of the
7147         original record extension.
7148
7149         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7150         discriminants, propagate dispach table information to the
7151         Underlying_Record_View.
7152
7153         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7154         discriminants and declaration is not a completion, generate
7155         Underlying_Record_View to provide proper discriminant information to
7156         the front-end and to gigi.
7157
7158 2009-04-17  Robert Dewar  <dewar@adacore.com>
7159
7160         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7161         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7162         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7163         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7164         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7165         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7166         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7167         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7168         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7169         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7170         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7171         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7172         s-conca3.ads: Remove unneeded pragma Warnings
7173
7174 2009-04-17  Robert Dewar  <dewar@adacore.com>
7175
7176         * g-moreex.adb: Add comments.
7177
7178         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7179
7180         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7181         Warnings (Off)
7182
7183         * prepcomp.adb: Add ??? comment
7184
7185         * a-tasatt.adb: Minor reformatting
7186
7187         * g-trasym-vms-alpha.adb: Add ??? comment
7188
7189         * g-trasym-vms-ia64.adb: Add ??? comment
7190
7191         * xoscons.adb: Minor reformatting
7192
7193         * s-tassta.adb: Minor reformatting
7194
7195         * s-scaval.adb: Add ??? comment
7196
7197         * stand.ads: Minor code clean up (remove junk with of Namet)
7198
7199         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7200         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7201         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7202         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7203         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7204         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7205         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7206         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7207         Warnings off pragmas.
7208
7209 2009-04-17  Pascal Obry  <obry@adacore.com>
7210
7211         * initialize.c: Fix test for reallocating the arguments array.
7212
7213 2009-04-17  Geert Bosch  <bosch@adacore.com>
7214
7215         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7216         conversion truncate only for decimal fixed point types.
7217
7218 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
7219
7220         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7221         reinitialized.
7222
7223 2009-04-17  Robert Dewar  <dewar@adacore.com>
7224
7225         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7226         Backwards_OK if either operand has an address clause.
7227
7228 2009-04-17  Pascal Obry  <obry@adacore.com>
7229
7230         * initialize.c: Code clean up, use realloc.
7231
7232 2009-04-17  Pascal Obry  <obry@adacore.com>
7233
7234         * initialize.c: Do not get Unicode command line if Unicode support not
7235         activated.
7236         Add support for wildcard expansion for Unicode parameters on Win32.
7237
7238         * mingw32.h: Add missing macros when Unicode support not activated.
7239
7240 2009-04-17  Javier Miranda  <miranda@adacore.com>
7241
7242         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7243         avoid generating code that references the Current_Master
7244         when compiling without tasks.
7245
7246 2009-04-17  Vincent Celier  <celier@adacore.com>
7247
7248         * prj-attr.adb: New project level attribute Target
7249         
7250         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7251         attribute Target
7252         
7253         * prj.ads (Project_Configuration): New component Target
7254
7255 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7256
7257         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7258         case for the case of an aggregate component, the attach call for the
7259         result is actually needed.
7260
7261         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7262         an array aggregate must be disabled if the component type requires
7263         controlled actions.
7264
7265         * exp_ch3.adb: Minor reformatting
7266
7267 2009-04-17  Bob Duff  <duff@adacore.com>
7268
7269         * output.ads (Indent,Outdent): New procedures for indenting the output.
7270         (Write_Char): Correct comment -- LF _is_ allowed.
7271
7272         * output.adb (Indent,Outdent): New procedures for indenting the output.
7273         Keep track of the indentation level, and make sure it doesn't get too
7274         high.
7275         (Flush_Buffer): Insert spaces at the beginning of each line, if
7276         indentation level is nonzero.
7277         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7278         indentation level.
7279         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7280         "Next_Col := 1;".  Flush_Buffer does that.
7281
7282         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7283         controlled by the -gnatdc switch. It now occurs on entry/exit to the
7284         relevant analysis routines, and calls Indent/Outdent to make the
7285         indentation reflect the nesting level.  Add "helper" routines, since
7286         otherwise lots of "return;" statements would skip the debugging output.
7287
7288 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7289
7290         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7291         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7292         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7293
7294 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7295
7296         * exp_aggr.adb: Minor code reorganization, no behaviour change.
7297
7298 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7299
7300         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7301         clause in a unit that is a package body or a subunit, when the previous
7302         clause appears in a spec or a parent.
7303
7304 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7305
7306         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7307
7308         * exp_ch7.adb: Minor reformatting
7309
7310 2009-04-17  Bob Duff  <duff@adacore.com>
7311
7312         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7313         allocator, check that the expression of the qualified expression obeys
7314         the constraints of the subtype of the qualified expression.
7315
7316 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7317
7318         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7319
7320 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7321
7322         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7323         aggregate, using context imposed by subtype mark in allocator.
7324
7325 2009-04-17  Pascal Obry  <obry@adacore.com>
7326
7327         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7328
7329 2009-04-17  Nicolas Roche  <roche@adacore.com>
7330
7331         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7332         argument length.
7333
7334 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
7335
7336         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7337         cover both calls and attribute references ("call" => "reference").
7338
7339 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7340
7341         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7342         type for which Storage_Size is set to 0 is legal in a pure unit.
7343
7344 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7345
7346         * exp_ch7.adb: Minor reformatting
7347
7348 2009-04-17  Robert Dewar  <dewar@adacore.com>
7349
7350         * restrict.adb (Check_Restriction_No_Dependence): Don't check
7351         restriction if outside main extended source unit.
7352
7353         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7354         for parents of child units as well as the child unit itself.
7355
7356 2009-04-17  Bob Duff  <duff@adacore.com>
7357
7358         * checks.ads: Minor comment fix
7359
7360         * exp_aggr.ads: Minor comment fix
7361
7362 2009-04-17  Nicolas Roche  <roche@adacore.com>
7363
7364         * adaint.c: Improve cross compiler detection and handling.
7365
7366 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7367
7368         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7369
7370 2009-04-17  Pascal Obry  <obry@adacore.com>
7371
7372         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7373         CurrentCodePage.
7374
7375         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7376         value when no encoding form paramter is set on Text_IO services.
7377
7378         * adaint.c: CurrentCodePage new variable on Windows.
7379         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7380         ones.
7381
7382         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7383         ones.
7384
7385         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7386         environment variable value. Default is UTF-8.
7387
7388         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7389         fopen and freopen encoding parameter is now set to Unspecified.
7390         The default value is in this case UTF-8 (as it was before) but
7391         use the new macros that convert to/from the code page set
7392         at runtime (CurrentCodePage).
7393
7394         * s-fileio.adb: When no encoding specified use Unspecified value.
7395
7396 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7397
7398         * atree.adb, atree.ads: Remove dead code.
7399
7400 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7401
7402         * gcc-interface/Make-lang.in: Update dependencies.
7403
7404 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7405
7406         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7407         illegal uses of incomplete types in formal parts and return types.
7408
7409         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7410         access to subprograms.
7411
7412         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7413         Taft-amendment types as the return type of an access_to_function type.
7414
7415         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7416         type for access_to_subprograms. The check is performed on package exit.
7417
7418 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7419
7420         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7421
7422         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7423         
7424         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7425
7426         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7427         semantic units, because the handling of itypes in the copied tree
7428         requires semantic information that does not belong in atree.
7429
7430 2009-04-17  Robert Dewar  <dewar@adacore.com>
7431
7432         * par-ch6.adb: Minor reformatting
7433
7434         * prj.adb: Minor reformatting
7435
7436 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
7437
7438         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7439         on protected subprogram bodies, so exclude the case where Pf_Flags is
7440         Pf_Decl_Pbod from the error check.
7441
7442         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7443         indicators on subprograms in protected bodies, and proceed with parsing
7444         the subprogram.
7445
7446         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7447         subprograms from the check for primitiveness on subprograms with
7448         overriding indicators.
7449         (Check_Overriding_Indicator): Include protected subprograms in the
7450         style check for missing overriding indicators.
7451
7452 2009-04-17  Tristan Gingold  <gingold@adacore.com>
7453
7454         * init.c: Fix stack checking for x86 Darwin.
7455
7456 2009-04-17  Vincent Celier  <celier@adacore.com>
7457
7458         * prj-attr.adb: New project level attribute Object_File_Suffix
7459         (<language>).
7460         
7461         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7462         object file name
7463         (Process_Compiler): Process attribute Object_File_Suffix
7464
7465         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7466         platform suffix, when specified.
7467
7468         * prj.ads (Language_Config): New component Object_File_Suffix,
7469         defaulted to No_Name.
7470         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7471
7472         * snames.ads-tmpl: New standard name Object_File_Suffix
7473
7474 2009-04-17  Robert Dewar  <dewar@adacore.com>
7475
7476         * gnat_rm.texi: Add documentation about No_Streams restriction
7477
7478         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7479         attributes when checking No_Streams restriction.
7480
7481 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7482
7483         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7484
7485         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7486         missing calls to RE_Request_Destroy to deallocate request objects after
7487         use.
7488
7489 2009-04-17  Nicolas Setton  <setton@adacore.com>
7490
7491         * link.c: Fix support for passing a response file under Darwin.
7492
7493 2009-04-17  Emmanuel Briot  <briot@adacore.com>
7494
7495         * prj.adb (Free): new subprogram.
7496
7497 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7498
7499         * sem_ch3.adb: additional initialization on incomplete subtypes.
7500         
7501         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7502         part and one of the formals is an incomplete tagged type, attach to
7503         list of private dependends of the type for later validation.
7504
7505         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7506         primitive operations of a Taft-amendmment type.
7507
7508         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7509         type. The check is performed on package exit, possibly after the
7510         subprogram is frozen.
7511
7512 2009-04-17  Vincent Celier  <celier@adacore.com>
7513
7514         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7515         before looking for source directories, but make sure that there are nil
7516         if they are not explicitely declared and there is explicitely no
7517         sources in the project.
7518
7519 2009-04-17  Pascal Obry  <obry@adacore.com>
7520
7521         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7522
7523         * init.c: Fix minor typo and style fix.
7524
7525 2009-04-17  Robert Dewar  <dewar@adacore.com>
7526
7527         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7528
7529         * sem_attr.adb (Analyze_Attribute, case Address): Use
7530         PE_Address_Of_Intrinsic.
7531
7532         * types.ads: Add PE_Address_Of_Intrinsic
7533
7534         * types.h: Add PE_Address_Of_Intrinsic
7535
7536 2009-04-17  Nicolas Setton  <setton@adacore.com>
7537
7538         * gcc-interface/Makefile.in: Under darwin, build shared libraries
7539         with install_name starting with "@rpath/".
7540
7541 2009-04-17  Nicolas Setton  <setton@adacore.com>
7542
7543         * link.c: Add darwin section
7544
7545 2009-04-16  Robert Dewar  <dewar@adacore.com>
7546
7547         * g-pehage.adb: Minor reformatting
7548
7549         * sem_ch12.adb: Minor reformatting
7550
7551         * exp_dist.adb: Minor reformatting
7552
7553         * bindgen.adb: Minor style fixes.
7554
7555 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7556
7557         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
7558         indexed components to the case where the prefix is a static string
7559         literal.
7560
7561 2009-04-16  Javier Miranda  <miranda@adacore.com>
7562
7563         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
7564         objects avoid any further expansion of the expression initializing the
7565         object.
7566
7567 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7568
7569         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
7570         that hides an outer homograph, make that homograph invisible when
7571         analyzing the actuals, to to prevent illegal direct visibility on it.
7572
7573 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7574
7575         * g-pehage.adb (Initialize): Fix off-by-one error.
7576
7577 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7578
7579         * init.c: Detect real stack overflow on Darwin.
7580
7581         * system-darwin-x86.ads: Use stack probing on darwin x86.
7582
7583 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7584
7585         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
7586         take the address of an intrinsic subprogram.
7587
7588 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7589
7590         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
7591         for the targets where GNAT.Traceback.Symbolic is not supported.
7592
7593 2009-04-16  Vincent Celier  <celier@adacore.com>
7594
7595         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
7596
7597         * g-trasym.ads: Update comments.
7598
7599 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7600
7601         * tracebak.c (STOP_FRAME): Verify validity of the current address
7602         before dereferencing.
7603
7604 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7605
7606         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
7607         the original location of the index expressions and the index subtypes,
7608         to prevent spurious out-of-scope references in gigi.
7609
7610 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7611
7612         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
7613         Add support for stack checking on darwin.
7614
7615 2009-04-16  Vincent Celier  <celier@adacore.com>
7616
7617         * prj-attr.adb: New attribute Runtime_Source_Dir
7618
7619         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
7620         attribute Runtime_Source_Dir.
7621         (Check_Naming_Schemes): Give default values to out parameters to avoid
7622         invalid data.
7623
7624         * prj.ads (Language_Config): New component Runtime_Source_Dir
7625
7626         * snames.ads-tmpl: New standard name Runtime_Source_Dir
7627
7628 2009-04-16  Pascal Obry  <obry@adacore.com>
7629
7630         * adaint.h, adaint.c (__gnat_rmdir): New routine.
7631         Simple wrapper routines used to convert to proper encoding on
7632         Windows.
7633
7634         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
7635
7636         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
7637         twice.
7638
7639 2009-04-16  Pascal Obry  <obry@adacore.com>
7640
7641         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
7642
7643 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7644
7645         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
7646         integrated preprocessor.
7647
7648         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
7649         (Initialize): Split into two subprograms, Initialize (to be called
7650         prior to compiler command line processing) and Setup_Hooks (to be called
7651         later on when the first source file is loaded).
7652
7653         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
7654         Add call to Prep.Initialize.
7655
7656         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
7657         to Prep.Setup_Hooks.
7658
7659 2009-04-16  Pascal Obry  <obry@adacore.com>
7660
7661         * adaint.h, adaint.c (__gnat_chdir): New routine.
7662         Simple wrapper routines used to convert to proper encoding on
7663         Windows.
7664
7665         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
7666
7667         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
7668
7669 2009-04-16  Quentin Ochem  <ochem@adacore.com>
7670
7671         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
7672         of Source.Init.
7673
7674 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7675
7676         * a-convec.ads (Is_Empty): Mark inline.
7677
7678 2009-04-16  Nicolas Roche  <roche@adacore.com>
7679
7680         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
7681
7682 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7683
7684         * prepcomp.adb: Minor reformatting
7685
7686 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7687
7688         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
7689         Access_Subprogram types can also be imported.
7690         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
7691         names.
7692
7693 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7694
7695         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7696         preserve homonym chain when the declaration is rewritten into a
7697         renaming declaration, in order to preserve visibility structure.
7698
7699 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7700
7701         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
7702         taken into account for VM targets.
7703
7704 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7705
7706         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
7707         Year_Week_In_Year.
7708         (Year_Week_In_Year): New routine which contains the original code from
7709         Week_In_Year. Add the missing special case for January 1st falling on
7710         a Monday.
7711
7712 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7713
7714         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
7715         actual type, use the base type to build the To_Any function.
7716         (Build_From_Any_Function): Remove junk, useless subtype conversion.
7717
7718 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7719
7720         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
7721         restrict.adb: Minor code reorganization (use
7722         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
7723
7724 2009-04-16  Bob Duff  <duff@adacore.com>
7725
7726         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
7727         unused.
7728
7729 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7730
7731         * sem_ch4.adb: Minor reformatting
7732
7733         * adaint.c: Remove junk duplicated code.
7734
7735         * sem_ch3.adb: Minor reformatting
7736
7737         * exp_dist.adb: Minor comment rewording
7738
7739 2009-04-16  Robert Dewar  <dewar@adacore.com>
7740
7741         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
7742         used together.
7743
7744 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7745
7746         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
7747         usable before calling Add_One_Interp, to resolve spurious ambiguities.
7748
7749 2009-04-16  Robert Dewar  <dewar@adacore.com>
7750
7751         * Make-lang.in: Add entries for s-conca?.o
7752
7753         * Makefile.rtl: Add entries for s-conca?
7754
7755         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
7756         of concatenation expansion
7757
7758         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
7759         string cases instead of expanding assignments inline.
7760
7761         * opt.ads (Optimize_Size): New flag
7762
7763         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
7764         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
7765         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
7766         s-conca9.adb, s-conca9.ads: New file.
7767
7768 2009-04-16  Robert Dewar  <dewar@adacore.com>
7769
7770         * exp_ch6.adb: Add comments
7771
7772         * rtsfind.ads: Add entries for s-conca? routines
7773
7774 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7775
7776         * gcc-interface/Make-lang.in: Update dependencies.
7777
7778         * gcc-interface/Makefile.in: Update translation for vms.
7779
7780 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7781
7782         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
7783         and made global, to be used when installing parents of a child
7784         instance, to provide mappings for entities declared in formal packages
7785         of ancestor units. Now called from Install_Formal_Packages.
7786
7787 2009-04-16  Doug Rupp  <rupp@adacore.com>
7788
7789         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7790         notation for clarity.
7791
7792         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7793         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7794         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7795         (Initialize): Initialize Known_Tasks with Environment task.
7796
7797         * s-taskin.ads (Task_States): Move new states to end for the sake of
7798         GDB compatibility.
7799
7800         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7801
7802 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7803
7804         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7805         operation has an inline pragma, propagate the flag to the internal
7806         unprotected subprogram.
7807
7808 2009-04-16  Doug Rupp  <rupp@adacore.com>
7809
7810         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7811         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
7812         s-taprop-hpux-dce.adb, s-taprop-posix.adb
7813         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7814
7815         * s-taprop-vms.adb (Enter_Task): Likewise.
7816         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7817
7818         * s-tassta.adb (Activate_Tasks): After task creation set state to
7819         Activating, vice Runnable. Initialize Known_Tasks, moved here from
7820         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7821         Set state to Runnable after above.
7822         (Task_Wrapper): Set Debug_Event_Run. In exception block set
7823         Debug_Event_Terminated.
7824
7825         * s-taskin.ads (Task_States): Add new states Activiting and
7826         Activator_Delay_Sleep.
7827         (Bit_Array, Debug_Event_Array): New types.
7828         (Global_Task_Debug_Event_Set: New flag.
7829         (Common_ATCB): New field Debug_Events.
7830
7831         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7832
7833         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7834         Activator_Sleep.
7835
7836         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7837         Activating and when Acceptor_Delay_Sleep.
7838
7839         * s-tasdeb.ads: Add constants for Debug_Events.
7840         (Debug_Event_Kind_Type): New subtype.
7841         (Signal_Debug_Event): New subprogram.
7842
7843         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7844
7845 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7846
7847         * sem_elim.adb: Minor reformatting
7848
7849         * freeze.adb: Minor reformatting
7850
7851         * exp_ch4.adb: Minor reformatting
7852
7853 2009-04-16  Emmanuel Briot  <briot@adacore.com>
7854
7855         * prj-nmsc.adb (Path_Name_Of): fix memory leak
7856
7857 2009-04-16  Robert Dewar  <dewar@adacore.com>
7858
7859         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7860
7861 2009-04-16  Vincent Celier  <celier@adacore.com>
7862
7863         * fmap.adb (Initialize): Show the current line when the mapping file
7864         is detected as "incorrectly formatted".
7865
7866 2009-04-16  Robert Dewar  <dewar@adacore.com>
7867
7868         * sem_ch12.adb: Minor reformatting
7869
7870         * sem_ch5.adb: Minor comment addition
7871
7872         * sem_util.adb: Minor reformatting
7873
7874         * sinput-p.adb: Minor reformatting
7875         Add missing pragma Warnings (On)
7876
7877 2009-04-16  Ed Falis  <falis@adacore.com>
7878
7879         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7880
7881 2009-04-16  Vincent Celier  <celier@adacore.com>
7882
7883         * ali-util.adb: Minor comment spelling error fix
7884
7885 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7886
7887         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7888         generate an assignment loop in case of overlap.
7889
7890 2009-04-16  Olivier Hainque  <hainque@adacore.com>
7891
7892         * gnat_ugn.texi (gnatmem description): Make it explicit that
7893         gnatmem is designed to work in association with static runtime
7894         library only.
7895
7896 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7897
7898         * sem_type.adb: Minor reformatting
7899
7900 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7901
7902         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7903         concerning return codes of gettimeofday and return value check.
7904
7905 2009-04-16  Ed Falis  <falis@adacore.com>
7906
7907         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7908         body can be renaming of imported routines.
7909
7910 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7911
7912         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7913         targeted fashion.
7914
7915 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7916
7917         * exp_ch9.adb: Comment improvements.
7918         (Build_Entry_Family_Name): Add parentheses around the index of a entry
7919         family member.
7920
7921 2009-04-15  Bob Duff  <duff@adacore.com>
7922
7923         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7924         "while X /= null loop" where X is unchanged inside the loop. We were
7925         not warning in this case, because of the pointers -- we feared that the
7926         loop variable could be updated via a pointer, if there are any pointers
7927         around the place. But that is impossible in this case.
7928
7929         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7930         the case of dereferences. In X.all, X cannot be an l-value. We now
7931         catch that case (and implicit dereferences, too).
7932
7933 2009-04-15  Vincent Celier  <celier@adacore.com>
7934
7935         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7936
7937 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7938
7939         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7940         From code reading.
7941         (Analyze_Package_Instantiation): If generic unit in child instance is
7942         the same as generic unit in parent instance, look for an outer homonym
7943         to locate the desired generic.
7944
7945 2009-04-15  Bob Duff  <duff@adacore.com>
7946
7947         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7948         warnings unless the loop comes from source, because checking generated
7949         loops is a waste of time, and makes it harder to debug
7950         Check_Infinite_Loop_Warning.
7951
7952         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7953         tested in the while loop is a renaming, do not warn. Otherwise, we get
7954         false alarms, because it's usually renaming something that we can't
7955         deal with (an indexed component, a global variable, ...).
7956
7957         * gnat_rm.texi: Fix typo
7958
7959 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7960
7961         * sem_ch6.adb: Minor reformatting
7962
7963 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7964
7965         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7966         immediate parent of the controlled function call is a component
7967         association.
7968
7969 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7970
7971         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7972         corresponding class-wide type is also in use.
7973
7974 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7975
7976         * frontend.adb: Minor comment fix
7977
7978 2009-04-15  Robert Dewar  <dewar@adacore.com>
7979
7980         * gnatchop.adb (BOM_Length): New global variable
7981         (Write_Unit): Add new parameter Write_BOM
7982         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7983         to Write_Unit
7984
7985         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7986
7987 2009-04-15  Geert Bosch  <bosch@adacore.com>
7988
7989         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7990         (Backend_Overflow_Checks): Set to True.
7991
7992 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7993
7994         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7995         keyword is given in a record extension.
7996
7997 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7998
7999         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8000         of a controlled function call in the context of a record aggregate.
8001         This does not apply to array aggregates since the call will be expanded
8002         into assignments.
8003
8004 2009-04-15  Ed Falis  <falis@adacore.com>
8005
8006         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8007         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8008         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8009         s-osinte-vxworks* and s-vxwext*.
8010
8011 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8012
8013         * gcc-interface/Make-lang.in: Update dependencies.
8014
8015         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8016         and s-vxwext*.
8017
8018 2009-04-15  Robert Dewar  <dewar@adacore.com>
8019
8020         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8021         of node for location for warning messages.
8022
8023         * gnatchop.adb: Minor reformatting
8024
8025 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8026
8027         * exp_ch6.adb: additional guard for renaming declarations for in
8028         parameters of an array type.
8029
8030 2009-04-15  Robert Dewar  <dewar@adacore.com>
8031
8032         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8033         in case they were rewritten by expander (Force_Evaluation).
8034
8035         * targparm.adb (Get_Target_Parameters): Correct check for
8036         Suppress_Exception_Locations.
8037
8038 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8039
8040         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8041         inlined  is of an array type that is not bit-packed, use a renaming
8042         declaration to capture its value, rather than a constant declaration.
8043
8044 2009-04-15  Robert Dewar  <dewar@adacore.com>
8045
8046         * rtsfind.adb: Minor reformatting.
8047
8048 2009-04-15  Emmanuel Briot  <briot@adacore.com>
8049
8050         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8051         Restore, and free the saved context.
8052
8053 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8054
8055         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8056         for illegal private extension from a synchronized interface parent in
8057         front of check for illegal limited extension so that limited extension
8058         from a synchronized interface will be rejected.
8059         (Check_Ifaces): Check that a private extension that has a synchronized
8060         interface as a progenitor must be explicitly declared synchronized.
8061         Also check that a record extension cannot derive from a synchronized
8062         interface.
8063
8064 2009-04-15  Pascal Obry  <obry@adacore.com>
8065
8066         * adaint.h (__gnat_unlink): Add spec.
8067         (__gnat_rename): Likewise.
8068
8069 2009-04-15  Vincent Celier  <celier@adacore.com>
8070
8071         * prj-nmsc.adb: Minor spelling error corrections in error messages
8072
8073 2009-04-15  Robert Dewar  <dewar@adacore.com>
8074
8075         * sinfo.ads: Minor comment update
8076
8077         * opt.ads: Minor comment updates
8078
8079         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8080         modular type.
8081
8082 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8083
8084         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8085         that generates the code needed to update a dispatch table when a
8086         primitive operation is declared with a subprogram body without previous
8087         spec. Insertion of the generated code is responsibility of the caller.
8088         (Make_DT): When building static tables, append the code created by
8089         Register_Primitive to update a secondary table after it has been
8090         constructed.
8091
8092         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8093
8094         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8095         on an overriding operation that implements an interface operation only
8096         if not building static dispatch tables.
8097
8098 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8099
8100         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8101         does not cause overflow when converted to Duration. Use the safe value
8102         as the maximum allowable time delay..
8103
8104 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
8105
8106         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8107         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8108         translated to "-j 2".
8109
8110 2009-04-15  Bob Duff  <duff@adacore.com>
8111
8112         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8113         with_clauses, to avoid code duplication. Change this processing so we
8114         always add a with_clause on the main unit if needed.
8115
8116 2009-04-15  Pascal Obry  <obry@adacore.com>
8117
8118         Add support for Win32 native encoding for delete/rename routines.
8119         
8120         * adaint.c (__gnat_unlink): New routine.
8121         (__gnat_rename): New routine.
8122         Simple wrapper routines used to convert to proper encoding on
8123         Windows.
8124
8125         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8126         call to the C library.
8127
8128         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8129
8130 2009-04-15  Robert Dewar  <dewar@adacore.com>
8131
8132         * s-tassta.adb: Minor reformatting
8133
8134 2009-04-15  Robert Dewar  <dewar@adacore.com>
8135
8136         * frontend.adb (Frontend): Set proper default for
8137         Warn_On_Non_Local_Exception.
8138
8139         * opt.ads (Exception_Handler_Encountered): New flag
8140         (No_Warn_On_Non_Local_Exception): New flag
8141
8142         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8143
8144         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8145         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8146
8147 2009-04-15  Cyrille Comar  <comar@adacore.com>
8148
8149         * s-tassta.adb, a-exextr.adb, a-elchha.adb
8150         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8151         message when exception traces are active since it would generate
8152         redundant information.
8153         (Exception_Traces.Notify_Exception): put message output by a critical
8154         section to avoid unsynchronized output.
8155         (Trace_Unhandled_Exception_In_Task): put message output by a critical
8156         section to avoid unsynchronized output.
8157
8158 2009-04-15  Emmanuel Briot  <briot@adacore.com>
8159
8160         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8161         (Free): New subprogram.
8162
8163 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8164
8165         * a-calend.adb: Add new constant Nanos_In_Four_Years.
8166         (Formatting_Operations.Time_Of): Change the way four year chunks of
8167         nanoseconds are added to the intermediate result.
8168
8169 2009-04-15  Nicolas Setton  <setton@adacore.com>
8170
8171         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8172         does not need to wait for a carriage return.
8173
8174 2009-04-15  Tristan Gingold  <gingold@adacore.com>
8175
8176         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8177         is set.
8178
8179 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8180
8181         * freeze.adb (Freeze_Entity): improve error message for improper use of
8182         incomplete types.
8183         Diagnose additional illegal uses of incomplete types in formal parts.
8184         appearing in formal parts.
8185
8186         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8187
8188 2009-04-15  Robert Dewar  <dewar@adacore.com>
8189
8190         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8191
8192 2009-04-15  Nicolas Roche  <roche@adacore.com>
8193
8194         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8195         current thread.
8196
8197         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8198
8199         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8200
8201 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8202
8203         * sem_ch4.adb: improve error message on exponentiation.
8204
8205 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8206
8207         * a-calend.adb: Move constant Epoch_Offset from package
8208         Conversion_Operations to top level.
8209         (Delay_Operations.To_Duration): Define a constant which represents
8210         "end of time" and use it as a guard against very distant delay dates.
8211         Protect the code against overflow when performing the origin shift to
8212         Unix time.
8213
8214 2009-04-15  Robert Dewar  <dewar@adacore.com>
8215
8216         * sem_prag.adb: Minor reformatting.
8217
8218         * sem_type.adb: Minor reformatting
8219
8220 2009-04-15  Javier Miranda  <miranda@adacore.com>
8221
8222         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8223         support to check eliminated subprograms.
8224
8225         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8226
8227         * sem_elim.adb (Set_Eliminated): Add support for elimination of
8228         dispatching subprograms.
8229
8230         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8231         operations. Initialize with "null" the slots of eliminated dispaching
8232         primitives.
8233         (Write_DT): Add output for eliminated primitives.
8234
8235         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8236
8237 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8238
8239         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8240         the second is redundant, regardless of scopes.
8241
8242 2009-04-15  Vincent Celier  <celier@adacore.com>
8243
8244         * prj-nmsc.adb (Get_Directories): Check for sources before checking
8245         the object directory as when there are no sources, they may not be any
8246         object directory.
8247
8248         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8249         directory, when there are no exec directory.
8250
8251 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8252
8253         * sem_type.adb (Remove_Conversions): In order to resolve spurious
8254         ambiguities, refine removal of universal interpretations from complex
8255         expressions with literal arguments, when some numeric operators have
8256         been declared abstract.
8257
8258 2009-04-15  Ed Falis  <falis@adacore.com>
8259
8260         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8261         and backward compatibility for targets using probing for stack overflow
8262
8263 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8264
8265         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8266         after any declaration, including renaming declarations.
8267
8268 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8269
8270         * gcc-interface/Make-lang.in: Update dependencies.
8271
8272         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8273         Update xenomai target pairs.
8274
8275 2009-04-15  Javier Miranda  <miranda@adacore.com>
8276
8277         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8278
8279         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8280         functions returning anonymous access to class-wide limited types. Mark
8281         also the containing scope as a task master.
8282
8283         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8284         limited-withed packages. Required to restore their visibility after
8285         processing packages associated with implicit with-clauses.
8286
8287         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8288         associated with return statements because this work is now done by
8289         Check_Anonymous_Return.
8290         (Build_Master): Code cleanup.
8291
8292 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8293
8294         * sem_warn.ads: Minor reformatting
8295
8296 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8297
8298         * sem_ch3.adb: better error message for illegal interfaces
8299
8300         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8301         formal is an incomplete type from a limited_with clause.
8302
8303 2009-04-15  Vincent Celier  <celier@adacore.com>
8304
8305         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8306         Externally_Built indicating if the project is externally built. If it
8307         is, and --subdirs is specified, but the subdir does not exist, look
8308         for the specified directory, without the subdir.
8309
8310 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8311
8312         * a-tasatt.adb: Fix typo, plus minor reformatting
8313
8314         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8315
8316         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8317
8318 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8319
8320         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8321         private extension whose parent is a synchronized interface carries an
8322         explicit synchronized keyword.
8323
8324 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8325
8326         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8327         instantiate generic shared object package with the corresponding
8328         record type.
8329
8330 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8331
8332         * system-linux-sparc.ads: Remove obsolete entries.
8333
8334 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8335
8336         * s-tasuti.ads: Add ??? comment
8337
8338 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8339
8340         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8341         type even if the designated type comes from a limited_with clause, to
8342         ensure that the symbol for the finalization list of the access type is
8343         created.
8344
8345 2009-04-10  Robert Dewar  <dewar@adacore.com>
8346
8347         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8348         for warning suppression.
8349
8350 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8351
8352         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8353         identical, there is no redudancy to check.
8354
8355 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8356
8357         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8358         calls initializing SS_Allocator (which is initialized in following
8359         code).
8360         (Expand_Simple_Function_Return): Add comment about False value for
8361         Comes_From_Source on secondary-stack allocator.
8362
8363         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8364         (Build_Entry_Name): Add comment.
8365
8366 2009-04-10  Robert Dewar  <dewar@adacore.com>
8367
8368         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8369
8370         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8371         bound tested, since this is now done more generally in Sem_Res.
8372
8373         * sem_res.adb (Resolve_Comparison_Op): Add call to
8374         Check_Lower_Bound_Tested.
8375         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8376
8377         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8378         (Low_Bound_Tested): New name for Low_Bound_Known flag
8379
8380         * exp_ch5.adb: Minor reformatting
8381
8382         * exp_ch4.adb:
8383         Add comments on copying the Comes_From_Source flag for allocators
8384
8385         * sinfo.ads:
8386         Add comments on copying the Comes_From_Source flag for allocators
8387
8388         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8389         Comes_From_Source flag from old allocator to new one.
8390
8391 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8392
8393         * sem_ch6.ads: Address missing documentation query
8394
8395 2009-04-10  Vincent Celier  <celier@adacore.com>
8396
8397         * prj-attr.adb:
8398         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8399         and Response_File_Switches.
8400
8401         * prj-nmsc.adb (Process_Linker): Process new attributes
8402         Max_Command_Line_Length, Response_File_Format and
8403         Response_File_Switches.
8404
8405         * prj.ads (Response_File_Format): New enumeration type
8406         (Project_Configuration): New componants Max_Command_Line_Length,
8407         Resp_File_Format and Resp_File_Options.
8408
8409         * snames.ads-tmpl: Add new standard names for linking response files
8410         for gprbuild: GNU, None, Object_List, Option_List,
8411         Max_Command_Line_Length, Response_File_Format and
8412         Response_File_Switches.
8413
8414 2009-04-10  Geert Bosch  <bosch@adacore.com>
8415
8416         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8417         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8418         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8419         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8420         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8421         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8422         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8423         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8424         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8425         system-vxworks-arm.ads, system-vxworks-m68k.ads,
8426         system-vxworks-mips.ads, system-vxworks-ppc.ads,
8427         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8428         (Backend_Overflow_Checks): Set to True.
8429
8430 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8431
8432         * exp_attr.adb: Minor reformatting
8433
8434 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8435
8436         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8437         analyze the expression for a postcondition, even if the compiler mode
8438         is Generate_Code.
8439
8440 2009-04-10  Robert Dewar  <dewar@adacore.com>
8441
8442         * sem_aux.adb: Minor reformatting
8443
8444 2009-04-10  Ed Falis  <falis@adacore.com>
8445
8446         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8447
8448         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8449
8450 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8451
8452         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8453         undocumented formal.
8454         Minor reformatting
8455
8456         * a-direio.ads: Fix typo in comment
8457
8458         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8459         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8460         Use uniform phrasing for comment at start of subprogram body.
8461
8462         * xsnamest.adb: Add note to explain why we use specific names for the
8463         newly generated files instead of generating snames.{ads,adb,h} directly
8464
8465 2009-04-10  Sergey Rybin  <rybin@adacore.com>
8466
8467         * vms_data.ads:
8468         Add qualifier for new gnatstub option '--no-exception'
8469
8470         * gnat_ugn.texi:
8471         Add the description of the new gnatstub option '--no-exception'
8472
8473 2009-04-10  Robert Dewar  <dewar@adacore.com>
8474
8475         * rtsfind.adb: Minor reformatting
8476
8477 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8478
8479         * sem_disp.adb: Minor reformatting.
8480         Add comment pointing to RM clause for the case of warning against a
8481         (failed) attempt at declaring a primitive operation elsewhere than in a
8482         package spec.
8483
8484 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8485
8486         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8487         an actual for a previous formal package of the current instance.
8488
8489 2009-04-10  Bob Duff  <duff@adacore.com>
8490
8491         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8492         them first, rather than on the extended main unit.
8493
8494 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8495
8496         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8497         specification of full view carries a null exclusion indicator, create
8498         an itype for it, to check for conformance with partial view.
8499
8500 2009-04-10  Bob Duff  <duff@adacore.com>
8501
8502         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8503
8504         * rtsfind.adb: Minor comment changes, and remove useless code.
8505
8506         * sinfo.ads: Add ??? comment.
8507
8508 2009-04-10  Vincent Celier  <celier@adacore.com>
8509
8510         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8511
8512 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8513
8514         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8515         type is a synchronized type, retrieve tag information from the
8516         corresponding record, which has the dispatch table link.
8517
8518 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
8519
8520         * g-comlin.adb (Group_Analysis): Take care of switches that might be
8521         decomposed afterwards, but are present as-is in the command line
8522         configuration, and thus should be kept as-is.
8523
8524 2009-04-10  Robert Dewar  <dewar@adacore.com>
8525
8526         * gnat_rm.texi: Document that postconditions are tested on implicit
8527         returns.
8528
8529         * sem_aux.adb: Minor reformatting
8530
8531 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8532
8533         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8534         setting Etype.
8535         
8536         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8537         Null_Exclusion_In_Return_Present when an access-to-function type has a
8538         result type with an explicit not null.
8539
8540         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8541         given on the result type, then create a null-excluding itype for the
8542         function.
8543
8544         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
8545         the case where a null exclusion is imposed on a named access type.
8546         (Analyze_Subprogram_Specification): Push and pop the scope of the
8547         function around the call to Analyze_Return_Type in the case of no
8548         formals, for consistency with handling when formals are present
8549         (Process_Formals does this). Ensures that any itype created for the
8550         return type will be associated with the proper scope.
8551
8552         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
8553         exclusion is given on a generic function's result type, then create a
8554         null-excluding itype for the generic function.
8555         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
8556         for an actual for a formal in object according to the setting on the
8557         formal. Ensures null exclusion checks are done when the association is
8558         elaborated.
8559
8560         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
8561         N_Access_Function_Definition.
8562
8563         * sinfo.adb: Add Get_ and Set_ operations for
8564         Null_Exclusion_In_Return_Present.
8565
8566 2009-04-10  Bob Duff  <duff@adacore.com>
8567
8568         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
8569         call to the _Postconditions procedure in the case of implicit returns
8570         from analysis to expansion. This eliminates some duplicated code. Use
8571         the Postcondition_Proc to find the identity of this procedure during
8572         expansion.
8573
8574 2009-04-10  Robert Dewar  <dewar@adacore.com>
8575
8576         * sem_ch6.adb: Minor code clean up.
8577
8578         * einfo.ads, sem_attr.adb: Minor comment fixes.
8579
8580 2009-04-10  Robert Dewar  <dewar@adacore.com>
8581
8582         * sem_ch8.adb: Minor reformatting
8583
8584 2009-04-10  Robert Dewar  <dewar@adacore.com>
8585
8586         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
8587         procedures.
8588
8589         * sem_ch6.adb: Minor code clean up.
8590
8591 2009-04-10  Robert Dewar  <dewar@adacore.com>
8592
8593         * mlib-tgt-specific-xi.adb: Minor reformatting
8594
8595 2009-04-10  Bob Duff  <duff@adacore.com>
8596
8597         * einfo.ads: Minor comment fixes
8598
8599 2009-04-10  Vincent Celier  <celier@adacore.com>
8600
8601         * snames.ads-tmpl: Remove names that are no longer used in the
8602         Project Manager.
8603         Mark specifically those that are used only in gprbuild
8604
8605 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
8606
8607         * init.c: Adjust EH support code on Alpha/Tru64.
8608
8609 2009-04-10  Bob Duff  <duff@adacore.com>
8610
8611         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
8612         procedure on every path that could return implicitly (not via a return
8613         statement) from a procedure.
8614
8615 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8616
8617         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
8618         valid scope for a task declarations and therefore for a master id.
8619
8620 2009-04-10  Robert Dewar  <dewar@adacore.com>
8621
8622         * sem_aux.adb: Minor reformatting
8623
8624 2009-04-10  Vincent Celier  <celier@adacore.com>
8625
8626         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
8627         True.
8628         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
8629         (Set_Obsolescent_Check): New procedure to change the value of
8630         Obsolescent_Check_Flag.
8631
8632         * scn.ads (Set_Obsolescent_Check): New procedure to control
8633         Obsolescent_Check.
8634
8635         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
8636         obsolescent features while preprocessing.
8637
8638 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8639
8640         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
8641         generated files on all platforms.
8642
8643 2009-04-10  Robert Dewar  <dewar@adacore.com>
8644
8645         * sem_aux.adb: Minor reformatting
8646
8647 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8648
8649         * sem_ch3.adb (Access_Definition): Handle properly the case of a
8650         protected function with formals that returns an anonymous access type.
8651
8652 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8653
8654         * sem_disp.adb: Minor reformatting
8655
8656 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
8657
8658         * seh_init.c: Do not use the 32-bit specific implementation of
8659         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
8660         version TBD).
8661
8662 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8663
8664         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
8665         a '/' at the end so we better use the complete target name to determine
8666         whether it is a PowerPC 55xx target.
8667
8668 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8669
8670         * sem_eval.adb: Minor reformatting
8671
8672 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8673
8674         * snames.h, snames.ads, snames.adb: Remove files, now generated from
8675         templates.
8676
8677         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
8678         above.
8679
8680         * xsnamest.adb: New file.
8681
8682         * gcc-interface/Make-lang.in: New target for automated generation of
8683         snames.ads, snames.adb and snames.h
8684
8685 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8686
8687         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
8688         avoid compile time warnings.
8689         Do not add gcc/config in include search list while compiling the RTS.
8690         Pragma Thread_Local_Storage is available on any target.
8691
8692 2009-04-10  Bob Duff  <duff@adacore.com>
8693
8694         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
8695
8696 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8697
8698         * init.c: Install signal handler on Darwin.
8699
8700 2009-04-10  Robert Dewar  <dewar@adacore.com>
8701
8702         * sem_prag.adb: Minor reformatting
8703
8704         * exp_util.adb (Make_Non_Empty_Check): New function
8705         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
8706         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
8707
8708 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
8709
8710         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
8711
8712 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8713
8714         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
8715         tool prefix for AVR and PowerPC 55xx targets.
8716
8717 2009-04-10  Robert Dewar  <dewar@adacore.com>
8718
8719         * sem_warn.adb (Within_Postcondition): New function
8720         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
8721
8722 2009-04-10  Robert Dewar  <dewar@adacore.com>
8723
8724         * sem_warn.adb: Minor reformatting
8725
8726         * make.adb: Minor reformatting.
8727
8728 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8729
8730         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
8731         entity and the scope is a subprogram, retrieve the Sloc of the
8732         subprogram's body rather than using the sloc of the spec, for better
8733         line-stepping behavior in gdb.
8734         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
8735         controller, use the Sloc of the first declaration of the containing list
8736         rather than that of the node that triggered creation of the list
8737         controller.
8738
8739 2009-04-10  Vincent Celier  <celier@adacore.com>
8740
8741         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
8742         to avoid gcc warning.
8743
8744 2009-04-10  Robert Dewar  <dewar@adacore.com>
8745
8746         * g-comlin.adb: Add ??? comment
8747
8748 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8749
8750         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
8751         unreferenced entities for a package with no visible declarations.
8752
8753 2009-04-10  Robert Dewar  <dewar@adacore.com>
8754
8755         * exp_ch9.adb: Minor reformatting
8756
8757 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8758
8759         * sem_prag.adb: Minor reformatting
8760
8761 2009-04-10  Vincent Celier  <celier@adacore.com>
8762
8763         * prj-nmsc.adb:
8764         (Check_Library_Attributes): For a project qualified as a library project
8765         that is not a library project, indicate in the error message which
8766         attributes are missing (Library_Dir and/or Library_Name).
8767
8768 2009-04-10  Bob Duff  <duff@adacore.com>
8769
8770         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
8771         generated nodes, because it might confuse various circuits in the FE.
8772
8773 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8774
8775         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
8776         of pragma. It will be recopied and analyzed when used in call to
8777         Create_Task.
8778
8779         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
8780         initialization operations and recognize use of it in procedure calls
8781         within init_procs.
8782
8783         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8784         argument, because it may have side-effects.
8785
8786         * exp_ch2.adb: Remove obsolete comments on default functions
8787
8788 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8789
8790         * adaint.c (RTX section): Do for RTX the same thing as we do for
8791         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8792
8793 2009-04-10  Robert Dewar  <dewar@adacore.com>
8794
8795         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8796
8797         * sem_res.adb (Resolve_Call): Fix test for
8798         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8799         a non-dynamic scope).
8800
8801 2009-04-10  Robert Dewar  <dewar@adacore.com>
8802
8803         * make.adb: Add comment.
8804         Minor reformatting
8805
8806 2009-04-10  Nicolas Setton  <setton@adacore.com>
8807
8808         * s-osprim-darwin.adb: New file.
8809
8810         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8811
8812 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8813
8814         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8815
8816 2009-04-09  Nick Clifton  <nickc@redhat.com>
8817
8818         * adadecode.h: Change copyright header to refer to version
8819         3 of the GNU General Public License with version 3.1 of the
8820         GCC Runtime Library Exception and to point readers at the
8821         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8822         page.
8823         * 9drpc.adb: Likewise.
8824         * a-assert.adb: Likewise.
8825         * a-astaco.adb: Likewise.
8826         * a-calari.adb: Likewise.
8827         * a-calcon.adb: Likewise.
8828         * a-calcon.ads: Likewise.
8829         * a-caldel.ads: Likewise.
8830         * a-calend-vms.adb: Likewise.
8831         * a-calend-vms.ads: Likewise.
8832         * a-calend.adb: Likewise.
8833         * a-calend.ads: Likewise.
8834         * a-calfor.adb: Likewise.
8835         * a-catizo.adb: Likewise.
8836         * a-cdlili.adb: Likewise.
8837         * a-cdlili.ads: Likewise.
8838         * a-cgaaso.adb: Likewise.
8839         * a-cgaaso.ads: Likewise.
8840         * a-cgarso.adb: Likewise.
8841         * a-cgcaso.adb: Likewise.
8842         * a-chacon.adb: Likewise.
8843         * a-chacon.ads: Likewise.
8844         * a-chahan.adb: Likewise.
8845         * a-chahan.ads: Likewise.
8846         * a-chlat9.ads: Likewise.
8847         * a-chtgke.adb: Likewise.
8848         * a-chtgke.ads: Likewise.
8849         * a-chtgop.adb: Likewise.
8850         * a-chtgop.ads: Likewise.
8851         * a-chzla1.ads: Likewise.
8852         * a-chzla9.ads: Likewise.
8853         * a-cidlli.adb: Likewise.
8854         * a-cidlli.ads: Likewise.
8855         * a-cihama.adb: Likewise.
8856         * a-cihama.ads: Likewise.
8857         * a-cihase.adb: Likewise.
8858         * a-cihase.ads: Likewise.
8859         * a-ciorma.adb: Likewise.
8860         * a-ciorma.ads: Likewise.
8861         * a-ciormu.adb: Likewise.
8862         * a-ciormu.ads: Likewise.
8863         * a-ciorse.adb: Likewise.
8864         * a-ciorse.ads: Likewise.
8865         * a-clrefi.adb: Likewise.
8866         * a-clrefi.ads: Likewise.
8867         * a-cohama.adb: Likewise.
8868         * a-cohama.ads: Likewise.
8869         * a-cohase.adb: Likewise.
8870         * a-cohase.ads: Likewise.
8871         * a-cohata.ads: Likewise.
8872         * a-coinve.adb: Likewise.
8873         * a-coinve.ads: Likewise.
8874         * a-colien.adb: Likewise.
8875         * a-colien.ads: Likewise.
8876         * a-colire.adb: Likewise.
8877         * a-colire.ads: Likewise.
8878         * a-comlin.adb: Likewise.
8879         * a-comlin.ads: Likewise.
8880         * a-convec.adb: Likewise.
8881         * a-convec.ads: Likewise.
8882         * a-coorma.adb: Likewise.
8883         * a-coorma.ads: Likewise.
8884         * a-coormu.adb: Likewise.
8885         * a-coormu.ads: Likewise.
8886         * a-coorse.adb: Likewise.
8887         * a-coorse.ads: Likewise.
8888         * a-coprnu.adb: Likewise.
8889         * a-coprnu.ads: Likewise.
8890         * a-crbltr.ads: Likewise.
8891         * a-crbtgk.adb: Likewise.
8892         * a-crbtgk.ads: Likewise.
8893         * a-crbtgo.adb: Likewise.
8894         * a-crbtgo.ads: Likewise.
8895         * a-crdlli.adb: Likewise.
8896         * a-crdlli.ads: Likewise.
8897         * a-cwila1.ads: Likewise.
8898         * a-cwila9.ads: Likewise.
8899         * a-decima.adb: Likewise.
8900         * a-decima.ads: Likewise.
8901         * a-diocst.adb: Likewise.
8902         * a-diocst.ads: Likewise.
8903         * a-direct.adb: Likewise.
8904         * a-direct.ads: Likewise.
8905         * a-direio.adb: Likewise.
8906         * a-direio.ads: Likewise.
8907         * a-dirval-mingw.adb: Likewise.
8908         * a-dirval-vms.adb: Likewise.
8909         * a-dirval.adb: Likewise.
8910         * a-dirval.ads: Likewise.
8911         * a-dynpri.adb: Likewise.
8912         * a-einuoc.adb: Likewise.
8913         * a-einuoc.ads: Likewise.
8914         * a-elchha.adb: Likewise.
8915         * a-elchha.ads: Likewise.
8916         * a-envvar.adb: Likewise.
8917         * a-excach.adb: Likewise.
8918         * a-except-2005.adb: Likewise.
8919         * a-except-2005.ads: Likewise.
8920         * a-except.adb: Likewise.
8921         * a-except.ads: Likewise.
8922         * a-excpol-abort.adb: Likewise.
8923         * a-excpol.adb: Likewise.
8924         * a-exctra.adb: Likewise.
8925         * a-exctra.ads: Likewise.
8926         * a-exetim-mingw.adb: Likewise.
8927         * a-exetim-mingw.ads: Likewise.
8928         * a-exexda.adb: Likewise.
8929         * a-exexpr-gcc.adb: Likewise.
8930         * a-exexpr.adb: Likewise.
8931         * a-exextr.adb: Likewise.
8932         * a-exstat.adb: Likewise.
8933         * a-filico.adb: Likewise.
8934         * a-filico.ads: Likewise.
8935         * a-finali.adb: Likewise.
8936         * a-finali.ads: Likewise.
8937         * a-interr.ads: Likewise.
8938         * a-intnam-aix.ads: Likewise.
8939         * a-intnam-darwin.ads: Likewise.
8940         * a-intnam-dummy.ads: Likewise.
8941         * a-intnam-freebsd.ads: Likewise.
8942         * a-intnam-hpux.ads: Likewise.
8943         * a-intnam-irix.ads: Likewise.
8944         * a-intnam-linux.ads: Likewise.
8945         * a-intnam-lynxos.ads: Likewise.
8946         * a-intnam-mingw.ads: Likewise.
8947         * a-intnam-rtems.ads: Likewise.
8948         * a-intnam-solaris.ads: Likewise.
8949         * a-intnam-tru64.ads: Likewise.
8950         * a-intnam-vms.ads: Likewise.
8951         * a-intnam-vxworks.ads: Likewise.
8952         * a-intsig.adb: Likewise.
8953         * a-intsig.ads: Likewise.
8954         * a-ngcefu.adb: Likewise.
8955         * a-ngcoar.adb: Likewise.
8956         * a-ngcoty.adb: Likewise.
8957         * a-ngcoty.ads: Likewise.
8958         * a-ngelfu.adb: Likewise.
8959         * a-ngrear.adb: Likewise.
8960         * a-ngrear.ads: Likewise.
8961         * a-nudira.adb: Likewise.
8962         * a-nudira.ads: Likewise.
8963         * a-nuflra.adb: Likewise.
8964         * a-nuflra.ads: Likewise.
8965         * a-numaux-darwin.adb: Likewise.
8966         * a-numaux-darwin.ads: Likewise.
8967         * a-numaux-libc-x86.ads: Likewise.
8968         * a-numaux-vxworks.ads: Likewise.
8969         * a-numaux-x86.adb: Likewise.
8970         * a-numaux-x86.ads: Likewise.
8971         * a-numaux.ads: Likewise.
8972         * a-rbtgso.adb: Likewise.
8973         * a-rbtgso.ads: Likewise.
8974         * a-reatim.ads: Likewise.
8975         * a-retide.adb: Likewise.
8976         * a-retide.ads: Likewise.
8977         * a-rttiev.adb: Likewise.
8978         * a-rttiev.ads: Likewise.
8979         * a-secain.adb: Likewise.
8980         * a-secain.ads: Likewise.
8981         * a-sequio.adb: Likewise.
8982         * a-sequio.ads: Likewise.
8983         * a-shcain.adb: Likewise.
8984         * a-shcain.ads: Likewise.
8985         * a-siocst.adb: Likewise.
8986         * a-siocst.ads: Likewise.
8987         * a-slcain.adb: Likewise.
8988         * a-slcain.ads: Likewise.
8989         * a-ssicst.adb: Likewise.
8990         * a-ssicst.ads: Likewise.
8991         * a-stboha.adb: Likewise.
8992         * a-stmaco.ads: Likewise.
8993         * a-storio.adb: Likewise.
8994         * a-strbou.adb: Likewise.
8995         * a-strbou.ads: Likewise.
8996         * a-stream.ads: Likewise.
8997         * a-strfix.adb: Likewise.
8998         * a-strhas.adb: Likewise.
8999         * a-strmap.adb: Likewise.
9000         * a-strmap.ads: Likewise.
9001         * a-strsea.adb: Likewise.
9002         * a-strsea.ads: Likewise.
9003         * a-strsup.adb: Likewise.
9004         * a-strsup.ads: Likewise.
9005         * a-strunb.adb: Likewise.
9006         * a-strunb.ads: Likewise.
9007         * a-ststio.adb: Likewise.
9008         * a-ststio.ads: Likewise.
9009         * a-stunau.adb: Likewise.
9010         * a-stunau.ads: Likewise.
9011         * a-stunha.adb: Likewise.
9012         * a-stwibo.adb: Likewise.
9013         * a-stwibo.ads: Likewise.
9014         * a-stwifi.adb: Likewise.
9015         * a-stwiha.adb: Likewise.
9016         * a-stwima.adb: Likewise.
9017         * a-stwima.ads: Likewise.
9018         * a-stwise.adb: Likewise.
9019         * a-stwise.ads: Likewise.
9020         * a-stwisu.adb: Likewise.
9021         * a-stwisu.ads: Likewise.
9022         * a-stwiun.adb: Likewise.
9023         * a-stwiun.ads: Likewise.
9024         * a-stzbou.adb: Likewise.
9025         * a-stzbou.ads: Likewise.
9026         * a-stzfix.adb: Likewise.
9027         * a-stzhas.adb: Likewise.
9028         * a-stzmap.adb: Likewise.
9029         * a-stzmap.ads: Likewise.
9030         * a-stzsea.adb: Likewise.
9031         * a-stzsea.ads: Likewise.
9032         * a-stzsup.adb: Likewise.
9033         * a-stzsup.ads: Likewise.
9034         * a-stzunb.adb: Likewise.
9035         * a-stzunb.ads: Likewise.
9036         * a-suteio.adb: Likewise.
9037         * a-suteio.ads: Likewise.
9038         * a-swbwha.adb: Likewise.
9039         * a-swmwco.ads: Likewise.
9040         * a-swunau.adb: Likewise.
9041         * a-swunau.ads: Likewise.
9042         * a-swuwha.adb: Likewise.
9043         * a-swuwti.adb: Likewise.
9044         * a-swuwti.ads: Likewise.
9045         * a-sytaco.adb: Likewise.
9046         * a-sytaco.ads: Likewise.
9047         * a-szbzha.adb: Likewise.
9048         * a-szmzco.ads: Likewise.
9049         * a-szunau.adb: Likewise.
9050         * a-szunau.ads: Likewise.
9051         * a-szuzha.adb: Likewise.
9052         * a-szuzti.adb: Likewise.
9053         * a-szuzti.ads: Likewise.
9054         * a-tags.adb: Likewise.
9055         * a-tags.ads: Likewise.
9056         * a-tasatt.ads: Likewise.
9057         * a-taside.adb: Likewise.
9058         * a-taside.ads: Likewise.
9059         * a-taster.adb: Likewise.
9060         * a-teioed.adb: Likewise.
9061         * a-teioed.ads: Likewise.
9062         * a-textio.adb: Likewise.
9063         * a-textio.ads: Likewise.
9064         * a-tiboio.adb: Likewise.
9065         * a-ticoau.adb: Likewise.
9066         * a-ticoau.ads: Likewise.
9067         * a-ticoio.adb: Likewise.
9068         * a-ticoio.ads: Likewise.
9069         * a-tideau.adb: Likewise.
9070         * a-tideau.ads: Likewise.
9071         * a-tideio.adb: Likewise.
9072         * a-tideio.ads: Likewise.
9073         * a-tienau.adb: Likewise.
9074         * a-tienau.ads: Likewise.
9075         * a-tienio.adb: Likewise.
9076         * a-tienio.ads: Likewise.
9077         * a-tifiio.adb: Likewise.
9078         * a-tifiio.ads: Likewise.
9079         * a-tiflau.adb: Likewise.
9080         * a-tiflau.ads: Likewise.
9081         * a-tiflio.adb: Likewise.
9082         * a-tiflio.ads: Likewise.
9083         * a-tigeau.adb: Likewise.
9084         * a-tigeau.ads: Likewise.
9085         * a-tiinau.adb: Likewise.
9086         * a-tiinau.ads: Likewise.
9087         * a-tiinio.adb: Likewise.
9088         * a-tiinio.ads: Likewise.
9089         * a-timoau.adb: Likewise.
9090         * a-timoau.ads: Likewise.
9091         * a-timoio.adb: Likewise.
9092         * a-timoio.ads: Likewise.
9093         * a-tiocst.adb: Likewise.
9094         * a-tiocst.ads: Likewise.
9095         * a-titest.adb: Likewise.
9096         * a-wichun.adb: Likewise.
9097         * a-wichun.ads: Likewise.
9098         * a-witeio.adb: Likewise.
9099         * a-witeio.ads: Likewise.
9100         * a-wtcoau.adb: Likewise.
9101         * a-wtcoau.ads: Likewise.
9102         * a-wtcoio.adb: Likewise.
9103         * a-wtcstr.adb: Likewise.
9104         * a-wtcstr.ads: Likewise.
9105         * a-wtdeau.adb: Likewise.
9106         * a-wtdeau.ads: Likewise.
9107         * a-wtdeio.adb: Likewise.
9108         * a-wtdeio.ads: Likewise.
9109         * a-wtedit.adb: Likewise.
9110         * a-wtedit.ads: Likewise.
9111         * a-wtenau.adb: Likewise.
9112         * a-wtenau.ads: Likewise.
9113         * a-wtenio.adb: Likewise.
9114         * a-wtenio.ads: Likewise.
9115         * a-wtfiio.adb: Likewise.
9116         * a-wtfiio.ads: Likewise.
9117         * a-wtflau.adb: Likewise.
9118         * a-wtflau.ads: Likewise.
9119         * a-wtflio.adb: Likewise.
9120         * a-wtflio.ads: Likewise.
9121         * a-wtgeau.adb: Likewise.
9122         * a-wtgeau.ads: Likewise.
9123         * a-wtinau.adb: Likewise.
9124         * a-wtinau.ads: Likewise.
9125         * a-wtinio.adb: Likewise.
9126         * a-wtmoau.adb: Likewise.
9127         * a-wtmoau.ads: Likewise.
9128         * a-wtmoio.adb: Likewise.
9129         * a-wtmoio.ads: Likewise.
9130         * a-wttest.adb: Likewise.
9131         * a-wwboio.adb: Likewise.
9132         * a-zchuni.adb: Likewise.
9133         * a-zchuni.ads: Likewise.
9134         * a-ztcoau.adb: Likewise.
9135         * a-ztcoau.ads: Likewise.
9136         * a-ztcoio.adb: Likewise.
9137         * a-ztcstr.adb: Likewise.
9138         * a-ztcstr.ads: Likewise.
9139         * a-ztdeau.adb: Likewise.
9140         * a-ztdeau.ads: Likewise.
9141         * a-ztdeio.adb: Likewise.
9142         * a-ztdeio.ads: Likewise.
9143         * a-ztedit.adb: Likewise.
9144         * a-ztedit.ads: Likewise.
9145         * a-ztenau.adb: Likewise.
9146         * a-ztenau.ads: Likewise.
9147         * a-ztenio.adb: Likewise.
9148         * a-ztenio.ads: Likewise.
9149         * a-ztexio.adb: Likewise.
9150         * a-ztexio.ads: Likewise.
9151         * a-ztfiio.adb: Likewise.
9152         * a-ztfiio.ads: Likewise.
9153         * a-ztflau.adb: Likewise.
9154         * a-ztflau.ads: Likewise.
9155         * a-ztflio.adb: Likewise.
9156         * a-ztflio.ads: Likewise.
9157         * a-ztgeau.adb: Likewise.
9158         * a-ztgeau.ads: Likewise.
9159         * a-ztinau.adb: Likewise.
9160         * a-ztinau.ads: Likewise.
9161         * a-ztinio.adb: Likewise.
9162         * a-ztmoau.adb: Likewise.
9163         * a-ztmoau.ads: Likewise.
9164         * a-ztmoio.adb: Likewise.
9165         * a-ztmoio.ads: Likewise.
9166         * a-zttest.adb: Likewise.
9167         * a-zzboio.adb: Likewise.
9168         * adadecode.c: Likewise.
9169         * adaint.c: Likewise.
9170         * adaint.h: Likewise.
9171         * alloc.ads: Likewise.
9172         * argv.c: Likewise.
9173         * arit64.c: Likewise.
9174         * atree.adb: Likewise.
9175         * atree.ads: Likewise.
9176         * aux-io.c: Likewise.
9177         * cal.c: Likewise.
9178         * casing.adb: Likewise.
9179         * casing.ads: Likewise.
9180         * cio.c: Likewise.
9181         * csets.adb: Likewise.
9182         * csets.ads: Likewise.
9183         * cstreams.c: Likewise.
9184         * ctrl_c.c: Likewise.
9185         * debug.adb: Likewise.
9186         * debug.ads: Likewise.
9187         * dec.ads: Likewise.
9188         * einfo.adb: Likewise.
9189         * einfo.ads: Likewise.
9190         * elists.adb: Likewise.
9191         * elists.ads: Likewise.
9192         * env.c: Likewise.
9193         * env.h: Likewise.
9194         * errno.c: Likewise.
9195         * exit.c: Likewise.
9196         * fe.h: Likewise.
9197         * final.c: Likewise.
9198         * fname.adb: Likewise.
9199         * fname.ads: Likewise.
9200         * g-allein.ads: Likewise.
9201         * g-alleve.adb: Likewise.
9202         * g-alleve.ads: Likewise.
9203         * g-altcon.adb: Likewise.
9204         * g-altcon.ads: Likewise.
9205         * g-altive.ads: Likewise.
9206         * g-alveop.adb: Likewise.
9207         * g-alveop.ads: Likewise.
9208         * g-alvety.ads: Likewise.
9209         * g-alvevi.ads: Likewise.
9210         * g-arrspl.adb: Likewise.
9211         * g-arrspl.ads: Likewise.
9212         * g-calend.ads: Likewise.
9213         * g-comlin.adb: Likewise.
9214         * g-debpoo.adb: Likewise.
9215         * g-debpoo.ads: Likewise.
9216         * g-eacodu-vms.adb: Likewise.
9217         * g-eacodu.adb: Likewise.
9218         * g-excact.adb: Likewise.
9219         * g-excact.ads: Likewise.
9220         * g-locfil.adb: Likewise.
9221         * g-os_lib.ads: Likewise.
9222         * g-rannum.adb: Likewise.
9223         * g-rannum.ads: Likewise.
9224         * g-regist.adb: Likewise.
9225         * g-regist.ads: Likewise.
9226         * g-signal.adb: Likewise.
9227         * g-signal.ads: Likewise.
9228         * g-soccon.ads: Likewise.
9229         * g-string.adb: Likewise.
9230         * g-string.ads: Likewise.
9231         * g-strspl.ads: Likewise.
9232         * g-timsta.adb: Likewise.
9233         * g-timsta.ads: Likewise.
9234         * g-trasym-vms-alpha.adb: Likewise.
9235         * g-trasym-vms-ia64.adb: Likewise.
9236         * g-utf_32.adb: Likewise.
9237         * g-utf_32.ads: Likewise.
9238         * g-wistsp.ads: Likewise.
9239         * g-zstspl.ads: Likewise.
9240         * gmem.c: Likewise.
9241         * gnatvsn.adb: Likewise.
9242         * gnatvsn.ads: Likewise.
9243         * gsocket.h: Likewise.
9244         * hostparm.ads: Likewise.
9245         * i-c.adb: Likewise.
9246         * i-cexten.ads: Likewise.
9247         * i-cobol.adb: Likewise.
9248         * i-cobol.ads: Likewise.
9249         * i-cpoint.adb: Likewise.
9250         * i-cpoint.ads: Likewise.
9251         * i-cpp.adb: Likewise.
9252         * i-cpp.ads: Likewise.
9253         * i-cstrea-vms.adb: Likewise.
9254         * i-cstrea.adb: Likewise.
9255         * i-cstrea.ads: Likewise.
9256         * i-cstrin.adb: Likewise.
9257         * i-cstrin.ads: Likewise.
9258         * i-forbla-darwin.adb: Likewise.
9259         * i-forbla-unimplemented.ads: Likewise.
9260         * i-forbla.adb: Likewise.
9261         * i-forbla.ads: Likewise.
9262         * i-forlap.ads: Likewise.
9263         * i-fortra.adb: Likewise.
9264         * i-pacdec.adb: Likewise.
9265         * i-pacdec.ads: Likewise.
9266         * i-vxwoio.adb: Likewise.
9267         * i-vxwoio.ads: Likewise.
9268         * indepsw-aix.adb: Likewise.
9269         * indepsw-gnu.adb: Likewise.
9270         * indepsw-mingw.adb: Likewise.
9271         * indepsw.adb: Likewise.
9272         * indepsw.ads: Likewise.
9273         * init.c: Likewise.
9274         * initialize.c: Likewise.
9275         * interfac.ads: Likewise.
9276         * krunch.adb: Likewise.
9277         * krunch.ads: Likewise.
9278         * lib-list.adb: Likewise.
9279         * lib-sort.adb: Likewise.
9280         * lib.adb: Likewise.
9281         * lib.ads: Likewise.
9282         * link.c: Likewise.
9283         * math_lib.adb: Likewise.
9284         * memtrack.adb: Likewise.
9285         * mingw32.h: Likewise.
9286         * mkdir.c: Likewise.
9287         * namet-sp.adb: Likewise.
9288         * namet-sp.ads: Likewise.
9289         * namet.adb: Likewise.
9290         * namet.ads: Likewise.
9291         * nlists.adb: Likewise.
9292         * nlists.ads: Likewise.
9293         * opt.adb: Likewise.
9294         * opt.ads: Likewise.
9295         * output.adb: Likewise.
9296         * output.ads: Likewise.
9297         * raise-gcc.c: Likewise.
9298         * raise.c: Likewise.
9299         * raise.h: Likewise.
9300         * repinfo.adb: Likewise.
9301         * repinfo.ads: Likewise.
9302         * repinfo.h: Likewise.
9303         * rident.ads: Likewise.
9304         * s-addima.adb: Likewise.
9305         * s-addima.ads: Likewise.
9306         * s-addope.adb: Likewise.
9307         * s-addope.ads: Likewise.
9308         * s-arit64.adb: Likewise.
9309         * s-arit64.ads: Likewise.
9310         * s-assert.adb: Likewise.
9311         * s-assert.ads: Likewise.
9312         * s-asthan-vms-alpha.adb: Likewise.
9313         * s-asthan.adb: Likewise.
9314         * s-asthan.ads: Likewise.
9315         * s-atacco.adb: Likewise.
9316         * s-atacco.ads: Likewise.
9317         * s-auxdec-empty.adb: Likewise.
9318         * s-auxdec-empty.ads: Likewise.
9319         * s-auxdec-vms_64.ads: Likewise.
9320         * s-auxdec.adb: Likewise.
9321         * s-auxdec.ads: Likewise.
9322         * s-bitops.adb: Likewise.
9323         * s-bitops.ads: Likewise.
9324         * s-boarop.ads: Likewise.
9325         * s-carsi8.adb: Likewise.
9326         * s-carsi8.ads: Likewise.
9327         * s-carun8.adb: Likewise.
9328         * s-carun8.ads: Likewise.
9329         * s-casi16.adb: Likewise.
9330         * s-casi16.ads: Likewise.
9331         * s-casi32.adb: Likewise.
9332         * s-casi32.ads: Likewise.
9333         * s-casi64.adb: Likewise.
9334         * s-casi64.ads: Likewise.
9335         * s-casuti.ads: Likewise.
9336         * s-caun16.adb: Likewise.
9337         * s-caun16.ads: Likewise.
9338         * s-caun32.adb: Likewise.
9339         * s-caun32.ads: Likewise.
9340         * s-caun64.adb: Likewise.
9341         * s-caun64.ads: Likewise.
9342         * s-chepoo.ads: Likewise.
9343         * s-crc32.adb: Likewise.
9344         * s-crc32.ads: Likewise.
9345         * s-crtl.ads: Likewise.
9346         * s-direio.adb: Likewise.
9347         * s-direio.ads: Likewise.
9348         * s-dsaser.ads: Likewise.
9349         * s-except.adb: Likewise.
9350         * s-except.ads: Likewise.
9351         * s-exctab.adb: Likewise.
9352         * s-exctab.ads: Likewise.
9353         * s-exnint.adb: Likewise.
9354         * s-exnint.ads: Likewise.
9355         * s-exnllf.adb: Likewise.
9356         * s-exnllf.ads: Likewise.
9357         * s-exnlli.adb: Likewise.
9358         * s-exnlli.ads: Likewise.
9359         * s-expint.adb: Likewise.
9360         * s-expint.ads: Likewise.
9361         * s-explli.adb: Likewise.
9362         * s-explli.ads: Likewise.
9363         * s-expllu.adb: Likewise.
9364         * s-expllu.ads: Likewise.
9365         * s-expmod.adb: Likewise.
9366         * s-expmod.ads: Likewise.
9367         * s-expuns.adb: Likewise.
9368         * s-expuns.ads: Likewise.
9369         * s-fatflt.ads: Likewise.
9370         * s-fatgen.adb: Likewise.
9371         * s-fatgen.ads: Likewise.
9372         * s-fatlfl.ads: Likewise.
9373         * s-fatllf.ads: Likewise.
9374         * s-fatsfl.ads: Likewise.
9375         * s-ficobl.ads: Likewise.
9376         * s-fileio.adb: Likewise.
9377         * s-fileio.ads: Likewise.
9378         * s-filofl.ads: Likewise.
9379         * s-finimp.adb: Likewise.
9380         * s-finimp.ads: Likewise.
9381         * s-finroo.adb: Likewise.
9382         * s-finroo.ads: Likewise.
9383         * s-fishfl.ads: Likewise.
9384         * s-fore.adb: Likewise.
9385         * s-fore.ads: Likewise.
9386         * s-fvadfl.ads: Likewise.
9387         * s-fvaffl.ads: Likewise.
9388         * s-fvagfl.ads: Likewise.
9389         * s-gearop.adb: Likewise.
9390         * s-gearop.ads: Likewise.
9391         * s-gecobl.adb: Likewise.
9392         * s-gecobl.ads: Likewise.
9393         * s-gecola.adb: Likewise.
9394         * s-gecola.ads: Likewise.
9395         * s-gerebl.adb: Likewise.
9396         * s-gerebl.ads: Likewise.
9397         * s-gerela.adb: Likewise.
9398         * s-gerela.ads: Likewise.
9399         * s-geveop.adb: Likewise.
9400         * s-geveop.ads: Likewise.
9401         * s-gloloc.adb: Likewise.
9402         * s-gloloc.ads: Likewise.
9403         * s-hibaen.ads: Likewise.
9404         * s-imenne.adb: Likewise.
9405         * s-imenne.ads: Likewise.
9406         * s-imgbiu.adb: Likewise.
9407         * s-imgbiu.ads: Likewise.
9408         * s-imgboo.adb: Likewise.
9409         * s-imgboo.ads: Likewise.
9410         * s-imgcha.adb: Likewise.
9411         * s-imgcha.ads: Likewise.
9412         * s-imgdec.adb: Likewise.
9413         * s-imgdec.ads: Likewise.
9414         * s-imgenu.adb: Likewise.
9415         * s-imgenu.ads: Likewise.
9416         * s-imgint.adb: Likewise.
9417         * s-imgint.ads: Likewise.
9418         * s-imgllb.adb: Likewise.
9419         * s-imgllb.ads: Likewise.
9420         * s-imglld.adb: Likewise.
9421         * s-imglld.ads: Likewise.
9422         * s-imglli.adb: Likewise.
9423         * s-imglli.ads: Likewise.
9424         * s-imgllu.adb: Likewise.
9425         * s-imgllu.ads: Likewise.
9426         * s-imgllw.adb: Likewise.
9427         * s-imgllw.ads: Likewise.
9428         * s-imgrea.adb: Likewise.
9429         * s-imgrea.ads: Likewise.
9430         * s-imguns.adb: Likewise.
9431         * s-imguns.ads: Likewise.
9432         * s-imgwch.adb: Likewise.
9433         * s-imgwch.ads: Likewise.
9434         * s-imgwiu.adb: Likewise.
9435         * s-imgwiu.ads: Likewise.
9436         * s-inmaop-dummy.adb: Likewise.
9437         * s-inmaop-vms.adb: Likewise.
9438         * s-inmaop.ads: Likewise.
9439         * s-interr-hwint.adb: Likewise.
9440         * s-interr-sigaction.adb: Likewise.
9441         * s-interr-vms.adb: Likewise.
9442         * s-interr.adb: Likewise.
9443         * s-interr.ads: Likewise.
9444         * s-intman-dummy.adb: Likewise.
9445         * s-intman-mingw.adb: Likewise.
9446         * s-intman-posix.adb: Likewise.
9447         * s-intman-solaris.adb: Likewise.
9448         * s-intman-vms.adb: Likewise.
9449         * s-intman-vms.ads: Likewise.
9450         * s-intman-vxworks.adb: Likewise.
9451         * s-intman-vxworks.ads: Likewise.
9452         * s-intman.ads: Likewise.
9453         * s-io.adb: Likewise.
9454         * s-io.ads: Likewise.
9455         * s-linux-alpha.ads: Likewise.
9456         * s-linux-hppa.ads: Likewise.
9457         * s-linux.ads: Likewise.
9458         * s-maccod.ads: Likewise.
9459         * s-mantis.adb: Likewise.
9460         * s-mantis.ads: Likewise.
9461         * s-mastop-irix.adb: Likewise.
9462         * s-mastop.adb: Likewise.
9463         * s-mastop.ads: Likewise.
9464         * s-memcop.ads: Likewise.
9465         * s-memory-mingw.adb: Likewise.
9466         * s-memory.adb: Likewise.
9467         * s-memory.ads: Likewise.
9468         * s-os_lib.ads: Likewise.
9469         * s-oscons-tmplt.c: Likewise.
9470         * s-osinte-aix.adb: Likewise.
9471         * s-osinte-darwin.adb: Likewise.
9472         * s-osinte-freebsd.adb: Likewise.
9473         * s-osinte-irix.adb: Likewise.
9474         * s-osinte-lynxos-3.adb: Likewise.
9475         * s-osinte-rtems.ads: Likewise.
9476         * s-osinte-tru64.adb: Likewise.
9477         * s-osinte-vxworks-kernel.adb: Likewise.
9478         * s-osinte-vxworks.adb: Likewise.
9479         * s-osprim-mingw.adb: Likewise.
9480         * s-osprim-posix.adb: Likewise.
9481         * s-osprim-solaris.adb: Likewise.
9482         * s-osprim-unix.adb: Likewise.
9483         * s-osprim-vms.adb: Likewise.
9484         * s-osprim-vms.ads: Likewise.
9485         * s-osprim-vxworks.adb: Likewise.
9486         * s-osprim.ads: Likewise.
9487         * s-pack03.adb: Likewise.
9488         * s-pack03.ads: Likewise.
9489         * s-pack05.adb: Likewise.
9490         * s-pack05.ads: Likewise.
9491         * s-pack06.adb: Likewise.
9492         * s-pack06.ads: Likewise.
9493         * s-pack07.adb: Likewise.
9494         * s-pack07.ads: Likewise.
9495         * s-pack09.adb: Likewise.
9496         * s-pack09.ads: Likewise.
9497         * s-pack10.adb: Likewise.
9498         * s-pack10.ads: Likewise.
9499         * s-pack11.adb: Likewise.
9500         * s-pack11.ads: Likewise.
9501         * s-pack12.adb: Likewise.
9502         * s-pack12.ads: Likewise.
9503         * s-pack13.adb: Likewise.
9504         * s-pack13.ads: Likewise.
9505         * s-pack14.adb: Likewise.
9506         * s-pack14.ads: Likewise.
9507         * s-pack15.adb: Likewise.
9508         * s-pack15.ads: Likewise.
9509         * s-pack17.adb: Likewise.
9510         * s-pack17.ads: Likewise.
9511         * s-pack18.adb: Likewise.
9512         * s-pack18.ads: Likewise.
9513         * s-pack19.adb: Likewise.
9514         * s-pack19.ads: Likewise.
9515         * s-pack20.adb: Likewise.
9516         * s-pack20.ads: Likewise.
9517         * s-pack21.adb: Likewise.
9518         * s-pack21.ads: Likewise.
9519         * s-pack22.adb: Likewise.
9520         * s-pack22.ads: Likewise.
9521         * s-pack23.adb: Likewise.
9522         * s-pack23.ads: Likewise.
9523         * s-pack24.adb: Likewise.
9524         * s-pack24.ads: Likewise.
9525         * s-pack25.adb: Likewise.
9526         * s-pack25.ads: Likewise.
9527         * s-pack26.adb: Likewise.
9528         * s-pack26.ads: Likewise.
9529         * s-pack27.adb: Likewise.
9530         * s-pack27.ads: Likewise.
9531         * s-pack28.adb: Likewise.
9532         * s-pack28.ads: Likewise.
9533         * s-pack29.adb: Likewise.
9534         * s-pack29.ads: Likewise.
9535         * s-pack30.adb: Likewise.
9536         * s-pack30.ads: Likewise.
9537         * s-pack31.adb: Likewise.
9538         * s-pack31.ads: Likewise.
9539         * s-pack33.adb: Likewise.
9540         * s-pack33.ads: Likewise.
9541         * s-pack34.adb: Likewise.
9542         * s-pack34.ads: Likewise.
9543         * s-pack35.adb: Likewise.
9544         * s-pack35.ads: Likewise.
9545         * s-pack36.adb: Likewise.
9546         * s-pack36.ads: Likewise.
9547         * s-pack37.adb: Likewise.
9548         * s-pack37.ads: Likewise.
9549         * s-pack38.adb: Likewise.
9550         * s-pack38.ads: Likewise.
9551         * s-pack39.adb: Likewise.
9552         * s-pack39.ads: Likewise.
9553         * s-pack40.adb: Likewise.
9554         * s-pack40.ads: Likewise.
9555         * s-pack41.adb: Likewise.
9556         * s-pack41.ads: Likewise.
9557         * s-pack42.adb: Likewise.
9558         * s-pack42.ads: Likewise.
9559         * s-pack43.adb: Likewise.
9560         * s-pack43.ads: Likewise.
9561         * s-pack44.adb: Likewise.
9562         * s-pack44.ads: Likewise.
9563         * s-pack45.adb: Likewise.
9564         * s-pack45.ads: Likewise.
9565         * s-pack46.adb: Likewise.
9566         * s-pack46.ads: Likewise.
9567         * s-pack47.adb: Likewise.
9568         * s-pack47.ads: Likewise.
9569         * s-pack48.adb: Likewise.
9570         * s-pack48.ads: Likewise.
9571         * s-pack49.adb: Likewise.
9572         * s-pack49.ads: Likewise.
9573         * s-pack50.adb: Likewise.
9574         * s-pack50.ads: Likewise.
9575         * s-pack51.adb: Likewise.
9576         * s-pack51.ads: Likewise.
9577         * s-pack52.adb: Likewise.
9578         * s-pack52.ads: Likewise.
9579         * s-pack53.adb: Likewise.
9580         * s-pack53.ads: Likewise.
9581         * s-pack54.adb: Likewise.
9582         * s-pack54.ads: Likewise.
9583         * s-pack55.adb: Likewise.
9584         * s-pack55.ads: Likewise.
9585         * s-pack56.adb: Likewise.
9586         * s-pack56.ads: Likewise.
9587         * s-pack57.adb: Likewise.
9588         * s-pack57.ads: Likewise.
9589         * s-pack58.adb: Likewise.
9590         * s-pack58.ads: Likewise.
9591         * s-pack59.adb: Likewise.
9592         * s-pack59.ads: Likewise.
9593         * s-pack60.adb: Likewise.
9594         * s-pack60.ads: Likewise.
9595         * s-pack61.adb: Likewise.
9596         * s-pack61.ads: Likewise.
9597         * s-pack62.adb: Likewise.
9598         * s-pack62.ads: Likewise.
9599         * s-pack63.adb: Likewise.
9600         * s-pack63.ads: Likewise.
9601         * s-parame-ae653.ads: Likewise.
9602         * s-parame-hpux.ads: Likewise.
9603         * s-parame-rtems.adb: Likewise.
9604         * s-parame-vms-alpha.ads: Likewise.
9605         * s-parame-vms-ia64.ads: Likewise.
9606         * s-parame-vms-restrict.ads: Likewise.
9607         * s-parame-vxworks.adb: Likewise.
9608         * s-parame-vxworks.ads: Likewise.
9609         * s-parame.adb: Likewise.
9610         * s-parame.ads: Likewise.
9611         * s-parint.adb: Likewise.
9612         * s-parint.ads: Likewise.
9613         * s-pooglo.adb: Likewise.
9614         * s-pooglo.ads: Likewise.
9615         * s-pooloc.adb: Likewise.
9616         * s-pooloc.ads: Likewise.
9617         * s-poosiz.adb: Likewise.
9618         * s-poosiz.ads: Likewise.
9619         * s-powtab.ads: Likewise.
9620         * s-proinf-irix-athread.adb: Likewise.
9621         * s-proinf-irix-athread.ads: Likewise.
9622         * s-proinf.adb: Likewise.
9623         * s-proinf.ads: Likewise.
9624         * s-purexc.ads: Likewise.
9625         * s-rannum.adb: Likewise.
9626         * s-rannum.ads: Likewise.
9627         * s-restri.adb: Likewise.
9628         * s-restri.ads: Likewise.
9629         * s-rident.ads: Likewise.
9630         * s-rpc.adb: Likewise.
9631         * s-rpc.ads: Likewise.
9632         * s-scaval.adb: Likewise.
9633         * s-scaval.ads: Likewise.
9634         * s-secsta.adb: Likewise.
9635         * s-secsta.ads: Likewise.
9636         * s-sequio.adb: Likewise.
9637         * s-sequio.ads: Likewise.
9638         * s-shasto.adb: Likewise.
9639         * s-shasto.ads: Likewise.
9640         * s-soflin.adb: Likewise.
9641         * s-soflin.ads: Likewise.
9642         * s-solita.adb: Likewise.
9643         * s-solita.ads: Likewise.
9644         * s-sopco3.adb: Likewise.
9645         * s-sopco3.ads: Likewise.
9646         * s-sopco4.adb: Likewise.
9647         * s-sopco4.ads: Likewise.
9648         * s-sopco5.adb: Likewise.
9649         * s-sopco5.ads: Likewise.
9650         * s-stache.adb: Likewise.
9651         * s-stache.ads: Likewise.
9652         * s-stalib.adb: Likewise.
9653         * s-stalib.ads: Likewise.
9654         * s-stausa.adb: Likewise.
9655         * s-stausa.ads: Likewise.
9656         * s-stchop-limit.ads: Likewise.
9657         * s-stchop-rtems.adb: Likewise.
9658         * s-stchop-vxworks.adb: Likewise.
9659         * s-stchop.adb: Likewise.
9660         * s-stchop.ads: Likewise.
9661         * s-stoele.adb: Likewise.
9662         * s-stoele.ads: Likewise.
9663         * s-stopoo.adb: Likewise.
9664         * s-stopoo.ads: Likewise.
9665         * s-stratt.adb: Likewise.
9666         * s-stratt.ads: Likewise.
9667         * s-strcom.adb: Likewise.
9668         * s-strcom.ads: Likewise.
9669         * s-string.adb: Likewise.
9670         * s-string.ads: Likewise.
9671         * s-strops.adb: Likewise.
9672         * s-strops.ads: Likewise.
9673         * s-strxdr.adb: Likewise.
9674         * s-ststop.adb: Likewise.
9675         * s-ststop.ads: Likewise.
9676         * s-taasde.adb: Likewise.
9677         * s-taasde.ads: Likewise.
9678         * s-tadeca.adb: Likewise.
9679         * s-tadeca.ads: Likewise.
9680         * s-tadert.adb: Likewise.
9681         * s-tadert.ads: Likewise.
9682         * s-taenca.adb: Likewise.
9683         * s-taenca.ads: Likewise.
9684         * s-taprob.ads: Likewise.
9685         * s-taprop-dummy.adb: Likewise.
9686         * s-taprop-hpux-dce.adb: Likewise.
9687         * s-taprop-irix.adb: Likewise.
9688         * s-taprop-linux.adb: Likewise.
9689         * s-taprop-lynxos.adb: Likewise.
9690         * s-taprop-mingw.adb: Likewise.
9691         * s-taprop-posix.adb: Likewise.
9692         * s-taprop-solaris.adb: Likewise.
9693         * s-taprop-tru64.adb: Likewise.
9694         * s-taprop-vms.adb: Likewise.
9695         * s-taprop-vxworks.adb: Likewise.
9696         * s-taprop.ads: Likewise.
9697         * s-tarest.adb: Likewise.
9698         * s-tarest.ads: Likewise.
9699         * s-tasdeb.adb: Likewise.
9700         * s-tasdeb.ads: Likewise.
9701         * s-tasinf-irix.ads: Likewise.
9702         * s-tasinf-linux.adb: Likewise.
9703         * s-tasinf-linux.ads: Likewise.
9704         * s-tasinf-mingw.adb: Likewise.
9705         * s-tasinf-mingw.ads: Likewise.
9706         * s-tasinf-solaris.adb: Likewise.
9707         * s-tasinf-solaris.ads: Likewise.
9708         * s-tasinf-tru64.ads: Likewise.
9709         * s-tasinf.adb: Likewise.
9710         * s-tasinf.ads: Likewise.
9711         * s-tasini.adb: Likewise.
9712         * s-tasini.ads: Likewise.
9713         * s-taskin.adb: Likewise.
9714         * s-taskin.ads: Likewise.
9715         * s-taspri-dummy.ads: Likewise.
9716         * s-taspri-hpux-dce.ads: Likewise.
9717         * s-taspri-mingw.ads: Likewise.
9718         * s-taspri-solaris.ads: Likewise.
9719         * s-taspri-tru64.ads: Likewise.
9720         * s-taspri-vms.ads: Likewise.
9721         * s-taspri-vxworks.ads: Likewise.
9722         * s-tasque.adb: Likewise.
9723         * s-tasque.ads: Likewise.
9724         * s-tasren.adb: Likewise.
9725         * s-tasren.ads: Likewise.
9726         * s-tasres.ads: Likewise.
9727         * s-tassta.adb: Likewise.
9728         * s-tassta.ads: Likewise.
9729         * s-tasuti.adb: Likewise.
9730         * s-tasuti.ads: Likewise.
9731         * s-tfsetr-default.adb: Likewise.
9732         * s-tfsetr-vxworks.adb: Likewise.
9733         * s-tpinop.adb: Likewise.
9734         * s-tpinop.ads: Likewise.
9735         * s-tpoben.adb: Likewise.
9736         * s-tpoben.ads: Likewise.
9737         * s-tpobop.adb: Likewise.
9738         * s-tpobop.ads: Likewise.
9739         * s-tpopde-vms.adb: Likewise.
9740         * s-tpopde-vms.ads: Likewise.
9741         * s-tpopsp-lynxos.adb: Likewise.
9742         * s-tpopsp-posix-foreign.adb: Likewise.
9743         * s-tpopsp-posix.adb: Likewise.
9744         * s-tpopsp-solaris.adb: Likewise.
9745         * s-tpopsp-vxworks.adb: Likewise.
9746         * s-tporft.adb: Likewise.
9747         * s-tposen.adb: Likewise.
9748         * s-tposen.ads: Likewise.
9749         * s-traceb.adb: Likewise.
9750         * s-traceb.ads: Likewise.
9751         * s-traces-default.adb: Likewise.
9752         * s-traces.adb: Likewise.
9753         * s-traces.ads: Likewise.
9754         * s-traent-vms.adb: Likewise.
9755         * s-traent-vms.ads: Likewise.
9756         * s-traent.adb: Likewise.
9757         * s-traent.ads: Likewise.
9758         * s-trafor-default.adb: Likewise.
9759         * s-trafor-default.ads: Likewise.
9760         * s-tratas-default.adb: Likewise.
9761         * s-tratas.adb: Likewise.
9762         * s-tratas.ads: Likewise.
9763         * s-unstyp.ads: Likewise.
9764         * s-utf_32.adb: Likewise.
9765         * s-utf_32.ads: Likewise.
9766         * s-vaflop-vms-alpha.adb: Likewise.
9767         * s-vaflop.adb: Likewise.
9768         * s-vaflop.ads: Likewise.
9769         * s-valboo.adb: Likewise.
9770         * s-valboo.ads: Likewise.
9771         * s-valcha.adb: Likewise.
9772         * s-valcha.ads: Likewise.
9773         * s-valdec.adb: Likewise.
9774         * s-valdec.ads: Likewise.
9775         * s-valenu.adb: Likewise.
9776         * s-valenu.ads: Likewise.
9777         * s-valint.adb: Likewise.
9778         * s-valint.ads: Likewise.
9779         * s-vallld.adb: Likewise.
9780         * s-vallld.ads: Likewise.
9781         * s-vallli.adb: Likewise.
9782         * s-vallli.ads: Likewise.
9783         * s-valllu.adb: Likewise.
9784         * s-valllu.ads: Likewise.
9785         * s-valrea.adb: Likewise.
9786         * s-valrea.ads: Likewise.
9787         * s-valuns.adb: Likewise.
9788         * s-valuns.ads: Likewise.
9789         * s-valuti.adb: Likewise.
9790         * s-valuti.ads: Likewise.
9791         * s-valwch.adb: Likewise.
9792         * s-valwch.ads: Likewise.
9793         * s-veboop.adb: Likewise.
9794         * s-veboop.ads: Likewise.
9795         * s-vector.ads: Likewise.
9796         * s-vercon.adb: Likewise.
9797         * s-vercon.ads: Likewise.
9798         * s-vmexta.adb: Likewise.
9799         * s-vmexta.ads: Likewise.
9800         * s-vxwext-kernel.ads: Likewise.
9801         * s-vxwext-rtp.adb: Likewise.
9802         * s-vxwext-rtp.ads: Likewise.
9803         * s-vxwext.ads: Likewise.
9804         * s-vxwork-arm.ads: Likewise.
9805         * s-vxwork-m68k.ads: Likewise.
9806         * s-vxwork-mips.ads: Likewise.
9807         * s-vxwork-ppc.ads: Likewise.
9808         * s-vxwork-sparcv9.ads: Likewise.
9809         * s-vxwork-x86.ads: Likewise.
9810         * s-wchcnv.adb: Likewise.
9811         * s-wchcnv.ads: Likewise.
9812         * s-wchcon.adb: Likewise.
9813         * s-wchcon.ads: Likewise.
9814         * s-wchjis.adb: Likewise.
9815         * s-wchjis.ads: Likewise.
9816         * s-wchstw.adb: Likewise.
9817         * s-wchstw.ads: Likewise.
9818         * s-wchwts.adb: Likewise.
9819         * s-wchwts.ads: Likewise.
9820         * s-widboo.adb: Likewise.
9821         * s-widboo.ads: Likewise.
9822         * s-widcha.adb: Likewise.
9823         * s-widcha.ads: Likewise.
9824         * s-widenu.adb: Likewise.
9825         * s-widenu.ads: Likewise.
9826         * s-widlli.adb: Likewise.
9827         * s-widlli.ads: Likewise.
9828         * s-widllu.adb: Likewise.
9829         * s-widllu.ads: Likewise.
9830         * s-widwch.adb: Likewise.
9831         * s-widwch.ads: Likewise.
9832         * s-win32.ads: Likewise.
9833         * s-winext.ads: Likewise.
9834         * s-wwdcha.adb: Likewise.
9835         * s-wwdcha.ads: Likewise.
9836         * s-wwdenu.adb: Likewise.
9837         * s-wwdenu.ads: Likewise.
9838         * s-wwdwch.adb: Likewise.
9839         * s-wwdwch.ads: Likewise.
9840         * scans.adb: Likewise.
9841         * scans.ads: Likewise.
9842         * seh_init.c: Likewise.
9843         * sfn_scan.adb: Likewise.
9844         * sinfo.adb: Likewise.
9845         * sinfo.ads: Likewise.
9846         * sinput.adb: Likewise.
9847         * sinput.ads: Likewise.
9848         * snames.adb: Likewise.
9849         * snames.ads: Likewise.
9850         * socket.c: Likewise.
9851         * stand.adb: Likewise.
9852         * stand.ads: Likewise.
9853         * stringt.adb: Likewise.
9854         * stringt.ads: Likewise.
9855         * sysdep.c: Likewise.
9856         * system-aix.ads: Likewise.
9857         * system-darwin-ppc.ads: Likewise.
9858         * system-darwin-x86.ads: Likewise.
9859         * system-darwin-x86_64.ads: Likewise.
9860         * system-freebsd-x86.ads: Likewise.
9861         * system-hpux-ia64.ads: Likewise.
9862         * system-hpux.ads: Likewise.
9863         * system-irix-n32.ads: Likewise.
9864         * system-irix-n64.ads: Likewise.
9865         * system-irix-o32.ads: Likewise.
9866         * system-linux-alpha.ads: Likewise.
9867         * system-linux-hppa.ads: Likewise.
9868         * system-linux-ia64.ads: Likewise.
9869         * system-linux-mips.ads: Likewise.
9870         * system-linux-mipsel.ads: Likewise.
9871         * system-linux-ppc.ads: Likewise.
9872         * system-linux-ppc64.ads: Likewise.
9873         * system-linux-s390.ads: Likewise.
9874         * system-linux-s390x.ads: Likewise.
9875         * system-linux-sh4.ads: Likewise.
9876         * system-linux-sparc.ads: Likewise.
9877         * system-linux-sparcv9.ads: Likewise.
9878         * system-linux-x86.ads: Likewise.
9879         * system-linux-x86_64.ads: Likewise.
9880         * system-lynxos-ppc.ads: Likewise.
9881         * system-lynxos-x86.ads: Likewise.
9882         * system-mingw-x86_64.ads: Likewise.
9883         * system-mingw.ads: Likewise.
9884         * system-rtems.ads: Likewise.
9885         * system-solaris-sparc.ads: Likewise.
9886         * system-solaris-sparcv9.ads: Likewise.
9887         * system-solaris-x86.ads: Likewise.
9888         * system-solaris-x86_64.ads: Likewise.
9889         * system-tru64.ads: Likewise.
9890         * system-vms-ia64.ads: Likewise.
9891         * system-vms-zcx.ads: Likewise.
9892         * system-vms.ads: Likewise.
9893         * system-vms_64.ads: Likewise.
9894         * system-vxworks-arm.ads: Likewise.
9895         * system-vxworks-m68k.ads: Likewise.
9896         * system-vxworks-mips.ads: Likewise.
9897         * system-vxworks-ppc.ads: Likewise.
9898         * system-vxworks-sparcv9.ads: Likewise.
9899         * system-vxworks-x86.ads: Likewise.
9900         * system.ads: Likewise.
9901         * table.adb: Likewise.
9902         * table.ads: Likewise.
9903         * targext.c: Likewise.
9904         * targparm.ads: Likewise.
9905         * tree_in.adb: Likewise.
9906         * tree_in.ads: Likewise.
9907         * tree_io.adb: Likewise.
9908         * tree_io.ads: Likewise.
9909         * types.adb: Likewise.
9910         * types.ads: Likewise.
9911         * uintp.adb: Likewise.
9912         * uintp.ads: Likewise.
9913         * uname.adb: Likewise.
9914         * uname.ads: Likewise.
9915         * urealp.adb: Likewise.
9916         * urealp.ads: Likewise.
9917         * vx_stack_info.c: Likewise.
9918         * widechar.adb: Likewise.
9919         * widechar.ads: Likewise.
9920         * exp_attr.adb: Change copyright header to refer to version
9921         3 of the GNU General Public License and to point readers at the
9922         COPYING3 file and the FSF's license web page.
9923         * sem.adb: Likewise.
9924         * sem_attr.ads: Likewise.
9925         * freeze.adb: Likewise.
9926         * freeze.ads: Likewise.
9927         * errout.ads: Likewise.
9928         * erroutc.adb: Likewise.
9929         * exp_ch11.ads: Likewise.
9930
9931 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9932
9933         * config-lang.in: Change copyright header to refer to version
9934         3 of the GNU General Public License and to point readers at the
9935         COPYING3 file and the FSF's license web page.
9936         * gcc-interface/trans.c: Likewise.
9937         * gnathtml.pl: Likewise.
9938         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
9939         * gcc-interface/gigi.h: Likewise.
9940         * gcc-interface/misc.c: Likewise.
9941         * gcc-interface/targtyps.c: Likewise.
9942
9943 2009-04-09  Nicolas Setton  <setton@adacore.com>
9944
9945         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9946
9947         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9948         struct_timeval.
9949
9950 2009-04-09  Bob Duff  <duff@adacore.com>
9951
9952         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9953         internally-generated nodes related to select statements to avoid
9954         confusing the debugger.
9955
9956 2009-04-09  Pascal Obry  <obry@adacore.com>
9957
9958         * make.adb: Ensure that all linker arguments are duplicated.
9959
9960 2009-04-09  Robert Dewar  <dewar@adacore.com>
9961
9962         * sem_ch5.adb: Minor reformatting
9963
9964 2009-04-09  Vincent Celier  <celier@adacore.com>
9965
9966         * vms_data.ads:
9967         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9968         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9969         New qualifier /LXDEBUG=nnn for -gnatDnnn
9970         For H820-010
9971
9972         * gnat_ugn.texi:
9973         Update documentation for VMS qualifiers equivalent to -gnatGnn and
9974         -gnatDnn
9975
9976 2009-04-09  Nicolas Setton  <setton@adacore.com>
9977
9978         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9979         to match layout of siginfo_t in sys/signal.h.
9980
9981         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9982
9983 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9984
9985         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9986
9987 2009-04-09  Nicolas Setton  <setton@adacore.com>
9988
9989         * s-oscons-tmplt.c: Allow long lines in the generated spec.
9990         Add generation of Darwin-specific constants needed when binding to the
9991         pthread library.
9992
9993 2009-04-09  Robert Dewar  <dewar@adacore.com>
9994
9995         * checks.adb:
9996         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9997         when no invalid values exist, Avoid duplicate read of atomic variable.
9998
9999         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10000         (Standard_Unsigned): Set Is_Known_Valid
10001
10002         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10003         subtype declaration if no constraint.
10004         (Set_Modular_Size): Set Is_Known_Valid if appropriate
10005         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10006
10007 2009-04-09  Robert Dewar  <dewar@adacore.com>
10008
10009         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10010         switch.ads: for numeric switches, an optional equal sign is always
10011         allowed.
10012
10013 2009-04-09  Vincent Celier  <celier@adacore.com>
10014
10015         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10016         the case of file names is not significant.
10017
10018 2009-04-09  Vincent Celier  <celier@adacore.com>
10019
10020         * errout.adb: Remove dependency on package Style
10021
10022         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10023         moved to Stylesw.
10024         
10025         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10026         Styleg.
10027
10028         * errutil.adb, par.adb: Import Stylesw
10029
10030 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
10031
10032         * opt.ads: Fix typos.
10033
10034 2009-04-09  Robert Dewar  <dewar@adacore.com>
10035
10036         * einfo.adb: Minor reformatting
10037
10038 2009-04-09  Robert Dewar  <dewar@adacore.com>
10039
10040         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10041         units.
10042
10043         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10044
10045 2009-04-09  Robert Dewar  <dewar@adacore.com>
10046
10047         * g-comver.adb: Minor reformatting.
10048
10049 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10050
10051         * lib-load.ads (Load_Unit): Update documentation.
10052
10053 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
10054
10055         * lib-load.adb (Load_Unit): When loading the parent of a child unit
10056         named in a with_clause, retain the with_clause to preserve a
10057         limited_with indication.
10058
10059 2009-04-09  Robert Dewar  <dewar@adacore.com>
10060
10061         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10062         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10063         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10064         possible to replace an OR of two separate tests.
10065
10066 2009-04-09  Robert Dewar  <dewar@adacore.com>
10067
10068         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10069         Maximum_Messages.
10070         
10071         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10072         warning status as well.
10073         
10074         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10075         
10076         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10077         Maximum_Messages.
10078         
10079         * bindusg.adb, usage.adb: Update line for -gnatm switch
10080
10081         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10082         -mnn binder switch.
10083
10084 2009-04-09  Robert Dewar  <dewar@adacore.com>
10085
10086         * sem_ch10.adb: Minor reformatting.
10087
10088 2009-04-09  Bob Duff  <duff@adacore.com>
10089
10090         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10091         Set Sloc of generated nodes for calls to Undefer_Aborts and
10092         Save_Occurrence to No_Location, so the debugger ignores them and
10093         therefore does not jump back and forth when single stepping.
10094
10095 2009-04-09  Robert Dewar  <dewar@adacore.com>
10096
10097         * switch-b.adb: Minor reformatting.
10098
10099 2009-04-09  Robert Dewar  <dewar@adacore.com>
10100
10101         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10102         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10103         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10104         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10105         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10106         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10107         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10108         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10109         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10110         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10111         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10112
10113 2009-04-09  Robert Dewar  <dewar@adacore.com>
10114
10115         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10116
10117         * atree.h: Add Elist26
10118
10119         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10120         backends.
10121
10122 2009-04-09  Javier Miranda  <miranda@adacore.com>
10123
10124         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10125         retrieve from the Dispatch_Table_Wrappers list the external name.
10126         Addition of documentation.
10127         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10128         used to export secondary dispatch tables (in the previous version of
10129         the frontend only primary dispatch tables were exported). Addition of
10130         documentation.
10131         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10132         dispatch table of a given tagged type. 
10133         (Make_Tags): Modified to import secondary dispatch tables.
10134
10135         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10136         (Constant_Redeclaration): Code cleanup.
10137
10138         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10139         Dispatch_Table_Wrappers.  Update documentation.
10140
10141         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10142         Renamed to Dispatch_Table_Wrappers.
10143
10144         * sem_util.adb (Collect_Interface_Components): Improve handling of
10145         private types.
10146
10147         * atree.ads (Elist26, Set_Elist26): New subprograms
10148
10149         * atree.adb (Elist26, Set_Elist26): New subprograms
10150
10151 2009-04-09  Javier Miranda  <miranda@adacore.com>
10152
10153         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10154         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10155         tagged types.
10156
10157 2009-04-09  Robert Dewar  <dewar@adacore.com>
10158
10159         * s-direio.adb: Minor reformatting
10160
10161         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10162
10163 2009-04-09  Robert Dewar  <dewar@adacore.com>
10164
10165         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10166
10167 2009-04-09  Pascal Obry  <obry@adacore.com>
10168
10169         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10170         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10171         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10172         a-filico.ads: Add some missing overriding keywords.
10173
10174 2009-04-09  Pascal Obry  <obry@adacore.com>
10175
10176         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10177         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10178         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10179         reformatting.
10180
10181 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
10182
10183         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10184         missing overriding indicator if the new declaration is not seen as
10185         primitive.
10186
10187 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10188
10189         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10190         overflows in computation of bounds.
10191
10192 2009-04-09  Pascal Obry  <obry@adacore.com>
10193
10194         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10195         typos in comment.
10196
10197 2009-04-09  Robert Dewar  <dewar@adacore.com>
10198
10199         * sem_attr.adb (Check_Stream_Attribute): Check violation of
10200         restriction No_Streams
10201
10202         * gnat_rm.texi: Clarify No_Streams restriction
10203
10204         * g-socket.adb: Minor reformatting.
10205
10206 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10207
10208         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10209
10210 2009-04-09  Geert Bosch  <bosch@adacore.com>
10211
10212         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10213         (Set_Result): Likewise.
10214         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10215         conversion, as required by RM 4.6(31).
10216
10217 2009-04-08  Robert Dewar  <dewar@adacore.com>
10218
10219         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10220         suppressed.
10221         
10222         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10223         resolution steps.
10224
10225 2009-04-08  Robert Dewar  <dewar@adacore.com>
10226
10227         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10228         No_Local_Allocators restriction preventing local instantiation.
10229
10230 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10231
10232         * sem_eval.adb: Minor comment fix
10233
10234 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10235
10236         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10237         New limited controlled type used to automate the initialization and
10238         finalization of the sockets implementation.
10239         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10240
10241 2009-04-08  Vincent Celier  <celier@adacore.com>
10242
10243         * prj-attr.adb: New read-only project-level attribute Project_Dir
10244
10245         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10246         read-only attribute of the same name.
10247         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10248         (Recursive_Process): Ditto
10249
10250         * snames.adb: Add new standard name Project_Dir
10251
10252         * snames.ads: Add new standard name Project_Dir
10253
10254 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10255
10256         * checks.adb: Minor reformatting
10257
10258 2009-04-08  Vincent Celier  <celier@adacore.com>
10259
10260         * vms_data.ads: Add documentation for new style keyword
10261         OVERRIDING_INDICATORS
10262
10263 2009-04-08  Robert Dewar  <dewar@adacore.com>
10264
10265         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10266         spec is in the current unit.
10267
10268 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10269
10270         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10271         presence of entity.
10272
10273         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10274
10275 2009-04-08  Vincent Celier  <celier@adacore.com>
10276
10277         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10278
10279 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10280
10281         * checks.ads: Minor reformatting
10282
10283 2009-04-08  Robert Dewar  <dewar@adacore.com>
10284
10285         * gnat_rm.texi: Update documentation of pragma Obsolescent
10286         
10287         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10288         be omitted, and allow Entity parameter to be omitted.
10289
10290 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10291
10292         * exp_util.adb: Minor comment fix
10293
10294 2009-04-08  Robert Dewar  <dewar@adacore.com>
10295
10296         * g-socket.ads: Fix bad syntax in pragma Obsolescent
10297
10298         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10299         argument with no identifier following one that has an identifier. Was
10300         missed in some cases.
10301
10302         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10303         identifier.
10304         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10305
10306         * snames.adb: Add Name_Policy
10307
10308         * snames.ads: Add Name_Policy
10309
10310 2009-04-08  Robert Dewar  <dewar@adacore.com>
10311
10312         * gnat_rm.texi: Minor reformatting
10313
10314         * par-ch2.adb: Minor reformatting
10315
10316 2009-04-08  Robert Dewar  <dewar@adacore.com>
10317
10318         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10319
10320 2009-04-08  Robert Dewar  <dewar@adacore.com>
10321
10322         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10323         properly in the presence of Remote_Types or Remote_Call_Interface.
10324
10325         * sem_util.adb: Add comment.
10326
10327 2009-04-08  Robert Dewar  <dewar@adacore.com>
10328
10329         * ug_words: Add /ASSUME_VALID for -gnatB
10330
10331         * vms_data.ads: Add /ASSUME_VALID for -gnatB
10332
10333         * sem_cat.adb: Add clarifying commment
10334
10335         * a-direio.ads (Bytes): Make sure value is non-zero
10336
10337 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10338
10339         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10340         that does not come from source, check for a rewritten function call in
10341         prefixed notation before other forms of rewriting.
10342
10343 2009-04-08  Robert Dewar  <dewar@adacore.com>
10344
10345         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10346         these are now obsolescent units used only for bootrapping with an
10347         older compiler.
10348
10349 2009-04-08  Robert Dewar  <dewar@adacore.com>
10350
10351         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10352
10353         * sem_ch3.adb: Minor comment updates
10354
10355 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10356
10357         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10358         that come from source.
10359
10360 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10361
10362         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10363         * gcc-interface/decl.c (prepend_attributes): New case
10364         Pragma_Thread_Local_Storage.
10365         * gcc-interface/utils.c (process_attributes): New case
10366         ATTR_THREAD_LOCAL_STORAGE.
10367
10368 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10369
10370         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10371         by the back-end if it contains a call to a subprogram without a
10372         previous spec that is declared in the same unit.
10373
10374         * errout.ads: Update comments on uses of dirs
10375
10376 2009-04-08  Robert Dewar  <dewar@adacore.com>
10377
10378         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10379
10380 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10381
10382         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10383         variables.
10384         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10385
10386 2009-04-08  Vincent Celier  <celier@adacore.com>
10387
10388         * prj-nmsc.adb:
10389         (Add_Source): Add the mapping of the unit name to source file name in
10390         the Unit_Sources_HT hash table, if the unit name is not null.
10391
10392         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10393
10394         * prj.ads (Unit_Sources_Htable): New hash table instantiation
10395         (Project_Tree_Data): New component Unit_Sources_HT
10396
10397 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10398
10399         * sem_ch8.adb: Minor reformatting.
10400         Minor code reorganization.
10401
10402 2009-04-08  Robert Dewar  <dewar@adacore.com>
10403
10404         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10405         snames.ads, freeze.adb, par-prag.adb: Add implementation of
10406         pragma Thread_Local_Storage, setting new flag
10407         Has_Pragma_Thread_Local_Storage in corresponding entities.
10408
10409 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10410
10411         * prj.ads: Update comment on switches file
10412
10413         * prj-nmsc.adb: Code clean up. Use renaming clauses.
10414
10415 2009-04-08  Robert Dewar  <dewar@adacore.com>
10416
10417         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10418
10419 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10420
10421         * ali-util.adb: Minor comment fix
10422
10423 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10424
10425         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10426         appears in a context clause, and the enclosing package is mentioned in
10427         a limited_with_clause.
10428         (Use_One_Type): Reject clause if type is still incomplete.
10429
10430 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10431
10432         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10433         avoid copies of Source_Data variables when possible, since these
10434         involve calls to memcpy() which are done too many times.
10435
10436 2009-04-08  Robert Dewar  <dewar@adacore.com>
10437
10438         * exp_ch4.adb (Expand_Concatenate): Clean up code
10439
10440 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10441
10442         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10443         type for the case of concatenating a constrained array indexed by an
10444         enumeration type.
10445
10446 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10447
10448         * sem_ch6.adb (Check_Conformance): when checking conformance of an
10449         operation that overrides an abstract operation inherited from an
10450         interface, return False if only one of the controlling formals is an
10451         access parameter.
10452
10453 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10454
10455         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10456         mandated by AI05-105.
10457
10458 2009-04-07  Vincent Celier  <celier@adacore.com>
10459
10460         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10461
10462 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10463
10464         * usage.adb: Minor fix in usage message.
10465
10466         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10467         match declaration; the correct subtype is Node_Id, not Entity_Id,
10468         because the expected node kind is an identifier, not a defining
10469         identifier.
10470
10471         * switch-c.adb: Minor reformatting.
10472
10473         * uintp.adb: Minor reformatting.
10474
10475 2009-04-07  Robert Dewar  <dewar@adacore.com>
10476
10477         * exp_ch13.adb: Minor reformatting
10478
10479 2009-04-07  Robert Dewar  <dewar@adacore.com>
10480
10481         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10482         against missing parent.
10483
10484 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10485
10486         * xoscons.adb: Minor reformatting
10487
10488 2009-04-07  Robert Dewar  <dewar@adacore.com>
10489
10490         * rtsfind.ads: Remove obsolete string concatenation entries
10491
10492 2009-04-07  Robert Dewar  <dewar@adacore.com>
10493
10494         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10495
10496 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10497
10498         * sem_ch10.adb (Check_Body_Required): Handle properly imported
10499         subprograms.
10500
10501 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
10502
10503         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10504         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10505         is of a scalar or string type then suppress the setting of the
10506         expression to Empty.
10507
10508         * freeze.adb (Warn_Overlay): Also emit the warnings about default
10509         initialization for the cases of scalar and string objects when
10510         Init_Or_Norm_Scalars is True.
10511
10512 2009-04-07  Bob Duff  <duff@adacore.com>
10513
10514         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10515
10516 2009-04-07  Bob Duff  <duff@adacore.com>
10517
10518         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10519         Form parameter of Text_Translation=No allows binary mode for Text_IO
10520         files.
10521
10522         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10523
10524 2009-04-07  Javier Miranda  <miranda@adacore.com>
10525
10526         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10527         processing the bounds for bit packed arrays or VM target machines.
10528
10529 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10530
10531         * g-sothco.ads (Int_Access): Remove extraneous access type (use
10532         anonymous access instead).
10533         (Get_Socket_From_Set): Fix incorrectly reverted formals
10534         Last and Socket to match the underlying C routine.
10535
10536         * g-socket.adb, g-socket.ads
10537         (Get): Use named parameter associations instead of positional ones in
10538         call go Get_Socket_From_Set, since this routine has two formals of the
10539         same type.
10540         (Image): New procedure.
10541
10542         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10543         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10544         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
10545         for type of Arg formal.
10546
10547         * sem_warn.adb: Minor reformatting
10548
10549 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10550
10551         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
10552         over record components.
10553
10554 2009-04-07  Nicolas Roche  <roche@adacore.com>
10555
10556         * gsocket.h:
10557         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
10558         has disappeared between VxWorks 6.4 and VxWorks 6.5
10559         In RTP mode use time.h instead of times.h
10560
10561 2009-04-07  Robert Dewar  <dewar@adacore.com>
10562
10563         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
10564
10565 2009-04-07  Kevin Pouget  <pouget@adacore.com>
10566
10567         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
10568         expanded code for constrained types.
10569
10570 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10571
10572         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
10573         AI05-105: in an object renaming declaration, anonymousness is a name
10574         resolution rule.
10575
10576         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
10577
10578 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10579
10580         * g-comlin.adb (Expansion): Fix old regression: also return directory
10581         names when matching.
10582
10583 2009-04-07  Robert Dewar  <dewar@adacore.com>
10584
10585         * exp_ch4.adb:
10586         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
10587         (Expand_Concatenate): New name for Expand_Concatenate_String which has
10588         been rewritten to handle all types.
10589         (Expand_Concatenate_Other): Remove
10590
10591 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10592
10593         * lib-xref.adb (Generate_Reference): A default subprogram in an
10594         instance appears within the tree for the instance, but generates an
10595         implicit reference in the ALI.
10596
10597 2009-04-07  Javier Miranda  <miranda@adacore.com>
10598
10599         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
10600         derived type that has discriminants, propagate the list of interfaces
10601         to the corresponding new base type. In addition, propagate also
10602         attribute Limited_Present (found working in this patch).
10603
10604 2009-04-07  Robert Dewar  <dewar@adacore.com>
10605
10606         * exp_ch4.adb: Rewrite concatenation expansion.
10607
10608 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10609
10610         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
10611         relevant to packages.
10612
10613 2009-04-07  Robert Dewar  <dewar@adacore.com>
10614
10615         * sem_attr.adb: Minor reformatting
10616
10617         * sem_ch6.adb: Minor reformatting
10618
10619 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10620
10621         * socket.c: Add more protections against S_resolvLib_ macros.
10622
10623 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10624
10625         * sem_attr.adb: Minor reformatting
10626
10627 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10628
10629         * sem_ch6.adb (New_Overloaded_Entity): New predicate
10630         Is_Overriding_Alias to handle properly types that inherit two homonym
10631         operations that have distinct dispatch table entries.
10632
10633 2009-04-07  Emmanuel Briot  <briot@adacore.com>
10634
10635         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
10636         looking for the end of a parenthesis group
10637
10638 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10639
10640         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
10641
10642         * socket.c Don't use resolvLib_ macros if not defined.
10643
10644 2009-04-07  Robert Dewar  <dewar@adacore.com>
10645
10646         * g-socket.adb: Minor reformatting.
10647
10648         * g-socthi-mingw.adb: Minor reformatting
10649
10650         * g-sothco.ads: Minor reformatting
10651
10652         * exp_ch4.adb:
10653         (Expand_Concatenate_String): Complete rewrite to generate efficient code
10654         inline instead of relying on external library routines.
10655
10656         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
10657         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
10658         obsolescent
10659
10660 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10661
10662         * sem_attr.adb:
10663         (Eval_Attribute): for attributes of array objects that are not strings,
10664         attributes are not static if nominal subtype of object is unconstrained.
10665
10666 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10667
10668         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
10669         operations for a type T in an instance do not override each other,
10670         when T is derived from a formal private type, the corresponding
10671         operations inherited by a type derived from T outside
10672         of the instance do not override each other either.
10673
10674 2009-04-07  Robert Dewar  <dewar@adacore.com>
10675
10676         (Osint.Fail): Change calling sequence to have one string arg
10677         (Make.Make_Failed): Same change
10678         All callers are adjusted to use concatenation
10679
10680 2009-04-07  Robert Dewar  <dewar@adacore.com>
10681
10682         * exp_ch4.adb: Fix documentation typo
10683
10684 2009-04-07  Robert Dewar  <dewar@adacore.com>
10685
10686         * tbuild.ads: Minor reformatting
10687
10688 2009-04-07  Javier Miranda  <miranda@adacore.com>
10689
10690         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
10691         when compiling under ZFP runtime.
10692
10693 2009-04-07  Robert Dewar  <dewar@adacore.com>
10694
10695         * g-comlin.adb: Minor reformatting
10696
10697 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10698
10699         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10700         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
10701         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
10702         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
10703
10704 2009-04-07  Robert Dewar  <dewar@adacore.com>
10705
10706         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
10707
10708         * opt.ads (Sprint_Line_Limit): New parameter
10709         
10710         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
10711         
10712         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
10713         
10714         * usage.adb: Output information for -gnatGnn -gnatDnn
10715
10716 2009-04-07  Robert Dewar  <dewar@adacore.com>
10717
10718         * make.adb: Minor reformatting
10719
10720 2009-04-07  Robert Dewar  <dewar@adacore.com>
10721
10722         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
10723
10724 2009-04-07  Robert Dewar  <dewar@adacore.com>
10725
10726         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
10727
10728 2009-04-07  Robert Dewar  <dewar@adacore.com>
10729
10730         * checks.adb:
10731         Remove Assume_Valid parameter from In_Subrange_Of calls
10732         
10733         * sem_eval.adb:
10734         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10735         (Is_In_Range): Remove incorrect use of Assume_Valid
10736         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
10737         
10738         * sem_eval.ads:
10739         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10740         (Is_In_Range): Documentation cleanup
10741         (Is_Out_Of_Range): Documentation cleanup
10742
10743         * gnat_rm.texi:
10744         Add documentation for Assume_No_Invalid_Values pragma
10745
10746         * sem_ch12.adb: Minor reformatting
10747
10748         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
10749
10750         * sem_prag.adb: Improve error message.
10751
10752         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
10753         LF/CR no longer recognized as line terminator
10754
10755         * switch.ads: Minor documentation improvement
10756
10757         * vms_data.ads: Minor reformatting
10758
10759 2009-04-07  Robert Dewar  <dewar@adacore.com>
10760
10761         * checks.adb (Determine_Range): Add Assume_Valid parameter
10762         
10763         * checks.ads (Determine_Range): Add Assume_Valid parameter
10764         
10765         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
10766          Is_Null_Loop to suppress warnings in a loop body.
10767         
10768         * exp_ch4.adb:
10769         (Rewrite_Comparison): Major rewrite to accomodate invalid values
10770         
10771         * exp_ch5.adb:
10772         (Expand_N_Loop_Statement): Delete loop known not to execute
10773         
10774         * opt.ads:
10775         (Assume_No_Invalid_Values): Now set to False, and as documented, this
10776          fully enables the proper handling of invalid values.
10777         
10778         * sem_attr.adb:
10779         New calling sequence for Is_In_Range
10780         
10781         * sem_ch5.adb:
10782         (Analyze_Iteration_Scheme): Accomodate possible invalid values
10783          in determining if a loop range is null.
10784         
10785         * sem_eval.adb:
10786         (Is_In_Range): Add Assume_Valid parameter
10787         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10788         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10789          also to do more accurate and complete range analysis, catching more
10790          cases.
10791         
10792         * sem_eval.ads:
10793         (Is_In_Range): Add Assume_Valid parameter
10794         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10795         
10796         * sem_util.adb:
10797         New calling sequence for Is_In_Range
10798         
10799         * sinfo.adb:
10800         (Suppress_Loop_Warnings): New flag
10801         
10802         * sinfo.ads:
10803         (Is_Null_Loop): Update documentation
10804         (Suppress_Loop_Warnings): New flag
10805         
10806         * gnat_ugn.texi: Document -gnatB switch
10807
10808 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10809
10810         * gnatvsn.ads: Bump version number.
10811
10812 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10813
10814         * exp_ch3.adb: Minor rewording (comments)
10815
10816 2009-04-07  Robert Dewar  <dewar@adacore.com>
10817
10818         * exp_disp.adb: Minor reformatting
10819
10820 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10821
10822         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10823         underlying type.
10824         * gcc-interface/trans.c (lvalue_required_p): Likewise.
10825
10826 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10827
10828         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10829         Do not convert the result.  Remove obsolete comment.
10830
10831 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10832
10833         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10834         DECL_CONTEXT.
10835         (Subprogram_Body_to_gnu): Fix pasto.
10836
10837 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10838
10839         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10840         (void_type_decl_node): Remove.
10841         (init_gigi_decls): Likewise.
10842         (gnat_install_builtins): Declare.
10843         (record_builtin_type): Likewise.
10844         (create_type_stub_decl): Likewise.
10845         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10846         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10847         artificial.
10848         <E_Array_Subtype>: Use the index types, not only their name, in the
10849         record giving the names of the bounds, if any.
10850         For a packed array type, make it artificial only if the base type
10851         was artificial as well.  Remove redundant statement.
10852         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10853         dummy types.
10854         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10855         (rest_of_type_decl_compilation_no_defer): Likewise.
10856         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10857         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10858         and use create_type_stub_decl to build it.
10859         (gnat_pushdecl): Rewrite condition.
10860         (gnat_install_builtins): Remove bogus declaration.
10861         (record_builtin_type): New function.
10862         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10863         of types.
10864         (create_type_stub_decl): New function.
10865         (create_type_decl): Assert that the type is not dummy.  If the type
10866         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10867         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10868         (build_vms_descriptor): Likewise.
10869         (init_gigi_decls): Delete and move bulk of code to...
10870         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
10871         (emit_range_check): Add gnat_node parameter.
10872         (emit_index_check): Likewise.
10873         (emit_check): Likewise.
10874         (build_unary_op_trapv): Likewise.
10875         (build_binary_op_trapv): Likewise.
10876         (convert_with_check): Likewise.
10877         (Attribute_to_gnu): Adjust calls for above changes.
10878         (call_to_gnu): Likewise.
10879         (gnat_to_gnu): Likewise.
10880         (assoc_to_constructor): Likewise.
10881         (pos_to_constructor): Likewise.
10882         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10883         (process_type): Do not create TYPE_DECL for dummy types.
10884
10885 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10886
10887         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10888         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
10889         * gcc-interface/utils.c: Fix comments.
10890
10891 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10892
10893         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10894         move around.
10895         (gnat_to_gnu_type): Move around.
10896         (get_unpadded_type): Likewise.
10897         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10898         Tidy comments.
10899
10900 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10901
10902         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10903         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10904         (call_to_gnu): Invoke it instead of manually checking.
10905
10906 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
10907
10908         * gcc-interface/utils.c (finish_record_type): Force structural equality
10909         checks if the record type is discriminated.
10910
10911 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10912
10913         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10914         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10915         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10916         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10917         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10918         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10919         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10920
10921 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10922
10923         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10924         of TREE_CONSTANT_OVERFLOW.
10925
10926 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10927
10928         PR rtl-optimization/323
10929         * gcc-interface/misc.c (gnat_post_options): Set
10930         flag_excess_precision_cmdline.  Give an error for
10931         -fexcess-precision=standard for processors where the option is
10932         significant.
10933
10934 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10935
10936         PR c/39323
10937         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10938         on bit_align.
10939
10940 2009-03-11  Olivier Hainque  <hainque@adacore.com>
10941
10942         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10943         checks processing, remove unintended TREE_TYPE walk on index type.
10944
10945 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10946
10947         PR ada/39264
10948         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10949         call make_packable_type on fat pointer types.
10950         <E_Array_Subtype>: Likewise.
10951         <E_Record_Subtype>: Call make_packable_type on all record types
10952         except for fat pointer types.
10953         (make_packable_type): Likewise.
10954         (gnat_to_gnu_field): Likewise.
10955
10956 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10957
10958         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10959         EH_MECHANISM change made on 2007-12-06.
10960
10961 2009-02-26  Andreas Schwab  <schwab@suse.de>
10962
10963         PR ada/39172
10964         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10965         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10966         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10967         (AWK): Substitute.
10968         (target_cpu_default): Substitute.
10969
10970 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10971
10972         PR ada/39221
10973         * a-teioed.adb (Expand): Fix Result overflow.
10974
10975 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10976
10977         * gcc-interface/Makefile.in: Fix multilib handling for
10978         sparc64-linux.
10979
10980 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10981
10982         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10983
10984 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10985
10986         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10987
10988 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10989
10990         * gcc-interface/deftarg.c: Remove.
10991
10992 2009-02-10  Olivier Hainque  <hainque@adacore.com>
10993             Eric Botcazou  <ebotcazou@adacore.com>
10994
10995         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10996         (copy_alias_set): Rename into...
10997         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
10998         underlying array of unconstrained arrays for the new type as well.
10999         If the old and new alias sets don't conflict, make one a subset of
11000         the other as per the OP parameter.
11001         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11002         <E_Record_Type>: Do not copy the alias set for derived types.
11003         For all types, make the alias set of derived types a superset of
11004         that of their parent type.
11005         (make_aligning_type): Adjust calls to copy_alias_set.
11006         (make_packable_type): Likewise.
11007         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11008         Check for alias set conflict instead of strict equality to issue the
11009         warning.
11010
11011 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
11012
11013         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11014         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11015         (copy_alias_set): Assert that arrays have the same aliasing settings.
11016         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11017
11018 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
11019
11020         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11021         Set TYPE_NONALIASED_COMPONENT on the array type.
11022
11023 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
11024
11025         * gcc-interface/Makefile.in: Fix mipsel linux handling.
11026
11027 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
11028
11029         * gcc-interface/Makefile.in: Fix multilib handling for
11030         powerpc64-linux.
11031
11032 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
11033
11034         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11035         only useless conversions around renamed objects.
11036
11037 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
11038
11039         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11040         the _Tag field before any discriminants in the field list.
11041         (components_to_record): Remove obsolete comment.
11042
11043
11044 \f
11045 Copyright (C) 2009 Free Software Foundation, Inc.
11046
11047 Copying and distribution of this file, with or without modification,
11048 are permitted in any medium without royalty provided the copyright
11049 notice and this notice are preserved.