OSDN Git Service

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