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