1 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
4 dummy global built for global types is preserved.
6 2012-02-27 Tristan Gingold <gingold@adacore.com>
8 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
9 E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
12 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
14 * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
15 (TYPE_BY_REFERENCE_P): New flag.
16 (TYPE_IS_BY_REFERENCE_P): New macro.
17 (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
18 (TYPE_IS_DUMMY_P): Adjust for above change.
19 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
20 and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
21 (gnat_to_gnu_param): Likewise.
22 (maybe_pad_type): Likewise.
23 (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
24 * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
25 instead of TREE_ADDRESSABLE.
26 * gcc-interface/trans.c (finalize_nrv): Likewise.
27 (call_to_gnu): Likewise. Do not create a temporary for return values
28 with by-reference type here.
29 (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
30 (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
31 CONSTRUCTORs and calls.
32 * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
33 the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P
34 instead of TREE_ADDRESSABLE.
35 * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
38 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
40 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
41 change that creates a special VAR_DECL for debugging purposes. For an
42 aliased object with an unconstrained nominal subtype, make its type a
43 thin reference to the underlying object.
44 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
45 expressions built for the initialization of above objects.
47 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
49 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
50 Windows-specific make variable.
51 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
52 (install-gnatlib): Respect the above during installation when set,
53 and also install any windows import library that has been built.
54 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
55 build a corresponding import library.
57 2012-02-22 Robert Dewar <dewar@adacore.com>
59 * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
62 2012-02-22 Geert Bosch <bosch@adacore.com>
64 * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
65 x86-specific version of byteswap and use GCC builtins instead.
67 2012-02-22 Tristan Gingold <gingold@adacore.com>
69 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
70 E_Array_Type]: Translate component ealier.
72 2012-02-22 Robert Dewar <dewar@adacore.com>
74 * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
75 error message for 'Range.
77 2012-02-22 Pascal Obry <obry@adacore.com>
79 * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
80 this is our own thread.
82 2012-02-22 Sergey Rybin <rybin@adacore.com frybin>
84 * tree_io.ads: Update ASIS_Version_Number because of the changes
87 2012-02-22 Hristian Kirtchev <kirtchev@adacore.com>
89 * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on
90 stack-related finalizers.
92 2012-02-22 Ed Schonberg <schonberg@adacore.com>
94 * sem_ch6.adb (Analyze_Expression_Function): If the construct
95 is a completion, indicate that its formals are the formals of
96 a completion, and as such do not get a cross- reference entry.
97 (Analyze_Subprogram_Specification): Do not generate a definition
98 for the entity of an expression function, because it may be a
99 completion. Definition will be generated if needed when analyzing
100 the generated subprogram declaration.
102 2012-02-22 Vincent Celier <celier@adacore.com>
104 * make.adb (Check): When checking if an object file is in the
105 correct object directory, get the unit name from a previous call
106 to Check_Source_Info_In_ALI.
107 * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
108 the unit when everything is OK, otherwise return No_Name.
109 * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
112 2012-02-22 Ed Schonberg <schonberg@adacore.com>
114 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
115 instance, the operator is visible if an operand is of some
116 numeric type which is not in use or directly visible, and the
117 other operand is a numeric literal.
119 2012-02-22 Tristan Gingold <gingold@adacore.com>
121 * init.c: Minor code clean up.
122 * gcc-interface/Make-lang.in: Update dependencies.
124 2012-02-22 Arnaud Charlet <charlet@adacore.com>
126 * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
127 otherwise GCC will generate an object file.
129 2012-02-22 Vincent Celier <celier@adacore.com>
131 * projects.texi: Correct typo related to "**" in Source_Dirs.
133 2012-02-22 Steve Baird <baird@adacore.com>
135 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
138 2012-02-22 Vincent Pucci <pucci@adacore.com>
140 * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
141 System_Dim_Child cases added.
142 * rtsfind.ads: Ada_Numerics,
143 Ada_Numerics_Generic_Elementary_Functions, System_Dim,
144 System_Dim_Float_IO and System_Dim_Integer_IO added to the list
145 of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as
147 * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
148 Rtsfind to verify the package entity is located either
149 in System.Dim.Integer_IO or in System.Dim.Float_IO.
150 (Is_Dim_IO_Package_Instantiation): Minor
151 changes. (Is_Elementary_Function_Call): Removed.
152 (Is_Elementary_Function_Entity): New routine.
153 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
154 * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
157 2012-02-22 Vincent Pucci <pucci@adacore.com>
159 * sem_prag.adb: Minor reformatting.
161 2012-02-22 Ed Schonberg <schonberg@adacore.com>
163 * sem_ch3.adb (Find_Type_Name): When analyzing a private type
164 declaration that is the completion of a tagged incomplete type, do
165 not associate the class-wide type already created with the private
166 type to prevent order-of-elaboration issues in the back-end.
167 * exp_disp.adb (Find_Specific_Type): Find specific type of
168 a class-wide type, and handle the case of an incomplete type
169 coming either from a limited_with clause or from an incomplete
170 type declaration. Used when expanding a dispatchin call and
171 generating tag checks (minor refactoring).
173 2012-02-22 Robert Dewar <dewar@adacore.com>
175 * exp_ch5.adb: Add comment.
176 * sem_ch12.adb, exp_ch6.adb: minor reformatting
178 2012-02-22 Ed Schonberg <schonberg@adacore.com>
180 * freeze.adb (Freeze_Entity): Do not perform type layout within
183 2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
185 * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
188 2012-02-22 Ed Schonberg <schonberg@adacore.com>
190 * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
191 assignment to a classwide type whose type is limited, as
192 can happen in an instantiation in programs that run afoul or
196 2012-02-17 Ed Schonberg <schonberg@adacore.com>
198 * exp_ch6.adb (Legal_Copy): If layout is not
199 determined in the front-end, do not emit error message when
200 by-reference actual is potentially unaligned.
201 * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
202 illegal representation clause on tagged or aliased component, or on
203 by-reference type with forced alignment.
205 2012-02-17 Nicolas Roche <roche@adacore.com>
207 * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
208 propagated by gnatlib-sjlj and gnatlib-zcx targets.
209 * gcc-interface/Make-lang.in: Update dependencies.
211 2012-02-17 Thomas Quinot <quinot@adacore.com>
213 * sem_ch12.adb (Analyze_Package_Instantiation): For an
214 instantiation in an RCI library unit, omit the instance body
215 if the RCI library unit is the instance itself (E.2.3(18)),
216 but include the body if the instantiation is within the RCI
217 declaration (12.3(12)).
219 2012-02-17 Steve Baird <baird@adacore.com>
221 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
222 Post'Class aspects can only be specified for a primitive operation
225 2012-02-17 Yannick Moy <moy@adacore.com>
227 * gnat_rm.texi: Minor shuffling.
229 2012-02-17 Ed Schonberg <schonberg@adacore.com>
231 * aspects.adb: Expression functions can carry pre/postconditions.
232 * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
233 in an expression function.
234 * sem_prag (Check_Precondition_Postcondition): legal on expression
237 2012-02-17 Vincent Pucci <pucci@adacore.com>
239 * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
240 * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
241 * a-convec.adb, a-coorma.adb (Adjust): New routine.
242 (Constant_Reference): Increment Busy and Lock counters.
243 (Reference): Increase Busy and Lock counters.
244 (Finalize): New routine.
245 * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
246 (Adjust): New routine. (Constant_Reference): Increment Busy
248 (Finalize): New routine.
249 * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
250 * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
251 * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
252 * a-coorma.ads, a-coorse: Controlled component added to the
255 2012-02-17 Robert Dewar <dewar@adacore.com>
257 * restrict.adb (Check_Restriction): Add special handling for
258 No_Obsolescent_Features.
260 2012-02-17 Hristian Kirtchev <kirtchev@adacore.com>
262 * exp_util.adb (Find_Finalize_Address): When dealing with an
263 internally built full view for a type with unknown discriminants,
264 use the original record type.
266 2012-02-17 Robert Dewar <dewar@adacore.com>
268 * sem_dim.adb: Minor reformatting.
270 2012-02-17 Yannick Moy <moy@adacore.com>
272 * gnat_rm.texi: Minor rewording.
274 2012-02-17 Thomas Quinot <quinot@adacore.com>
276 * sem_aggr.adb: Minor reformatting.
278 2012-02-17 Robert Dewar <dewar@adacore.com>
280 * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
282 2012-02-17 Vincent Pucci <pucci@adacore.com>
284 * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
285 (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
287 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
289 * s-dim.ads: Make package Pure.
291 2012-02-17 Gary Dismukes <dismukes@adacore.com>
293 * prj-nmsc.adb: Minor reformatting.
295 2012-02-17 Yannick Moy <moy@adacore.com>
297 * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
299 2012-02-17 Yannick Moy <moy@adacore.com>
301 * gnat_ugn.texi: Fix typos.
303 2012-02-17 Pascal Obry <obry@adacore.com>
305 * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
306 aggregate is not Externally_Built.
308 2012-02-17 Ed Schonberg <schonberg@adacore.com>
310 * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
311 component has a box association, copy the default value using
312 the current scope as the scope of internal types, to prevent
313 scoping anomalies in gigi.
315 2012-02-17 Robert Dewar <dewar@adacore.com>
317 * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
318 sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
319 exp_intr.adb, s-os_lib.adb: Minor reformatting.
321 2012-02-17 Ed Schonberg <schonberg@adacore.com>
323 * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
324 old operation is abstract, the relevant type is not abstract,
325 and the new subprogram fails to override.
327 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
329 * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
330 type of the result to the end and execute it for a deferred constant of
331 a discriminated type whose full view can be elaborated statically.
333 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
335 * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
336 type is tagged, mark it as used for debugging purposes.
337 <N_Allocator>: Likewise for a qualified expression.
339 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
341 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
342 return value in the by-reference return type case if this isn't the
343 expression of an object declaration. Tidy up.
345 2012-02-09 Tristan Gingold <gingold@adacore.com>
347 * gcc-interface/Makefile.in: Remove .sym rule (not used).
348 Remove adamsg.o object (requires native message compiler).
349 * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
350 macro instead of as extern int.
351 (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
352 (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
353 (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
354 (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
355 (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
356 (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
357 (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
358 (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
359 (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
360 (struct cond_except): Field cond is now an unsigned int.
361 (dec_ada_cond_except_table): Adjust.
362 (cond_except_table): Likewise.
363 (cond_resignal_table): Likewise.
364 (__gnat_default_resignal_p): Fix style.
366 2012-02-08 Vincent Celier <celier@adacore.com>
368 * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
369 (g-buorma is now imported by sinput).
371 * scn.adb (Initialize_Scanner): Call Check_For_BOM
372 * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
373 * sinput.adb: New procedure Check_For_BOM
374 * sinput.ads: New procedure Check_For_BOM
376 2012-02-08 Vincent Pucci <pucci@adacore.com>
378 * impunit.adb: Dimension package names updated
379 * Makefile.rtl: s-dim added
380 * sem_dim.adb (Is_Procedure_Put_Call): minor changes
381 (Is_Dim_IO_Package_Instantiation): minor changes
382 * sem_dim.ads: minor changes in comments
383 * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
384 Name_Dim_Integer_IO removed
385 * s-dim.ads: New package. Define the dimension terminology.
386 * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
387 * s-dmotpr.ads: Package names updated.
388 * s-diflio.ads, s-diinio.ads: Documentation added and package
391 2012-02-08 Gary Dismukes <dismukes@adacore.com>
393 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
394 for storage pools to test for an underlying record type rather than
395 testing Is_Tagged_Type, so that simple storage pools will be handled
396 the same as normal Ada storage pools.
398 2012-02-08 Yannick Moy <moy@adacore.com>
400 * gnat_rm.texi: Minor reshuffling to place restriction at
403 2012-02-08 Bob Duff <duff@adacore.com>
405 * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
406 False for '-gnatwA', to suppress these warnings.
408 2012-02-08 Vincent Celier <celier@adacore.com>
410 * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
411 starting to scan, so that UTF8 encoding is taken into account.
413 2012-02-08 Arnaud Charlet <charlet@adacore.com>
415 * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
417 (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
418 (Exceptional_Complete_Rendezvous): Mark No_Return.
420 2012-02-08 Eric Botcazou <ebotcazou@adacore.com>
422 * exp_aggr.adb (Compile_Time_Known_Composite_Value):
423 New predicate to compute whether a composite value can be
424 evaluated at compile time.
425 (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
426 expressions of elementary type and Compile_Time_Known_Composite_Value
427 for all other expressions.
428 (Expand_Record_Aggregate): Convert to assignments in the case
429 of a type with mutable components if the aggregate cannot be
432 2012-02-08 Gary Dismukes <dismukes@adacore.com>
434 * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
435 (Impl_Defined_Aspects): Add association for
436 Aspect_Simple_Storage_Pool_Type.
438 association for Aspect_Simple_Storage_Pool_Type.
440 (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
441 * exp_attr.adb (Expand_N_Attribute_Reference):
442 Change name to Name_Simple_Storage_Pool_Type.
443 * exp_ch4.adb (Expand_N_Allocator): Change
444 name to Name_Simple_Storage_Pool_Type.
445 * exp_intr.adb (Expand_Unc_Deallocation): Change name to
446 Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity):
447 Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb:
448 Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb:
449 (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
450 * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
451 Change name to Name_Simple_Storage_Pool_Type.
453 (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
454 (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
455 * sem_res.adb (Resolve_Allocator): Change name to
456 Name_Simple_Storage_Pool_Type. * snames.ads-tmpl:
457 (Name_Simple_Storage_Pool_Type): New name constant.
458 (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
459 move to main pragma section because it no longer matches the
461 * snames.adb-tmpl (Get_Pragma_Id): Remove test for
462 Name_Simple_Storage_Pool.
463 (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
465 2012-02-08 Robert Dewar <dewar@adacore.com>
467 * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
469 2012-02-08 Pascal Obry <obry@adacore.com>
471 * prj.adb (Compute_All_Imported_Projects): Use new
472 For_Project_And_Aggregated_Context to ensure proper context is
473 used for encapsulated aggregate libraries.
474 * prj-proc.adb (Recursive_Process): Call
475 Process_Aggregated_Projects earlier to ensure that all dependent
476 projects are set with the proper encapsulated status.
478 2012-02-08 Pascal Obry <obry@adacore.com>
480 * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
483 2012-02-08 Pascal Obry <obry@adacore.com>
485 * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
486 generic routine with a context parameter.
488 2012-02-08 Robert Dewar <dewar@adacore.com>
490 * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
491 a-convec.adb: Minor reformatting and code reorganization.
493 2012-02-08 Steve Baird <baird@adacore.com>
495 * sem_cat.adb (In_Preelaborated_Unit): A child
496 unit instantiation does not inherit preelaboration requirements
499 2012-02-08 Gary Dismukes <dismukes@adacore.com>
501 * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
502 (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
503 (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
504 (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
505 * aspects.adb (Canonical_Aspect): Add entry for
506 Aspect_Simple_Storage_Pool.
507 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
508 Attribute_Simple_Storage_Pool in the same way as Storage_Pool
509 (add conversion, analyze/resolve). For the Storage_Size attribute,
510 for the simple pool case, locate and use the simple pool type's
511 Storage_Size function (if any), otherwise evaluate to zero.
512 * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
513 for an access type with an associated simple storage pool,
514 locate and use the pool type's Allocate.
515 * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
516 access type has a simple storage pool, locate the pool type's
517 Deallocate procedure (if present) and use it as the procedure
518 to call on the Free operation.
519 * freeze.adb (Freeze_Entity): In the case of a full type for
520 a private type defined with pragma Simple_Storage_Pool, check
521 that the full type is also appropriate for the pragma. For
522 a simple storage pool type, validate that the operations
523 Allocate, Deallocate (if present), and Storage_Size
524 (if present) are defined with appropriate expected profiles.
525 (Validate_Simple_Pool_Op_Formal): New procedure
526 (Validate_Simple_Pool_Operation): New procedure Add with and
528 * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
529 (no action required).
530 * sem_attr.adb (Analyze_Attribute): For the case of the
531 Storage_Pool attribute, give a warning if the prefix type has an
532 associated simple storage pool, and rewrite the attribute as a
533 raise of Program_Error. In the case of the Simple_Storage_Pool
534 attribute, check that the prefix type has an associated simple
535 storage pool, and set the attribute type to the pool's type.
536 * sem_ch13.adb (Analyze_Aspect_Specifications): Add
537 Aspect_Simple_Storage_Pool case choice.
538 (Analyze_Attribute_Definition_Clause): Add
539 Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
540 (no action). Add handling for Simple_Storage_Pool attribute
541 definition, requiring the name to denote a simple storage pool
543 (Check_Aspect_At_Freeze_Point): For a simple storage pool
544 aspect, set the type to that of the name specified for the aspect.
545 * sem_prag.adb (Analyze_Pragma): Add handling for pragma
546 Simple_Storage_Pool, requiring that it applies to a library-level
547 type declared in a package declaration that is a limited private
548 or limited record type.
549 * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
550 build-in-place function in an allocator for an access type with
551 a simple storage pool as unsupported.
552 * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
553 (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
554 (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
555 * snames.adb-tmpl (Get_Pragma_Id): Handle case of
556 Name_Simple_Storage_Pool.
557 (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
559 2012-02-08 Cyrille Comar <comar@adacore.com>
561 * projects.texi: Clarify doc for interfaces.
563 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
565 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
568 2012-02-01 Tristan Gingold <gingold@adacore.com>
570 * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
571 instead of size_type_node.
573 2012-01-30 Nicolas Roche <roche@adacore.com>
575 * gcc-interface/Make-lang.in: Update dependencies.
576 * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
578 Remove Linker_Options -crtbe when building sjlj run-time.
580 2012-01-30 Robert Dewar <dewar@adacore.com>
582 * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
583 * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
584 form 2 * small-literal.
585 * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
587 * sem_ch4.ads (Analyze_Mod): New procedure.
589 2012-01-30 Ed Schonberg <schonberg@adacore.com>
591 * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
592 types and return expression when building spec for implicit
593 body, to preserve global references that may be present in an
596 2012-01-30 Matthew Heaney <heaney@adacore.com>
598 * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
599 Reverse_Elements): Check for cursor tampering.
601 2012-01-30 Ed Schonberg <schonberg@adacore.com>
603 * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
604 type with aspect Default_Value or Default_Component_Value is
605 fully initialized, and use of variables of such types do not
608 2012-01-30 Javier Miranda <miranda@adacore.com>
611 * sem_ch8.adb (Analyze_Subprogram_Renaming):
612 Handle self-renaming when the renamed entity is referenced using
615 2012-01-30 Vincent Celier <celier@adacore.com>
617 * projects.texi: Add documentation for attribute Interfaces.
619 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
621 * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
622 * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
623 location for the wrapped call to the original AT_END routine
624 and the subsequent return statement.
626 2012-01-30 Pascal Obry <obry@adacore.com>
628 * s-rannum.adb: Minor reformatting.
630 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
632 * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
633 to 25 and add the hard time value for 2012-06-30.
635 2012-01-30 Robert Dewar <dewar@adacore.com>
637 * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
638 freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
639 s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
640 Minor reformatting/code reorganization.
642 2012-01-30 Thomas Quinot <quinot@adacore.com>
644 * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
645 Unsigned_64 rather than Duration.
646 (System.Random_Numbers.Reset): Use full value of seed
647 (do not truncate sub-second bits).
649 2012-01-30 Thomas Quinot <quinot@adacore.com>
651 * sem_cat.adb, sem_ch12.adb: Minor reformatting.
653 2012-01-30 Yannick Moy <moy@adacore.com>
655 * gnat_ugn.texi: Minor correction of GNAT UG, to take into
656 account changes to -gnatwa and more recent warnings.
658 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
660 * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
661 location when creating a call to a finalizer.
662 * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
663 a source location for the first actual of Save_Occurrence for
666 2012-01-30 Ed Schonberg <schonberg@adacore.com>
668 * einfo.ads, einfo,adb: New attribute on scalar types:
669 Default_Aspect_Value New attribute on array types:
670 Default_Aspect_Component_Value Move attribute Related_Array_Object
671 to a different position to accomodate new aspect attributes.
672 * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
673 of defaults set with an aspect specification, rather than using
674 the list of aspects attached to the type, to prevent issues with
676 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
677 Default_Value and Default_Component _Value, store corresponding
678 expression in type entity.
679 (Check_Aspect_At_End_Of_Declaration): If the default aspects
680 are declared on the full view, use the full view to resolve the
681 correseponding expression.
682 * exp_ch3.adb (Init_Component): Use attribute
683 Default_Aspect_Component_Value to perform default initialization,
684 rather than relying on the rep item list for the type.
685 (Get_Simple_Init_Val): Ditto.
687 2012-01-30 Thomas Quinot <quinot@adacore.com>
689 * a-strhas.ads: Document risk of collision attack.
691 2012-01-30 Yannick Moy <moy@adacore.com>
693 * gnat_ugn.texi: Minor update wrt warning switches.
695 2012-01-30 Vincent Celier <celier@adacore.com>
697 * prj-nmsc.adb (Check_Interfaces): Report an error when a
698 unit from Library_Interface is not a unit of the project.
700 2012-01-30 Vincent Pucci <pucci@adacore.com>
702 * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
703 links fixed inside PPC pragmas.
704 * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
706 2012-01-30 Thomas Quinot <quinot@adacore.com>
708 * s-ransee.ads: Minor reformatting.
710 2012-01-30 Pascal Obry <obry@adacore.com>
712 * prj.ads, prj.adb (For_Each_Source): Add support for skipping
713 sources coming from an encapsulated library.
715 2012-01-30 Ed Schonberg <schonberg@adacore.com>
717 * sem_ch3.adb (Process-Full_View): fix typo.
718 * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
719 appear on a private type and the full view is available, ensure
720 existence of freeze node for full view.
721 (Build_Predicate_Function): Attach predicate function to both
722 views of a private type.
724 2012-01-30 Vincent Celier <celier@adacore.com>
726 * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
727 for the project if either attribute Library_Interface or
728 Interfaces is declared.
729 (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
732 2012-01-30 Pascal Obry <obry@adacore.com>
734 * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
735 boolean value to true in the process list created by this routine.
736 * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
737 Continued work for KA06-021.
738 * prj.adb (Compute_All_Imported_Projects): Set
739 From_Encapsulated_Lib boolean flag.
741 2012-01-30 Vincent Pucci <pucci@adacore.com>
743 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
745 * s-diflio.ads: Minor change.
747 2012-01-30 Javier Miranda <miranda@adacore.com>
749 * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
750 to Get_Entry_Index. Required to generate code which provides
751 the correct value of Entry_Index in the target entry.
753 2012-01-30 Nicolas Roche <roche@adacore.com>
755 * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
756 fix issue with zcx on VxWorks5.
758 2012-01-30 Pascal Obry <obry@adacore.com>
760 * prj.ads, prj.adb (For_Every_Project_Imported): Remove
762 (For_Every_Project_Imported_Context): New generic routine with
764 * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
765 distributed complexity.
766 * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
768 2012-01-30 Thomas Quinot <quinot@adacore.com>
770 * exp_aggr.adb (Expand_Record_Aggregate): After creating the
771 _parent aggregate for an extension aggregate, check whether it
772 requires delayed (top-down) expansion.
774 2012-01-30 Vincent Pucci <pucci@adacore.com>
776 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
777 * snames.ads-tmpl: Name_Item and Name_Symbols added.
778 * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
779 and change the position of parameter Symbols in every Put routine.
780 * s-dimmks.ads: Convert long float type Mks_Type into long
782 * s-llflex.ads: Modifications in comments.
784 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
786 * sem_ch12.adb (Earlier): Do not use the
787 top level source locations of the two input nodes.
789 2012-01-30 Robert Dewar <dewar@adacore.com>
791 * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
792 sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
794 2012-01-30 Robert Dewar <dewar@adacore.com>
796 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
798 2012-01-30 Olivier Hainque <hainque@adacore.com>
800 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
803 2012-01-30 Thomas Quinot <quinot@adacore.com>
805 * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
806 sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
807 sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
808 New subprogram (extracted from
809 Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
810 (Einfo.Is_Remote_Types): Now applies to generic types. Update
811 documentation accordingly.
812 (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
813 actual for a formal type to which a pragma Remote_Access_Type
815 (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
817 (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
818 be applied to a generic type if pragma Remote_Access_Type
819 applies, in which case the type of the attribute is
820 System.Partition_Interface.RACW_Stub_Type.
822 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
824 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
825 an alignment on fields of the RETURN type built for the CICO mechanism.
827 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
829 * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
830 a call to a function that returns an unconstrained type with default
831 discriminant. Similarly, avoid doing the conversion to the nominal
832 result type in this case.
834 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
836 * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
837 * gcc-interface/decl.c (is_variable_size): Rename to...
838 (type_has_variable_size): ...this.
839 (adjust_packed): Adjust to above renaming.
840 (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
841 (field_is_artificial): New predicate.
842 (field_is_aliased): Likewise.
843 (field_has_self_size): Likewise.
844 (field_has_variable_size): Likewise.
845 (components_to_record): Record information for the final layout during
846 the first pass on fields.
847 If there is an aliased field placed after a field whose length depends
848 on discriminants, put all the fields of the latter sort, last.
850 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
852 * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
853 * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
854 * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
855 Access-like attribute in a dispatch table if the subprogram is public.
857 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
859 * gcc-interface/gigi.h (create_label_decl): Adjust.
860 * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
861 and invoke gnat_pushdecl on it. Remove obsolete settings.
862 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
864 * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise. Ignore the
865 label for debugging purposes.
867 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
869 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
870 object with an unconstrained nominal subtype and if optimization isn't
871 enabled, create a special VAR_DECL for debugging purposes.
873 2012-01-23 Robert Dewar <dewar@adacore.com>
875 * sem_prag.ads, sem_prag.adb: Minor reformatting.
877 2012-01-23 Robert Dewar <dewar@adacore.com>
879 * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
880 language defined aspect applied to renaming or formal type
881 declaration (not permitted)
883 2012-01-23 Matthew Heaney <heaney@adacore.com>
885 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
886 comment with pragma Assert.
888 2012-01-23 Vincent Pucci <pucci@adacore.com>
890 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
891 to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
892 * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
893 routine. In ASIS mode, convert any PPC pragmas into aspects in generic
894 subprogram declaration in order to enable the analysis of PPC boolean
897 2012-01-23 Robert Dewar <dewar@adacore.com>
899 * sem_ch3.adb (Analyze_Object_Declaration): Properly
900 handle Current_Value for volatile variables (also propagate
901 Treat_As_Volatile from type to object).
903 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
905 * sem_ch12.adb (Install_Body): Detect the case
906 where the enclosing context is a package with a stub body that
907 has already been replaced by the actual body. In such cases,
908 the freeze node for the enclosing context must be inserted after
911 2012-01-23 Ed Schonberg <schonberg@adacore.com>
913 * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
914 subprogram before expanding the pragma into an if-statement with
915 a block, to ensure that when the subprogram is null its body is
916 properly generated before expansion.
918 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
920 * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
921 constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
923 Freeze all eligible subprograms which appear as actuals in
925 (Has_Fully_Defined_Profile): New routine.
926 (Renames_Standard_Subprogram): New routine.
927 (Earlier): Add local variable N. Comment update. Do not use source
928 locations when trying to determine whether one node precedes another.
930 2012-01-23 Gary Dismukes <dismukes@adacore.com>
932 * exp_ch4.adb (Expand_Concatenate): In the case
933 where the result of a concatentation can be null, set the to
934 result have both the low and high bounds of the right operand (not
935 just the high bound, as was the case prior to this fix). Also,
936 fix the saved high bound setting (Last_Opnd_High_Bound) in the
937 empty string literal case (should have been low bound minus one,
938 rather than plus one).
940 2012-01-23 Thomas Quinot <quinot@adacore.com>
942 * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
943 omit statement SCOs for disabled pragmas.
945 2012-01-23 Matthew Heaney <heaney@adacore.com>
947 * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
948 a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
949 a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
950 a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
951 Cursor'Write): Declare in private part.
952 (Reference_Type'Read, Reference_Type'Write): Ditto.
953 (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
955 2012-01-23 Robert Dewar <dewar@adacore.com>
957 * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
960 2012-01-23 Ed Schonberg <schonberg@adacore.com>
962 * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
963 Corresponding_Body on a defaulted null formal subprogram.
964 * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
965 on a defaulted formal subprogram that is a null procedure.
967 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
969 * exp_ch9.adb: Update the comments involving pragma Implemented.
970 * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
971 constant Subp_Alias and local variable Impl_Subp. Properly
972 handle aliases of synchronized wrappers. Code cleanup.
973 (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
974 Name_Optional as part of the condition.
975 * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
976 valid choices of implementation kind.
977 (Check_Arg_Is_One_Of): New routine.
978 * snames.ads-tmlp: Add Name_Optional.
980 2012-01-23 Ed Schonberg <schonberg@adacore.com>
982 * par-ch13.adb: Better error recovery in illegal aspect
985 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
987 * a-calend.adb: Add with clause for Interfaces.C. Add constant
989 (Day_Of_Week): Call the internal UTC_Time_Offset.
990 (Split): Call the internal UTC_Time_Offset.
991 (Time_Of): Call the internal UTC_Time_Offset.
992 (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
993 (UTC_Time_Offset): New library-level routine.
994 * a-calend.ads (UTC_Time_Offset): Remove parameter
995 Is_Historic. Update related comment on usage.
996 * a-catizo.adb (UTC_Time_Offset): Removed.
997 (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
998 * a-caltizo.ads (UTC_Time_Offset): Removed.
999 (UTC_Time_Offset (Time)): Add back the default expression of parameter
1002 2012-01-23 Robert Dewar <dewar@adacore.com>
1004 * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1005 (pg,po,ps): Make sure each entry starts on new line.
1007 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1009 * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1010 the parameter profile of procedure localtime_tzoff and its associated
1012 (Day_Of_Week): Do not treat the input date as historical
1013 with respect to time zones.
1014 (Split): Do not treat the input
1015 date as historical with respect to time zones. (Time_Of): Do
1016 not treat the input constituents as forming a historical date
1017 with respect to time zones.
1018 (UTC_Time_Offset): Add new formal
1019 parameter Is_Historic. Add local variable Flag. Update the call
1021 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1022 (UTC_Time_Offset (Time)): Update the call to
1023 Time_Zone_Operations.UTC_Time_Offset.
1024 * sysdep.c (__gnat_localtime_tzoff): Update parameter
1025 profile. Split the processing of offsets on Windows into two - one
1026 part of historic time stamps and the other for the current time.
1028 2012-01-23 Robert Dewar <dewar@adacore.com>
1030 * a-calend.adb: Minor reformatting.
1032 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1034 * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1035 interface in requeue statement.
1037 2012-01-23 Cyrille Comar <comar@adacore.com>
1039 * projects.texi: Remove references to main units and replace
1040 with references to main programs to be coherent with the
1043 2012-01-23 Robert Dewar <dewar@adacore.com>
1045 * s-utf_32.adb: Minor reformatting.
1047 2012-01-23 Vincent Celier <celier@adacore.com>
1049 * snames.ads-tmpl: Minor comment addition Indicate that
1050 Name_Library_Encapsulated_Options is only used in gprbuild.
1052 2012-01-23 Robert Dewar <dewar@adacore.com>
1054 * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1057 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1059 * snames.ads-tmpl: Add Name_Synchronization.
1060 * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1061 enumeration type and related maps.
1062 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1063 Synchronization, build corresponding pragma Implemented.
1064 * sem_util.adb (Implementation_Kind): Handle both explicit and
1065 implicit pragma_argument association to retrieve the given
1066 synchronization mode.
1068 2012-01-23 Robert Dewar <dewar@adacore.com>
1070 * sem_ch10.adb, errout.adb: Minor reformatting.
1072 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1074 * sem_res.adb (Resolve_Actuals): An actual in a call to an
1075 Ada 2012 Reference function does not lead to a dangerous order
1078 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1080 * exp_util.adb (Is_Iterated_Container): Test
1081 Is_Entity_Name when searching for calls to the default iterator,
1082 to avoid blowing up on indirect calls which have an explicit
1083 dereference as the call name.
1085 2012-01-23 Thomas Quinot <quinot@adacore.com>
1087 * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1088 the complete expanded name, rather than just its Selector_Name.
1090 2012-01-23 Thomas Quinot <quinot@adacore.com>
1092 * a-textio.adb (Put): Rewrite one-parameter Character version to
1093 just call the two-parameter one with Current_Out.
1095 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1097 * freeze.adb (Check_Current_Instance): Issue an
1098 error when the prefix of 'Unchecked_Access or 'Access does not
1099 denote a legal aliased view of a type.
1100 (Freeze_Record_Type): Do not halt the processing of record components
1101 once the Has_Controlled_Component is set as this bypasses the remaining
1103 (Is_Aliased_View_Of_Type): New routine.
1105 2012-01-23 Thomas Quinot <quinot@adacore.com>
1107 * errout.ads, freeze.adb: Minor reformatting.
1109 2012-01-23 Thomas Quinot <quinot@adacore.com>
1111 * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1114 2012-01-23 Olivier Hainque <hainque@adacore.com>
1116 * adadecode.c (__gnat_decode): Deal with empty input early,
1117 preventing potential erroneous memory access later on.
1119 2012-01-21 Eric Botcazou <ebotcazou@adacore.com>
1122 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1123 renaming, preserve the volatileness through the indirection, if any.
1125 2012-01-14 Andreas Schwab <schwab@linux-m68k.org>
1127 * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1130 2012-01-10 Pascal Obry <obry@adacore.com>
1132 * prj-nmsc.adb (Check_Library_Attributes):
1133 Kill check for object/source directories for aggregate libraries.
1135 2012-01-10 Matthew Heaney <heaney@adacore.com>
1137 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1138 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1139 a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1140 a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1141 a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1142 a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1143 a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1144 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1145 a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1146 container parameter as aliased in/in out.
1149 2012-01-10 Bob Duff <duff@adacore.com>
1151 * s-os_lib.ads: Improve comment.
1153 2012-01-10 Geert Bosch <bosch@adacore.com>
1155 * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1158 2012-01-10 Bob Duff <duff@adacore.com>
1160 * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1161 checking that the 'Size is correct. If the type is "mod 2**12",
1162 for example, it's illegal, but Esize is the 'Object_Size, which
1163 will be something like 16 or 32, so the error ('Size = 12) was
1165 * gnat_rm.texi: Improve documentation of shift
1166 and rotate intrinsics.
1168 2012-01-10 Pascal Obry <obry@adacore.com>
1170 * prj.adb (For_Every_Project_Imported): Fix
1171 implementation to make sure we return each project only once
1172 for aggragte libraries. It is fine to return a project twice for
1173 aggregate projects, this was the case as a Project_Id is different
1174 in each project tree. The new implementation use a table based on
1175 the project name to ensure proper detection of duplicate project
1176 in aggregate library. A new context is then created to continue
1177 retrurning duplicate project for aggregate libraries.
1179 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1181 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1182 return value in the variable-sized return type case if the target is
1183 an array with fixed size. However, do not create it if this is the
1184 expression of an object declaration.
1186 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1188 * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1190 2012-01-06 Robert Dewar <dewar@adacore.com>
1192 * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1193 s-utf_32.ads: Add pragma Pure
1194 * s-utf_32.adb: Suppress warnings on non-static constants (now
1197 2012-01-06 Bob Duff <duff@adacore.com>
1199 * s-rpc.ads (Read, Write): Add overriding indicators.
1201 2012-01-06 Robert Dewar <dewar@adacore.com>
1203 * gnat_rm.texi: Add documentation for conventions
1204 Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1206 2012-01-06 Gary Dismukes <dismukes@adacore.com>
1208 * a-tienio.adb (Put): Add exception message on
1209 raise statements. Remove unneeded blocks and object declarations.
1211 2012-01-06 Robert Dewar <dewar@adacore.com>
1213 * sem_prag.adb: Minor reformatting.
1215 2012-01-06 Ed Schonberg <schonberg@adacore.com>
1217 * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1218 that a selected component within a generic unit has been resolved
1219 as a prefixed call with local references.
1220 * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1221 component is always visible.
1222 * sem_ch4.adb (Analyze_Selected_Component): If the node is a
1223 prefixed call in an instance, do not look for visible components
1225 * sem_ch12.adb (Reset_Entity): If a selected component has resolved
1226 to a prefixed call, mark the node accordingly when prefix and
1227 selector are local references.
1229 2012-01-02 Eric Botcazou <ebotcazou@adacore.com>
1231 * gnatvsn.ads (Current_Year): Bump to 2012.
1233 Copyright (C) 2012 Free Software Foundation, Inc.
1235 Copying and distribution of this file, with or without modification,
1236 are permitted in any medium without royalty provided the copyright
1237 notice and this notice are preserved.