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