]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
PR ada/82393
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2017-10-05 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR ada/82393
4 * mingw32.h (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Delete.
5 * sysdep.c (__gnat_set_mode ): Use DJGPP version for Cygwin.
6
7 2017-09-15 Martin Liska <mliska@suse.cz>
8
9 Backport from mainline
10 2017-08-29 Martin Liska <mliska@suse.cz>
11
12 PR other/39851
13 * gcc-interface/trans.c (Pragma_to_gnu): Set argument to NULL.
14
15 2017-09-09 Eric Botcazou <ebotcazou@adacore.com>
16
17 * gcc-interface/decl.c (promote_object_alignment): New function taken
18 from...
19 (gnat_to_gnu_entity) <E_Variable>: ...here. Invoke it.
20 (gnat_to_gnu_field): If the field is Atomic or VFA, invoke it and
21 create a padding type on success before doing the atomic check.
22
23 2017-09-09 Eric Botcazou <ebotcazou@adacore.com>
24
25 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Apply the
26 promotion to static memory earlier in the processing.
27
28 2017-09-09 Eric Botcazou <ebotcazou@adacore.com>
29
30 * sem_util.ads (Set_Rep_Info): New inline procedure.
31 * sem_util.adb (Set_Rep_Info): Implement it.
32 * sem_ch3.adb (Process_Subtype): If the case of a constraint present,
33 always copy the representation aspects onto the subtype.
34 * gcc-interface/decl.c (gnat_to_gnu_entity): Only set the TYPE_ALIGN_OK
35 and TYPE_BY_REFERENCE_P flags on types after various promotions.
36 * gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
37 Consider all kinds of entities.
38
39 2017-09-05 Eric Botcazou <ebotcazou@adacore.com>
40
41 PR ada/62235
42 * gcc-interface/decl.c (gnat_to_gnu_entity): Skip regular processing
43 for Itypes that are E_Record_Subtype with a cloned subtype.
44 <E_Record_Subtype>: Use the DECL of the cloned type directly, if any.
45
46 2017-09-05 Eric Botcazou <ebotcazou@adacore.com>
47
48 * gcc-interface/utils.c (unchecked_convert): When the result type is a
49 non-biased integral type with size 0, set the result to 0 directly.
50
51 2017-09-05 Eric Botcazou <ebotcazou@adacore.com>
52
53 * gcc-interface/trans.c (Call_to_gnu): If this is a function call and
54 there is no target, do not create a temporary for the return value for
55 an allocator either.
56
57 2017-09-05 Eric Botcazou <ebotcazou@adacore.com>
58
59 * gcc-interface/trans.c (pos_to_constructor): Skip conversions to an
60 unconstrained array type.
61
62 2017-08-14 Release Manager
63
64 * GCC 7.2.0 released.
65
66 2017-07-15 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
67
68 PR ada/81446
69 * system-linux-m68k.ads: Add pragma No_Elaboration_Code_All.
70 (Backend_Overflow_Checks): Set to True.
71
72 2017-06-15 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
73
74 PR ada/81105
75 * gcc-interface/Makefile.in (x86 kfreebsd): Adjust system.ads setting.
76 (i[3456]86-pc-gnu): Likewise.
77 (x86_64 kfreebsd): Likewise.
78
79 2017-06-12 Eric Botcazou <ebotcazou@adacore.com>
80
81 PR ada/81070
82 * s-interr-hwint.adb: Reinstate.
83 * gcc-interface/Makefile.in (RTEMS): Use it again.
84
85 2017-06-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
86
87 Backport from mainline
88 2017-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
89
90 * Makefile.in (rtems): Use TLS implementation for s-tpopsp.adb.
91 * s-tpopsp-rtems.adb: Delete.
92
93 2017-05-22 Eric Botcazou <ebotcazou@adacore.com>
94
95 * gcc-interface/decl.c (gnat_to_gnu_entity): Skip regular processing
96 for Itypes that are E_Access_Subtype.
97 <E_Access_Subtype>: Use the DECL of the base type directly.
98
99 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
100
101 PR ada/80784
102 Backport from mainline
103
104 2017-05-02 Ed Schonberg <schonberg@adacore.com>
105
106 * exp_ch3.adb (Freeze_Type): Do not generate an invariant
107 procedure body for a local (sub)type declaration within a
108 predicate function. Invariant checks do not apply to these, and
109 the expansion of the procedure will happen in the wrong scope,
110 leading to misplaced freeze nodes.
111
112 2017-05-12 Eric Botcazou <ebotcazou@adacore.com>
113
114 * system-linux-arm.ads (Memory_Size): Use Long_Integer'Size
115 instead of Word_Size.
116
117 Revert
118 2017-03-28 Andreas Schwab <schwab@suse.de>
119
120 PR ada/80117
121 * system-linux-aarch64-ilp32.ads: New file.
122 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS_COMMON): Rename
123 from LIBGNAT_TARGET_PAIRS.
124 (LIBGNAT_TARGET_PAIRS_32, LIBGNAT_TARGET_PAIRS_64): Define.
125 (LIBGNAT_TARGET_PAIRS): Use LIBGNAT_TARGET_PAIRS_COMMON, and
126 LIBGNAT_TARGET_PAIRS_64 or LIBGNAT_TARGET_PAIRS_32 for -mabi=lp64
127 or -mabi=ilp32, resp.
128
129 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
130
131 Back port from mainline
132 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
133
134 PR ada/80626
135 * system-linux-x86.ads (Memory_Size): Use Long_Integer'Size
136 instead of Word_Size.
137
138 2017-05-02 Release Manager
139
140 * GCC 7.1.0 released.
141
142 2017-04-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
143
144 * system-linux-s390.ads: Use Long_Integer'Size to define
145 Memory_Size.
146
147 2017-04-04 Eric Botcazou <ebotcazou@adacore.com>
148
149 * sem_ch3.adb (Build_Derived_Record_Type): Fix long line.
150
151 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
152
153 * doc/gnat_ugn/gnat_and_program_execution.rst: Fix typo.
154 * g-socket.adb (To_Host_Entry): Fix typo in comment.
155 * gnat_ugn.texi: Fix typo.
156 * raise.c (_gnat_builtin_longjmp): Fix capitalization in comment.
157 * s-stposu.adb (Allocate_Any_Controlled): Fix typo in comment.
158 * sem_ch3.adb (Build_Derived_Record_Type): Likewise.
159 * sem_util.adb (Mark_Coextensions): Likewise.
160 * sem_util.ads (Available_Full_View_Of_Component): Likewise.
161
162 2017-03-28 Andreas Schwab <schwab@suse.de>
163
164 PR ada/80117
165 * system-linux-aarch64-ilp32.ads: New file.
166 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS_COMMON): Rename
167 from LIBGNAT_TARGET_PAIRS.
168 (LIBGNAT_TARGET_PAIRS_32, LIBGNAT_TARGET_PAIRS_64): Define.
169 (LIBGNAT_TARGET_PAIRS): Use LIBGNAT_TARGET_PAIRS_COMMON, and
170 LIBGNAT_TARGET_PAIRS_64 or LIBGNAT_TARGET_PAIRS_32 for -mabi=lp64
171 or -mabi=ilp32, resp.
172
173 2017-03-14 James Cowgill <James.Cowgill@imgtec.com>
174
175 * s-osinte-linux.ads (struct_sigaction): Use correct type for sa_flags.
176
177 2017-03-08 Thanassis Tsiodras <ttsiodras@gmail.com>
178
179 PR ada/79903
180 * socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.
181
182 2017-03-08 Eric Botcazou <ebotcazou@adacore.com>
183
184 PR ada/79945
185 * system-linux-ppc.ads (Default_Bit_Order): Use Standard's setting.
186
187 * system-linux-arm.ads (Default_Bit_Order): Likewise.
188 * system-linux-mips.ads (Default_Bit_Order): Likewise.
189 * system-linux-armeb.ads: Delete.
190 * system-linux-mipsel.ads: Likewise.
191 * gcc-interface/Makefile.in (MIPS/Linux): Adjust.
192 (ARM/Linux): Likewise.
193
194 2017-02-24 Jakub Jelinek <jakub@redhat.com>
195
196 PR c/79677
197 * gcc-interface/misc.c (gnat_handle_option): Pass true to
198 handle_generated_option GENERATED_P.
199
200 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
201
202 * gcc-interface/decl.c (gnat_to_gnu_field): Do not remove the wrapper
203 around a justified modular type if it doesn't have the same scalar
204 storage order as the enclosing record type.
205
206 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
207
208 * gcc-interface/trans.c (gnat_to_gnu): Do not apply special handling
209 of boolean rvalues to function calls.
210
211 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
212
213 * gcc-interface/utils.c (fold_bit_position): New function.
214 (rest_of_record_type_compilation): Call it instead of bit_position to
215 compute the field position and remove the call to remove_conversions.
216 (compute_related_constant): Factor out the multiplication in both
217 operands, if any, and streamline the final test.
218
219 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
220
221 * gcc-interface/trans.c (return_value_ok_for_nrv_p): Add sanity check.
222
223 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
224
225 * gcc-interface/decl.c: Include demangle.h.
226 (is_cplusplus_method): Return again true for a primitive operation
227 only if it is dispatching. For a subprogram with an interface name,
228 call the demangler to get the number of C++ parameters and compare it
229 with the number of Ada parameters.
230
231 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
232
233 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
234 there is no end label, put the location of the At_End procedure on
235 the call to the procedure.
236
237 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
238
239 * gcc-interface/misc.c (gnat_type_max_size): Try to return a meaningful
240 value for array types with TYPE_INDEX_TYPE set on their domain type.
241 * gcc-interface/utils.c (max_size): For operations and expressions, do
242 not build a new node if the operands have not changed or are missing.
243
244 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
245
246 * gcc-interface/utils.c (max_size) <tcc_expression>: Flip the second
247 argument when recursing on TRUTH_NOT_EXPR.
248
249 2017-02-12 John Marino <gnugcc@marino.st>
250
251 * system-freebsd-x86.ads: Rename into...
252 * system-freebsd.ads: ...this.
253 (Default_Bit_Order): Define using Standard'Default_Bit_Order.
254 * gcc-interface/Makefile.in: Support aarch64-freebsd.
255 (x86-64/FreeBSD): Adjust to above renaming.
256 (i386/FreeBSD): Likewise.
257
258 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
259
260 * comperr.adb: Update FSF bug reporting URL.
261
262 2017-02-01 Eric Botcazou <ebotcazou@adacore.com>
263 Jakub Jelinek <jakub@redhat.com>
264
265 PR ada/79309
266 * adaint.c (__gnat_killprocesstree): Fix broken string handling.
267
268 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
269
270 PR lto/79061
271 * gcc-interface/utils.c (get_global_context): Pass main_input_filename
272 to build_translation_unit_decl.
273
274 2017-01-23 Javier Miranda <miranda@adacore.com>
275
276 * sem_util.adb (New_Copy_Tree): Code cleanup:
277 removal of the internal map (ie. variable Actual_Map, its
278 associated local variables, and all the code handling it).
279 * sem_ch9.adb (Analyze_Task_Type_Declaration): in GNATprove mode
280 force loading of the System package when processing a task type.
281 (Analyze_Protected_Type_Declaration): in GNATprove mode force
282 loading of the System package when processing a protected type.
283 * sem_ch10.adb (Analyze_Compilation_Unit): in GNATprove mode
284 force loading of the System package when processing compilation
285 unit with a main-like subprogram.
286 * frontend.adb (Frontend): remove forced loading of the System
287 package.
288
289 2017-01-23 Ed Schonberg <schonberg@adacore.com>
290
291 * sem_prag.adb (Default_Initial_Condition): If the desired type
292 declaration is a derived type declaration with discriminants,
293 it is rewritten as a private type declaration.
294 * sem_ch13.adb (Replace_Type_References_Generic,
295 Visible_Component): A discriminated private type with descriminnts
296 has components that must be rewritten as selected components
297 if they appear as identifiers in an aspect expression such as
298 a Default_Initial_Condition.
299 * sem_util.adb (Defining_Entity): support N_Iterator_Specification
300 nodes.
301
302 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
303
304 * ghost.ads, ghost.adb (Is_Ignored_Ghost_Unit): New routine.
305 * gnat1drv.adb Generate an empty object file for an ignored
306 Ghost compilation unit.
307 * inline.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
308
309 2017-01-23 Yannick Moy <moy@adacore.com>
310
311 * sem_ch4.adb (Analyze_Indexed_Component_Form):
312 Adapt to inlined prefix with string literal subtype.
313 * inline.adb (Expand_Inlined_Call): Keep unchecked
314 conversion inside inlined call when formal type is constrained.
315
316 2017-01-23 Javier Miranda <miranda@adacore.com>
317
318 * sem_util.adb (New_Copy_Tree): Code cleanup:
319 removal of global variables. All the global variables, global
320 functions and tables of this subprogram are now declared locally.
321
322 2017-01-23 Gary Dismukes <dismukes@adacore.com>
323
324 * exp_strm.ads: Minor reformatting and typo fixes.
325
326 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
327
328 * sem_aggr.adb, par_sco.adb, exp_util.adb, sem.adb, sem_ch4.adb,
329 exp_aggr.adb: Minor reformatting.
330 * g-diopit.adb: minor grammar/punctuation fix in comment.
331 * g-byorma.ads: minor fix of unbalanced parens in comment.
332
333 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
334
335 * par.adb: Update the documentation of component Labl.
336 * par-ch6.adb (P_Return_Statement): Set the expected label of
337 an extended return statement to Error.
338
339 2017-01-23 Tristan Gingold <gingold@adacore.com>
340
341 * s-boustr.ads, s-boustr.adb (Is_Full): New function.
342
343 2017-01-23 Ed Schonberg <schonberg@adacore.com>
344
345 * expander.adb: Handle N_Delta_Aggregate.
346
347 2017-01-23 Javier Miranda <miranda@adacore.com>
348
349 * exp_ch6.adb (Expand_Call): Improve the code that
350 checks if some formal of the called subprogram is a class-wide
351 interface, to handle subtypes of class-wide interfaces.
352
353 2017-01-23 Javier Miranda <miranda@adacore.com>
354
355 * checks.adb (Apply_Parameter_Aliasing_Checks):
356 Remove side effects of the actuals before generating the overlap
357 check.
358
359 2017-01-23 Justin Squirek <squirek@adacore.com>
360
361 * exp_strm.ads, exp_strm.ads
362 (Build_Record_Or_Elementary_Input_Function): Add an extra parameter so
363 as to avoid getting the underlying type by default.
364 * exp_attr.adb (Expand_N_Attribute_Reference): Remove use of
365 underlying type in the Iiput and output attribute cases when
366 building their respective functions.
367
368 2017-01-23 Gary Dismukes <dismukes@adacore.com>
369
370 * scng.adb: Minor reformatting of error message.
371
372 2017-01-23 Ed Schonberg <schonberg@adacore.com>
373
374 * sem_ch6.adb (Analyze_Expression_Function): Do not attempt
375 to freeze the return type of an expression funxtion that is a
376 completion, if the type is a limited view and the non-limited
377 view is available.
378
379 2017-01-23 Ed Schonberg <schonberg@adacore.com>
380
381 * par-ch4.adb (P_Aggregate_Or_Parent_Expr): Recognize delta
382 aggregate construct.
383 (P_Record_Or_Array_Component_Association): An array aggregate
384 can start with an Iterated_Component_Association.
385 * scng.adb: Modify error message on improper use of @ in earlier
386 versions of the language.
387 * sinfo.ads: New node kind N_Delta_Aggregate.
388 * sinfo.adb: An N_Delta_Aggregate has component associations and
389 an expression.
390 * sem_res.adb (Resolve): Call Resolve_Delta_Aggregate.
391 * sem_aggr.ads, sem_aggr.adb (Resolve_Iterated_Component_Association):
392 Create a new index for each one of the choices in the association,
393 to prevent spurious homonyms in the scope.
394 (Resolve_Delta_Aggregate): New.
395 * sem.adb: An N_Delta_Aggregate is analyzed like an aggregate.
396 * exp_util.adb (Insert_Actions): Take into account
397 N_Delta_Aggregate.
398 * exp_aggr.ads: New procedure Expand_N_Delta_Aggregate.
399 * exp_aggr.adb: New procedure Expand_N_Delta_Aggregate,
400 and local procedures Expand_Delta_Array_Aggregate and
401 expand_Delta_Record_Aggregate.
402 * sprint.adb: Handle N_Delta_Aggregate.
403
404 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
405
406 * exp_ch11.adb (Expand_N_Exception_Declaration): Generate an
407 empty name when the exception declaration is subject to pragma
408 Discard_Names.
409 (Null_String): New routine.
410
411 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
412
413 * par-ch9.adb (P_Protected_Definition): Parse
414 any optional and potentially illegal pragmas which appear in
415 a protected operation declaration list.
416 (P_Task_Items): Parse
417 any optional and potentially illegal pragmas which appear in a
418 task item list.
419
420 2017-01-23 Pascal Obry <obry@adacore.com>
421
422 * s-taprop-mingw.adb (Enter_Task): Initialize the Thread handle which
423 is needed when a foreign thread call a Win32 API using a thread handle
424 like GetThreadTimes() for example.
425
426 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
427
428 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not
429 allow an 'Address clause to be specified on a prefix of a
430 class-wide type.
431
432 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
433
434 * checks.adb (Insert_Valid_Check): Ensure that the prefix of
435 attribute 'Valid is a renaming of the original expression when
436 the expression denotes a name. For all other kinds of expression,
437 use a constant to capture the value.
438 * exp_util.adb (Is_Name_Reference): Moved to Sem_Util.
439 * sem_util.ads, sem_util.adb (Is_Name_Reference): Moved from Exp_Util.
440
441 2017-01-23 Justin Squirek <squirek@adacore.com>
442
443 * sem_eval.adb (Eval_Integer_Literal): Add special
444 case to avoid optimizing out check if the literal appears in
445 an if-expression.
446
447 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
448
449 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not
450 allow an 'Address clause to be specified on a prefix of a
451 class-wide type.
452
453 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
454
455 * checks.adb (Insert_Valid_Check): Ensure that the prefix of
456 attribute 'Valid is a renaming of the original expression when
457 the expression denotes a name. For all other kinds of expression,
458 use a constant to capture the value.
459 * exp_util.adb (Is_Name_Reference): Moved to Sem_Util.
460 * sem_util.ads, sem_util.adb (Is_Name_Reference): Moved from Exp_Util.
461
462 2017-01-23 Justin Squirek <squirek@adacore.com>
463
464 * sem_eval.adb (Eval_Integer_Literal): Add special
465 case to avoid optimizing out check if the literal appears in
466 an if-expression.
467
468 2017-01-23 Ed Schonberg <schonberg@adacore.com>
469
470 * sem_ch4.adb (Try_Primitive_Operations,
471 Is_Valid_First_Argument_Of): argument is valid if it is a derived
472 type with unknown discriminants that matches its underlying
473 record view.
474 * exp_util.adb (Expand_Subtype_From_Expr): Do not expand
475 expression if its type is derived from a limited type with
476 unknown discriminants, because the expansion (which is a call)
477 must be expanded in the enclosing context to add the proper build-
478 in-place parameters to the call.
479 * lib.ads, exp_ch9.adb: Minor fixes in comments.
480
481 2017-01-23 Yannick Moy <moy@adacore.com>
482
483 * frontend.adb (Frontend): Do not load runtime
484 unit for GNATprove when parsing failed.
485 * exp_ch9.adb: minor removal of extra whitespace
486 * exp_ch6.adb: minor typo in comment
487 * sem_util.adb: Code cleanup.
488 * exp_ch9.ads, par-ch2.adb: minor style fixes in whitespace and comment
489 * a-ngcefu.adb: minor style fix in whitespace
490
491 2017-01-23 Thomas Quinot <quinot@adacore.com>
492
493 * scos.ads: Document usage of 'd' as default SCO kind for
494 declarations.
495 * par_sco.adb (Traverse_Declarations_Or_Statements.
496 Traverse_Degenerate_Subprogram): New supporting routine for expression
497 functions and null procedures.
498 (Traverse_Declarations_Or_Statements.Traverse_One): Add
499 N_Expression_Function to the subprogram case; add required
500 support for null procedures and expression functions.
501
502 2017-01-23 Bob Duff <duff@adacore.com>
503
504 * namet.ads (Bounded_String): Decrease the size of type
505 Bounded_String to avoid running out of stack space.
506 * namet.ads (Append): Don't ignore buffer overflow; raise
507 Program_Error instead.
508
509 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
510
511 * exp_ch5.adb, freeze.adb, par-ch4.adb, scng.adb, sem_ch13.adb,
512 sem_ch3.adb, sem_ch5.adb, sem_ch5.ads, sem_util.adb, sinfo.ads: Minor
513 reformatting.
514 * exp_ch9.adb: minor style fix in comment.
515
516 2017-01-23 Ed Schonberg <schonberg@adacore.com>
517
518 * sem_ch4.adb (Analyze_Allocator): Handle properly a type derived
519 for a limited record extension with unknown discriminants whose
520 full view has no discriminants.
521
522 2017-01-23 Yannick Moy <moy@adacore.com>
523
524 * exp_spark.adb: Alphabetize with clauses.
525
526 2017-01-23 Yannick Moy <moy@adacore.com>
527
528 * sem_util.adb (Has_Enabled_Property): Treat
529 protected objects and variables differently from other variables.
530
531 2017-01-23 Thomas Quinot <quinot@adacore.com>
532
533 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
534 Split original Ada 95 part off into new subprogram
535 below. Call that subprogram (instead of proceeding with
536 AI95-0133 behaviour) if debug switch -gnatd.p is in use.
537 (Adjust_Record_For_Reverse_Bit_Order_Ada_95): ... new subprogram
538 * debug.adb Document new switch -gnatd.p
539 * freeze.adb (Freeze_Entity.Freeze_Record_Type): Do not adjust
540 record for reverse bit order if an error has already been posted
541 on the record type. This avoids generating extraneous "info:"
542 messages for illegal code.
543
544 2017-01-23 Justin Squirek <squirek@adacore.com>
545
546 * sem_ch3.adb (Analyze_Declarations): Correct comments
547 * freeze.adb (Find_Constant): Add detection of deferred constants
548 so they are not incorrectly flagged as premature.
549
550 2017-01-23 Ed Schonberg <schonberg@adacore.com>
551
552 * scans.ads: New token At_Sign. Remove '@' from list of illegal
553 characters for future version of the language. '@' is legal name.
554 * scng.ads, scng.adb (Scan): Handle '@' appropriately.
555 * scn.adb (Scan_Reserved_Identifier): An occurrence of '@'
556 denotes a Target_Name.
557 * par-ch4.adb (P_Name, P_Primary): Handle Target_Name.
558 * sinfo.ads, sinfo.adb (N_Target_Name): New non-terminal node.
559 (Has_Target_Names): New flag on N_Assignment_Statement, to
560 indicate that RHS has occurrences of N_Target_Name.
561 * sem.adb: Call Analyze_Target_Name.
562 * sem_ch5.ads, sem_ch5.adb (Analyze_Target_Name): New subpogram.
563 (urrent_LHS): Global variable that denotes LHS of assignment,
564 used in the analysis of Target_Name nodes.
565 * sem_res.adb (Resolve_Target_Name): New procedure.
566 * exp_ch5.adb (Expand_Assign_With_Target_Names): (AI12-0125):
567 N is an assignment statement whose RHS contains occurences of @
568 that designate the value of the LHS of the assignment. If the
569 LHS is side-effect free the target names can be replaced with
570 a copy of the LHS; otherwise the semantics of the assignment
571 is described in terms of a procedure with an in-out parameter,
572 and expanded as such.
573 (Expand_N_Assignment_Statement): Call
574 Expand_Assign_With_Target_Names when needed.
575 * exp_util.adb (Insert_Actions): Take into account N_Target_Name.
576 * sprint.adb: Handle N_Target_Name.
577
578 2017-01-23 Eric Botcazou <ebotcazou@adacore.com>
579
580 * checks.adb: Minor fix in comment.
581
582 2017-01-23 Philippe Gil <gil@adacore.com>
583
584 * g-debpoo.adb (Do_Report) remove freed chunks from chunks
585 count in Sort = Memory_Usage or Allocations_Count
586
587 2017-01-23 Justin Squirek <squirek@adacore.com>
588
589 * sem_ch3.adb: Code cleanup.
590
591 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
592
593 * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Move all global
594 variables to the local variable section. Update the profile
595 of various nested routine that previously had visibility
596 of those globals. One the matching phase has completed,
597 remove certain classes of clauses which are considered noise.
598 (Check_Dependency_Clause): Properly detect a match between two
599 'Result attributes. Update the various post-match cases to use
600 Is_Already_Matched as this routine now automatically recognizes
601 a previously matched 'Result attribute.
602 (Is_Already_Matched): New routine.
603 (Remove_Extra_Clauses): New routine.
604 (Report_Extra_Clauses): Remove the detection of ... => null
605 clauses as this is now done in Remove_Extra_Clauses.
606
607 2017-01-23 Ed Schonberg <schonberg@adacore.com>
608
609 * sem_aggr.adb (Resolve_Array_Aggregate): In ASIS mode do not
610 report on spurious overlaps between values involving a subtype
611 with a static predicate, because the expansion of such a subtype
612 into individual ranges in inhibited in ASIS mode.
613
614 2017-01-23 Justin Squirek <squirek@adacore.com>
615
616 * sem_ch3.adb (Analyze_Declarations): Add detection
617 of an edge case and delay freezing if it is present.
618
619 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
620
621 * sem_ch3.adb, exp_spark.adb, exp_attr.adb, sem_ch9.adb, sem_prag.adb,
622 sem_util.adb, sem_warn.adb, exp_ch3.adb: Minor reformatting.
623
624 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
625
626 * freeze.adb (Freeze_Subprogram): Ensure that all anonymous
627 access-to-subprogram types inherit the convention of the
628 associated subprogram. (Set_Profile_Convention): New routine.
629 * sem_ch6.adb (Check_Conformance): Do not compare the conventions
630 of the two entities directly, use Conventions_Match to account
631 for anonymous access-to-subprogram and subprogram types.
632 (Conventions_Match): New routine.
633
634 2017-01-23 Claire Dross <dross@adacore.com>
635
636 * exp_spark.adb (Expand_SPARK_Attribute_Reference): For attributes
637 which return Universal_Integer, force the overflow check flag for
638 Length and Range_Length for types as big as Long_Long_Integer.
639
640 2017-01-23 Claire Dross <dross@adacore.com>
641
642 * exp_spark.adb (Expand_SPARK_Attribute_Reference): For
643 attributes which return Universal_Integer, introduce a conversion
644 to the expected type with the appropriate check flags set.
645 * sem_res.adb (Resolve_Range): The higher bound can be in Typ's
646 base type if the range is null. It may still be invalid if it
647 is higher than the lower bound. This is checked later in the
648 context in which the range appears.
649
650 2017-01-23 Pierre-Marie de Rodat <derodat@adacore.com>
651
652 * scos.ads: Introduce a constant to represent ignored
653 dependencies in SCO_Unit_Table_Entry.
654
655 2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
656
657 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Remove extra
658 spaces from error messages.
659
660 2017-01-23 Ed Schonberg <schonberg@adacore.com>
661
662 * exp_ch3.adb (Check_Large_Modular_Array): New procedure,
663 subsidiary to Expand_N_Object_ Declaration, to compute a guard on
664 an object declaration for an array type with a modular index type
665 with the size of Long_Long_Integer. Special processing is needed
666 in this case to compute reliably the size of the object, and
667 eventually to raise Storage_Error, when wrap-around arithmetic
668 might compute a meangingless size for the object.
669
670 2017-01-23 Justin Squirek <squirek@adacore.com>
671
672 * a-wtenau.adb, par-endh.adb, sem_prag.adb,
673 sem_type.adb: Code cleanups.
674
675 2017-01-23 Bob Duff <duff@adacore.com>
676
677 * sem_res.adb (Resolve_Call): In the part of the code where
678 it is deciding whether to turn the call into an indexed
679 component, avoid doing so if the call is to an instance of
680 Unchecked_Conversion. Otherwise, the compiler turns it into an
681 indexed component, and resolution of that turns it back into a
682 function call, and so on, resulting in infinite recursion.
683 * sem_util.adb (Needs_One_Actual): If the first formal has a
684 default, then return False.
685
686 2017-01-21 Eric Botcazou <ebotcazou@adacore.com>
687
688 * sem_eval.adb (Compile_Time_Compare): Reinstate the expr+literal (etc)
689 optimizations when the type is modular and the offsets are equal.
690
691 2017-01-20 Thomas Quinot <quinot@adacore.com>
692
693 * sem_warn.adb (Warn_On_Useless_Assignment): Adjust wording of warning
694 message.
695
696 2017-01-20 Nicolas Roche <roche@adacore.com>
697
698 * terminals.c: Ignore failures on setpgid and tcsetpgrp commands.
699
700 2017-01-20 Bob Duff <duff@adacore.com>
701
702 * sem_eval.adb (Compile_Time_Compare): Disable the expr+literal
703 (etc) optimizations when the type is modular.
704
705 2017-01-20 Yannick Moy <moy@adacore.com>
706
707 * sem_ch6.adb (Move_Pragmas): move some pragmas,
708 but copy the SPARK_Mode pragma instead of moving it.
709 (Build_Subprogram_Declaration): Ensure that the generated spec
710 and original body share the same SPARK_Pragma aspect/pragma.
711 * sem_util.adb, sem_util.ads (Copy_SPARK_Mode_Aspect): New
712 procedure to copy SPARK_Mode aspect.
713
714 2017-01-20 Bob Duff <duff@adacore.com>
715
716 * sem_ch3.adb (Analyze_Declarations): Disable Resolve_Aspects
717 even in ASIS mode.
718 * sem_ch13.adb (Resolve_Name): Enable setting the entity to
719 Empty even in ASIS mode.
720
721 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
722
723 * exp_ch9.adb: minor style fixes in comments.
724 * sem_ch9.adb (Analyze_Delay_Relative): in GNATprove mode a delay
725 relative statement introduces an implicit dependency on
726 Ada.Real_Time.Clock_Time.
727 * sem_util.adb: Minor reformatting.
728
729 2017-01-20 Ed Schonberg <schonberg@adacore.com>
730
731 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Alignment
732 must be treated as delayed aspect even if the expression is
733 a literal, because the aspect affects the freezing and the
734 elaboration of the object to which it applies.
735
736 2017-01-20 Tristan Gingold <gingold@adacore.com>
737
738 * s-osinte-vxworks.ads (Interrup_Range): New subtype.
739
740 2017-01-20 Ed Schonberg <schonberg@adacore.com>
741
742 * lib-xref.adb (Generate_Reference): Do not warn about the
743 presence of a pragma Unreferenced if the entity appears as the
744 actual in a procedure call that does not come from source.
745
746 2017-01-20 Pascal Obry <obry@adacore.com>
747
748 * expect.c, terminals.c: Fix some warnings about unused variables.
749 * gsocket.h, adaint.c, adaint.h: Fix some more warnings in the C part
750 of the runtime.
751
752 2017-01-20 Bob Duff <duff@adacore.com>
753
754 * exp_attr.adb (Constrained): Apply an access check (check that
755 the prefix is not null) when the prefix denotes an object of an
756 access type; that is, when there is an implicit dereference.
757
758 2017-01-20 Gary Dismukes <dismukes@adacore.com>
759
760 * s-rident.ads (constant Profile_Info): Remove
761 No_Calendar from GNAT_Extended_Ravenscar restrictions.
762
763 2017-01-20 Tristan Gingold <gingold@adacore.com>
764
765 * s-maccod.ads: Add pragma No_Elaboration_Code_All
766
767 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
768
769 * ghost.adb (Mark_Ghost_Clause): New routine.
770 (Prune_Node): Do not prune compilation unit nodes.
771 (Remove_Ignored_Ghost_Code): Prune the compilation unit node directly.
772 This does not touch the node itself, but does prune all its fields.
773 * ghost.ads (Mark_Ghost_Clause): New routine.
774 * sem_ch8.adb (Analyze_Use_Package): Emit an error when a use
775 package clause mentions Ghost and non-Ghost packages. Mark a
776 use package clause as Ghost when it mentions a Ghost package.
777 (Analyze_Use_Type): Emit an error when a use type clause mentions
778 Ghost and non-Ghost types. Mark a use type clause as Ghost when
779 it mentions a Ghost type.
780 * sem_ch10.adb (Analyze_With_Clause): Mark a with clause as
781 Ghost when it withs a Ghost unit.
782
783 2017-01-20 Javier Miranda <miranda@adacore.com>
784
785 * sem_res.adb (Resolve_Call): If a function call
786 returns a limited view of a type and at the point of the call the
787 function is not declared in the extended main unit then replace
788 it with the non-limited view, which must be available. If the
789 called function is in the extended main unit then no action is
790 needed since the back-end handles this case.
791
792 2017-01-20 Eric Botcazou <ebotcazou@adacore.com>
793
794 * sem_ch7.adb (Contains_Subp_Or_Const_Refs): Rename into...
795 (Contains_Subprograms_Refs): ...this. Adjust comment
796 for constants. (Is_Subp_Or_Const_Ref): Rename into...
797 (Is_Subprogram_Ref): ...this.
798 (Has_Referencer): Rename Has_Non_Subp_Const_Referencer variable into
799 Has_Non_Subprograms_Referencer and adjust comment. Remove
800 incorrect shortcut for package declarations and bodies.
801
802 2017-01-20 Ed Schonberg <schonberg@adacore.com>
803
804 * sem_ch3.adb (Complete_Private_Subtype): If the scope of the
805 base type differs from that of the completion and the private
806 subtype is an itype (created for a constraint on an access
807 type e.g.), set Delayed_Freeze on both to prevent out-of-scope
808 anomalies in gigi.
809
810 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
811
812 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
813 When inheriting the SPARK_Mode of a prior expression function,
814 look at the properly resolved entity rather than the initial
815 candidate which may denote a homonym.
816
817 2017-01-20 Ed Schonberg <schonberg@adacore.com>
818
819 * sem_prag.adb (Rewrite_Assertion_Kind): If the name is
820 Precondition or Postcondition, and the context is pragma
821 Check_Policy, indicate that this Pre-Ada2012 usage is deprecated
822 and suggest the standard names Assertion_Policy /Pre /Post
823 instead.
824
825 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
826
827 * sem_ch10.adb, sem_cat.adb: Minor reformatting.
828
829 2017-01-20 Javier Miranda <miranda@adacore.com>
830
831 * sem_ch3.adb (Access_Type_Declaration): Protect access to the
832 Entity attribute.
833 * sem_ch10.adb (Install_Siblings): Skip processing malformed trees.
834 * sem_cat.adb (Validate_Categoriztion_Dependency): Skip processing
835 malformed trees.
836
837 2017-01-20 Ed Schonberg <schonberg@adacore.com>
838
839 * sem_ch13.adb (Analyze_Aspect_Specification, case
840 Dynamic_Predicate): If the entity E is a subtype that inherits
841 a static predicate for its parent P,, the inherited and the
842 new predicate combine in the generated predicate function,
843 and E only has a dynamic predicate.
844
845 2017-01-20 Tristan Gingold <gingold@adacore.com>
846
847 * s-boustr.ads, s-boustr.adb: New package.
848 * Makefile.rtl: Add s-boustr.
849
850 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
851
852 * inline.adb (Process_Formals): Qualify the
853 expression of a return statement when it yields a universal type.
854
855 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
856
857 * freeze.adb (Freeze_All): Freeze the default
858 expressions of all eligible formal parameters that appear in
859 entries, entry families, and protected subprograms.
860
861 2017-01-20 Ed Schonberg <schonberg@adacore.com>
862
863 * sem_ch3.adb (Check_Nonoverridable_Aspects); Refine check
864 for illegal inherited Implicit_Dereference aspects with renamed
865 discriminants.
866
867 2017-01-20 Javier Miranda <miranda@adacore.com>
868
869 * debug.adb (switch d.6): do not avoid declaring unreferenced itypes.
870 * nlists.ads (Lock_Lists, Unlock_Lists): New subprograms.
871 * nlists.adb (Lock_Lists, Unlock_Lists): New subprograms.
872 (Set_First, Set_Last, Set_List_Link, Set_Next, Set_Parent,
873 Set_Prev, Tree_Read): Adding assertion.
874 * atree.ads (Lock_Nodes, Unlock_Nodes): New subprograms.
875 * atree.adb (Lock_Nodes, Unlock_Nodes): New subprograms.
876 (Set_Analyzed, Set_Check_Actuals, Set_Comes_From_Source,
877 Set_Ekind, Set_Error_Posted, Set_Has_Aspects,
878 Set_Is_Ignored_Ghost_Node, Set_Original_Node, Set_Paren_Count,
879 Set_Parent, Set_Sloc, Set_Nkind, Set_FieldNN, Set_NodeNN,
880 Set_ListNN, Set_ElistNN, Set_NameN, Set_StrN, Set_UintNN,
881 Set_UrealNN, Set_FlagNNN, Set_NodeN_With_Parent,
882 Set_ListN_With_Parent): Adding assertion.
883
884 2017-01-20 Ed Schonberg <schonberg@adacore.com>
885
886 * sem_prag.adb (Process_Convention): Diagnose properly a pragma
887 import that applies to several homograph subprograms. when one
888 of them is declared by a subprogram body.
889
890 2017-01-20 Justin Squirek <squirek@adacore.com>
891
892 * exp_ch6.adb (Expand_Call): Remove optimization
893 that nulls out calls to null procedures.
894
895 2017-01-20 Yannick Moy <moy@adacore.com>
896
897 * inline.adb (Expand_Inlined_Call): Keep more
898 precise type of actual for inlining whenever possible. In
899 particular, do not switch to the formal type in GNATprove mode in
900 some case where the GNAT backend might require it for visibility.
901
902 2017-01-20 Ed Schonberg <schonberg@adacore.com>
903
904 * sem_ch3.adb (Check_Non_Overridable_Aspects): An inherited
905 aspect Implicit_Dereference can be inherited by a full view if
906 the partial view has no discriminants, because there is no way
907 to apply the aspect to the partial view.
908 (Build_Derived_Record_Type): If derived type renames discriminants
909 of the parent, the new discriminant inherits the aspect from
910 the old one.
911 * sem_ch4.adb (Analyze_Call): Handle properly a parameterless
912 call through an access discriminant designating a subprogram.
913 * sem_ch5.adb (Analyze_Assignment): (Analyze_Call): Handle
914 properly a parameterless call through an access discriminant on
915 the left-hand side of an assignment.
916 * sem_res.adb (resolve): If an interpreation involves a
917 discriminant with an implicit dereference and the expression is an
918 entity, resolution takes place later in the appropriate routine.
919 * sem_ch13.adb (Analyze_Aspect_Implicit_Dereference): Recognize
920 access discriminants that designate a subprogram type.
921
922 2017-01-20 Pascal Obry <obry@adacore.com>
923
924 * a-locale.adb, a-locale.ads: Update Ada.Locales for RM 2012 COR:1:2016
925
926 2017-01-20 Yannick Moy <moy@adacore.com>
927
928 * sem_ch10.adb (Check_No_Elab_Code_All): Do not issue an error
929 on implicitly with'ed units in GNATprove mode.
930 * sinfo.ads (Implicit_With): Document use of flag for implicitly
931 with'ed units in GNATprove mode.
932
933 2017-01-20 Ed Schonberg <schonberg@adacore.com>
934
935 * sem_cat.adb (Validate_Static_Object_Name): In a preelaborated
936 unit Do not report an error on a non-static entity that appears
937 in the context of a spec expression, such as an aspect expression.
938
939 2017-01-20 Hristian Kirtchev <kirtchev@adacore.com>
940
941 * einfo.adb: Flag298 now denotes Is_Underlying_Full_View.
942 (Is_Underlying_Full_View): New routine.
943 (Set_Is_Underlying_Full_View): New routine.
944 (Write_Entity_Flags): Add an entry for Is_Underlying_Full_View.
945 * einfo.ads Add new attribute Is_Underlying_Full_View.
946 (Is_Underlying_Full_View): New routine along with pragma Inline.
947 (Set_Is_Underlying_Full_View): New routine along with pragma Inline.
948 * exp_util.adb (Build_DIC_Procedure_Body): Do not consider
949 class-wide types and underlying full views. The first subtype
950 is used as the working type for all Itypes, not just array base types.
951 (Build_DIC_Procedure_Declaration): Do not consider
952 class-wide types and underlying full views. The first subtype
953 is used as the working type for all Itypes, not just array
954 base types.
955 * freeze.adb (Freeze_Entity): Inherit the freeze node of a full
956 view or an underlying full view without clobbering the attributes
957 of a previous freeze node.
958 (Inherit_Freeze_Node): New routine.
959 * sem_ch3.adb (Build_Derived_Private_Type): Mark an underlying
960 full view as such.
961 (Build_Underlying_Full_View): Mark an underlying full view as such.
962 * sem_ch7.adb (Install_Private_Declarations): Mark an underlying
963 full view as such.
964
965 2017-01-20 Yannick Moy <moy@adacore.com>
966
967 * sinfo.ads: Document lack of Do_Division_Check flag
968 on float exponentiation.
969
970 2017-01-19 Javier Miranda <miranda@adacore.com>
971
972 * ghost.adb (Propagate_Ignored_Ghost_Code): Protect access to the
973 identifier attribute of a block-statement node. Required to avoid
974 assertion failure when building the new containers library.
975
976 2017-01-19 Bob Duff <duff@adacore.com>
977
978 * exp_ch3.adb: Update comment.
979
980 2017-01-19 Vincent Celier <celier@adacore.com>
981
982 * gprep.adb (Gnatprep): Parse the definition file without
983 "replace in comments" even when switch -C is used.
984
985 2017-01-19 Justin Squirek <squirek@adacore.com>
986
987 * exp_ch9.adb (Is_Pure_Barrier): Create function
988 Is_Count_Attribute to identify an expansion of the 'Count
989 attribute.
990
991 2017-01-19 Ed Schonberg <schonberg@adacore.com>
992
993 * sem_ch5.adb (Analyze_Loop_Statement): In GNATprove mode the
994 statements within an element iterator loop are only analyzed
995 agter the loop is rewritten. Within a generic the analysis must
996 be performed in any case to complete name capture.
997
998 2017-01-19 Bob Duff <duff@adacore.com>
999
1000 * sem_prag.adb (Analyze_Pragma): Check for ignored pragmas first,
1001 before checking for unrecognized pragmas.
1002 Initialize Pname on its declarations; that's always good style.
1003
1004 2017-01-19 Claire Dross <dross@adacore.com>
1005
1006 * exp_ch7.adb (Build_Invariant_Procedure_Body): Semi-insert the
1007 body into the tree for GNATprove by setting its Parent field. The
1008 components invariants of composite types are not checked by
1009 the composite type's invariant procedure in GNATprove mode.
1010 (Build_Invariant_Procedure_Declaration): Semi-insert the
1011 declaration into the tree for GNATprove by setting its Parent
1012 field.
1013 * freeze.adb (Freeze_Arry_Type):In GNATprove mode, do not add
1014 the component invariants to the array type invariant procedure
1015 so that the procedure can be used to check the array type
1016 invariants if any.
1017 (Freeze_Record_Type): In GNATprove mode, do
1018 not add the component invariants to the record type invariant
1019 procedure so that the procedure can be used to check the record
1020 type invariants if any.
1021
1022 2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
1023
1024 * lib-xref-spark_specific.adb: Minor reformatting.
1025 * exp_ch7.adb (Add_Parent_Invariants): Do not process array types.
1026
1027 2017-01-19 Javier Miranda <miranda@adacore.com>
1028
1029 * exp_aggr.adb (Pass_Aggregate_To_Back_End): Renamed as
1030 Build_Back_End_Aggregate.
1031 (Generate_Aggregate_For_Derived_Type): Code cleanup.
1032 (Prepend_Stored_Values): Code cleanup.
1033
1034 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1035
1036 * sem_ch6.adb (Analyze_Expression_Function): Check for an
1037 incomplete return type after attempting to freeze it, so that
1038 other freeze actiona are generated in the proper order.
1039
1040 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1041
1042 * sem_aggr.adb (Resolve_Aggregate): If the type is a string
1043 type, ie. a type whose component is a character type, and the
1044 aggregate is positional, do not convert into a string literal
1045 if the index type is not an integer type, because the original
1046 type may be required in an enclosing operation.
1047
1048 2017-01-19 Bob Duff <duff@adacore.com>
1049
1050 * binde.adb, debug.adb: Enable new elaboration order algorithm
1051 by default. -dp switch reverts to the old algorithm.
1052
1053 2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
1054
1055 * sem_ch3.adb Add with and use clauses for Exp_Ch7.
1056 (Analyze_Declarations): Create the DIC and Invariant
1057 procedure bodies s after all freezing has taken place.
1058 (Build_Assertion_Bodies): New routine.
1059 * sem_ch7.adb Remove the with and use clauses for Exp_Ch7
1060 and Exp_Util.
1061 (Analyze_Package_Specification): Remove the
1062 generation of the DIC and Invariant procedure bodies. This is
1063 now done by Analyze_Declarations.
1064 * sem_disp.adb (Check_Dispatching_Operation): DIC and Invariant
1065 procedures are never treated as primitives.
1066
1067 2017-01-19 Yannick Moy <moy@adacore.com>
1068
1069 * frontend.adb: Analyze inlined bodies and check elaboration
1070 rules in GNATprove mode too.
1071 * sem_elab.adb (Delay_Element): Add Boolean component to save
1072 indication that call is in SPARK code. (Check_Elab_Calls):
1073 Check elaboration rules in GNATprove mode, and correctly set
1074 the current value of SPARK_Mode.
1075 * lib-xref-spark_specific.adb
1076 (Add_SPARK_Xrefs): Simplify iteration over dereferences.
1077
1078 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1079
1080 * exp_ch4.adb (Expand_Concatenate): Do no enable overflow
1081 checks on the expression for the high bound of concatenation
1082 when checks are disabled, to suppress warnings about potential
1083 constraint errors in restricted runtimes.
1084
1085 2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
1086
1087 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Mark the
1088 representation-to-position function as inlined.
1089 * sem_cat.adb (Set_Categorization_From_Scope): Do not modify
1090 the purity of an internally generated entity if it has been
1091 explicitly marked as pure for optimization purposes.
1092 * exp_aggr.adb: Minor reformatting.
1093
1094 2017-01-19 Javier Miranda <miranda@adacore.com>
1095
1096 * exp_ch6.adb (Expand_Call): Remove side effects on
1097 actuals that are allocators with qualified expression since the
1098 initialization of the object is performed by means of individual
1099 statements (and hence it must be done before the call).
1100
1101 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1102
1103 * sem_ch3.adb (Analyze_Declarations): Minor reformatting.
1104 (Build_Derived_Enumeration_Type): If the derived type inherits a
1105 dynamic predicate from its parent, the bounds of the type must
1106 freeze because an explicit constraint is constructed for the
1107 type and the corresponding range is elaborated now.
1108
1109 2017-01-19 Arnaud Charlet <charlet@adacore.com>
1110
1111 * sem_attr.ads: minor fix of inconsistent casing in comment
1112 * lib-writ.ads: minor align comments in columns
1113 * sem_ch3.adb: Minor reformatting.
1114 * spark_xrefs.ads: minor fix typo in SPARK-related comment
1115 * table.ads: minor style fix in comment
1116 * lib-xref-spark_specific.adb
1117 (Add_SPARK_Xrefs): simplify processing of SPARK cross-references.
1118 * sem_ch12.adb: minor whitespace fix
1119 * freeze.adb: Add comment.
1120 * sem_util.adb (Unique_Name): for instances of
1121 generic subprograms ignore the name of the wrapper package.
1122
1123 2017-01-19 Javier Miranda <miranda@adacore.com>
1124
1125 * exp_aggr.adb (Resolve_Record_Aggregate):
1126 Factorize code needed for aggregates of limited and unlimited
1127 types in a new routine.
1128 (Pass_Aggregate_To_Back_End): New subprogram.
1129
1130 2017-01-19 Yannick Moy <moy@adacore.com>
1131
1132 * sinfo.adb (Pragma_Name): Only access up to Last_Pair of Pragma_Map.
1133
1134 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1135
1136 * sem_ch4.ads, sem_ch4.adb (Try_Object_Operation): Make subprogram
1137 public, for use elsewhere.
1138 * sem_ch6.adb (Analyze_Procedure_Call): In SPARK_Mode and within
1139 an Inlined_body, recognize a call that uses object notation
1140 and has not been rewritten as a regular call because regular
1141 expansion has not taken place.
1142
1143 2017-01-19 Bob Duff <duff@adacore.com>
1144
1145 * checks.adb (Apply_Type_Conversion_Checks): Disable small optimization
1146 in case of generic formal discrete types, because it causes crashes in
1147 the compiler when built with assertions on.
1148
1149 2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
1150
1151 * lib-xref-spark_specific.adb, sem_util.adb, sem_util.ads,
1152 sem_ch4.adb, sem_ch8.adb, lib-xref.ads: Minor reformatting.
1153
1154 2017-01-19 Bob Duff <duff@adacore.com>
1155
1156 * bcheck.adb (Check_Consistent_Dynamic_Elaboration_Checking):
1157 Increment Warnings_Detected. It was decrementing, which is
1158 wrong since we just issued a warning message.
1159 * binderr.ads (Errors_Detected, Warnings_Detected): Declare
1160 these variables to be of subtype Nat instead of Int, because
1161 they should never be negative.
1162
1163 2017-01-19 Javier Miranda <miranda@adacore.com>
1164
1165 * contracts.adb (Build_Postconditions_Procedure): Replace
1166 Generate_C_Code by Modify_Tree_For_C.
1167 * exp_aggr.adb (Build_Record_Aggr_Code, Expand_Array_Aggregate):
1168 Replace Generate_C_Code by Modify_Tree_For_C.
1169 * exp_attr.adb (Float_Valid, Is_GCC_Target): Replace Generate_C_Code by
1170 Modify_Tree_For_C.
1171 * exp_ch11.adb (Expand_N_Exception_Declaration): Replace
1172 Generate_C_Code by Modify_Tree_For_C.
1173 * exp_ch4.adb (Expand_Allocator_Expression): Replace
1174 Generate_C_Code by Modify_Tree_For_C.
1175 * exp_dbug.adb (Qualify_Entity_Name): Replace Generate_C_Code
1176 by Modify_Tree_For_C.
1177 * exp_util.adb (Remove_Side_Effects, Side_Effect_Free): Replace
1178 Generate_C_Code by Modify_Tree_For_C.
1179 * sem_res.adb (Resolve_Type_Conversion): Replace Generate_C_Code
1180 by Modify_Tree_For_C.
1181 * sinfo.ads (Modify_Tree_For_C): Adding documentation.
1182
1183 2017-01-19 Javier Miranda <miranda@adacore.com>
1184
1185 * sem_util.ads, sem_util.adb (Expression_Of_Expression_Function): New
1186 subprogram.
1187 (Is_Inlinable_Expression_Function): New subprogram.
1188 * exp_ch6.ads, exp_ch6.adb (Expression_Of_Expression_Function): Moved
1189 to Sem_Util.
1190 (Is_Inlinable_Expression_Function): Moved to Sem_Util.
1191
1192 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1193
1194 * sem_ch4.adb (Diagnose_Call): Improve error message when a
1195 selected component has a prefix that might be interpreted
1196 as a parameterless function call, but none of the candidate
1197 interpretations is parameterless, and there is a hidden homonym
1198 of the prefix that is a package.
1199 * sem_ch8.adb (Find_Selected_Component): If the prefix might be
1200 interpreted as a parameterless function call and its analysis
1201 fails, do not call Analyze_Selected_Component.
1202
1203 2017-01-19 Steve Baird <baird@adacore.com>
1204
1205 * sem_util.ads: Add new Use_Full_View Boolean parameter to
1206 Get_Index_Bounds.
1207 * sem_util.adb (Get_Index_Bounds): replace calls to Scalar_Range with
1208 calls to a newly-defined Scalar_Range_Of_Right_View function.
1209
1210 2017-01-19 Arnaud Charlet <charlet@adacore.com>
1211
1212 * gnat1drv.adb: minor fix of unbalanced parens in comment
1213 * lib-xref.ads (Traverse_Compilation_Unit): declaration moved
1214 to visible part of the package to allow re-use in GNATprove.
1215 * lib-xref-spark_specific.adb (Traverse_Stub): routine refactored
1216 from repeated code of Traverse_Compilation_Unit.
1217 (Traverse_Declaration_Or_Statement): fixed detection of
1218 generic subprograms and packages; also, iteration over case
1219 statement alternatives rewritten to avoid testing if the first
1220 alternative is present (since it must be present due to Ada
1221 syntax restrictions).
1222
1223 2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
1224
1225 * exp_ch6.adb (Expand_N_Subprogram_Body): Mark the spec as
1226 returning by reference not just for subprogram body stubs,
1227 but for all subprogram cases.
1228 * sem_util.adb: Code reformatting.
1229 (Requires_Transient_Scope): Update the call to Results_Differ.
1230 (Results_Differ): Update the parameter profile and the associated
1231 comment on usage.
1232
1233 2017-01-19 Ed Schonberg <schonberg@adacore.com>
1234
1235 * sem_dim.adb (Analyze_Dimension): Analyze object declaration and
1236 identifier nodes that do not come from source, to handle properly
1237 dimensionality check within an inlined body which inclddes both
1238 original operands and rewritten operands. This removes spurious
1239 dimensionality errors in the presence of front-end inlining,
1240 as well as in SPARK mode.
1241
1242 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1243
1244 PR driver/49726
1245 * gcc-interface/lang.opt (gant, gnatO, gnat): Add Driver flag.
1246
1247 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1248
1249 * gcc-interface/Makefile.in (SPARC/Solaris): Fix typo.
1250
1251 2017-01-13 Arnaud Charlet <charlet@adacore.com>
1252
1253 * doc/gnat_ugn/getting_started_with_gnat.rst,
1254 doc/gnat_ugn/inline_assembler.rst,
1255 doc/gnat_ugn/building_executable_programs_with_gnat.rst,
1256 doc/gnat_ugn/elaboration_order_handling_in_gnat.rst,
1257 doc/gnat_ugn/about_this_guide.rst,
1258 doc/gnat_ugn/platform_specific_information.rst,
1259 doc/gnat_ugn/example_of_binder_output.rst,
1260 doc/gnat_ugn/gnat_and_program_execution.rst,
1261 doc/gnat_ugn/gnat_utility_programs.rst,
1262 doc/gnat_ugn/the_gnat_compilation_model.rst,
1263 doc/gnat_rm/implementation_defined_attributes.rst,
1264 doc/gnat_rm/compatibility_and_porting_guide.rst,
1265 doc/gnat_rm/standard_library_routines.rst,
1266 doc/gnat_rm/standard_and_implementation_defined_restrictions.rst,
1267 doc/gnat_rm/implementation_defined_pragmas.rst,
1268 doc/gnat_rm/the_gnat_library.rst,
1269 doc/gnat_rm/obsolescent_features.rst,
1270 doc/gnat_rm/about_this_guide.rst,
1271 doc/gnat_rm/the_implementation_of_standard_i_o.rst,
1272 doc/gnat_rm/implementation_of_ada_2012_features.rst,
1273 doc/gnat_rm/interfacing_to_other_languages.rst,
1274 doc/gnat_rm/implementation_defined_aspects.rst,
1275 doc/gnat_rm.rst: Update documentation.
1276 * gnat_rm.texi, gnat_ugn.texi: Regenerated.
1277
1278 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1279
1280 * einfo.ads: minor grammar fixes in comment of Normalized_Position_Max.
1281 * scil_ll.adb: Minor style fix in comment.
1282 * sem_ch8.adb (Analyze_Expanded_Name): Perform dimension analysis
1283 even if entity is already set, because the node may be renalyzed
1284 after inlining transformations.
1285
1286 2017-01-13 Javier Miranda <miranda@adacore.com>
1287
1288 * sem_res.adb (Resolve_Call): Do not establish a transient scope
1289 for a call to inlinable expression function (since the call will
1290 be replaced by its returned object).
1291 * exp_ch6.ads (Is_Inlinable_Expression_Function): New subprogram.
1292 * exp_ch6.adb (Expression_Of_Expression_Function): New subprogram.
1293 (Expand_Call): For inlinable expression function call replace the
1294 call by its returned object.
1295 (Is_Inlinable_Expression_Function): New subprogram.
1296
1297 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1298
1299 * checks.adb: Minor typo fix and reformatting.
1300
1301 2017-01-13 Javier Miranda <miranda@adacore.com>
1302
1303 * contracts.adb (Contract_Only_Subprograms): Remove formal.
1304 (Copy_Original_Specification): Removed.
1305 (Skip_Contract_Only_Subprogram): Move here checks previously
1306 located in the caller of this routine (to leave the code more clean).
1307 (Build_Contract_Only_Subprogram): Code cleanup.
1308 * scil_ll.ads, scil_ll.adb (Get_Contract_Only_Body_Name): Removed.
1309 (Get_Contract_Only_Missing_Body_Name): Removed.
1310
1311 2017-01-13 Javier Miranda <miranda@adacore.com>
1312
1313 * sem_ch6.adb (Cloned_Expression): New subprogram.
1314 (Freeze_Expr_Types): Complete previous patch since the expression
1315 of an expression-function may have iterators and loops with
1316 defining identifiers which, as part of the preanalysis of the
1317 expression, may be left decorated with itypes that will not be
1318 available in the tree passed to the backend.
1319
1320 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1321
1322 * checks.adb (Apply_Type_Conversion_Checks): Optimize a type
1323 conversion to Integer of an expression that is an attribute
1324 reference 'Pos on an enumeration type.
1325
1326 2017-01-13 Bob Duff <duff@adacore.com>
1327
1328 * atree.ads: Minor comment fix.
1329
1330 2017-01-13 Justin Squirek <squirek@adacore.com>
1331
1332 * sem_ch6.adb (Check_Aggregate_Accessibility): Ignore function
1333 calls in accessibility check on return statement.
1334
1335 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1336
1337 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
1338 Ensure that the input body is a subprogram body before trying to
1339 determine whether it denoted an expression function. Note that
1340 subprogram body stubs cannot denote expression functions.
1341
1342 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1343
1344 * bindgen.adb, sem_ch6.adb, binde.adb, exp_ch3.adb: Minor reformatting
1345 and typo fixes.
1346
1347 2017-01-13 Javier Miranda <miranda@adacore.com>
1348
1349 * einfo.ads (Component_Bit_Offset): Fix documentation.
1350 * sem_ch13.adb (Check_Record_Representation_Clause): Skip check
1351 on record holes for components with unknown compile-time offsets.
1352
1353 2017-01-13 Bob Duff <duff@adacore.com>
1354
1355 * ali.ads, ali.adb (Static_Elaboration_Model_Used): Remove unused flag.
1356 * g-locfil.ads: Minor comment fix.
1357
1358 2017-01-13 Bob Duff <duff@adacore.com>
1359
1360 * binde.adb (Elab_New): New elaboration order algorithm
1361 that is expected to cause fewer ABE issues. This is a work in
1362 progress. The new algorithm is currently disabled, and can be
1363 enable by the -dp switch, or by modifying the Do_Old and Do_New
1364 etc. flags and rebuilding. Experimental code is included to
1365 compare the results of the old and new algorithms.
1366 * binde.ads: Use GNAT.Dynamic_Tables instead of Table, so we
1367 can have multiple of these tables, so the old and new algorithms
1368 can coexist.
1369 * bindgen.ads (Gen_Output_File): Pass Elab_Order as an 'in'
1370 parameter of type array. This avoids the global variable, and
1371 allows bounds checking (which is normally defeated by the tables
1372 packages). It also ensures that the Elab_Order is read-only
1373 to Bindgen.
1374 * bindgen.adb: Pass Elab_Order as an 'in' parameter to all
1375 subprograms that need it, as above.
1376 * debug.adb: Document new -dp switch. Modify doc of old -do
1377 switch.
1378 * gnatbind.adb (Gnatbind): Make use of new interfaces to Binde
1379 and Bindgen. Move writing of closure (-R and -Ra switches)
1380 to Binde; that's more convenient.
1381
1382 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1383
1384 * sem_ch6.adb (Analyze_Expression_Function): If the expression
1385 function is a completion, all entities referenced in the
1386 expression are frozen. As a consequence, a reference to an
1387 uncompleted private type from an enclosing scope is illegal.
1388
1389 2017-01-13 Javier Miranda <miranda@adacore.com>
1390
1391 * sem_ch6.adb (Freeze_Expr_Types): New subprogram.
1392 (Analyze_Subprogram_Body_Helper): At the occurrence of an
1393 expression function declaration that is a completion, its
1394 expression causes freezing (AI12-0103).
1395
1396 2017-01-13 Vadim Godunko <godunko@adacore.com>
1397
1398 * a-coinho-shared.adb: Fix memory leaks in Constant_Reference and
1399 Reference functions of Ada.Containers.Indefinite_Holders.
1400
1401 2017-01-13 Bob Duff <duff@adacore.com>
1402
1403 * s-os_lib.ads: Minor comment fixes.
1404
1405 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1406
1407 * exp_ch3.adb (Default_Initialize_Object): Do not default
1408 initialize an object when it is of a task type and restriction
1409 No_Tasking is in effect because the initialization is obsolete.
1410 * exp_ch9.adb (Build_Master_Entity): Do not generate a master when
1411 restriction No_Tasking is in effect.
1412 (Build_Master_Renaming): Do not rename a master when restriction
1413 No_Tasking is in effect.
1414
1415 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1416
1417 * sem_aggr.adb (Resolve_Array_Aggregate): The code that verifies
1418 the legality of An others clause applies as well to a choice in
1419 an Iterated_component_ association.
1420 (Resolve_Iterated_Component_Association): An others choice
1421 is legal.
1422 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): An
1423 Iterated_Component_Association is not static.
1424
1425 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1426
1427 * exp_ch3.adb (Freeze_Type): Mark the Ghost mode as set in case
1428 control is passed to the expresion handler before the new mode
1429 is set.
1430 * sem_ch12.adb (Analyze_Package_Instantiation,
1431 Analyze_Subprogram_Instantiation): Mark the Ghost mode as set
1432 in case control is passed to the expresion handler before the
1433 new mode is set.
1434
1435 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1436
1437 * sem_aggr.adb, sem_ch3.adb, inline.adb, sem_util.adb, exp_ch4.adb,
1438 exp_aggr.adb: Minor reformatting.
1439
1440 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1441
1442 * inline.adb: Minor reformatting and typo fix.
1443
1444 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1445
1446 * sem_util.ads, sem_util.adb (Choice_List): Move function here
1447 from sem_aggr.adb, for use elsewhere.
1448 * sem_ch3.adb (Analyze_Object_Declaration): Use Choice_List.
1449 * sem_aggr.adb (Resolve_Array_Aggregate): Remove
1450 Iterated_Component_Present.
1451 * exp_aggr.adb: Use Choice_List throughout, to handle
1452 Iterated_Component_Associations.
1453 (Gen_Loop): Generate proper loop for an
1454 Iterated_Component_Association: loop variable has the identifier
1455 of the original association. Generate a loop even for a single
1456 component choice, in order to make loop parameter visible in
1457 expression.
1458 (Flatten): An Iterated_Component_Association is not static.
1459
1460 2017-01-13 Yannick Moy <moy@adacore.com>
1461
1462 * exp_ch4.adb (Expand_N_Op_Expon): Ensure that the value of
1463 float exponentiation for statically known small negative values
1464 is the reciprocal of the exponentiation for the opposite value
1465 of the exponent.
1466 * s-exnllf.adb (Exn_Float, Exn_Long_Float, Exn_Long_Long_Float):
1467 Ensure that the value of float exponentiation for negative values
1468 is the reciprocal of the exponentiation for the opposite value
1469 of the exponent.
1470 * inline.adb (Expand_Inlined_Call): Fix the count
1471 for the number of generated gotos.
1472
1473 2017-01-13 Yannick Moy <moy@adacore.com>
1474
1475 * inline.adb: Code cleanup.
1476 * sem_util.adb (Is_OK_Volatile_Context): Add
1477 expression in delay statement as OK for volatile context.
1478
1479 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1480
1481 * sem_aggr.adb (Resolve_Array_Aggregate): In normal compilation
1482 mode a choice that is a subtype with a static predicate is
1483 replaced by the values it covers. This transformation must not
1484 be performed in ASIS mode, to preserve the source for analysis.
1485
1486 2017-01-13 Justin Squirek <squirek@adacore.com>
1487
1488 * nlists.ads: Correct minor typo.
1489
1490 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1491
1492 * sem_ch13.adb: Minor reformatting and typo fix.
1493
1494 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1495
1496 * par-ch4.adb (P_Aggregate_Or_Parent_Expr): An
1497 Iterated_Component_Association is a named association in an
1498 array aggregate.
1499 * sem_aggr.adb (Resolve_Iterated_Component_Association): New
1500 procedure, subsidiary of Resolve_Array_Aggregate, to analyze
1501 and resolve the discrete choices and the expression of the
1502 new construct.
1503 * sinfo.adb, sinfo.ads: In analogy with N_Component_Association,
1504 Loop_Actions and Box_Present are attributes of
1505 N_Iterated_Component_Association nodes. Box_Present is always
1506 False in this case.
1507 * sprint.adb (Sprint_Node): An Iterated_Component_Association
1508 has a Discrete_Choices list, as specified in the RM. A
1509 Component_Association for aggregate uses instead a Choices list.
1510 We have to live with this small inconsistency because the new
1511 construct also has a defining identifier, and there is no way
1512 to merge the two node structures.
1513
1514 2017-01-13 Yannick Moy <moy@adacore.com>
1515
1516 * inline.adb (Remove_Aspects_And_Pragmas): Add Unused to the
1517 list of pragmas to remove. Remove pragmas from the list of
1518 statements in the body to inline.
1519 * namet.adb, namet.ads (Nam_In): New version with 12 parameters.
1520
1521 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1522
1523 * sem_ch3.adb (Resolve_Aspects): New procedure, subsidiary of
1524 Analyze_Declarations, to analyze and resolve the expressions of
1525 aspect specifications in the current declarative list, so that
1526 the expressions have proper entity and type info. This is needed
1527 for ASIS when there is no subsequent expansion to generate this
1528 semantic information.
1529 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Use Etype of
1530 original expression, to suppress cascaded errors when expression
1531 has been constant-folded.
1532 (Resolve_Aspect_Expressions, Resolve_Name): Preserve entities in
1533 ASIS mode, because there is no subsequent expansion to decorate
1534 the tree.
1535
1536 2017-01-13 Yannick Moy <moy@adacore.com>
1537
1538 * inline.adb, inline.ads (Call_Can_Be_Inlined_In_GNATprove_Mode):
1539 New function to detect when a call may be inlined or not in
1540 GNATprove mode.
1541 (Expand_Inlined_Call): Ensure that a temporary
1542 is always created in the cases where a type conversion may be
1543 needed on an input parameter in GNATprove mode, so that GNATprove
1544 sees the check to perform.
1545 * sem_res.adb (Resolve_Call): In GNATprove mode, skip inlining
1546 when not applicable due to actual requiring type conversion
1547 with possible check but no temporary value can be copied for
1548 GNATprove to see the check.
1549
1550 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1551
1552 * sem_aggr.adb, par_sco.adb, s-osprim-mingw.adb, exp_ch5.adb,
1553 exp_prag.adb, sem_ch3.adb, xr_tabls.adb, lib-xref-spark_specific.adb,
1554 layout.adb, sem_dist.adb, exp_spark.adb, exp_ch7.adb, gnatcmd.adb,
1555 exp_util.adb, prj-proc.adb, sem_aux.adb, comperr.adb, g-memdum.adb,
1556 exp_attr.adb, s-intman-solaris.adb, exp_ch9.adb, make.adb, live.adb,
1557 g-sercom-linux.adb, sem_dim.adb, mlib-prj.adb, s-intman-posix.adb,
1558 sem_ch9.adb, sem_ch10.adb, prep.adb, einfo.adb, scng.adb, checks.adb,
1559 prj-strt.adb, sem_prag.adb, eval_fat.adb, sem_ch12.adb, sem.adb,
1560 a-numaux-x86.adb, a-stwifi.adb, i-cobol.adb, prj.adb,
1561 get_spark_xrefs.adb, s-tasini.adb, rtsfind.adb, freeze.adb,
1562 g-arrspl.adb, par-ch4.adb, sem_util.adb, sem_res.adb, expander.adb,
1563 sem_attr.adb, exp_dbug.adb, prj-pp.adb, a-stzfix.adb, s-interr.adb,
1564 s-wchcnv.adb, switch-m.adb, gnat1drv.adb, sinput-l.adb, stylesw.adb,
1565 contracts.adb, s-intman-android.adb, g-expect.adb, exp_ch4.adb,
1566 g-comlin.adb, errout.adb, sinput.adb, s-exctra.adb, repinfo.adb,
1567 g-spipat.adb, g-debpoo.adb, exp_ch6.adb, sem_ch4.adb, exp_ch13.adb,
1568 a-wtedit.adb, validsw.adb, pprint.adb, widechar.adb, makeutl.adb,
1569 ali.adb, set_targ.adb, sem_mech.adb, sem_ch6.adb, gnatdll.adb,
1570 get_scos.adb, g-pehage.adb, s-tratas-default.adb, gnatbind.adb,
1571 prj-dect.adb, g-socthi-mingw.adb, par-prag.adb, prj-nmsc.adb,
1572 exp_disp.adb, par-ch12.adb, binde.adb, sem_ch8.adb,
1573 s-tfsetr-default.adb, s-regexp.adb, gprep.adb, s-tpobop.adb,
1574 a-teioed.adb, sem_warn.adb, sem_eval.adb, g-awk.adb, s-io.adb,
1575 a-ztedit.adb, xoscons.adb, exp_intr.adb, sem_cat.adb, sprint.adb,
1576 g-socket.adb, exp_dist.adb, sem_ch13.adb, s-tfsetr-vxworks.adb,
1577 par-ch3.adb, treepr.adb, g-forstr.adb, g-catiio.adb, par-ch5.adb,
1578 uname.adb, osint.adb, exp_ch3.adb, prj-env.adb, a-strfix.adb,
1579 a-stzsup.adb, prj-tree.adb, s-fileio.adb: Update all eligible case
1580 statements to reflect the new style for case alternatives. Various
1581 code clean up and reformatting.
1582
1583 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1584
1585 * exp_util.adb: Minor reformatting.
1586
1587 2017-01-13 Yannick Moy <moy@adacore.com>
1588
1589 * exp_spark.adb: Code cleanup.
1590 * sem_ch9.adb (Analyze_Delay_Until): Resolve
1591 expression so that calls are identified as such inside delay
1592 until.
1593
1594 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1595
1596 * exp_util.adb (Insert_Actions): Handle Iterated_Component_Association.
1597 * par-ch3.adb (P_Discrete_Choice_List): An
1598 Iterated_Component_Association is an array aggregate component.
1599 * par-ch4.adb (P_Iterated_Component_Association): New procedure.
1600 (Is_Quantified_Expression): New function that performs a lookahead
1601 to distinguish quantified expressions from iterated component
1602 associations.
1603 (P_Aggregate_Or_Paren_Expr): Recognize iterated component
1604 associations.
1605 (P_Unparen_Cond_Case_Quant_Expression, P_Primary): Ditto.
1606 * sem.adb (Analyze): Handle Iterated_Component_Association.
1607 * sem_aggr.adb (Resolve_Array_Aggregate): Dummy handling of iterated
1608 component associations.
1609 * sinfo.ads, sinfo.adb: Entries for for
1610 N_Iterated_Component_Association and its fields.
1611 * sprint.adb (Sprint_Node_Actual): Handle
1612 N_Iterated_Component_Association.
1613
1614 2017-01-13 Justin Squirek <squirek@adacore.com>
1615
1616 * sem_ch12.adb (Analyze_Package_Instantiation): Move disabiling
1617 of the style check until after preanalysis of acutals.
1618
1619 2017-01-13 Yannick Moy <moy@adacore.com>
1620
1621 * sem_ch13.adb: Minor reformatting.
1622 * par-ch11.adb: minor style fix in whitespace
1623 * gnatbind.adb (Gnatbind): Scope of Std_Lib_File
1624 reduced to Add_Artificial_ALI_File; style fix in declaration of
1625 Text; grammar fix in comment.
1626 * osint-c.adb (Read_Library_Info): strip trailing NUL from result.
1627 * freeze.adb: Cleanup to pass pragma instead of
1628 expression to call.
1629 * exp_spark.adb (Expand_SPARK_Attribute_Reference): New procedure to
1630 replace System'To_Address by equivalent call.
1631
1632 2017-01-13 Arnaud Charlet <charlet@adacore.com>
1633
1634 * bindusg.adb: Improve usage output for -f switch.
1635
1636 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1637
1638 * frontend.adb, freeze.adb, sem_res.adb, sem_attr.adb, sem_ch8.adb:
1639 Minor reformatting.
1640
1641 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1642
1643 * sem_ch13.adb (Is_Predicate_Static): Following the intent of the RM,
1644 treat comparisons on strings as legal in a Static_Predicate.
1645 (Is_Predicate_Static, Is_Type_Ref): Predicate also returns true on
1646 a function call that is the expansion of a string comparison.The
1647 function call is built when compiling the corresponding predicate
1648 function, but the expression has been found legal as a static
1649 predicate during earlier analysis.
1650 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Handle
1651 properly a function call that is the expansion of a string
1652 comparison operation, in order to recover the Static_Predicate
1653 expression and apply it to a static argument when needed.
1654
1655 2017-01-13 Tristan Gingold <gingold@adacore.com>
1656
1657 * s-mmap.adb, s-mmap.ads (Open_Read_No_Exception): New function.
1658 (Open_Read): Re-implement using Open_Read_No_Exception.
1659 (Open_Write): Raise exception in case of error.
1660 * s-mmosin-mingw.adb (Open_Common): Do not raise exception.
1661 * s-mmosin-unix.adb (Open_Read, Open_Write): Do not
1662 reaise exception.
1663 * s-mmosin-mingw.ads, s-mmosin-unix.ads (Open_Read): Adjust comment.
1664
1665 2017-01-13 Yannick Moy <moy@adacore.com>
1666
1667 * checks.adb: Code cleanup.
1668
1669 2017-01-13 Yannick Moy <moy@adacore.com>
1670
1671 * freeze.adb (Check_Inherited_Conditions): Use analyzed pragma
1672 expression instead of unanalyzed aspect expression for checking
1673 the validity of inheriting an operation. Also copy the expression
1674 being passing it to Build_Class_Wide_Expression, as this call
1675 modifies its argument.
1676 * sem_util.ads Fix comment to reference correct function name
1677 New_Copy_Tree.
1678
1679 2017-01-13 Javier Miranda <miranda@adacore.com>
1680
1681 * sem_res.adb (Resolve_Generalized_Indexing): Compiling in ASIS mode,
1682 when we propagate information about the indexes back to the original
1683 indexing mode and the prefix of the index is a function call, do not
1684 remove any parameter from such call.
1685
1686 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1687
1688 * exp_ch6.ads (Needs_BIP_Finalization_Master): Update comment.
1689 * exp_ch6.adb (Needs_BIP_Finalization_Master): Return True for
1690 a build-in-place function whose result type is tagged.
1691
1692 2017-01-13 Yannick Moy <moy@adacore.com>
1693
1694 * sem_ch8.adb (Analyze_Subprogram_Renaming.Build_Class_Wide_Wrapper):
1695 Do not generate a wrapper when the only candidate is a class-wide
1696 subprogram.
1697 (Analyze_Subprogram_Renaming): Do not freeze the renaming or renamed
1698 inside a generic context.
1699
1700 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1701
1702 * exp_util.adb (Add_Inherited_Tagged_DIC):
1703 Pass the object parameters of both the parent and the derived
1704 type DIC procedure to the reference replacement circuitry.
1705 (Find_DIC_Type): Modify the circuitry to present the partial
1706 view of a private type in case the private type defines its own
1707 DIC pragma.
1708 (Replace_Object_And_Primitive_References): Add two
1709 optional formal parameters. Update the comment on usage. Update
1710 the replacement of references to object parameters.
1711
1712 2017-01-13 Gary Dismukes <dismukes@adacore.com>
1713
1714 * einfo.adb, sem_ch6.adb, atree.adb: Minor reformatting and typo fix.
1715
1716 2017-01-13 Ed Schonberg <schonberg@adacore.com>
1717
1718 * sem_res.adb (Resolve_Actuals): Apply Scalar_Range_Check to
1719 an out parameter that is a type conversion, independently of th
1720 range check that may apply to the expression of the conversion,
1721 for use in GNATProve.
1722
1723 2017-01-13 Yannick Moy <moy@adacore.com>
1724
1725 * gnat1drv.adb (Gnat1drv): Move the implicit with for System in
1726 GNATprove_Mode here to Frontend.
1727 * frontend.adb (Frontend): Move the implicit with for System
1728 in GNATprove_Mode here as it ismore correct this way; the old
1729 place only worked by chance, since there were no overloaded names.
1730 * rtsfind.ads (RE_Id, RE_Unit_Table): Add RE_Tasking_State.
1731 * sem_attr.adb (Analyze_Attribute): In GNATprove_Mode, for the
1732 four attributes identified in SRM 9(18), add an implicit with
1733 to Ada.Task_Identification.
1734 * sem_ch8.adb (Analyze_Subprogram_Renaming.Build_Class_Wide_Wrapper):
1735 Deal specially with the wrapper introduced for AI05-0071 in GNATprove
1736 mode.
1737 * checks.adb (Apply_Discriminant_Check,
1738 Apply_Selected_Length_Checks, Apply_Selected_Range_Checks):
1739 In GNATprove mode, we do not apply the checks, but we still
1740 analyze the expression to possibly issue errors on SPARK
1741 code when a run-time error can be detected at compile time.
1742 (Selected_Length_Checks, Selected_Range_Checks): Perform analysis
1743 in GNATprove mode.
1744
1745 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1746
1747 * expander.adb (Expand): Add a warning about using return
1748 statements in Ghost management code.
1749 * exp_ch3.adb (Freeze_Type): Add a warning about using return
1750 statements in Ghost management code.
1751 * exp_ch7.adb (Build_Invariant_Procedure_Body,
1752 Build_Invariant_Procedure_Declaration): Add a warning about
1753 using return statements in Ghost management code.
1754 * exp_disp.adb (Make_DT): Add a warning about using return
1755 statements in Ghost management code.
1756 * exp_util.adb (Build_DIC_Procedure_Body,
1757 Build_DIC_Procedure_Declaration, Make_Predicated_Call): Add a
1758 warning about using return statements in Ghost management code.
1759 * freeze.adb (Freeze_Entity): Add a warning about using return
1760 statements in Ghost management code.
1761 * sem.adb (Analyze, Do_Analyze): Add a warning about using return
1762 statements in Ghost management code.
1763 * sem_ch3.adb (Analyze_Object_Declaration, Process_Full_View): Add
1764 a warning about using return statements in Ghost management code.
1765 * sem_ch5.adb (Analyze_Assignment): Add a warning about using
1766 return statements in Ghost management code.
1767 * sem_ch6.adb (Analyze_Procedure_Call,
1768 Analyze_Subprogram_Body_Helper): Add a warning about using return
1769 statements in Ghost management code.
1770 * sem_ch7.adb (Analyze_Package_Body_Helper): Add a warning about
1771 using return statements in Ghost management code.
1772 * sem_ch12.adb (Analyze_Package_Instantiation,
1773 Analyze_Subprogram_Instantiation, Instantiate_Package_Body,
1774 Instantiate_Subprogram_Body): Add a warning about using return
1775 statements in Ghost management code.
1776 * sem_ch13.adb (Build_Predicate_Functions,
1777 Build_Predicate_Function_Declarations): Add a warning about
1778 using return statements in Ghost management code.
1779 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part,
1780 Analyze_Initial_Condition_In_Decl_Part, Analyze_Pragma,
1781 Analyze_Pre_Post_Condition_In_Decl_Part): Add a warning about
1782 using return statements in Ghost management code.
1783
1784 2017-01-13 Tristan Gingold <gingold@adacore.com>
1785
1786 * s-mmosin-mingw.adb: Fix pragma import.
1787
1788 2017-01-13 Arnaud Charlet <charlet@adacore.com>
1789
1790 * gnat1drv.adb (Adjust_Global_Switches): Ignore -gnateE in
1791 codepeer mode.
1792
1793 2017-01-13 Hristian Kirtchev <kirtchev@adacore.com>
1794
1795 * atree.adb (Allocate_Initialize_Node): A newly created node is
1796 no longer marked as Ghost at this level.
1797 (Mark_New_Ghost_Node): New routine.
1798 (New_Copy): Mark the copy as Ghost.
1799 (New_Entity): Mark the entity as Ghost.
1800 (New_Node): Mark the node as Ghost.
1801 * einfo.adb (Is_Checked_Ghost_Entity): This attribute can now
1802 apply to unanalyzed entities.
1803 (Is_Ignored_Ghost_Entity): This attribute can now apply to unanalyzed
1804 entities.
1805 (Set_Is_Checked_Ghost_Entity): This attribute now
1806 applies to all entities as well as unanalyzed entities.
1807 (Set_Is_Ignored_Ghost_Entity): This attribute now applies to
1808 all entities as well as unanalyzed entities.
1809 * expander.adb Add with and use clauses for Ghost.
1810 (Expand): Install and revert the Ghost region associated with the node
1811 being expanded.
1812 * exp_ch3.adb (Expand_Freeze_Array_Type): Remove all Ghost-related code.
1813 (Expand_Freeze_Class_Wide_Type): Remoe all Ghost-related code.
1814 (Expand_Freeze_Enumeration_Type): Remove all Ghost-related code.
1815 (Expand_Freeze_Record_Type): Remove all Ghost-related code.
1816 (Freeze_Type): Install and revert the Ghost region associated
1817 with the type being frozen.
1818 * exp_ch5.adb Remove with and use clauses for Ghost.
1819 (Expand_N_Assignment_Statement): Remove all Ghost-related code.
1820 * exp_ch6.adb Remove with and use clauses for Ghost.
1821 (Expand_N_Procedure_Call_Statement): Remove all Ghost-relatd code.
1822 (Expand_N_Subprogram_Body): Remove all Ghost-related code.
1823 * exp_ch7.adb (Build_Invariant_Procedure_Body): Install and revert the
1824 Ghost region of the working type.
1825 (Build_Invariant_Procedure_Declaration): Install and revert
1826 the Ghost region of the working type.
1827 (Expand_N_Package_Body): Remove all Ghost-related code.
1828 * exp_ch8.adb Remove with and use clauses for Ghost.
1829 (Expand_N_Exception_Renaming_Declaration): Remove all Ghost-related
1830 code.
1831 (Expand_N_Object_Renaming_Declaration): Remove all Ghost-related code.
1832 (Expand_N_Package_Renaming_Declaration): Remove all Ghost-related code.
1833 (Expand_N_Subprogram_Renaming_Declaration): Remove all Ghost-related
1834 code.
1835 * exp_ch13.adb Remove with and use clauses for Ghost.
1836 (Expand_N_Freeze_Entity): Remove all Ghost-related code.
1837 * exp_disp.adb (Make_DT): Install and revert the Ghost region of
1838 the tagged type. Move the generation of various entities within
1839 the Ghost region of the type.
1840 * exp_prag.adb Remove with and use clauses for Ghost.
1841 (Expand_Pragma_Check): Remove all Ghost-related code.
1842 (Expand_Pragma_Contract_Cases): Remove all Ghost-related code.
1843 (Expand_Pragma_Initial_Condition): Remove all Ghost-related code.
1844 (Expand_Pragma_Loop_Variant): Remove all Ghost-related code.
1845 * exp_util.adb (Build_DIC_Procedure_Body): Install
1846 and revert the Ghost region of the working types.
1847 (Build_DIC_Procedure_Declaration): Install and revert the
1848 Ghost region of the working type.
1849 (Make_Invariant_Call): Install and revert the Ghost region of the
1850 associated type.
1851 (Make_Predicate_Call): Reimplemented. Install and revert the
1852 Ghost region of the associated type.
1853 * freeze.adb (Freeze_Entity): Install and revert the Ghost region
1854 of the entity being frozen.
1855 (New_Freeze_Node): Removed.
1856 * ghost.adb Remove with and use clauses for Opt.
1857 (Check_Ghost_Completion): Update the parameter profile
1858 and all references to formal parameters.
1859 (Ghost_Entity): Update the comment on usage.
1860 (Install_Ghost_Mode): New routines.
1861 (Is_Ghost_Assignment): New routine.
1862 (Is_Ghost_Declaration): New routine.
1863 (Is_Ghost_Pragma): New routine.
1864 (Is_Ghost_Procedure_Call): New routine.
1865 (Is_Ghost_Renaming): Removed.
1866 (Is_OK_Declaration): Reimplemented.
1867 (Is_OK_Pragma): Reimplemented.
1868 (Is_OK_Statement): Reimplemented.
1869 (Is_Subject_To_Ghost): Update the comment on usage.
1870 (Mark_And_Set_Ghost_Assignment): New routine.
1871 (Mark_And_Set_Ghost_Body): New routine.
1872 (Mark_And_Set_Ghost_Completion): New routine.
1873 (Mark_And_Set_Ghost_Declaration): New routine.
1874 (Mark_And_Set_Ghost_Instantiation): New routine.
1875 (Mark_And_Set_Ghost_Procedure_Call): New routine.
1876 (Mark_Full_View_As_Ghost): Removed.
1877 (Mark_Ghost_Declaration_Or_Body): New routine.
1878 (Mark_Ghost_Pragma): New routine.
1879 (Mark_Ghost_Renaming): New routine.
1880 (Mark_Pragma_As_Ghost): Removed.
1881 (Mark_Renaming_As_Ghost): Removed.
1882 (Propagate_Ignored_Ghost_Code): Update the comment on usage.
1883 (Prune_Node): Freeze nodes no longer need special pruning, they
1884 are processed by the general ignored Ghost code mechanism.
1885 (Restore_Ghost_Mode): New routine.
1886 (Set_Ghost_Mode): Reimplemented.
1887 (Set_Ghost_Mode_From_Entity): Removed.
1888 * ghost.ads Add with and use clauses for Ghost.
1889 (Check_Ghost_Completion): Update the parameter profile
1890 along with the comment on usage.
1891 (Install_Ghost_Mode): New routine.
1892 (Is_Ghost_Assignment): New routine.
1893 (Is_Ghost_Declaration): New routine.
1894 (Is_Ghost_Pragma): New routine.
1895 (Is_Ghost_Procedure_Call): New routine.
1896 (Mark_And_Set_Ghost_Assignment): New routine.
1897 (Mark_And_Set_Ghost_Body): New routine.
1898 (Mark_And_Set_Ghost_Completion): New routine.
1899 (Mark_And_Set_Ghost_Declaration): New routine.
1900 (Mark_And_Set_Ghost_Instantiation): New routine.
1901 (Mark_And_Set_Ghost_Procedure_Call): New routine.
1902 (Mark_Full_View_As_Ghost): Removed.
1903 (Mark_Ghost_Pragma): New routine.
1904 (Mark_Ghost_Renaming): New routine.
1905 (Mark_Pragma_As_Ghost): Removed.
1906 (Mark_Renaming_As_Ghost): Removed.
1907 (Restore_Ghost_Mode): New routine.
1908 (Set_Ghost_Mode): Redefined.
1909 (Set_Ghost_Mode_From_Entity): Removed.
1910 * sem.adb (Analyze): Install and revert the Ghost region of the
1911 node being analyzed.
1912 (Do_Analyze): Change the way a clean Ghost
1913 region is installed and reverted.
1914 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove
1915 all Ghost-related code.
1916 (Analyze_Incomplete_Type_Decl): Remove all Ghost-related code.
1917 (Analyze_Number_Declaration): Remove all Ghost-related code.
1918 (Analyze_Object_Declaration): Install and revert the Ghost region of
1919 a deferred object declaration's completion.
1920 (Array_Type_Declaration): Remove all Ghost-related code.
1921 (Build_Derived_Type): Update the comment on
1922 the propagation of Ghost attributes from a parent to a derived type.
1923 (Derive_Subprogram): Remove all Ghost-related code.
1924 (Make_Class_Wide_Type): Remove all Ghost-related code.
1925 (Make_Implicit_Base): Remove all Ghost-related code.
1926 (Process_Full_View): Install and revert the Ghost region of
1927 the partial view. There is no longer need to check the Ghost
1928 completion here.
1929 * sem_ch5.adb (Analyze_Assignment): Install and revert the Ghost
1930 region of the left hand side.
1931 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
1932 all Ghost-related code.
1933 (Analyze_Expression_Function): Remove all Ghost-related code.
1934 (Analyze_Generic_Subprogram_Body): Remove all Ghost-related code.
1935 (Analyze_Procedure_Call): Install and revert the Ghost region of
1936 the procedure being called.
1937 (Analyze_Subprogram_Body_Helper): Install and revert the Ghost
1938 region of the spec or body.
1939 (Analyze_Subprogram_Declaration): Remove all Ghost-related code.
1940 (Build_Subprogram_Declaration): Remove all Ghost-related code.
1941 (Find_Corresponding_Spec): Remove all Ghost-related code.
1942 (Process_Formals): Remove all Ghost-related code.
1943 * sem_ch7.adb (Analyze_Package_Body_Helper): Install and revert
1944 the Ghost region of the spec.
1945 (Analyze_Package_Declaration): Remove all Ghost-related code.
1946 * sem_ch8.adb (Analyze_Exception_Renaming): Mark a renaming as
1947 Ghost when it aliases a Ghost entity.
1948 (Analyze_Generic_Renaming): Mark a renaming as Ghost when it aliases
1949 a Ghost entity.
1950 (Analyze_Object_Renaming): Mark a renaming as Ghost when
1951 it aliases a Ghost entity.
1952 (Analyze_Package_Renaming): Mark a renaming as Ghost when it aliases
1953 a Ghost entity.
1954 (Analyze_Subprogram_Renaming): Mark a renaming as Ghost when it
1955 aliases a Ghost entity.
1956 * sem_ch11.adb Remove with and use clauses for Ghost.
1957 (Analyze_Exception_Declaration): Remove all Ghost-related code.
1958 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Remove all
1959 Ghost-related code.
1960 (Analyze_Generic_Subprogram_Declaration): Remove all Ghost-related
1961 code.
1962 (Analyze_Package_Instantiation): Install and revert the Ghost region
1963 of the package instantiation.
1964 (Analyze_Subprogram_Instantiation): Install
1965 and revert the Ghost region of the subprogram instantiation.
1966 (Instantiate_Package_Body): Code clean up. Install and revert the
1967 Ghost region of the package body.
1968 (Instantiate_Subprogram_Body): Code clean up. Install and revert the
1969 Ghost region of the subprogram body.
1970 * sem_ch13.adb (Build_Predicate_Functions): Install
1971 and revert the Ghost region of the related type.
1972 (Build_Predicate_Function_Declaration): Code clean up. Install
1973 and rever the Ghost region of the related type.
1974 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part):
1975 Install and revert the Ghost region of the pragma.
1976 (Analyze_Initial_Condition_In_Decl_Part): Install and revert the
1977 Ghost region of the pragma.
1978 (Analyze_Pragma): Install and revert the Ghost region of various
1979 pragmas. Mark a pragma as Ghost when it is related to a Ghost entity
1980 or encloses a Ghost entity.
1981 (Analyze_Pre_Post_Condition): Install and revert the Ghost
1982 region of the pragma.
1983 (Analyze_Pre_Post_Condition_In_Decl_Part): Install and revert the
1984 Ghost region of the pragma.
1985 * sem_res.adb (Resolve): Remove all Ghost-related code.
1986 * sem_util.adb (Is_Declaration): Reimplemented.
1987 (Is_Declaration_Other_Than_Renaming): New routine.
1988 * sem_util.ads (Is_Declaration_Other_Than_Renaming): New routine.
1989 * sinfo.adb (Is_Checked_Ghost_Pragma): New routine.
1990 (Is_Ghost_Pragma): Removed.
1991 (Is_Ignored_Ghost_Pragma): New routine.
1992 (Set_Is_Checked_Ghost_Pragma): New routine.
1993 (Set_Is_Ghost_Pragma): Removed.
1994 (Set_Is_Ignored_Ghost_Pragma): New routine.
1995 * sinfo.ads: Update the documentation on Ghost mode and
1996 Ghost regions. New attributes Is_Checked_Ghost_Pragma
1997 and Is_Ignored_Ghost_Pragma along with usages in nodes.
1998 Remove attribute Is_Ghost_Pragma along with usages in nodes.
1999 (Is_Checked_Ghost_Pragma): New routine along with pragma Inline.
2000 (Is_Ghost_Pragma): Removed along with pragma Inline.
2001 (Is_Ignored_Ghost_Pragma): New routine along with pragma Inline.
2002 (Set_Is_Checked_Ghost_Pragma): New routine along with pragma Inline.
2003 (Set_Is_Ghost_Pragma): Removed along with pragma Inline.
2004 (Set_Is_Ignored_Ghost_Pragma): New routine along with pragma Inline.
2005
2006 2017-01-12 Tristan Gingold <gingold@adacore.com>
2007
2008 * s-mmap.ads, s-mmap.adb, s-mmosin-unix.ads, s-mmosin-unix.adb,
2009 s-mmauni-long.ads, s-mmosin-mingw.ads, s-mmosin-mingw.adb: New files.
2010
2011 2017-01-12 Yannick Moy <moy@adacore.com>
2012
2013 * errout.adb, errout.ads (Initialize): Factor common treatment
2014 in Reset_Warnings.
2015 (Reset_Warnings): New procedure to reset counts related to warnings.
2016 (Record_Compilation_Errors): New variable to store the presence of an
2017 error, used in gnat2why to allow changing the Warning_Mode.
2018 (Compilation_Errors): Use new variable Record_Compilation_Errors to
2019 store the presence of an error.
2020
2021 2017-01-12 Javier Miranda <miranda@adacore.com>
2022
2023 * sem_ch13.adb (Analyze_Aspect_Specifications):
2024 For Interrupt_Handler and Attach_ Handler aspects, decorate the
2025 internally built reference to the protected procedure as coming
2026 from sources and force its analysis.
2027
2028 2017-01-12 Ed Schonberg <schonberg@adacore.com>
2029
2030 * sem_ch3.adb (Build_Derived_Type): For a scalar derived type,
2031 inherit predicates if any from the first_subtype of the parent,
2032 not from the anonymous parent type.
2033 * sem_eval.adb (Is_Static_Subtype): A type that inherits a dynamic
2034 predicate is not a static subtype.
2035
2036 2017-01-12 Gary Dismukes <dismukes@adacore.com>
2037
2038 * freeze.adb (Check_Suspicious_Convention): New procedure
2039 performing a warning check on discriminated record types with
2040 convention C or C++. Factored out of procedure Freeze_Record_Type,
2041 and changed to only apply to base types (to avoid spurious
2042 warnings on subtypes). Minor improvement of warning messages
2043 to refer to discriminated rather than variant record types.
2044 (Freeze_Record_Type): Remove code for performing a suspicious
2045 convention check.
2046 (Freeze_Entity): Only call Freeze_Record_Type
2047 on types that aren't declared within any enclosing generic units
2048 (rather than just excluding the type when the innermost scope
2049 is generic). Call Check_Suspicious_Convention whether or not
2050 the type is declared within a generic unit.
2051 * sem_ch8.adb (In_Generic_Scope): Move this function to Sem_Util.
2052 * sem_util.ads, sem_util.adb (In_Generic_Scope): New function (moved
2053 from Sem_Ch8).
2054
2055 2017-01-12 Tristan Gingold <gingold@adacore.com>
2056
2057 * sysdep.c, adaint.c, rtinit.c, ming32.h:
2058 (__gnat_current_codepage): Renamed from CurrentCodePage
2059 (__gnat_current_ccs_encoding): Renamed from CurrentCCSEncoding
2060
2061 2017-01-12 Ed Schonberg <schonberg@adacore.com>
2062
2063 * sem_ch6.adb (Fully_Conformant_Expressions): Handle properly
2064 quantified expressions, following AI12-050: the loop parameters
2065 of two quantified expressions are conformant if they have the
2066 same identifier.
2067
2068 2017-01-12 Arnaud Charlet <charlet@adacore.com>
2069
2070 * gcc-interface/Makefile.in: Clean up VxWorks targets.
2071
2072 2017-01-12 Ed Schonberg <schonberg@adacore.com>
2073
2074 * sem_attr.adb (Analyze_Attribute_Reference, case Loop_Entry):
2075 Hnadle properly the attribute reference when it appears as part
2076 of an expression in another loop aspect.
2077
2078 2017-01-12 Ed Schonberg <schonberg@adacore.com>
2079
2080 * exp_ch3.adb (Check_Predicated_Discriminant): New procedure,
2081 subsidiary of Build_Initialization_Call, to complete generation
2082 of predicate checks on discriminants whose (sub)types have
2083 predicates, and to add checks on variants that do not have an
2084 others clause.
2085 * sem_util.adb (Gather_Components): A missing Others alternative is
2086 not an error when the type of the discriminant is a static predicate
2087 (and coverage has been checked when analyzing the case statement). A
2088 runtime check is generated to verify that a given discriminant
2089 satisfies the predicate (RM 3.8.1. (21.1/2)).
2090
2091 2017-01-12 Yannick Moy <moy@adacore.com>
2092
2093 * gnat1drv.adb (Adjust_Global_Switches): Only
2094 perform checking of exception mechanism when generating code.
2095
2096 2017-01-12 Justin Squirek <squirek@adacore.com>
2097
2098 * exp_ch7.adb (Add_Type_Invariants, Process_Array_Component):
2099 Remove handling of access component with invariant.
2100 (Build_Invariant_Procedure_Declaration): Remove return on class
2101 wide type.
2102 * freeze.adb (Freeze_Array_Type, Freeze_Record_Type): Remove
2103 conditional exception for component or array so Has_Own_Invariants
2104 flag is not falsly set.
2105 * sem_ch3.adb (Make_Class_Wide_Type): Initialize copy of class
2106 wide type to have no invariant flags.
2107
2108 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2109
2110 * exp_ch9.adb, sem_prag.adb, s-tassta.adb, sem_util.adb, s-tarest.adb,
2111 sem_ch13.adb: Minor reformatting.
2112
2113 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2114
2115 * exp_aggr.adb (Build_Record_Aggr_Code): Guard against a missing
2116 adjustment primitive when the ancestor type was not properly frozen.
2117 (Gen_Assign): Guard against a missing initialization
2118 primitive when the component type was not properly frozen.
2119 (Initialize_Array_Component): Guard against a missing adjustment
2120 primitive when the component type was not properly frozen.
2121 (Initialize_Record_Component): Guard against a missing adjustment
2122 primitive when the component type was not properly frozen.
2123 (Process_Transient_Component_Completion): The transient object may
2124 not be finalized when its associated type was not properly frozen.
2125 * exp_ch3.adb (Build_Assignment): Guard against a missing
2126 adjustment primitive when the component type was not properly frozen.
2127 (Build_Initialization_Call): Guard against a missing
2128 initialization primitive when the associated type was not properly
2129 frozen.
2130 (Expand_N_Object_Declaration): Guard against a missing
2131 adjustment primitive when the base type was not properly frozen.
2132 (Predefined_Primitive_Bodies): Create an empty Deep_Adjust
2133 body when there is no adjustment primitive available. Create an
2134 empty Deep_Finalize body when there is no finalization primitive
2135 available.
2136 * exp_ch4.adb (Apply_Accessibility_Check): Guard against a
2137 missing finalization primitive when the designated type was
2138 not properly frozen.
2139 (Expand_N_Allocator): Guard against a missing initialization primitive
2140 when the designated type was not properly frozen.
2141 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add the adjustment call
2142 only when the corresponding adjustment primitive is available.
2143 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Generate the
2144 adjustment/finalization statements only when there is an available
2145 primitive to carry out the action.
2146 (Build_Initialize_Statements): Generate the initialization/finalization
2147 statements only when there is an available primitive to carry out the
2148 action.
2149 (Make_Adjust_Call): Do not generate a call when the underlying
2150 type is not present due to a possible missing full view.
2151 (Make_Final_Call): Do not generate a call when the underlying
2152 type is not present due to a possible missing full view.
2153 (Make_Finalize_Address_Stmts): Generate an empty body when the
2154 designated type lacks a finalization primitive.
2155 (Make_Init_Call): Do not generate a call when the underlying type is
2156 not present due to a possible missing full view.
2157 (Process_Component_For_Adjust): Add the adjustment call only when the
2158 corresponding adjustment primitive is available.
2159 (Process_Component_For_Finalize): Add the finalization call only when
2160 the corresponding finalization primitive is available.
2161 (Process_Object_Declaration): Use a null statement to emulate a
2162 missing call to the finalization primitive of the object type.
2163 * exp_ch7.ads (Make_Adjust_Call): Update the comment on usage.
2164 (Make_Final_Call): Update the comment on usage.
2165 (Make_Init_Call): Update the comment on usage.
2166 * exp_util.adb (Build_Transient_Object_Statements): Code reformatting.
2167
2168 2017-01-12 Arnaud Charlet <charlet@adacore.com>
2169
2170 * einfo.ads: Update documentation of Address_Taken.
2171 * sem_attr.adb (Analyze_Access_Attribute, Resolve_Attribute
2172 [Access_Attribute]): Only consider 'Access/'Unchecked_Access
2173 for subprograms when setting Address_Taken flag.
2174
2175 2017-01-12 Patrick Bernardi <bernardi@adacore.com>
2176
2177 * sem_ch10.adb (Analyze_With_Clause): Removed code that turned
2178 Configurable_Run_Time_Mode off when analysing with'ed predefined
2179 libraries.
2180
2181 2017-01-12 Gary Dismukes <dismukes@adacore.com>
2182
2183 * sem_prag.adb: Minor reformatting.
2184 * sem_util.adb (Unique_Entity): fix result for
2185 bodies of entry families.
2186
2187 2017-01-12 Justin Squirek <squirek@adacore.com>
2188
2189 * sem_prag.adb (Analyze_Pragma): Add appropriate calls to
2190 Resolve_Suppressible in the pragma Assertion_Policy case.
2191 (Resolve_Suppressible): Created this function to factor out
2192 common code used to resolve Suppress to either Ignore or Check
2193 * snames.ads-tmpl: Add name for Suppressible.
2194
2195 2017-01-12 Gary Dismukes <dismukes@adacore.com>
2196
2197 * exp_ch9.adb, s-secsta.adb, snames.ads-tmpl, exp_ch3.adb: Minor
2198 reformatting.
2199 * debug.adb: Minor comment fixes.
2200
2201 2017-01-12 Arnaud Charlet <charlet@adacore.com>
2202
2203 * sem_util.adb (Unique_Entity): For concurrent
2204 bodies that are defined with stubs and complete a declaration
2205 of a single concurrent object return the entity of an implicit
2206 concurrent type, not the entity of the anonymous concurrent
2207 object.
2208 * debug.adb: -gnatd.J is no longer used.
2209 * make.adb (Globalize): Removed, no longer used.
2210 * sem_ch9.adb: minor typo in comment for entry index
2211
2212 2017-01-12 Patrick Bernardi <bernardi@adacore.com>
2213
2214 * aspect.adb, aspect.ads: Added new aspect Secondary_Stack_Size.
2215 * exp_ch3.adb (Build_Init_Statements): As part of initialising
2216 the value record of a task, set its _Secondary_Stack_Size field
2217 if present.
2218 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create
2219 a _Secondary_Stack_Size field in the value record of
2220 the task if a Secondary_Stack_Size rep item is present.
2221 (Make_Task_Create_Call): Include secondary stack size
2222 parameter. If No_Secondary_Stack restriction is in place, passes
2223 stack size of 0.
2224 * par-prag.adb, sem_prag.adb, sem_prag.ads: Added new pragma
2225 Secondary_Stack_Size.
2226 * s-secsta.adb, s-secsta.ads (Minimum_Secondary_Stack_Size): New
2227 function to define the overhead of the secondary stack.
2228 * s-tarest.adb (Create_Restricted_Task,
2229 Create_Restricted_Task_Sequential): Functions now include
2230 Secondary_Stack_Size parameter to pass to Initialize_ATCB.
2231 * s-tarest.adb (Create_Restricted_Task,
2232 Create_Restricted_Task_Sequential): Calls to Initialize_ATCB now
2233 include Secondary_Stack_Size parameter.
2234 (Task_Wrapper): Secondary stack now allocated to the size specified by
2235 the Secondary_Stack_Size parameter in the task's ATCB.
2236 * s-taskin.adb, s-taskin.adb (Common_ATCB, Initialize_ATCB): New
2237 Secondary_Stack_Size component.
2238 * s-tassta.adb, s-tassta.ads (Create_Restricted_Task,
2239 Create_Restricted_Task_Sequential): Function now include
2240 Secondary_Stack_Size parameter.
2241 (Task_Wrapper): Secondary stack now allocated to the size
2242 specified by the Secondary_Stack_Size parameter in the task's
2243 ATCB.
2244 * s-tproft.adb (Register_Foreign_Thread): Amended Initialize_ATCB call
2245 to include Secondary_Stack_Size parameter.
2246 * sem_ch13.adb (Analyze_Aspect_Specification): Add support for
2247 Secondary_Stack_Size aspect, turning the aspect into its corresponding
2248 internal attribute.
2249 (Analyze_Attribute_Definition): Process Secondary_Stack_Size attribute.
2250 * snames.adb-tmpl, snames.ads-tmpl: Added names
2251 Name_Secondary_Stack_Size, Name_uSecondary_Stack_Size,
2252 Attribute_Secondary_Stack_Size and Pragma_Secondary_Stack_Size.
2253
2254 2017-01-12 Yannick Moy <moy@adacore.com>
2255
2256 * exp_spark.adb (Expand_SPARK_Potential_Renaming): Fix sloc of copied
2257 subtree.
2258
2259 2017-01-12 Justin Squirek <squirek@adacore.com>
2260
2261 * exp_attr.adb (Expand_N_Attribute_Reference):
2262 Fix Finalization_Size case by properly resolving the type after
2263 rewritting the node.
2264
2265 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2266
2267 * exp_util.adb (Build_DIC_Procedure_Body): Semi-insert the body into
2268 the tree.
2269 (Build_DIC_Procedure_Declaration): Semi-insert the body into the tree.
2270 * binde.adb, exp_ch5.adb, sem_type.adb, sem.ads, sem_res.adb,
2271 exp_sel.ads: Minor reformatting.
2272
2273 2017-01-12 Justin Squirek <squirek@adacore.com>
2274
2275 * exp_ch6.adb (Expand_Call): Add guard to prevent
2276 invariant checks from being created for internally generated
2277 subprograms.
2278
2279 2017-01-12 Bob Duff <duff@adacore.com>
2280
2281 * lib-writ.ads: Remove incorrect comment.
2282
2283 2017-01-12 Javier Miranda <miranda@adacore.com>
2284
2285 * debug.adb (-gnatd.K): Enable generation of contract-only
2286 procedures in CodePeer mode.
2287 * contracts.adb (Build_And_Analyze_Contract_Only_Subprograms):
2288 New subprogram.
2289 (Analyze_Contracts): Generate contract-only procedures if -gnatdK is
2290 set.
2291 * scil_ll.ads, scil_ll.adb (Get_Contract_Only_Body_Name): New
2292 subprogram.
2293 (Get_Contract_Only_Missing_Body_Name): New subprogram.
2294 (Get_Contract_Only_Body): New subprogram.
2295 (Set_Contract_Only_Body): New subprogram.
2296 (Is_Contract_Only_Body): New subprogram.
2297 (Set_Is_Contract_Only_Body): New subprogram.
2298 (SCIL_Nodes): Replace table by hash-table.
2299
2300 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2301
2302 * exp_ch6.adb: Minor reformatting.
2303 * spark_xrefs.ads: minor cleanup of comments for SPARK xrefs
2304
2305 2017-01-12 Bob Duff <duff@adacore.com>
2306
2307 * binde.adb (Forced): New reason for a dependence.
2308 (Force_Elab_Order): Implementation of the new switch.
2309 * binde.ads: Minor comment fixes.
2310 * bindusg.adb: Add -f switch. Apparently, there was an -f switch
2311 long ago that is no longer supported; removed comment about that.
2312 * opt.ads (Force_Elab_Order_File): Name of file specified for
2313 -f switch.
2314 * switch-b.adb: Parse -f switch.
2315
2316 2017-01-12 Justin Squirek <squirek@adacore.com>
2317
2318 * exp_ch6.adb (Check_View_Conversion): Created this function
2319 to properly chain calls to check type invariants that may be
2320 present in a subprogram call after the subprogram.
2321 (Expand_Call): Add a conditional to identify when a view conversion
2322 needs to be checked.
2323 * nlists.adb, nlists.ads (Prepend_New): New routine.
2324 (Prepend_New_To): New routine.
2325
2326 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2327
2328 * sinfo.ads: Minor reformatting.
2329
2330 2017-01-12 Gary Dismukes <dismukes@adacore.com>
2331
2332 * exp_util.adb, exp_util.ads, einfo.ads: Minor typo fixes and
2333 reformatting.
2334
2335 2017-01-12 Hristian Kirtchev <kirtchev@adacore.com>
2336
2337 * exp_ch6.adb (Make_Build_In_Place_Call_In_Anonymous_Context): Add new
2338 variable Definite. Create a local object and pass its 'Access to the
2339 BIP function when the result type is either definite or it does not
2340 require any finalization or secondary stack management.
2341
2342 2017-01-12 Bob Duff <duff@adacore.com>
2343
2344 * contracts.adb, einfo.adb, errout.adb, exp_attr.adb,
2345 exp_ch3.adb, exp_ch7.adb, exp_ch9.adb, exp_prag.adb, freeze.adb,
2346 frontend.adb, ghost.adb, inline.adb, lib-writ.adb, lib-xref.adb,
2347 par.adb, par-ch10.adb, par-ch2.adb, par-prag.adb, par_sco.adb,
2348 sem_attr.adb, sem_aux.adb, sem_ch10.adb, sem_ch12.adb,
2349 sem_ch13.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb, sem_elab.adb,
2350 sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
2351 sem_warn.adb, sinfo.adb, sinfo.ads, sprint.adb (Pragma_Name):
2352 Change name to Pragma_Name_Unmapped.
2353 (Pragma_Name_Mapped): Change name to Pragma_Name.
2354 This is because the "mapped" version should be the usual case.
2355
2356 2017-01-09 Hristian Kirtchev <kirtchev@adacore.com>
2357
2358 * einfo.ads, einfo.adb: Remove uses of flags Has_Default_Init_Cond,
2359 Is_Default_Init_Cond_Procedure, and
2360 Has_Inherited_Default_Init_Cond. Add uses of flags
2361 Has_Own_DIC, Is_DIC_Procedure, and Has_Inherited_DIC.
2362 (Default_Init_Cond_Procedure): Removed.
2363 (DIC_Procedure): New routine.
2364 (Has_Default_Init_Cond): Removed.
2365 (Has_DIC): New routine.
2366 (Has_Inheritable_Invariants): The attribute applies to the base type.
2367 (Has_Inherited_Default_Init_Cond): Removed.
2368 (Has_Inherited_DIC): New routine.
2369 (Has_Inherited_Invariants): The attribute applies to the base type.
2370 (Has_Own_DIC): New routine.
2371 (Has_Own_Invariants): The attribute applies to the base type.
2372 (Is_Default_Init_Cond_Procedure): Removed.
2373 (Is_DIC_Procedure): New routine.
2374 (Set_Default_Init_Cond_Procedure): Removed.
2375 (Set_DIC_Procedure): New routine.
2376 (Set_Has_Default_Init_Cond): Removed.
2377 (Set_Has_Inheritable_Invariants): The attribute applies
2378 to the base type.
2379 (Set_Has_Inherited_Default_Init_Cond): Removed.
2380 (Set_Has_Inherited_DIC): New routine.
2381 (Set_Has_Inherited_Invariants): The attribute applies to the base type.
2382 (Set_Has_Own_DIC): New routine.
2383 (Set_Has_Own_Invariants): The attribute applies to the base type.
2384 (Set_Is_Default_Init_Cond_Procedure): Removed.
2385 (Set_Is_DIC_Procedure): New routine.
2386 (Write_Entity_Flags): Update the output of all flags related to
2387 default initial condition.
2388 * exp_ch3.adb (Expand_N_Object_Declaration): Update the generation
2389 of the call to the DIC procedure.
2390 (Freeze_Type): Generate the body of the DIC procedure.
2391 * exp_ch7.adb (Build_Invariant_Procedure_Body): Replace
2392 all occurrences of Create_Append with Append_New_To. Do
2393 not generate an invariant procedure for a class-wide type.
2394 The generated body acts as a freeze action of the working type.
2395 (Build_Invariant_Procedure_Declaration): Do not generate an
2396 invariant procedure for a class-wide type.
2397 (Create_Append): Removed.
2398 * exp_util.adb: Add with and use clauses for Sem_Ch3, sem_ch6,
2399 sem_Ch12, Sem_Disp, and GNAT.HTable. Move the handling of
2400 class-wide pre/postcondition description and data structures from
2401 Sem_Prag.
2402 (Build_Class_Wide_Expression): Moved from Sem_Prag.
2403 (Build_DIC_Call): New routine.
2404 (Build_DIC_Procedure_Body): New routine.
2405 (Build_DIC_Procedure_Declaration): New routine.
2406 (Entity_Hash): Moved from Sem_Prag.
2407 (Find_DIC_Type): New routine.
2408 (Update_Primitives_Mapping): Reimplemented.
2409 (Update_Primitives_Mapping_Of_Types): New routine.
2410 * exp_util.ads (Build_Class_Wide_Expression): Moved from Sem_Prag.
2411 (Build_DIC_Call): New routine.
2412 (Build_DIC_Procedure_Body): New routine.
2413 (Build_DIC_Procedure_Declaration): New routine.
2414 (Update_Primitives_Mapping): Moved from Sem_Prag.
2415 (Update_Primitives_Mapping_Of_Types): New routine.
2416 * nlists.adb (Append_New): New routine.
2417 (Append_New_To): New routine.
2418 * nlists.ads (Append_New): New routine.
2419 (Append_New_To): New routine.
2420 * sem_ch3.adb (Analyze_Declarations): Do not generate the bodies
2421 of DIC procedures here. This is now done at the end of the
2422 visible declarations, private declarations, and at the freeze
2423 point of a type.
2424 (Analyze_Private_Extension_Declaration):
2425 A private extension inherits the DIC pragma of a parent type.
2426 (Analyze_Subtype_Declaration): No need to propagate invariant
2427 attributes to a subtype as those apply to the base type.
2428 (Build_Derived_Record_Type): No need to inherit invariants here
2429 as this is now done in Build_Derived_Type.
2430 (Build_Derived_Type): Inherit both the DIC pragma and invariants from
2431 a parent type.
2432 (Process_Full_View): Update the propagation of DIC attributes.
2433 (Propagate_Default_Init_Cond_Attributes): Removed.
2434 * sem_ch7.adb Add with and use clauses for Exp_Util.
2435 (Analyze_Package_Specification): Create the body of the DIC
2436 procedure at the end of the visible and private declarations.
2437 (Preserve_Full_Attributes): Propagate DIC attributes.
2438 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Propagate
2439 DIC attributes.
2440 (Analyze_Task_Type_Declaration): Propagate DIC attributes.
2441 * sem_elab.adb (Check_A_Call): Update the call to
2442 Is_Nontrivial_Default_Init_Cond_Procedure.
2443 * sem_prag.adb Remove the with and use clauses for
2444 GNAT.HTable. Move the handling of class- wide pre/postcondition
2445 description and data structures to Exp_Util.
2446 (Analyze_Pragma): Create the declaration of the DIC procedure. There
2447 is no need to propagate invariant-related attributes at this point
2448 as this is done in Build_Invariant_Procedure_Declaration.
2449 (Build_Class_Wide_Expression): Moved to Exp_Util.
2450 (Entity_Hash): Moved to Exp_Util.
2451 (Update_Primitives_Mapping): Moved to Exp_Util.
2452 * sem_prag.ads (Build_Class_Wide_Expression): Moved to Exp_Util.
2453 (Update_Primitives_Mapping): Moved to Exp_Util.
2454 * sem_util.adb: Remove with and use clauses for Ghost
2455 and Sem_Ch13.
2456 (Build_Default_Init_Cond_Call): Removed.
2457 (Build_Default_Init_Cond_Procedure_Bodies): Removed.
2458 (Build_Default_Init_Cond_Procedure_Declaration): Removed.
2459 (Get_Views): Reimplemented.
2460 (Has_Full_Default_Initialization): Reimplement the section on DIC.
2461 (Inherit_Default_Init_Cond_Procedure): Removed.
2462 (Is_Nontrivial_Default_Init_Cond_Procedure): Removed.
2463 (Is_Nontrivial_DIC_Procedure): New routine.
2464 (Is_Verifiable_DIC_Pragma): New routine.
2465 (Propagate_DIC_Attributes): New routine.
2466 * sem_util.ads (Build_Default_Init_Cond_Call): Removed.
2467 (Build_Default_Init_Cond_Procedure_Bodies): Removed.
2468 (Build_Default_Init_Cond_Procedure_Declaration): Removed.
2469 (Inherit_Default_Init_Cond_Procedure): Removed.
2470 (Is_Nontrivial_Default_Init_Cond_Procedure): Removed.
2471 (Is_Nontrivial_DIC_Procedure): New routine.
2472 (Is_Verifiable_DIC_Pragma): New routine.
2473 (Propagate_DIC_Attributes): New routine.
2474 * sem_warn.adb (Is_OK_Fully_Initialized): Reimplement the section
2475 on DIC.
2476 * sinfo.ads, sinfo.adb: Add new attribute Expression_Copy along with
2477 usage in nodes.
2478 (Expression_Copy): New routine along with pragma Inline.
2479 (Set_Expression_Copy): New routine along with pragma Inline.
2480
2481 2017-01-06 Bob Duff <duff@adacore.com>
2482
2483 * bindgen.adb (Gen_Adainit, Gen_Adafinal): Change
2484 "Bind_Main_Program" to "not Bind_For_Library", because otherwise
2485 we won't generate the call to s_stalib_adafinal when the main
2486 is not written in Ada.
2487
2488 2017-01-06 Bob Duff <duff@adacore.com>
2489
2490 * sem_prag.adb: Minor: remove pragma Warnings.
2491
2492 2017-01-06 Tristan Gingold <gingold@adacore.com>
2493
2494 * Makefile.rtl: Do not compile s-stchop by default.
2495
2496 2017-01-06 Patrick Bernardi <bernardi@adacore.com>
2497
2498 * aspects.adb, aspects.ads, exp_ch3.adb, exp_ch9.adb, par-prag.adb,
2499 sem_ch13.adb, sem_prag.adb, sem_prag.ads, snames.adb-tmpl,
2500 snames.ads-tmpl, s-secsta.adb, s-secsta.ads, s-tarest.adb,
2501 s-tarest.ads, s-taskin.adb, s-taskin.ads, s-tassta.adb, s-tassta.ads:
2502 Reverted previous change for now.
2503
2504 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2505
2506 * exp_ch3.adb (Build_Initialization_Call): Apply predicate
2507 check to default discriminant value if checks are enabled.
2508 (Build_Assignment): If type of component has static predicate,
2509 apply check to its default value, if any.
2510
2511 2017-01-06 Patrick Bernardi <bernardi@adacore.com>
2512
2513 * aspect.adb, aspect.ads: Added new aspect Secondary_Stack_Size.
2514 * exp_ch3.adb (Build_Init_Statements): As part of initialising
2515 the value record of a task, set its _Secondary_Stack_Size field
2516 if present.
2517 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create
2518 a _Secondary_Stack_Size field in the value record of
2519 the task if a Secondary_Stack_Size rep item is present.
2520 (Make_Task_Create_Call): Include secondary stack size
2521 parameter. If No_Secondary_Stack restriction is in place, passes
2522 stack size of 0.
2523 * par-prag.adb, sem_prag.adb, sem_prag.ads: Added new pragma
2524 Secondary_Stack_Size.
2525 * s-secsta.adb, s-secsta.ads (Minimum_Secondary_Stack_Size): New
2526 function to define the overhead of the secondary stack.
2527 * s-tarest.adb (Create_Restricted_Task,
2528 Create_Restricted_Task_Sequential): Functions now include
2529 Secondary_Stack_Size parameter to pass to Initialize_ATCB.
2530 * s-tarest.adb (Create_Restricted_Task,
2531 Create_Restricted_Task_Sequential): Calls to Initialize_ATCB
2532 now include Secondary_Stack_Size parameter.
2533 (Task_Wrapper):
2534 Secondary stack now allocated to the size specified by the
2535 Secondary_Stack_Size parameter in the task's ATCB.
2536 * s-taskin.adb, s-taskin.adb (Common_ATCB, Initialise_ATCB): New
2537 Secondary_Stack_Size component.
2538 * s-tassta.adb, s-tassta.ads (Create_Restricted_Task,
2539 Create_Restricted_Task_Sequential): Function now include
2540 Secondary_Stack_Size parameter.
2541 (Task_Wrapper): Secondary stack
2542 now allocated to the size specified by the Secondary_Stack_Size
2543 parameter in the task's ATCB.
2544 * sem_ch13.adb (Analyze_Aspect_Specification): Add support
2545 for Secondary_Stack_Size aspect, turning the aspect into its
2546 corresponding internal attribute.
2547 (Analyze_Attribute_Definition):
2548 Process Secondary_Stack_Size attribute.
2549 * snames.adb-tmpl, snames.ads-tmpl: Added names
2550 Name_Secondary_Stack_Size, Name_uSecondary_Stack_Size,
2551 Attribute_Secondary_Stack_Size and Pragma_Secondary_Stack_Size.
2552
2553 2017-01-06 Pascal Obry <obry@adacore.com>
2554
2555 * a-direio.adb, a-direio.ads, a-sequio.adb, a-sequio.ads: Add Flush to
2556 Sequential_IO and Direct_IO.
2557
2558 2017-01-06 Bob Duff <duff@adacore.com>
2559
2560 * snames.ads-tmpl (Renamed): New name for the pragma argument.
2561 * par-ch2.adb: Allow the new pragma (with analysis deferred
2562 to Sem_Prag).
2563 * sinfo.ads, sinfo.adb (Map_Pragma_Name, Pragma_Name_Mapped):
2564 Keep a mapping from new pragma names to old names.
2565 * sem_prag.adb: Check legality of pragma Rename_Pragma, and
2566 implement it by calling Map_Pragma_Name.
2567 * checks.adb, contracts.adb, einfo.adb, errout.adb,
2568 * exp_attr.adb, exp_ch3.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
2569 * exp_prag.adb, exp_util.adb, freeze.adb, frontend.adb, ghost.adb,
2570 * inline.adb, lib-writ.adb, scans.adb, scans.ads, sem_attr.adb,
2571 * sem_aux.adb, sem_ch10.adb, sem_ch13.adb, sem_ch6.adb, sem_ch9.adb,
2572 * sem_elab.adb, sem_res.adb, sem_util.adb, sem_util.ads,
2573 * sem_warn.adb: Call Pragma_Name_Mapped instead of Pragma_Name
2574 as appropriate.
2575
2576 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2577
2578 * exp_ch9.adb: Minor reformatting.
2579
2580 2017-01-06 Tristan Gingold <gingold@adacore.com>
2581
2582 * exp_ch9.ads, exp_ch9.adb (Build_Entry_Names): Remove (unused).
2583 * rtsfind.ads (RE_Task_Entry_Names_Array, RO_ST_Set_Entry_Names)
2584 (RE_Protected_Entry_Names_Array, RO_PE_Set_Entry_Names): Remove
2585 (unused).
2586 * s-taskin.ads, s-taskin.adb (Set_Entry_Names,
2587 Task_Entry_Names_Array, Task_Entry_Names_Access): Remove.
2588 * s-tpoben.ads, s-tpoben.adb (Set_Entry_Names,
2589 Protected_Entry_Names_Array, Protected_Entry_Names_Access): Remove.
2590
2591 2017-01-06 Bob Duff <duff@adacore.com>
2592
2593 * sinfo.ads, sinfo.adb (Map_Pragma_Name): Preparation work,
2594 dummy implementation of Map_Pragma_Name.
2595
2596 2017-01-06 Tristan Gingold <gingold@adacore.com>
2597
2598 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Make the
2599 entry_body variable constant.
2600 * s-taprob.ads (Entry_Body_Access): Move to s-tposen.
2601 * s-tpoben.ads (Protected_Entry_Body_Access): Now access
2602 to constant.
2603 * s-tposen.ads (Entry_Body_Access): Moved from s-taprob,
2604 now access to constant.
2605
2606 2017-01-06 Gary Dismukes <dismukes@adacore.com>
2607
2608 * einfo.ads, sem_res.adb, sem_attr.adb, sem_ch6.adb: Minor
2609 reformatting and typo fixes.
2610
2611 2017-01-06 Bob Duff <duff@adacore.com>
2612
2613 * snames.ads-tmpl: New names for pragma renaming.
2614 * snames.adb-tmpl (Is_Configuration_Pragma_Name): Minor cleanup.
2615 * par-prag.adb: Add new pragma name to case statement.
2616 * sem_prag.adb (Rename_Pragma): Initial cut at semantic analysis
2617 of the pragma.
2618 * sinfo.ads, sinfo.adb (Pragma_Name_Mapped): Preparation work,
2619 Dummy implementation of Pragma_Name_Mapped.
2620
2621 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2622
2623 * exp_ch6.adb (Expand_Protected_Subprogram_Call): Add guard to
2624 better detect call within an entry_wrapper.
2625 * sem_res.adb (Resolve_Call): A protected call within an
2626 entity_wrapper is analyzed in the context of the protected
2627 object but corresponds to a pre-analysis and is not an access
2628 before elaboration.
2629 * sem_attr.adb: Minor reformatting.
2630
2631 2017-01-06 Justin Squirek <squirek@adacore.com>
2632
2633 * sem_attr.adb (Analyze_Attribute): Modify semantic checks for
2634 Finalization_Size to allow a prefix of any non-class-wide type.
2635 * sem_attr.ads Modify comment for Finalization_Size to include
2636 definite type use case.
2637
2638 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2639
2640 * einfo.ads, einfo.adb (Is_Entry_Wrapper): New flag, defined
2641 on procedures that are wrappers created for entries that have
2642 preconditions.
2643 * sem_ch6.adb (Analyze_Subrogram_Body_Helper): If the subprogram
2644 body is an entry_wrapper, compile it in the context of the
2645 synchronized type, because a precondition may refer to funtions
2646 of the type.
2647 * exp_ch9.adb (Build_Contract_Wrapper): Set Is_Entry_Wrapper on
2648 body entity.
2649 * exp_ch6.adb (Expand_Protected_Subprogram_Call): if the call is
2650 within an Entry_Wrapper this is an external call whose target
2651 is the synchronized object that is the actual in the call to
2652 the wrapper.
2653
2654 2017-01-06 Yannick Moy <moy@adacore.com>
2655
2656 * sem_attr.adb (Analyze_Attribute/Attribute_Loop_Entry): Analyze node
2657 in tree, which means not analyzing the previous prefix if the node has
2658 been rewritten into its prefix.
2659
2660 2017-01-06 Gary Dismukes <dismukes@adacore.com>
2661
2662 * s-tpobop.adb: Minor reformatting.
2663
2664 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2665
2666 * checks.adb (Ensure_Valid): Do not generate a validity check
2667 within a generated predicate function, validity checks will have
2668 been applied earlier when required.
2669
2670 2017-01-06 Tristan Gingold <gingold@adacore.com>
2671
2672 * s-tpoben.ads (Protection_Entries): Add comment and reorder
2673 components for performances.
2674 * s-tpobop.adb (PO_Do_Or_Queue): Implement Max_Queue_Length runtime
2675 semantic.
2676
2677 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2678
2679 * sem_eval.adb (Check_Expression_Against_Static_Predicate):
2680 If expression is compile-time known and obeys a static predicate
2681 it must be labelled as static, to prevent spurious warnings and
2682 run-time errors, e.g. in case statements. This is relevant when
2683 the expression is the result of constant-folding a type conversion
2684 whose expression is a variable with a known static value.
2685
2686 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2687
2688 * exp_attr.adb, sem_attr.ads: Minor reformatting.
2689
2690 2017-01-06 Justin Squirek <squirek@adacore.com>
2691
2692 * exp_attr.adb (Expand_N_Attribute_Reference): Add entry for
2693 expansion of Finalization_Size attribute.
2694 * sem_attr.adb (Analyze_Attribute): Add entry to check the
2695 semantics of Finalization_Size.
2696 (Eval_Attribute): Add null entry for Finalization_Size.
2697 * sem_attr.ads: Add Finalization_Size to the implementation
2698 dependent attribute list.
2699 * snames.ads-tmpl: Add name entry for Finalization_Size attribute.
2700
2701 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2702
2703 * sem_ch5.adb (Analyze_Loop_Statement): If the loop includes an
2704 iterator specification with a serious syntactic error, transform
2705 construct into an infinite loop in order to continue analysis
2706 and prevent a compiler abort.
2707
2708 2017-01-06 Tristan Gingold <gingold@adacore.com>
2709
2710 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Do not generate
2711 max_queue_lengths_array if unused.
2712
2713 2017-01-06 Bob Duff <duff@adacore.com>
2714
2715 * errout.adb (Set_Msg_Text): Protect against out-of-bounds
2716 array access, in case "\" is at the end of Text.
2717 * stylesw.adb (Set_Style_Check_Options): Don't include input
2718 characters in the error message template, because they could
2719 be control characters such as "\", which Errout will try to
2720 interpret.
2721
2722 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2723
2724 * sem_ch4.adb (Find_Indexing_Operations, Inspect_Declarations):
2725 For a private type examine the visible declarations that follow
2726 the partial view, not just the private declarations that follow
2727 the full view.
2728
2729 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2730
2731 * exp_ch5.adb, sem_ch3.adb, checks.adb: Minor reformatting and
2732 code cleanup.
2733
2734 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2735
2736 * exp_ch5.adb (Get_Default_Iterator): For a derived type, the
2737 alias of the inherited op is the parent iterator, no need to
2738 examine dispatch table positions which might not be established
2739 yet if type is not frozen.
2740 * sem_disp.adb (Check_Controlling_Formals): The formal of a
2741 predicate function may be a subtype of a tagged type.
2742 * sem_ch3.adb (Complete_Private_Subtype): Adjust inheritance
2743 of representation items for the completion of a type extension
2744 where a predicate applies to the partial view.
2745 * checks.ads, checks.adb (Apply_Predicate_Check): Add optional
2746 parameter that designates function whose actual receives a
2747 predicate check, to improve warning message when the check will
2748 lead to infinite recursion.
2749 * sem_res.adb (Resolve_Actuals): Pass additional parameter to
2750 Apply_Predicate_Check.
2751
2752 2017-01-06 Tristan Gingold <gingold@adacore.com>
2753
2754 * s-rident.ads (Profile_Info): Remove No_Entry_Queue from
2755 Gnat_Extended_Ravenscar.
2756 * exp_ch9.adb, s-tpoben.adb, s-tpoben.ads: Fix spelling.
2757
2758 2017-01-06 Gary Dismukes <dismukes@adacore.com>
2759
2760 * sem_util.ads: Minor typo fix and reformatting.
2761
2762 2017-01-06 Yannick Moy <moy@adacore.com>
2763
2764 * ghost.adb Minor fixing of references to SPARK RM.
2765 (Check_Ghost_Context): Check whether reference is to a lvalue
2766 before issuing an error about violation of SPARK RM 6.9(13)
2767 when declaration has Ghost policy Check and reference has Ghost
2768 policy Ignore.
2769 * sem_util.adb Minor indentation.
2770 * sem_ch10.adb (Analyze_Package_Body_Stub, Analyze_Protected_Body_Stub,
2771 Analyze_Task_Body_Stub): Set Ekind of the defining identifier.
2772 * sem_util.ads (Unique_Defining_Entity): Document the result
2773 for package body stubs.
2774
2775 2017-01-06 Tristan Gingold <gingold@adacore.com>
2776
2777 * raise-gcc.c (abort): Macro to call Abort_Propagation.
2778 * s-tpoben.ads (Protected_Entry_Queue_Max_Access): Make it access
2779 constant.
2780 * exp_ch9.adb (Expand_N_Protected_Type_Declaration):
2781 Do not generate the Entry_Max_Queue_Lengths_Array if all default
2782 values.
2783 * exp_util.adb (Corresponding_Runtime_Package): Consider
2784 Max_Queue_Length pragma.
2785
2786 2017-01-06 Justin Squirek <squirek@adacore.com>
2787
2788 * exp_ch9.adb (Expand_N_Protected_Type_Declaration):
2789 Remove declaration generation in the case of
2790 System_Tasking_Protected_Objects_Single_Entry being used,
2791 and add a warning message when this is detected to occur.
2792 (Make_Initialize_Protection): Remove reference pass in the case
2793 of System_Tasking_Protected_Objects_Single_Entry.
2794 * rtsfind.ads: Remove RE_Protected_Entry_Queue_Max
2795 * s-tposen.adb (Initialize_Protection_Entry): Remove
2796 Entry_Queue_Max parameter.
2797 * s-tposen.ads: Remove the types use to store the entry queue
2798 maximum.
2799 * sem_prag.adb (Analyze_Pragma): Remove entry families restriction
2800
2801 2017-01-06 Yannick Moy <moy@adacore.com>
2802
2803 * sem_util.adb, sem_util.ads (Get_Enum_Lit_From_Pos): Strengthen
2804 behavior of function, to also accept out of range positions
2805 and raise Constraint_Error in such case, and to copy sloc from
2806 literal if No_Location passed as location.
2807 * uintp.adb, uintp.ads (UI_To_Int, UI_To_CC): Strengthen behavior
2808 of functions to raise Constraint_Error in case of value not in
2809 appropriate range.
2810
2811 2017-01-06 Tristan Gingold <gingold@adacore.com>
2812
2813 * sem_util.adb, s-taprop-linux.adb (Finalize_TCB): Remove call to
2814 Invalidate_Stack_Cache.
2815
2816 2017-01-06 Eric Botcazou <ebotcazou@adacore.com>
2817
2818 * s-os_lib.adb: Minor fix to the signature of Readlink.
2819
2820 2017-01-06 Javier Miranda <miranda@adacore.com>
2821
2822 * sem_ch6.adb (Conforming_Types): Handle another
2823 confusion between views in a nested instance with an actual
2824 private type whose full view is not in scope.
2825
2826 2017-01-06 Arnaud Charlet <charlet@adacore.com>
2827
2828 * exp_ch5.adb (Expand_N_If_Statement): Obey existing comment and
2829 mark a rewritten if statement as explicit (Comes_From_Source).
2830
2831 2017-01-06 Gary Dismukes <dismukes@adacore.com>
2832
2833 * sem_prag.adb, rtsfind.adb, sem_util.adb: Minor typo fixes.
2834
2835 2017-01-06 Tristan Gingold <gingold@adacore.com>
2836
2837 * ada.ads, a-unccon.ads: Add pragma No_Elaboration_Code_All.
2838
2839 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2840
2841 * sem_case.adb: Minor reformatting.
2842
2843 2017-01-06 Thomas Quinot <quinot@adacore.com>
2844
2845 * g-socthi-mingw.adb: Remove now extraneous USE TYPE clause
2846
2847 2017-01-06 Justin Squirek <squirek@adacore.com>
2848
2849 * aspects.adb: Register aspect in Canonical_Aspect.
2850 * aspects.ads: Associate qualities of Aspect_Max_Queue_Length
2851 into respective tables.
2852 * einfo.ads, einfo.adb: Add a new attribute for
2853 handling the parameters for Pragma_Max_Entry_Queue
2854 (Entry_Max_Queue_Lengths_Array) in E_Protected_Type. Subprograms
2855 for accessing and setting were added as well.
2856 * par-prag.adb (Prag): Register Pramga_Max_Entry_Queue.
2857 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Emit
2858 declaration for pramga arguments and store them in the protected
2859 type node.
2860 (Make_Initialize_Protection): Pass a reference to
2861 the Entry_Max_Queue_Lengths_Array in the protected type node to
2862 the runtime.
2863 * rtsfind.adb: Minor grammar fix.
2864 * rtsfind.ads: Register new types taken from the
2865 runtime libraries RE_Protected_Entry_Queue_Max and
2866 RE_Protected_Entry_Queue_Max_Array
2867 * s-tposen.adb, s-tpoben.adb
2868 (Initialize_Protection_Entry/Initialize_Protection_Entries):
2869 Add extra parameter and add assignment to local object.
2870 * s-tposen.ads, s-tpoben.ads: Add new types to
2871 store entry queue maximums and a field to the entry object record.
2872 * sem_ch13.adb (Analyze_Aspect_Specifications): Add case statement
2873 for Aspect_Max_Queue_Length.
2874 (Check_Aspect_At_Freeze_Point):
2875 Add aspect to list of aspects that don't require delayed analysis.
2876 * sem_prag.adb (Analyze_Pragma): Add case statement for
2877 Pragma_Max_Queue_Length, check semantics, and register arugments
2878 in the respective entry nodes.
2879 * sem_util.adb, sem_util.ads Add functions Get_Max_Queue_Length
2880 and Has_Max_Queue_Length
2881 * snames.ads-tmpl: Add constant for the new aspect-name
2882 Name_Max_Queue_Length and corrasponding pragma.
2883
2884 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2885
2886 * exp_util.adb (Is_Controlled_Function_Call):
2887 Reimplemented. Consider any node which has an entity as the
2888 function call may appear in various ways.
2889
2890 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2891
2892 * exp_attr.adb (Rewrite_Stream_Proc_Call): Use
2893 an unchecked type conversion when performing a view conversion
2894 to/from a private type. In all other cases use a regular type
2895 conversion to ensure that any relevant checks are properly
2896 installed.
2897
2898 2017-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2899
2900 * sem_prag.adb, sem_ch8.adb: Minor reformatting.
2901
2902 2017-01-06 Ed Schonberg <schonberg@adacore.com>
2903
2904 * sem_case.adb (Explain_Non_Static_Bound): Suppress cascaded
2905 error on case expression that is an entity, when coverage is
2906 incomplete and entity has a static value obtained by local
2907 propagation.
2908 (Handle_Static_Predicate): New procedure, subsidiary of
2909 Check_Choices, to handle case alternatives that are either
2910 subtype names or subtype indications involving subtypes that
2911 have static predicates.
2912
2913 2017-01-06 Thomas Quinot <quinot@adacore.com>
2914
2915 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads, g-sothco.ads:
2916 (GNAT.Socket): Add support for Busy_Polling and Generic_Option
2917
2918 2017-01-06 Bob Duff <duff@adacore.com>
2919
2920 * sem_elab.adb (Activate_Elaborate_All_Desirable): Don't add
2921 Elaborate_All(P) to P itself. That could happen in obscure cases,
2922 and always introduced a cycle (P body must be elaborated before
2923 P body).
2924 * lib-writ.ads: Comment clarification.
2925 * ali-util.ads: Minor comment fix.
2926 * ali.adb: Minor reformatting.
2927
2928 2017-01-06 Tristan Gingold <gingold@adacore.com>
2929
2930 * a-exexpr-gcc.adb: Improve comment.
2931
2932 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
2933
2934 * s-linux-mips.ads: Use correct signal and errno constants.
2935 (sa_handler_pos, sa_mask_pos): Fix offsets for 64-bit MIPS.
2936
2937 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
2938
2939 * s-linux-mips.ads: Rename from s-linux-mipsel.ads.
2940 * gcc-interface/Makefile.in (MIPS/Linux): Merge mips and mipsel
2941 sections.
2942
2943 2017-01-01 Eric Botcazou <ebotcazou@adacore.com>
2944
2945 * gnatvsn.ads: Bump copyright year.
2946
2947 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2948
2949 * gnat_ugn.texi: Bump @copying's copyright year.
2950 * gnat_rm.texi: Likewise.
2951 \f
2952 Copyright (C) 2017 Free Software Foundation, Inc.
2953
2954 Copying and distribution of this file, with or without modification,
2955 are permitted in any medium without royalty provided the copyright
2956 notice and this notice are preserved.