OSDN Git Service

* gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
4         dummy global built for global types is preserved.
5
6 2012-02-27  Tristan Gingold  <gingold@adacore.com>
7
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
10         gnu_template_type.
11
12 2012-02-27  Eric Botcazou  <ebotcazou@adacore.com>
13
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
36         types explicitly.
37
38 2012-02-27  Eric Botcazou  <ebotcazou@adacore.com>
39
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.
46
47 2012-02-24  Dave Korn  <dave.korn.cygwin@gmail.com>
48
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.
56
57 2012-02-22  Robert Dewar  <dewar@adacore.com>
58
59         * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
60         reformatting.
61
62 2012-02-22  Geert Bosch  <bosch@adacore.com>
63
64         * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
65         x86-specific version of byteswap and use GCC builtins instead.
66
67 2012-02-22  Tristan Gingold  <gingold@adacore.com>
68
69         * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
70         E_Array_Type]: Translate component ealier.
71
72 2012-02-22  Robert Dewar  <dewar@adacore.com>
73
74         * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
75         error message for 'Range.
76
77 2012-02-22  Pascal Obry  <obry@adacore.com>
78
79         * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
80         this is our own thread.
81
82 2012-02-22  Sergey Rybin  <rybin@adacore.com frybin>
83
84         * tree_io.ads: Update ASIS_Version_Number because of the changes
85         in Snames.
86
87 2012-02-22  Hristian Kirtchev  <kirtchev@adacore.com>
88
89         * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on 
90         stack-related finalizers.
91
92 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
93
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.
101
102 2012-02-22  Vincent Celier  <celier@adacore.com>
103
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
110         of Boolean
111
112 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
113
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.
118
119 2012-02-22  Tristan Gingold  <gingold@adacore.com>
120
121         * init.c: Minor code clean up.
122         * gcc-interface/Make-lang.in: Update dependencies.
123
124 2012-02-22  Arnaud Charlet  <charlet@adacore.com>
125
126         * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
127         otherwise GCC will generate an object file.
128
129 2012-02-22  Vincent Celier  <celier@adacore.com>
130
131         * projects.texi: Correct typo related to "**" in Source_Dirs.
132
133 2012-02-22  Steve Baird  <baird@adacore.com>
134
135         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
136         error message text.
137
138 2012-02-22  Vincent Pucci  <pucci@adacore.com>
139
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
146         new RTU_Id subtypes.
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
155         removed.
156
157 2012-02-22  Vincent Pucci  <pucci@adacore.com>
158
159         * sem_prag.adb: Minor reformatting.
160
161 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
162
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).
172
173 2012-02-22  Robert Dewar  <dewar@adacore.com>
174
175         * exp_ch5.adb: Add comment.
176         * sem_ch12.adb, exp_ch6.adb: minor reformatting
177
178 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
179
180         * freeze.adb (Freeze_Entity): Do not perform type layout within
181         a generic unit.
182
183 2012-02-22  Eric Botcazou  <ebotcazou@adacore.com>
184
185         * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
186         Storage_Error.
187
188 2012-02-22  Ed Schonberg  <schonberg@adacore.com>
189
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
193         AI05-0087.
194
195
196 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
197
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.
204
205 2012-02-17  Nicolas Roche  <roche@adacore.com>
206
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.
210
211 2012-02-17  Thomas Quinot  <quinot@adacore.com>
212
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)).
218
219 2012-02-17  Steve Baird  <baird@adacore.com>
220
221         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
222         Post'Class aspects can only be specified for a primitive operation
223         of a tagged type.
224
225 2012-02-17  Yannick Moy  <moy@adacore.com>
226
227         * gnat_rm.texi: Minor shuffling.
228
229 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
230
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
235         functions.
236
237 2012-02-17  Vincent Pucci  <pucci@adacore.com>
238
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
247         and Lock counters.
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
253         reference types.
254
255 2012-02-17  Robert Dewar  <dewar@adacore.com>
256
257         * restrict.adb (Check_Restriction): Add special handling for
258         No_Obsolescent_Features.
259
260 2012-02-17  Hristian Kirtchev  <kirtchev@adacore.com>
261
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.
265
266 2012-02-17  Robert Dewar  <dewar@adacore.com>
267
268         * sem_dim.adb: Minor reformatting.
269
270 2012-02-17  Yannick Moy  <moy@adacore.com>
271
272         * gnat_rm.texi: Minor rewording.
273
274 2012-02-17  Thomas Quinot  <quinot@adacore.com>
275
276         * sem_aggr.adb: Minor reformatting.
277
278 2012-02-17  Robert Dewar  <dewar@adacore.com>
279
280         * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
281
282 2012-02-17  Vincent Pucci  <pucci@adacore.com>
283
284         * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
285         (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
286         call added.
287         (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
288         call added.
289         * s-dim.ads: Make package Pure.
290
291 2012-02-17  Gary Dismukes  <dismukes@adacore.com>
292
293         * prj-nmsc.adb: Minor reformatting.
294
295 2012-02-17  Yannick Moy  <moy@adacore.com>
296
297         * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
298
299 2012-02-17  Yannick Moy  <moy@adacore.com>
300
301         * gnat_ugn.texi: Fix typos.
302
303 2012-02-17  Pascal Obry  <obry@adacore.com>
304
305         * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
306         aggregate is not Externally_Built.
307
308 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
309
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.
314
315 2012-02-17  Robert Dewar  <dewar@adacore.com>
316
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.
320
321 2012-02-17  Ed Schonberg  <schonberg@adacore.com>
322
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.
326
327 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
328
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.
332
333 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
334
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.
338
339 2012-02-15  Eric Botcazou  <ebotcazou@adacore.com>
340
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.
344
345 2012-02-09  Tristan Gingold  <gingold@adacore.com>
346
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.
365
366 2012-02-08  Vincent Celier  <celier@adacore.com>
367
368         * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
369         (g-buorma is now imported by sinput).
370         Update dependencies.
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
375
376 2012-02-08  Vincent Pucci  <pucci@adacore.com>
377
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
389         names updated.
390
391 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
392
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.
397
398 2012-02-08  Yannick Moy  <moy@adacore.com>
399
400         * gnat_rm.texi: Minor reshuffling to place restriction at
401         appropriate place.
402
403 2012-02-08  Bob Duff  <duff@adacore.com>
404
405         * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
406         False for '-gnatwA', to suppress these warnings.
407
408 2012-02-08  Vincent Celier  <celier@adacore.com>
409
410         * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
411         starting to scan, so that UTF8 encoding is taken into account.
412
413 2012-02-08  Arnaud Charlet  <charlet@adacore.com>
414
415         * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
416         function.
417         (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
418         (Exceptional_Complete_Rendezvous): Mark No_Return.
419
420 2012-02-08  Eric Botcazou  <ebotcazou@adacore.com>
421
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
430         built statically.
431
432 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
433
434         * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
435         (Impl_Defined_Aspects): Add association for
436         Aspect_Simple_Storage_Pool_Type.
437         (Aspect_Names): Add
438         association for Aspect_Simple_Storage_Pool_Type.
439         * aspects.adb:
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.
452         * sem_prag.adb:
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
460         attribute name.
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.
464
465 2012-02-08  Robert Dewar  <dewar@adacore.com>
466
467         * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
468
469 2012-02-08  Pascal Obry  <obry@adacore.com>
470
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.
477
478 2012-02-08  Pascal Obry  <obry@adacore.com>
479
480         * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
481         terminated string.
482
483 2012-02-08  Pascal Obry  <obry@adacore.com>
484
485         * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
486         generic routine with a context parameter.
487
488 2012-02-08  Robert Dewar  <dewar@adacore.com>
489
490         * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
491         a-convec.adb: Minor reformatting and code reorganization.
492
493 2012-02-08  Steve Baird  <baird@adacore.com>
494
495         * sem_cat.adb (In_Preelaborated_Unit): A child
496         unit instantiation does not inherit preelaboration requirements
497         from its parent.
498
499 2012-02-08  Gary Dismukes  <dismukes@adacore.com>
500
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
527         use of Rtsfind.
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
542         object.
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.
558
559 2012-02-08  Cyrille Comar  <comar@adacore.com>
560
561         * projects.texi: Clarify doc for interfaces.
562
563 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
564
565         * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
566         (GCC_LINK): Use it.
567
568 2012-02-01  Tristan Gingold  <gingold@adacore.com>
569
570         * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
571         instead of size_type_node.
572
573 2012-01-30  Nicolas Roche  <roche@adacore.com>
574
575         * gcc-interface/Make-lang.in: Update dependencies.
576         * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
577         when needed.
578         Remove Linker_Options -crtbe when building sjlj run-time.
579
580 2012-01-30  Robert Dewar  <dewar@adacore.com>
581
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
586         mod value).
587         * sem_ch4.ads (Analyze_Mod): New procedure.
588
589 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
590
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
594         instantiation.
595
596 2012-01-30  Matthew Heaney  <heaney@adacore.com>
597
598         * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
599         Reverse_Elements): Check for cursor tampering.
600
601 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
602
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
606         generate warnings.
607
608 2012-01-30  Javier Miranda  <miranda@adacore.com>
609
610 PR ada/15846
611         * sem_ch8.adb (Analyze_Subprogram_Renaming):
612         Handle self-renaming when the renamed entity is referenced using
613         its expanded name.
614
615 2012-01-30  Vincent Celier  <celier@adacore.com>
616
617         * projects.texi: Add documentation for attribute Interfaces.
618
619 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
620
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.
625
626 2012-01-30  Pascal Obry  <obry@adacore.com>
627
628         * s-rannum.adb: Minor reformatting.
629
630 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
631
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.
634
635 2012-01-30  Robert Dewar  <dewar@adacore.com>
636
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.
641
642 2012-01-30  Thomas Quinot  <quinot@adacore.com>
643
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).
648
649 2012-01-30  Thomas Quinot  <quinot@adacore.com>
650
651         * sem_cat.adb, sem_ch12.adb: Minor reformatting.
652
653 2012-01-30  Yannick Moy  <moy@adacore.com>
654
655         * gnat_ugn.texi: Minor correction of GNAT UG, to take into
656         account changes to -gnatwa and more recent warnings.
657
658 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
659
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
664         consistency sake.
665
666 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
667
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
675         partial views.
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.
686
687 2012-01-30  Thomas Quinot  <quinot@adacore.com>
688
689         * a-strhas.ads: Document risk of collision attack.
690
691 2012-01-30  Yannick Moy  <moy@adacore.com>
692
693         * gnat_ugn.texi: Minor update wrt warning switches.
694
695 2012-01-30  Vincent Celier  <celier@adacore.com>
696
697         * prj-nmsc.adb (Check_Interfaces): Report an error when a
698         unit from Library_Interface is not a unit of the project.
699
700 2012-01-30  Vincent Pucci  <pucci@adacore.com>
701
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.
705
706 2012-01-30  Thomas Quinot  <quinot@adacore.com>
707
708         * s-ransee.ads: Minor reformatting.
709
710 2012-01-30  Pascal Obry  <obry@adacore.com>
711
712         * prj.ads, prj.adb (For_Each_Source): Add support for skipping
713         sources coming from an encapsulated library.
714
715 2012-01-30  Ed Schonberg  <schonberg@adacore.com>
716
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.
723
724 2012-01-30  Vincent Celier  <celier@adacore.com>
725
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
730         Check_Interfaces.
731
732 2012-01-30  Pascal Obry  <obry@adacore.com>
733
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.
740
741 2012-01-30  Vincent Pucci  <pucci@adacore.com>
742
743         * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
744         code clean up.
745         * s-diflio.ads: Minor change.
746
747 2012-01-30  Javier Miranda  <miranda@adacore.com>
748
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.
752
753 2012-01-30  Nicolas Roche  <roche@adacore.com>
754
755         * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
756         fix issue with zcx on VxWorks5.
757
758 2012-01-30  Pascal Obry  <obry@adacore.com>
759
760         * prj.ads, prj.adb (For_Every_Project_Imported): Remove
761         In_Aggregate_Lib.
762         (For_Every_Project_Imported_Context): New generic routine with
763         a context parameter.
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.
767
768 2012-01-30  Thomas Quinot  <quinot@adacore.com>
769
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.
773
774 2012-01-30  Vincent Pucci  <pucci@adacore.com>
775
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
781         long float.
782         * s-llflex.ads: Modifications in comments.
783
784 2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
785
786         * sem_ch12.adb (Earlier): Do not use the
787         top level source locations of the two input nodes.
788
789 2012-01-30  Robert Dewar  <dewar@adacore.com>
790
791         * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
792         sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
793
794 2012-01-30  Robert Dewar  <dewar@adacore.com>
795
796         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
797
798 2012-01-30  Olivier Hainque  <hainque@adacore.com>
799
800         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
801         comments.
802
803 2012-01-30  Thomas Quinot  <quinot@adacore.com>
804
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
814         applies.
815         (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
816         Remote_Access_Type.
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.
821
822 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
823
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.
826
827 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
828
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.
833
834 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
835
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.
849
850 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
851
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.
856
857 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
858
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
863         create_label_decl.
864         * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise.  Ignore the
865         label for debugging purposes.
866
867 2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>
868
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.
872
873 2012-01-23  Robert Dewar  <dewar@adacore.com>
874
875         * sem_prag.ads, sem_prag.adb: Minor reformatting.
876
877 2012-01-23  Robert Dewar  <dewar@adacore.com>
878
879         * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
880         language defined aspect applied to renaming or formal type
881         declaration (not permitted)
882
883 2012-01-23  Matthew Heaney  <heaney@adacore.com>
884
885         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
886         comment with pragma Assert.
887
888 2012-01-23  Vincent Pucci  <pucci@adacore.com>
889
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
895         expressions.
896
897 2012-01-23  Robert Dewar  <dewar@adacore.com>
898
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).
902
903 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
904
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
909         the real body.
910
911 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
912
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.
917
918 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
919
920         * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
921         constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
922         to Saved_Formal.
923         Freeze all eligible subprograms which appear as actuals in
924         the instantiation.
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.
929
930 2012-01-23  Gary Dismukes  <dismukes@adacore.com>
931
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).
939
940 2012-01-23  Thomas Quinot  <quinot@adacore.com>
941
942         * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
943         omit statement SCOs for disabled pragmas.
944
945 2012-01-23  Matthew Heaney  <heaney@adacore.com>
946
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.
954
955 2012-01-23  Robert Dewar  <dewar@adacore.com>
956
957         * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
958         reformatting.
959
960 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
961
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.
966
967 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
968
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.
979
980 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
981
982         * par-ch13.adb: Better error recovery in illegal aspect
983         specification.
984
985 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
986
987         * a-calend.adb: Add with clause for Interfaces.C. Add constant
988         Unix_Max.
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
1000         Date.
1001
1002 2012-01-23  Robert Dewar  <dewar@adacore.com>
1003
1004         * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1005         (pg,po,ps): Make sure each entry starts on new line.
1006
1007 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1008
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
1011         comment.
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
1020         to localtime_tzoff.
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.
1027
1028 2012-01-23  Robert Dewar  <dewar@adacore.com>
1029
1030         * a-calend.adb: Minor reformatting.
1031
1032 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1033
1034         * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1035         interface in requeue statement.
1036
1037 2012-01-23  Cyrille Comar  <comar@adacore.com>
1038
1039         * projects.texi: Remove references to main units and replace
1040         with references to main programs to be coherent with the
1041         documentation.
1042
1043 2012-01-23  Robert Dewar  <dewar@adacore.com>
1044
1045         * s-utf_32.adb: Minor reformatting.
1046
1047 2012-01-23  Vincent Celier  <celier@adacore.com>
1048
1049         * snames.ads-tmpl: Minor comment addition Indicate that
1050         Name_Library_Encapsulated_Options is only used in gprbuild.
1051
1052 2012-01-23  Robert Dewar  <dewar@adacore.com>
1053
1054         * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1055         restrictions.
1056
1057 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1058
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.
1067
1068 2012-01-23  Robert Dewar  <dewar@adacore.com>
1069
1070         * sem_ch10.adb, errout.adb: Minor reformatting.
1071
1072 2012-01-23  Ed Schonberg  <schonberg@adacore.com>
1073
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
1076         dependence.
1077
1078 2012-01-23  Gary Dismukes  <dismukes@adacore.com>
1079
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.
1084
1085 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1086
1087         * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1088         the complete expanded name, rather than just its Selector_Name.
1089
1090 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1091
1092         * a-textio.adb (Put): Rewrite one-parameter Character version to
1093         just call the two-parameter one with Current_Out.
1094
1095 2012-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
1096
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
1102         checks.
1103         (Is_Aliased_View_Of_Type): New routine.
1104
1105 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1106
1107         * errout.ads, freeze.adb: Minor reformatting.
1108
1109 2012-01-23  Thomas Quinot  <quinot@adacore.com>
1110
1111         * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1112         messages.
1113
1114 2012-01-23  Olivier Hainque  <hainque@adacore.com>
1115
1116         * adadecode.c (__gnat_decode): Deal with empty input early,
1117         preventing potential erroneous memory access later on.
1118
1119 2012-01-21  Eric Botcazou  <ebotcazou@adacore.com>
1120
1121         PR ada/46192
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.
1124
1125 2012-01-14  Andreas Schwab  <schwab@linux-m68k.org>
1126
1127         * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1128         $(GNATLIBCFLAGS).
1129
1130 2012-01-10  Pascal Obry  <obry@adacore.com>
1131
1132         * prj-nmsc.adb (Check_Library_Attributes):
1133         Kill check for object/source directories for aggregate libraries.
1134
1135 2012-01-10  Matthew Heaney  <heaney@adacore.com>
1136
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.
1147         Code clean ups.
1148
1149 2012-01-10  Bob Duff  <duff@adacore.com>
1150
1151         * s-os_lib.ads: Improve comment.
1152
1153 2012-01-10  Geert Bosch  <bosch@adacore.com>
1154
1155         * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1156         for complex Scalar.
1157
1158 2012-01-10  Bob Duff  <duff@adacore.com>
1159
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
1164         not detected.
1165         * gnat_rm.texi: Improve documentation of shift
1166         and rotate intrinsics.
1167
1168 2012-01-10  Pascal Obry  <obry@adacore.com>
1169
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.
1178
1179 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1180
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.
1185
1186 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1187
1188         * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1189
1190 2012-01-06  Robert Dewar  <dewar@adacore.com>
1191
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
1195         that this is Pure).
1196
1197 2012-01-06  Bob Duff  <duff@adacore.com>
1198
1199         * s-rpc.ads (Read, Write): Add overriding indicators.
1200
1201 2012-01-06  Robert Dewar  <dewar@adacore.com>
1202
1203         * gnat_rm.texi: Add documentation for conventions
1204         Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1205
1206 2012-01-06  Gary Dismukes  <dismukes@adacore.com>
1207
1208         * a-tienio.adb (Put): Add exception message on
1209         raise statements. Remove unneeded blocks and object declarations.
1210
1211 2012-01-06  Robert Dewar  <dewar@adacore.com>
1212
1213         * sem_prag.adb: Minor reformatting.
1214
1215 2012-01-06  Ed Schonberg  <schonberg@adacore.com>
1216
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
1224         of the type.
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.
1228
1229 2012-01-02  Eric Botcazou  <ebotcazou@adacore.com>
1230
1231         * gnatvsn.ads (Current_Year): Bump to 2012.
1232 \f
1233 Copyright (C) 2012 Free Software Foundation, Inc.
1234
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.