1 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3 * gcc-interface/Makefile.in (gnatlib-shared-default): Append
4 $(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.
6 2012-06-14 Release Manager
10 2012-06-13 Eric Botcazou <ebotcazou@adacore.com>
13 2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
15 * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
16 (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
18 (get_minimal_subprog_decl): Likewise.
19 (gnat_first_param_is_class): New predicate.
21 2012-06-12 Olivier Hainque <hainque@adacore.com>
23 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove
24 $(PIC_FLAG_FOR_TARGET).
25 (gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to
26 GNATLIBCFLAGS_FOR_C passed to gnatlib.
27 (gnatlib-shared-win32): Likewise.
28 (gnatlib-shared-darwin): Likewise.
29 (gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to
32 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
34 * gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'.
35 (build_variant_list): Adjust to above renaming.
36 (gnat_to_gnu_entity) <E_Record_Subtype>: Likewise. Give a unique name
37 to the type of the variant containers.
38 (create_variant_part_from): Likewise. Give a unique name to the type
41 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
44 * link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker.
45 (__gnat_using_gnu_linker): Delete.
46 * gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here...
47 Declare Object_File_Option string constant and Using_GNU_response_file
49 (Process_Binder_File): ...instead of here. Delete Using_GNU_Linker,
50 Opening and Closing local variables. Do not handle the GNU linker
52 (Write_RF): New procedure to write into the response file. Escape some
53 characters if a GNU response file is used. Keep track of error status.
54 Invoke Write_RF to write into the response file. Delete the file only
55 if the link was successful.
56 * mlib-utl.adb: Do not `with' package System.
57 (Gcc): Likewise. Declare Object_File_Option string constant and
58 Using_GNU_response_file boolean constant.
59 (Write_RF): Take a string instead of address and length. Escape some
60 characters if a GNU response file is used.
61 Invoke Write_RF to write into the response file. Delete the file only
62 if the link was successful. Do not warn if it cannot be deleted.
64 2012-05-20 Eric Botcazou <ebotcazou@adacore.com>
66 * gcc-interface/utils.c (gnat_write_global_declarations): Put a name
67 on the dummy global variable.
69 2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
71 * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
72 (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
74 (get_minimal_subprog_decl): Likewise.
75 (gnat_first_param_is_class): New predicate.
77 Backport from mainline
78 2012-05-15 Javier Miranda <miranda@adacore.com>
80 * exp_ch3.adb (Build_Offset_To_Top): Modify the
81 expansion of the offset_to_top functions to ensure that their
82 profile is conformant with the profile specified in Ada.Tags. No
83 change in functionality.
85 2012-05-18 Eric Botcazou <ebotcazou@adacore.com>
87 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
88 global level with unconstrained nominal subtype and a non-fixed size,
89 make a variable for the size.
91 2012-05-15 Andris Pavenis <andris.pavenis@iki.fi>
94 * s-taprop-dummy.adb (Specific): New package.
96 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
98 * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
99 atomicity from an object to its underlying type only if it
102 2012-05-06 Pascal Obry <obry@adacore.com>
105 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
107 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
108 Windows-specific make variable.
109 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
110 (install-gnatlib): Respect the above during installation when set,
111 and also install any windows import library that has been built.
112 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
113 build a corresponding import library.
115 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
117 * gcc-interface/utils.c (finish_record_type): Force the traditional GCC
118 layout for bitfields on the type if it is packed or has a representation
119 clause and an alternate layout is available.
121 2012-04-09 Mike Stump <mikestump@comcast.net>
123 * a-assert.ads: Remove execute permission.
124 * a-chacon.ads: Likewise.
125 * a-coteio.ads: Likewise.
126 * a-envvar.ads: Likewise.
127 * a-exetim-mingw.ads: Likewise.
128 * a-fzteio.ads: Likewise.
129 * a-izteio.ads: Likewise.
130 * a-lcteio.ads: Likewise.
131 * a-llctio.ads: Likewise.
132 * a-scteio.ads: Likewise.
133 * a-suenco.ads: Likewise.
134 * a-suenst.ads: Likewise.
135 * a-suewst.ads: Likewise.
136 * a-suezst.ads: Likewise.
137 * a-tirsfi.ads: Likewise.
138 * a-wichha.ads: Likewise.
139 * a-zchara.ads: Likewise.
140 * a-zchhan.ads: Likewise.
141 * a-zchuni.ads: Likewise.
142 * a-zrstfi.ads: Likewise.
143 * aspects.ads: Likewise.
144 * g-byorma.ads: Likewise.
145 * g-decstr.ads: Likewise.
146 * g-encstr.ads: Likewise.
147 * g-spchge.ads: Likewise.
148 * g-u3spch.ads: Likewise.
149 * g-wispch.ads: Likewise.
150 * g-zspche.ads: Likewise.
151 * namet-sp.ads: Likewise.
152 * s-os_lib.ads: Likewise.
153 * s-regexp.ads: Likewise.
154 * s-regpat.ads: Likewise.
155 * s-string.ads: Likewise.
156 * s-tasloc.ads: Likewise.
157 * s-utf_32.ads: Likewise.
158 * sem_aux.ads: Likewise.
159 * a-assert.adb: Likewise.
160 * a-chacon.adb: Likewise.
161 * a-envvar.adb: Likewise.
162 * a-exetim-mingw.adb: Likewise.
163 * a-suenco.adb: Likewise.
164 * a-suenst.adb: Likewise.
165 * a-suewst.adb: Likewise.
166 * a-suezst.adb: Likewise.
167 * a-tirsfi.adb: Likewise.
168 * a-wichha.adb: Likewise.
169 * a-zchhan.adb: Likewise.
170 * a-zchuni.adb: Likewise.
171 * a-zrstfi.adb: Likewise.
172 * aspects.adb: Likewise.
173 * g-byorma.adb: Likewise.
174 * g-decstr.adb: Likewise.
175 * g-encstr.adb: Likewise.
176 * g-spchge.adb: Likewise.
177 * g-u3spch.adb: Likewise.
178 * g-wispch.adb: Likewise.
179 * g-zspche.adb: Likewise.
180 * namet-sp.adb: Likewise.
181 * s-except.adb: Likewise.
182 * s-inmaop-vxworks.adb: Likewise.
183 * s-os_lib.adb: Likewise.
184 * s-regexp.adb: Likewise.
185 * s-regpat.adb: Likewise.
186 * s-string.adb: Likewise.
187 * s-tasloc.adb: Likewise.
188 * s-utf_32.adb: Likewise.
189 * s-wchcon.adb: Likewise.
190 * sem_aux.adb: Likewise.
192 2012-03-22 Release Manager
194 * GCC 4.7.0 released.
196 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
198 * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
199 and set TYPE_ARTIFICIAL according to it. Adjust recursive call.
200 (gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
201 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not
202 invoke rest_of_type_decl_compilation on the parallel type, if any.
204 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
206 * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
207 dummy global built for global types is preserved.
209 2012-02-27 Tristan Gingold <gingold@adacore.com>
211 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
212 E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
215 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
217 * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
218 (TYPE_BY_REFERENCE_P): New flag.
219 (TYPE_IS_BY_REFERENCE_P): New macro.
220 (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
221 (TYPE_IS_DUMMY_P): Adjust for above change.
222 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
223 and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
224 (gnat_to_gnu_param): Likewise.
225 (maybe_pad_type): Likewise.
226 (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
227 * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
228 instead of TREE_ADDRESSABLE.
229 * gcc-interface/trans.c (finalize_nrv): Likewise.
230 (call_to_gnu): Likewise. Do not create a temporary for return values
231 with by-reference type here.
232 (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
233 (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
234 CONSTRUCTORs and calls.
235 * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
236 the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P
237 instead of TREE_ADDRESSABLE.
238 * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
241 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
243 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
244 change that creates a special VAR_DECL for debugging purposes. For an
245 aliased object with an unconstrained nominal subtype, make its type a
246 thin reference to the underlying object.
247 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
248 expressions built for the initialization of above objects.
250 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
252 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
253 Windows-specific make variable.
254 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
255 (install-gnatlib): Respect the above during installation when set,
256 and also install any windows import library that has been built.
257 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
258 build a corresponding import library.
260 2012-02-22 Robert Dewar <dewar@adacore.com>
262 * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
265 2012-02-22 Geert Bosch <bosch@adacore.com>
267 * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
268 x86-specific version of byteswap and use GCC builtins instead.
270 2012-02-22 Tristan Gingold <gingold@adacore.com>
272 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
273 E_Array_Type]: Translate component ealier.
275 2012-02-22 Robert Dewar <dewar@adacore.com>
277 * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
278 error message for 'Range.
280 2012-02-22 Pascal Obry <obry@adacore.com>
282 * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
283 this is our own thread.
285 2012-02-22 Sergey Rybin <rybin@adacore.com frybin>
287 * tree_io.ads: Update ASIS_Version_Number because of the changes
290 2012-02-22 Hristian Kirtchev <kirtchev@adacore.com>
292 * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on
293 stack-related finalizers.
295 2012-02-22 Ed Schonberg <schonberg@adacore.com>
297 * sem_ch6.adb (Analyze_Expression_Function): If the construct
298 is a completion, indicate that its formals are the formals of
299 a completion, and as such do not get a cross- reference entry.
300 (Analyze_Subprogram_Specification): Do not generate a definition
301 for the entity of an expression function, because it may be a
302 completion. Definition will be generated if needed when analyzing
303 the generated subprogram declaration.
305 2012-02-22 Vincent Celier <celier@adacore.com>
307 * make.adb (Check): When checking if an object file is in the
308 correct object directory, get the unit name from a previous call
309 to Check_Source_Info_In_ALI.
310 * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
311 the unit when everything is OK, otherwise return No_Name.
312 * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
315 2012-02-22 Ed Schonberg <schonberg@adacore.com>
317 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
318 instance, the operator is visible if an operand is of some
319 numeric type which is not in use or directly visible, and the
320 other operand is a numeric literal.
322 2012-02-22 Tristan Gingold <gingold@adacore.com>
324 * init.c: Minor code clean up.
325 * gcc-interface/Make-lang.in: Update dependencies.
327 2012-02-22 Arnaud Charlet <charlet@adacore.com>
329 * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
330 otherwise GCC will generate an object file.
332 2012-02-22 Vincent Celier <celier@adacore.com>
334 * projects.texi: Correct typo related to "**" in Source_Dirs.
336 2012-02-22 Steve Baird <baird@adacore.com>
338 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
341 2012-02-22 Vincent Pucci <pucci@adacore.com>
343 * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
344 System_Dim_Child cases added.
345 * rtsfind.ads: Ada_Numerics,
346 Ada_Numerics_Generic_Elementary_Functions, System_Dim,
347 System_Dim_Float_IO and System_Dim_Integer_IO added to the list
348 of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as
350 * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
351 Rtsfind to verify the package entity is located either
352 in System.Dim.Integer_IO or in System.Dim.Float_IO.
353 (Is_Dim_IO_Package_Instantiation): Minor
354 changes. (Is_Elementary_Function_Call): Removed.
355 (Is_Elementary_Function_Entity): New routine.
356 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
357 * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
360 2012-02-22 Vincent Pucci <pucci@adacore.com>
362 * sem_prag.adb: Minor reformatting.
364 2012-02-22 Ed Schonberg <schonberg@adacore.com>
366 * sem_ch3.adb (Find_Type_Name): When analyzing a private type
367 declaration that is the completion of a tagged incomplete type, do
368 not associate the class-wide type already created with the private
369 type to prevent order-of-elaboration issues in the back-end.
370 * exp_disp.adb (Find_Specific_Type): Find specific type of
371 a class-wide type, and handle the case of an incomplete type
372 coming either from a limited_with clause or from an incomplete
373 type declaration. Used when expanding a dispatchin call and
374 generating tag checks (minor refactoring).
376 2012-02-22 Robert Dewar <dewar@adacore.com>
378 * exp_ch5.adb: Add comment.
379 * sem_ch12.adb, exp_ch6.adb: minor reformatting
381 2012-02-22 Ed Schonberg <schonberg@adacore.com>
383 * freeze.adb (Freeze_Entity): Do not perform type layout within
386 2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
388 * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
391 2012-02-22 Ed Schonberg <schonberg@adacore.com>
393 * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
394 assignment to a classwide type whose type is limited, as
395 can happen in an instantiation in programs that run afoul or
399 2012-02-17 Ed Schonberg <schonberg@adacore.com>
401 * exp_ch6.adb (Legal_Copy): If layout is not
402 determined in the front-end, do not emit error message when
403 by-reference actual is potentially unaligned.
404 * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
405 illegal representation clause on tagged or aliased component, or on
406 by-reference type with forced alignment.
408 2012-02-17 Nicolas Roche <roche@adacore.com>
410 * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
411 propagated by gnatlib-sjlj and gnatlib-zcx targets.
412 * gcc-interface/Make-lang.in: Update dependencies.
414 2012-02-17 Thomas Quinot <quinot@adacore.com>
416 * sem_ch12.adb (Analyze_Package_Instantiation): For an
417 instantiation in an RCI library unit, omit the instance body
418 if the RCI library unit is the instance itself (E.2.3(18)),
419 but include the body if the instantiation is within the RCI
420 declaration (12.3(12)).
422 2012-02-17 Steve Baird <baird@adacore.com>
424 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
425 Post'Class aspects can only be specified for a primitive operation
428 2012-02-17 Yannick Moy <moy@adacore.com>
430 * gnat_rm.texi: Minor shuffling.
432 2012-02-17 Ed Schonberg <schonberg@adacore.com>
434 * aspects.adb: Expression functions can carry pre/postconditions.
435 * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
436 in an expression function.
437 * sem_prag (Check_Precondition_Postcondition): legal on expression
440 2012-02-17 Vincent Pucci <pucci@adacore.com>
442 * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
443 * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
444 * a-convec.adb, a-coorma.adb (Adjust): New routine.
445 (Constant_Reference): Increment Busy and Lock counters.
446 (Reference): Increase Busy and Lock counters.
447 (Finalize): New routine.
448 * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
449 (Adjust): New routine. (Constant_Reference): Increment Busy
451 (Finalize): New routine.
452 * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
453 * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
454 * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
455 * a-coorma.ads, a-coorse: Controlled component added to the
458 2012-02-17 Robert Dewar <dewar@adacore.com>
460 * restrict.adb (Check_Restriction): Add special handling for
461 No_Obsolescent_Features.
463 2012-02-17 Hristian Kirtchev <kirtchev@adacore.com>
465 * exp_util.adb (Find_Finalize_Address): When dealing with an
466 internally built full view for a type with unknown discriminants,
467 use the original record type.
469 2012-02-17 Robert Dewar <dewar@adacore.com>
471 * sem_dim.adb: Minor reformatting.
473 2012-02-17 Yannick Moy <moy@adacore.com>
475 * gnat_rm.texi: Minor rewording.
477 2012-02-17 Thomas Quinot <quinot@adacore.com>
479 * sem_aggr.adb: Minor reformatting.
481 2012-02-17 Robert Dewar <dewar@adacore.com>
483 * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
485 2012-02-17 Vincent Pucci <pucci@adacore.com>
487 * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
488 (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
490 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
492 * s-dim.ads: Make package Pure.
494 2012-02-17 Gary Dismukes <dismukes@adacore.com>
496 * prj-nmsc.adb: Minor reformatting.
498 2012-02-17 Yannick Moy <moy@adacore.com>
500 * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
502 2012-02-17 Yannick Moy <moy@adacore.com>
504 * gnat_ugn.texi: Fix typos.
506 2012-02-17 Pascal Obry <obry@adacore.com>
508 * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
509 aggregate is not Externally_Built.
511 2012-02-17 Ed Schonberg <schonberg@adacore.com>
513 * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
514 component has a box association, copy the default value using
515 the current scope as the scope of internal types, to prevent
516 scoping anomalies in gigi.
518 2012-02-17 Robert Dewar <dewar@adacore.com>
520 * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
521 sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
522 exp_intr.adb, s-os_lib.adb: Minor reformatting.
524 2012-02-17 Ed Schonberg <schonberg@adacore.com>
526 * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
527 old operation is abstract, the relevant type is not abstract,
528 and the new subprogram fails to override.
530 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
532 * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
533 type of the result to the end and execute it for a deferred constant of
534 a discriminated type whose full view can be elaborated statically.
536 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
538 * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
539 type is tagged, mark it as used for debugging purposes.
540 <N_Allocator>: Likewise for a qualified expression.
542 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
544 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
545 return value in the by-reference return type case if this isn't the
546 expression of an object declaration. Tidy up.
548 2012-02-09 Tristan Gingold <gingold@adacore.com>
550 * gcc-interface/Makefile.in: Remove .sym rule (not used).
551 Remove adamsg.o object (requires native message compiler).
552 * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
553 macro instead of as extern int.
554 (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
555 (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
556 (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
557 (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
558 (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
559 (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
560 (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
561 (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
562 (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
563 (struct cond_except): Field cond is now an unsigned int.
564 (dec_ada_cond_except_table): Adjust.
565 (cond_except_table): Likewise.
566 (cond_resignal_table): Likewise.
567 (__gnat_default_resignal_p): Fix style.
569 2012-02-08 Vincent Celier <celier@adacore.com>
571 * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
572 (g-buorma is now imported by sinput).
574 * scn.adb (Initialize_Scanner): Call Check_For_BOM
575 * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
576 * sinput.adb: New procedure Check_For_BOM
577 * sinput.ads: New procedure Check_For_BOM
579 2012-02-08 Vincent Pucci <pucci@adacore.com>
581 * impunit.adb: Dimension package names updated
582 * Makefile.rtl: s-dim added
583 * sem_dim.adb (Is_Procedure_Put_Call): minor changes
584 (Is_Dim_IO_Package_Instantiation): minor changes
585 * sem_dim.ads: minor changes in comments
586 * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
587 Name_Dim_Integer_IO removed
588 * s-dim.ads: New package. Define the dimension terminology.
589 * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
590 * s-dmotpr.ads: Package names updated.
591 * s-diflio.ads, s-diinio.ads: Documentation added and package
594 2012-02-08 Gary Dismukes <dismukes@adacore.com>
596 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
597 for storage pools to test for an underlying record type rather than
598 testing Is_Tagged_Type, so that simple storage pools will be handled
599 the same as normal Ada storage pools.
601 2012-02-08 Yannick Moy <moy@adacore.com>
603 * gnat_rm.texi: Minor reshuffling to place restriction at
606 2012-02-08 Bob Duff <duff@adacore.com>
608 * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
609 False for '-gnatwA', to suppress these warnings.
611 2012-02-08 Vincent Celier <celier@adacore.com>
613 * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
614 starting to scan, so that UTF8 encoding is taken into account.
616 2012-02-08 Arnaud Charlet <charlet@adacore.com>
618 * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
620 (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
621 (Exceptional_Complete_Rendezvous): Mark No_Return.
623 2012-02-08 Eric Botcazou <ebotcazou@adacore.com>
625 * exp_aggr.adb (Compile_Time_Known_Composite_Value):
626 New predicate to compute whether a composite value can be
627 evaluated at compile time.
628 (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
629 expressions of elementary type and Compile_Time_Known_Composite_Value
630 for all other expressions.
631 (Expand_Record_Aggregate): Convert to assignments in the case
632 of a type with mutable components if the aggregate cannot be
635 2012-02-08 Gary Dismukes <dismukes@adacore.com>
637 * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
638 (Impl_Defined_Aspects): Add association for
639 Aspect_Simple_Storage_Pool_Type.
641 association for Aspect_Simple_Storage_Pool_Type.
643 (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
644 * exp_attr.adb (Expand_N_Attribute_Reference):
645 Change name to Name_Simple_Storage_Pool_Type.
646 * exp_ch4.adb (Expand_N_Allocator): Change
647 name to Name_Simple_Storage_Pool_Type.
648 * exp_intr.adb (Expand_Unc_Deallocation): Change name to
649 Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity):
650 Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb:
651 Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb:
652 (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
653 * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
654 Change name to Name_Simple_Storage_Pool_Type.
656 (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
657 (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
658 * sem_res.adb (Resolve_Allocator): Change name to
659 Name_Simple_Storage_Pool_Type. * snames.ads-tmpl:
660 (Name_Simple_Storage_Pool_Type): New name constant.
661 (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
662 move to main pragma section because it no longer matches the
664 * snames.adb-tmpl (Get_Pragma_Id): Remove test for
665 Name_Simple_Storage_Pool.
666 (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
668 2012-02-08 Robert Dewar <dewar@adacore.com>
670 * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
672 2012-02-08 Pascal Obry <obry@adacore.com>
674 * prj.adb (Compute_All_Imported_Projects): Use new
675 For_Project_And_Aggregated_Context to ensure proper context is
676 used for encapsulated aggregate libraries.
677 * prj-proc.adb (Recursive_Process): Call
678 Process_Aggregated_Projects earlier to ensure that all dependent
679 projects are set with the proper encapsulated status.
681 2012-02-08 Pascal Obry <obry@adacore.com>
683 * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
686 2012-02-08 Pascal Obry <obry@adacore.com>
688 * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
689 generic routine with a context parameter.
691 2012-02-08 Robert Dewar <dewar@adacore.com>
693 * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
694 a-convec.adb: Minor reformatting and code reorganization.
696 2012-02-08 Steve Baird <baird@adacore.com>
698 * sem_cat.adb (In_Preelaborated_Unit): A child
699 unit instantiation does not inherit preelaboration requirements
702 2012-02-08 Gary Dismukes <dismukes@adacore.com>
704 * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
705 (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
706 (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
707 (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
708 * aspects.adb (Canonical_Aspect): Add entry for
709 Aspect_Simple_Storage_Pool.
710 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
711 Attribute_Simple_Storage_Pool in the same way as Storage_Pool
712 (add conversion, analyze/resolve). For the Storage_Size attribute,
713 for the simple pool case, locate and use the simple pool type's
714 Storage_Size function (if any), otherwise evaluate to zero.
715 * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
716 for an access type with an associated simple storage pool,
717 locate and use the pool type's Allocate.
718 * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
719 access type has a simple storage pool, locate the pool type's
720 Deallocate procedure (if present) and use it as the procedure
721 to call on the Free operation.
722 * freeze.adb (Freeze_Entity): In the case of a full type for
723 a private type defined with pragma Simple_Storage_Pool, check
724 that the full type is also appropriate for the pragma. For
725 a simple storage pool type, validate that the operations
726 Allocate, Deallocate (if present), and Storage_Size
727 (if present) are defined with appropriate expected profiles.
728 (Validate_Simple_Pool_Op_Formal): New procedure
729 (Validate_Simple_Pool_Operation): New procedure Add with and
731 * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
732 (no action required).
733 * sem_attr.adb (Analyze_Attribute): For the case of the
734 Storage_Pool attribute, give a warning if the prefix type has an
735 associated simple storage pool, and rewrite the attribute as a
736 raise of Program_Error. In the case of the Simple_Storage_Pool
737 attribute, check that the prefix type has an associated simple
738 storage pool, and set the attribute type to the pool's type.
739 * sem_ch13.adb (Analyze_Aspect_Specifications): Add
740 Aspect_Simple_Storage_Pool case choice.
741 (Analyze_Attribute_Definition_Clause): Add
742 Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
743 (no action). Add handling for Simple_Storage_Pool attribute
744 definition, requiring the name to denote a simple storage pool
746 (Check_Aspect_At_Freeze_Point): For a simple storage pool
747 aspect, set the type to that of the name specified for the aspect.
748 * sem_prag.adb (Analyze_Pragma): Add handling for pragma
749 Simple_Storage_Pool, requiring that it applies to a library-level
750 type declared in a package declaration that is a limited private
751 or limited record type.
752 * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
753 build-in-place function in an allocator for an access type with
754 a simple storage pool as unsupported.
755 * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
756 (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
757 (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
758 * snames.adb-tmpl (Get_Pragma_Id): Handle case of
759 Name_Simple_Storage_Pool.
760 (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
762 2012-02-08 Cyrille Comar <comar@adacore.com>
764 * projects.texi: Clarify doc for interfaces.
766 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
768 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
771 2012-02-01 Tristan Gingold <gingold@adacore.com>
773 * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
774 instead of size_type_node.
776 2012-01-30 Nicolas Roche <roche@adacore.com>
778 * gcc-interface/Make-lang.in: Update dependencies.
779 * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
781 Remove Linker_Options -crtbe when building sjlj run-time.
783 2012-01-30 Robert Dewar <dewar@adacore.com>
785 * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
786 * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
787 form 2 * small-literal.
788 * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
790 * sem_ch4.ads (Analyze_Mod): New procedure.
792 2012-01-30 Ed Schonberg <schonberg@adacore.com>
794 * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
795 types and return expression when building spec for implicit
796 body, to preserve global references that may be present in an
799 2012-01-30 Matthew Heaney <heaney@adacore.com>
801 * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
802 Reverse_Elements): Check for cursor tampering.
804 2012-01-30 Ed Schonberg <schonberg@adacore.com>
806 * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
807 type with aspect Default_Value or Default_Component_Value is
808 fully initialized, and use of variables of such types do not
811 2012-01-30 Javier Miranda <miranda@adacore.com>
814 * sem_ch8.adb (Analyze_Subprogram_Renaming):
815 Handle self-renaming when the renamed entity is referenced using
818 2012-01-30 Vincent Celier <celier@adacore.com>
820 * projects.texi: Add documentation for attribute Interfaces.
822 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
824 * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
825 * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
826 location for the wrapped call to the original AT_END routine
827 and the subsequent return statement.
829 2012-01-30 Pascal Obry <obry@adacore.com>
831 * s-rannum.adb: Minor reformatting.
833 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
835 * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
836 to 25 and add the hard time value for 2012-06-30.
838 2012-01-30 Robert Dewar <dewar@adacore.com>
840 * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
841 freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
842 s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
843 Minor reformatting/code reorganization.
845 2012-01-30 Thomas Quinot <quinot@adacore.com>
847 * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
848 Unsigned_64 rather than Duration.
849 (System.Random_Numbers.Reset): Use full value of seed
850 (do not truncate sub-second bits).
852 2012-01-30 Thomas Quinot <quinot@adacore.com>
854 * sem_cat.adb, sem_ch12.adb: Minor reformatting.
856 2012-01-30 Yannick Moy <moy@adacore.com>
858 * gnat_ugn.texi: Minor correction of GNAT UG, to take into
859 account changes to -gnatwa and more recent warnings.
861 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
863 * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
864 location when creating a call to a finalizer.
865 * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
866 a source location for the first actual of Save_Occurrence for
869 2012-01-30 Ed Schonberg <schonberg@adacore.com>
871 * einfo.ads, einfo,adb: New attribute on scalar types:
872 Default_Aspect_Value New attribute on array types:
873 Default_Aspect_Component_Value Move attribute Related_Array_Object
874 to a different position to accomodate new aspect attributes.
875 * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
876 of defaults set with an aspect specification, rather than using
877 the list of aspects attached to the type, to prevent issues with
879 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
880 Default_Value and Default_Component _Value, store corresponding
881 expression in type entity.
882 (Check_Aspect_At_End_Of_Declaration): If the default aspects
883 are declared on the full view, use the full view to resolve the
884 correseponding expression.
885 * exp_ch3.adb (Init_Component): Use attribute
886 Default_Aspect_Component_Value to perform default initialization,
887 rather than relying on the rep item list for the type.
888 (Get_Simple_Init_Val): Ditto.
890 2012-01-30 Thomas Quinot <quinot@adacore.com>
892 * a-strhas.ads: Document risk of collision attack.
894 2012-01-30 Yannick Moy <moy@adacore.com>
896 * gnat_ugn.texi: Minor update wrt warning switches.
898 2012-01-30 Vincent Celier <celier@adacore.com>
900 * prj-nmsc.adb (Check_Interfaces): Report an error when a
901 unit from Library_Interface is not a unit of the project.
903 2012-01-30 Vincent Pucci <pucci@adacore.com>
905 * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
906 links fixed inside PPC pragmas.
907 * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
909 2012-01-30 Thomas Quinot <quinot@adacore.com>
911 * s-ransee.ads: Minor reformatting.
913 2012-01-30 Pascal Obry <obry@adacore.com>
915 * prj.ads, prj.adb (For_Each_Source): Add support for skipping
916 sources coming from an encapsulated library.
918 2012-01-30 Ed Schonberg <schonberg@adacore.com>
920 * sem_ch3.adb (Process-Full_View): fix typo.
921 * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
922 appear on a private type and the full view is available, ensure
923 existence of freeze node for full view.
924 (Build_Predicate_Function): Attach predicate function to both
925 views of a private type.
927 2012-01-30 Vincent Celier <celier@adacore.com>
929 * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
930 for the project if either attribute Library_Interface or
931 Interfaces is declared.
932 (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
935 2012-01-30 Pascal Obry <obry@adacore.com>
937 * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
938 boolean value to true in the process list created by this routine.
939 * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
940 Continued work for KA06-021.
941 * prj.adb (Compute_All_Imported_Projects): Set
942 From_Encapsulated_Lib boolean flag.
944 2012-01-30 Vincent Pucci <pucci@adacore.com>
946 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
948 * s-diflio.ads: Minor change.
950 2012-01-30 Javier Miranda <miranda@adacore.com>
952 * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
953 to Get_Entry_Index. Required to generate code which provides
954 the correct value of Entry_Index in the target entry.
956 2012-01-30 Nicolas Roche <roche@adacore.com>
958 * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
959 fix issue with zcx on VxWorks5.
961 2012-01-30 Pascal Obry <obry@adacore.com>
963 * prj.ads, prj.adb (For_Every_Project_Imported): Remove
965 (For_Every_Project_Imported_Context): New generic routine with
967 * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
968 distributed complexity.
969 * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
971 2012-01-30 Thomas Quinot <quinot@adacore.com>
973 * exp_aggr.adb (Expand_Record_Aggregate): After creating the
974 _parent aggregate for an extension aggregate, check whether it
975 requires delayed (top-down) expansion.
977 2012-01-30 Vincent Pucci <pucci@adacore.com>
979 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
980 * snames.ads-tmpl: Name_Item and Name_Symbols added.
981 * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
982 and change the position of parameter Symbols in every Put routine.
983 * s-dimmks.ads: Convert long float type Mks_Type into long
985 * s-llflex.ads: Modifications in comments.
987 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
989 * sem_ch12.adb (Earlier): Do not use the
990 top level source locations of the two input nodes.
992 2012-01-30 Robert Dewar <dewar@adacore.com>
994 * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
995 sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
997 2012-01-30 Robert Dewar <dewar@adacore.com>
999 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
1001 2012-01-30 Olivier Hainque <hainque@adacore.com>
1003 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
1006 2012-01-30 Thomas Quinot <quinot@adacore.com>
1008 * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
1009 sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
1010 sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
1011 New subprogram (extracted from
1012 Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
1013 (Einfo.Is_Remote_Types): Now applies to generic types. Update
1014 documentation accordingly.
1015 (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
1016 actual for a formal type to which a pragma Remote_Access_Type
1018 (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
1020 (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
1021 be applied to a generic type if pragma Remote_Access_Type
1022 applies, in which case the type of the attribute is
1023 System.Partition_Interface.RACW_Stub_Type.
1025 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1027 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
1028 an alignment on fields of the RETURN type built for the CICO mechanism.
1030 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1032 * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
1033 a call to a function that returns an unconstrained type with default
1034 discriminant. Similarly, avoid doing the conversion to the nominal
1035 result type in this case.
1037 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1039 * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
1040 * gcc-interface/decl.c (is_variable_size): Rename to...
1041 (type_has_variable_size): ...this.
1042 (adjust_packed): Adjust to above renaming.
1043 (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
1044 (field_is_artificial): New predicate.
1045 (field_is_aliased): Likewise.
1046 (field_has_self_size): Likewise.
1047 (field_has_variable_size): Likewise.
1048 (components_to_record): Record information for the final layout during
1049 the first pass on fields.
1050 If there is an aliased field placed after a field whose length depends
1051 on discriminants, put all the fields of the latter sort, last.
1053 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1055 * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
1056 * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
1057 * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
1058 Access-like attribute in a dispatch table if the subprogram is public.
1060 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1062 * gcc-interface/gigi.h (create_label_decl): Adjust.
1063 * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
1064 and invoke gnat_pushdecl on it. Remove obsolete settings.
1065 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
1067 * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise. Ignore the
1068 label for debugging purposes.
1070 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1072 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
1073 object with an unconstrained nominal subtype and if optimization isn't
1074 enabled, create a special VAR_DECL for debugging purposes.
1076 2012-01-23 Robert Dewar <dewar@adacore.com>
1078 * sem_prag.ads, sem_prag.adb: Minor reformatting.
1080 2012-01-23 Robert Dewar <dewar@adacore.com>
1082 * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
1083 language defined aspect applied to renaming or formal type
1084 declaration (not permitted)
1086 2012-01-23 Matthew Heaney <heaney@adacore.com>
1088 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
1089 comment with pragma Assert.
1091 2012-01-23 Vincent Pucci <pucci@adacore.com>
1093 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
1094 to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
1095 * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
1096 routine. In ASIS mode, convert any PPC pragmas into aspects in generic
1097 subprogram declaration in order to enable the analysis of PPC boolean
1100 2012-01-23 Robert Dewar <dewar@adacore.com>
1102 * sem_ch3.adb (Analyze_Object_Declaration): Properly
1103 handle Current_Value for volatile variables (also propagate
1104 Treat_As_Volatile from type to object).
1106 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1108 * sem_ch12.adb (Install_Body): Detect the case
1109 where the enclosing context is a package with a stub body that
1110 has already been replaced by the actual body. In such cases,
1111 the freeze node for the enclosing context must be inserted after
1114 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1116 * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
1117 subprogram before expanding the pragma into an if-statement with
1118 a block, to ensure that when the subprogram is null its body is
1119 properly generated before expansion.
1121 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1123 * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
1124 constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
1126 Freeze all eligible subprograms which appear as actuals in
1128 (Has_Fully_Defined_Profile): New routine.
1129 (Renames_Standard_Subprogram): New routine.
1130 (Earlier): Add local variable N. Comment update. Do not use source
1131 locations when trying to determine whether one node precedes another.
1133 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1135 * exp_ch4.adb (Expand_Concatenate): In the case
1136 where the result of a concatentation can be null, set the to
1137 result have both the low and high bounds of the right operand (not
1138 just the high bound, as was the case prior to this fix). Also,
1139 fix the saved high bound setting (Last_Opnd_High_Bound) in the
1140 empty string literal case (should have been low bound minus one,
1141 rather than plus one).
1143 2012-01-23 Thomas Quinot <quinot@adacore.com>
1145 * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
1146 omit statement SCOs for disabled pragmas.
1148 2012-01-23 Matthew Heaney <heaney@adacore.com>
1150 * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
1151 a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
1152 a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
1153 a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
1154 Cursor'Write): Declare in private part.
1155 (Reference_Type'Read, Reference_Type'Write): Ditto.
1156 (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
1158 2012-01-23 Robert Dewar <dewar@adacore.com>
1160 * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
1163 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1165 * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
1166 Corresponding_Body on a defaulted null formal subprogram.
1167 * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
1168 on a defaulted formal subprogram that is a null procedure.
1170 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1172 * exp_ch9.adb: Update the comments involving pragma Implemented.
1173 * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
1174 constant Subp_Alias and local variable Impl_Subp. Properly
1175 handle aliases of synchronized wrappers. Code cleanup.
1176 (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
1177 Name_Optional as part of the condition.
1178 * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
1179 valid choices of implementation kind.
1180 (Check_Arg_Is_One_Of): New routine.
1181 * snames.ads-tmlp: Add Name_Optional.
1183 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1185 * par-ch13.adb: Better error recovery in illegal aspect
1188 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1190 * a-calend.adb: Add with clause for Interfaces.C. Add constant
1192 (Day_Of_Week): Call the internal UTC_Time_Offset.
1193 (Split): Call the internal UTC_Time_Offset.
1194 (Time_Of): Call the internal UTC_Time_Offset.
1195 (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
1196 (UTC_Time_Offset): New library-level routine.
1197 * a-calend.ads (UTC_Time_Offset): Remove parameter
1198 Is_Historic. Update related comment on usage.
1199 * a-catizo.adb (UTC_Time_Offset): Removed.
1200 (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
1201 * a-caltizo.ads (UTC_Time_Offset): Removed.
1202 (UTC_Time_Offset (Time)): Add back the default expression of parameter
1205 2012-01-23 Robert Dewar <dewar@adacore.com>
1207 * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1208 (pg,po,ps): Make sure each entry starts on new line.
1210 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1212 * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1213 the parameter profile of procedure localtime_tzoff and its associated
1215 (Day_Of_Week): Do not treat the input date as historical
1216 with respect to time zones.
1217 (Split): Do not treat the input
1218 date as historical with respect to time zones. (Time_Of): Do
1219 not treat the input constituents as forming a historical date
1220 with respect to time zones.
1221 (UTC_Time_Offset): Add new formal
1222 parameter Is_Historic. Add local variable Flag. Update the call
1224 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1225 (UTC_Time_Offset (Time)): Update the call to
1226 Time_Zone_Operations.UTC_Time_Offset.
1227 * sysdep.c (__gnat_localtime_tzoff): Update parameter
1228 profile. Split the processing of offsets on Windows into two - one
1229 part of historic time stamps and the other for the current time.
1231 2012-01-23 Robert Dewar <dewar@adacore.com>
1233 * a-calend.adb: Minor reformatting.
1235 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1237 * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1238 interface in requeue statement.
1240 2012-01-23 Cyrille Comar <comar@adacore.com>
1242 * projects.texi: Remove references to main units and replace
1243 with references to main programs to be coherent with the
1246 2012-01-23 Robert Dewar <dewar@adacore.com>
1248 * s-utf_32.adb: Minor reformatting.
1250 2012-01-23 Vincent Celier <celier@adacore.com>
1252 * snames.ads-tmpl: Minor comment addition Indicate that
1253 Name_Library_Encapsulated_Options is only used in gprbuild.
1255 2012-01-23 Robert Dewar <dewar@adacore.com>
1257 * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1260 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1262 * snames.ads-tmpl: Add Name_Synchronization.
1263 * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1264 enumeration type and related maps.
1265 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1266 Synchronization, build corresponding pragma Implemented.
1267 * sem_util.adb (Implementation_Kind): Handle both explicit and
1268 implicit pragma_argument association to retrieve the given
1269 synchronization mode.
1271 2012-01-23 Robert Dewar <dewar@adacore.com>
1273 * sem_ch10.adb, errout.adb: Minor reformatting.
1275 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1277 * sem_res.adb (Resolve_Actuals): An actual in a call to an
1278 Ada 2012 Reference function does not lead to a dangerous order
1281 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1283 * exp_util.adb (Is_Iterated_Container): Test
1284 Is_Entity_Name when searching for calls to the default iterator,
1285 to avoid blowing up on indirect calls which have an explicit
1286 dereference as the call name.
1288 2012-01-23 Thomas Quinot <quinot@adacore.com>
1290 * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1291 the complete expanded name, rather than just its Selector_Name.
1293 2012-01-23 Thomas Quinot <quinot@adacore.com>
1295 * a-textio.adb (Put): Rewrite one-parameter Character version to
1296 just call the two-parameter one with Current_Out.
1298 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1300 * freeze.adb (Check_Current_Instance): Issue an
1301 error when the prefix of 'Unchecked_Access or 'Access does not
1302 denote a legal aliased view of a type.
1303 (Freeze_Record_Type): Do not halt the processing of record components
1304 once the Has_Controlled_Component is set as this bypasses the remaining
1306 (Is_Aliased_View_Of_Type): New routine.
1308 2012-01-23 Thomas Quinot <quinot@adacore.com>
1310 * errout.ads, freeze.adb: Minor reformatting.
1312 2012-01-23 Thomas Quinot <quinot@adacore.com>
1314 * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1317 2012-01-23 Olivier Hainque <hainque@adacore.com>
1319 * adadecode.c (__gnat_decode): Deal with empty input early,
1320 preventing potential erroneous memory access later on.
1322 2012-01-21 Eric Botcazou <ebotcazou@adacore.com>
1325 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1326 renaming, preserve the volatileness through the indirection, if any.
1328 2012-01-14 Andreas Schwab <schwab@linux-m68k.org>
1330 * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1333 2012-01-10 Pascal Obry <obry@adacore.com>
1335 * prj-nmsc.adb (Check_Library_Attributes):
1336 Kill check for object/source directories for aggregate libraries.
1338 2012-01-10 Matthew Heaney <heaney@adacore.com>
1340 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1341 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1342 a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1343 a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1344 a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1345 a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1346 a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1347 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1348 a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1349 container parameter as aliased in/in out.
1352 2012-01-10 Bob Duff <duff@adacore.com>
1354 * s-os_lib.ads: Improve comment.
1356 2012-01-10 Geert Bosch <bosch@adacore.com>
1358 * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1361 2012-01-10 Bob Duff <duff@adacore.com>
1363 * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1364 checking that the 'Size is correct. If the type is "mod 2**12",
1365 for example, it's illegal, but Esize is the 'Object_Size, which
1366 will be something like 16 or 32, so the error ('Size = 12) was
1368 * gnat_rm.texi: Improve documentation of shift
1369 and rotate intrinsics.
1371 2012-01-10 Pascal Obry <obry@adacore.com>
1373 * prj.adb (For_Every_Project_Imported): Fix
1374 implementation to make sure we return each project only once
1375 for aggragte libraries. It is fine to return a project twice for
1376 aggregate projects, this was the case as a Project_Id is different
1377 in each project tree. The new implementation use a table based on
1378 the project name to ensure proper detection of duplicate project
1379 in aggregate library. A new context is then created to continue
1380 retrurning duplicate project for aggregate libraries.
1382 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1384 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1385 return value in the variable-sized return type case if the target is
1386 an array with fixed size. However, do not create it if this is the
1387 expression of an object declaration.
1389 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1391 * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1393 2012-01-06 Robert Dewar <dewar@adacore.com>
1395 * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1396 s-utf_32.ads: Add pragma Pure
1397 * s-utf_32.adb: Suppress warnings on non-static constants (now
1400 2012-01-06 Bob Duff <duff@adacore.com>
1402 * s-rpc.ads (Read, Write): Add overriding indicators.
1404 2012-01-06 Robert Dewar <dewar@adacore.com>
1406 * gnat_rm.texi: Add documentation for conventions
1407 Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1409 2012-01-06 Gary Dismukes <dismukes@adacore.com>
1411 * a-tienio.adb (Put): Add exception message on
1412 raise statements. Remove unneeded blocks and object declarations.
1414 2012-01-06 Robert Dewar <dewar@adacore.com>
1416 * sem_prag.adb: Minor reformatting.
1418 2012-01-06 Ed Schonberg <schonberg@adacore.com>
1420 * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1421 that a selected component within a generic unit has been resolved
1422 as a prefixed call with local references.
1423 * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1424 component is always visible.
1425 * sem_ch4.adb (Analyze_Selected_Component): If the node is a
1426 prefixed call in an instance, do not look for visible components
1428 * sem_ch12.adb (Reset_Entity): If a selected component has resolved
1429 to a prefixed call, mark the node accordingly when prefix and
1430 selector are local references.
1432 2012-01-02 Eric Botcazou <ebotcazou@adacore.com>
1434 * gnatvsn.ads (Current_Year): Bump to 2012.
1436 Copyright (C) 2012 Free Software Foundation, Inc.
1438 Copying and distribution of this file, with or without modification,
1439 are permitted in any medium without royalty provided the copyright
1440 notice and this notice are preserved.