Makefile.in: Remove references to nucleus.
[gcc.git] / gcc / ada / ChangeLog
1 2015-02-20 Arnaud Charlet <charlet@adacore.com>
2
3 * gcc-interface/Makefile.in: Remove references to nucleus.
4 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
5 extern_flag to true for Inline_Always subprograms with
6 Intrinsic convention.
7
8 2015-02-20 Yannick Moy <moy@adacore.com>
9
10 * sem_prag.ads: Minor typo in comment.
11
12 2015-02-20 Pascal Obry <obry@adacore.com>
13
14 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
15
16 2015-02-20 Vincent Celier <celier@adacore.com>
17
18 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
19 if it exists.
20
21 2015-02-20 Robert Dewar <dewar@adacore.com>
22
23 * sem_eval.ads: Minor reformatting.
24
25 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
26
27 * freeze.adb (Size_Known): Do not set the packed size for
28 independent type or component.
29 (Freeze_Array_Type): Check for Independent[_Components] with packing
30 or explicit component size clause.
31 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
32 of independence pragmas only for non-GCC back-ends.
33 * sem_ch13.adb (Initialize): Likewise for the initialization.
34 * sem_prag.adb (Record_Independence_Check): New procedure to record an
35 independence check in the table.
36 (Analyze_Pragma): Use it throughout instead of doing it manually.
37 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
38 independent type or component.
39
40 2015-02-20 Thomas Quinot <quinot@adacore.com>
41
42 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
43 struct direct and readdir. This is required for NFS filesystems
44 mounted from servers that use 64-bit cookies.
45
46 2015-02-20 Ed Schonberg <schonberg@adacore.com>
47
48 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
49 Build_Subprogram_Renaming, to create renaming of subprogram
50 instance in the the declaration of the wrapper package rather
51 than in its body, so that it is available for analysis of aspects
52 propagated from generic to instantiation.
53 (Check_Mismatch): An actual for a formal package that is an
54 incomplete type matches a formal type that is incomplete.
55 (Instantiate_Package_Body): Move code that builds subprogram
56 renaming to Analyze_Subprogram_Instantiation.
57 (Instantiate_Type): The generated subtype is a limited view if
58 the actual is a limited view.
59 (Load_Parent_Of_Generic): Retrieve instance declaration from
60 its new position within wrapper package.
61
62 2015-02-20 Arnaud Charlet <charlet@adacore.com>
63
64 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
65
66 2015-02-20 Robert Dewar <dewar@adacore.com>
67
68 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
69 issue of negative arguments.
70
71 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
72
73 * gnat1drv.adb: Minor consistency fix.
74
75 2015-02-20 Pascal Obry <obry@adacore.com>
76
77 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
78 paths.
79
80 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
81
82 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
83 renamings.
84 * exp_ch6.adb (Expand_Call): Use back-end inlining
85 instead of expansion for simple subprogram renamings.
86
87 2015-02-20 Robert Dewar <dewar@adacore.com>
88
89 * exp_util.adb: Minor reformatting.
90
91 2015-02-20 Vincent Celier <celier@adacore.com>
92
93 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
94 is specified several times with different values that indicates
95 the same runtime directory.
96
97 2015-02-20 Ed Schonberg <schonberg@adacore.com>
98
99 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
100 handle properly illegal uses of attributes on prefixes on an
101 incomplete type, both when the type of the prefix is locally
102 incomplete, and when it is a limited view of a type whose
103 non-limited view is not available.
104 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
105 'Address and others.
106
107 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
108
109 * exp_ch6.adb: Fix minor typo in comment.
110
111 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
112
113 * sinfo.ads: Add comment.
114
115 2015-02-20 Olivier Hainque <hainque@adacore.com>
116
117 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
118 flags controlling the actual FE inlining out of pragma Inline
119 and pragma Inline_Always.
120 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
121 on -fno-inline, which disables all inlining in compilers with
122 an Ada back-end and without back-end inlining support.
123 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
124 flag to True on -fno-inline and leave Inline_Always alone for
125 gcc back-ends.
126 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
127 names of the Opt flags it sets.
128 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
129 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
130 * sem_prag.adb (Make_Inline): Remove early return conditioned
131 on Opt.Suppress_All_Inlining.
132 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
133 disable the calls to Build_Body_To_Inline otherwise triggered
134 by pragma Inline or Inline_Always. This will prevent actual
135 front-end inlining of the subprogram on calls.
136
137 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
138
139 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
140 Abort_Undefer_Direct function.
141 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
142 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
143 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
144 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
145 Add_Inlined_Body.
146 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
147 Remove call to Register_Backend_Call and move code resetting
148 Needs_Debug_Info on inlined subprograms to...
149 * inline.ads (Add_Inlined_Body): Add N parameter.
150 (Register_Backend_Call): Delete.
151 * inline.adb (Add_Inlined_Body): ...here and simplify.
152 Register the call with Backend_Calls directly.
153 (Register_Backend_Call): Delete.
154 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
155
156 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
157
158 * s-stalib.ads: Fix typo.
159
160 2015-02-20 Ed Schonberg <schonberg@adacore.com>
161
162 * exp_ch3.adb (Default_Initialize_Object): If the object has a
163 delayed freeze, the actions associated with default initialization
164 must be part of the freeze actions, rather that being inserted
165 directly after the object declaration.
166
167 2015-02-20 Robert Dewar <dewar@adacore.com>
168
169 * lib-load.adb: Minor comment update.
170
171 2015-02-20 Vincent Celier <celier@adacore.com>
172
173 * prj-proc.adb (Process_Case_Construction): When there are
174 incomplete withed projects and the case variable is unknown,
175 skip the case construction.
176
177 2015-02-20 Ed Schonberg <schonberg@adacore.com>
178
179 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
180 when an actual is a view conversion, either because the call is
181 to an inherited operation, or because the actual is an explicit
182 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
183
184 2015-02-20 Robert Dewar <dewar@adacore.com>
185
186 * einfo.ads: Minor comment updates Fix missing pragma Inline
187 for Set_Partial_View_Has_Unknown_Discr.
188 * einfo.adb (Write_Entity_Flags): Add missing entry for
189 Partial_View_Has_Unknown_Discr.
190 * sem_ch3.adb: Minor reformatting.
191
192 2015-02-20 Vincent Celier <celier@adacore.com>
193
194 * opt.ads: Minor cleanup: remove mention of gprmake.
195 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
196 * s-tataat.adb: Do not call System.Tasking.Self but directly
197 System.Task_Primitives.Operations.Self.
198
199 2015-02-20 Arnaud Charlet <charlet@adacore.com>
200
201 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
202 sphinx in the doc directory.
203 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
204
205 2015-02-20 Robert Dewar <dewar@adacore.com>
206
207 * sem_res.adb: Minor reformatting.
208 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
209 building spec.
210 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
211 aspects from circuitry setting delay required to false if the
212 argument is an integer literal.
213
214 2015-02-20 Ed Schonberg <schonberg@adacore.com>
215
216 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
217 on type entities, to enforce AI12-0133: default initialization
218 of types whose partial view has unknown discriminants does not
219 get an invariant check, because clients of the unit can never
220 declare objects of such types.
221 * sem_ch3.adb (Find_Type_Name); Set new flag
222 Partial_View_Has_Unknown_Discr when needed.
223 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
224 generation of invariant call on default-initialized object.
225
226 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
227
228 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
229 if the parameter either is passed by reference or if the alignment
230 would be lowered.
231
232 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
233
234 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
235 detect primitive operations of tagged and untagged types.
236
237 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
238
239 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
240 sets in presence of derivation for subprogram types.
241
242 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
243
244 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
245 present in the same context as the declaration.
246
247 2015-02-07 Jakub Jelinek <jakub@redhat.com>
248
249 PR middle-end/64340
250 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
251 and optimization_current_node after tweaking global_options.
252
253 2015-02-05 Robert Dewar <dewar@adacore.com>
254
255 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
256 prj-nmsc.adb: Minor reformatting.
257
258 2015-02-05 Ed Schonberg <schonberg@adacore.com>
259
260 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
261 of a protected type may not be available, so to check conformance
262 with an interface type, examine the interface list in the type
263 declaration directly.
264 (Write_Overloads): Improve information for indirect calls,
265 for debugger use.
266
267 2015-02-05 Ed Schonberg <schonberg@adacore.com>
268
269 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
270 expansion activity in ASIS mode.
271
272 2015-02-05 Javier Miranda <miranda@adacore.com>
273
274 * errout.adb (Error_Msg_PT): Add missing error.
275 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
276 RM rule. Code cleanup.
277 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
278 anonymous access types. Found working on the tests. Code cleanup.
279
280 2015-02-05 Vincent Celier <celier@adacore.com>
281
282 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
283 when there are incomplete withs.
284 * prj-nmsc.adb (Process_Naming): Do not try to get the value
285 of an element when it is nil.
286 (Check_Naming): Do not check a nil suffix for illegality
287 * prj-proc.adb (Expression): Do not process an empty term.
288 * prj-strt.adb (Attribute_Reference): If attribute cannot be
289 found, parse a possible index to avoid cascading errors.
290
291 2015-02-05 Ed Schonberg <schonberg@adacore.com>
292
293 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
294 for an access_to_subprogram declaration is not a derived type.
295
296 2015-02-05 Robert Dewar <dewar@adacore.com>
297
298 * errout.adb (Error_Msg_Internal): For non-serious error set
299 Fatal_Error to Ignored.
300 * lib-load.adb (Load_Unit): Minor comment updates.
301 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
302 setting from with'ed unit to with'ing unit.
303 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
304 of ambiguity.
305
306 2015-02-05 Yannick Moy <moy@adacore.com>
307
308 * sem_prag.adb, par-prag.adb: Minor code clean up.
309
310 2015-02-05 Yannick Moy <moy@adacore.com>
311
312 * par-prag.adb (Pragma_Warnings): Update for extended form
313 of pragma Warnings. The "one" argument case may now have 2 or
314 3 arguments.
315 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
316 extended form of pragma Warnings. Pragma with tool name is either
317 rewritten as null or as an equivalent form without tool name,
318 before reanalysis.
319 * snames.ads-tmpl (Name_Gnatprove): New name.
320
321 2015-02-05 Robert Dewar <dewar@adacore.com>
322
323 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
324 standard Boolean.
325 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
326 condition is standard Boolean, it can be non-standard derived
327 Boolean.
328
329 2015-02-05 Robert Dewar <dewar@adacore.com>
330
331 * checks.adb (Enable_Range_Check): Disconnect attempted
332 optimization for the case of range check for subscript of
333 unconstrained array.
334
335 2015-02-05 Robert Dewar <dewar@adacore.com>
336
337 * par-ch13.adb (With_Present): New function
338 (Aspect_Specifications_Present): Handle WHEN in place of WITH
339 (Get_Aspect_Specifications): Comment update.
340 * par.adb: Comment updates.
341
342 2015-02-05 Robert Dewar <dewar@adacore.com>
343
344 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
345 * frontend.adb (Frontend): New setting of Fatal_Error.
346 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
347 Fatal_Error.
348 (Load_Main_Source): New setting of Fatal_Error
349 (Load_Unit): New setting of Fatal_Error.
350 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
351 Fatal_Error.
352 (Ensure_System_Dependency): New setting of Fatal_Error.
353 * lib.adb (Fatal_Error): New setting of Fatal_Error
354 (Set_Fatal_Error): New setting of Fatal_Error.
355 * lib.ads: New definition of Fatal_Error and associated routines.
356 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
357 * par-load.adb (Load): New setting of Fatal_Error.
358 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
359 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
360 Fatal_Error.
361 (Optional_Subunit): New setting of Fatal_Error.
362 (Analyze_Proper_Body): New setting of Fatal_Error.
363 (Load_Needed_Body): New setting of Fatal_Error.
364
365 2015-02-05 Ed Schonberg <schonberg@adacore.com>
366
367 * sem_res.adb (Resolve_Call): If the function being called has
368 out parameters do not check for language version if the function
369 comes from a predefined unit, as those are always compiled in
370 Ada 2012 mode.
371
372 2015-02-05 Ed Schonberg <schonberg@adacore.com>
373
374 * sem_ch3.adb (Process_Full_View): Verify that the full view
375 of a type extension must carry an explicit limited keyword if
376 the partial view does (RM 7.3 (10.1)).
377
378 2015-02-05 Robert Dewar <dewar@adacore.com>
379
380 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
381 sem_warn.ads: Minor reformatting.
382 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
383 deleted by -gnatI.
384 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
385 error for abstract type.
386
387 2015-02-05 Yannick Moy <moy@adacore.com>
388
389 * opt.ads (Warn_On_Suspicious_Contract): Update comment
390 describing use.
391 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
392 suspicious uses of 'Update.
393 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
394 function issues warning on suspicious uses of 'Update.
395 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
396 package spec and body as SPARK_Mode Off.
397
398 2015-02-05 Robert Dewar <dewar@adacore.com>
399
400 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
401 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
402 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
403 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
404 for exported entity.
405
406 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
407
408 * sem_prag.adb (Check_Pragma_Conformance): Add
409 local variable Arg. Ensure that all errors are associated with
410 the pragma if it appears without an argument. Add comments on
411 various cases.
412
413 2015-02-05 Robert Dewar <dewar@adacore.com>
414
415 * lib-xref.adb: Minor reformatting.
416
417 2015-02-05 Tristan Gingold <gingold@adacore.com>
418
419 PR ada/64349da/64349
420 * env.c: Fix thinko: handle Darwin case before default one.
421
422 2015-01-30 Robert Dewar <dewar@adacore.com>
423
424 * a-assert.adb: Minor reformatting.
425 * sem_ch13.adb: Minor comment clarification.
426 * types.ads: Minor comment update.
427 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
428 when we have a predicate that is nothing but an inherited dynamic
429 predicate.
430
431 2015-01-30 Jerome Guitton <guitton@adacore.com>
432
433 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
434 include cert link spec.
435
436 2015-01-30 Robert Dewar <dewar@adacore.com>
437
438 * einfo.ads: Minor comment fix.
439 * freeze.adb (Freeze_Profile): Add test for suspicious import
440 in pure unit.
441 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
442 use in Pure unit is now moved to Freeze (to properly catch
443 Pure_Function exemption).
444
445 2015-01-30 Bob Duff <duff@adacore.com>
446
447 * sem_res.ads: Minor comment fix.
448 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
449 check both operands of an operator.
450
451 2015-01-30 Yannick Moy <moy@adacore.com>
452
453 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
454 policy for Pre to Ignore.
455 (Assert): Add precondition.
456
457 2015-01-30 Robert Dewar <dewar@adacore.com>
458
459 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
460 Pure unit.
461 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
462 documentation for some special cases of invalid attempts at
463 based integers.
464
465 2015-01-30 Gary Dismukes <dismukes@adacore.com>
466
467 * errout.ads: Minor reformatting.
468
469 2015-01-30 Yannick Moy <moy@adacore.com>
470
471 * inline.adb (Process_Formals): Use the sloc of
472 the inlined node instead of the sloc of the actual parameter,
473 when replacing formal parameters by the actual one.
474
475 2015-01-30 Arnaud Charlet <charlet@adacore.com>
476
477 * g-expect.adb (Get_Command_Output): Use infinite timeout when
478 calling Expect.
479
480 2015-01-30 Ed Schonberg <schonberg@adacore.com>
481
482 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
483 defaulted in an instantiation, add an entry in the list of actuals
484 to indicate the default value of the formal (as is already done
485 for defaulted subprograms).
486
487 2015-01-30 Javier Miranda <miranda@adacore.com>
488
489 * errout.adb (Error_Msg_PT): Minor error phrasing update.
490
491 2015-01-30 Robert Dewar <dewar@adacore.com>
492
493 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
494 for object case.
495
496 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
497
498 * exp_dbug.adb (Get_Encoded_Name): When
499 -fgnat-encodings=minimal, do not generate names for biased types.
500
501 2015-01-30 Tristan Gingold <gingold@adacore.com>
502
503 PR ada/64349
504 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
505
506 2015-01-30 Gary Dismukes <dismukes@adacore.com>
507
508 * freeze.adb: Minor reformatting.
509
510 2015-01-30 Javier Miranda <miranda@adacore.com>
511
512 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
513 improve its documentation.
514 * errout.adb (Error_Msg_PT): Improve the error message.
515 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
516 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
517 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
518
519 2015-01-30 Robert Dewar <dewar@adacore.com>
520
521 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
522 message for False case.
523
524 2015-01-30 Doug Rupp <rupp@adacore.com>
525
526 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
527 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
528 kernel.
529
530 2015-01-30 Gary Dismukes <dismukes@adacore.com>
531
532 * sem_attr.adb (Declared_Within_Generic_Unit):
533 New function to test whether an entity is declared within the
534 declarative region of a given generic unit.
535 (Resolve_Attribute): For checking legality of subprogram'Access within
536 a generic unit, call new Boolean function Declared_Within_Generic_Unit
537 instead of simply comparing the results of Enclosing_Generic_Unit on
538 the prefix and access type. Correct minor comment typos.
539
540 2015-01-30 Robert Dewar <dewar@adacore.com>
541
542 * freeze.adb, exp_util.ads: Update comment.
543 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
544 * sem_util.adb: Minor: fix typo.
545
546 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
547
548 * sem_attr.adb (Analyze_Attribute): Ensure that
549 the check concerning Refined_Post takes precedence over the
550 other cases.
551
552 2015-01-30 Gary Dismukes <dismukes@adacore.com>
553
554 * sem_prag.adb: Minor typo fixes and reformatting.
555
556 2015-01-30 Yannick Moy <moy@adacore.com>
557
558 * sem_attr.adb: Code clean up.
559
560 2015-01-30 Robert Dewar <dewar@adacore.com>
561
562 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
563 * ali.ads (Unit_Record): Add new field Serious_Errors.
564 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
565 attribute in U line.
566 * lib-writ.ads: New attribute SE (serious erors) in unit line.
567
568 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
569
570 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
571 Lit_Indexes, Scale_Value, Storage_Size_Variable,
572 String_Literal_Low_Bound along associated routines and
573 Write_FieldX_Name.
574 (Pending_Access_Types): New routine.
575 (Set_Pending_Access_Types): New routine.
576 (Write_Field15_Name): Add an entry for Pending_Access_Types.
577 * einfo.ads Add new attribute Pending_Access_Types along
578 with usage in nodes. Update the usage of attributes
579 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
580 Storage_Size_Variable, String_Literal_Low_Bound.
581 (Pending_Access_Types): New routine along with pragma Inline.
582 (Set_Pending_Access_Types): New routine along with pragma Inline.
583 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
584 Ins_Node. Determine the insertion node for anonynous access type
585 that acts as a component type of an array. Update the call to
586 Build_Finalization_Master.
587 (Expand_Freeze_Record_Type): Update
588 the calls to Build_Finalization_Master.
589 (Freeze_Type): Remove
590 local variable RACW_Seen. Factor out the code that deals with
591 remote access-to-class-wide types. Create a finalization master
592 when the designated type contains a private component. Fully
593 initialize all pending access types.
594 (Process_RACW_Types): New routine.
595 (Process_Pending_Access_Types): New routine.
596 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
597 needs to set primitive Finalize_Address.
598 (Expand_N_Allocator): Allocation no longer sets primitive
599 Finalize_Address.
600 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
601 Update the call to Build_Finalization_Master.
602 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
603 needs to set primitive Finalize_Address.
604 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
605 (Build_Finalization_Master): New parameter profile. Associate
606 primitive Finalize_Address with the finalization master if the
607 designated type has been frozen, otherwise treat the access
608 type as pending. Simplify the insertion of the master and
609 related initialization code.
610 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
611 abstract types.
612 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
613 Simplify the implementation.
614 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
615 along with comment on usage.
616 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
617 the comment on usage.
618 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
619 Finalize_Address to retrieve the primitive.
620 (Finalize_Address): New routine.
621 (Find_Finalize_Address): Removed.
622 * exp_util.ads (Finalize_Address): New routine.
623 * freeze.adb (Freeze_All): Remove the generation of finalization
624 masters.
625 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
626 pending access types from the partial to the full view.
627
628 2015-01-30 Robert Dewar <dewar@adacore.com>
629
630 * sem_disp.adb: Minor reformatting.
631 * sem_disp.ads: Documentation update.
632
633 2015-01-30 Ed Schonberg <schonberg@adacore.com>
634
635 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
636 or a function call, return True if type is class-wide.
637 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
638 Apply RM 4.5.7 (17/3): all or none of the dependent expression
639 of a conditional expression must be dynamically tagged.
640
641 2015-01-30 Ed Schonberg <schonberg@adacore.com>
642
643 * sem_ch6.adb (Analyze_Function_Return): In an extended return
644 statement, apply accessibility check to result object when there
645 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
646
647 2015-01-30 Robert Dewar <dewar@adacore.com>
648
649 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
650 Boolean for case where ELSE is omitted.
651 * sem_res.adb: Minor reformatting.
652
653 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
654
655 Fix build under cygwin/64.
656 * adaint.h: Add check for __CYGWIN__.
657 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
658
659 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
660
661 PR ada/64640
662 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
663 * mingw32.h: Don't include <tchar.h> under cygwin.
664 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
665
666 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
667
668 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
669 (DEF_FUNCTION_TYPE_VAR_12): New macros.
670
671 2015-01-09 Michael Collison <michael.collison@linaro.org>
672
673 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
674 vec.h, double-int.h, input.h, alias.h, symtab.h,
675 fold-const.h, wide-int.h, and inchash.h due to
676 flattening of tree.h.
677 * gcc-interface/decl.c: Ditto.
678 * gcc-interface/misc.c: Ditto.
679 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
680 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
681 fold-const.h, wide-int.h, and inchash.h due to
682 flattening of tree.h.
683 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
684 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
685 fold-const.h, wide-int.h, inchash.h due to
686 flattening of tree.h.
687 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
688 vec.h, double-int.h, input.h, alias.h, symtab.h,
689 fold-const.h, wide-int.h, and inchash.h due to
690 flattening of tree.h.
691 * gcc-interface/utils2.c: Ditto.
692
693 2015-01-07 Robert Dewar <dewar@adacore.com>
694
695 * sem_warn.adb (Check_One_Unit): Don't give unused entities
696 warning for a package which is used as a generic parameter.
697
698 2015-01-07 Bob Duff <duff@adacore.com>
699
700 * usage.adb (Usage): Correct documentation of
701 -gnatw.f switches.
702
703 2015-01-07 Robert Dewar <dewar@adacore.com>
704
705 * s-fileio.adb: Minor reformatting.
706
707 2015-01-07 Ed Schonberg <schonberg@adacore.com>
708
709 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
710 access to subprogram, replace its formals with new entities when
711 building the object declaration, both if actual is present and
712 when it is defaulted.
713
714 2015-01-07 Ed Schonberg <schonberg@adacore.com>
715
716 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
717 conversion and type of expression has invariant, apply invariant
718 check on expression.
719
720 2015-01-07 Ed Schonberg <schonberg@adacore.com>
721
722 * sem_ch3.adb (Create_Constrained_Components): A call to
723 Gather_Components may detect an error if an inherited discriminant
724 that controls a variant is non-static.
725 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
726 Gather_Components may report an error if an inherited discriminant
727 in a variant in non-static.
728 * sem_util.adb (Gather_Components): If a non-static discriminant
729 is inherited do not report error here, but let caller handle it.
730 (Find_Actual): Small optimization.
731
732 2015-01-07 Bob Duff <duff@adacore.com>
733
734 * usage.adb (Usage): Document -gnatw.f switch.
735
736 2015-01-07 Ed Schonberg <schonberg@adacore.com>
737
738 * sem_ch12.adb: Code clean up and minor reformatting.
739
740 2015-01-07 Robert Dewar <dewar@adacore.com>
741
742 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
743 Raise_Accessibility_Error call.
744 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
745 on handling of invalid digits in based constants.
746 * s-fatgen.ads: Minor reformatting.
747 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
748 Avoid noting bogus modification for Valid test.
749 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
750 * einfo.ads: Minor reformatting.
751 * sem_warn.adb: Minor comment clarification.
752 * sem_ch12.adb: Minor reformatting.
753
754 2015-01-07 Ed Schonberg <schonberg@adacore.com>
755
756 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
757 over static predicates when the loop parameter specification
758 carries a Reverse indicator.
759
760 2015-01-07 Ed Schonberg <schonberg@adacore.com>
761
762 * sem_ch12.adb (Instantiate_Object): If formal has a default,
763 actual is missing and formal has an anonymous access type, copy
764 access definition in full so that tree for instance is properly
765 formatted for ASIS use.
766
767 2015-01-07 Bob Duff <duff@adacore.com>
768
769 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
770 for P'Access, where P is a subprogram in the same package as
771 the P'Access, and the P'Access is evaluated at elaboration
772 time, and occurs before the body of P. For example, "X : T :=
773 P'Access;" would allow a subsequent call to X.all to be an
774 access-before-elaboration error; hence the warning. This warning
775 is enabled by the -gnatw.f switch.
776 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
777 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
778 * gnat_ugn.texi: Document the new warning.
779
780 2015-01-07 Johannes Kanig <kanig@adacore.com>
781
782 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
783 cross ref files.
784
785 2015-01-07 Robert Dewar <dewar@adacore.com>
786
787 * s-taprop-linux.adb, clean.adb: Minor reformatting.
788
789 2015-01-07 Arnaud Charlet <charlet@adacore.com>
790
791 * s-tassta.adb: Relax some overzealous assertions.
792
793 2015-01-07 Ed Schonberg <schonberg@adacore.com>
794
795 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
796 view of a type is legal when context is a thunk generated for
797 operation inherited from an interface.
798 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
799 a thunk and return type is an incomplete type do not continue
800 expansion; thunk will be fully elaborated when generating code.
801
802 2015-01-07 Doug Rupp <rupp@adacore.com>
803
804 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
805 (QueryPerformanceFrequency): New imported procedure.
806 * s-taprop-mingw.adb (RT_Resolution): Call above and return
807 resolution vice a hardcoded value.
808 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
809 resolution vice a hardcoded value.
810 * s-linux-android.ads (clockid_t): New subtype.
811 * s-osinte-aix.ads (clock_getres): New imported subprogram.
812 * s-osinte-android.ads (clock_getres): Likewise.
813 * s-osinte-freebsd.ads (clock_getres): Likewise.
814 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
815 * s-osinte-darwin.ads (clock_getres): New subprogram.
816 * s-osinte-darwin.adb (clock_getres): New subprogram.
817 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
818 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
819 calculate resolution vice hard coded value.
820
821 2015-01-07 Ed Schonberg <schonberg@adacore.com>
822
823 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
824 limited view, use non-limited view when available to create
825 equivalent record type.
826
827 2015-01-07 Vincent Celier <celier@adacore.com>
828
829 * gnatcmd.adb: Remove command Sync and any data and processing
830 related to this command. Remove project processing for gnatstack.
831 * prj-attr.adb: Remove package Synchonize and its attributes.
832
833 2015-01-07 Vincent Celier <celier@adacore.com>
834
835 * clean.adb: Minor error message change.
836
837 2015-01-07 Tristan Gingold <gingold@adacore.com>
838
839 PR ada/64349
840 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
841
842 2015-01-07 Javier Miranda <miranda@adacore.com>
843
844 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
845 protect the frontend against never ending recursion caused by
846 circularities in the sources.
847
848 2015-01-07 Robert Dewar <dewar@adacore.com>
849
850 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
851 exp_ch3.adb: Minor reformatting.
852
853 2015-01-07 Doug Rupp <rupp@adacore.com>
854
855 * s-linux.ads (clockid_t): New subtype.
856 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
857 (clockid_t): New subtype.
858 (clock_getres): Import system call.
859 * s-taprop-linux.adb (System.OS_Constants): With and rename.
860 (RT_Resolution): Remove
861 hardcoded value and call clock_getres.
862 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
863 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
864
865 2015-01-07 Robert Dewar <dewar@adacore.com>
866
867 * sem_warn.adb (Check_One_Unit): Guard against context item
868 with no Entity field.
869
870 2015-01-07 Vincent Celier <celier@adacore.com>
871
872 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
873 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
874
875 2015-01-07 Vincent Celier <celier@adacore.com>
876
877 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
878 errors/warnings in the first parsing of the project files,
879 to display the warnings when there is no errors.
880
881 2015-01-07 Tristan Gingold <gingold@adacore.com>
882
883 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
884
885 2015-01-07 Doug Rupp <rupp@adacore.com>
886
887 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
888 value from Int_Lock as parameter to Int_Unlock.
889 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
890 * s-vxwext.ads (Int_Unlock): Likewise.
891 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
892 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
893 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
894 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
895
896 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
897
898 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
899 keep ___XP suffixes
900
901 2015-01-07 Tristan Gingold <gingold@adacore.com>
902
903 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
904 handle overlap.
905
906 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
907
908 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
909 automatically set No_Strict_Aliasing on access types.
910 * fe.h (No_Strict_Aliasing_CP): Declare.
911 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
912 No_Strict_Aliasing_CP is set.
913
914 2015-01-07 Johannes Kanig <kanig@adacore.com>
915
916 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
917 not build function wrapper in gnatprove mode when the package
918 is externally axiomatized.
919
920 2015-01-07 Jose Ruiz <ruiz@adacore.com>
921
922 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
923 intermediate computations when the parameters have different signs.
924
925 2015-01-07 Javier Miranda <miranda@adacore.com>
926
927 * exp_ch3.adb (Build_Init_Procedure): For derived types,
928 improve the code which takes care of identifying and moving to
929 the beginning of the init-proc the call to the init-proc of the
930 parent type.
931
932 2015-01-07 Olivier Hainque <hainque@adacore.com>
933
934 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
935 Elaborate the expression as part of the same stmt group as the actions.
936
937 2015-01-07 Robert Dewar <dewar@adacore.com>
938
939 * sem_ch3.adb: Minor error message change.
940
941 2015-01-07 Ed Schonberg <schonberg@adacore.com>
942
943 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
944 Following AI05-028, the pragam applies legally to any composite type.
945
946 2015-01-07 Arnaud Charlet <charlet@adacore.com>
947
948 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
949 (sigwait, sigwaitinfo): Removed, not needed after all on any
950 VxWorks configurations.
951
952 2015-01-07 Robert Dewar <dewar@adacore.com>
953
954 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
955
956 2015-01-07 Javier Miranda <miranda@adacore.com>
957
958 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
959 generation of accessibility check.
960
961 2015-01-07 Ed Schonberg <schonberg@adacore.com>
962
963 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
964 illegal completion from a class- wide type, set etype of the
965 derived type properly to prevent cascaded errors.
966
967 2015-01-07 Robert Dewar <dewar@adacore.com>
968
969 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
970 reformatting.
971
972 2015-01-07 Robert Dewar <dewar@adacore.com>
973
974 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
975 New procedure.
976 (OK_No_Use_Of_Entity_Name): New function.
977 (Set_Restriction_No_Use_Of_Entity): New procedure.
978 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
979 New procedure.
980 (OK_No_Use_Of_Entity_Name): New function.
981 (Set_Restriction_No_Use_Of_Entity): New procedure.
982 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
983 No_Use_Of_Entity.
984 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
985 Add processing for new restriction No_Use_Of_Entity.
986
987 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
988
989 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
990 component type as to Has_Atomic_Components type. Remove useless
991 test on Is_Aliased component type.
992
993 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
994
995 * alloc.ads Alphabetize several declarations. Add constants
996 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
997 * atree.adb Add with and use clauses for Opt.
998 (Allocate_Initialize_Node): Mark a node as ignored Ghost
999 if it is created in an ignored Ghost region.
1000 (Ekind_In): New variant.
1001 (Is_Ignored_Ghost_Node): New routine.
1002 (Set_Is_Ignored_Ghost_Node): New routine.
1003 * atree.adb Aplhabetize several subprograms declarations. Flag
1004 Spare0 is now known as Is_Ignored_Ghost_Node.
1005 (Ekind_In): New variant.
1006 (Is_Ignored_Ghost_Node): New routine.
1007 (Set_Is_Ignored_Ghost_Node): New routine.
1008 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1009 (Contains_Ignored_Ghost_Code): New routine.
1010 (Set_Contains_Ignored_Ghost_Code): New routine.
1011 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1012 It is now possible to set this property on an unanalyzed entity.
1013 (Write_Entity_Flags): Output the status of flag
1014 Contains_Ignored_Ghost_Code.
1015 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1016 usage in nodes.
1017 (Contains_Ignored_Ghost_Code): New routine
1018 along with pragma Inline.
1019 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1020 * exp_ch3.adb Add with and use clauses for Ghost.
1021 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1022 Set the Ghost_Mode in effect.
1023 (Restore_Globals): New routine.
1024 * exp_ch7.adb (Process_Declarations): Do not process a context
1025 that invoves an ignored Ghost entity.
1026 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1027 construct that has been rewritten as a null statement.
1028 * exp_disp.adb Add with and use clauses for Ghost.
1029 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1030 the Ghost_Mode in effect.
1031 (Restore_Globals): New routine.
1032 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1033 does not require any clean up. Add two missing cases that deal
1034 with block statements.
1035 * freeze.adb Add with and use clauses for Ghost.
1036 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1037 Set the Ghost_Mode in effect.
1038 (Restore_Globals): New routine.
1039 * frontend.adb Add with and use clauses for Ghost. Remove any
1040 ignored Ghost code from all units that qualify.
1041 * ghost.adb New unit.
1042 * ghost.ads New unit.
1043 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1044 the table in package Ghost.
1045 * lib.ads: Alphabetize several subprogram declarations.
1046 * lib-xref.adb (Output_References): Do not generate reference
1047 information for ignored Ghost entities.
1048 * opt.ads Add new type Ghost_Mode_Type and new global variable
1049 Ghost_Mode.
1050 * rtsfind.adb (Load_RTU): Provide a clean environment when
1051 loading a runtime unit.
1052 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1053 entry/exit as the node may set a different mode.
1054 (Do_Analyze):
1055 Capture/restore the value of Ghost_Mode on entry/exit as the
1056 unit may be withed from a unit with a different Ghost mode.
1057 * sem_ch3.adb Add with and use clauses for Ghost.
1058 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1059 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1060 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1061 the entity as Ghost when there is a Ghost_Mode in effect.
1062 (Array_Type_Declaration): The implicit base type inherits the
1063 "ghostness" from the array type.
1064 (Derive_Subprogram): The
1065 alias inherits the "ghostness" from the parent subprogram.
1066 (Make_Implicit_Base): The implicit base type inherits the
1067 "ghostness" from the parent type.
1068 * sem_ch5.adb Add with and use clauses for Ghost.
1069 (Analyze_Assignment): Set the Ghost_Mode in effect.
1070 * sem_ch6.adb Add with and use clauses for Ghost.
1071 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1072 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1073 Set the Ghost_Mode in effect. Mark the entity as Ghost when
1074 there is a Ghost_Mode in effect.
1075 * sem_ch7.adb Add with and use clauses for Ghost.
1076 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1077 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1078 effect. Mark the entity as Ghost when there is a Ghost_Mode
1079 in effect.
1080 * sem_ch8.adb Add with and use clauses for Ghost.
1081 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1082 Analyze_Object_Renaming, Analyze_Package_Renaming,
1083 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1084 the entity as Ghost when there is a Ghost_Mode in effect.
1085 (Find_Type): Check the Ghost context of a type.
1086 * sem_ch11.adb Add with and use clauses for Ghost.
1087 (Analyze_Exception_Declaration): Set the Ghost_Mode in
1088 effect. Mark the entity as Ghost when there is a Ghost_Mode
1089 in effect.
1090 * sem_ch12.adb Add with and use clauses for Ghost.
1091 (Analyze_Generic_Package_Declaration,
1092 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1093 Mark the entity as Ghost when there is a Ghost_Mode in effect.
1094 * sem_prag.adb Add with and use clauses for Ghost.
1095 (Analyze_Pragma): Ghost-related checks are triggered when there
1096 is a Ghost mode in effect.
1097 (Create_Abstract_State): Mark the
1098 entity as Ghost when there is a Ghost_Mode in effect.
1099 * sem_res.adb Add with and use clauses for Ghost.
1100 (Check_Ghost_Context): Removed.
1101 * sem_util.adb (Check_Ghost_Completion): Removed.
1102 (Check_Ghost_Derivation): Removed.
1103 (Incomplete_Or_Partial_View):
1104 Add a guard in case the entity has not been analyzed yet
1105 and does carry a scope.
1106 (Is_Declaration): New routine.
1107 (Is_Ghost_Entity): Removed.
1108 (Is_Ghost_Statement_Or_Pragma):
1109 Removed.
1110 (Is_Subject_To_Ghost): Removed.
1111 (Set_Is_Ghost_Entity):
1112 Removed.
1113 (Within_Ghost_Scope): Removed.
1114 * sem_util.adb (Check_Ghost_Completion): Removed.
1115 (Check_Ghost_Derivation): Removed.
1116 (Is_Declaration): New routine.
1117 (Is_Ghost_Entity): Removed.
1118 (Is_Ghost_Statement_Or_Pragma): Removed.
1119 (Is_Subject_To_Ghost): Removed.
1120 (Set_Is_Ghost_Entity): Removed.
1121 (Within_Ghost_Scope): Removed.
1122 * sinfo.ads Add a section on Ghost mode.
1123 * treepr.adb (Print_Header_Flag): New routine.
1124 (Print_Node_Header): Factor out code. Output flag
1125 Is_Ignored_Ghost_Node.
1126 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1127
1128 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1129
1130 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1131 true test and unreachable 'else' arm.
1132
1133 2015-01-06 Vincent Celier <celier@adacore.com>
1134
1135 * prj-conf.adb (Check_Target): Improve error message when
1136 there are mismatched targets between the on in the configuration
1137 project file and the specified one, either in the main project
1138 file or in the --target= switch.
1139
1140 2015-01-06 Pascal Obry <obry@adacore.com>
1141
1142 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1143 Install_Name attribute definitions.
1144
1145 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1146
1147 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1148 generated Import pragma for the internal imported procedure does
1149 not come from an aspect, so that Is_Imported can be properly
1150 set for it.
1151
1152 2015-01-06 Gary Dismukes <dismukes@adacore.com>
1153
1154 * sem_ch12.adb (Might_Inline_Subp): Record whether
1155 any subprograms in the generic package are marked with
1156 pragma Inline_Always (setting flag Has_Inline_Always).
1157 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1158 alongside existing test of Front_End_Inlining as alternative
1159 conditions for setting Inline_Now. Also add test of
1160 Has_Inline_Always along with Front_End_Inlining test as an
1161 alternative condition for setting Needs_Body to False.
1162
1163 2015-01-06 Tristan Gingold <gingold@adacore.com>
1164
1165 * i-cpoint.adb (Copy_Array): Handle overlap.
1166
1167 2015-01-06 Pascal Obry <obry@adacore.com>
1168
1169 * bindgen.adb: Minor style fix.
1170
1171 2015-01-06 Robert Dewar <dewar@adacore.com>
1172
1173 * sem_util.ads, sem_util.adb: Minor reformatting.
1174
1175 2015-01-06 Vincent Celier <celier@adacore.com>
1176
1177 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1178 with flags before parsing the projects.
1179 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1180 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1181 to True in the flags, when Ignore_Missing_With is True and an
1182 imported project cannot be found.
1183 * prj-proc.adb (Expression): When there are incomplete withs and
1184 a variable or attribute is not found, set the variable/attribute
1185 to unknown.
1186 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1187 defaulted to False.
1188
1189 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
1190
1191 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1192 prj-err.adb: Add new switch --no-command-line.
1193
1194 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1195
1196 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1197
1198 2015-01-06 Robert Dewar <dewar@adacore.com>
1199
1200 * sem_ch11.adb: Minor reformatting.
1201
1202 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1203
1204 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1205 Build_Array_Aggr_Code, used to initialized components covered
1206 by a box association. If the component type is scalar and has
1207 a default aspect, use it to initialize such components.
1208
1209 2015-01-06 Pascal Obry <obry@adacore.com>
1210
1211 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1212 control the setup of the exception handler.
1213 * initialize.c: Remove unused declaration.
1214 * bindgen.adb: Always call __gnat_runtime_initialize and pass
1215 whether the exeception handler must be set or not.
1216
1217 2015-01-06 Thomas Quinot <quinot@adacore.com>
1218
1219 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1220 order to native from default, make sure to also adjust bit order.
1221 * exp_aggr.adb: Minor reformatting.
1222
1223 2015-01-06 Robert Dewar <dewar@adacore.com>
1224
1225 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1226 s-valrea.adb, s-valrea.ads: Add some additional guards for
1227 Str'Last = Positive'Last.
1228
1229 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1230
1231 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1232 subprograms.
1233
1234 2015-01-06 Javier Miranda <miranda@adacore.com>
1235
1236 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1237
1238 2015-01-06 Thomas Quinot <quinot@adacore.com>
1239
1240 * sem_util.ads: Minor reformatting.
1241 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1242 (In_RCI_Declaration) Return to old name, as proper checking of
1243 entity being in the visible part depends on entity kind and must
1244 be done by the caller.
1245
1246 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1247
1248 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1249 for operators in SPARK.
1250
1251 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1252
1253 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1254 expression in an others association before making copies for
1255 separate resolution and accessibility checks. This ensures that
1256 the type of the expression is available to ASIS in all cases,
1257 in particular if the expression is itself an aggregate.
1258
1259 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1260
1261 * einfo.ads (Has_Independent_Components): Document extended
1262 usage.
1263 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1264 (Set_Has_Independent_Components): Adjust assertion.
1265 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1266 for pragma Atomic_Components. Set Has_Independent_Components
1267 on the object instead of the type for an object declaration with
1268 pragma Independent_Components.
1269
1270 2015-01-06 Olivier Hainque <hainque@adacore.com>
1271
1272 * set_targ.adb (Read_Target_Dependent_Values): Set
1273 Long_Double_Index when "long double" is read.
1274 (elaboration code): Register_Back_End_Types only when not reading from
1275 config files. Doing otherwise is pointless and error prone.
1276
1277 2015-01-06 Robert Dewar <dewar@adacore.com>
1278
1279 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1280
1281 2015-01-06 Robert Dewar <dewar@adacore.com>
1282
1283 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1284 Str'Last = Positive'Last.
1285
1286 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1287
1288 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1289 where the non-limited type is a generic actual and appears as
1290 a subtype of the non-limited view of the other.
1291 * freeze.adb (Build_Renamed_Body): If the return type of the
1292 declaration that is being completed is a limited view and the
1293 non-limited view is available, use it in the specification of
1294 the generated body.
1295
1296 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1297
1298 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1299 incomplete view, the type of the classwide type common to both
1300 views is the type being declared.
1301
1302 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1303
1304 * einfo.ads (Is_Independent): Further document extended usage.
1305
1306 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1307
1308 * einfo.ads (Is_Independent): Document extended usage.
1309 * einfo.adb (Is_Independent): Remove obsolete assertion.
1310 (Set_Is_Independent): Likewise.
1311 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1312 (Process_Atomic_Independent_Shared_Volatile): ...this.
1313 Deal with pragma Independent here.
1314 (Analyze_Pragma): Adjust
1315 to above renaming and also invoke it for pragma Independent.
1316 Adjust comment for Independent_Components.
1317
1318 2015-01-06 Robert Dewar <dewar@adacore.com>
1319
1320 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1321 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1322
1323 2015-01-06 Robert Dewar <dewar@adacore.com>
1324
1325 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1326 = Positive'Last.
1327 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1328 Str'Last = Positive'Last.
1329
1330 2015-01-06 Robert Dewar <dewar@adacore.com>
1331
1332 * sem_prag.adb (Process_Inline): Remove redundant construct
1333 warning (-gnatw.r) for an ineffective pragma Inline.
1334
1335 2015-01-06 Robert Dewar <dewar@adacore.com>
1336
1337 * s-valint.adb: Fix typo in last checkin.
1338 * s-valuns.adb (Value_Unsigned): More efficient fix for
1339 Positive'Last case.
1340 * sem_attr.adb (Analyze_Attribute): Minor reformatting
1341 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1342
1343 2015-01-06 Robert Dewar <dewar@adacore.com>
1344
1345 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1346 Str'Last = Positive'Last
1347
1348 2015-01-06 Thomas Quinot <quinot@adacore.com>
1349
1350 * xoscons.adb: Display exception information and return non-zero
1351 exit status in top level exception handler.
1352
1353 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1354
1355 * sem_ch8.adb: Code clean up.
1356
1357 2015-01-06 Tristan Gingold <gingold@adacore.com>
1358
1359 * targparm.ads: Remove obsolete comment.
1360
1361 2015-01-06 Olivier Hainque <hainque@adacore.com>
1362
1363 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1364 constructing a ref to variable, update inner_const_flag from the
1365 variable TREE_READONLY attribute.
1366 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1367 definition.
1368 (get_target_float_size): Remove.
1369 (get_target_double_size): Remove.
1370 (get_target_long_double_size): Remove.
1371
1372 2015-01-06 Pascal Obry <obry@adacore.com>
1373
1374 * adaint.c (ProcListEvt): Set to NULL.
1375 * rtinit.c: New file.
1376 (__gnat_rt_init_count): New reference counter set to 0.
1377 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1378 this code is actually needed for the runtime initialization. This
1379 routine returns immediately if the initialization has already been done.
1380 * final.c: Revert previous change.
1381 * rtfinal.c: New file.
1382 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1383 section and event. The default version of this routine is empty (except
1384 for the reference counting code). This routine returns immediately if
1385 some others libraries are referencing the runtime.
1386 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1387 remove circuitry to initialize the signal handler as this is
1388 now done by the runtime initialization routine.
1389 (Gen_Adafinal): Generate call to Runtime_Finalize.
1390 * gnat_ugn.texi: Update documentation about concurrency and
1391 initialization/finalization of the run-time.
1392 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1393 references to rtfinal.o and rtinit.o
1394
1395 2015-01-06 Robert Dewar <dewar@adacore.com>
1396
1397 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1398 for Enum_Image.
1399 * sem_attr.adb: Implement Enum_Image attribute.
1400 * snames.ads-tmpl: Add entries for Enum_Image attribute.
1401
1402 2015-01-06 Robert Dewar <dewar@adacore.com>
1403
1404 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1405 * restrict.ads (No_Use_Of_Entity): New table.
1406 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1407 Ignore No_Use_Of_Entity (will be processed in parser).
1408 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1409
1410 2015-01-06 Vincent Celier <celier@adacore.com>
1411
1412 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1413 to check for an extended project, if a project does not have
1414 yet a project declaration.
1415
1416 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
1417
1418 * scos.ads: Update documentation about the SCO table build
1419 process and about table records format.
1420 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1421 (SCO_Record_Filtered): New procedure.
1422 (Set_SCO_Logical_Operator): New procedure.
1423 (dsco): Update documentation.
1424 * par_sco.adb: Update library-level comments.
1425 (SCO_Generation_State_Type): New type.
1426 (SCO_Generation_State): New variable.
1427 (SCO_Raw_Table): New package instanciation.
1428 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1429 ("<"): New.
1430 (Tristate): New type.
1431 (Is_Logical_Operator): Return Tristate and update documentation.
1432 (Has_Decision): Update call to Is_Logical_Operator and complete
1433 documentation.
1434 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1435 comment, add an assertion for state checking and change
1436 references to SCO_Table into SCO_Raw_Table.
1437 (dsco): Refactor to dump the raw and the filtered tables.
1438 (Process_Decisions.Output_Decision_Operand): Handle putative
1439 short-circuit operators.
1440 (Process_Decisions.Output_Element): Update references
1441 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1442 (Process_Decisions.Process_Decision_Operand): Update call
1443 to Is_Logical_Operator.
1444 (Process_Decisions.Process_Node): Handle putative short-circuit
1445 operators and change references to
1446 SCO_Table into SCO_Raw_Table.
1447 (SCO_Output): Add an assertion
1448 for state checking and remove code that used to stamp out SCO entries.
1449 (SCO_Pragma_Disabled): Change reference to SCO_Table
1450 into SCO_Raw_Table.
1451 (SCO_Record): Rename to SCO_Record_Raw,
1452 add an assertion for state checking and change references
1453 to SCO_Table into SCO_Raw_Table.
1454 (Set_SCO_Condition): Add an assertion for state checking, update
1455 references to Condition_Pragma_Hash_Table and change references to
1456 SCO_Table into SCO_Raw_Table.
1457 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1458 change references to SCO_Table into SCO_Raw_Table.
1459 (Set_SCO_Logical_Operator): New procedure.
1460 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1461 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1462 (SCO_Record_Fildered): New procedure.
1463 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1464 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1465 output SCOs.
1466 * par-load.adb (Load): Update reference to SCO_Record.
1467 * par.adb (Par): Update reference to SCO_Record.
1468 * put_scos.adb (Put_SCOs): Add an assertion to check that no
1469 putative SCO condition reaches this end.
1470 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1471 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1472 when corresponding to an "and"/"or" operator affected by the
1473 Short_Circuit_And_Or pragma.
1474
1475 2015-01-06 Robert Dewar <dewar@adacore.com>
1476
1477 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1478 msg for attempted USE of generic subprogram or subprogram.
1479
1480 2015-01-06 Robert Dewar <dewar@adacore.com>
1481
1482 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1483 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1484 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1485
1486 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1487
1488 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1489 that specify stream subprograms, if the prefix is a class-wide
1490 type then the generated attribute definition clause must apply
1491 to the same class-wide type.
1492 (Default_Iterator): An iterator defined by an aspect of some
1493 container type T must have a first parameter of type T, T'class,
1494 or an access to such (from code reading RM 5.5.1 (2/3)).
1495
1496 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1497
1498 * gnat1drv.adb: Minor: complete previous change.
1499
1500 2015-01-06 Olivier Hainque <hainque@adacore.com>
1501
1502 * set_targ.ads (C_Type_For): New function. Return the name of
1503 a C type supported by the back-end and suitable as a basis to
1504 construct the standard Ada floating point type identified by
1505 the T parameter. This is used as a common ground to feed both
1506 ttypes values and the GNAT tree nodes for the standard floating
1507 point types.
1508 * set_targ.adb (Long_Double_Index): The index at which "long
1509 double" gets registered in the FPT_Mode_Table. This is useful to
1510 know whether we have a "long double" available at all and get at
1511 it's characteristics without having to search the FPT_Mode_Table
1512 when we need to decide which C type should be used as the
1513 basis for Long_Long_Float in Ada.
1514 (Register_Float_Type): Fill Long_Double_Index.
1515 (FPT_Mode_Index_For): New function. Return the index in
1516 FPT_Mode_Table that designates the entry corresponding to the
1517 provided C type name.
1518 (FPT_Mode_Index_For): New function. Return the index in
1519 FPT_Mode_Table that designates the entry for a back-end type
1520 suitable as a basis to construct the standard Ada floating point
1521 type identified by the input T parameter.
1522 (elaboration code): Register_Back_End_Types unconditionally,
1523 so C_Type_For can operate regardless of -gnateT. Do it
1524 early so we can query it for the floating point sizes, via
1525 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1526 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1527 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1528 which C type should be used as the basis for the construction
1529 of the Standard Ada floating point types.
1530 * get_targ.ads (Get_Float_Size, Get_Double_Size,
1531 Get_Long_Double_Size): Remove.
1532 * get_targ.adb: Likewise.
1533
1534 2015-01-06 Thomas Quinot <quinot@adacore.com>
1535
1536 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1537 parameter and rename to...
1538 (In_RCI_Visible_Declarations): Fix handling of private part of nested
1539 package.
1540 (Validate_RCI_Subprogram_Declaration): Reject illegal function
1541 returning anonymous access in RCI unit.
1542
1543 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1544
1545 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1546 function wrapper may be a homonym of another local declaration.
1547 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1548 build function and operator wrappers after the actual subprogram
1549 has been resolved, and replace the standard renaming declaration
1550 with the declaration of wrapper.
1551 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1552 make public for use elsewhere.
1553 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1554 rewrite, now that actual is fully resolved when wrapper is
1555 constructed.
1556
1557 2015-01-06 Javier Miranda <miranda@adacore.com>
1558
1559 * exp_disp.adb: Revert previous change.
1560
1561 2015-01-06 Robert Dewar <dewar@adacore.com>
1562
1563 * exp_util.adb: Change name Name_Table_Boolean to
1564 Name_Table_Boolean1.
1565 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1566 Introduce Name_Table_Boolean2/3.
1567 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1568 Introduce Name_Table_Boolean2/3.
1569 * par-ch13.adb: Change name Name_Table_Boolean to
1570 Name_Table_Boolean1.
1571
1572 2015-01-06 Bob Duff <duff@adacore.com>
1573
1574 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1575
1576 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1577
1578 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1579 others choice that covers multiple components, analyze each
1580 copy with the type of the component even in compile-only mode,
1581 to detect potential accessibility errors.
1582
1583 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1584
1585 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1586 (Resolve_Actuals): An effectively volatile out
1587 parameter cannot act as an in or in out actual in a call.
1588 (Resolve_Entity_Name): An effectively volatile out parameter
1589 cannot be read.
1590
1591 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1592
1593 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1594 the expansion of an expression function it may be pre-analyzed
1595 if a 'access attribute is applied to the function, in which case
1596 last_entity may have been assigned already.
1597
1598 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1599
1600 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1601 type and actual has the corresponding full view, there is no
1602 error, but a case of use of incomplete type in a predicate or
1603 invariant expression.
1604
1605 2015-01-06 Vincent Celier <celier@adacore.com>
1606
1607 * makeutl.adb (Insert_No_Roots): Make sure that the same source
1608 in two different project tree is checked in both trees, if they
1609 are sources of two different projects, extended or not.
1610
1611 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1612
1613 * gnat1drv.adb: Minor code clean up.
1614 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1615
1616 2015-01-06 Bob Duff <duff@adacore.com>
1617
1618 * osint.adb (Read_Source_File): Don't print out
1619 file name unless T = Source.
1620
1621 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1622
1623 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1624 recognize improper uses of constant_reference types as actuals
1625 for in-out parameters.
1626 (Check_Function_Call): Do not collect identifiers if function
1627 name is missing because of previous error.
1628
1629 2015-01-06 Robert Dewar <dewar@adacore.com>
1630
1631 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1632 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1633 Minor change of name Name_Table_Info => Name_Table_Int.
1634
1635 2015-01-06 Robert Dewar <dewar@adacore.com>
1636
1637 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1638 in previous checkin.
1639 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1640 of bounds.
1641 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1642
1643 2015-01-06 Vincent Celier <celier@adacore.com>
1644
1645 * a-strsup.adb (Times (Natural;String;Positive)): Raise
1646 Length_Error, not Index_Error, when the result is too long.
1647
1648 2015-01-06 Thomas Quinot <quinot@adacore.com>
1649
1650 * a-direct.adb (Create_Path): Minor error handling and
1651 performance improvement.
1652
1653 2015-01-06 Robert Dewar <dewar@adacore.com>
1654
1655 * checks.ads, sem_ch12.adb: Minor reformatting.
1656 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1657 zero check for fixed-point case if Backend_Divide_Checks_On_Target
1658 is False.
1659
1660 2015-01-06 Robert Dewar <dewar@adacore.com>
1661
1662 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1663 Do not set restriction No_Elaboration_Code unless the pragma
1664 appears in the main unit).
1665
1666 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1667
1668 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1669 that with clause has already been analyzed before checking kind
1670 of with_clause.
1671
1672 2015-01-06 Robert Dewar <dewar@adacore.com>
1673
1674 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1675 (as required by RM).
1676
1677 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1678
1679 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1680
1681 2015-01-06 Robert Dewar <dewar@adacore.com>
1682
1683 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1684 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1685
1686 2015-01-06 Javier Miranda <miranda@adacore.com>
1687
1688 * exp_disp.adb (Expand_Interface_Conversion): No displacement
1689 of the pointer to the object needed when the type of the operand
1690 is not an interface type and the interface is one of its parent
1691 types (since they share the primary dispatch table).
1692
1693 2015-01-06 Vincent Celier <celier@adacore.com>
1694
1695 * prj-env.adb: Minor comment update.
1696
1697 2015-01-06 Javier Miranda <miranda@adacore.com>
1698
1699 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1700 access types whose target type is an interface type to operands
1701 that are access types; required to report an error when the
1702 operand is not an access type.
1703
1704 2015-01-06 Bob Duff <duff@adacore.com>
1705
1706 * a-cfinve.adb (Copy): Set the discriminant to the Length when
1707 Capacity = 0.
1708 * a-cofove.ads (Capacity): Add a postcondition.
1709 * a-cfinve.ads (Capacity): Add a postcondition.
1710 (Reserve_Capacity): Correct the postcondition in the case where
1711 Capacity = 0; that means "Capacity => Length (Container)".
1712 * a-cofove.adb (Elems[c]): Add a comment
1713 explaining the dangers and how to avoid them.
1714
1715 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1716
1717 * sem_ch12.adb: Code clean up.
1718
1719 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1720
1721 * gnatvsn.ads: Bump copyright year.
1722
1723 2015-01-06 Robert Dewar <dewar@adacore.com>
1724
1725 * s-taskin.ads, s-traces.ads: Minor reformatting.
1726 * exp_util.adb: Minor typo fix.
1727
1728 2015-01-06 Vincent Celier <celier@adacore.com>
1729
1730 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1731 with the runtime name.
1732 * prj-env.adb (Initialize_Default_Project_Path): When both
1733 Target_Name and Runtime_Name are not empty string, add to the
1734 project path the two directories .../lib/gnat and .../share/gpr
1735 related to the runtime.
1736 * prj-env.ads (Initialize_Default_Project_Path): New String
1737 parameter Runtime_Name, defaulted to the empty string.
1738
1739 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1740
1741 * frontend.adb: Guard against the case where a configuration
1742 pragma may be split into multiple pragmas and the original
1743 rewritten as a null statement.
1744 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1745 pragma using Insert_Before rather than Insert_Action. This
1746 takes care of the configuration pragma case where Insert_Action
1747 would fail.
1748
1749 2015-01-06 Bob Duff <duff@adacore.com>
1750
1751 * a-coboho.ads (Element_Access): Add "pragma
1752 No_Strict_Aliasing (Element_Access);". This is needed because
1753 we are unchecked-converting from Address to Element_Access.
1754 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1755 result to be 1.
1756
1757 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1758
1759 * sem_res.adb (Resolve_Actuals): Remove the
1760 restriction which prohibits volatile actual parameters with
1761 enabled external propery Async_Writers to act appear in procedure
1762 calls where the corresponding formal is of mode OUT.
1763
1764 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1765
1766 * gnat_ugn.texi: Bump @copying's copyright year.
1767
1768 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
1769
1770 PR ada/64492
1771 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1772
1773 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
1774
1775 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1776 of unchecked asprintf.
1777
1778 \f
1779 Copyright (C) 2015 Free Software Foundation, Inc.
1780
1781 Copying and distribution of this file, with or without modification,
1782 are permitted in any medium without royalty provided the copyright
1783 notice and this notice are preserved.