OSDN Git Service

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