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