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