OSDN Git Service

06fdd53bb9048d71b604c147a7881e4fabf81376
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2012-12-15  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR ada/53766
4         Backport from mainline
5
6         2012-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7
8         * exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr
9         and Conversion_Added.  Add local constant Typ.
10         Retrieve the original attribute after the arithmetic check
11         machinery has modified the node. Add a conversion to the target
12         type when the prefix of attribute Max_Size_In_Storage_Elements
13         is a controlled type.
14
15 2012-12-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16
17         PR ada/52110
18         * s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and
19         pthread_rwlock_t subtypes.  Delete duplicate declaration of clockid_t.
20         * s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment.
21
22 2012-11-09  Eric Botcazou  <ebotcazou@adacore.com>
23
24         PR other/52438
25         * s-taspri-lynxos.ads: Delete.
26         * s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+.
27         * s-tpopsp-rtems.adb: Likewise.
28         * s-osinte-rtems.adb: Likewise.
29
30 2012-10-30  Eric Botcazou  <ebotcazou@adacore.com>
31
32         * gcc-interface/Make-lang.in: Fix and clean up rules for C files.
33
34 2012-10-22  Eric Botcazou  <ebotcazou@adacore.com>
35
36         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Force
37         BLKmode on the type if it is passed by reference.
38         <E_Array_Subtype>: Likewise.
39         <E_Record_Type>: Guard the call to Is_By_Reference_Type predicate.
40         <E_Record_Subtype>: Likewise.
41
42         * gcc-interface/Makefile.in: Remove outdated comment and reference to
43         non-existing file.
44
45 2012-10-22  Eric Botcazou  <ebotcazou@adacore.com>
46
47         * gcc-interface/trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size
48         directly to obtain an unsigned version of the base type.
49
50 2012-10-22  Eric Botcazou  <ebotcazou@adacore.com>
51
52         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: Do not
53         generate the special PARM_DECL for an Out parameter in LTO mode.
54
55 2012-10-02  Eric Botcazou  <ebotcazou@adacore.com>
56
57         * gcc-interfaces/decl.c (elaborate_expression_1): Use the variable for
58         bounds of loop iteraration scheme only for locally defined subtypes.
59
60         * gcc-interface/trans.c (build_return_expr): Apply the NRV optimization
61         only for BLKmode.
62
63 2012-09-20  Release Manager
64
65         * GCC 4.7.2 released.
66
67 2012-09-07  Eric Botcazou  <ebotcazou@adacore.com>
68
69         * gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using
70         size_type_node instead of sizetype.
71
72 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
73
74         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Try to ensure
75         that an object of CW type initialized to a value is sufficiently
76         aligned for this value.
77
78 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
79
80         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Do not
81         look up the REP part of the base type in advance.  Deal with that of
82         the variant types.
83         (get_rep_part): Be prepared for record types with fields.
84
85 2012-07-03  Eric Botcazou  <ebotcazou@adacore.com>
86
87         * gcc-interface/trans.c (Call_to_gnu): Robustify test for function case
88         if the CICO mechanism is used.
89
90 2012-07-03  Eric Botcazou  <ebotcazou@adacore.com>
91
92         * gcc-interface/utils2.c (build_simple_component_ref): Do not look
93         through an extension if the type contains a placeholder.
94
95 2012-07-03  Eric Botcazou  <ebotcazou@adacore.com>
96
97         * exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on
98         the designated subprogram type and also set Is_Dispatch_Table_Entity.
99         (Expand_Interface_Thunk): Propagate the convention on the thunk.
100         (Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on
101         the internal view of the constructors.
102         (Set_CPP_Constructors): Likewise.
103         * sem_prag.adb (Analyze_Pragma) <Pragma_CPP_Constructor>: Set the
104         convention on the function.
105         * gcc-interface/gigi.h (is_cplusplus_method): Declare.
106         * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
107         (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the `thiscall'
108         calling convention
109         (get_minimal_subprog_decl): Likewise.
110         (is_cplusplus_method): New predicate.
111         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Access>: Issue an
112         error on access to C++ constructor or member function.
113
114 2012-07-03  Eric Botcazou  <ebotcazou@adacore.com>
115
116         * gcc-interface/utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types
117         attached to a TYPE_DECL.
118
119 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
120
121         PR ada/53592
122         * gcc-interface/gigi.h (maybe_vector_array): Make static inline.
123         * gcc-interface/utils.c (maybe_vector_array): Delete.
124         * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Mark the
125         array object as addressable if it has vector type and is on the LHS.
126
127 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
128
129         * gcc-interface/Makefile.in (gnatlib-shared-default): Append
130         $(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.
131
132 2012-06-14  Release Manager
133
134         * GCC 4.7.1 released.
135
136 2012-06-13  Eric Botcazou  <ebotcazou@adacore.com>
137
138         Revert
139         2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>
140
141         * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
142         (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
143         calling convention
144         (get_minimal_subprog_decl): Likewise.
145         (gnat_first_param_is_class): New predicate.
146
147 2012-06-12  Olivier Hainque  <hainque@adacore.com>
148
149         * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove
150         $(PIC_FLAG_FOR_TARGET).
151         (gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to
152         GNATLIBCFLAGS_FOR_C passed to gnatlib.
153         (gnatlib-shared-win32): Likewise.
154         (gnatlib-shared-darwin): Likewise.
155         (gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to
156         gnatlib-shared-win32.
157
158 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
159
160         * gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'.
161         (build_variant_list): Adjust to above renaming.
162         (gnat_to_gnu_entity) <E_Record_Subtype>: Likewise.  Give a unique name
163         to the type of the variant containers.
164         (create_variant_part_from): Likewise.  Give a unique name to the type
165         of the variant part.
166
167 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
168
169         PR ada/52362
170         * link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker.
171         (__gnat_using_gnu_linker): Delete.
172         * gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here...
173         Declare Object_File_Option string constant and Using_GNU_response_file
174         boolean constant.
175         (Process_Binder_File): ...instead of here.  Delete Using_GNU_Linker,
176         Opening and Closing local variables.  Do not handle the GNU linker
177         specially.
178         (Write_RF): New procedure to write into the response file.  Escape some
179         characters if a GNU response file is used.  Keep track of error status.
180         Invoke Write_RF to write into the response file.  Delete the file only
181         if the link was successful.
182         * mlib-utl.adb: Do not `with' package System.
183         (Gcc): Likewise.  Declare Object_File_Option string constant and
184         Using_GNU_response_file boolean constant.
185         (Write_RF): Take a string instead of address and length.  Escape some
186         characters if a GNU response file is used.
187         Invoke Write_RF to write into the response file.  Delete the file only
188         if the link was successful.  Do not warn if it cannot be deleted.
189
190 2012-05-20  Eric Botcazou  <ebotcazou@adacore.com>
191
192         * gcc-interface/utils.c (gnat_write_global_declarations): Put a name
193         on the dummy global variable.
194
195 2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>
196
197         * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
198         (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
199         calling convention
200         (get_minimal_subprog_decl): Likewise.
201         (gnat_first_param_is_class): New predicate.
202
203         Backport from mainline
204         2012-05-15  Javier Miranda  <miranda@adacore.com>
205
206         * exp_ch3.adb (Build_Offset_To_Top): Modify the
207         expansion of the offset_to_top functions to ensure that their
208         profile is conformant with the profile specified in Ada.Tags. No
209         change in functionality.
210
211 2012-05-18  Eric Botcazou  <ebotcazou@adacore.com>
212
213         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
214         global level with unconstrained nominal subtype and a non-fixed size,
215         make a variable for the size.
216
217 2012-05-15  Andris Pavenis  <andris.pavenis@iki.fi>
218
219         PR ada/52494
220         * s-taprop-dummy.adb (Specific): New package.
221
222 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
223
224         * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
225         atomicity from an object to its underlying type only if it
226         is composite.
227
228 2012-05-06  Pascal Obry  <obry@adacore.com>
229
230         Revert
231         2012-02-24  Dave Korn  <dave.korn.cygwin@gmail.com>
232
233         * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
234         Windows-specific make variable.
235         (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
236         (install-gnatlib): Respect the above during installation when set,
237         and also install any windows import library that has been built.
238         (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
239         build a corresponding import library.
240
241 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
242
243         * gcc-interface/utils.c (finish_record_type): Force the traditional GCC
244         layout for bitfields on the type if it is packed or has a representation
245         clause and an alternate layout is available.
246
247 2012-04-09  Mike Stump  <mikestump@comcast.net>
248
249         * a-assert.ads: Remove execute permission.
250         * a-chacon.ads: Likewise.
251         * a-coteio.ads: Likewise.
252         * a-envvar.ads: Likewise.
253         * a-exetim-mingw.ads: Likewise.
254         * a-fzteio.ads: Likewise.
255         * a-izteio.ads: Likewise.
256         * a-lcteio.ads: Likewise.
257         * a-llctio.ads: Likewise.
258         * a-scteio.ads: Likewise.
259         * a-suenco.ads: Likewise.
260         * a-suenst.ads: Likewise.
261         * a-suewst.ads: Likewise.
262         * a-suezst.ads: Likewise.
263         * a-tirsfi.ads: Likewise.
264         * a-wichha.ads: Likewise.
265         * a-zchara.ads: Likewise.
266         * a-zchhan.ads: Likewise.
267         * a-zchuni.ads: Likewise.
268         * a-zrstfi.ads: Likewise.
269         * aspects.ads: Likewise.
270         * g-byorma.ads: Likewise.
271         * g-decstr.ads: Likewise.
272         * g-encstr.ads: Likewise.
273         * g-spchge.ads: Likewise.
274         * g-u3spch.ads: Likewise.
275         * g-wispch.ads: Likewise.
276         * g-zspche.ads: Likewise.
277         * namet-sp.ads: Likewise.
278         * s-os_lib.ads: Likewise.
279         * s-regexp.ads: Likewise.
280         * s-regpat.ads: Likewise.
281         * s-string.ads: Likewise.
282         * s-tasloc.ads: Likewise.
283         * s-utf_32.ads: Likewise.
284         * sem_aux.ads: Likewise.
285         * a-assert.adb: Likewise.
286         * a-chacon.adb: Likewise.
287         * a-envvar.adb: Likewise.
288         * a-exetim-mingw.adb: Likewise.
289         * a-suenco.adb: Likewise.
290         * a-suenst.adb: Likewise.
291         * a-suewst.adb: Likewise.
292         * a-suezst.adb: Likewise.
293         * a-tirsfi.adb: Likewise.
294         * a-wichha.adb: Likewise.
295         * a-zchhan.adb: Likewise.
296         * a-zchuni.adb: Likewise.
297         * a-zrstfi.adb: Likewise.
298         * aspects.adb: Likewise.
299         * g-byorma.adb: Likewise.
300         * g-decstr.adb: Likewise.
301         * g-encstr.adb: Likewise.
302         * g-spchge.adb: Likewise.
303         * g-u3spch.adb: Likewise.
304         * g-wispch.adb: Likewise.
305         * g-zspche.adb: Likewise.
306         * namet-sp.adb: Likewise.
307         * s-except.adb: Likewise.
308         * s-inmaop-vxworks.adb: Likewise.
309         * s-os_lib.adb: Likewise.
310         * s-regexp.adb: Likewise.
311         * s-regpat.adb: Likewise.
312         * s-string.adb: Likewise.
313         * s-tasloc.adb: Likewise.
314         * s-utf_32.adb: Likewise.
315         * s-wchcon.adb: Likewise.
316         * sem_aux.adb: Likewise.
317
318 2012-03-22  Release Manager
319
320         * GCC 4.7.0 released.
321
322 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
323
324         * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
325         and set TYPE_ARTIFICIAL according to it.  Adjust recursive call.
326         (gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
327         * gcc-interface/utils.c (rest_of_record_type_compilation): Do not
328         invoke rest_of_type_decl_compilation on the parallel type, if any.
329
330 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
331
332         * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
333         dummy global built for global types is preserved.
334
335 2012-02-27  Tristan Gingold  <gingold@adacore.com>
336
337         * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
338         E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
339         gnu_template_type.
340
341 2012-02-27  Eric Botcazou  <ebotcazou@adacore.com>
342
343         * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
344         (TYPE_BY_REFERENCE_P): New flag.
345         (TYPE_IS_BY_REFERENCE_P): New macro.
346         (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
347         (TYPE_IS_DUMMY_P): Adjust for above change.
348         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
349         and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
350         (gnat_to_gnu_param): Likewise.
351         (maybe_pad_type): Likewise.
352         (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
353         * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
354         instead of TREE_ADDRESSABLE.
355         * gcc-interface/trans.c (finalize_nrv): Likewise.
356         (call_to_gnu): Likewise.  Do not create a temporary for return values
357         with by-reference type here.
358         (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
359         (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
360         CONSTRUCTORs and calls.
361         * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
362         the underlying type and use it throughout.  Use TYPE_IS_BY_REFERENCE_P
363         instead of TREE_ADDRESSABLE.
364         * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
365         types explicitly.
366
367 2012-02-27  Eric Botcazou  <ebotcazou@adacore.com>
368
369         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
370         change that creates a special VAR_DECL for debugging purposes.  For an
371         aliased object with an unconstrained nominal subtype, make its type a
372         thin reference to the underlying object.
373         * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
374         expressions built for the initialization of above objects.
375
376 2012-02-24  Dave Korn  <dave.korn.cygwin@gmail.com>
377
378         * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
379         Windows-specific make variable.
380         (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
381         (install-gnatlib): Respect the above during installation when set,
382         and also install any windows import library that has been built.
383         (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
384         build a corresponding import library.
385
386 2012-02-22  Robert Dewar  <dewar@adacore.com>
387
388         * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
389         reformatting.
390
391 2012-02-22  Geert Bosch  <bosch@adacore.com>
392
393         * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
394         x86-specific version of byteswap and use GCC builtins instead.
395
396 2012-02-22  Tristan Gingold  <gingold@adacore.com>
397
398         * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
399         E_Array_Type]: Translate component ealier.
400
401 2012-02-22  Robert Dewar  <dewar@adacore.com>
402
403         * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
404         error message for 'Range.
405
406 2012-02-22  Pascal Obry  <obry@adacore.com>
407
408         * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
409         this is our own thread.
410
411 2012-02-22  Sergey Rybin  <rybin@adacore.com frybin>
412
413         * tree_io.ads: Update ASIS_Version_Number because of the changes
414         in Snames.
415
416 2012-02-22  Hristian Kirtchev  <kirtchev@adacore.com>
417
418         * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on 
419         stack-related finalizers.
420
421 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
422
423         * sem_ch6.adb (Analyze_Expression_Function): If the construct
424         is a completion, indicate that its formals are the formals of
425         a completion, and as such do not get a cross- reference entry.
426         (Analyze_Subprogram_Specification): Do not generate a definition
427         for the entity of an expression function, because it may be a
428         completion. Definition will be generated if needed when analyzing
429         the generated subprogram declaration.
430
431 2012-02-22  Vincent Celier  <celier@adacore.com>
432
433         * make.adb (Check): When checking if an object file is in the
434         correct object directory, get the unit name from a previous call
435         to Check_Source_Info_In_ALI.
436         * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
437         the unit when everything is OK, otherwise return No_Name.
438         * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
439         of Boolean
440
441 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
442
443         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
444         instance, the operator is visible if an operand is of some
445         numeric type which is not in use or directly visible, and the
446         other operand is a numeric literal.
447
448 2012-02-22  Tristan Gingold  <gingold@adacore.com>
449
450         * init.c: Minor code clean up.
451         * gcc-interface/Make-lang.in: Update dependencies.
452
453 2012-02-22  Arnaud Charlet  <charlet@adacore.com>
454
455         * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
456         otherwise GCC will generate an object file.
457
458 2012-02-22  Vincent Celier  <celier@adacore.com>
459
460         * projects.texi: Correct typo related to "**" in Source_Dirs.
461
462 2012-02-22  Steve Baird  <baird@adacore.com>
463
464         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
465         error message text.
466
467 2012-02-22  Vincent Pucci  <pucci@adacore.com>
468
469         * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
470         System_Dim_Child cases added.
471         * rtsfind.ads: Ada_Numerics,
472         Ada_Numerics_Generic_Elementary_Functions, System_Dim,
473         System_Dim_Float_IO and System_Dim_Integer_IO added to the list
474         of RTU_Id.  Ada_Numerics_Child and System_Dim_Child added as
475         new RTU_Id subtypes.
476         * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
477         Rtsfind to verify the package entity is located either
478         in System.Dim.Integer_IO or in System.Dim.Float_IO.
479         (Is_Dim_IO_Package_Instantiation): Minor
480         changes.  (Is_Elementary_Function_Call): Removed.
481         (Is_Elementary_Function_Entity): New routine.
482         (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
483         * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
484         removed.
485
486 2012-02-22  Vincent Pucci  <pucci@adacore.com>
487
488         * sem_prag.adb: Minor reformatting.
489
490 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
491
492         * sem_ch3.adb (Find_Type_Name): When analyzing a private type
493         declaration that is the completion of a tagged incomplete type, do
494         not associate the class-wide type already created with the private
495         type to prevent order-of-elaboration issues in the back-end.
496         * exp_disp.adb (Find_Specific_Type): Find specific type of
497         a class-wide type, and handle the case of an incomplete type
498         coming  either from a limited_with clause or from an incomplete
499         type declaration. Used when expanding a dispatchin call and
500         generating tag checks (minor refactoring).
501
502 2012-02-22  Robert Dewar  <dewar@adacore.com>
503
504         * exp_ch5.adb: Add comment.
505         * sem_ch12.adb, exp_ch6.adb: minor reformatting
506
507 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
508
509         * freeze.adb (Freeze_Entity): Do not perform type layout within
510         a generic unit.
511
512 2012-02-22  Eric Botcazou  <ebotcazou@adacore.com>
513
514         * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
515         Storage_Error.
516
517 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
518
519         * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
520         assignment to a classwide type whose type is limited, as
521         can happen in an instantiation in programs that run afoul or
522         AI05-0087.
523
524
525 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
526
527         * exp_ch6.adb (Legal_Copy): If layout is not
528         determined in the front-end, do not emit error message when
529         by-reference actual is potentially unaligned.
530         * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
531         illegal representation clause on tagged or aliased component, or on
532         by-reference type with forced alignment.
533
534 2012-02-17  Nicolas Roche  <roche@adacore.com>
535
536         * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
537         propagated by gnatlib-sjlj and gnatlib-zcx targets.
538         * gcc-interface/Make-lang.in: Update dependencies.
539
540 2012-02-17  Thomas Quinot  <quinot@adacore.com>
541
542         * sem_ch12.adb (Analyze_Package_Instantiation): For an
543         instantiation in an RCI library unit, omit the instance body
544         if the RCI library unit is the instance itself (E.2.3(18)),
545         but include the body if the instantiation is within the RCI
546         declaration (12.3(12)).
547
548 2012-02-17  Steve Baird  <baird@adacore.com>
549
550         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
551         Post'Class aspects can only be specified for a primitive operation
552         of a tagged type.
553
554 2012-02-17  Yannick Moy  <moy@adacore.com>
555
556         * gnat_rm.texi: Minor shuffling.
557
558 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
559
560         * aspects.adb: Expression functions can carry pre/postconditions.
561         * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
562         in an expression function.
563         * sem_prag (Check_Precondition_Postcondition): legal on expression
564         functions.
565
566 2012-02-17  Vincent Pucci  <pucci@adacore.com>
567
568         * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
569         * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
570         * a-convec.adb, a-coorma.adb (Adjust): New routine.
571         (Constant_Reference): Increment Busy and Lock counters.
572         (Reference): Increase Busy and Lock counters.
573         (Finalize): New routine.
574         * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
575         (Adjust): New routine.  (Constant_Reference): Increment Busy
576         and Lock counters.
577         (Finalize): New routine.
578         * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
579         * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
580         * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
581         * a-coorma.ads, a-coorse: Controlled component added to the
582         reference types.
583
584 2012-02-17  Robert Dewar  <dewar@adacore.com>
585
586         * restrict.adb (Check_Restriction): Add special handling for
587         No_Obsolescent_Features.
588
589 2012-02-17  Hristian Kirtchev  <kirtchev@adacore.com>
590
591         * exp_util.adb (Find_Finalize_Address): When dealing with an
592         internally built full view for a type with unknown discriminants,
593         use the original record type.
594
595 2012-02-17  Robert Dewar  <dewar@adacore.com>
596
597         * sem_dim.adb: Minor reformatting.
598
599 2012-02-17  Yannick Moy  <moy@adacore.com>
600
601         * gnat_rm.texi: Minor rewording.
602
603 2012-02-17  Thomas Quinot  <quinot@adacore.com>
604
605         * sem_aggr.adb: Minor reformatting.
606
607 2012-02-17  Robert Dewar  <dewar@adacore.com>
608
609         * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
610
611 2012-02-17  Vincent Pucci  <pucci@adacore.com>
612
613         * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
614         (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
615         call added.
616         (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
617         call added.
618         * s-dim.ads: Make package Pure.
619
620 2012-02-17  Gary Dismukes  <dismukes@adacore.com>
621
622         * prj-nmsc.adb: Minor reformatting.
623
624 2012-02-17  Yannick Moy  <moy@adacore.com>
625
626         * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
627
628 2012-02-17  Yannick Moy  <moy@adacore.com>
629
630         * gnat_ugn.texi: Fix typos.
631
632 2012-02-17  Pascal Obry  <obry@adacore.com>
633
634         * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
635         aggregate is not Externally_Built.
636
637 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
638
639         * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
640         component has a box association, copy the default value using
641         the current scope as the scope of internal types, to prevent
642         scoping anomalies in gigi.
643
644 2012-02-17  Robert Dewar  <dewar@adacore.com>
645
646         * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
647         sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
648         exp_intr.adb, s-os_lib.adb: Minor reformatting.
649
650 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
651
652         * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
653         old operation is abstract, the relevant type is not abstract,
654         and the new subprogram fails to override.
655
656 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
657
658         * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
659         type of the result to the end and execute it for a deferred constant of
660         a discriminated type whose full view can be elaborated statically.
661
662 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
663
664         * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
665         type is tagged, mark it as used for debugging purposes.
666         <N_Allocator>: Likewise for a qualified expression.
667
668 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
669
670         * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
671         return value in the by-reference return type case if this isn't the
672         expression of an object declaration.  Tidy up.
673
674 2012-02-09  Tristan Gingold  <gingold@adacore.com>
675
676         * gcc-interface/Makefile.in: Remove .sym rule (not used).
677         Remove adamsg.o object (requires native message compiler).
678         * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
679         macro instead of as extern int.
680         (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
681         (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
682         (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
683         (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
684         (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
685         (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
686         (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
687         (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
688         (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
689         (struct cond_except): Field cond is now an unsigned int.
690         (dec_ada_cond_except_table): Adjust.
691         (cond_except_table): Likewise.
692         (cond_resignal_table): Likewise.
693         (__gnat_default_resignal_p): Fix style.
694
695 2012-02-08  Vincent Celier  <celier@adacore.com>
696
697         * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
698         (g-buorma is now imported by sinput).
699         Update dependencies.
700         * scn.adb (Initialize_Scanner): Call Check_For_BOM
701         * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
702         * sinput.adb: New procedure Check_For_BOM
703         * sinput.ads: New procedure Check_For_BOM
704
705 2012-02-08  Vincent Pucci  <pucci@adacore.com>
706
707         * impunit.adb: Dimension package names updated
708         * Makefile.rtl: s-dim added
709         * sem_dim.adb (Is_Procedure_Put_Call): minor changes
710         (Is_Dim_IO_Package_Instantiation): minor changes
711         * sem_dim.ads: minor changes in comments
712         * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
713         Name_Dim_Integer_IO removed
714         * s-dim.ads: New package. Define the dimension terminology.
715         * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
716         * s-dmotpr.ads: Package names updated.
717         * s-diflio.ads, s-diinio.ads: Documentation added and package
718         names updated.
719
720 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
721
722         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
723         for storage pools to test for an underlying record type rather than
724         testing Is_Tagged_Type, so that simple storage pools will be handled
725         the same as normal Ada storage pools.
726
727 2012-02-08  Yannick Moy  <moy@adacore.com>
728
729         * gnat_rm.texi: Minor reshuffling to place restriction at
730         appropriate place.
731
732 2012-02-08  Bob Duff  <duff@adacore.com>
733
734         * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
735         False for '-gnatwA', to suppress these warnings.
736
737 2012-02-08  Vincent Celier  <celier@adacore.com>
738
739         * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
740         starting to scan, so that UTF8 encoding is taken into account.
741
742 2012-02-08  Arnaud Charlet  <charlet@adacore.com>
743
744         * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
745         function.
746         (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
747         (Exceptional_Complete_Rendezvous): Mark No_Return.
748
749 2012-02-08  Eric Botcazou  <ebotcazou@adacore.com>
750
751         * exp_aggr.adb (Compile_Time_Known_Composite_Value):
752         New predicate to compute whether a composite value can be
753         evaluated at compile time.
754         (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
755         expressions of elementary type and Compile_Time_Known_Composite_Value
756         for all other expressions.
757         (Expand_Record_Aggregate): Convert to assignments in the case
758         of a type with mutable components if the aggregate cannot be
759         built statically.
760
761 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
762
763         * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
764         (Impl_Defined_Aspects): Add association for
765         Aspect_Simple_Storage_Pool_Type.
766         (Aspect_Names): Add
767         association for Aspect_Simple_Storage_Pool_Type.
768         * aspects.adb:
769         (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
770         * exp_attr.adb (Expand_N_Attribute_Reference):
771         Change name to Name_Simple_Storage_Pool_Type.
772         * exp_ch4.adb (Expand_N_Allocator): Change
773         name to Name_Simple_Storage_Pool_Type.
774         * exp_intr.adb (Expand_Unc_Deallocation): Change name to
775         Name_Simple_Storage_Pool_Type.  * freeze.adb (Freeze_Entity):
776         Change names to Name_Simple_Storage_Pool_Type.  * par-prag.adb:
777         Change names to Name_Simple_Storage_Pool_Type.  * sem_attr.adb:
778         (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
779         * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
780         Change name to Name_Simple_Storage_Pool_Type.
781         * sem_prag.adb:
782         (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
783         (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
784         * sem_res.adb (Resolve_Allocator): Change name to
785         Name_Simple_Storage_Pool_Type.  * snames.ads-tmpl:
786         (Name_Simple_Storage_Pool_Type): New name constant.
787         (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
788         move to main pragma section because it no longer matches the
789         attribute name.
790         * snames.adb-tmpl (Get_Pragma_Id): Remove test for
791         Name_Simple_Storage_Pool.
792         (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
793
794 2012-02-08  Robert Dewar  <dewar@adacore.com>
795
796         * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
797
798 2012-02-08  Pascal Obry  <obry@adacore.com>
799
800         * prj.adb (Compute_All_Imported_Projects): Use new
801         For_Project_And_Aggregated_Context to ensure proper context is
802         used for encapsulated aggregate libraries.
803         * prj-proc.adb (Recursive_Process): Call
804         Process_Aggregated_Projects earlier to ensure that all dependent
805         projects are set with the proper encapsulated status.
806
807 2012-02-08  Pascal Obry  <obry@adacore.com>
808
809         * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
810         terminated string.
811
812 2012-02-08  Pascal Obry  <obry@adacore.com>
813
814         * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
815         generic routine with a context parameter.
816
817 2012-02-08  Robert Dewar  <dewar@adacore.com>
818
819         * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
820         a-convec.adb: Minor reformatting and code reorganization.
821
822 2012-02-08  Steve Baird  <baird@adacore.com>
823
824         * sem_cat.adb (In_Preelaborated_Unit): A child
825         unit instantiation does not inherit preelaboration requirements
826         from its parent.
827
828 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
829
830         * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
831         (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
832         (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
833         (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
834         * aspects.adb (Canonical_Aspect): Add entry for
835         Aspect_Simple_Storage_Pool.
836         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
837         Attribute_Simple_Storage_Pool in the same way as Storage_Pool
838         (add conversion, analyze/resolve). For the Storage_Size attribute,
839         for the simple pool case, locate and use the simple pool type's
840         Storage_Size function (if any), otherwise evaluate to zero.
841         * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
842         for an access type with an associated simple storage pool,
843         locate and use the pool type's Allocate.
844         * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
845         access type has a simple storage pool, locate the pool type's
846         Deallocate procedure (if present) and use it as the procedure
847         to call on the Free operation.
848         * freeze.adb (Freeze_Entity): In the case of a full type for
849         a private type defined with pragma Simple_Storage_Pool, check
850         that the full type is also appropriate for the pragma. For
851         a simple storage pool type, validate that the operations
852         Allocate, Deallocate (if present), and Storage_Size
853         (if present) are defined with appropriate expected profiles.
854         (Validate_Simple_Pool_Op_Formal): New procedure
855         (Validate_Simple_Pool_Operation): New procedure Add with and
856         use of Rtsfind.
857         * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
858         (no action required).
859         * sem_attr.adb (Analyze_Attribute): For the case of the
860         Storage_Pool attribute, give a warning if the prefix type has an
861         associated simple storage pool, and rewrite the attribute as a
862         raise of Program_Error. In the case of the Simple_Storage_Pool
863         attribute, check that the prefix type has an associated simple
864         storage pool, and set the attribute type to the pool's type.
865         * sem_ch13.adb (Analyze_Aspect_Specifications): Add
866         Aspect_Simple_Storage_Pool case choice.
867         (Analyze_Attribute_Definition_Clause): Add
868         Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
869         (no action). Add handling for Simple_Storage_Pool attribute
870         definition, requiring the name to denote a simple storage pool
871         object.
872         (Check_Aspect_At_Freeze_Point): For a simple storage pool
873         aspect, set the type to that of the name specified for the aspect.
874         * sem_prag.adb (Analyze_Pragma): Add handling for pragma
875         Simple_Storage_Pool, requiring that it applies to a library-level
876         type declared in a package declaration that is a limited private
877         or limited record type.
878         * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
879         build-in-place function in an allocator for an access type with
880         a simple storage pool as unsupported.
881         * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
882         (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
883         (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
884         * snames.adb-tmpl (Get_Pragma_Id): Handle case of
885         Name_Simple_Storage_Pool.
886         (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
887
888 2012-02-08  Cyrille Comar  <comar@adacore.com>
889
890         * projects.texi: Clarify doc for interfaces.
891
892 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
893
894         * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
895         (GCC_LINK): Use it.
896
897 2012-02-01  Tristan Gingold  <gingold@adacore.com>
898
899         * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
900         instead of size_type_node.
901
902 2012-01-30  Nicolas Roche  <roche@adacore.com>
903
904         * gcc-interface/Make-lang.in: Update dependencies.
905         * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
906         when needed.
907         Remove Linker_Options -crtbe when building sjlj run-time.
908
909 2012-01-30  Robert Dewar  <dewar@adacore.com>
910
911         * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
912         * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
913         form 2 * small-literal.
914         * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
915         mod value).
916         * sem_ch4.ads (Analyze_Mod): New procedure.
917
918 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
919
920         * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
921         types and return expression when building spec for implicit
922         body, to preserve global references that may be present in an
923         instantiation.
924
925 2012-01-30  Matthew Heaney  <heaney@adacore.com>
926
927         * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
928         Reverse_Elements): Check for cursor tampering.
929
930 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
931
932         * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
933         type with aspect Default_Value or Default_Component_Value is
934         fully initialized, and use of variables of such types do not
935         generate warnings.
936
937 2012-01-30  Javier Miranda  <miranda@adacore.com>
938
939 PR ada/15846
940         * sem_ch8.adb (Analyze_Subprogram_Renaming):
941         Handle self-renaming when the renamed entity is referenced using
942         its expanded name.
943
944 2012-01-30  Vincent Celier  <celier@adacore.com>
945
946         * projects.texi: Add documentation for attribute Interfaces.
947
948 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
949
950         * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
951         * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
952         location for the wrapped call to the original AT_END routine
953         and the subsequent return statement.
954
955 2012-01-30  Pascal Obry  <obry@adacore.com>
956
957         * s-rannum.adb: Minor reformatting.
958
959 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
960
961         * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
962         to 25 and add the hard time value for 2012-06-30.
963
964 2012-01-30  Robert Dewar  <dewar@adacore.com>
965
966         * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
967         freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
968         s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
969         Minor reformatting/code reorganization.
970
971 2012-01-30  Thomas Quinot  <quinot@adacore.com>
972
973         * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
974         Unsigned_64 rather than Duration.
975         (System.Random_Numbers.Reset): Use full value of seed
976         (do not truncate sub-second bits).
977
978 2012-01-30  Thomas Quinot  <quinot@adacore.com>
979
980         * sem_cat.adb, sem_ch12.adb: Minor reformatting.
981
982 2012-01-30  Yannick Moy  <moy@adacore.com>
983
984         * gnat_ugn.texi: Minor correction of GNAT UG, to take into
985         account changes to -gnatwa and more recent warnings.
986
987 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
988
989         * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
990         location when creating a call to a finalizer.
991         * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
992         a source location for the first actual of Save_Occurrence for
993         consistency sake.
994
995 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
996
997         * einfo.ads, einfo,adb: New attribute on scalar types:
998         Default_Aspect_Value New attribute on  array types:
999         Default_Aspect_Component_Value Move attribute Related_Array_Object
1000         to a different position to accomodate new aspect attributes.
1001         * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
1002         of defaults set with an aspect specification, rather than using
1003         the list of aspects attached to the type, to prevent issues with
1004         partial views.
1005         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1006         Default_Value and Default_Component _Value, store corresponding
1007         expression in type entity.
1008         (Check_Aspect_At_End_Of_Declaration): If the default aspects
1009         are declared on the full view, use the full view to resolve the
1010         correseponding expression.
1011         * exp_ch3.adb (Init_Component): Use attribute
1012         Default_Aspect_Component_Value to perform default initialization,
1013         rather than relying on the rep item list for the type.
1014         (Get_Simple_Init_Val): Ditto.
1015
1016 2012-01-30  Thomas Quinot  <quinot@adacore.com>
1017
1018         * a-strhas.ads: Document risk of collision attack.
1019
1020 2012-01-30  Yannick Moy  <moy@adacore.com>
1021
1022         * gnat_ugn.texi: Minor update wrt warning switches.
1023
1024 2012-01-30  Vincent Celier  <celier@adacore.com>
1025
1026         * prj-nmsc.adb (Check_Interfaces): Report an error when a
1027         unit from Library_Interface is not a unit of the project.
1028
1029 2012-01-30  Vincent Pucci  <pucci@adacore.com>
1030
1031         * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
1032         links fixed inside PPC pragmas.
1033         * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
1034
1035 2012-01-30  Thomas Quinot  <quinot@adacore.com>
1036
1037         * s-ransee.ads: Minor reformatting.
1038
1039 2012-01-30  Pascal Obry  <obry@adacore.com>
1040
1041         * prj.ads, prj.adb (For_Each_Source): Add support for skipping
1042         sources coming from an encapsulated library.
1043
1044 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
1045
1046         * sem_ch3.adb (Process-Full_View): fix typo.
1047         * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
1048         appear on a private type and the full view is available, ensure
1049         existence of freeze node for full view.
1050         (Build_Predicate_Function): Attach predicate function to both
1051         views of a private type.
1052
1053 2012-01-30  Vincent Celier  <celier@adacore.com>
1054
1055         * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
1056         for the project if either attribute Library_Interface or
1057         Interfaces is declared.
1058         (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
1059         Check_Interfaces.
1060
1061 2012-01-30  Pascal Obry  <obry@adacore.com>
1062
1063         * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
1064         boolean value to true in the process list created by this routine.
1065         * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
1066         Continued work for KA06-021.
1067         * prj.adb (Compute_All_Imported_Projects): Set
1068         From_Encapsulated_Lib boolean flag.
1069
1070 2012-01-30  Vincent Pucci  <pucci@adacore.com>
1071
1072         * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
1073         code clean up.
1074         * s-diflio.ads: Minor change.
1075
1076 2012-01-30  Javier Miranda  <miranda@adacore.com>
1077
1078         * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
1079         to Get_Entry_Index.  Required to generate code which provides
1080         the correct value of Entry_Index in the target entry.
1081
1082 2012-01-30  Nicolas Roche  <roche@adacore.com>
1083
1084         * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
1085         fix issue with zcx on VxWorks5.
1086
1087 2012-01-30  Pascal Obry  <obry@adacore.com>
1088
1089         * prj.ads, prj.adb (For_Every_Project_Imported): Remove
1090         In_Aggregate_Lib.
1091         (For_Every_Project_Imported_Context): New generic routine with
1092         a context parameter.
1093         * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
1094         distributed complexity.
1095         * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
1096
1097 2012-01-30  Thomas Quinot  <quinot@adacore.com>
1098
1099         * exp_aggr.adb (Expand_Record_Aggregate): After creating the
1100         _parent aggregate for an extension aggregate, check whether it
1101         requires delayed (top-down) expansion.
1102
1103 2012-01-30  Vincent Pucci  <pucci@adacore.com>
1104
1105         * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
1106         * snames.ads-tmpl: Name_Item and Name_Symbols added.
1107         * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
1108         and change the position of parameter Symbols in every Put routine.
1109         * s-dimmks.ads: Convert long float type Mks_Type into long
1110         long float.
1111         * s-llflex.ads: Modifications in comments.
1112
1113 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1114
1115         * sem_ch12.adb (Earlier): Do not use the
1116         top level source locations of the two input nodes.
1117
1118 2012-01-30  Robert Dewar  <dewar@adacore.com>
1119
1120         * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
1121         sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
1122
1123 2012-01-30  Robert Dewar  <dewar@adacore.com>
1124
1125         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
1126
1127 2012-01-30  Olivier Hainque  <hainque@adacore.com>
1128
1129         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
1130         comments.
1131
1132 2012-01-30  Thomas Quinot  <quinot@adacore.com>
1133
1134         * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
1135         sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
1136         sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
1137         New subprogram (extracted from
1138         Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
1139         (Einfo.Is_Remote_Types): Now applies to generic types. Update
1140         documentation accordingly.
1141         (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
1142         actual for a formal type to which a pragma Remote_Access_Type
1143         applies.
1144         (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
1145         Remote_Access_Type.
1146         (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
1147         be applied to a generic type if pragma Remote_Access_Type
1148         applies, in which case the type of the attribute is
1149         System.Partition_Interface.RACW_Stub_Type.
1150
1151 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1152
1153         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
1154         an alignment on fields of the RETURN type built for the CICO mechanism.
1155
1156 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1157
1158         * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
1159         a call to a function that returns an unconstrained type with default
1160         discriminant.  Similarly, avoid doing the conversion to the nominal
1161         result type in this case.
1162
1163 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1164
1165         * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
1166         * gcc-interface/decl.c (is_variable_size): Rename to...
1167         (type_has_variable_size): ...this.
1168         (adjust_packed): Adjust to above renaming.
1169         (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
1170         (field_is_artificial): New predicate.
1171         (field_is_aliased): Likewise.
1172         (field_has_self_size): Likewise.
1173         (field_has_variable_size): Likewise.
1174         (components_to_record): Record information for the final layout during
1175         the first pass on fields.
1176         If there is an aliased field placed after a field whose length depends
1177         on discriminants, put all the fields of the latter sort, last.
1178
1179 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1180
1181         * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
1182         * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
1183         * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
1184         Access-like attribute in a dispatch table if the subprogram is public.
1185
1186 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1187
1188         * gcc-interface/gigi.h (create_label_decl): Adjust.
1189         * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
1190         and invoke gnat_pushdecl on it.  Remove obsolete settings.
1191         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
1192         create_label_decl.
1193         * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise.  Ignore the
1194         label for debugging purposes.
1195
1196 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
1197
1198         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
1199         object with an unconstrained nominal subtype and if optimization isn't
1200         enabled, create a special VAR_DECL for debugging purposes.
1201
1202 2012-01-23  Robert Dewar  <dewar@adacore.com>
1203
1204         * sem_prag.ads, sem_prag.adb: Minor reformatting.
1205
1206 2012-01-23  Robert Dewar  <dewar@adacore.com>
1207
1208         * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
1209         language defined aspect applied to renaming or formal type
1210         declaration (not permitted)
1211
1212 2012-01-23  Matthew Heaney  <heaney@adacore.com>
1213
1214         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
1215         comment with pragma Assert.
1216
1217 2012-01-23  Vincent Pucci  <pucci@adacore.com>
1218
1219         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
1220         to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
1221         * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
1222         routine. In ASIS mode, convert any PPC pragmas into aspects in generic
1223         subprogram declaration in order to enable the analysis of PPC boolean
1224         expressions.
1225
1226 2012-01-23  Robert Dewar  <dewar@adacore.com>
1227
1228         * sem_ch3.adb (Analyze_Object_Declaration): Properly
1229         handle Current_Value for volatile variables (also propagate
1230         Treat_As_Volatile from type to object).
1231
1232 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1233
1234         * sem_ch12.adb (Install_Body): Detect the case
1235         where the enclosing context is a package with a stub body that
1236         has already been replaced by the actual body. In such cases,
1237         the freeze node for the enclosing context must be inserted after
1238         the real body.
1239
1240 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1241
1242         * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
1243         subprogram before expanding the pragma into an if-statement with
1244         a block, to ensure that when the subprogram is null its body is
1245         properly generated before expansion.
1246
1247 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1248
1249         * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
1250         constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
1251         to Saved_Formal.
1252         Freeze all eligible subprograms which appear as actuals in
1253         the instantiation.
1254         (Has_Fully_Defined_Profile): New routine.
1255         (Renames_Standard_Subprogram): New routine.
1256         (Earlier): Add local variable N. Comment update. Do not use source
1257         locations when trying to determine whether one node precedes another.
1258
1259 2012-01-23  Gary Dismukes  <dismukes@adacore.com>
1260
1261         * exp_ch4.adb (Expand_Concatenate): In the case
1262         where the result of a concatentation can be null, set the to
1263         result have both the low and high bounds of the right operand (not
1264         just the high bound, as was the case prior to this fix). Also,
1265         fix the saved high bound setting (Last_Opnd_High_Bound) in the
1266         empty string literal case (should have been low bound minus one,
1267         rather than plus one).
1268
1269 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1270
1271         * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
1272         omit statement SCOs for disabled pragmas.
1273
1274 2012-01-23  Matthew Heaney  <heaney@adacore.com>
1275
1276         * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
1277         a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
1278         a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
1279         a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
1280         Cursor'Write): Declare in private part.
1281         (Reference_Type'Read, Reference_Type'Write): Ditto.
1282         (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
1283
1284 2012-01-23  Robert Dewar  <dewar@adacore.com>
1285
1286         * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
1287         reformatting.
1288
1289 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1290
1291         * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
1292         Corresponding_Body on a defaulted null formal subprogram.
1293         * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
1294         on a defaulted formal subprogram that is a null procedure.
1295
1296 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1297
1298         * exp_ch9.adb: Update the comments involving pragma Implemented.
1299         * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
1300         constant Subp_Alias and local variable Impl_Subp. Properly
1301         handle aliases of synchronized wrappers. Code cleanup.
1302         (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
1303         Name_Optional as part of the condition.
1304         * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
1305         valid choices of implementation kind.
1306         (Check_Arg_Is_One_Of): New routine.
1307         * snames.ads-tmlp: Add Name_Optional.
1308
1309 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1310
1311         * par-ch13.adb: Better error recovery in illegal aspect
1312         specification.
1313
1314 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1315
1316         * a-calend.adb: Add with clause for Interfaces.C. Add constant
1317         Unix_Max.
1318         (Day_Of_Week): Call the internal UTC_Time_Offset.
1319         (Split): Call the internal UTC_Time_Offset.
1320         (Time_Of): Call the internal UTC_Time_Offset.
1321         (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
1322         (UTC_Time_Offset): New library-level routine.
1323         * a-calend.ads (UTC_Time_Offset): Remove parameter
1324         Is_Historic. Update related comment on usage.
1325         * a-catizo.adb (UTC_Time_Offset): Removed.
1326         (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
1327         * a-caltizo.ads (UTC_Time_Offset): Removed.
1328         (UTC_Time_Offset (Time)): Add back the default expression of parameter
1329         Date.
1330
1331 2012-01-23  Robert Dewar  <dewar@adacore.com>
1332
1333         * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1334         (pg,po,ps): Make sure each entry starts on new line.
1335
1336 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1337
1338         * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1339         the parameter profile of procedure localtime_tzoff and its associated
1340         comment.
1341         (Day_Of_Week): Do not treat the input date as historical
1342         with respect to time zones.
1343         (Split): Do not treat the input
1344         date as historical with respect to time zones.  (Time_Of): Do
1345         not treat the input constituents as forming a historical date
1346         with respect to time zones.
1347         (UTC_Time_Offset): Add new formal
1348         parameter Is_Historic. Add local variable Flag. Update the call
1349         to localtime_tzoff.
1350         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1351         (UTC_Time_Offset (Time)): Update the call to
1352         Time_Zone_Operations.UTC_Time_Offset.
1353         * sysdep.c (__gnat_localtime_tzoff): Update parameter
1354         profile. Split the processing of offsets on Windows into two - one
1355         part of historic time stamps and the other for the current time.
1356
1357 2012-01-23  Robert Dewar  <dewar@adacore.com>
1358
1359         * a-calend.adb: Minor reformatting.
1360
1361 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1362
1363         * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1364         interface in requeue statement.
1365
1366 2012-01-23  Cyrille Comar  <comar@adacore.com>
1367
1368         * projects.texi: Remove references to main units and replace
1369         with references to main programs to be coherent with the
1370         documentation.
1371
1372 2012-01-23  Robert Dewar  <dewar@adacore.com>
1373
1374         * s-utf_32.adb: Minor reformatting.
1375
1376 2012-01-23  Vincent Celier  <celier@adacore.com>
1377
1378         * snames.ads-tmpl: Minor comment addition Indicate that
1379         Name_Library_Encapsulated_Options is only used in gprbuild.
1380
1381 2012-01-23  Robert Dewar  <dewar@adacore.com>
1382
1383         * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1384         restrictions.
1385
1386 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1387
1388         * snames.ads-tmpl: Add Name_Synchronization.
1389         * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1390         enumeration type and related maps.
1391         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1392         Synchronization, build corresponding pragma Implemented.
1393         * sem_util.adb (Implementation_Kind): Handle both explicit and
1394         implicit pragma_argument association to retrieve the given
1395         synchronization mode.
1396
1397 2012-01-23  Robert Dewar  <dewar@adacore.com>
1398
1399         * sem_ch10.adb, errout.adb: Minor reformatting.
1400
1401 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1402
1403         * sem_res.adb (Resolve_Actuals): An actual in a call to an
1404         Ada 2012 Reference function does not lead to a dangerous order
1405         dependence.
1406
1407 2012-01-23  Gary Dismukes  <dismukes@adacore.com>
1408
1409         * exp_util.adb (Is_Iterated_Container): Test
1410         Is_Entity_Name when searching for calls to the default iterator,
1411         to avoid blowing up on indirect calls which have an explicit
1412         dereference as the call name.
1413
1414 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1415
1416         * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1417         the complete expanded name, rather than just its Selector_Name.
1418
1419 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1420
1421         * a-textio.adb (Put): Rewrite one-parameter Character version to
1422         just call the two-parameter one with Current_Out.
1423
1424 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1425
1426         * freeze.adb (Check_Current_Instance): Issue an
1427         error when the prefix of 'Unchecked_Access or 'Access does not
1428         denote a legal aliased view of a type.
1429         (Freeze_Record_Type): Do not halt the processing of record components
1430         once the Has_Controlled_Component is set as this bypasses the remaining
1431         checks.
1432         (Is_Aliased_View_Of_Type): New routine.
1433
1434 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1435
1436         * errout.ads, freeze.adb: Minor reformatting.
1437
1438 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1439
1440         * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1441         messages.
1442
1443 2012-01-23  Olivier Hainque  <hainque@adacore.com>
1444
1445         * adadecode.c (__gnat_decode): Deal with empty input early,
1446         preventing potential erroneous memory access later on.
1447
1448 2012-01-21  Eric Botcazou  <ebotcazou@adacore.com>
1449
1450         PR ada/46192
1451         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1452         renaming, preserve the volatileness through the indirection, if any.
1453
1454 2012-01-14  Andreas Schwab  <schwab@linux-m68k.org>
1455
1456         * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1457         $(GNATLIBCFLAGS).
1458
1459 2012-01-10  Pascal Obry  <obry@adacore.com>
1460
1461         * prj-nmsc.adb (Check_Library_Attributes):
1462         Kill check for object/source directories for aggregate libraries.
1463
1464 2012-01-10  Matthew Heaney  <heaney@adacore.com>
1465
1466         * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1467         a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1468         a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1469         a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1470         a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1471         a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1472         a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1473         a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1474         a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1475         container parameter as aliased in/in out.
1476         Code clean ups.
1477
1478 2012-01-10  Bob Duff  <duff@adacore.com>
1479
1480         * s-os_lib.ads: Improve comment.
1481
1482 2012-01-10  Geert Bosch  <bosch@adacore.com>
1483
1484         * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1485         for complex Scalar.
1486
1487 2012-01-10  Bob Duff  <duff@adacore.com>
1488
1489         * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1490         checking that the 'Size is correct. If the type is "mod 2**12",
1491         for example, it's illegal, but Esize is the 'Object_Size, which
1492         will be something like 16 or 32, so the error ('Size = 12) was
1493         not detected.
1494         * gnat_rm.texi: Improve documentation of shift
1495         and rotate intrinsics.
1496
1497 2012-01-10  Pascal Obry  <obry@adacore.com>
1498
1499         * prj.adb (For_Every_Project_Imported): Fix
1500         implementation to make sure we return each project only once
1501         for aggragte libraries. It is fine to return a project twice for
1502         aggregate projects, this was the case as a Project_Id is different
1503         in each project tree. The new implementation use a table based on
1504         the project name to ensure proper detection of duplicate project
1505         in aggregate library. A new context is then created to continue
1506         retrurning duplicate project for aggregate libraries.
1507
1508 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1509
1510         * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1511         return value in the variable-sized return type case if the target is
1512         an array with fixed size.  However, do not create it if this is the
1513         expression of an object declaration.
1514
1515 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1516
1517         * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1518
1519 2012-01-06  Robert Dewar  <dewar@adacore.com>
1520
1521         * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1522         s-utf_32.ads: Add pragma Pure
1523         * s-utf_32.adb: Suppress warnings on non-static constants (now
1524         that this is Pure).
1525
1526 2012-01-06  Bob Duff  <duff@adacore.com>
1527
1528         * s-rpc.ads (Read, Write): Add overriding indicators.
1529
1530 2012-01-06  Robert Dewar  <dewar@adacore.com>
1531
1532         * gnat_rm.texi: Add documentation for conventions
1533         Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1534
1535 2012-01-06  Gary Dismukes  <dismukes@adacore.com>
1536
1537         * a-tienio.adb (Put): Add exception message on
1538         raise statements. Remove unneeded blocks and object declarations.
1539
1540 2012-01-06  Robert Dewar  <dewar@adacore.com>
1541
1542         * sem_prag.adb: Minor reformatting.
1543
1544 2012-01-06  Ed Schonberg  <schonberg@adacore.com>
1545
1546         * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1547         that a selected component within a generic unit has been resolved
1548         as a prefixed call with local references.
1549         * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1550         component is always visible.
1551         * sem_ch4.adb (Analyze_Selected_Component): If the node is a
1552         prefixed call in an instance, do not look for visible components
1553         of the type.
1554         * sem_ch12.adb (Reset_Entity): If a selected component has resolved
1555         to a prefixed call, mark the node accordingly when prefix and
1556         selector are local references.
1557
1558 2012-01-02  Eric Botcazou  <ebotcazou@adacore.com>
1559
1560         * gnatvsn.ads (Current_Year): Bump to 2012.
1561 \f
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563
1564 Copying and distribution of this file, with or without modification,
1565 are permitted in any medium without royalty provided the copyright
1566 notice and this notice are preserved.