7281c08eac961d9e39e5de532a2565b8fa59058f
[gcc.git] / gcc / ada / ChangeLog
1 2012-03-20 Arnaud Charlet <charlet@adacore.com>
2
3 * hlo.ads, hlo.adb: Removed, no longer used.
4 * gcc-interface/Make-lang.in: Remove hlo.o. Update dependencies.
5 * gcc-interface/Makefile.in: Remove EXTRA_LIBGNAT_SRCS (temporarly)
6 and compute it from EXTRA_LIBGNAT_OBJS.
7 Clean up comments, reorder LIBGNAT_SRCS and LIBGNAT_OBJS.
8
9 2012-03-20 Yannick Moy <moy@adacore.com>
10
11 * gnat_rm.texi, sem_attr.ads: Update documentation.
12
13 2012-03-19 Yannick Moy <moy@adacore.com>
14
15 * sem_ch6.adb: Minor code clean up.
16
17 2012-03-19 Vincent Celier <celier@adacore.com>
18
19 * make.adb (Scan_Make_Arg): Make sure all significant -m switches
20 on the command line are counted.
21
22 2012-03-19 Robert Dewar <dewar@adacore.com>
23
24 * sem_elab.adb (Generate_Elab_Warnings): Fix spec, fix attribute
25 reference case
26
27 2012-03-19 Robert Dewar <dewar@adacore.com>
28
29 * par-ch4.adb (Check_Bad_Exp): New procedure
30
31 2012-03-19 Robert Dewar <dewar@adacore.com>
32
33 * exp_attr.adb, sem_attr.adb, sem_attr.ads, snames.ads-tmpl: Add
34 initial framework for Valid_Scalars attribute.
35
36 2012-03-19 Robert Dewar <dewar@adacore.com>
37
38 * scng.adb (Scan): Recognize incorrect preprocessor directive
39
40 2012-03-19 Robert Dewar <dewar@adacore.com>
41
42 * atree.adb (Allocate_Initialize_Node): Use Num_Extension_Nodes
43 * atree.ads (Num_Extension_Nodes): New variable
44 * debug.adb: New debug flag -gnatd.N
45 * gnat1drv.adb (Adjust_Global_Switches): Adjust
46 Num_Extension_Nodes if -gnatd.N set
47
48 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
49
50 * einfo.ads: Minor update to First_Rep_Item and Has_Gigi_Rep_Item
51 descriptions.
52
53 2012-03-19 Robert Dewar <dewar@adacore.com>
54
55 * opt.ads: Remove HLO_Active flag.
56 * sem.adb: Remove call of high level optimizer.
57 * sem.ads (New_Nodes_OK): Removed.
58 * sem_ch10.adb: Remove references to New_Nodes_OK.
59 * switch-c.adb: Remove handling of -gnatH switch.
60
61 2012-03-19 Yannick Moy <moy@adacore.com>
62
63 * sem_ch6.adb (Check_Subprogram_Contract): Do not emit warnings
64 on trivially True or False postconditions and Ensures components
65 of contract-cases.
66
67 2012-03-19 Robert Dewar <dewar@adacore.com>
68
69 * gnat_ugn.texi: Fix index entry for -gnatei (now we have
70 ug_words entry).
71
72 2012-03-19 Hristian Kirtchev <kirtchev@adacore.com>
73
74 * sem_ch3.adb (Get_Discriminant_Value): Instead of looking
75 at the immediate correcponsing discriminant, traverse a
76 potential chain of discriminants produced by type derivations.
77 (Root_Corresponding_Discriminant): Traverse a chain of inherited
78 discriminants and return the topmost discriminant.
79
80 2012-03-19 Bob Duff <duff@adacore.com>
81
82 * debug.adb: Minor comment change.
83 * gnat_ugn.texi: Update documentation for elaboration regarding
84 indirect calls.
85
86 2012-03-19 Gary Dismukes <dismukes@adacore.com>
87
88 * exp_ch3.adb (Expand_N_Object_Declaration): In
89 the case of an object of a class-wide interface type, where the
90 declaration is rewritten as a renaming, call Set_Debug_Info_Needed
91 on the renaming entity so that Materialize_Entity will be
92 set. Also, change existing call (for other than interface cases)
93 to call Set_Debug_Info_Needed rather than Set_Needs_Debug_Info
94 (as specified for that flag).
95
96 2012-03-19 Hristian Kirtchev <kirtchev@adacore.com>
97
98 * sem_ch4.adb (Analyze_Allocator): Detect an allocator generated
99 by the build-in-place machinery where the designated type is
100 indefinite, but the underlying type is not. Do not emit errors
101 related to missing initialization in this case.
102
103 2012-03-19 Robert Dewar <dewar@adacore.com>
104
105 * gnat_ugn.texi: Add documentation for -gnateinnn switch.
106 * sem_elab.adb, put_alfa.adb, lib-xref-alfa.adb: Minor reformatting.
107 * sem_prag.adb: Minor comment update.
108
109 2012-03-15 Robert Dewar <dewar@adacore.com>
110
111 * errout.ads: Add entry for translating -gnateinn to
112 /MAX_INSTANTIATIONS for VMS.
113 * hostparm.ads (Max_Instantiations): Moved to Opt.
114 * opt.ads (Maximum_Instantiations): Moved from Hostparm, and renamed.
115 * sem_ch12.adb (Maximum_Instantiations): New name of
116 Max_Instantiations (Analyze_Package_Instantiation): Change error
117 msg for too many instantiations (mention -gnateinn switch).
118 * switch-c.adb (Scan_Front_End_Switches): Implement -gnateinn switch.
119 * switch.ads: Minor comment update.
120 * usage.adb (Usage): Output line for -maxeinn switch.
121 * vms_data.ads: Add entry for MAX_INSTANTIATIONS (-gnateinn).
122
123 2012-03-15 Yannick Moy <moy@adacore.com>
124
125 * alfa.ads Update the decription of ALI sections.
126 (Alfa_File_Record): Add a component Unit_File_Name to store the
127 unit file name for subunits.
128 * get_alfa.adb, put_alfa.adb Adapt to the possible presence of
129 a unit file name.
130 * lib-xref-alfa.adb (Add_Alfa_File): For subunits, retrieve the
131 file name of the unit.
132
133 2012-03-15 Yannick Moy <moy@adacore.com>
134
135 * sem_ch6.adb (Check_Subprogram_Contract): Do
136 not issue warning on missing 'Result in postcondition if all
137 postconditions and contract-cases already get a warning for only
138 referring to pre-state.
139
140 2012-03-15 Bob Duff <duff@adacore.com>
141
142 * debug.adb: Add new debug switch -gnatd.U, which disables the
143 support added below, in case someone trips over a cycle, and needs
144 to disable this.
145 * sem_attr.adb (Analyze_Access_Attribute):
146 Treat Subp'Access as a call for elaboration purposes.
147 * sem_elab.ads, sem_elab.adb (Check_Elab_Call): Add support
148 for Subp'Access.
149
150 2012-03-15 Vincent Pucci <pucci@adacore.com>
151
152 * sem.ads, sem.adb (Preanalyze): New routine.
153 * sem_ch4.adb (Analyze_Quantified_Expression): Call to the
154 Preanalyze routine in Sem added. Renaming of Needs_Expansion
155 into Need_Preanalysis.
156 * sem_ch6.adb (Preanalyze): Removed.
157
158 2012-03-15 Robert Dewar <dewar@adacore.com>
159
160 * sem_ch4.adb (Analyze_Quantified_Expression): Add comment.
161 * sem_prag.adb: Minor comment additions.
162 * sem_attr.adb (Check_First_Last_Valid): Make sure prefix type
163 is frozen.
164
165 2012-03-15 Vincent Pucci <pucci@adacore.com>
166
167 * sem_ch4.adb (Analyze_Quantified_Expression):
168 Preanalyze the condition when the quantified expression will be
169 further expanded.
170
171 2012-03-15 Yannick Moy <moy@adacore.com>
172
173 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, sem_ch6.adb,
174 sem_warn.adb: Minor refactoring, renaming Case_Pragma in CTC_Pragma,
175 to refer to both Test_Case pragma and Contract_Case pragma (same
176 acronym as in Spec_CTC_List).
177
178 2012-03-15 Robert Dewar <dewar@adacore.com>
179
180 * sem_prag.adb, sem_prag.ads, sem_util.ads, sem_attr.adb, sem_ch6.adb,
181 sem_warn.adb: Minor reformatting.
182
183 2012-03-15 Hristian Kirtchev <kirtchev@adacore.com>
184
185 * exp_util.adb (Initialized_By_Ctrl_Function): Do not loop over
186 selector names as the function call always appears at the top selected
187 component.
188
189 2012-03-15 Ed Schonberg <schonberg@adacore.com>
190
191 * sem_ch12.adb (Validate_Access_Subprogram_Instance): keep
192 Mode_Conformance check for older versions of the language.
193
194 2012-03-15 Yannick Moy <moy@adacore.com>
195
196 * gnat_ugn.texi Document the extension of option -gnatw.t.
197 * sem_ch3.adb (Analyze_Declaration): Check for suspicious
198 contracts only after contract cases have been semantically
199 analyzed.
200 * sem_ch6.adb (Check_Subprogram_Contract): Consider also Ensures
201 components of contract cases for detecting suspicious contracts.
202
203 2012-03-15 Yannick Moy <moy@adacore.com>
204
205 * aspects.adb, aspects.ads (Aspect_Id): New GNAT aspect
206 Aspect_Contract_Case.
207 * gnat_rm.texi Document the new pragma/aspect
208 Contract_Case. Correct the documentation of the existing
209 pragma/aspect Test_Case with the new semantics.
210 * sem_attr.adb (Analyze_Attribute): Allow use of 'Result in the
211 Ensures component of a Contract_Case pragma.
212 * sem_ch13.adb (Analyze_Aspect_Specifications): Check new aspect
213 and translate it into a pragma.
214 (Check_Aspect_At_Freeze_Point): Take into account the new aspect.
215 * sem_ch3.adb, sinfo.adb, sinfo.ads Renaming of TC (for test case)
216 into CTC (for contract and test case).
217 * sem_ch6.adb (Process_PPCs): Generate Check pragmas from
218 Contract_Case pragmas, similarly to what is done already for
219 postconditions.
220 * sem_prag.adb, sem_prag.ads (Check_Contract_Or_Test_Case):
221 Renaming of Check_Test_Case.
222 (Analyze_Pragma, Sig_Flags): Take into account the new pragma.
223 * sem_util.adb, sem_util.ads Renaming to take into account the
224 new pragma, so that functions which applied only to Test_Case
225 now apply to both Test_Case and Contract_Case.
226 * par-prag.adb, sem_warn.adb, snames.ads-tmpl Take into account
227 the new pragma.
228
229 2012-03-15 Robert Dewar <dewar@adacore.com>
230
231 * sem_ch6.ads: Minor comment updates.
232 * sem_ch12.adb: Minor comment clarification.
233
234 2012-03-15 Robert Dewar <dewar@adacore.com>
235
236 * sem_ch5.adb: Minor reformatting.
237
238 2012-03-15 Ed Schonberg <schonberg@adacore.com>
239
240 * exp_ch3.adb (Expand_N_Object_Declaration): When rewriting the
241 declaration of a class-wide object, retain the Ekind to prevent
242 subsequent misuse of constants.
243
244 2012-03-15 Yannick Moy <moy@adacore.com>
245
246 * gnat_rm.texi, gnat_ugn.texi: Minor correction of invariant
247 terminology.
248
249 2012-03-15 Hristian Kirtchev <kirtchev@adacore.com>
250
251 * exp_util.adb (Initialized_By_Ctrl_Function): Add code to
252 process the case when a function call appears in object.operation
253 format.
254
255 2012-03-15 Ed Schonberg <schonberg@adacore.com>
256
257 * sem_ch6.ads, sem_ch6.adb (Check_Subtype_Conformant): add
258 Get_Inst formal, so that conformance within an instantiation
259 follows renamings of formals. This is similar to what is already
260 done in Check_Mode_conformant.
261 * sem_ch12.adb (Vailidate_Access_Subprogram_Instance): check that
262 formal and actual are subtype conformant. Previously only mode
263 conformance was required.
264
265 2012-03-15 Robert Dewar <dewar@adacore.com>
266
267 * par-ch6.adb, einfo.ads, sem_eval.adb, sem_eval.ads,
268 sem_case.adb: Minor reformatting.
269
270 2012-03-15 Robert Dewar <dewar@adacore.com>
271
272 * exp_attr.adb (Expand_N_Attribute_Reference): Add handling
273 of First_Valid/Last_Valid.
274 * sem_attr.adb (Check_First_Last_Valid): New procedure
275 (Analyze_Attribute): Add handling of First_Valid and Last_Valid
276 (Eval_Attribute): ditto.
277 * snames.ads-tmpl: Add entries for First_Valid and Last_Valid.
278
279 2012-03-15 Ed Schonberg <schonberg@adacore.com>
280
281 * exp_ch5.adb (Expand_Predicated_Loop): Suppress warnings on
282 loop variable, for the unusual case where the range has a single
283 element and the loop variable has no visible assignment to it.
284
285 2012-03-15 Vincent Pucci <pucci@adacore.com>
286
287 * exp_ch4.adb (Expand_N_Quantified_Expression): Expand the
288 original quantified expression node.
289 * sem_ch4.adb (Analyze_Quantified_Expression): Properly analyze
290 the quantified expression and preserve the original non-analyzed
291 quantified expression when an expansion is needed.
292 * sem_ch5.adb (Analyze_Iteration_Scheme): Special treatment
293 for quantified expressions.
294 (Analyze_Iterator_Specification): Special treatment for quantified
295 expressions.
296
297 2012-03-15 Ed Falis <falis@adacore.com>
298
299 * s-vxwork-ppc.ads: Update FP_CONTEXT so name of former pad
300 field matches VxWorks headers.
301
302 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
303
304 * gcc-interface/Makefile.in (mips-sgi-irix6*): Remove.
305
306 * a-intnam-irix.ads, mlib-tgt-specific-irix.adb,
307 s-intman-irix.adb, s-mastop-irix.adb, s-osinte-irix.adb,
308 s-osinte-irix.ads, s-proinf-irix-athread.adb,
309 s-proinf-irix-athread.ads, s-taprop-irix.adb, s-tasinf-irix.ads,
310 system-irix-n32.ads, system-irix-n64.ads, system-irix-o32.ads:
311 Remove.
312
313 * adaint.c [__mips && __sgi]: Remove.
314 (__gnat_number_of_cpus) [__mips && __sgi]: Remove.
315 [IS_CROSS && !(__mips && __sgi)]: Remove.
316 * adaint.h [sgi && _LFAPI]: Remove.
317 * cstreams.c (__gnat_full_name) [sgi]: Remove.
318 * env.c (__gnat_unsetenv) [__mips && __sgi]: Remove.
319 (__gnat_clearenv) [__mips && __sgi]: Remove.
320 * errno.c (_SGI_MP_SOURCE): Remove.
321 * gsocket.h [sgi]: Remove.
322 * init.c: Remove IRIX reference.
323 [sgi]: Remove.
324 * link.c [sgi]: Remove.
325 * s-oscons-tmplt.c [__mips && __sgi] (IOV_MAX): Don't define.
326 (main) [__mips && __sgi] (MAX_tv_sec): Don't define.
327 (CLOCK_SGI_FAST, CLOCK_SGI_CYCLE): Remove.
328 * sysdep.c [sgi]: Remove.
329 (getc_immediate_common) [sgi]: Remove.
330 (__gnat_localtime_tzoff) [sgi]: Remove.
331 * terminals.c [__mips && __sgi] (IRIX): Don't define.
332 [IRIX] (USE_GETPTY): Don't define.
333 (allocate_pty_desc) [USE_GETPTY]: Remove.
334
335 * g-traceb.ads: Remove IRIX reference.
336 * g-trasym.ads: Likewise.
337 * memtrack.adb: Likewise.
338 * s-interr-sigaction.adb: Likewise.
339
340 * gnat_rm.texi (Implementation Advice): Remove SGI info.
341 (Implementation Defined Characteristics): Likewise.
342 * gnat_ugn.texi (Summary of Run-Time Configurations, mips-irix):
343 Remove.
344 (Irix-Specific Considerations): Remove.
345
346 2012-03-13 Tristan Gingold <gingold@adacore.com>
347
348 * gcc-interface/gigi.h (flag_vms_malloc64): Refine condition.
349
350 2012-03-13 Tristan Gingold <gingold@adacore.com>
351
352 * sysdep.c: Adjust condition after removal of __osf__.
353
354 2012-03-12 Eric Botcazou <ebotcazou@adacore.com>
355
356 * gcc-interface/gigi.h (shift_unc_components_for_thin_pointers): Kill.
357 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove call
358 to above function.
359 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Adjust
360 handling of thin pointers.
361 <Attr_Descriptor_Size>: Likewise.
362 (gnat_to_gnu) <N_Free_Statement>: Likewise.
363 * gcc-interface/utils.c (shift_unc_components_for_thin_pointers): Kill.
364 (convert_to_fat_pointer): Adjust handling of thin pointers.
365 (convert) <POINTER_TYPE>: Likewise.
366 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
367
368 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 * gcc-interface/Makefile.in (alpha*-dec-osf*): Remove.
371 * a-intnam-tru64.ads, mlib-tgt-specific-tru64.adb,
372 s-mastop-tru64.adb, s-osinte-tru64.adb, s-osinte-tru64.ads,
373 s-taprop-tru64.adb, s-tasinf-tru64.ads, s-taspri-tru64.ads,
374 system-tru64.ads: Remove.
375
376 * adaint.c (__gnat_number_of_cpus) [__alpha__ && __osf__]:
377 Remove.
378 [IS_CROSS] [!(__alpha__ && __osf__)]: Remove.
379 * env.c [__alpha__ && __osf__]: Remove.
380 * gsocket.h (_OSF_SOURCE): Remove.
381 (HAVE_THREAD_SAFE_GETxxxBYyyy) [__osf__]: Remove.
382 * init.c [__alpha__ && __osf__]: Remove.
383 * link.c [__osf__]: Remove.
384 * s-oscons-tmplt.c [__alpha__ && __osf__]: Remove.
385 [__osf__ && !_SS_MAXSIZE]: Remove.
386 * sysdep.c [__osf__]: Remove.
387 * terminals.c [__alpha__ && __osf__]: Remove.
388 [OSF1]: Remove.
389
390 * g-traceb.ads: Remove Tru64 reference.
391 * g-trasym.ads: Likewise.
392 * gnat_ugn.texi (Linking a Mixed C++ & Ada Program): Likewise.
393 (Summary of Run-Time Configurations): Likewise.
394 * memtrack.adb: Likewise.
395
396 2012-03-12 Tristan Gingold <gingold@adacore.com>
397
398 * gcc-interface/decl.c (gnat_to_gnu_param): Use flag_vms_malloc64
399 instead of TARGET_MALLOC64.
400 * gcc-interface/gigi.h (flag_vms_malloc64): Define instead
401 of TARGET_MALLOC64.
402
403 2012-03-09 Robert Dewar <dewar@adacore.com>
404
405 * a-direct.adb, comperr.adb, freeze.adb: Minor reformatting.
406
407 2012-03-09 Arnaud Charlet <charlet@adacore.com>
408
409 * s-taskin.adb (Initialize_ATCB): Set Task_Image_Len to
410 0 so that we never access this field uninitialized (e.g. in
411 Task_Primitives.Operations.Enter_Task for the environment task).
412
413 2012-03-09 Vincent Pucci <pucci@adacore.com>
414
415 * exp_ch5.adb (Expand_Iterator_Loop):
416 Call to Expand_Iterator_Loop_Over_Array added.
417 (Expand_Iterator_Loop_Over_Array): New routine. Expansion of
418 "of" iterator loop over arrays. Multidimensional array case added.
419
420 2012-03-09 Eric Botcazou <ebotcazou@adacore.com>
421
422 * uintp.ads: Fix minor pasto in comment.
423
424 2012-03-09 Vasiliy Fofanov <fofanov@adacore.com>
425
426 * a-direct.adb: Do not strip the trailing directory separator
427 from path, as this is already done inside Normalize_Pathname;
428 doing it again produces the wrong result on Windows for the
429 drive's root dir (i.e. "X:\" becomes "X:").
430
431 2012-03-09 Thomas Quinot <quinot@adacore.com>
432
433 * exp_attr.adb, freeze.adb, sem_attr.adb, aspects.adb, aspects.ads,
434 sem_ch13.adb, snames.ads-tmpl (Exp_Attr.Expand_N_Attribute_Reference):
435 Add Attribute_Scalar_Storage_Order.
436 (Sem_Attr.Analyze_Attribute, Eval_Attribute): Ditto.
437 (Aspects): Add Aspect_Scalar_Storage_Order (Snames): Add
438 Name_Scalar_Storage_Order and Attribute_Scalar_Storage_Order.
439 (Sem_Ch13.Analyze_Attribute_Definition_Clause): Add processing
440 for Scalar_Storage_Order.
441 (Freeze): If Scalar_Storage_Order is specified, check that it
442 is compatible with Bit_Order.
443
444 2012-03-09 Robert Dewar <dewar@adacore.com>
445
446 * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb,
447 a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb,
448 a-stzsup.ads: Minor reformatting.
449
450 2012-03-09 Thomas Quinot <quinot@adacore.com>
451
452 * s-ransee-vms.adb: Minor reformatting.
453
454 2012-03-09 Arnaud Charlet <charlet@adacore.com>
455
456 * comperr.adb (Delete_SCIL_Files): Fix handling of
457 N_Package_Renaming_Declaration and N_Generic_Package_Declaration.
458
459 2012-03-09 Javier Miranda <miranda@adacore.com>
460
461 * sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets
462 use frontend inlining at all optimization levels.
463 * sem_util.adb (Must_Inline): In AAMP and VM targets, given that
464 there is no inlining support in the backend, use also frontend
465 inlining when compiling with optimizations enabled.
466 * exp_ch6.adb (Expand_Call): Minor code reorganization.
467
468 2012-03-09 Eric Botcazou <ebotcazou@adacore.com>
469
470 * gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around.
471 (TYPE_UNCONSTRAINED_ARRAY): Adjust comment.
472 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Tidy
473 up. Add comment and use canonical predicate for thin pointers.
474 (gnat_to_gnu) <N_Free_Statement>: Tidy up and reorder. Add comment
475 and use canonical predicate for thin pointers.
476 * gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous
477 'else' and use standard name.
478 (convert_to_thin_pointer): Delete.
479 (convert) <POINTER_TYPE>: Do the difference in sizetype directly and
480 change obsolete idioms. Do not call above function.
481 (unchecked_convert): Fix formatting.
482 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: In the thin
483 pointer case, use byte_position to get the field position.
484
485 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
486
487 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the
488 DECL node built for a type which has a non-trivial equivalent type.
489
490 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
491
492 * gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete.
493 * gcc-interface/decl.c (defer_finalize_level): Likewise.
494 (defer_finalize_list): Likewise.
495 (gnat_to_gnu_entity): Delete references to above variables and do not
496 call rest_of_type_decl_compilation.
497 (rest_of_type_decl_compilation): Delete.
498 (rest_of_type_decl_compilation_no_defer): Likewise.
499 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not call
500 rest_of_type_decl_compilation.
501 (create_type_decl): Likewise.
502 (update_pointer_to): Likewise.
503
504 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
505
506 * gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer.
507 (add_decl_expr): Mark external DECLs as used.
508 * gcc-interface/utils.c (convert) <CONSTRUCTOR>: Copy the vector.
509
510 2012-03-07 Tristan Gingold <gingold@adacore.com>
511
512 * s-ransee-vms.adb: New file.
513 * gcc-interface/Makefile.in: Use s-ransee-vms.adb on VMS.
514 * gcc-interface/Make-lang.in: Update dependencies.
515
516 2012-03-07 Bob Duff <duff@adacore.com>
517
518 * rtsfind.ads: Add support for finding Super_String types.
519 * sem_util.ads, sem_util.adb (Is_Bounded_String): New function
520 to determine whether a given type is a bounded string type.
521 (Is_Fully_Initialized_Type): Return True for bounded
522 string types, to suppress bogus warnings.
523 * exp_ch4.adb (Expand_Composite_Equality): Special case for bounded
524 strings: equality composes. This allows us to remove default values in
525 super strings.
526 * a-strsup.ads, a-stwisu.ads, a-stzsup.ads: Update comments.
527 * exp_ch3.adb (Expand_Freeze_Record_Type): Comment.
528
529 2012-03-07 Robert Dewar <dewar@adacore.com>
530
531 * sem_util.adb, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb: Minor
532 reformatting.
533
534 2012-03-07 Sergey Rybin <rybin@adacore.com frybin>
535
536 * gnat_ugn.texi: gnatpp: fix paragraph about sources with
537 preprocessor directives.
538
539 2012-03-07 Arnaud Charlet <charlet@adacore.com>
540
541 * s-osinte-linux.ads, s-taprop-linux.adb (prctl): New function.
542 (Enter_Task): Call prctl when relevant.
543
544 2012-03-07 Tristan Gingold <gingold@adacore.com>
545
546 * s-osinte-vms.ads: pthread_mutex_setname_np: new function.
547
548 2012-03-07 Ed Schonberg <schonberg@adacore.com>
549
550 * sem_ch6.adb (Process_Formals): a generic subprogram with
551 a formal incomplete type does not require a freeze node.
552
553 2012-03-07 Bob Duff <duff@adacore.com>
554
555 * sem_util.ads: Minor reformatting.
556
557 2012-03-07 Geert Bosch <bosch@adacore.com>
558
559 * targparm.ads: New target parameter Atomic_Sync_Default,
560 defaulting to True.
561 * targparm.adb (Get_Target_Parameters): Add processing for
562 Atomic_Sync_Default.
563 * gnat1drv.adb (Adjust_Global_Switches): Adjust Supress_Options
564 based on ASD.
565
566 2012-03-07 Javier Miranda <miranda@adacore.com>
567
568 * sem_ch3.adb (Analyze_Object_Declaration): If the object
569 declaration has an init expression then stop the analysis of the
570 object declaration if the expression which initializes the object
571 is a call to an inlined function which returns an unconstrained
572 and has been expanded into a procedure call.
573 * sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing
574 support to handle selected components.
575 * sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus
576 documentation.
577 * sem_ch6.adb (Check_And_Build_Body_To_Inline): New
578 subprogram which implements the checks required by the
579 new rules for frontend inlining and builds the body to inline.
580 (Analyze_Subprogram_Body_Helper): Move code that
581 checks inlining of subprogram that has nested subprogram
582 to Check_And_Build_Body_To_Inline. Replace call to
583 Build_Body_To_Inline by call to the new subprogram
584 Check_And_Build_Body_To_Inline.
585 (Cannot_Inline): New implementation.
586 * sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp):
587 New subprogram.
588 * sem_util.ad[sb] (Must_Inline): New subprogram.
589 (Returns_Unconstrained_Type): New subprogram.
590 * sem_res.adb (Resolve_Call): Do not create a transient scope
591 for inlined calls.
592 * inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable.
593 * inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting
594 to false the variable Analyzing_Inlined_Bodies. Fix comments.
595 * exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master.
596 * exp_ch6.ads (List_Inlining_Info): New subprogram.
597 * exp_ch6.adb (Expand_Call.Do_Inline): New subprogram.
598 (Expand_Call.Do_Inline_Always): New subprogram.
599 (In_Unfrozen_Instance): Move the declaration of this subprogram.
600 (Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram.
601 (Expand_Inlined_Call): Adding new support for inlining functions
602 that return unconstrained types.
603 (List_Inlining_Info): New subprogram.
604 * debug.adb Document flags -gnatd.j and -gnatd.k
605 * gnat1drv.adb Add call to generate the new listing of inlined
606 calls and calls passed to the backend.
607
608 2012-03-07 Robert Dewar <dewar@adacore.com>
609
610 * sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb,
611 s-gearop.adb, sem_ch6.adb, g-trasym.adb: Minor reformatting.
612
613 2012-03-07 Javier Miranda <miranda@adacore.com>
614
615 * a-ngrear.ads: Add documentation.
616
617 2012-03-07 Tristan Gingold <gingold@adacore.com>
618
619 * s-taprop-vms.adb (Create_Task): set thread name.
620 * s-osinte-vms.ads (pthread_attr_setname_np): Declare.
621
622 2012-03-07 Arnaud Charlet <charlet@adacore.com>
623
624 * g-trasym.adb: Minor reformatting.
625
626 2012-03-07 Robert Dewar <dewar@adacore.com>
627
628 * a-ngrear.ads: Minor addition of ??? comment.
629
630 2012-03-07 Gary Dismukes <dismukes@adacore.com>
631
632 * exp_ch4.adb (Apply_Accessibility_Check): Call
633 Remove_Side_Effects in the build-in-place case, to ensure that
634 we capture the call and don't end up with two calls.
635
636 2012-03-07 Javier Miranda <miranda@adacore.com>
637
638 * exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions
639 that return unconstrained types using an extended return statement
640 since the support for inlining these functions has not been yet
641 added to the frontend.
642 * s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization.
643 * a-ngrear.ads: Replace all the Inline_Always pragmas by pragma
644 Inline.
645 * a-ngrear.adb (Eigenvalues, Transpose): Restructured to use
646 extended return statement.
647 * a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice,
648 Super_To_String): Restructured to use extended return statement.
649 * a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to
650 use extended return statement.
651 * s-gearop.adb (Diagonal, Matrix_Elementwise_Operation,
652 Vector_Elementwise_Operation, Matrix_Elementwise_Operation,
653 Matrix_Matrix_Scalar_Elementwise_Operation,
654 Vector_Vector_Elementwise_Operation,
655 Vector_Vector_Scalar_Elementwise_Operation,
656 Matrix_Scalar_Elementwise_Operation,
657 Vector_Scalar_Elementwise_Operation,
658 Scalar_Matrix_Elementwise_Operation,
659 Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product,
660 Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector,
661 Vector_Matrix_Product): Restructured to use extended return
662 statement.
663
664 2012-03-07 Vincent Pucci <pucci@adacore.com>
665
666 * sem_ch5.adb (One_Bound): Minor reformatting.
667
668 2012-03-07 Tristan Gingold <gingold@adacore.com>
669
670 * s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb,
671 s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and
672 s-osinte-vms-ia64.
673
674 2012-03-07 Ed Schonberg <schonberg@adacore.com>
675
676 * checks.adb (Apply_Predicate_Check): Do not generate a predicate
677 check is the context is an internally generated type-specific
678 function.
679 * sem_ch6.adb (Process_PPCs); the formals of internally generated
680 type-specific functions do not get assertion checks.
681
682 2012-03-07 Yannick Moy <moy@adacore.com>
683
684 * gnat_rm.texi: Minor renaming of title.
685 * gnat_ugn.texi: Minor correction.
686
687 2012-03-07 Vincent Pucci <pucci@adacore.com>
688
689 * exp_ch4.adb (Expand_N_Quantified_Expression): Minor
690 reformating.
691 * sem_ch4.adb (Analyze_Quantified_Expression): Creation and
692 analysis of the iteration scheme added in all cases.
693 * sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating.
694 (Analyze_Iterator_Specification): Minor reformating.
695 * sem_res.adb (Resolve_Quantified_Expression): Resolution of
696 the condition added in all cases.
697
698 2012-03-07 Thomas Quinot <quinot@adacore.com>
699
700 * einfo.adb, einfo.ads: Add flag Reverse_Storage_Order.
701
702 2012-03-07 Yannick Moy <moy@adacore.com>
703
704 * gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to
705 account for Ada 2012 assertions, and their pragma counterparts in GNAT.
706
707 2012-03-07 Thomas Quinot <quinot@adacore.com>
708
709 * exp_attr.adb, sem_attr.adb: Minor reformatting.
710
711 2012-03-07 Bob Duff <duff@adacore.com>
712
713 * hostparm.ads (Max_Instantiations): Increase parameter.
714
715 2012-03-07 Bob Duff <duff@adacore.com>
716
717 * par-prag.adb: Minor code rearrangement.
718
719 2012-03-07 Bob Duff <duff@adacore.com>
720
721 * a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String):
722 Remove default initial value for Data. It is no longer needed
723 because "=" now composes properly for untagged records. This
724 default has caused efficiency problems.
725
726 2012-03-07 Ed Schonberg <schonberg@adacore.com>
727
728 * sem_res.adb (Resolve_Actuals): If the actual is a selected
729 component of an anonymous access type, whose prefix is a variable,
730 treat the variable as if it may be modified by the call, to
731 suppress spurious warnings that a variable might be declared as
732 a constant.
733
734 2012-03-07 Thomas Quinot <quinot@adacore.com>
735
736 * einfo.adb, einfo.ads: Remove unused entity flags.
737
738 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
739
740 * gnat_ugn.texi (Inline Assembler): Fix swapping of Input and
741 Output operands throughout.
742
743 2012-03-07 Hristian Kirtchev <kirtchev@adacore.com>
744
745 * sem_ch12.adb (Earlier): When two nodes come from the same
746 generic instantiation, compare their locations. Otherwise always
747 use the top level locations of the nodes.
748
749 2012-03-07 Thomas Quinot <quinot@adacore.com>
750
751 * einfo.ads, sem_prag.adb: Minor reformatting.
752
753 2012-03-05 Jason Merrill <jason@redhat.com>
754
755 * gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn
756 before using it.
757
758 2012-03-04 Eric Botcazou <ebotcazou@adacore.com>
759
760 * gnatvsn.ads (Library_Version): Bump to 4.8.
761
762 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
763
764 * init.c (__gnat_adjust_context_for_raise): Also check
765 "orq $0x0,(%esp)" for x32.
766
767 * link.c (__gnat_default_libgcc_subdir): Set to libx32 for x32.
768
769 * gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR
770 is /x32 and add support for x32.
771
772 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
773
774 * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
775 and set TYPE_ARTIFICIAL according to it. Adjust recursive call.
776 (gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
777 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not
778 invoke rest_of_type_decl_compilation on the parallel type, if any.
779
780 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
781
782 * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
783 dummy global built for global types is preserved.
784
785 2012-02-27 Tristan Gingold <gingold@adacore.com>
786
787 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
788 E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
789 gnu_template_type.
790
791 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
792
793 * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
794 (TYPE_BY_REFERENCE_P): New flag.
795 (TYPE_IS_BY_REFERENCE_P): New macro.
796 (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
797 (TYPE_IS_DUMMY_P): Adjust for above change.
798 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
799 and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
800 (gnat_to_gnu_param): Likewise.
801 (maybe_pad_type): Likewise.
802 (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
803 * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
804 instead of TREE_ADDRESSABLE.
805 * gcc-interface/trans.c (finalize_nrv): Likewise.
806 (call_to_gnu): Likewise. Do not create a temporary for return values
807 with by-reference type here.
808 (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
809 (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
810 CONSTRUCTORs and calls.
811 * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
812 the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P
813 instead of TREE_ADDRESSABLE.
814 * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
815 types explicitly.
816
817 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
818
819 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
820 change that creates a special VAR_DECL for debugging purposes. For an
821 aliased object with an unconstrained nominal subtype, make its type a
822 thin reference to the underlying object.
823 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
824 expressions built for the initialization of above objects.
825
826 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
827
828 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
829 Windows-specific make variable.
830 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
831 (install-gnatlib): Respect the above during installation when set,
832 and also install any windows import library that has been built.
833 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
834 build a corresponding import library.
835
836 2012-02-22 Robert Dewar <dewar@adacore.com>
837
838 * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
839 reformatting.
840
841 2012-02-22 Geert Bosch <bosch@adacore.com>
842
843 * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
844 x86-specific version of byteswap and use GCC builtins instead.
845
846 2012-02-22 Tristan Gingold <gingold@adacore.com>
847
848 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
849 E_Array_Type]: Translate component ealier.
850
851 2012-02-22 Robert Dewar <dewar@adacore.com>
852
853 * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
854 error message for 'Range.
855
856 2012-02-22 Pascal Obry <obry@adacore.com>
857
858 * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
859 this is our own thread.
860
861 2012-02-22 Sergey Rybin <rybin@adacore.com frybin>
862
863 * tree_io.ads: Update ASIS_Version_Number because of the changes
864 in Snames.
865
866 2012-02-22 Hristian Kirtchev <kirtchev@adacore.com>
867
868 * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on
869 stack-related finalizers.
870
871 2012-02-22 Ed Schonberg <schonberg@adacore.com>
872
873 * sem_ch6.adb (Analyze_Expression_Function): If the construct
874 is a completion, indicate that its formals are the formals of
875 a completion, and as such do not get a cross- reference entry.
876 (Analyze_Subprogram_Specification): Do not generate a definition
877 for the entity of an expression function, because it may be a
878 completion. Definition will be generated if needed when analyzing
879 the generated subprogram declaration.
880
881 2012-02-22 Vincent Celier <celier@adacore.com>
882
883 * make.adb (Check): When checking if an object file is in the
884 correct object directory, get the unit name from a previous call
885 to Check_Source_Info_In_ALI.
886 * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
887 the unit when everything is OK, otherwise return No_Name.
888 * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
889 of Boolean
890
891 2012-02-22 Ed Schonberg <schonberg@adacore.com>
892
893 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
894 instance, the operator is visible if an operand is of some
895 numeric type which is not in use or directly visible, and the
896 other operand is a numeric literal.
897
898 2012-02-22 Tristan Gingold <gingold@adacore.com>
899
900 * init.c: Minor code clean up.
901 * gcc-interface/Make-lang.in: Update dependencies.
902
903 2012-02-22 Arnaud Charlet <charlet@adacore.com>
904
905 * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
906 otherwise GCC will generate an object file.
907
908 2012-02-22 Vincent Celier <celier@adacore.com>
909
910 * projects.texi: Correct typo related to "**" in Source_Dirs.
911
912 2012-02-22 Steve Baird <baird@adacore.com>
913
914 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
915 error message text.
916
917 2012-02-22 Vincent Pucci <pucci@adacore.com>
918
919 * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
920 System_Dim_Child cases added.
921 * rtsfind.ads: Ada_Numerics,
922 Ada_Numerics_Generic_Elementary_Functions, System_Dim,
923 System_Dim_Float_IO and System_Dim_Integer_IO added to the list
924 of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as
925 new RTU_Id subtypes.
926 * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
927 Rtsfind to verify the package entity is located either
928 in System.Dim.Integer_IO or in System.Dim.Float_IO.
929 (Is_Dim_IO_Package_Instantiation): Minor
930 changes. (Is_Elementary_Function_Call): Removed.
931 (Is_Elementary_Function_Entity): New routine.
932 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
933 * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
934 removed.
935
936 2012-02-22 Vincent Pucci <pucci@adacore.com>
937
938 * sem_prag.adb: Minor reformatting.
939
940 2012-02-22 Ed Schonberg <schonberg@adacore.com>
941
942 * sem_ch3.adb (Find_Type_Name): When analyzing a private type
943 declaration that is the completion of a tagged incomplete type, do
944 not associate the class-wide type already created with the private
945 type to prevent order-of-elaboration issues in the back-end.
946 * exp_disp.adb (Find_Specific_Type): Find specific type of
947 a class-wide type, and handle the case of an incomplete type
948 coming either from a limited_with clause or from an incomplete
949 type declaration. Used when expanding a dispatchin call and
950 generating tag checks (minor refactoring).
951
952 2012-02-22 Robert Dewar <dewar@adacore.com>
953
954 * exp_ch5.adb: Add comment.
955 * sem_ch12.adb, exp_ch6.adb: minor reformatting
956
957 2012-02-22 Ed Schonberg <schonberg@adacore.com>
958
959 * freeze.adb (Freeze_Entity): Do not perform type layout within
960 a generic unit.
961
962 2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
963
964 * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
965 Storage_Error.
966
967 2012-02-22 Ed Schonberg <schonberg@adacore.com>
968
969 * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
970 assignment to a classwide type whose type is limited, as
971 can happen in an instantiation in programs that run afoul or
972 AI05-0087.
973
974 2012-02-17 Ed Schonberg <schonberg@adacore.com>
975
976 * exp_ch6.adb (Legal_Copy): If layout is not
977 determined in the front-end, do not emit error message when
978 by-reference actual is potentially unaligned.
979 * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
980 illegal representation clause on tagged or aliased component, or on
981 by-reference type with forced alignment.
982
983 2012-02-17 Nicolas Roche <roche@adacore.com>
984
985 * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
986 propagated by gnatlib-sjlj and gnatlib-zcx targets.
987 * gcc-interface/Make-lang.in: Update dependencies.
988
989 2012-02-17 Thomas Quinot <quinot@adacore.com>
990
991 * sem_ch12.adb (Analyze_Package_Instantiation): For an
992 instantiation in an RCI library unit, omit the instance body
993 if the RCI library unit is the instance itself (E.2.3(18)),
994 but include the body if the instantiation is within the RCI
995 declaration (12.3(12)).
996
997 2012-02-17 Steve Baird <baird@adacore.com>
998
999 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
1000 Post'Class aspects can only be specified for a primitive operation
1001 of a tagged type.
1002
1003 2012-02-17 Yannick Moy <moy@adacore.com>
1004
1005 * gnat_rm.texi: Minor shuffling.
1006
1007 2012-02-17 Ed Schonberg <schonberg@adacore.com>
1008
1009 * aspects.adb: Expression functions can carry pre/postconditions.
1010 * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
1011 in an expression function.
1012 * sem_prag (Check_Precondition_Postcondition): legal on expression
1013 functions.
1014
1015 2012-02-17 Vincent Pucci <pucci@adacore.com>
1016
1017 * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
1018 * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
1019 * a-convec.adb, a-coorma.adb (Adjust): New routine.
1020 (Constant_Reference): Increment Busy and Lock counters.
1021 (Reference): Increase Busy and Lock counters.
1022 (Finalize): New routine.
1023 * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
1024 (Adjust): New routine. (Constant_Reference): Increment Busy
1025 and Lock counters.
1026 (Finalize): New routine.
1027 * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
1028 * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
1029 * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
1030 * a-coorma.ads, a-coorse: Controlled component added to the
1031 reference types.
1032
1033 2012-02-17 Robert Dewar <dewar@adacore.com>
1034
1035 * restrict.adb (Check_Restriction): Add special handling for
1036 No_Obsolescent_Features.
1037
1038 2012-02-17 Hristian Kirtchev <kirtchev@adacore.com>
1039
1040 * exp_util.adb (Find_Finalize_Address): When dealing with an
1041 internally built full view for a type with unknown discriminants,
1042 use the original record type.
1043
1044 2012-02-17 Robert Dewar <dewar@adacore.com>
1045
1046 * sem_dim.adb: Minor reformatting.
1047
1048 2012-02-17 Yannick Moy <moy@adacore.com>
1049
1050 * gnat_rm.texi: Minor rewording.
1051
1052 2012-02-17 Thomas Quinot <quinot@adacore.com>
1053
1054 * sem_aggr.adb: Minor reformatting.
1055
1056 2012-02-17 Robert Dewar <dewar@adacore.com>
1057
1058 * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
1059
1060 2012-02-17 Vincent Pucci <pucci@adacore.com>
1061
1062 * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
1063 (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
1064 call added.
1065 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
1066 call added.
1067 * s-dim.ads: Make package Pure.
1068
1069 2012-02-17 Gary Dismukes <dismukes@adacore.com>
1070
1071 * prj-nmsc.adb: Minor reformatting.
1072
1073 2012-02-17 Yannick Moy <moy@adacore.com>
1074
1075 * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
1076
1077 2012-02-17 Yannick Moy <moy@adacore.com>
1078
1079 * gnat_ugn.texi: Fix typos.
1080
1081 2012-02-17 Pascal Obry <obry@adacore.com>
1082
1083 * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
1084 aggregate is not Externally_Built.
1085
1086 2012-02-17 Ed Schonberg <schonberg@adacore.com>
1087
1088 * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
1089 component has a box association, copy the default value using
1090 the current scope as the scope of internal types, to prevent
1091 scoping anomalies in gigi.
1092
1093 2012-02-17 Robert Dewar <dewar@adacore.com>
1094
1095 * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
1096 sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
1097 exp_intr.adb, s-os_lib.adb: Minor reformatting.
1098
1099 2012-02-17 Ed Schonberg <schonberg@adacore.com>
1100
1101 * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
1102 old operation is abstract, the relevant type is not abstract,
1103 and the new subprogram fails to override.
1104
1105 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
1106
1107 * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
1108 type of the result to the end and execute it for a deferred constant of
1109 a discriminated type whose full view can be elaborated statically.
1110
1111 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
1112
1113 * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
1114 type is tagged, mark it as used for debugging purposes.
1115 <N_Allocator>: Likewise for a qualified expression.
1116
1117 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
1118
1119 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1120 return value in the by-reference return type case if this isn't the
1121 expression of an object declaration. Tidy up.
1122
1123 2012-02-09 Tristan Gingold <gingold@adacore.com>
1124
1125 * gcc-interface/Makefile.in: Remove .sym rule (not used).
1126 Remove adamsg.o object (requires native message compiler).
1127 * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
1128 macro instead of as extern int.
1129 (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
1130 (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
1131 (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
1132 (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
1133 (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
1134 (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
1135 (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
1136 (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
1137 (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
1138 (struct cond_except): Field cond is now an unsigned int.
1139 (dec_ada_cond_except_table): Adjust.
1140 (cond_except_table): Likewise.
1141 (cond_resignal_table): Likewise.
1142 (__gnat_default_resignal_p): Fix style.
1143
1144 2012-02-08 Vincent Celier <celier@adacore.com>
1145
1146 * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
1147 (g-buorma is now imported by sinput).
1148 Update dependencies.
1149 * scn.adb (Initialize_Scanner): Call Check_For_BOM
1150 * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
1151 * sinput.adb: New procedure Check_For_BOM
1152 * sinput.ads: New procedure Check_For_BOM
1153
1154 2012-02-08 Vincent Pucci <pucci@adacore.com>
1155
1156 * impunit.adb: Dimension package names updated
1157 * Makefile.rtl: s-dim added
1158 * sem_dim.adb (Is_Procedure_Put_Call): minor changes
1159 (Is_Dim_IO_Package_Instantiation): minor changes
1160 * sem_dim.ads: minor changes in comments
1161 * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
1162 Name_Dim_Integer_IO removed
1163 * s-dim.ads: New package. Define the dimension terminology.
1164 * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
1165 * s-dmotpr.ads: Package names updated.
1166 * s-diflio.ads, s-diinio.ads: Documentation added and package
1167 names updated.
1168
1169 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1170
1171 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
1172 for storage pools to test for an underlying record type rather than
1173 testing Is_Tagged_Type, so that simple storage pools will be handled
1174 the same as normal Ada storage pools.
1175
1176 2012-02-08 Yannick Moy <moy@adacore.com>
1177
1178 * gnat_rm.texi: Minor reshuffling to place restriction at
1179 appropriate place.
1180
1181 2012-02-08 Bob Duff <duff@adacore.com>
1182
1183 * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
1184 False for '-gnatwA', to suppress these warnings.
1185
1186 2012-02-08 Vincent Celier <celier@adacore.com>
1187
1188 * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
1189 starting to scan, so that UTF8 encoding is taken into account.
1190
1191 2012-02-08 Arnaud Charlet <charlet@adacore.com>
1192
1193 * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
1194 function.
1195 (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
1196 (Exceptional_Complete_Rendezvous): Mark No_Return.
1197
1198 2012-02-08 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * exp_aggr.adb (Compile_Time_Known_Composite_Value):
1201 New predicate to compute whether a composite value can be
1202 evaluated at compile time.
1203 (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
1204 expressions of elementary type and Compile_Time_Known_Composite_Value
1205 for all other expressions.
1206 (Expand_Record_Aggregate): Convert to assignments in the case
1207 of a type with mutable components if the aggregate cannot be
1208 built statically.
1209
1210 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1211
1212 * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
1213 (Impl_Defined_Aspects): Add association for
1214 Aspect_Simple_Storage_Pool_Type.
1215 (Aspect_Names): Add
1216 association for Aspect_Simple_Storage_Pool_Type.
1217 * aspects.adb:
1218 (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
1219 * exp_attr.adb (Expand_N_Attribute_Reference):
1220 Change name to Name_Simple_Storage_Pool_Type.
1221 * exp_ch4.adb (Expand_N_Allocator): Change
1222 name to Name_Simple_Storage_Pool_Type.
1223 * exp_intr.adb (Expand_Unc_Deallocation): Change name to
1224 Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity):
1225 Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb:
1226 Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb:
1227 (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
1228 * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
1229 Change name to Name_Simple_Storage_Pool_Type.
1230 * sem_prag.adb:
1231 (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
1232 (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
1233 * sem_res.adb (Resolve_Allocator): Change name to
1234 Name_Simple_Storage_Pool_Type. * snames.ads-tmpl:
1235 (Name_Simple_Storage_Pool_Type): New name constant.
1236 (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
1237 move to main pragma section because it no longer matches the
1238 attribute name.
1239 * snames.adb-tmpl (Get_Pragma_Id): Remove test for
1240 Name_Simple_Storage_Pool.
1241 (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
1242
1243 2012-02-08 Robert Dewar <dewar@adacore.com>
1244
1245 * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
1246
1247 2012-02-08 Pascal Obry <obry@adacore.com>
1248
1249 * prj.adb (Compute_All_Imported_Projects): Use new
1250 For_Project_And_Aggregated_Context to ensure proper context is
1251 used for encapsulated aggregate libraries.
1252 * prj-proc.adb (Recursive_Process): Call
1253 Process_Aggregated_Projects earlier to ensure that all dependent
1254 projects are set with the proper encapsulated status.
1255
1256 2012-02-08 Pascal Obry <obry@adacore.com>
1257
1258 * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
1259 terminated string.
1260
1261 2012-02-08 Pascal Obry <obry@adacore.com>
1262
1263 * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
1264 generic routine with a context parameter.
1265
1266 2012-02-08 Robert Dewar <dewar@adacore.com>
1267
1268 * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
1269 a-convec.adb: Minor reformatting and code reorganization.
1270
1271 2012-02-08 Steve Baird <baird@adacore.com>
1272
1273 * sem_cat.adb (In_Preelaborated_Unit): A child
1274 unit instantiation does not inherit preelaboration requirements
1275 from its parent.
1276
1277 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1278
1279 * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
1280 (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
1281 (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
1282 (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
1283 * aspects.adb (Canonical_Aspect): Add entry for
1284 Aspect_Simple_Storage_Pool.
1285 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
1286 Attribute_Simple_Storage_Pool in the same way as Storage_Pool
1287 (add conversion, analyze/resolve). For the Storage_Size attribute,
1288 for the simple pool case, locate and use the simple pool type's
1289 Storage_Size function (if any), otherwise evaluate to zero.
1290 * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
1291 for an access type with an associated simple storage pool,
1292 locate and use the pool type's Allocate.
1293 * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
1294 access type has a simple storage pool, locate the pool type's
1295 Deallocate procedure (if present) and use it as the procedure
1296 to call on the Free operation.
1297 * freeze.adb (Freeze_Entity): In the case of a full type for
1298 a private type defined with pragma Simple_Storage_Pool, check
1299 that the full type is also appropriate for the pragma. For
1300 a simple storage pool type, validate that the operations
1301 Allocate, Deallocate (if present), and Storage_Size
1302 (if present) are defined with appropriate expected profiles.
1303 (Validate_Simple_Pool_Op_Formal): New procedure
1304 (Validate_Simple_Pool_Operation): New procedure Add with and
1305 use of Rtsfind.
1306 * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
1307 (no action required).
1308 * sem_attr.adb (Analyze_Attribute): For the case of the
1309 Storage_Pool attribute, give a warning if the prefix type has an
1310 associated simple storage pool, and rewrite the attribute as a
1311 raise of Program_Error. In the case of the Simple_Storage_Pool
1312 attribute, check that the prefix type has an associated simple
1313 storage pool, and set the attribute type to the pool's type.
1314 * sem_ch13.adb (Analyze_Aspect_Specifications): Add
1315 Aspect_Simple_Storage_Pool case choice.
1316 (Analyze_Attribute_Definition_Clause): Add
1317 Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
1318 (no action). Add handling for Simple_Storage_Pool attribute
1319 definition, requiring the name to denote a simple storage pool
1320 object.
1321 (Check_Aspect_At_Freeze_Point): For a simple storage pool
1322 aspect, set the type to that of the name specified for the aspect.
1323 * sem_prag.adb (Analyze_Pragma): Add handling for pragma
1324 Simple_Storage_Pool, requiring that it applies to a library-level
1325 type declared in a package declaration that is a limited private
1326 or limited record type.
1327 * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
1328 build-in-place function in an allocator for an access type with
1329 a simple storage pool as unsupported.
1330 * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
1331 (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
1332 (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
1333 * snames.adb-tmpl (Get_Pragma_Id): Handle case of
1334 Name_Simple_Storage_Pool.
1335 (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
1336
1337 2012-02-08 Cyrille Comar <comar@adacore.com>
1338
1339 * projects.texi: Clarify doc for interfaces.
1340
1341 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
1342
1343 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
1344 (GCC_LINK): Use it.
1345
1346 2012-02-01 Tristan Gingold <gingold@adacore.com>
1347
1348 * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
1349 instead of size_type_node.
1350
1351 2012-01-30 Nicolas Roche <roche@adacore.com>
1352
1353 * gcc-interface/Make-lang.in: Update dependencies.
1354 * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
1355 when needed.
1356 Remove Linker_Options -crtbe when building sjlj run-time.
1357
1358 2012-01-30 Robert Dewar <dewar@adacore.com>
1359
1360 * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
1361 * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
1362 form 2 * small-literal.
1363 * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
1364 mod value).
1365 * sem_ch4.ads (Analyze_Mod): New procedure.
1366
1367 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1368
1369 * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
1370 types and return expression when building spec for implicit
1371 body, to preserve global references that may be present in an
1372 instantiation.
1373
1374 2012-01-30 Matthew Heaney <heaney@adacore.com>
1375
1376 * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
1377 Reverse_Elements): Check for cursor tampering.
1378
1379 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1380
1381 * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
1382 type with aspect Default_Value or Default_Component_Value is
1383 fully initialized, and use of variables of such types do not
1384 generate warnings.
1385
1386 2012-01-30 Javier Miranda <miranda@adacore.com>
1387
1388 PR ada/15846
1389 * sem_ch8.adb (Analyze_Subprogram_Renaming):
1390 Handle self-renaming when the renamed entity is referenced using
1391 its expanded name.
1392
1393 2012-01-30 Vincent Celier <celier@adacore.com>
1394
1395 * projects.texi: Add documentation for attribute Interfaces.
1396
1397 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1398
1399 * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
1400 * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
1401 location for the wrapped call to the original AT_END routine
1402 and the subsequent return statement.
1403
1404 2012-01-30 Pascal Obry <obry@adacore.com>
1405
1406 * s-rannum.adb: Minor reformatting.
1407
1408 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1409
1410 * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
1411 to 25 and add the hard time value for 2012-06-30.
1412
1413 2012-01-30 Robert Dewar <dewar@adacore.com>
1414
1415 * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
1416 freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
1417 s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
1418 Minor reformatting/code reorganization.
1419
1420 2012-01-30 Thomas Quinot <quinot@adacore.com>
1421
1422 * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
1423 Unsigned_64 rather than Duration.
1424 (System.Random_Numbers.Reset): Use full value of seed
1425 (do not truncate sub-second bits).
1426
1427 2012-01-30 Thomas Quinot <quinot@adacore.com>
1428
1429 * sem_cat.adb, sem_ch12.adb: Minor reformatting.
1430
1431 2012-01-30 Yannick Moy <moy@adacore.com>
1432
1433 * gnat_ugn.texi: Minor correction of GNAT UG, to take into
1434 account changes to -gnatwa and more recent warnings.
1435
1436 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1437
1438 * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
1439 location when creating a call to a finalizer.
1440 * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
1441 a source location for the first actual of Save_Occurrence for
1442 consistency sake.
1443
1444 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1445
1446 * einfo.ads, einfo,adb: New attribute on scalar types:
1447 Default_Aspect_Value New attribute on array types:
1448 Default_Aspect_Component_Value Move attribute Related_Array_Object
1449 to a different position to accomodate new aspect attributes.
1450 * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
1451 of defaults set with an aspect specification, rather than using
1452 the list of aspects attached to the type, to prevent issues with
1453 partial views.
1454 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1455 Default_Value and Default_Component _Value, store corresponding
1456 expression in type entity.
1457 (Check_Aspect_At_End_Of_Declaration): If the default aspects
1458 are declared on the full view, use the full view to resolve the
1459 correseponding expression.
1460 * exp_ch3.adb (Init_Component): Use attribute
1461 Default_Aspect_Component_Value to perform default initialization,
1462 rather than relying on the rep item list for the type.
1463 (Get_Simple_Init_Val): Ditto.
1464
1465 2012-01-30 Thomas Quinot <quinot@adacore.com>
1466
1467 * a-strhas.ads: Document risk of collision attack.
1468
1469 2012-01-30 Yannick Moy <moy@adacore.com>
1470
1471 * gnat_ugn.texi: Minor update wrt warning switches.
1472
1473 2012-01-30 Vincent Celier <celier@adacore.com>
1474
1475 * prj-nmsc.adb (Check_Interfaces): Report an error when a
1476 unit from Library_Interface is not a unit of the project.
1477
1478 2012-01-30 Vincent Pucci <pucci@adacore.com>
1479
1480 * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
1481 links fixed inside PPC pragmas.
1482 * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
1483
1484 2012-01-30 Thomas Quinot <quinot@adacore.com>
1485
1486 * s-ransee.ads: Minor reformatting.
1487
1488 2012-01-30 Pascal Obry <obry@adacore.com>
1489
1490 * prj.ads, prj.adb (For_Each_Source): Add support for skipping
1491 sources coming from an encapsulated library.
1492
1493 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1494
1495 * sem_ch3.adb (Process-Full_View): fix typo.
1496 * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
1497 appear on a private type and the full view is available, ensure
1498 existence of freeze node for full view.
1499 (Build_Predicate_Function): Attach predicate function to both
1500 views of a private type.
1501
1502 2012-01-30 Vincent Celier <celier@adacore.com>
1503
1504 * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
1505 for the project if either attribute Library_Interface or
1506 Interfaces is declared.
1507 (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
1508 Check_Interfaces.
1509
1510 2012-01-30 Pascal Obry <obry@adacore.com>
1511
1512 * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
1513 boolean value to true in the process list created by this routine.
1514 * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
1515 Continued work for KA06-021.
1516 * prj.adb (Compute_All_Imported_Projects): Set
1517 From_Encapsulated_Lib boolean flag.
1518
1519 2012-01-30 Vincent Pucci <pucci@adacore.com>
1520
1521 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
1522 code clean up.
1523 * s-diflio.ads: Minor change.
1524
1525 2012-01-30 Javier Miranda <miranda@adacore.com>
1526
1527 * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
1528 to Get_Entry_Index. Required to generate code which provides
1529 the correct value of Entry_Index in the target entry.
1530
1531 2012-01-30 Nicolas Roche <roche@adacore.com>
1532
1533 * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
1534 fix issue with zcx on VxWorks5.
1535
1536 2012-01-30 Pascal Obry <obry@adacore.com>
1537
1538 * prj.ads, prj.adb (For_Every_Project_Imported): Remove
1539 In_Aggregate_Lib.
1540 (For_Every_Project_Imported_Context): New generic routine with
1541 a context parameter.
1542 * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
1543 distributed complexity.
1544 * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
1545
1546 2012-01-30 Thomas Quinot <quinot@adacore.com>
1547
1548 * exp_aggr.adb (Expand_Record_Aggregate): After creating the
1549 _parent aggregate for an extension aggregate, check whether it
1550 requires delayed (top-down) expansion.
1551
1552 2012-01-30 Vincent Pucci <pucci@adacore.com>
1553
1554 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
1555 * snames.ads-tmpl: Name_Item and Name_Symbols added.
1556 * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
1557 and change the position of parameter Symbols in every Put routine.
1558 * s-dimmks.ads: Convert long float type Mks_Type into long
1559 long float.
1560 * s-llflex.ads: Modifications in comments.
1561
1562 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1563
1564 * sem_ch12.adb (Earlier): Do not use the
1565 top level source locations of the two input nodes.
1566
1567 2012-01-30 Robert Dewar <dewar@adacore.com>
1568
1569 * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
1570 sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
1571
1572 2012-01-30 Robert Dewar <dewar@adacore.com>
1573
1574 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
1575
1576 2012-01-30 Olivier Hainque <hainque@adacore.com>
1577
1578 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
1579 comments.
1580
1581 2012-01-30 Thomas Quinot <quinot@adacore.com>
1582
1583 * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
1584 sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
1585 sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
1586 New subprogram (extracted from
1587 Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
1588 (Einfo.Is_Remote_Types): Now applies to generic types. Update
1589 documentation accordingly.
1590 (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
1591 actual for a formal type to which a pragma Remote_Access_Type
1592 applies.
1593 (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
1594 Remote_Access_Type.
1595 (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
1596 be applied to a generic type if pragma Remote_Access_Type
1597 applies, in which case the type of the attribute is
1598 System.Partition_Interface.RACW_Stub_Type.
1599
1600 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1601
1602 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
1603 an alignment on fields of the RETURN type built for the CICO mechanism.
1604
1605 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1606
1607 * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
1608 a call to a function that returns an unconstrained type with default
1609 discriminant. Similarly, avoid doing the conversion to the nominal
1610 result type in this case.
1611
1612 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1613
1614 * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
1615 * gcc-interface/decl.c (is_variable_size): Rename to...
1616 (type_has_variable_size): ...this.
1617 (adjust_packed): Adjust to above renaming.
1618 (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
1619 (field_is_artificial): New predicate.
1620 (field_is_aliased): Likewise.
1621 (field_has_self_size): Likewise.
1622 (field_has_variable_size): Likewise.
1623 (components_to_record): Record information for the final layout during
1624 the first pass on fields.
1625 If there is an aliased field placed after a field whose length depends
1626 on discriminants, put all the fields of the latter sort, last.
1627
1628 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1629
1630 * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
1631 * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
1632 * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
1633 Access-like attribute in a dispatch table if the subprogram is public.
1634
1635 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1636
1637 * gcc-interface/gigi.h (create_label_decl): Adjust.
1638 * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
1639 and invoke gnat_pushdecl on it. Remove obsolete settings.
1640 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
1641 create_label_decl.
1642 * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise. Ignore the
1643 label for debugging purposes.
1644
1645 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1646
1647 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
1648 object with an unconstrained nominal subtype and if optimization isn't
1649 enabled, create a special VAR_DECL for debugging purposes.
1650
1651 2012-01-23 Robert Dewar <dewar@adacore.com>
1652
1653 * sem_prag.ads, sem_prag.adb: Minor reformatting.
1654
1655 2012-01-23 Robert Dewar <dewar@adacore.com>
1656
1657 * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
1658 language defined aspect applied to renaming or formal type
1659 declaration (not permitted)
1660
1661 2012-01-23 Matthew Heaney <heaney@adacore.com>
1662
1663 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
1664 comment with pragma Assert.
1665
1666 2012-01-23 Vincent Pucci <pucci@adacore.com>
1667
1668 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
1669 to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
1670 * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
1671 routine. In ASIS mode, convert any PPC pragmas into aspects in generic
1672 subprogram declaration in order to enable the analysis of PPC boolean
1673 expressions.
1674
1675 2012-01-23 Robert Dewar <dewar@adacore.com>
1676
1677 * sem_ch3.adb (Analyze_Object_Declaration): Properly
1678 handle Current_Value for volatile variables (also propagate
1679 Treat_As_Volatile from type to object).
1680
1681 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1682
1683 * sem_ch12.adb (Install_Body): Detect the case
1684 where the enclosing context is a package with a stub body that
1685 has already been replaced by the actual body. In such cases,
1686 the freeze node for the enclosing context must be inserted after
1687 the real body.
1688
1689 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1690
1691 * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
1692 subprogram before expanding the pragma into an if-statement with
1693 a block, to ensure that when the subprogram is null its body is
1694 properly generated before expansion.
1695
1696 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1697
1698 * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
1699 constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
1700 to Saved_Formal.
1701 Freeze all eligible subprograms which appear as actuals in
1702 the instantiation.
1703 (Has_Fully_Defined_Profile): New routine.
1704 (Renames_Standard_Subprogram): New routine.
1705 (Earlier): Add local variable N. Comment update. Do not use source
1706 locations when trying to determine whether one node precedes another.
1707
1708 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1709
1710 * exp_ch4.adb (Expand_Concatenate): In the case
1711 where the result of a concatentation can be null, set the to
1712 result have both the low and high bounds of the right operand (not
1713 just the high bound, as was the case prior to this fix). Also,
1714 fix the saved high bound setting (Last_Opnd_High_Bound) in the
1715 empty string literal case (should have been low bound minus one,
1716 rather than plus one).
1717
1718 2012-01-23 Thomas Quinot <quinot@adacore.com>
1719
1720 * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
1721 omit statement SCOs for disabled pragmas.
1722
1723 2012-01-23 Matthew Heaney <heaney@adacore.com>
1724
1725 * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
1726 a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
1727 a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
1728 a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
1729 Cursor'Write): Declare in private part.
1730 (Reference_Type'Read, Reference_Type'Write): Ditto.
1731 (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
1732
1733 2012-01-23 Robert Dewar <dewar@adacore.com>
1734
1735 * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
1736 reformatting.
1737
1738 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1739
1740 * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
1741 Corresponding_Body on a defaulted null formal subprogram.
1742 * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
1743 on a defaulted formal subprogram that is a null procedure.
1744
1745 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1746
1747 * exp_ch9.adb: Update the comments involving pragma Implemented.
1748 * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
1749 constant Subp_Alias and local variable Impl_Subp. Properly
1750 handle aliases of synchronized wrappers. Code cleanup.
1751 (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
1752 Name_Optional as part of the condition.
1753 * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
1754 valid choices of implementation kind.
1755 (Check_Arg_Is_One_Of): New routine.
1756 * snames.ads-tmlp: Add Name_Optional.
1757
1758 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1759
1760 * par-ch13.adb: Better error recovery in illegal aspect
1761 specification.
1762
1763 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1764
1765 * a-calend.adb: Add with clause for Interfaces.C. Add constant
1766 Unix_Max.
1767 (Day_Of_Week): Call the internal UTC_Time_Offset.
1768 (Split): Call the internal UTC_Time_Offset.
1769 (Time_Of): Call the internal UTC_Time_Offset.
1770 (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
1771 (UTC_Time_Offset): New library-level routine.
1772 * a-calend.ads (UTC_Time_Offset): Remove parameter
1773 Is_Historic. Update related comment on usage.
1774 * a-catizo.adb (UTC_Time_Offset): Removed.
1775 (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
1776 * a-caltizo.ads (UTC_Time_Offset): Removed.
1777 (UTC_Time_Offset (Time)): Add back the default expression of parameter
1778 Date.
1779
1780 2012-01-23 Robert Dewar <dewar@adacore.com>
1781
1782 * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1783 (pg,po,ps): Make sure each entry starts on new line.
1784
1785 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1786
1787 * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1788 the parameter profile of procedure localtime_tzoff and its associated
1789 comment.
1790 (Day_Of_Week): Do not treat the input date as historical
1791 with respect to time zones.
1792 (Split): Do not treat the input
1793 date as historical with respect to time zones. (Time_Of): Do
1794 not treat the input constituents as forming a historical date
1795 with respect to time zones.
1796 (UTC_Time_Offset): Add new formal
1797 parameter Is_Historic. Add local variable Flag. Update the call
1798 to localtime_tzoff.
1799 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1800 (UTC_Time_Offset (Time)): Update the call to
1801 Time_Zone_Operations.UTC_Time_Offset.
1802 * sysdep.c (__gnat_localtime_tzoff): Update parameter
1803 profile. Split the processing of offsets on Windows into two - one
1804 part of historic time stamps and the other for the current time.
1805
1806 2012-01-23 Robert Dewar <dewar@adacore.com>
1807
1808 * a-calend.adb: Minor reformatting.
1809
1810 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1811
1812 * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1813 interface in requeue statement.
1814
1815 2012-01-23 Cyrille Comar <comar@adacore.com>
1816
1817 * projects.texi: Remove references to main units and replace
1818 with references to main programs to be coherent with the
1819 documentation.
1820
1821 2012-01-23 Robert Dewar <dewar@adacore.com>
1822
1823 * s-utf_32.adb: Minor reformatting.
1824
1825 2012-01-23 Vincent Celier <celier@adacore.com>
1826
1827 * snames.ads-tmpl: Minor comment addition Indicate that
1828 Name_Library_Encapsulated_Options is only used in gprbuild.
1829
1830 2012-01-23 Robert Dewar <dewar@adacore.com>
1831
1832 * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1833 restrictions.
1834
1835 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1836
1837 * snames.ads-tmpl: Add Name_Synchronization.
1838 * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1839 enumeration type and related maps.
1840 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1841 Synchronization, build corresponding pragma Implemented.
1842 * sem_util.adb (Implementation_Kind): Handle both explicit and
1843 implicit pragma_argument association to retrieve the given
1844 synchronization mode.
1845
1846 2012-01-23 Robert Dewar <dewar@adacore.com>
1847
1848 * sem_ch10.adb, errout.adb: Minor reformatting.
1849
1850 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1851
1852 * sem_res.adb (Resolve_Actuals): An actual in a call to an
1853 Ada 2012 Reference function does not lead to a dangerous order
1854 dependence.
1855
1856 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1857
1858 * exp_util.adb (Is_Iterated_Container): Test
1859 Is_Entity_Name when searching for calls to the default iterator,
1860 to avoid blowing up on indirect calls which have an explicit
1861 dereference as the call name.
1862
1863 2012-01-23 Thomas Quinot <quinot@adacore.com>
1864
1865 * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1866 the complete expanded name, rather than just its Selector_Name.
1867
1868 2012-01-23 Thomas Quinot <quinot@adacore.com>
1869
1870 * a-textio.adb (Put): Rewrite one-parameter Character version to
1871 just call the two-parameter one with Current_Out.
1872
1873 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1874
1875 * freeze.adb (Check_Current_Instance): Issue an
1876 error when the prefix of 'Unchecked_Access or 'Access does not
1877 denote a legal aliased view of a type.
1878 (Freeze_Record_Type): Do not halt the processing of record components
1879 once the Has_Controlled_Component is set as this bypasses the remaining
1880 checks.
1881 (Is_Aliased_View_Of_Type): New routine.
1882
1883 2012-01-23 Thomas Quinot <quinot@adacore.com>
1884
1885 * errout.ads, freeze.adb: Minor reformatting.
1886
1887 2012-01-23 Thomas Quinot <quinot@adacore.com>
1888
1889 * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1890 messages.
1891
1892 2012-01-23 Olivier Hainque <hainque@adacore.com>
1893
1894 * adadecode.c (__gnat_decode): Deal with empty input early,
1895 preventing potential erroneous memory access later on.
1896
1897 2012-01-21 Eric Botcazou <ebotcazou@adacore.com>
1898
1899 PR ada/46192
1900 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1901 renaming, preserve the volatileness through the indirection, if any.
1902
1903 2012-01-14 Andreas Schwab <schwab@linux-m68k.org>
1904
1905 * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1906 $(GNATLIBCFLAGS).
1907
1908 2012-01-10 Pascal Obry <obry@adacore.com>
1909
1910 * prj-nmsc.adb (Check_Library_Attributes):
1911 Kill check for object/source directories for aggregate libraries.
1912
1913 2012-01-10 Matthew Heaney <heaney@adacore.com>
1914
1915 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1916 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1917 a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1918 a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1919 a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1920 a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1921 a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1922 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1923 a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1924 container parameter as aliased in/in out.
1925 Code clean ups.
1926
1927 2012-01-10 Bob Duff <duff@adacore.com>
1928
1929 * s-os_lib.ads: Improve comment.
1930
1931 2012-01-10 Geert Bosch <bosch@adacore.com>
1932
1933 * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1934 for complex Scalar.
1935
1936 2012-01-10 Bob Duff <duff@adacore.com>
1937
1938 * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1939 checking that the 'Size is correct. If the type is "mod 2**12",
1940 for example, it's illegal, but Esize is the 'Object_Size, which
1941 will be something like 16 or 32, so the error ('Size = 12) was
1942 not detected.
1943 * gnat_rm.texi: Improve documentation of shift
1944 and rotate intrinsics.
1945
1946 2012-01-10 Pascal Obry <obry@adacore.com>
1947
1948 * prj.adb (For_Every_Project_Imported): Fix
1949 implementation to make sure we return each project only once
1950 for aggragte libraries. It is fine to return a project twice for
1951 aggregate projects, this was the case as a Project_Id is different
1952 in each project tree. The new implementation use a table based on
1953 the project name to ensure proper detection of duplicate project
1954 in aggregate library. A new context is then created to continue
1955 retrurning duplicate project for aggregate libraries.
1956
1957 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1958
1959 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1960 return value in the variable-sized return type case if the target is
1961 an array with fixed size. However, do not create it if this is the
1962 expression of an object declaration.
1963
1964 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1965
1966 * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1967
1968 2012-01-06 Robert Dewar <dewar@adacore.com>
1969
1970 * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1971 s-utf_32.ads: Add pragma Pure
1972 * s-utf_32.adb: Suppress warnings on non-static constants (now
1973 that this is Pure).
1974
1975 2012-01-06 Bob Duff <duff@adacore.com>
1976
1977 * s-rpc.ads (Read, Write): Add overriding indicators.
1978
1979 2012-01-06 Robert Dewar <dewar@adacore.com>
1980
1981 * gnat_rm.texi: Add documentation for conventions
1982 Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1983
1984 2012-01-06 Gary Dismukes <dismukes@adacore.com>
1985
1986 * a-tienio.adb (Put): Add exception message on
1987 raise statements. Remove unneeded blocks and object declarations.
1988
1989 2012-01-06 Robert Dewar <dewar@adacore.com>
1990
1991 * sem_prag.adb: Minor reformatting.
1992
1993 2012-01-06 Ed Schonberg <schonberg@adacore.com>
1994
1995 * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1996 that a selected component within a generic unit has been resolved
1997 as a prefixed call with local references.
1998 * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1999 component is always visible.
2000 * sem_ch4.adb (Analyze_Selected_Component): If the node is a
2001 prefixed call in an instance, do not look for visible components
2002 of the type.
2003 * sem_ch12.adb (Reset_Entity): If a selected component has resolved
2004 to a prefixed call, mark the node accordingly when prefix and
2005 selector are local references.
2006
2007 2012-01-02 Eric Botcazou <ebotcazou@adacore.com>
2008
2009 * gnatvsn.ads (Current_Year): Bump to 2012.
2010 \f
2011 Copyright (C) 2012 Free Software Foundation, Inc.
2012
2013 Copying and distribution of this file, with or without modification,
2014 are permitted in any medium without royalty provided the copyright
2015 notice and this notice are preserved.