OSDN Git Service

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