* gnat_rm.texi (Machine Code Insertions): Clean up.
[official-gcc.git] / gcc / ada / ChangeLog
blobe9413d4097fa6ef3177f5eb7335ea85318acc886
1 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
3         * gnat_rm.texi (Machine Code Insertions): Clean up.
5 2014-07-18  Robert Dewar  <dewar@adacore.com>
7         * exp_ch7.adb: Minor reformatting.
9 2014-07-18  Claire Dross  <dross@adacore.com>
11         * sem_aux.ads (Get_Binary_Nkind): New function that returns
12         the Node_Kind value of an entity defining a binary operator.
13         (Get_Unary_Nkind): New function that returns the Node_Kind value
14         of an entity defining a unary operator.
16 2014-07-18  Pascal Obry  <obry@adacore.com>
18         * sysdep.c: comment update.
19         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
20         platforms where it is known to be supported.
22 2014-07-18  Thomas Quinot  <quinot@adacore.com>
24         * sem_dist.adb (Process_Remote_AST_Declaration): Need
25         to set Fat_Type's Ekind in order to be able to use its
26         Corresponding_Remote_Type attribute.
28 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
30         * einfo.adb Last_Aggregate_Assignment is now Node 30.
31         (Last_Aggregate_Assignment): Include
32         constants in the assertion. Update the underlying node.
33         (Set_Last_Aggregate_Assignment): Include constants in the
34         assertion. Update the underlying node.  (Write_Field11_Name):
35         Remove the entry for Last_Aggregate_Assignment.
36         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
37         * einfo.ads Update the node designation and usage of attribute
38         Last_Aggregate_Assignment.
39         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
40         assignment statement used to initialize a controlled object.
41         (Late_Expansion): Store the last assignment statement used to
42         initialize a controlled record or an array of controlled objects.
43         * exp_ch3.adb (Expand_N_Object_Declaration): Default
44         initialization of objects is now performed in a separate routine.
45         (Default_Initialize_Object): New routine.
46         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
47         Obj_Id. Update the comment on usage.
48         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
49         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
50         (Is_Init_Call): Add formal parameter Init_Typ. Update the
51         comment on usage.  Account for the type init proc when trying
52         to determine whether a statement is an initialization call.
53         (Make_Adjust_Call): Rename formal parameter For_Parent to
54         Skip_Self. Update all occurrences of For_Parent. Account for
55         non-tagged types. Update the call to Make_Call.
56         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
57         comment on usage. Update all occurrences of For_Parent.
58         (Make_Final_Call): Rename formal parameter For_Parent to
59         Skip_Self. Update all occurrences of For_Parent. Account
60         for non-tagged types. Update the call to Make_Call.
61         (Process_Object_Declaration): Most variables and constants are
62         now local to the routine.
63         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
64         For_Parent to Skip_Self. Update the comment on usage.
65         (Make_Final_Call): Rename formal parameter For_Parent to
66         Skip_Self. Update the comment on usage.
68 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
70         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
71         can be a procedure that is implemented by entry, and have a
72         formal that is a synchronized interface.  It does not have to
73         be declared as a protected operation.
75 2014-07-18  Robert Dewar  <dewar@adacore.com>
77         * gnat_rm.texi: Remove mention of obsolete attributes
78         Max[_Interrupt]_Priority, which have never been implemented
79         (or at the very least were removed long ago if they ever were
80         implemented.  Add documentation of Max[_Interrupt]_Priority
81         constants in package System.
82         * ttypes.ads: Document actual handling of package System,
83         rather than a historical fantasy version.  Remove mention of
84         non-existent attributes Max[_Interrupt]_Priority.
86 2014-07-18  Pascal Obry  <obry@adacore.com>
88         * a-witeio.adb (Put): No 16-bit character output when text
89         translation is disabled.
90         * i-cstrea.ads: Code clean up.
91 2014-07-18  Robert Dewar  <dewar@adacore.com>
93         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
94         static attributes.
96 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
98         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
100 2014-07-18  Pascal Obry  <obry@adacore.com>
102         * adaint.c: Do not include wchar.h on VxWorks.
103         * mingw32.h: Remove obsolete definition.
105 2014-07-18  Pascal Obry  <obry@adacore.com>
107         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
108         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
109         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
110         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
112 2014-07-18  Pascal Obry  <obry@adacore.com>
114         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
115         * a-ztexio.adb: Likewise.
116         * a-witeio.adb: Likewise.
117         (Open): Pass file's translation mode to set_text_mode.
118         * s-ficobl.ads (Content_Encoding): New type.
119         (Text_Content_Encoding): New subtype.
120         (AFCB): Rename Is_Text_File to Text_Encoding.
121         * s-fileio.adb (Open): Handles new text_translation
122         values. Remove Is_Text_File which is equivalent to Text_Encoding
123         in Text_Content_Encoding.
124         * adaint.h (__gnat_set_mode): New routine.
125         * sysdep.c (__gnat_set_wide_text_mode): Removed.
126         (__gnat_set_mode): New routine.
128 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
130         * gcc-interface/decl.c, gcc-interface/trans.c,
131         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
132         Is_Packed_Array_Impl_Type.
134 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
136         * sem_util.adb: Minor typo correction.
138 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
140         * gnat_rm.texi: Complete previous change.
142 2014-07-18  Pascal Obry  <obry@adacore.com>
144         * s-fileio.adb: Minor style fix.
146 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
148         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
149         specification of stream attributes for subtypes that are not
150         first subtypes, to prevent malformed rep_item chains in the case
151         of such illegal specifications for discriminated private subtypes.
152         (Check_Overloaded_Name): Verify that the name is an entity name
153         before other checks.
155 2014-07-18  Pascal Obry  <obry@adacore.com>
157         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
159 2014-07-18  Robert Dewar  <dewar@adacore.com>
161         * sem_prag.adb, sem_attr.adb,
162         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
164 2014-07-18  Pascal Obry  <obry@adacore.com>
166         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
167         * initialize.c (__gnat_wide_text_translation_required): Defined here.
169 2014-07-18  Pascal Obry  <obry@adacore.com>
171         * adaint.c (__gnat_fputwc): New routine.
172         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
174 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
176         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
177         (Set_Stores_Attribute_Old_Prefix): New routine.
178         (Stores_Attribute_Old_Prefix): New routine.
179         (Write_Entity_Flags):
180         Output flag Stores_Attribute_Old_Prefix.
181         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
182         comment on usage.
183         (Set_Stores_Attribute_Old_Prefix): New routine
184         along with pragma Inline.
185         (Stores_Attribute_Old_Prefix): New
186         routine along with pragma Inline.
187         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
188         constant which captures the result of attribute 'Old's prefix.
189         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
190         relocated expression which acted as a prefix of attribute 'Old.
192 2014-07-18  Bob Duff  <duff@adacore.com>
194         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
195         null before dispatching to Deallocate_Subpool.
196         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
197         parameter of Default_Subpool_For_Pool to 'in out'.
198         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
199         a message to the raise.
200         * sem_util.adb: Minor reformatting.
202 2014-07-18  Robert Dewar  <dewar@adacore.com>
204         * sem_util.adb (Check_Expression_Against_Static_Predicate):
205         Mark expression as non-static if it fails static predicate check,
206         and issue additional warning.
208 2014-07-18  Pascal Obry  <obry@adacore.com>
210         * a-witeio.adb (Put): Control translation based on
211         wide_text_translation_required.
212         * adaint.c (CurrentCCSEncoding): New variable.
213         * initialize.c (__gnat_initialize): On Windows initialize
214         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
215         environment variable.
216         * mingw32.h (CurrentCCSEncoding): New external.
217         (__gnat_wide_text_translation_required): Likewise.
218         * sysdep.c (wide_text_translation_required): New variable.
219         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
221 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
223         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
224         variable Refined_States.  Add global variable Matched_Items.
225         (Check_Dependency_Clause): Account for dependency
226         clauses utilizing states with visible null refinements.
227         (Is_Null_Refined_State): New routine.
228         (Match_Items): Record each successfully matched item of pragma Depends.
229         (Record_Item): New routine.
231 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
233         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
234         Do_Range_Check flag on a dynamic index expression used in a
235         component association in the argument of Update.
237 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
239         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
241 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
243         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
244         of enclosing blocks, loops and the enclosing function using a
245         parent-based traversal.
246         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
247         stack reclamation if the iterator loop contains a return statement
248         that uses the stack.
249         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
250         patch up the scope stack as the secondary stack management now
251         takes into account the enclosing function of the iterator loop.
253 2014-07-18  Robert Dewar  <dewar@adacore.com>
255         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
257 2014-07-18  Robert Dewar  <dewar@adacore.com>
259         * einfo.adb (Has_Static_Predicate): New function.
260         (Set_Has_Static_Predicate): New procedure.
261         * einfo.ads (Has_Static_Predicate): New flag.
262         * sem_ch13.adb (Is_Predicate_Static): New function
263         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
264         (Add_Call): Minor change in Sloc of generated expression
265         (Add_Predicates): Remove setting of Static_Pred, no longer used.
266         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
267         replace by use of the entity flag Has_Static_Predicate_Aspect.
268         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
269         and issue warning that predicate is not checked for now.
270         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
271         spec.
272         * sem_util.adb (Check_Expression_Against_Static_Predicate):
273         Carry out check for any case where there is a static predicate,
274         and output appropriate message.
275         * sinfo.ads: Minor comment corrections.
277 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
279         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
280         from an untagged private type whose full view is tagged, the type
281         is marked tagged for layout reasons, but it has no dispatch table,
282         so Set_All_DT_Position must not be called.
283         * exp_ch13.adb: If the freeze node is for a type internal to a
284         record declaration, as is the case for a class-wide subtype
285         of a parent component, the relevant scope is the scope of the
286         enclosing record.
288 2014-07-18  Thomas Quinot  <quinot@adacore.com>
290         * g-memdum.adb, g-memdum.ads: Code clean ups.
292 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
294         * sem_prag.adb (Check_Dependency_Clause):
295         Update the comment on usage. Reimplement the mechanism which
296         attempts to match a single clause of Depends against one or
297         more clauses of Refined_Depends.
298         (Input_Match): Removed.
299         (Inputs_Match): Removed.
300         (Is_Self_Referential): Removed.
301         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
302         (Normalize_Outputs): Rename variable Split to New_Claue and update
303         all its occurrences.
304         (Report_Extra_Clauses): Update the comment on usage.
305         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
307 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
309         * i-cstrea.ads: Minor reformatting.
311 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
313         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
314         secondary stack-related flags to the generated block.
315         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
316         once the loop is relocated in a block.
318 2014-07-18  Robert Dewar  <dewar@adacore.com>
320         * repinfo.ads: Add documentation on handling of back annotation
321         for dynamic case.
323 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
325         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
326         of full type declaration, denotes previous declaration for
327         incomplete view of the type.
328         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
329         of declaration if one is present.
330         (Replace_Type): When constructing the signature of an inherited
331         operation, handle properly the case where the operation has a
332         formal whose type is an incomplete view.
333         * sem_util.adb (Collect_Primitive_Operations): Handle properly
334         the case of an operation declared after an incomplete declaration
335         for a type T and before the full declaration of T.
337 2014-07-18  Pascal Obry  <obry@adacore.com>
339         * i-cstrea.ads: Add documentation for set_wide_text_mode.
341 2014-07-18  Robert Dewar  <dewar@adacore.com>
343         * a-witeio.adb: Minor code reorganization.
344         * i-cstrea.ads: Add comment.
346 2014-07-18  Thomas Quinot  <quinot@adacore.com>
348         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
349         clarifications.
351 2014-07-18  Robert Dewar  <dewar@adacore.com>
353         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
355 2014-07-18  Pascal Obry  <obry@adacore.com>
357         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
358         * a-witeio.adb (Put): On platforms where there is translation
359         done by the OS output the raw text.
360         (New_Line): Use Put above to properly handle the LM wide characters.
362 2014-07-18  Thomas Quinot  <quinot@adacore.com>
364         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
365         to Absolute_Address.
367 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
369         * opt.ads (Suppress_Back_Annotation): Remove as unused.
370         * fe.h (Back_Annotate_Rep_Info): Likewise.
371         (Global_Discard_Names): Likewise.
373 2014-07-18  Robert Dewar  <dewar@adacore.com>
375         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
376         parenthesized.
378 2014-07-18  Vincent Celier  <celier@adacore.com>
380         * s-osinte-vms.ads: Fix style errors.
382 2014-07-18  Thomas Quinot  <quinot@adacore.com>
384         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
385         NAME_MAX and PATH_MAX.
387 2014-07-18  Bob Duff  <duff@adacore.com>
389         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
390         Build_Record_Or_Elementary_Output_Procedure): For Input and
391         Output attributes, do not read/write the discriminants if they
392         have default values; that will be done by Read/Write.
394 2014-07-18  Robert Dewar  <dewar@adacore.com>
396         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
397         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
398         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
399         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
400         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
402 2014-07-18  Robert Dewar  <dewar@adacore.com>
404         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
406 2014-07-18  Vincent Celier  <celier@adacore.com>
408         * lib-writ.ads: Update documentation about the D lines.
410 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
412         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
413         as a parameter, rather than its Chars field, in order to locate
414         freeze node of type. If the predicate or invariant has references
415         to types other than the one to which the contract applies, these
416         types must be frozen, and the corresponding predicate functions
417         created, before that freeze node.
419 2014-07-18  Robert Dewar  <dewar@adacore.com>
421         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
422         * par_sco.adb: Minor reformatting.
424 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
426         * exp_ch4.adb (Real_Range_Check): Turn off
427         the Do_Range_Check flag on the conversion's current Expression
428         argument rather than on the originally captured Operand node,
429         as Expression may reflect a rewriting (as in conversions to a
430         fixed-point type).
432 2014-07-18  Vincent Celier  <celier@adacore.com>
434         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
435         is not a subunit.
436         * ali.ads (Sdep_Record): New component Unit_Name.
437         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
438         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
439         dependent unit is in a project and the source file name is not
440         one of its sources.
442 2014-07-18  Bob Duff  <duff@adacore.com>
444         * s-addima.ads: Minor: add comment.
446 2014-07-18  Thomas Quinot  <quinot@adacore.com>
448         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
449         of nesting rules for composites with different SSOs.
451 2014-07-18  Thomas Quinot  <quinot@adacore.com>
453         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
454         a proper logical operator.
455         (Has_Decision): An If_Expression indicates the presence of a decision
456         although it is not a logical operator.
458 2014-07-18  Robert Dewar  <dewar@adacore.com>
460         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
461         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
463 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
465         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
466         on the null statement.
468 2014-07-18  Thomas Quinot  <quinot@adacore.com>
470         * adaint.c: Minor comment rewording.
471         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
472         use of errno in this file is thread safe.
474 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
476         * gnat_ugn.texi: Doc clarification.
477         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
478         * sem_ch13.ads: Minor comment update.
480 2014-07-18  Robert Dewar  <dewar@adacore.com>
482         * repinfo.ads: Minor comment fix.
484 2014-07-18  Robert Dewar  <dewar@adacore.com>
486         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
487         * sem_prag.adb: Add dummy implementation of
488         Default_Scalar_Storage_Order.
489         * snames.ads-tmpl: Add dummy entry for
490         Default_Scalar_Storage_Order pragma.
492 2014-07-18  Robert Dewar  <dewar@adacore.com>
494         * opt.adb (Tree_Read): Read Address_Is_Private,
495         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
496         (Tree_Write): Corresponding writes
497         * opt.ads: Minor comment reformatting and fixes.
498         * tree_io.ads: Increment ASIS_Version_Number.
500 2014-07-18  Robert Dewar  <dewar@adacore.com>
502         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
503         * types.h: Fix typo.
505 2014-07-18  Robert Dewar  <dewar@adacore.com>
507         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
508         functional change).
509         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
510         ASIS trees.
511         * sem_ch13.adb (Kill_Rep_Clause): New procedure
512         (Analyze_Attribute_Definition_Clause): Use
513         Kill_Rep_Clause. This is just a cleanup, no functional effect.
514         (Analyze_Enumeration_Representation_Clause):
515         Use Kill_Rep_Clause. This means that enum rep
516         clauses are now properly removed from -gnatct trees.
517         (Analyze_Record_Representation_Clause): Same change.
518         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
520 2014-07-18  Pascal Obry  <obry@adacore.com>
522         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
523         OS_Time from time parts.
524         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
526 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
528         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
529         indexing over containers that are derived types: check whether
530         signature of found operation has the correct first parameter
531         before retrieving directly a primitive operation.
533 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
535         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
536         Do_Range_Check flag on dynamic bounds of a range used in a
537         component association in the argument of Update.
539 2014-07-18  Thomas Quinot  <quinot@adacore.com>
541         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
542         accesses to errno(3) to be thread safe.
544 2014-07-18  Vincent Celier  <celier@adacore.com>
546         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
547         limited imported project that is an extending project, return
548         a project being extended if it has the expected name.
550 2014-07-18  Pascal Obry  <obry@adacore.com>
552         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
553         routine to set the last modification time stamp for the given file.
554         * gnatchop.adb (File_Time_Stamp): Removed.
555         (Write_Unit): Use
556         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
558 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
560         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
561         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
562         Moved here, so it can be shared with the resolution of 'Update,
563         whose argument shares some features with aggregates.
564         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
565         Aggregate_Constraint_Checks with the expression of each
566         association, so that the Do_Range_Check flag is set when needed.
568 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
570         * sem_ch4.adb (Try_Container_Indexing):  If the container
571         type is a derived type, the value of the inherited  aspect is
572         the Reference operation declared for the parent type. However,
573         Reference is also a primitive operation of the new type, and
574         the inherited operation has a different signature. We retrieve
575         the right one from the list of primitive operations of the
576         derived type.
578 2014-07-18  Vincent Celier  <celier@adacore.com>
580         * debug.adb: Update comment.
582 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
584         * exp_util.adb (Needs_Finalization): There is no reason why a
585         C type should not benefit from finalization actions.
587 2014-07-18  Thomas Quinot  <quinot@adacore.com>
589         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
590         (FILENAME_MAX): Remove unneeded definition.
592 2014-07-18  Robert Dewar  <dewar@adacore.com>
594         * exp_attr.adb, debug.adb: Update comments.
596 2014-07-18  Vincent Celier  <celier@adacore.com>
598         * par-ch4.adb (Simple_Expression): Add missing style check
599         for binary adding operators.
600         (Term): Add missing style check for multiplying operators.
602 2014-07-18  Robert Dewar  <dewar@adacore.com>
604         * impunit.adb: Minor comment correction.
605         * widechar.adb, s-wchcon.ads: Minor comment corrections.
607 2014-07-18  Robert Dewar  <dewar@adacore.com>
609         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
610         for Build_Static_Predicate (Build_Predicate_Functions):
611         Don't try to build discrete predicate for real type.
612         (Build_Predicate_Functions): Report attempt to use
613         Static_Predicate function on real type as unimplemented.
614         * sem_util.adb (Check_Expression_Against_Static_Predicate):
615         Add guard to prevent blow up on predicate for real type.
617 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
619         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
620         properly static predicate on enumeration types and modular types
621         (not subtypes).
623 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
625         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
626         the corresponding source file index.
627         * get_scos.ads (Get_SCOs): Add a default value for it.
628         * par_sco.adb (SCO_Record): Fill the corresponding value.
629         * scos.h: New.
631 2014-07-18  Vincent Celier  <celier@adacore.com>
633         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
634         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
635         reformatting.
636         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
638 2014-07-18  Thomas Quinot  <quinot@adacore.com>
640         * g-sercom.ads (Set): document possible data loss.
642 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
644         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
645         Output, Read, Write): If the restriction No_Streams is active,
646         replace each occurrence of a stream attribute by an explicit
647         Raise statement.
649 2014-07-18  Robert Dewar  <dewar@adacore.com>
651         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
652         reformatting.
654 2014-07-18  Robert Dewar  <dewar@adacore.com>
656         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
657         function.
658         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
659         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
660         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
661         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
663 2014-07-18  Robert Dewar  <dewar@adacore.com>
665         * bcheck.adb (Check_Consistent_Restrictions):
666         Remove obsolete code checking for violation of
667         No_Standard_Allocators_After_Elaboration (main program)
668         * bindgen.adb (Gen_Adainit): Handle
669         No_Standard_Allocators_After_Elaboration
670         (Gen_Output_File_Ada): ditto.
671         * exp_ch4.adb (Expand_N_Allocator): Handle
672         No_Standard_Allocators_After_Elaboration.
673         * Makefile.rtl: Add entry for s-elaall
674         * rtsfind.ads: Add entry for Check_Standard_Allocator.
675         * s-elaall.ads, s-elaall.adb: New files.
676         * sem_ch4.adb (Analyze_Allocator): Handle
677         No_Standard_Allocators_After_Elaboration.
679 2014-07-18  Robert Dewar  <dewar@adacore.com>
681         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
682         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
683         Remove AB parameter from ali files and all uses.
684         Remove Allocator_In_Body and all uses.
686 2014-07-18  Robert Dewar  <dewar@adacore.com>
688         * g-expect-vms.adb: Add comment.
690 2014-07-18  Thomas Quinot  <quinot@adacore.com>
692         * par_sco.adb (Is_Logical_Operation): return True for
693         N_If_Expression.
695 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
697         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
698         analysis and resolution of each choice in the associations within
699         the argument of Update, because they may be variable names.
701 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
703         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
704         actions before the generated if statement.
706 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
708         * gnat_ugn.texi Enhance the documentation of
709         switches -gnateA and -gnateV.
711 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
713         * sem_util.adb (Build_Default_Subtype): Add missing condition
714         so that code matches description: use the full view of the base
715         only if the base is private and the subtype is not.
717 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
719         * exp_disp.adb: Minor reformatting.
720         * exp_disp.adb: Minor code reorganization.
722 2014-07-17  Thomas Quinot  <quinot@adacore.com>
724         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
725         require an explicit SSO attribute definition clause on a composite type
726         just because one of its components has one.
728 2014-07-17  Robert Dewar  <dewar@adacore.com>
730         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
731         attribute out of existence if the enclosing pragma is ignored.
732         * sem_util.adb: Minor reformatting.
734 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
736         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
737         array aggregate expanded into assignments when it appears as a
738         local declaration in an inlined body.
740 2014-07-17  Doug Rupp  <rupp@adacore.com>
742         * init.c [__ANDROID__]: Modify for ZCX.
743         * exp_aggr.adb: Minor reformatting
744         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
746 2014-07-17  Robert Dewar  <dewar@adacore.com>
748         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
749         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
750         scng.adb: Remove incorrect usage "allow to" and "allows to".
752 2014-07-17  Robert Dewar  <dewar@adacore.com>
754         * exp_dist.adb: Minor reformatting.
756 2014-07-17  Bob Duff  <duff@adacore.com>
758         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
760 2014-07-17  Robert Dewar  <dewar@adacore.com>
762         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
763         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
765 2014-07-17  Thomas Quinot  <quinot@adacore.com>
767         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
768         non-bit-packed array, propagate Reverse_Storage_Order to the
769         packed array type.
771 2014-07-17  Javier Miranda  <miranda@adacore.com>
773         * exp_disp.adb: Fix comment.
774         * exp_pakd.adb: Minor reformatting.
776 2014-07-17  Robert Dewar  <dewar@adacore.com>
778         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
779         entity if none exists (Gen_Elab_Calls): Complain if clash with
780         No_Multiple_Elaboration.
781         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
782         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
783         if not needed.
784         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
785         * sem_ch4.adb: Minor comment updates.
787 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
789         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
790         of function call for later use when shared passive objects
791         are involved.
793 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
795         * par-ch13.adb (Get_Aspect_Specifications):
796         Catch a case where the argument of SPARK aspect Refined_State
797         is not properly parenthesized.
799 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
801         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
802         the lifetime of a reference to an Ada 2012 container element.
803         (Is_Element_Reference): New routine.
805 2014-07-17  Robert Dewar  <dewar@adacore.com>
807         * ali.ads: Minor comment fix.
808         * lib-writ.adb: Minor reformatting.
810 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
812         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
813         in ASIS mode, load another subunit only if it a subunit of the
814         current one, not a sibling that has been reached through the
815         analysis of an ancestor. This allows the construction of the
816         ASIS tree for the subunit even when sibling subunits have errors.
818 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
820         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
821         prevents the analysis of various contracts when the associated
822         construct is erroneous.
823         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
824         SPARK_Pragma of an illegal or a partially decorated construct.
826 2014-07-17  Robert Dewar  <dewar@adacore.com>
828         * s-imguns.ads: Minor reformatting.
830 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
832         * exp_ch7.adb (Build_Finalization_Master): Move all local
833         variables to the proper code section. When looking for an existing
834         finalization master, inspect the ultimate ancestor type of the
835         full view.
836         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
838 2014-07-17  Robert Dewar  <dewar@adacore.com>
840         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
841         * gnat_rm.texi: Document Entity argument for pragma Annotate and
842         Annotate aspect.
843         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
844         for Annotate aspect.
845         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
846         Entity argument at end.
847         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
849 2014-07-17  Tristan Gingold  <gingold@adacore.com>
851         * s-imguns.ads: Fix minor typo.
853 2014-07-17  Thomas Quinot  <quinot@adacore.com>
855         * sprint.adb: Minor reformatting.
857 2014-07-17  Robert Dewar  <dewar@adacore.com>
859         * sprint.adb (Write_Itype): Print proper header for string
860         literal subtype.
862 2014-07-17  Steve Baird  <baird@adacore.com>
864         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
866 2014-07-17  Vincent Celier  <celier@adacore.com>
868         * gnatbind.adb: Change in message "try ... for more information".
870 2014-07-17  Robert Dewar  <dewar@adacore.com>
872         * sprint.adb: Code clean up.
874 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
876         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
877         the relevant code section. Add new local constant Obj_Id. When
878         a limited controlled object is initialized by a function call,
879         the build-in-place object access function call acts as the last
880         initialization statement.
881         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
882         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
883         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
885 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
887         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
888         propagate intrinsic flag to renamed entity, to allow e.g. renaming
889         of Unchecked_Conversion.
890         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
891         if the declaration has errors.
893 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
895         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
896         container is busy before checking whether capacity allows for
897         a further insertion. Insertion in a busy container that is full
898         raises Program_Error rather than Capacity_Error. Previous to that
899         patch which exception was raised varied among container types.
901 2014-07-17  Robert Dewar  <dewar@adacore.com>
903         * g-comlin.ads, g-comlin.adb: Minor clean up.
905 2014-07-17  Bob Duff  <duff@adacore.com>
907         * gnat_ugn.texi: Update gnatpp doc.
909 2014-07-17  Robert Dewar  <dewar@adacore.com>
911         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
912         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
913         could do this by actually expanding a real generic.
914         * a-tags.ads: Add comments about performance.
915         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
916         Print Etype of defining identifier, rather than the object
917         definition. More information.
919 2014-07-17  Thomas Quinot  <quinot@adacore.com>
921         * exp_dist.adb: Minor documentation clarification.
923 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
925         * exp_util.adb (Is_Aliased): Revert previous change.
927 2014-07-17  Vincent Celier  <celier@adacore.com>
929         * g-comlin.adb (Try_Help): New procedure.
930         (Getopt): Use new procedure Try_Help.
931         * g-comlin.ads (Try_Help): New procedure.
933 2014-07-17  Bob Duff  <duff@adacore.com>
935         * gnat_ugn.texi: Minor update.
937 2014-07-17  Robert Dewar  <dewar@adacore.com>
939         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
940         * sinfo.ads: Document restriction on aggregates (must expand to
941         assignments if one or more assignments needs expansion, e.g. for
942         controlled types).
943         * sem_ch13.adb: All warning messages regarding bit order should
944         be info: messages.
945         * gnat_ugn.texi: Minor correction of missing @ on @code
947 2014-07-17  Robert Dewar  <dewar@adacore.com>
949         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
950         * s-rident.ads (Partition_Boolean_Restrictions): Add
951         No_Long_Long_Integer.
952         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
953         Long_Integer'Size if restriction No_Long_Long_Integer is active.
954         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
955         as the implicit base type for a signed integer type declaration
956         if restriction No_Long_Long_Integer is active.
957         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
958         No_Long_Long_Integer.
960 2014-07-17  Robert Dewar  <dewar@adacore.com>
962         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
963         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
964         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
965         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
966         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
968 2014-07-17  Robert Dewar  <dewar@adacore.com>
970         * debug.adb: Remove -gnatdQ.
971         * exp_disp.adb: Remove -gnatdQ.
972         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
973         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
974         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
975         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
976         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
977         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
979 2014-07-17  Robert Dewar  <dewar@adacore.com>
981         * back_end.adb: Minor reformatting and comment additions.
982         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
983         function.
984         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
985         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
986         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
987         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
988         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
989         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
991 2014-07-17  Robert Dewar  <dewar@adacore.com>
993         * gnat_rm.texi: Minor comment updates.
995 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
997         * sem_util.adb (Make_Explicit_Dereference): If the expression
998         being dereferenced is a generalized indexing, reset the overloaded
999         flag on the generalized indexing call, consistent with the
1000         resetting of the flag on the original indexed component.
1002 2014-07-17  Robert Dewar  <dewar@adacore.com>
1004         * gnat_ugn.texi: Document advise not to mix -gnatV? and
1005         optimization.
1007 2014-07-17  Robert Dewar  <dewar@adacore.com>
1009         * checks.adb (Insert_Valid_Check): Don't insist on a name
1010         for the prefix when we make calls to Force_Evaluation and
1011         Duplicate_Subexpr_No_Checks.
1012         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
1013         (Remove_Side_Effects): Handle all volatile references right
1014         (Side_Effect_Free): Volatile reference is never side effect free
1015         * sinfo.ads (N_Attribute_Reference): Add comments explaining
1016         that in the tree, the prefix can be a general expression.
1018 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
1020         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
1021         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
1022         * sem_ch7.adb (Analyze_Package_Body_Contract,
1023         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
1025 2014-07-17  Robert Dewar  <dewar@adacore.com>
1027         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
1028         Store_After_Actions_In_Scope.
1030 2014-07-17  Robert Dewar  <dewar@adacore.com>
1032         * sem_aux.ads: Minor comment addition.
1034 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
1036         * sem_res.adb (Make_Call_Into_Operator): If the call is already
1037         a rewriting of an operator node, there are no actuals to be
1038         propagated from original node to rewritten node when in ASIS mode.
1040 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
1042         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
1043         Analyze_Subprogram_Contract): Add new local variable Mode. Save
1044         and restore the SPARK mode of the related construct in a
1045         stack-like fashion.
1046         * sem_ch7.adb (Analyze_Package_Body_Contract,
1047         Analyze_Package_Contract): Add new local variable Mode. Save and
1048         restore the SPARK mode of the related construct in a stack-like fashion.
1049         * sem_util.adb Remove with and use clause for Opt.
1050         (Restore_SPARK_Mode): New routine.
1051         (Save_SPARK_Mode_And_Set): New routine.
1052         * sem_util.ads Add with and use clause for Opt.
1053         (Restore_SPARK_Mode): New routine.
1054         (Save_SPARK_Mode_And_Set): New routine.
1056 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
1058         * exp_util.adb (Is_Aliased): Transient objects
1059         within an expression with actions cannot be considered aliased.
1061 2014-07-17  Thomas Quinot  <quinot@adacore.com>
1063         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
1064         introduce a new list (cleanup actions) for each (transient) scope.
1065         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
1066         N_Block_Statement
1067         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
1068         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
1069         processing for Store_xxx_Actions_In_Scope.
1070         (Build_Cleanup_Statements): Allow for a list of additional
1071         cleanup statements to be passed by the caller.
1072         (Expand_Cleanup_Actions): Take custom cleanup actions associated
1073         with an N_Block_Statement into account.
1074         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
1075         reorganization (refactoring only, no behaviour change).
1076         (Make_Transient_Block): Add assertion to ensure that the current
1077         scope is indeed a block (namely, the entity for the transient
1078         block being constructed syntactically, which has already been
1079         established as a scope).  If cleanup actions are present in the
1080         transient scope, transfer them now to the transient block.
1081         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
1082         called function while it is still present as the name in a call
1083         in the tree. This may not be the case later on if the call is
1084         rewritten into a transient block.
1085         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
1086         inserted after calling a protected operation on a shared passive
1087         protected must be performed in a block finalizer, not just
1088         inserted in the tree, so that they are executed even in case of
1089         a normal (RETURN) or abnormal (exception) transfer of control
1090         outside of the current scope.
1091         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
1092         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
1093         Scope_Stack_Entry reorganization.
1095 2014-07-17  Thomas Quinot  <quinot@adacore.com>
1097         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
1098         call for types that do not have an explicit attribute definition
1099         clause for External_Tag, as their default tag may clash with an
1100         explicit tag defined for some other type.
1102 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
1104         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
1105         controlled function call with multiple actual parameters that
1106         appears in Object.Operation form.
1108 2014-07-17  Thomas Quinot  <quinot@adacore.com>
1110         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
1111         entity flag.
1112         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1113         External_Tag): No need to set entity flag.
1114         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
1115         Reimplement correctly in terms of Has_Rep_Item.
1117 2014-07-17  Thomas Quinot  <quinot@adacore.com>
1119         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
1120         Start examining the tree at the node passed to
1121         Establish_Transient_Scope (not its parent).
1122         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
1123         The access type for the variable storing the reference to
1124         the call must be declared and frozen prior to establishing a
1125         transient scope.
1126         * exp_ch9.adb: Minor reformatting.
1128 2014-07-17  Pascal Obry  <obry@adacore.com>
1130         * s-os_lib.ads: Minor comment update.
1132 2014-07-17  Tristan Gingold  <gingold@adacore.com>
1134         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
1135         indentation.
1136         * socket.c: Remove #warning to avoid warning.
1137         * expect.c: Indent some preprocessor directives to clarify
1138         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
1139         to remove warnings.
1140         * env.c: Fix indentation.  Port to PikeOS.
1141         * gsocket.h: Port to PikeOS.  Remove #warning.
1142         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
1143         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
1144         of stubbed __gnat_setup_parent_communication.
1145         * adaint.c: Port to PikeOS.  Reindent some preprocessor
1146         directives to clarify nested if.  Fix indentation.  Add missing
1147         ATTRIBUTE_UNUSED.
1149 2014-07-17  Robert Dewar  <dewar@adacore.com>
1151         * sem_attr.adb: Minor reformatting.
1153 2014-07-17  Robert Dewar  <dewar@adacore.com>
1155         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
1157 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
1159         * sem_case.adb (Check_Choice_Set): If the case expression is the
1160         expression in a predicate, do not recheck coverage against itself,
1161         to prevent spurious errors.
1162         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
1163         expression comes from an aspect specification, to prevent spurious
1164         errors when expression is a case expression in a predicate.
1166 2014-07-17  Pascal Obry  <obry@adacore.com>
1168         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
1169         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
1171 2014-07-17  Vincent Celier  <celier@adacore.com>
1173         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
1174         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
1175         the usage for an erroneous invocation of a gnat tool.
1177 2014-07-16  Vincent Celier  <celier@adacore.com>
1179         * gnatls.adb: Get the target parameters only if -nostdinc was
1180         not specified.
1182 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1184         * checks.adb (Insert_Valid_Check): If the expression is a packed
1185         component of a modular type of the right size the data is always
1186         valid. This os particularly useful if the component is part of
1187         a volatile variable.
1189 2014-07-16  Robert Dewar  <dewar@adacore.com>
1191         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
1193 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1195         * exp_ch7.ads: Minor documentation fix.
1197 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1199         * sem_ch3.adb (Find_Type_Name): Diagnose properly
1200         a private extension completion that is an interface definition
1201         with an interface list.
1203 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
1205         * gnatls.adb (Gnatls): Code clean ups.
1207 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1209         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
1210         * sem.adb (Analyze): Handle N_Compound_Statement.
1211         * sprint.adb (Sprint_Node_Actual): Ditto.
1212         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
1213         procedure to handle N_Compound_Statement.
1214         * exp_aggr.adb (Collect_Initialization_Statements):
1215         Use a proper compound statement node, instead of a bogus
1216         expression-with-actions with a NULL statement as its expression,
1217         to wrap collected initialization statements.
1218         * freeze.ads, freeze.adb
1219         (Explode_Initialization_Compound_Statement): New public procedure,
1220         lifted from Freeze_Entity.
1221         (Freeze_Entity): When freezing
1222         an object with captured initialization statements and without
1223         delayed freezing, explode compount statement.
1224         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
1225         case that used to handle bogus EWAs with NULL statement as
1226         the expression.
1227         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
1228         delayed freezing and captured initialization statements, explode
1229         compound statement.
1231 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
1233         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
1235 2014-07-16  Doug Rupp  <rupp@adacore.com>
1237         * s-interr-hwint.adb: Casing error on parameter.
1239 2014-07-16  Pascal Obry  <obry@adacore.com>
1241         * Makefile.rtl: Add g-rewdat.o dependencies in
1242         GNATRTL_NONTASKING_OBJS.
1244 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1246         * sem_case.adb: Code clean up.
1248 2014-07-16  Vincent Celier  <celier@adacore.com>
1250         * make.adb: Do not read gnat.adc when gnatmake is invoked
1251         with -gnatA.
1253 2014-07-16  Pascal Obry  <obry@adacore.com>
1255         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
1256         implementation of GNAT.Rewrite_Data.
1258 2014-07-16  Vincent Celier  <celier@adacore.com>
1260         * gnatls.adb (Normalize): New function.
1261         (Gnatls): Get the target parameters. On targets other than VMS,
1262         normalize the path names in the source search path, the object search
1263         path and the project search path.
1265 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1267         * sem_case.adb: Avoid self-checking of case expressions in
1268         dynamic predicates.
1270 2014-07-16  Robert Dewar  <dewar@adacore.com>
1272         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
1273         discriminants.
1275 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1277         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
1279 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
1281         * gnat_ugn.texi: Fix typo.
1283 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1285         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
1286         expression if it is the specification of a subtype predicate:
1287         it will be expanded when the return statement is analyzed, or
1288         when a static predicate is transformed into a static expression
1289         for evaluation by the front-end.
1290         * sem_ch13.adb (Get_RList): If the expression for a static
1291         predicate is a case expression, extract the alternatives of the
1292         branches with a True value to create the required statically
1293         evaluable expression.
1295 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1297         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
1298         expression, not the location of the aspect, for all generated
1299         code, so that in particular the call to raise_assert_failure
1300         gets the sloc of the associated condition.
1301         * exp_ch6.adb
1302         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
1303         Set an explicit End_Label on the handled sequence of statements
1304         for the _Postconditions procedure so that the implicit return
1305         statement does not erroneously get associated with code generated
1306         for the last condition in postconditions.
1308 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1310         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
1311         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
1312         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
1313         -gnatw.Z.
1315 2014-07-16  Robert Dewar  <dewar@adacore.com>
1317         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
1318         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
1319         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
1320         not in Access_Kind.
1321         * par-ch4.adb (At_Start_Of_Attribute): New function
1322         (P_Simple_Expression): Better msg for bad attribute prefix.
1323         * scans.ads: Minor reformatting.
1325 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1327         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
1328         static constant, check that in belongs to the corresponding index
1329         subtype, to produce the proer warning when expansion is disabled.
1331 2014-07-16  Robert Dewar  <dewar@adacore.com>
1333         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
1334         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
1335         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
1336         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
1337         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
1338         -gnatw.z/-gnatw.Z
1339         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
1340         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
1341         reformatting.
1343 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
1345         * exp_ch7.adb (Process_Declarations): Reinstate the check on
1346         a hook object to ensure that the related transient declaration
1347         is finalizable.
1348         * exp_util.adb (Is_Aliased): Do not consider expresison with
1349         actions as a special context.
1350         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
1351         ensure that the related transient declaration is finalizable.
1353 2014-07-16  Robert Dewar  <dewar@adacore.com>
1355         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
1356         * snames.ads-tmpl: Add Allocation_Check to list of check names.
1357         * types.ads: Add Allocation_Check to list of check names.
1359 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1361         * sem_util.adb (Enter_Name): replace bogus test for presence of
1362         Corresponding_Remote_Type with correct test on Ekind.
1363         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
1364         of calls to Corresponding_ Remote_Type (documentation fix).
1366 2014-07-16  Robert Dewar  <dewar@adacore.com>
1368         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
1369         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
1370         where it applies.
1371         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
1372         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
1374 2014-07-16  Robert Dewar  <dewar@adacore.com>
1376         * gnat_ugn.texi: Document binder switch -Ra.
1377         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
1378         (List_Closure_All).
1379         * opt.ads (List_Closure_All): New switch.
1380         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
1381         List_Closure_All.
1383 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
1385         * gnat_rm.texi: Minor edits, to make case consistent in names
1386         of types and fields.
1388 2014-07-16  Robert Dewar  <dewar@adacore.com>
1390         * gnat_rm.texi: Document erroneous mixing of thin pointers and
1391         unrestricted access
1392         * gnat_ugn.texi: Add note on size of access types about thin
1393         pointers and the use of attribute Unrestricted_Access.
1395 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1397         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
1398         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
1399         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
1400         machinery to detect tampering on bounded vectors.
1402 2014-07-16  Robert Dewar  <dewar@adacore.com>
1404         * gnat_rm.texi: Document that leading/trailing asterisks are
1405         now implied for the pattern match string for pragma Warnings
1406         and Warning_As_Error.
1407         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
1408         (Analyze_Pragma, case Warning_As_Error): Call
1409         Acquire_Warning_Match_String.
1410         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
1412 2014-07-16  Bob Duff  <duff@adacore.com>
1414         * gnat_ugn.texi: Document need for project file
1415         for --incremental switch for gnat2xml.
1417 2014-07-16  Robert Dewar  <dewar@adacore.com>
1419         * gnat_rm.texi: Fix example of non-packable components in packed
1420         records section.
1422 2014-07-16  Robert Dewar  <dewar@adacore.com>
1424         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
1425         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
1426         upper case in exception messages.
1428 2014-07-16  Robert Dewar  <dewar@adacore.com>
1430         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
1431         is renamed Has_Same_Storage.
1432         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
1433         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
1434         descriptions).
1436 2014-07-16  Robert Dewar  <dewar@adacore.com>
1438         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
1439         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
1441 2014-07-16  Robert Dewar  <dewar@adacore.com>
1443         * gnat_ugn.texi: Add note that integrated
1444         preprocessing cannot be applied to configuration pragma files.
1446 2014-07-16  Yannick Moy  <moy@adacore.com>
1448         * sem_attr.adb (Analyze_Attribute/cases Pred
1449         and Succ): Always enable range check on fixed-point types if
1450         not suppressed for the type.
1452 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
1454         * sem_util.adb (State_Has_Enabled_Property):
1455         Account for an external property denoted by an others choice.
1457 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
1459         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
1460         * exp_ch7.adb (Process_Declarations): There is no need to check
1461         that a transient object being hooked is controlled as it would
1462         not have been hooked in the first place.
1463         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
1464         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
1465         (Is_Aliased): A renaming of a transient controlled object is
1466         not considered aliasing when it occurs within an expression
1467         with actions.
1468         (Requires_Cleanup_Actions): There is no need to
1469         check that a transient object being hooked is controlled as it
1470         would not have been hooked in the first place.
1471         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
1473 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
1475         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
1476         the outer level of routine Analyze_Aspect_Specifications. Ensure
1477         that the corresponding pragmas of aspects Initial_Condition and
1478         Initializes are inserted after pragma SPARK_Mode.
1480 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1482         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
1483         properly a choice list with more than one choice, where each
1484         is an aggregate denoting a sequence of array indices for a
1485         multidimentional array. For SPARK use.
1487 2014-07-16  Vadim Godunko  <godunko@adacore.com>
1489         * a-coinho-shared.adb (Adjust): Create
1490         copy of internal shared object and element when source container
1491         is locked.
1492         (Copy): Likewise.
1493         (Query_Element): Likewise.
1494         (Update_Element): Likewise.
1495         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
1496         to get reference for empty holder.
1497         (Reference): Likewise.
1499 2014-07-16  Thomas Quinot  <quinot@adacore.com>
1501         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
1502         from Process_Transient_Oject.
1503         * exp_ch4.ads: Ditto.
1504         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
1505         declaration as an action on the topmost enclosing expression,
1506         not on a possibly conditional subexpreession.
1508 2014-07-16  Vadim Godunko  <godunko@adacore.com>
1510         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
1511         Fix parameter mode of Update_Element.
1513 2014-07-16  Robert Dewar  <dewar@adacore.com>
1515         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
1516         reformatting.
1518 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1520         * a-cohase.ads: Type Iterator must be controlled, so that the
1521         tampering bit is properly set through an iteration.
1522         * a-cohase.adb: Add Finalize operation for type Iterator.
1524 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1526         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
1527         tampering checks.
1529 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
1531         * a-coinho-shared.adb: Fix spurious accessibility check.
1533 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
1535         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
1537 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1539         PR ada/61505
1540         * gnat_rm.texi: Fix errors with makeinfo 5.1.
1542 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
1544         PR ada/61505
1545         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
1547 2014-06-13  Yannick Moy  <moy@adacore.com>
1549         * exp_attr.adb: Fix typo in comment.
1550         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
1551         checking in GNATprove_Mode.
1553 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1555         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
1557 2014-06-13  Robert Dewar  <dewar@adacore.com>
1559         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
1560         reformatting.
1562 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
1564         * sem_prag.adb (Analyze_Pragma): Add local
1565         variable Missing_Parentheses. Emit an error when a state
1566         declaration with options appears without parentheses. Add a
1567         guard to prevent a bogus error when a state declaration may be
1568         interpreted as an option if a previous declaration with options
1569         was not parenthesized.
1571 2014-06-13  Robert Dewar  <dewar@adacore.com>
1573         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
1574         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
1575         * checks.ads (Alignment_Warnings_Record): New type.
1576         (Alignment_Warnings): New table
1577         (Validate_Alignment_Check_Warnings): New procedure.
1578         * errout.adb (Delete_Warning_And_Continuations): New procedure
1579         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
1580         Warnings_Treated_As_Errors (Finalize): Minor reformatting
1581         * errout.ads (Warning_Msg): New variable
1582         (Delete_Warning_And_Continuations): New procedure
1583         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
1584         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
1586 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1588         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
1590 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
1592         * errout.adb (SPARK_Msg_N): New routine.
1593         (SPARK_Msg_NE): New routine.
1594         * errout.ads Add a section on SPARK-related error routines.
1595         (SPARK_Msg_N): New routine.
1596         (SPARK_Msg_NE): New routine.
1597         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
1598         pragma Abstract_State is always inserted after SPARK_Mode.
1599         (Insert_After_SPARK_Mode): New routine.
1600         * sem_prag.adb (Analyze_Abstract_State,
1601         Analyze_Constituent, Analyze_External_Property,
1602         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
1603         Analyze_Global_List, Analyze_Initialization_Item,
1604         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
1605         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
1606         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
1607         Analyze_Refined_Global_In_Decl_Part,
1608         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
1609         Check_Aspect_Specification_Order, Check_Constituent_Usage,
1610         Check_Declaration_Order, Check_Dependency_Clause,
1611         Check_Duplicate_Mode, Check_Duplicate_Option,
1612         Check_Duplicate_Property, Check_External_Properties,
1613         Check_External_Property, Check_Function_Return,
1614         Check_Matching_Constituent, Check_Matching_State,
1615         Check_Mode_Restriction_In_Enclosing_Context,
1616         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
1617         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
1618         Has_Extra_Parentheses, Inconsistent_Mode_Error,
1619         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
1620         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
1621         Report_Unrefined_States, Report_Unused_Constituents,
1622         Report_Unused_States, Role_Error, Usage_Error):
1623         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
1624         to report semantic errors only when SPARK_Mode is on.
1625         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
1626         pragma Depends explicitly, this is now done by the analysis.
1627         (Analyze_Global_In_Decl_List): Do not check the syntax of
1628         pragma Global explicitly, this is now done by the analysis.
1629         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
1630         pragma Initializes explicitly, this is now done by the analysis.
1631         (Analyze_Part_Of): Do not check the syntax of the encapsulating
1632         state, this is now done by the analysis.
1633         (Analyze_Pragma): Do
1634         not check the syntax of a state declaration, this is now done
1635         by the analysis.
1636         (Analyze_Refined_Depends_In_Decl_Part): Do not
1637         check the syntax of pragma Refined_Depends explicitly, this is now
1638         done by the analysis.
1639         (Analyze_Refined_Global_In_Decl_Part): Do
1640         not check the syntax of pragma Refined_Global explicitly, this is
1641         now done by the analysis.
1642         (Analyze_Refined_State_In_Decl_Part):
1643         Do not check the syntax of pragma Refined_State explicitly, this
1644         is now done by the analysis.
1645         (Check_Dependence_List_Syntax): Removed.
1646         (Check_Global_List_Syntax): Removed.
1647         (Check_Initialization_List_Syntax): Removed.
1648         (Check_Item_Syntax): Removed.
1649         (Check_Missing_Part_Of): Do not consider items from an instance.
1650         (Check_Refinement_List_Syntax): Removed.
1651         (Check_State_Declaration_Syntax): Removed.
1652         (Collect_Global_List): Do not raise Program_Error when the input is
1653         malformed.
1654         (Process_Global_List): Do not raise Program_Error when the input
1655         is malformed.
1656         * sem_ch13.adb: Minor reformatting.
1658 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1660         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
1661         that is an interface definition with an interface list.
1662         (Process_Full_View): Move error message on missmatched interfaces
1663         between views to the declaration of full view, for clarity.
1664         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
1665         for clarity.
1667 2014-06-13  Robert Dewar  <dewar@adacore.com>
1669         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
1670         reason to Overflow.
1672 2014-06-13  Robert Dewar  <dewar@adacore.com>
1674         * makeutl.adb: Minor reformatting.
1676 2014-06-13  Gail Schenker  <schenker@adacore.com>
1678         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
1679         associated flag (d.z), no longer needed.
1681 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1683         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
1684         Export aspects, do not check whether a corresponding Convention
1685         aspect has been specified. Convention is optional in Ada2012,
1686         and defaults to Convention_Ada.
1688 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
1690         * checks.adb (Apply_Address_Clause_Check): Only issue the new
1691         warning if the propagation warning is issued.
1693 2014-06-13  Thomas Quinot  <quinot@adacore.com>
1695         * exp_ch4.adb: Minor reformatting.
1697 2014-06-13  Robert Dewar  <dewar@adacore.com>
1699         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
1700         Handle float range check case (Expand_N_Attribute_Reference,
1701         case Succ): Handle float range check case.
1702         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
1703         range check case.
1705 2014-06-13  Vincent Celier  <celier@adacore.com>
1707         * makeutl.ads (Compute_Builder_Switches): Change name of
1708         parameter Root_Environment to Env.
1709         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
1710         Env parameter of procedure Get_Or_Create_Configuration_File.
1711         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
1712         of new parameter Env.
1713         * prj-conf.ads (Locate_Runtime): New parameter Env of type
1714         Prj.Tree.Environment.
1716 2014-06-13  Robert Dewar  <dewar@adacore.com>
1718         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
1720 2014-06-13  Robert Dewar  <dewar@adacore.com>
1722         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
1723         reformatting.
1724         * sem_attr.adb: Minor code reformatting and simplification.
1725         * checks.adb: Fix minor typo.
1727 2014-06-13  Emmanuel Briot  <briot@adacore.com>
1729         * g-comlin.adb (Get_Argument): fix expansion
1730         of command line arguments (e.g. "*.adb") when using a custom
1731         parser. The parser was not passed to the recursive call, and
1732         thus we were trying to do the expansion on the default command
1733         line parser.
1735 2014-06-13  Thomas Quinot  <quinot@adacore.com>
1737         * exp_ch9.adb: Minor reformatting.
1739 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1741         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
1742         To determine whether the attribute should be expanded, examine
1743         whether the enclosing postcondition pragma is to be checked,
1744         rather than using the internal flag Assertions_Enabled.
1746 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
1748         * gnat_rm.texi: Minor fixes.
1749         * gnat_ugn.texi: Added a missing "@itemize".
1751 2014-06-13  Robert Dewar  <dewar@adacore.com>
1753         * debug.adb: Remove -gnatd.1 flag documentation.
1754         * layout.adb (Layout_Type): Remove special handling of size
1755         for anonymous access type.
1756         * sem_ch3.adb (Replace_Type): Remove special handling of size
1757         for anonymous access type.
1759 2014-06-13  Robert Dewar  <dewar@adacore.com>
1761         * debug.adb: Document debug flag -gnatd.1.
1762         * layout.adb (Layout_Type): Size change for anonymous access
1763         types under -gnatd.1.
1764         * sem_ch3.adb (Replace_Type): Size change for anonymous access
1765         types under -gnatd.1.
1767 2014-06-13  Robert Dewar  <dewar@adacore.com>
1769         * layout.adb (Layout_Type): Anonymous access types designating
1770         unconstrained arrays are always thin pointers.
1771         * sem_ch3.adb (Replace_Type): Anonymous access types designating
1772         unconstrained arrays are always thin pointers.
1774 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1776         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
1777         to resolve the prefix of an attribute that is an entity name
1778         and may be a parameterless call.  Minor code reorganization.
1780 2014-06-13  Robert Dewar  <dewar@adacore.com>
1782         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
1783         Removed.
1784         * opt.ads (Compiler_Unit): New flag.
1785         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
1786         for null statement sequence (not allowed in compiler unit).
1787         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
1788         parsing.
1789         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
1790         calling sequence.
1791         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
1792         Check_Compiler_Unit.
1793         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
1794         Check_Compiler_Unit (this construct is not allowed in compiler
1795         units).
1796         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
1797         Set Opt.Compiler_Unit.
1799 2014-06-13  Geert Bosch  <bosch@adacore.com>
1801         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
1802         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
1803         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
1805 2014-06-13  Robert Dewar  <dewar@adacore.com>
1807         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
1809 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
1811         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
1812         types in SPARK as it is poorly placed and poorly formulated. The
1813         check was flagging ALL volatile entities as illegal in SPARK.
1814         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
1815         types as illegal in SPARK.
1817 2014-06-13  Robert Dewar  <dewar@adacore.com>
1819         * sem_cat.adb: Minor reformatting.
1821 2014-06-13  Yannick Moy  <moy@adacore.com>
1823         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
1825 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
1827         * gnat_rm.texi: Add detail on SPARK_05 restriction.
1829 2014-06-13  Bob Duff  <duff@adacore.com>
1831         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
1832         Add assertions requiring the secondary stack to be initialized.
1833         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
1834         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
1835         secondary stack is initialized before calling Init_Tasking_Soft_Links,
1836         by adding pragmas Elaborate_Body.
1838 2014-06-13  Thomas Quinot  <quinot@adacore.com>
1840         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
1841         kludge disabling new legality check.
1843 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
1845         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
1846         volatile types.
1847         (Freeze_Type): Volatile types are now illegal in SPARK.
1849 2014-06-13  Robert Dewar  <dewar@adacore.com>
1851         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
1852         * gnat_rm.texi: Document aspect Thread_Local_Storage.
1854 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1856         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
1857         value is a temporary that renames an aggregate is legal in a
1858         preelaborated unit. Illegalities, if any will be detected in
1859         the aggregate components.
1861 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
1863         * einfo.ads: Minor reformatting an comment expansion.
1865 2014-06-13  Robert Dewar  <dewar@adacore.com>
1867         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
1868         Tbuild.
1869         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
1870         Back_End.
1871         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
1872         * sem_warn.adb: Minor reformatting.
1874 2014-06-13  Doug Rupp  <rupp@adacore.com>
1876         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
1877         files with rfm=udf.
1879 2014-06-13  Yannick Moy  <moy@adacore.com>
1881         * sem_warn.adb (Check_Unset_References): Take
1882         case of Refined_Post into account in Within_Postcondition check.
1884 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
1886         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
1887         SPARK.
1889 2014-06-13  Yannick Moy  <moy@adacore.com>
1891         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
1892         Aspect_Export): Consider that variables may be set outside the program.
1894 2014-06-13  Robert Dewar  <dewar@adacore.com>
1896         * back_end.adb (Make_Id): New function.
1897         (Make_SC): New function.
1898         (Set_RND): New procedure.
1899         * back_end.ads (Make_Id): New function.
1900         (Make_SC): New function.
1901         (Set_RND): New procedure.
1902         * einfo.ads: Minor comment updates.
1903         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
1904         * gnat1drv.adb (Gnat1drv): New calling sequence for
1905         Get_Target_Parameters.
1906         (Gnat1drv): Move Atree.Initialize here from Frontend.
1907         * targparm.adb (Get_Target_Parameters): New calling
1908         sequence (Get_Target_Parameters): Handle pragma Restriction
1909         (No_Dependence,..)
1910         * targparm.ads (Get_Target_Parameters): New calling sequence.
1912 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
1914         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
1915         loop if the pragma does not come from source, so that an implicit
1916         pragma Import only applies to the first declaration, avoiding
1917         possible conflicts with earlier explicit and implicit declarations
1918         due to multiple Provide_Shift_Operators pragmas.
1919         (Set_Imported): Remove previous fix that bypassed pragma duplication
1920         error.
1921         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
1922         of Provide_Shift_Operators.
1924 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
1926         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
1927         string pointer directly to set_decl_section_name.
1929 2014-06-11  Robert Dewar  <dewar@adacore.com>
1931         * sem_ch13.adb: Minor reformatting.
1933 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
1935         * sem_prag.adb (Check_Clause_Syntax): Add new
1936         local variable Outputs. Account for the case where multiple
1937         output items appear as an aggregate.
1939 2014-06-11  Robert Dewar  <dewar@adacore.com>
1941         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
1942         with ?j? not ??.
1944 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
1946         * einfo.ads: Minor reformatting.
1948 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
1950         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
1951         new variable First_Node. Update the position after all insertions have
1952         taken place to First_Node.
1954 2014-06-11  Robert Dewar  <dewar@adacore.com>
1956         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
1957         * layout.adb (Layout_Type): Remove test of -gnatd.1.
1959 2014-06-11  Robert Dewar  <dewar@adacore.com>
1961         * sem_ch13.adb: Minor reformatting.
1963 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
1965         * sem_prag.adb (Check_Clause_Syntax): Add new
1966         local variable Outputs. Account for the case where multiple
1967         output items appear as an aggregate.
1969 2014-06-11  Robert Dewar  <dewar@adacore.com>
1971         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
1972         with ?j? not ??.
1974 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
1976         * einfo.ads: Minor reformatting.
1978 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
1980         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
1981         new variable First_Node. Update the position after all insertions have
1982         taken place to First_Node.
1984 2014-06-11  Robert Dewar  <dewar@adacore.com>
1986         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
1987         * layout.adb (Layout_Type): Remove test of -gnatd.1.
1989 2014-06-11  Thomas Quinot  <quinot@adacore.com>
1991         * freeze.ads: Minor reformatting.
1992         * checks.adb (Determine_Range): Do not attempt to determine
1993         the range of a deferred constant whose full view has not been
1994         seen yet.
1995         * sem_res.adb (Resolve): Remove undesirable guard against
1996         resolving expressions from expression functions.
1998 2014-06-11  Robert Dewar  <dewar@adacore.com>
2000         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
2001         access types.
2002         * layout.adb (Layout_Type): Make anonymous access types for
2003         subprogram formal types and return types always thin. For now
2004         only enabled if -gnatd.1 set.
2006 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2008         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
2009         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
2010         subprogram must be a null procedure.
2012 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
2014         * sem_prag.adb (Analyze_Input_Item): Allow formal
2015         parameters to appear as input_items in an initialization_list
2016         of pragma Initializes. Encapsulation now applies to states and
2017         variables only (as it should). Add RM references to key errors.
2018         * sem_prag.adb (Set_Imported): Suppress errors
2019         about preceding Imports when the pragma does not come from source,
2020         which can happen through use of pragma Provide_Shift_Operators.
2022 2014-06-11  Thomas Quinot  <quinot@adacore.com>
2024         * sem_ch3.adb: Minor reformatting.
2025         * einfo.ads (Full_View): Minor comment update.
2027 2014-06-11  Robert Dewar  <dewar@adacore.com>
2029         * einfo.adb (Is_Independent): New flag.
2030         * einfo.ads (Is_Independent): New flag.
2031         (Has_Independent_Components): Clean up and fix comments.
2032         * sem_prag.adb (Fix_Error): Deal with changing argument
2033         [of] to entity [for].
2034         (Analyze_Pragma, case Independent): Set Is_Independent flag
2035         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
2036         in all components of specified record.
2038 2014-06-11  Thomas Quinot  <quinot@adacore.com>
2040         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
2041         Set proper Etype on bounds of dummy type created for analysis
2042         of the generic.
2044 2014-06-11  Robert Dewar  <dewar@adacore.com>
2046         * debug.adb: Minor comment fix (add missing section of dot
2047         numeric flags).
2049 2014-06-11  Robert Dewar  <dewar@adacore.com>
2051         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
2052         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
2053         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
2054         * errout.adb (Output_Messages): Avoid duplicate output for
2055         library level instance.
2056         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
2057         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
2058         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
2059         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
2060         accomodate largest modulus value.
2061         * gnat_ugn.texi: Minor updates.
2063 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2065         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
2066         load body of generic package or its parent, if body is optional
2067         and the unit does not require a body.
2069 2014-06-11  Robert Dewar  <dewar@adacore.com>
2071         * gnat_rm.texi: Document System.Unsigned_Types.
2072         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
2073         * s-unstyp.ads: Update comments (this is now user available unit).
2075 2014-06-11  Robert Dewar  <dewar@adacore.com>
2077         * make.adb, sem_res.adb: Minor reformatting.
2079 2014-06-11  Thomas Quinot  <quinot@adacore.com>
2081         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
2082         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
2083         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
2084         Preelaborate_05 to just Preelaborate in runtime units, and similarly
2085         change Pure_05 to just Pure.
2087 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2089         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
2090         analysis if error has been posted on subprogram body.
2092 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2094         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
2095         rule given in RM 13.1 (8/1) for operational attributes to stream
2096         attributes: the attribute must apply to a first subtype. Fixes
2097         missing errors in ACATS test bdd2004.
2099 2014-06-11  Robert Dewar  <dewar@adacore.com>
2101         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
2102         record type if restriction No_Implicit_Conditionals is active.
2103         (Expand_N_Object_Declaration): Don't allow default initialization
2104         for variant record type if restriction No_Implicit_Condition is active.
2105         (Build_Variant_Record_Equality): Don't build for variant
2106         record type if restriction No_Implicit_Conditionals is active.
2107         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
2108         No_Implicit_Conditionals.
2109         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
2111 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
2113         * i-cstrin.ads: Update comments.
2115 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2117         * sem_res.adb (Resolve_Selected_Component): Handle properly a
2118         selected component whose prefix is overloaded, when none of the
2119         interpretations matches the expected type.
2121 2014-06-11  Bob Duff  <duff@adacore.com>
2123         * make.adb (Wait_For_Available_Slot): Give a more
2124         informative error message; if the ALI file is not found, print
2125         the full path of what it's looking for.
2127 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
2129         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
2130         option to specify the result file encoding.
2132 2014-06-11  Robert Dewar  <dewar@adacore.com>
2134         * errout.ads, sem_ch12.adb: Minor reformatting.
2135         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
2136         * lib-xref.adb: Minor reformatting.
2137         * restrict.adb: Minor code reorganization (put routines in
2138         alpha order).
2140 2014-06-11  Yannick Moy  <moy@adacore.com>
2142         * einfo.ads: Minor typo in comment
2144 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2146         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
2147         formal private types and private type extensions, to indicate
2148         variable in a generic unit whose uninitialized use suggest that
2149         actual type should be fully initialized.
2150         Needs_Initialized_Actual:  removed, functionaity replaced by
2151         the above.
2152         * lib-xref.adb (Generate_Reference): Generate a reference for
2153         variables of a formal type when the unit is not the main unit,
2154         to enable appropriate warnings in an instance.
2155         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
2156         of variable in a generic unit that suggests that actual type
2157         should be full initialized.
2158         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
2159         and do not emot warning, which now only appears in an instance.
2161 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2163         * gnat_ugn.texi: Fix minor typo.
2165 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
2167         * sem_ch3.adb Add with and use clause for Sem_Ch10.
2168         (Analyze_Declarations): Code reformatting. Analyze the contract
2169         of a subprogram body stub at the end of the declarative region.
2170         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
2171         now a variable. Do not process the body if its contract is not
2172         available. Account for subprogram body stubs when extracting
2173         the corresponding spec.
2174         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
2175         on usage.
2176         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
2177         New routine.
2178         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
2179         Account for subprogram body stubs when extracting the
2180         corresponding spec.
2181         (Analyze_Global_In_Decl_List):
2182         Account for subprogram body stubs when extracting the
2183         corresponding spec.
2184         (Analyze_Refined_Depends_In_Decl_Part):
2185         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
2186         of the related body. Spec_Is now a variable. Account for
2187         subprogram body stubs when extracting the corresponding spec.
2188         (Analyze_Refined_Global_In_Decl_Part): Use
2189         Find_Related_Subprogram_Or_Body to retrieve the declaration
2190         of the related body. Spec_Is now a variable. Account for
2191         subprogram body stubs when extracting the corresponding spec.
2192         (Collect_Subprogram_Inputs_Output): Account for subprogram body
2193         stubs when extracting the corresponding spec.
2195 2014-06-11  Vincent Celier  <celier@adacore.com>
2197         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
2198         -lgnarl or -lgnat.
2200 2014-06-11  Robert Dewar  <dewar@adacore.com>
2202         * debug.adb: Add debug flag -gnatd.q.
2203         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
2204         -gnatd.q set.
2205         * styleg.adb (Check_Xtra_Parens): Message should be a style
2206         message.
2207         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
2208         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
2209         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
2210         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
2212 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
2214         * gnat_rm.texi: Revised chapter on Implementation Defined
2215         Characteristics.
2217 2014-06-11  Geert Bosch  <bosch@adacore.com>
2219         * s-exctab.adb: avoid race conditions in exception registration.
2221 2014-06-11  Robert Dewar  <dewar@adacore.com>
2223         * errout.adb (Warn_Insertion): New function.
2224         (Error_Msg): Use Warn_Insertion and Prescan_Message.
2225         (Error_Msg_Internal): Set Info field of error object.
2226         (Error_Msg_NEL): Use Prescan_Message.
2227         (Set_Msg_Text): Don't store info: at start of message.
2228         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
2229         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
2230         * errout.ads: Document new ?$? and >$> insertion sequences
2231         Document use of "(style)" and "info: "
2232         * erroutc.adb (dmsg): Print several missing fields
2233         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
2234         Deal with new tagging of info messages
2235         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
2236         Add field Info (Prescan_Message): New procedure, this procedure
2237         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
2238         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
2239         sem_elab.adb: Follow new rules for info message (info belongs
2240         only at the start of a message, and only in the first message,
2241         not in any of the continuations).
2242         * gnat_ugn.texi: Document full set of warning tags.
2244 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
2246         * sem_util.adb: Minor typo fix.
2248 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
2250         * sem_warn.adb (Check_References): Do not emit spurious warnings
2251         on uninitialzed variable of a formal private type if variable
2252         is not read.
2254 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
2256         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
2257         set_decl_section_name accessor.
2259 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
2261         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2262         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2263         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2265 2014-05-21  Robert Dewar  <dewar@adacore.com>
2267         * layout.adb: Minor reformatting.
2268         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
2269         dummy procedure ip.
2271 2014-05-21  Robert Dewar  <dewar@adacore.com>
2273         * restrict.ads (Implementation_Restriction): Add entry for
2274         No_Fixed_IO.
2275         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
2276         Ada.[Wide_[Wide_]Text_IO.
2277         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
2278         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
2279         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
2280         Wide_Wide_Value if restriction No_Fixed_IO is set.
2281         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
2283 2014-05-21  Robert Dewar  <dewar@adacore.com>
2285         * gnatcmd.adb: Minor error msg changes (no upper case letter
2286         at start).
2287         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
2288         reformatting.
2290 2014-05-21  Robert Dewar  <dewar@adacore.com>
2292         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
2293         via generic formals.
2294         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
2295         -gnatd.G is set.
2297 2014-05-21  Thomas Quinot  <quinot@adacore.com>
2299         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
2300         more accurately describe that this subprogram needs to come into
2301         play also in cases where no byte swapping is involved, because
2302         it also takes care of some required shifts (left-justification
2303         of values).
2305 2014-05-21  Thomas Quinot  <quinot@adacore.com>
2307         * freeze.adb (Check_Component_Storage_Order): Indicate whether
2308         a Scalar_Storage_Order attribute definition is present for the
2309         component's type.
2310         (Freeze_Record_Type): Suppress junk warnings
2311         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
2312         definitions.
2314 2014-05-21  Robert Dewar  <dewar@adacore.com>
2316         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
2317         to Kill_Elaboration_Checks.
2319 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
2321         * layout.adb (Assoc_Add): Suppress the optimization of the (E
2322         - C1) + C2 case, when the expression type is unsigned and C1 <
2323         C2, to avoid creating a negative literal when folding.
2325 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
2327         * freeze.adb (Freeze_Record_Type): Update the use of
2328         Is_SPARK_Volatile.
2329         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
2330         Is_SPARK_Volatile.
2331         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
2332         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
2333         of Is_SPARK_Volatile.
2334         (Analyze_Loop_Parameter_Specification):
2335         Update the use of Is_SPARK_Volatile.
2336         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
2337         formal parameter when its type is volatile.
2338         * sem_prag.adb (Analyze_Global_Item): Update the use of
2339         Is_SPARK_Volatile.
2340         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
2341         determines whether an entity is a volatile source SPARK object.
2342         * sem_util.adb (Has_Enabled_Property): Accout for external
2343         properties being set on objects other than abstract states
2344         and variables. An example would be a formal parameter.
2345         (Is_SPARK_Volatile): New routine.
2346         (Is_SPARK_Volatile_Object):
2347         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
2348         when checking entities and/or types.
2349         * sem_util.ads (Is_SPARK_Volatile): New routine.
2351 2014-05-21  Robert Dewar  <dewar@adacore.com>
2353         * sem_warn.adb: Minor fix to warning messages (use ?? instead
2354         of ?).
2356 2014-05-21  Vincent Celier  <celier@adacore.com>
2358         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
2359         switch --version and --help.
2361 2014-05-21  Robert Dewar  <dewar@adacore.com>
2363         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
2365 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2367         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
2368         iterator variable when the domain of iteration is a formal
2369         container and this is an element iterator.
2371 2014-05-21  Bob Duff  <duff@adacore.com>
2373         * sem_ch12.adb: Minor reformatting.
2375 2014-05-21  Robert Dewar  <dewar@adacore.com>
2377         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
2379 2014-05-21  Robert Dewar  <dewar@adacore.com>
2381         * sem_elab.adb: Minor reformatting.
2382         * s-taprop.ads: Minor comment fix.
2383         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
2384         Kill_Elaboration_Checks.
2385         * errout.adb, erroutc.adb: Minor reformatting.
2387 2014-05-21  Thomas Quinot  <quinot@adacore.com>
2389         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
2390         component. No byte swapping occurs, but this procedure also takes
2391         care of appropriately justifying the argument.
2393 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
2395         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
2396         New routine.
2397         (Analyze_Subprogram_Body_Helper): Move the
2398         analysis of aspect specifications and the processing of the
2399         subprogram body contract after inlining has taken place.
2400         (Diagnose_Misplaced_Aspect_Specifications): Removed.
2402 2014-05-21  Javier Miranda  <miranda@adacore.com>
2404         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
2406 2014-05-21  Robert Dewar  <dewar@adacore.com>
2408         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
2409         continuations any more.
2411 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2413         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
2414         present in formal_Private_Definitions and on private extension
2415         declarations of a formal derived type. Set when the use of the
2416         formal type in a generic suggests that the actual should be a
2417         fully initialized type.
2418         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
2419         to indicate that an entity of a generic type has default
2420         initialization, and that the corresponing actual type in any
2421         subsequent instantiation should be fully initialized.
2422         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
2423         to emit a warning if the actual for a generic type on which
2424         Needs_Initialized_Actual is set is not a fully initialized type.
2426 2014-05-21  Robert Dewar  <dewar@adacore.com>
2428         * sem_elab.adb, prj-dect.adb: Minor reformatting.
2430 2014-05-21  Robert Dewar  <dewar@adacore.com>
2432         * erroutc.ads: Minor comment addition.
2434 2014-05-21  Robert Dewar  <dewar@adacore.com>
2436         * errout.ads: Add documentation for use of >*> tag.
2437         * restrict.adb: Make sure we use >*> tag for restriction warnings.
2439 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
2441         * debug.adb: Add case of illegal overriding_indicator for a
2442         protected subprogram body to description of -gnatd.E switch.
2443         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
2444         for cases of giving overriding_indicators on protected subprogram
2445         bodies, but change this to a warning if -gnatd.E is enabled. No
2446         longer give a style warning about missing indicators on protected
2447         subprogram bodies.
2449 2014-05-21  Robert Dewar  <dewar@adacore.com>
2451         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
2452         sem_elab.ads: Minor reformatting.
2453         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
2454         parameter optional.
2456 2014-05-21  Pascal Obry  <obry@adacore.com>
2458         * prj-dect.adb: Allow package Install in aggregate project.
2460 2014-05-21  Robert Dewar  <dewar@adacore.com>
2462         * sem_ch13.adb (Analyze_Aspect_Specifications):
2463         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
2464         * sem_prag.adb: Minor comment improvements.
2466 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2468         * sem_ch12.adb (Install_Body): When checking whether freezing of
2469         instantiation must be delayed, verify that the common enclosing
2470         subprogram to generic and instance is in fact an overloadable
2471         entity.
2473 2014-05-21  Vincent Celier  <celier@adacore.com>
2475         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
2476         mains with the same name and fail if there is more than one.
2477         * prj.ads, prj.adb (Find_All_Sources): New function
2479 2014-05-21  Robert Dewar  <dewar@adacore.com>
2481         * sem_ch13.adb: Minor reformatting.
2482         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
2483         * sem_prag.adb: Minor error message improvement.
2485 2014-05-21  Yannick Moy  <moy@adacore.com>
2487         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
2488         (Enclosing_Subprogram_Or_Package): Only return a library-level
2489         package.
2491 2014-05-21  Javier Miranda  <miranda@adacore.com>
2493         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
2494         to the full view of the parent type when processing a derived type
2495         which is the full view of a private type not defined in a generic
2496         unit which is derived from a private type with discriminants
2497         whose full view is a non-tagged record type.
2499 2014-05-21  Javier Miranda  <miranda@adacore.com>
2501         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
2502         Complete previous patch.
2504 2014-05-21  Thomas Quinot  <quinot@adacore.com>
2506         PR ada/9535
2507         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
2508         Provide a behaviour more consistent with underlying datagram
2509         socket: do not attempt to loop over Send_Socket/Receive_Socket
2510         iterating along the buffer.
2512 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
2514         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
2515         or a tagged type is not labelled as volatile. Ensure that a
2516         non-volatile type has no volatile components.
2517         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
2518         Obj_Typ. Code reformatting.  Ensure that a discriminated or
2519         tagged object is not labelled as volatile.
2520         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
2521         pragma Volatile applies to a full type declaration or an object
2522         declaration when SPARK mode is on.
2524 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
2526         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
2527         providing options needed for compiling the argument source for
2528         the situation when a project file can be used as a tool parameter.
2530 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
2532         * gnat_rm.texi: Minor typo fix.
2534 2014-05-21  Robert Dewar  <dewar@adacore.com>
2536         * stand.adb (Tree_Read): Read missing entities.
2537         (Tree_Write): Write missing entities.
2539 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
2541         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
2542         section in gnatmetric chapter.
2544 2014-05-21  Robert Dewar  <dewar@adacore.com>
2546         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
2547         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
2548         post-call copy write back (see detailed comment in code).
2549         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
2550         Exp_Ch6.
2551         * tbuild.ads: Minor reformatting.
2553 2014-05-21  Robert Dewar  <dewar@adacore.com>
2555         * stand.ads: Add warning about adding new entities and
2556         Tree_Read/Tree_Write.
2558 2014-05-21  Robert Dewar  <dewar@adacore.com>
2560         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
2561         references to restricted entities within the units in which they
2562         are declared.
2564 2014-05-21  Robert Dewar  <dewar@adacore.com>
2566         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
2567         simplify the needed test, and also deal with failure to catch
2568         situations with non-standard names.
2569         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
2570         (Source_File_Is_Subunit): Removed, no longer used.
2572 2014-05-21  Javier Miranda  <miranda@adacore.com>
2574         * exp_ch4.adb
2575         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
2576         renaming of an access to interface object there is no need to
2577         generate extra code to reference the tag.
2579 2014-05-21  Robert Dewar  <dewar@adacore.com>
2581         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
2582         Warnings (Off, string).
2584 2014-05-21  Robert Dewar  <dewar@adacore.com>
2586         * osint.adb: Fix three error messages to say invalid instead
2587         of erroneous.
2588         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
2589         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
2590         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
2592 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2594         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
2595         sem_ch9.ads: Move discriminant manipulation routines for analysis of
2596         aspect specifications from sem_ch9 to sem_ch13, where they belong.
2598 2014-05-21  Robert Dewar  <dewar@adacore.com>
2600         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
2601         Clearly document -gnatyg (GNAT style switches).
2602         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
2603         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
2604         available for VMS after all.
2605         * warnsw.adb: Reorganize to eliminate duplicated code
2606         (Restore_Warnings): Add a couple of missing entries
2607         (Save_Warnings): Add a couple of missing entries.
2608         * warnsw.ads: Add missing entries to Warning_Record (not clear
2609         what the impact is).
2611 2014-05-21  Robert Dewar  <dewar@adacore.com>
2613         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
2614         warning) case.
2615         * errout.ads: Document ?*? (restriction warning) insertion.
2616         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
2617         warning) case.
2618         * erroutc.ads: Document use of * for restriction warning tag.
2619         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
2621 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2623         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
2624         make discriminants immediately visible when analyzing an aspect
2625         of a subtype declaration.
2626         (Uninstall_Discriminants): Do not apply to the entity in a
2627         subtype declaration.
2629 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2631         * sem_util.adb: Code clean up.
2633 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2635         * gnat_ugn.texi: Document -Werror.
2637 2014-05-21  Bob Duff  <duff@adacore.com>
2639         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
2640         This was returning False if the Object is a constant view. Fix
2641         it to return True in that case, because it might be a view of
2642         a variable.
2643         (Has_Discriminant_Dependent_Constraint): Fix latent
2644         bug; this function was crashing when passed a discriminant.
2646 2014-05-21  Robert Dewar  <dewar@adacore.com>
2648         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
2649         * s-arit64.adb: Minor code reorganization.
2650         * sem_prag.adb: Minor comment fix (remove erroneous use of the
2651         term erroneous).
2653 2014-05-21  Robert Dewar  <dewar@adacore.com>
2655         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
2656         computing new table size.
2658 2014-05-21  Robert Dewar  <dewar@adacore.com>
2660         * einfo.ads: Minor reformatting.
2661         * ceinfo.adb: Deal with slight format change of einfo.ads.
2663 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2665         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
2666         implementation of the SPARK 2014 rule concerning private child
2667         units (LRM 7.2.6).
2669 2014-05-21  Vincent Celier  <celier@adacore.com>
2671         * makeusg.adb: Add switch -d to usage.
2673 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
2675         * sem_util.adb (Find_Actual): If an actual that is the prefix
2676         of an enclosing prefixed call has been rewritten, use Nkind
2677         and Sloc to identify the corresponding formal, when handling
2678         deferred references.
2680 2014-05-21  Robert Dewar  <dewar@adacore.com>
2682         * debug.adb: Document -gnatd.z switch.
2683         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
2685 2014-05-21  Robert Dewar  <dewar@adacore.com>
2687         * einfo.ads (Can_Never_Be_Null): Minor comment update.
2688         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
2689         error message change.
2690         * s-arit64.adb ("abs"): New function. Use expression functions
2691         for the simple conversions and arithmetic.
2693 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2695         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
2696         set function_start_locus.
2698 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2700         * utils.c (gnat_write_global_declarations): Adjust the flags put on
2701         dummy_global.
2703 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2705         * gcc-interface/decl.c (change_qualified_type): New static function.
2706         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
2707         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
2708         <E_Array_Subtype>: Likewise.
2709         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
2710         (gnat_to_gnu_component_type): Likewise.
2711         (gnat_to_gnu_param): Likewise.
2713 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2715         * fe.h (Set_Present_Expr): Move around.
2716         (End_Location): New macro.
2717         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
2719 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2721         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
2722         lieu of more verbose construct.
2723         * gcc-interface/trans.c (Call_to_gnu): Likewise.
2724         (gnat_to_gnu): Likewise.  Remove obsolete code.
2726 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2728         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
2729         consider that regular packed arrays can never be superflat.
2731 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
2733         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
2734         annotation.
2735         * gcc-interface/decl.c (annotate_value): Adjust.
2736         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
2737         (push_range_check_info): Likewise.
2738         (Loop_Statement_to_gnu): Likewise.
2739         (Subprogram_Body_to_gnu): Likewise.
2740         (Compilation_Unit_to_gnu): Likewise.
2741         (start_stmt_group): Likewise.
2742         * gcc-interface/utils.c (init_gnat_utils): Likewise.
2743         (gnat_pushlevel): Likewise.
2744         (maybe_pad_type): Likewise.
2746 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2748         * seh_init.c: Fix copyright year.
2750 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2752         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
2753         are defined.  Move include windows.h before system.h.
2754         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
2755         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
2757 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
2759         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
2760         to the appropriate type.
2761         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
2762         (pos_to_constructor): Likewise.
2764 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2766         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
2768 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
2769             Mike Stump  <mikestump@comcast.net>
2770             Richard Sandiford  <rdsandiford@googlemail.com>
2772         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
2773         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
2774         (annotate_value): Use wide-int interfaces.
2775         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
2777 2014-04-28  Richard Henderson  <rth@redhat.com>
2779         * gcc-interface/Makefile.in: Support aarch64-linux.
2781 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2783         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
2784         add 'Suffix' parameter and adjust comment.
2785         (Get_External_Name_With_Suffix): Delete.
2786         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
2787         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
2788         'Suffix' parameter.
2789         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
2790         Call Get_External_Name instead of Get_External_Name_With_Suffix.
2791         (Get_Secondary_DT_External_Name): Likewise.
2792         * exp_cg.adb (Write_Call_Info): Likewise.
2793         * exp_disp.adb (Export_DT): Likewise.
2794         (Import_DT): Likewise.
2795         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
2796         parameter with False default.
2797         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
2798         * types.h (Fat_Pointer): Rename into...
2799         (String_Pointer): ...this.  Add comment on interfacing rules.
2800         * fe.h (Compiler_Abort): Adjust for above renaming.
2801         (Error_Msg_N): Likewise.
2802         (Error_Msg_NE): Likewise.
2803         (Get_External_Name): Likewise.  Add third parameter.
2804         (Get_External_Name_With_Suffix): Delete.
2805         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
2806         (create_concat_name): Adjust call to Get_External_Name, remove call to
2807         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
2808         * gcc-interface/trans.c (post_error): Likewise.
2809         (post_error_ne): Likewise.
2810         * gcc-interface/misc.c (internal_error_function): Likewise.
2812 2014-04-28  Richard Biener  <rguenther@suse.de>
2814         PR middle-end/60092
2815         * gcc-interface/utils.c: Define flag_isoc11.
2817 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
2819         * gnatvsn.ads (Library_Version): Bump to 4.10.
2821 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2823         Revert
2824         2014-04-22  Richard Henderson  <rth@redhat.com>
2826         * gcc-interface/Makefile.in: Support aarch64-linux.
2828         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
2830         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
2831         (Error_Msg_N): Likewise.
2832         (Error_Msg_NE): Likewise.
2833         (Get_External_Name_With_Suffix): Likewise.
2834         * types.h (Fat_Pointer): Delete.
2835         (String_Pointer): New type.
2836         (DECLARE_STRING_POINTER): New macro.
2837         * gcc-interface/decl.c (create_concat_name): Adjust.
2838         * gcc-interface/trans.c (post_error): Likewise.
2839         (post_error_ne): Likewise.
2840         * gcc-interface/misc.c (internal_error_function): Likewise.
2842 2014-04-22  Richard Henderson  <rth@redhat.com>
2844         * gcc-interface/Makefile.in: Support aarch64-linux.
2846         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
2847         (__gnat_alternate_stack): Enable for all linux except ia64.
2849 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
2851         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
2852         (Error_Msg_N): Likewise.
2853         (Error_Msg_NE): Likewise.
2854         (Get_External_Name_With_Suffix): Likewise.
2855         * types.h (Fat_Pointer): Delete.
2856         (String_Pointer): New type.
2857         (DECLARE_STRING_POINTER): New macro.
2858         * gcc-interface/decl.c (create_concat_name): Adjust.
2859         * gcc-interface/trans.c (post_error): Likewise.
2860         (post_error_ne): Likewise.
2861         * gcc-interface/misc.c (internal_error_function): Likewise.
2863 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2864             Pierre-Marie de Rodat  <derodat@adacore.com>
2866         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
2867         scalar constant instead of a reference for renaming of scalar literal.
2868         Do not create a new object for constant renaming except for a function
2869         call.  Make sure a VAR_DECL is created for the renaming pointer.
2870         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
2871         (fold_constant_decl_in_expr): New function.
2872         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
2873         For a constant renaming, try to fold a constant DECL in the result.
2874         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
2875         (Identifier_to_gnu): Reference the renamed object of constant renaming
2876         pointers directly.
2877         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
2878         invalidate constant renaming pointers.
2880 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2882         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
2883         (build_vector_type_for_size): New function.
2884         (build_vector_type_for_array): Likewise.
2885         (unchecked_convert): Build an intermediate vector type to convert
2886         from a generic array type to a vector type.
2887         (handle_vector_size_attribute): Reimplement.
2888         (handle_vector_type_attribute): Likewise.
2890 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2892         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
2893         Is_OK_Static_Expression in lieu of Is_Static_Expression to
2894         detect valid arguments.
2896 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2898         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
2900 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
2902         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
2903         (components_to_record): Likewise.
2904         * gcc-interface/utils.c (make_aligning_type): Likewise.
2905         (maybe_pad_type): Likewise.
2906         (finish_record_type): Likewise.
2907         (rest_of_record_type_compilation): Likewise.
2909 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
2911         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
2912         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
2913         for Ivdep hint.
2914         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
2915         hint for Loop_Optimize.
2916         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
2917         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
2918         with new Ivdep hint.
2919         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
2920         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
2921         with new Ivdep hint.
2922         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
2924 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
2925             Robert Dewar  <dewar@adacore.com>
2927         * opt.ads (Suppress_Back_Annotation): Remove as unused.
2928         * fe.h (Back_Annotate_Rep_Info): Likewise.
2929         (Global_Discard_Names): Likewise.
2930         (List_Representation_Info): Declare.
2931         * types.h (Uint_Minus_1): Likewise.
2932         * repinfo.ads: Document back-annotation change.
2933         * gcc-interface/gigi.h (init_gnat_decl): Declare.
2934         (destroy_gnat_decl): Likewise.
2935         * gcc-interface/decl.c (annotate_value): Do not create the cache of
2936         annotated values here but...
2937         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
2938         in ASIS mode.
2939         (init_gnat_decl): ...here instead.  New function.
2940         (destroy_gnat_decl): Likewise.
2941         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
2942         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
2944 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
2946         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
2947         offset for the field, if any.
2949 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2950             Svante Signell  <svante.signell@gmail.com>
2952         PR ada/54040
2953         PR ada/59346
2954         * s-osinte-x32.adb: New file.
2955         * s-linux.ads (Time): New section.
2956         * s-linux-alpha.ads (Time): Likewise.
2957         * s-linux-android.ads (Time: Likewise.
2958         * s-linux-hppa.ads (Time): Likewise.
2959         * s-linux-mipsel.ads (Time): Likewise.
2960         * s-linux-sparc.ads (Time): Likewise.
2961         * s-linux-x32.ads (Time): Likewise.
2962         * s-osprim-x32.ads (timespec): Adjust.
2963         (Clock): Likewise.
2964         (To_Timespec): Likewise.
2965         * s-osinte-linux.ads (Time): Define local subtypes for those defined
2966         in System.Linux.
2967         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
2968         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
2969         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
2970         * s-osinte-solaris-posix.ads (timespec): Likewise.
2971         * s-osinte-posix.adb (To_Timespec): Likewise.
2972         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
2974 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2976         PR ada/60411
2977         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
2978         * s-linux-android.ads: New file.
2979         * s-intman-android.adb: Likewise.
2980         * s-osinte-android.ads: Adjust.
2981         * sigtramp-armdroid.c: Likewise.
2982         * sigtramp.h: Add Android support.
2984 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2986         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
2988 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
2990         PR ada/60703
2991         * system-linux-alpha.ads: Adjust for Ada 2005.
2992         * system-linux-mips.ads: Likewise.
2993         * system-linux-mips64el.ads: Likewise.
2994         * system-linux-mipsel.ads: Likewise.
2995         * system-linux-s390.ads: Likewise.
2996         * system-linux-s390x.ads: Likewise.
2997         * system-linux-sparc.ads: Likewise.
2998         * system-linux-sparcv9.ads: Likewise.
2999         * system-rtems.ads: Likewise.
3000         * system-vxworks-arm.ads: Likewise.
3002 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
3004         PR ada/39172
3005         * gcc-interface/Makefile.in (target_cpu_default): Revert
3006         2013-10-11 change.
3008 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
3010         PR ada/51483
3011         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
3012         it to set the RM size.  Use directly 'size' for the Esize.
3013         (Create_Back_End_Float_Types): Adjust call to above.
3014         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
3015         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
3016         (Write_Target_Dependent_Values): Adjust comment.
3017         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
3018         deal with it.
3019         (Write_Target_Dependent_Values): Write the precision in lieu of size.
3020         (Initialization): Read the precision in lieu of size and compute the
3021         size from the precision and the alignment.
3022         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
3023         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
3024         types for vector modes, pass the size in addition to the precision.
3026 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
3028         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
3030 2014-03-07  Doug Rupp  <rupp@adacore.com>
3032         PR ada/60411
3033         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
3034         (Support_64_Bit_Divides): Removed, no longer used.
3035         (ZCX_By_Default): Enabled.
3037 2014-02-25  Doug Rupp  <rupp@adacore.com>
3039         * gcc-interface/Makefile.in (arm-linux):
3040         (EH_MECHANISM): Use ARM unwinder (-arm)
3041         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
3042         s-excmac-arm.ads.
3043         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
3044         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
3045         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
3046         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
3047         Add dependencies for sigtramp-armvxw.o.
3049 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3051         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
3053 2014-02-25  Robert Dewar  <dewar@adacore.com>
3055         * rtsfind.adb (Is_RTE): Protect against entity with no scope
3056         field (previously this call blew up on the Standard entity).
3057         * sem_attr.adb (Analyze_Attribute, case Access): Remove
3058         test for No_Abort_Statements, this is now handled in
3059         Set_Entity_With_Checks.
3060         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
3061         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
3062         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
3063         Set_Entity_With_Checks.
3064         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
3065         Add checks for No_Abort_Statements.
3067 2014-02-25  Robert Dewar  <dewar@adacore.com>
3069         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
3070         Check_Restriction is OK.
3072 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3074         * sem_ch3.adb (Process_Full_View): Better error message when
3075         the full view of  a private type without discriminants is an
3076         unconstrained type.
3077         * sem_ch7.adb (Uninstall_Declarations): Ditto.
3079 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3081         * sigtramp-armvxw.c: Also restore r0.
3083 2014-02-25  Robert Dewar  <dewar@adacore.com>
3085         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
3086         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
3087         set unconditionally.
3088         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
3089         any more (Output_Msg_Text): Rewritten with new convention on
3090         output of warnings that are treated as errors.
3091         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
3092         if Warn is False.
3093         * gnat_rm.texi: Updates to documentation on pragma
3094         Warning_As_Error.
3095         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
3096         set Warning_Doc_Switch.
3097         * lib-writ.ads: Add documentation note on ALI file generation
3098         for C.
3099         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
3100         (belongs in Sem).
3101         * sem_attr.adb (Resolve_Attribute, case Access):
3102         Abort_Task'Access violates the No_Abort_Statements restriction.
3103         * sem_res.adb (Resolve_Call): Check restriction
3104         No_Abort_Statements for call to Abort_Task or a renaming of it.
3106 2014-02-25  Robert Dewar  <dewar@adacore.com>
3108         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
3109         type name as index.
3110         * lib.ads: Minor reformatting.
3111         * einfo.ads: Minor reformatting.
3113 2014-02-25  Doug Rupp  <rupp@adacore.com>
3115         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
3116         use Short_Descriptor(S) as the argument passing mechanism.
3118 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3120         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
3122 2014-02-25  Robert Dewar  <dewar@adacore.com>
3124         * atree.ads (Warnings_Treated_As_Errors): New variable.
3125         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
3126         error object (Initialize): Initialize Warnings_As_Errors_Count
3127         (Write_Error_Summary): Include count of warnings treated as errors.
3128         * erroutc.adb (Warning_Treated_As_Error): New function.
3129         (Matches): Function moved to outer level of package.
3130         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
3131         (Warning_Treated_As_Error): New function.
3132         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
3133         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
3134         * opt.ads (Config_Switches_Type): Add entry for
3135         Warnings_As_Errors_Count.
3136         (Warnings_As_Errors_Count): New variable.
3137         (Warnings_As_Errors): New array.
3138         * par-prag.adb: Add dummy entry for Warning_As_Error.
3139         * sem_prag.adb (Analyze_Pragma): Implement new pragma
3140         Warning_As_Error.
3141         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
3143 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3145         * sigtramp.h: Fix minor inaccuracy.
3147 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
3149         * gnat_ugn.texi: Added description of kill command.
3151 2014-02-25  Robert Dewar  <dewar@adacore.com>
3153         * gnat_rm.texi (Address_Clauses): Add a section discussing the
3154         problem of address clauses causing unexpected initialization,
3155         including the effect of Initialize_Scalars.
3157 2014-02-25  Robert Dewar  <dewar@adacore.com>
3159         * errout.adb: Various changes for better msgs for anonmous access
3160         subprogram types.
3161         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
3162         argument.
3163         (Buffer_Remove): Version with character argument.
3164         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
3165         of mismatching conventions for access-to-subprogram case.
3166         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
3167         access types in record.
3168         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
3169         types, including in records.
3171 2014-02-25  Doug Rupp  <rupp@adacore.com>
3173         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
3174         enhancements and corrections.
3176 2014-02-25  Robert Dewar  <dewar@adacore.com>
3178         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
3180 2014-02-25  Robert Dewar  <dewar@adacore.com>
3182         * gnat_rm.texi: First set of documentation additions for
3183         predefined RM units.
3184         * checks.adb: Minor reformatting.
3185         * sem_elab.adb (Check_Task_Activation): Minor fix to error
3186         message.
3187         * sem_util.adb: Minor reformatting.
3189 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
3191         * usage.adb (Usage): Add help on -gnateC.
3192         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
3193         * opt.ads (Generate_CodePeer_Messages): New flag.
3194         * gnat_ugn.texi: Document new switch -gnateC.
3196 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
3198         * gnat_rm.texi: Corrected minor typos in Implementation Defined
3199         Aspects.
3200         * opt.ads: Minor reformatting.
3202 2014-02-25  Robert Dewar  <dewar@adacore.com>
3204         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
3205         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
3206         of -gnatel/-gnateL.
3207         * opt.ads (Warn_Info_Messages): New flag.
3208         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
3209         messages.
3210         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
3211         messages.
3212         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
3213         * usage.adb: Add documentation of -gnatel/-gnateL Update
3214         documentation of -gnatwl/-gnatwL.
3215         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
3216         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
3218 2014-02-25  Robert Dewar  <dewar@adacore.com>
3220         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
3221         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
3222         * interfac.ads: Minor code reorganization (add pragma
3223         Compiler_Unit_Warning).
3224         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
3225         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
3226         Has_Shift_Operator flag.
3227         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
3228         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
3229         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
3230         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
3231         Add entry for Name_Amount.
3232         * checks.adb (Selected_Range_Checks): When checking for a null
3233         range, make sure we use the base type, and not the subtype for
3234         deciding a range is null.
3235         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
3236         for suspicious loop bound which is outside the range of the
3237         loop subtype.
3238         * gnat_ugn.texi: Add documentation section "Determining the
3239         Chosen Elaboration Order"
3240         * sem_ch13.adb (UC_Entry): Add field Act_Unit
3241         (Validate_Unchecked_Conversion): Store Act_Unit
3242         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
3243         * treepr.adb: Minor reformatting.
3245 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
3247         * usage.adb: Minor: fix typo.
3249 2014-02-25  Robert Dewar  <dewar@adacore.com>
3251         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
3252         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
3253         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
3254         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
3255         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
3256         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
3257         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
3258         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
3259         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
3260         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
3261         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
3262         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
3263         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
3264         Compiler_Unit_Warning, change Compiler_Unit everywhere to
3265         Compiler_Unit_Warning.
3267 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
3269         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
3270         in ASIS mode aggregates that are used as aspect definitions.
3272 2014-02-25  Robert Dewar  <dewar@adacore.com>
3274         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
3275         reformatting.
3277 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3279         * freeze.adb (Freeze_Entity): If the return type of a function
3280         is a limited view, and the non-limited view has not been seen yet,
3281         defer freezing to some later point.
3283 2014-02-25  Robert Dewar  <dewar@adacore.com>
3285         * sem_ch3.adb: Minor reformatting.
3287 2014-02-25  Robert Dewar  <dewar@adacore.com>
3289         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
3290         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
3291         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
3292         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
3293         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
3294         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
3295         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
3296         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
3297         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
3298         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
3299         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
3300         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
3301         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
3302         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
3303         snames.ads-tmpl: Change Compiler_Unit everywhere to
3304         Compiler_Unit_Warning.
3306 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
3308         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
3309         (Collect_Body_Postconditions_In_Decls): New routine.
3310         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
3311         postcondition aspects or pragmas that appear on a subprogram
3312         body stub.
3313         (Collect_Spec_Preconditions): Factor out code. Handle
3314         precondition aspects or pragmas that appear on a subprogram
3315         body stub.
3316         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
3317         aspects that apply to a subprogram body stub is no longer delayed,
3318         the aspects are analyzed on the spot.
3319         (SPARK_Aspect_Error):
3320         Aspects that apply to a subprogram declaration cannot appear in
3321         a subunit.
3322         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
3323         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
3324         is now a local variable. Code cleanup. Analysis related to
3325         the aspects of a subprogram body stub is now carried out by
3326         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
3327         and/or pragmas of a subprogram body stub to the proper body
3328         as this is no longer needed. Do not analyze the aspects of a
3329         subprogram stub when the corresponding source unit is missing.
3330         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
3331         on a stub.
3332         (Analyze_Task_Body_Stub): Flag the illegal use of
3333         aspects on a stub.
3334         (Optional_Subunit): Add local variable Unum.
3335         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
3336         pragma when it applies to a subprogram body stub.
3337         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
3338         Depends and Global can now apply to a subprogram body stub as
3339         long as it acts as its own spec.
3340         (Analyze_Refined_Pragma):
3341         Code reformatting. Refinement pragmas cannot apply to a subunit.
3343 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
3345         * einfo.ads Update the usage of flag
3346         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
3347         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
3348         now starts with the letter 'C'. This makes reading expanded
3349         code easier.
3350         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
3351         Iter_Loop. Signal that an Ada 2012 iterator loop requires
3352         secondary stack management when creating a transient scope for
3353         an element reference.
3354         * exp_util.adb (Process_Statements_For_Controlled_Objects):
3355         When wrapping the statements of a loop, pass the E_Loop entity
3356         to the wrapping machinery.
3357         (Wrap_Statements_In_Block): Add
3358         formal parameter Scop along with comment on usage. Add local
3359         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
3360         block as requiring secondary stack management when the block is
3361         created inside an Ada 2012 iterator loop. This ensures that any
3362         reference objects are reclaimed on each iteration of the loop.
3363         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
3364         tasked with the handling of container iterators as requiring
3365         secondary stack management. This ensures that iterators are
3366         reclaimed when the loop terminates or is exited in any fashion.
3367         * sem_util.adb (Add_Block_Identifier): New routine.
3368         (Find_Enclosing_Iterator_Loop): New routine.
3369         * sem_util.ads (Add_Block_Identifier): New routine.
3370         (Find_Enclosing_Iterator_Loop): New routine.
3372 2014-02-25  Robert Dewar  <dewar@adacore.com>
3374         * sinfo.ads: Minor reformatting.
3376 2014-02-25  Tristan Gingold  <gingold@adacore.com>
3378         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
3380 2014-02-25  Pascal Obry  <obry@adacore.com>
3382         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
3384 2014-02-25  Tristan Gingold  <gingold@adacore.com>
3386         * sem_ch10.adb: Minor comment fix.
3388 2014-02-25  Bob Duff  <duff@adacore.com>
3390         * s-tasdeb.adb: Misc cleanup of this package,
3391         including printing addresses in hexadecimal.
3392         (Write): Fix minor bug when taking 'Address of an empty string.
3394 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3396         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
3397         public child unit when it does not refer to the abstract state
3398         of a public ancestor.
3400 2014-02-25  Yannick Moy  <moy@adacore.com>
3402         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
3403         Validity_Checks in GNATprove and CodePeer modes.
3405 2014-02-25  Pascal Obry  <obry@adacore.com>
3407         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
3408         Artifacts attribute.
3410 2014-02-25  Yannick Moy  <moy@adacore.com>
3412         * sem_prag.adb: Minor reformatting to get consistent messages.
3414 2014-02-25  Robert Dewar  <dewar@adacore.com>
3416         * checks.adb: Minor reformatting.
3417         * sinfo.ads (Do_Range_Check): Document that this flag is never
3418         passed to the back end.
3420 2014-02-25  Yannick Moy  <moy@adacore.com>
3422         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
3423         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
3425 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
3427         * sem_res.adb (Appears_In_Check): New routine.
3428         (Resolve_Entity_Name): Remove local variables Prev and
3429         Usage_OK. Par is now a constant. Remove the parent chain traversal
3430         as the placement of a volatile object with enabled property
3431         Async_Writers and/or Effective_Reads must appear immediately
3432         within a legal construct.
3434 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
3436         * checks.adb (Apply_Selected_Range_Checks):
3437         Alphabetize local constants and variables. Add comments.
3438         Always insert a range check that requires runtime evaluation into
3439         the tree.
3441 2014-02-25  Robert Dewar  <dewar@adacore.com>
3443         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
3445 2014-02-25  Bob Duff  <duff@adacore.com>
3447         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
3448         iterations while waiting for independent tasks to terminate;
3449         if an independent task does not terminate, we do not want to
3450         hang here. In that case, the thread will be terminated when the
3451         process exits.
3452         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
3454 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3456         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
3457         used to perform pre-analysis of the expression for SPARK
3458         aspects that have a non-standard syntax, such as GLobal and
3459         Initializes. The procedure applies to the original expression
3460         in an aspect specification, prior to the analysis of the
3461         corresponding pragma, in order to provide semantic information
3462         for ASIS navigation purposes.
3463         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
3464         Call new subprogram.
3466 2014-02-25  Yannick Moy  <moy@adacore.com>
3468         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
3470 2014-02-25  Doug Rupp  <rupp@adacore.com>
3472         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
3473         (__gnat_adjust_context_for_raise): Bump the PC by 2.
3475 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3477         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
3478         misplaced IS, add a statement sequence to improper body only if
3479         one has not been parsed already.
3481 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
3483         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
3484         mismatch when multidimensional array is updated with a single
3485         index.
3487 2014-02-25  Yannick Moy  <moy@adacore.com>
3489         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
3490         sem_ch6.adb: Mark most references to SPARK RM in error messages
3491         for removal.
3493 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3495         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
3496         appears in a list of basic declarations, complete the tree with
3497         an empty statement list, to prevent cascaded errors and crashes
3498         if semantic analysis is attempted.
3500 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3502         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
3503         value.
3504         * erroutc.adb: Minor reformatting.
3506 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3508         * sem_prag.adb (Check_Clause_Syntax): Account
3509         for a solitary input item in a dependency list.
3511 2014-02-24  Yannick Moy  <moy@adacore.com>
3513         * gnat1drv.adb (Adjust_Global_Switches): Do not
3514         use validity checks at all in GNATprove_Mode.
3516 2014-02-24  Robert Dewar  <dewar@adacore.com>
3518         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
3519         atree.adb, atree.ads: Minor reformatting.
3521 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3523         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
3524         global and dependence refinement when SPARK_Mode is off.
3525         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
3526         state refinement when SPARK_Mode is off.
3527         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
3528         variable Decl. Insert the generated pragma for Refined_State
3529         after a potential pragma SPARK_Mode.
3530         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
3531         constant Deps. Remove local variable Expr. Check the syntax
3532         of pragma Depends when SPARK_Mode is off. Factor out the
3533         processing for extra parenthesis around individual clauses.
3534         (Analyze_Global_In_Decl_List): Items is now a constant. Check
3535         the syntax of pragma Global when SPARK_Mode is off.
3536         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
3537         Initializes when SPARK_Mode is off.
3538         (Analyze_Part_Of): Check
3539         the syntax of the encapsulating state when SPARK_Mode is off.
3540         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
3541         SPARK_Mode is off. Move the declaration order check with respect
3542         to pragma Initializes to the end of the processing. Do not verify
3543         the declaration order for pragma Initial_Condition when SPARK_Mode
3544         is off. Do not complain about a useless package refinement when
3545         SPARK_Mode is off.
3546         (Analyze_Refined_Depends_In_Decl_Part): Refs
3547         is now a constant. Check the syntax of pragma Refined_Depends
3548         when SPARK_Mode is off.
3549         (Analyze_Refined_Global_In_Decl_Part):
3550         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
3551         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
3552         Refined_State when SPARK_Mode is off.
3553         (Check_Dependence_List_Syntax): New routine.
3554         (Check_Global_List_Syntax): New routine.
3555         (Check_Initialization_List_Syntax): New routine.
3556         (Check_Item_Syntax): New routine.
3557         (Check_State_Declaration_Syntax): New routine.
3558         (Check_Refinement_List_Syntax): New routine.
3559         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
3561 2014-02-24  Robert Dewar  <dewar@adacore.com>
3563         * a-tags.adb, s-os_lib.adb: Minor reformatting.
3565 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3567         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
3568         strerror message, not just numeric errno value.
3570 2014-02-24  Doug Rupp  <rupp@adacore.com>
3572         * raise-gcc.c (exception_class_eq): Make endian neutral.
3574 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3576         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
3577         flag, and reset Etype and Analyzed attributes unconditionally
3578         when copying a tree that may be partly analyzed.
3579         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
3580         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
3581         within a subprogram body and applies to it, remove it from the
3582         body before making a copy of it, to prevent spurious errors when
3583         analyzing the copied body.
3585 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3587         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
3588         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
3589         vxWorks.h has been included.  Also ensure that file attributes
3590         related definitions are output even in cases where socket support
3591         is not enabled.
3592         * a-tags.adb: Code clean up.
3593         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
3594         instead of -I to add the main ada source directory to the header
3595         search path, in order to avoid conflict between our own "types.h"
3596         and VxWork's <types.h>.
3598 2014-02-24  Robert Dewar  <dewar@adacore.com>
3600         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
3601         * debug.adb: Remove documentation of -gnatd.X, no longer used.
3602         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
3604 2014-02-24  Bob Duff  <duff@adacore.com>
3606         * gnat_ugn.texi: Improve documentation of gnatpp.
3608 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3610         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
3611         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
3612         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
3613         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
3614         a chars_ptr, because on Windows this is a renaming of
3615         Socket_Error_Message.
3617 2014-02-24  Robert Dewar  <dewar@adacore.com>
3619         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
3620         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
3621         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
3622         reorganization.
3624 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3626         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
3627         that the source directory containing s-oscons-tmplt.c is on the
3628         include path, so that all internal header files are available.
3630 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3632         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
3633         domain of iteration is an attribute reference 'Old, this is an
3634         Ada 2012 iterator and the loop must be rewritten as such.
3636 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3638         * s-fileio.adb (Errno_Message): Remove, use shared version from
3639         s-os_lib instead.
3640         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
3641         * g-stseme (Socket_Error_Message): Reimplement in terms of new
3642         s-os_lib function.
3643         * g-socthi.ads, g-socthi.adb: Change profile of
3644         Socket_Error_Message to return String to allow the above.
3645         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
3646         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3647         * g-socthi-vxworks.ads: Update to account for the above profile
3648         change.
3649         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
3650         * s-crtl.ads (strncpy): New procedure.
3651         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
3652         Use import from s-crtl.
3653         * a-envvar.adb, osint.adb: Use imports of C runtime functions
3654         from s-crtl instead of re-importing locally.
3656 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3658         * sem_prag.adb (Analyze_Global_Item): Emit the
3659         variable related checks concerning volatile objects only when
3660         SPARK_Mode is on.
3662 2014-02-24  Robert Dewar  <dewar@adacore.com>
3664         * sem_ch5.adb (Analyze_Iterator_Specification): use
3665         Error_Msg_Ada_2012_Feature.
3667 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
3669         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
3670         No_Local_Timing_Events and No_Specific_Termination_Handlers
3671         must be set, according to the Ravenscar profile definition
3672         in D.13(6/3).
3674 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3676         * sem_ch6.adb (Analyze_Expression_Function): If this is a
3677         completion, freeze return type and its designated type if needed.
3679 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3681         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3682         'Address): When moving initialization statements to a freeze
3683         entity, keep them under a single node (i.e. do not unwrap
3684         expressions with actions), and set the Initialization_Statements
3685         attribute again so that processing of a later pragma Import can
3686         still remove them.
3688 2014-02-24  Claire Dross  <dross@adacore.com>
3690         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
3691         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
3692         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
3693         Left/Right to First_To_Previous/Current_To_Last.
3695 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3697         * adaint.h (struct file_attributes): New component "error"
3698         (__gnat_error_attributes): Accessor for the above.
3699         * adaint.c (__gnat_error_attributes): New subprogram
3700         (__gnat_stat): Fix returned value (expect errno value)
3701         (__gnat_stat_to_attr): Add management of error component (set to
3702         stat errno value, except for missing files where it is set to 0,
3703         and exists is set to 0).
3704         * osint.ads (File_Attributes_Size): Update per change above,
3705         also clarify documentation.
3706         * s-filatt.ads: New file, binding to file attributes related
3707         functions.
3708         * Makefile.rtl (s-filatt): New runtime unit.
3709         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
3710         to library function if not available on target).
3711         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
3712         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
3713         SIZEOF_struct_dirent_alloc): New constants.
3714         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
3715         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
3716         Perform appropriate error checking if stat fails (do not just
3717         ignore existing files if stat fails)
3718         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
3719         dependencies.
3721 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3723         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
3724         the use of volatile objects as global items in a function to
3725         the variable related checks section.
3726         * sem_util.adb (Async_Readers_Enabled): Directly call
3727         Has_Enabled_Property.
3728         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
3729         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
3730         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
3731         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
3732         Update the comment on usage. State_Has_Enabled_Property how handles
3733         the original logic of the routine. Add processing for variables.
3734         (State_Has_Enabled_Property): New routine.
3735         (Variable_Has_Enabled_Property): New routine.
3737 2014-02-24  Robert Dewar  <dewar@adacore.com>
3739         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
3740         Minor reformatting.
3741         * atree.ads, atree.adb (Node35): New function.
3742         (Set_Node35): New procedure.
3743         * debug.adb: Define new debug flag -gnatd.X.
3744         * einfo.ads, einfo.adb (Import_Pragma): New field.
3745         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
3746         really active yet, has to be activated with -gnatd.X.
3747         * sem_prag.adb (Set_Imported): Set new Import_Pragma
3748         field (Set_Imported): Don't set Is_Public (see
3749         Freeze.Wrap_Imported_Subprogram)
3750         * par-ch3.adb (P_Component_List): Handle unexpected null component.
3752 2014-02-24  Yannick Moy  <moy@adacore.com>
3754         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
3755         * gnat_rm.texi: Correct documentation of attribute Update.
3757 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3759         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
3760         iterator in older versions of Ada.
3762 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
3764         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
3765         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
3767 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3769         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
3770         indexed_components that are instances of Ada 2012 container
3771         indexing operations. Analysis and resolution of such nodes
3772         is performed on the attribute, and the original source is
3773         preserved for ASIS operations. If expansion is enabled, the
3774         indexed component is replaced by the value of this attribute,
3775         which is in a call to an Indexing aspect, in most case wrapped
3776         in a dereference operation.
3777         * sem_ch4.adb (Analyze_Indexed_Component): Create
3778         Generalized_Indexing attribute when appropriate.
3779         (Analyze_Call): If prefix is not overloadable and has an indexing
3780         aspect, transform into an indexed component so it can be analyzed
3781         as a potential container indexing.
3782         (Analyze_Expression): If node is an indexed component with a
3783         Generalized_ Indexing, do not re-analyze.
3784         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
3785         of an indexed_component that has been transformed into a container
3786         indexing operation.
3787         (Resolve_Indexed_Component): Call the above when required.
3788         (Resolve): Do not insert an explicit dereference operation on
3789         an indexed_component whose type has an implicit dereference:
3790         the operation is inserted when resolving the related
3791         Generalized_Indexing.
3793 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
3795         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
3796         Environment.
3798 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3800         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
3801         error messages.
3802         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
3803         Merge the expected and available mode errors.
3804         (Report_Unused_Constituents): Remove leading spaces in error messages.
3805         (Report_Unused_States): Remove leading spaces in error messages.
3807 2014-02-24  Thomas Quinot  <quinot@adacore.com>
3809         * par_sco.adb (Traverse_One): Refine categorization of statement
3810         SCOs.
3812 2014-02-24  Robert Dewar  <dewar@adacore.com>
3814         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
3815         Pure_05, Pure_12 and Preelaborate_05.
3816         * gnat_rm.texi: Update accordingly.
3817         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
3818         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
3819         Recognize one argument form of these pragmas only in GNAT mode
3820         (-gnatg).
3822 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3824         * s-dimmks.ads: Replace symbol for temperature, previously the
3825         Greek letter Theta, by the ASCII @ sign.
3826         * s-diflio.ads: ditto.
3828 2014-02-24  Robert Dewar  <dewar@adacore.com>
3830         * exp_ch4.adb: Minor code reorganization (use OR for boolean
3831         variables).
3832         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
3834 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
3836         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
3837         so that references to gnatmem and ASIS tools do not appear in the FSF
3838         edition of the GNAT User's Guide.
3840 2014-02-24  Yannick Moy  <moy@adacore.com>
3842         * freeze.adb (Freeze_Entity): Do not issue warning
3843         for pre/post being ignored on imported subprogram in GNATprove
3844         mode.
3846 2014-02-24  Robert Dewar  <dewar@adacore.com>
3848         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
3849         stand.ads, sem_eval.adb: Minor reformatting.
3851 2014-02-24  Yannick Moy  <moy@adacore.com>
3853         * sem_prag.adb: Minor rewording in error message.
3855 2014-02-24  Johannes Kanig  <kanig@adacore.com>
3857         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
3858         GNATprove_mode, gnat2why doesn't need nor use these types.
3860 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
3862         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
3863         target, in the case of signed integer exponentiation that uses a
3864         run-time routine, always select the Exp_* versions, since overflow
3865         checking is automatically done by AAMP arithmetic instructions.
3867 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3869         * sem_ch13.adb (Analyze_Aspect_Specifications):
3870         When the related context is a package instace, insert pragma
3871         Abstract_State after all internally-generated renamings related
3872         to the instance "header".
3874 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
3876         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
3877         subprograms.
3878         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
3879         call to an abstract subprogram is legal if it appears in a
3880         pre/postcondition of another abstract operation.
3882 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
3884         * gnat_ugn.texi: Misc updates.
3886 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
3888         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
3890 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
3892         * layout.adb (Layout_Variant_Record): Instantiate
3893         Generic_Check_Choices and call Check_Choices before calling
3894         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
3895         set to prevent generating incorrect discriminant-checking
3896         functions for 'others' variants (functions that unconditionally
3897         return True rather than accounting for the values covered by the
3898         'others' choice).
3899         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
3900         Formal_Derived_Matching.
3901         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
3902         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
3903         Formal_Derived_Matching formal to Subtypes_Statically_Match.
3904         (Subtypes_Statically_Match): Suppress the Object_Size matching
3905         test in the case where Formal_Derived_Matching is True.
3906         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
3907         True for Formal_Derived_Matching_Formal on the call to
3908         Subtypes_Statically_Compatible.
3910 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
3912         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
3914 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
3916         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
3917         Look through a conversion between original and packable version to get
3918         the base object.
3919         (build_component_ref): Rework comment and fix formatting.
3921 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
3923         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
3924         project-specific options.
3926 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
3928         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
3929         not Constraint_Error.
3930         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
3931         * sem_ch5.adb: Code clean up.
3933 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
3935         * sem_prag.adb (Usage_Error): Remove local
3936         constant Typ. Remove the specialized diagnostics for unconstrained
3937         or tagged items as those are not part of the explicit input set
3938         of the related subprogram and should not be flagged.
3940 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
3942         * sem_attr.adb: Add guard to preserve all errors.
3944 2014-02-20  Vincent Celier  <celier@adacore.com>
3946         * switch-m.adb (Normalize_Compiler_Switches): Take into account
3947         switches that are recorded in ALI files: -gnateA, -gnateE,
3948         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
3950 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
3952         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
3953         of an element iterator form over a formal container with an
3954         Iterable aspect.
3955         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
3956         to create declaration and loop statements for both forms of
3957         container iterators.
3958         (Expand_Formal_Container_Element_Iterator): New procedure
3959         to handle loops of the form  "for E of C" when C is a formal
3960         container.
3961         (Expand_Formal_Container_Iterator): Code cleanup.
3963 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
3965         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
3966         (Analyze_Contract_Case): Remove the use of
3967         "may". Replace "aspect Contract_Cases" to avoid categorization
3968         of aspect vs pragma.
3969         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
3970         (Analyze_Global_Item): Remove
3971         the use of "formal", specify the subprogram.  Split the
3972         error message about a state with visible refinement into
3973         two. Remove the use of "global" from "volatile global item".
3974         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
3975         is on one line.
3976         (Analyze_Input_Output): Update the call to
3977         Check_Mode. Specify the duplicated item. Reword the error
3978         message concerning an input of a null output list. Use "\"
3979         for error message continuation.
3980         (Analyze_Part_Of): Remove
3981         the use of "may". Use "\" for error message continuation.
3982         (Analyze_Refined_Depends_In_Decl_Part): Update the error
3983         message concerning a useless refinement to match the format
3984         of Refined_Global.
3985         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
3986         concerning a useless refinement.
3987         (Analyze_Refinement_Clause): Use "\" for error message continuation.
3988         (Check_Constituent_Usage): Use "\" for error message continuation.
3989         (Check_Dependency_Clause): Use "\" for error message continuation.
3990         (Check_Matching_Constituent): Use "\" for error message continuation.
3991         (Check_Missing_Part_Of): Use "\" for error message continuation.
3992         (Check_Mode): Renamed to
3993         Check_Role. Update the comment on usage. Redo the error reporting
3994         to use Role_Error.
3995         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
3996         message continuation.
3997         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
3998         with comment on usage. Update all occurrences of Is_Input and Is_Output.
3999         (Inconsistent_Mode_Error): Use "\" for error message continuation.
4000         (Input_Match): Use "\" for error message continuation.
4001         (Role_Error): New routine.
4002         (Set_Convention_From_Pragma): Use "\" for error message continuation.
4003         (Usage_Error): Add local variable Error_Msg. Build specialized error
4004         message showcasing the offending item kind. Redo the diagnostics for
4005         unconstrained types.
4007 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4009         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
4010         to determine whether a type is a container type, rather than
4011         examining only its type declaration, so that subtypes and derived
4012         types are handled properly.
4014 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
4016         * gnat_ugn.texi: gnatmetric: add description of project-specific
4017         options.
4019 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4021         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
4022         all choices in an association for a record type have the same
4023         type, as is done for record aggregates.
4025 2014-02-20  Robert Dewar  <dewar@adacore.com>
4027         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
4028         Unmodified rather than Warnings (Off). Make comments
4029         uniform in the four affected units.
4031 2014-02-20  Robert Dewar  <dewar@adacore.com>
4033         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4034         Object_Size): For non-scalar types allow any value that is a
4035         multiple of 8.
4036         * gnat_rm.texi: Document Object_Size for composites more clearly.
4038 2014-02-20  Yannick Moy  <moy@adacore.com>
4040         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
4042 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4044         * stand.ads: Raise_Type: new predefined entity, used as the type
4045         of a Raise_Expression prior to resolution.
4046         * cstand.adb: Build entity for Raise_Type.
4047         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
4048         initial type of the node.
4049         * sem_type.adb (Covers): Raise_Type is compatible with all
4050         other types.
4051         * sem_res.adb (Resolve): Remove special handling of Any_Type on
4052         Raise_Expression nodes.
4053         (Resolve_Raise_Expression): Signal ambiguity if the type of the
4054         context is still Raise_Type.
4056 2014-02-20  Robert Dewar  <dewar@adacore.com>
4058         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
4059         mismatching predicates.
4060         * sem_ch6.adb (Check_Conformance): Give better messages on
4061         predicate mismatch.
4062         * sem_eval.adb (Predicates_Match): Move to spec.
4063         * sem_eval.ads (Predicates_Match): Moved here from body.
4065 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4067         * a-cbmutr.adb: Use default value in Insert_Child.
4069 2014-02-20  Vincent Celier  <celier@adacore.com>
4071         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
4072         Stringt.Initialize in all project aware tools.
4074 2014-02-20  Doug Rupp  <rupp@adacore.com>
4076         * gnat_ugn.texi: Document gnatbind -X option.
4077         * vms_data.ads: Minor warnings documentation reformatting.
4079 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4081         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
4082         procedure for a base type.
4084 2014-02-20  Robert Dewar  <dewar@adacore.com>
4086         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
4087         expression with type info.
4088         * sem_ch13.adb: Minor reformatting.
4089         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
4090         False if predicates do not match on the two types.
4092 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
4094         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
4095         In Relaxed_RM_Semantics mode, allow any static integer value,
4096         for compatibility with other compilers.
4098 2014-02-20  Vincent Celier  <celier@adacore.com>
4100         * errutil.adb (Initialize): Properly initialize entry in table
4101         Warnings when warnings are suppressed.
4103 2014-02-20  Robert Dewar  <dewar@adacore.com>
4105         * s-os_lib.ads: Add warning about non-portability of Rename_File.
4106         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
4107         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
4108         * gnat_ugn.texi: Document no warnings on junk variable names.
4109         * layout.adb: Minor code reorganization (use Ekind_In).
4110         * stringt.adb: Move initialization of Null_String_Id to Initialize
4111         routine.
4113 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4115         * sem_ch13.adb: Initialize optional Element_Id.
4117 2014-02-20  Robert Dewar  <dewar@adacore.com>
4119         * s-os_lib.ads (Rename_File): Minor commment addition.
4121 2014-02-20  Thomas Quinot  <quinot@adacore.com>
4123         * einfo.ads: Minor reformatting.
4125 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
4127         * aspects.adb (Exchange_Aspects): New routine.
4128         * aspects.ads (Exchange_Aspects): New routine.
4129         * atree.adb (Rewrite): Do not check whether the save node has
4130         aspects as it never will, instead check the node about to be clobbered.
4131         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
4132         entities of generic packages.
4133         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
4134         pointer of an aspect specification list after rewriting takes place.
4135         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
4136         specifications of the generic template and the copy used for analysis.
4137         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
4138         the aspect specifications of the generic template and the
4139         copy used for analysis.
4140         (Analyze_Package_Instantiation): Propagate the aspect specifications
4141         from the generic template to the instantiation.
4142         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
4143         specifications from the generic template to the instantiation.
4144         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
4145         Abstract_State, Initializes and Initial_Condition when they
4146         apply to a package instantiation.
4148 2014-02-20  Robert Dewar  <dewar@adacore.com>
4150         * stringt.adb: Add call to Initialize in package initialization.
4152 2014-02-20  Robert Dewar  <dewar@adacore.com>
4154         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
4155         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
4156         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
4157         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
4158         reformatting.
4160 2014-02-20  Bob Duff  <duff@adacore.com>
4162         * s-os_lib.ads: Minor: Remove incorrect comment.
4164 2014-02-20  Robert Dewar  <dewar@adacore.com>
4166         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
4168 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4170         * a-cborma.adb (Assign): When creating a node without a specified
4171         element, insert an uninitialized element in the map, because
4172         the instance may provide an element type with a default
4173         initialization, e.g a scalar with a Default_Value aspect.
4174         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
4175         (Insert): In the version without explicit element, provide an
4176         uninitialized element, as above.
4177         * a-cbdlli.adb (Append): In the version without explicit element,
4178         provide an uninitalized element, as above.
4179         (Allocate): Remove unused version.
4181 2014-02-20  Robert Dewar  <dewar@adacore.com>
4183         * sem_elab.adb: Minor code reorganization (use Nkind_In).
4184         * stringt.adb: Remove temporary pragma Warnings (Off).
4185         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
4186         of Null_String_Id.
4188 2014-02-20  Matthew Heaney  <heaney@adacore.com>
4190         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
4191         index.
4193 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
4195         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
4196         properly the cursor type for subsequent volatile testing in SPARK
4197         mode, when domain is a formal container with an Iterabe aspect.
4199 2014-02-20  Robert Dewar  <dewar@adacore.com>
4201         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
4202         (Set_Specific_Warning_Off): Add Reason argument.
4203         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
4204         (Set_Specific_Warning_Off): Add Reason argument.
4205         * erroutc.adb (Warnings_Entry): Add Reason field
4206         (Specific_Warning_Entry): Add Reason field.
4207         (Warnings_Suppressed): return String_Id for Reason.
4208         (Warning_Specifically_Suppressed): return String_Id for Reason.
4209         * erroutc.ads (Warnings_Entry): Add Reason field.
4210         (Specific_Warning_Entry): Add Reason field.
4211         (Set_Specific_Warning_Off): Add Reason argument.
4212         (Set_Warnings_Mode_Off): Add Reason argument.
4213         (Warnings_Suppressed): return String_Id for Reason.
4214         (Warning_Specifically_Suppressed): return String_Id for Reason.
4215         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
4216         (Warning_Specifically_Suppressed): returns String_Id for Reason
4217         * gnat_rm.texi: Document that Warning parameter is string literal
4218         or a concatenation of string literals.
4219         * par-prag.adb: New handling for Reason argument.
4220         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
4221         for Reason argument.
4222         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
4223         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
4224         * stringt.adb: Set Null_String_Id.
4225         * stringt.ads (Null_String_Id): New constant.
4227 2014-02-20  Robert Dewar  <dewar@adacore.com>
4229         * einfo.ads: Minor comment addition: Etype of package is
4230         Standard_Void_Type.
4231         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
4232         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
4233         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
4234         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
4235         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
4236         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
4237         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
4238         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
4239         Replace all calls with calls to New_Occurrence_Of.
4241 2014-02-20  Robert Dewar  <dewar@adacore.com>
4243         * par-util.adb (Ignore, case of right paren): Make this a
4244         serious error.
4246 2014-02-19  Robert Dewar  <dewar@adacore.com>
4248         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
4249         * debug.adb: Remove -gnatd.X switch, no longer used.
4250         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
4251         now always made.
4253 2014-02-19  Bob Duff  <duff@adacore.com>
4255         * g-socket.ads: Minor: Correct some comments.
4257 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4259         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
4261 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
4263         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
4264         an error on out of range priorities if Relaxed_RM_Semantics.
4265         * sem_prag.adb (Analyze_Pragma): Ditto.
4267 2014-02-19  Bob Duff  <duff@adacore.com>
4269         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
4270         where F denotes the renaming of an enumeration literal, and
4271         issue a specialized error message.
4273 2014-02-19  Matthew Heaney  <heaney@adacore.com>
4275         * a-chtgop.ads (Checked_Index): New operation.
4276         (Next): Changed mode of hash table.
4277         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
4278         (Generic_Read, Reserve_Capacity): Ditto.
4279         (Generic_Equal): Detect tampering.
4280         (Next): Changed mode of hash table, detect tampering.
4281         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
4282         operation.
4283         (Find): Changed mode of hash table.
4284         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
4285         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
4286         tampering.
4287         (Find): Changed mode of hash table, check for tampering.
4288         (Generic_Replace_Element): Check for tampering.
4289         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
4290         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
4291         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
4292         Detect tampering.
4293         (Find, Generic_Replace_Element): Check for tampering.
4294         * a-chtgbo.ads (Checked_Index): New operation.
4295         * a-chtgbo.adb (Checked_Index): New operation
4296         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
4297         (Generic_Read, Next): Ditto.
4298         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
4299         table (Difference, Intersection): Use variable view of
4300         source, detect tampering (Find, Is_Subset, Overlap): Use
4301         variable view of container (Symmetric_Difference, Union):
4302         Detect tampering (Vet): Use Checked_Index to detect tampering
4303         (Constant_Reference, Element, Find): Use variable view of
4304         container.
4305         (Update_Element_Preserving_Key): Detect tampering.
4306         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
4307         of container.
4308         (Is_Subset): Ditto.
4309         (Equivalent_Sets, Overlap): Use Node's Next component.
4310         (Vet): Use Checked_Index to detect tampering.
4311         (Constant_Reference, Element, Find): Use variable view of container.
4312         (Update_Element_Preserving_Key): Detect tampering.
4313         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
4314         Element, Find): Use variable view of container.
4315         (Reference): Rename hash table component.
4316         (Vet): Use Checked_Index to detect tampering.
4318 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
4320         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
4321         of -nostdinc.
4323 2014-02-19  Thomas Quinot  <quinot@adacore.com>
4325         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
4326         against calls without Def_Id.
4328 2014-02-19  Claire Dross  <dross@adacore.com>
4330         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
4331         a-cofove.ads: Add global annotations to subprograms.
4333 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4335         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
4336         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
4337         Initial_Condition no longer requires the presence of pragma
4338         Initialized. Do not try to diagnose whether all variables mentioned in
4339         pragma Initializes also appear in Initial_Condition.
4340         (Collect_Variables): Removed.
4341         (Match_Variable): Removed.
4342         (Match_Variables): Removed.
4343         (Report_Unused_Variables): Removed.
4345 2014-02-19  Thomas Quinot  <quinot@adacore.com>
4347         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
4349 2014-02-19  Robert Dewar  <dewar@adacore.com>
4351         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
4352         reformatting.
4354 2014-02-19  Vincent Celier  <celier@adacore.com>
4356         * prj-part.adb (Parse_Single_Project): Use the fully resolved
4357         project path, with all symbolic links resolved, to check if the
4358         same project is imported with a different unresolved path.
4359         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
4360         changed to Resolved_Path to reflect that all symbolic links
4361         are resolved.
4363 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4365         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
4366         from sem_ch13, for use elsewhere.
4367         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
4368         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
4369         cursor type on the loop variable when the iteration is over o
4370         formal container.
4372 2014-02-19  Vincent Celier  <celier@adacore.com>
4374         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
4375         for an empty Target (Check_Target): Never fail when an empty
4376         target is declared in the configuration project.
4378 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4380         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
4381         the pragma comes fron a predicate aspect and the context is a
4382         record declaration within the scope that declares the type.
4384 2014-02-19  Robert Dewar  <dewar@adacore.com>
4386         * gnat_rm.texi: Minor clarifications.
4387         * expander.adb, sem_aggr.adb: Add comments.
4389 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4391         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
4392         applies to a subprogram body, the name is the current scope,
4393         rather than being declared in the current scope.
4394         (Analyze_Pragma, case No_Return): Handle properly a No_Return
4395         aspect applied to a subprogram body.
4397 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4399         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
4400         of overloaded subprograms, and fix bug in handling of primitive
4401         operation Element.
4403 2014-02-19  Pascal Obry  <obry@adacore.com>
4405         * s-os_lib.adb: Minor reformatting.
4407 2014-02-19  Yannick Moy  <moy@adacore.com>
4409         * expander.adb (Expand): Do nothing inside generics.
4410         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
4411         generics.
4413 2014-02-19  Yannick Moy  <moy@adacore.com>
4415         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
4417 2014-02-19  Robert Dewar  <dewar@adacore.com>
4419         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
4420         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
4421         longer needed).
4423 2014-02-19  Claire Dross  <dross@adacore.com>
4425         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
4426         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
4428 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4430         * sem_ch3.adb (Analyze_Declarations): Analyze
4431         a package contract at the end of the private declarations (if
4432         applicable), otherwise analyze it and the end of the visible
4433         declarations.
4435 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4437         * style.adb (Missing_Overriding): If subprogram is an
4438         instantiation, place warning on the instance node itself,
4439         without mention of the original generic. Do not emit message
4440         if explicit Ada version is older than the introduction of the
4441         overriding indicator.
4443 2014-02-19  Yannick Moy  <moy@adacore.com>
4445         * gnat_rm.texi: Doc clarifications.
4447 2014-02-19  Yannick Moy  <moy@adacore.com>
4449         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
4450         inside a generic.
4452 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4454         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
4455         specified First primitive, rather than by name.
4456         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
4457         and extend error checking for missing primitives and incorrect
4458         signatures.
4460 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4462         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
4463         errors when a Synchronization aspect on an overriding protected
4464         operation does not match the given aspect on the overridden
4465         operation of an ancestor interface.
4467 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4469         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
4470         (Check_Loop_Pragma_Placement): Update
4471         comment on usage. Remove local variables Orig_Stmt and
4472         Within_Same_Sequence. Check that the current Loop_Invariant or
4473         Loop_Variant pragma is grouped together with other such pragmas.
4474         (Is_Loop_Pragma): New routine.
4475         (Prev_In_Loop): Removed.
4477 2014-02-19  Robert Dewar  <dewar@adacore.com>
4479         * par-ch6.adb (P_Return): For extended return, end column lines
4480         up with RETURN.
4481         * par.adb: Minor documentation clarification.
4483 2014-02-19  Yannick Moy  <moy@adacore.com>
4485         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
4486         that Loop_Invariant and Loop_Variant appear consecutively.
4487         * gnat_rm.texi Update documentation of Loop_Invariant and
4488         Loop_Variant pragmas.
4490 2014-02-19  Robert Dewar  <dewar@adacore.com>
4492         * debug.adb: Document -gnatd.X.
4493         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
4494         first token
4495         (Check_Then_Column): Ditto.
4496         * styleg.adb (Check_Then): Allow THEN on line after IF.
4497         (Check_Then): Check THEN placement under control of -gnatd.X
4498         * styleg.ads (Check_Then): Now called even if THEN is not first
4499         token on line.
4500         * stylesw.ads (Style_Check_If_Then_Layout): Document new
4501         relaxed rules.
4502         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
4504 2014-02-19  Robert Dewar  <dewar@adacore.com>
4506         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
4507         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
4508         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
4509         vms_conv.adb: Fix bad layout of IF statements
4511 2014-02-19  Robert Dewar  <dewar@adacore.com>
4513         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
4515 2014-02-19  Robert Dewar  <dewar@adacore.com>
4517         * exp_util.adb: Update comments.
4519 2014-02-19  Doug Rupp  <rupp@adacore.com>
4521         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
4522         * init.c (__gl_float_format): [VMS] New global.
4523         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
4524         representation in effect.
4526 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4528         * exp_ch6.adb Add with and use clause for Exp_Prag.
4529         (Expand_Contract_Cases): Relocated to Exp_Prag.
4530         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
4531         * exp_prag.adb Add with and use clauses for Checks and Validsw.
4532         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
4533         structure of the expanded code to showcase the evaluation of
4534         attribute 'Old prefixes. Add local variable Old_Evals. Expand
4535         any attribute 'Old references found within a consequence. Add
4536         circuitry to evaluate the prefixes of attribute 'Old that
4537         belong to a selected consequence.
4538         (Expand_Old_In_Consequence): New routine.
4539         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
4540         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
4541         potentially unevaluated prefix is always evaluated.
4543 2014-02-19  Robert Dewar  <dewar@adacore.com>
4545         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
4546         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
4547         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
4548         handling for the case of Modify_Tree_For_C, this approach did
4549         not work.
4550         * exp_util.adb (Matching_Standard_Type): New function
4551         (Side_Effect_Free): New top level functions (from
4552         Remove_Side_Effects).
4553         * exp_util.ads (Side_Effect_Free): New top level functions
4554         (moved from body).
4555         * sinfo.ads: Minor comment updates.
4557 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4559         * exp_ch6.adb (Expand_Simple_Function_Return): If return
4560         type is unconstrained and uses the secondary stack, mark the
4561         enclosing function accordingly, to ensure that the value is not
4562         prematurely removed.
4564 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4566         * par.adb Alphabetize the routines in Par.Sync.
4567         (Resync_Past_Malformed_Aspect): New routine.
4568         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
4569         variables. Code and comment reformatting. Detect missing
4570         parentheses on aspects [Refined_]Global and [Refined_]Depends
4571         with a non-null definition.
4572         * par-sync.adb: Alphabetize all routines in this separate unit.
4573         (Resync_Past_Malformed_Aspect): New routine.
4575 2014-02-19  Robert Dewar  <dewar@adacore.com>
4577         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
4578         if Esize values do not match.
4580 2014-02-19  Yannick Moy  <moy@adacore.com>
4582         * sinfo.ads: Minor comment update.
4584 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4586         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
4588 2014-02-19  Thomas Quinot  <quinot@adacore.com>
4590         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
4591         that has the No_Ctrl_Actions flag is a suitable node to be
4592         wrapped if the assigned expression has no finalization actions.
4593         * sem_eval.adb (Eval_Entity_Name): For a compile time known
4594         boolean value, mark the corresponding condition SCO as constant.
4596 2014-02-19  Robert Dewar  <dewar@adacore.com>
4598         * exp_util.adb: Minor reformatting.
4599         * exp_util.ads (Matching_Standard_Type): New function.
4600         * exp_ch7.adb: Minor reformatting.
4602 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4604         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
4605         to find declaration for Cursor, to handle properly the case of
4606         a discriminated iterable type.
4608 2014-02-19  Vincent Celier  <celier@adacore.com>
4610         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
4611         imported library projects with the library ALI dirs, when setting
4612         the object paths.
4613         * prj-env.ads (Ada_Objects_Path): Correct comments about
4614         argument Including_Libraries.
4616 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
4618         * gnat_rm.texi: Minor spelling fixes.
4620 2014-02-19  Doug Rupp  <rupp@adacore.com>
4622         * init.c: Remove unneeded code.
4623         * fe.h (Float_Format): New macro
4624         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
4626 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4628         * sem_prag.adb (Check_Refined_Global_Item):
4629         A state or variable acts as a constituent only it is part of an
4630         encapsulating state and the state has visible refinement.
4632 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4634         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
4635         postcondition for a function when the expression does not mention
4636         'Result but the function has in-out parameters.
4638 2014-02-19  Robert Dewar  <dewar@adacore.com>
4640         * gnat_rm.texi: Add documentation on Value_Size forcing biased
4641         representation.
4643 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4645         * lib-xref.ads Remove the small table of letter and symbol usage as we
4646         already have one.
4648 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4650         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
4651         messages depending on the offending misplaced aspect specifications.
4652         (Diagnose_Misplaced_Aspect_Specifications): New routine.
4654 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4656         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
4657         for iterable aspect primitives.
4658         (Resolve_Iterable_Operation): Use expected signature of iterable
4659         aspect to resolve primitive when overloading is present.
4660         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
4661         (Check_Signature): Removed.
4663 2014-02-19  Yannick Moy  <moy@adacore.com>
4665         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
4666         subunit in GNATprove_Mode.
4667         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
4669 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4671         * lib-xref.ads Alphabetize the contents of table
4672         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
4673         for E_Abstract_State. List all letters and symbols in use.
4674         * sem_prag.adb (Analyze_Abstract_State): Update all calls
4675         to Create_Abstract_State to reflect the new signature.
4676         (Create_Abstract_State): Change subprogram profile and update
4677         the comment on usage. Use the proper location of the state
4678         declaration when creating a new abstract state entity. Do not
4679         generate an external name, but simply reuse the name coming from
4680         the state declaration.
4682 2014-02-19  Robert Dewar  <dewar@adacore.com>
4684         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
4685         declarations get properly inserted in Modify_Tree_For_C mode.
4686         * sinfo.ads: Minor comment addition.
4688 2014-02-19  Robert Dewar  <dewar@adacore.com>
4690         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
4691         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
4693 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4695         * style.adb (Missing_Overriding): Warning does not apply in
4696         language versions prior to Ada 2005.
4697         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
4698         * sem_attr.adb: Add Attribute_Iterable where needed.
4699         * exp_attr.adb: ditto.
4700         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
4701         handle loops and quantified expressions over types that have an
4702         iterable aspect.  Called from Expand_Iterator_Loop.
4703         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
4704         with Iterable aspect.
4705         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
4706         subprograms specified in the Iterable aspect have the proper
4707         signature involving container and cursor.
4708         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
4709         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
4710         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
4711         New procedure to retrieve one of the primitives First, Last,
4712         or Has_Element, from the value of the iterable aspect of a
4713         formal container.
4714         (Is_Container_Element): Predicate to recognize expressions
4715         that denote an element of one of the predefined containers,
4716         for possible optimization.  This subprogram is not currently
4717         used, pending ARG discussions on the legality of the proposed
4718         optimization. Worth preserving for eventual use.
4719         (Is_Iterator): Recognize formal container types.
4720         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
4722 2014-02-19  Robert Dewar  <dewar@adacore.com>
4724         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
4725         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
4726         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
4727         declarations from list of actions.
4728         * output.ads, output.adb (Delete_Last_Char): New procedure.
4729         * sinfo.ads: Document handling of Mod and expression with actions
4730         in Modify_Tree_For_C mode.
4732 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
4734         * par-ch9.adb (P_Task): Add a null statement to produce a
4735         well-formed task body when due to a previous syntax error the
4736         statement list is empty.
4738 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
4740         * sem_prag.adb (Check_Dependency_Clause): Account
4741         for the case where a state with a non-null refinement matches a
4742         null output list. Comment reformatting.
4743         (Inputs_Match): Copy a solitary input to avoid an assertion failure
4744         when trying to match the same input in multiple clauses.
4746 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
4748         * sem_attr.adb: Minor typo fix.
4750 2014-02-18  Robert Dewar  <dewar@adacore.com>
4752         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
4753         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
4754         (Create_Standard): Create new unsigned types.
4755         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
4756         mode (Expand_N_Reference): Removed, problematic and not needed
4757         for now.
4758         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
4759         not needed for now.
4760         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
4761         * expander.adb: Remove call to Expand_N_Reference (problematic,
4762         and not needed now).
4763         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
4764         * stand.adb: Read and write unsigned type entities.
4765         * stand.ads: Add new unsigned types.
4767 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
4769         * sem_ch4.adb (Analyze_Call): Do not mark a function call
4770         as being inside an assertion expression as the flag is now removed.
4771         (Check_Ghost_Subprogram_Call): Do not query the
4772         In_Assertion_Expression flag as it is now removed, instead use
4773         a predicate function.
4774         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
4775         In_Assertion_Expression flag as it is now removed, instead use
4776         a predicate function.
4777         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
4778         * sem_util.adb Add with and use clause for Sem_Prag.
4779         (In_Assertion_Expression_Pragma): New routine.
4780         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
4781         * sinfo.adb (In_Assertion_Expression): Removed.
4782         (Set_In_Assertion_Expression): Removed.
4783         * sinfo.ads Remove flag In_Assertion_Expression along with its
4784         use in nodes.
4785         (In_Assertion_Expression): Removed along with
4786         pragma Inline.  (Set_In_Assertion_Expression): Removed along
4787         with pragma Inline.
4789 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
4791         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
4792         used together with '-r', '-rf' or '-rnb' options.
4794 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
4796         * sem_attr.adb (Analyze_Attribute): Comment
4797         and code reformatting. Use separate routines to check the
4798         legality of attribute 'Old in certain pragmas. Verify
4799         the use of 'Old, 'Result and locally declared entities
4800         within the prefix of 'Old.
4801         (Check_References_In_Prefix): New routine.
4802         (Check_Use_In_Contract_Cases): New routine.
4803         (Check_Use_In_Test_Case): New routine.
4805 2014-02-18  Vincent Celier  <celier@adacore.com>
4807         * sem_aux.adb (Is_By_Reference_Type): For each components of
4808         a record type, check also if the component is volatile as it
4809         may have an aspect that makes it volatile. If it is, then the
4810         record type is a by reference type.
4812 2014-02-18  Robert Dewar  <dewar@adacore.com>
4814         * exp_attr.adb: Minor reformatting.
4815         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
4816         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
4817         as another case where we don't generate N_Reference nodes for
4818         primitive types.
4819         * expander.adb (Expand): Add call to Expand_N_Reference.
4821 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4823         * sem_prag.adb (Analyze_Refined_Pragma): Remove
4824         local variable Pack_Spec. Refinement pragmas may now apply to
4825         bodies of both visible and private subprograms.
4827 2014-02-06  Robert Dewar  <dewar@adacore.com>
4829         * exp_attr.adb (Expand_Loop_Entry_Attribute):
4830         Minor change (Attr => N) (Expand_Pred_Succ): New name
4831         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
4832         Max): Expand into if expression if Modify_Tree_For_C mode.
4833         (Expand_N_Attribute_Reference, case Min): ditto
4834         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
4835         Max attributes.
4837 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
4839         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
4840         predicate check if this is an internal declaration with
4841         No_Initialization set, as for an expanded aggregate component.
4843 2014-02-06  Doug Rupp  <rupp@adacore.com>
4845         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
4846         conditions with severity of "SUCCESS" or "INFORMATIONAL".
4848 2014-02-06  Yannick Moy  <moy@adacore.com>
4850         * sem_prag.adb (Analyze_Pragma): Analyze pragma
4851         Debug rewritten node before rewriting it as a null statement in
4852         GNATprove mode.
4854 2014-02-06  Robert Dewar  <dewar@adacore.com>
4856         * sem_attr.adb (Min_Max): New procedure.
4857         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
4858         procedure.
4860 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
4862         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
4863         gnatmetric/gnatpp.
4865 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4867         * sem_prag.adb (Analyze_Abstract_State): Update
4868         all calls to Create_Abstract_State to pass the proper state
4869         "declaration".
4870         (Create_Abstract_State): Add new formal parameter
4871         State_Decl along with comment on usage. Establish a link between
4872         the abstract state entity and the state declaration.
4874 2014-02-06  Robert Dewar  <dewar@adacore.com>
4876         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
4877         comparison of unordered enumeration type.
4878         (Analyze_Attribute, case Max): Check for improper comparison of
4879         unordered enumeration type.
4880         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
4881         sem_util.adb.
4882         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
4883         Moved here from Sem_Res.
4885 2014-02-06  Robert Dewar  <dewar@adacore.com>
4887         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
4888         reformatting.
4890 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4892         * sem_ch6.adb (Process_Formals): Error message reformatting.
4894 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4896         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
4897         variable Spec. Do not inherit the null indicator from the
4898         subprogram body when generating the spec.
4900 2014-02-06  Robert Dewar  <dewar@adacore.com>
4902         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
4903         mixed case.
4905 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
4907         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
4908         when the function has a foreign convention, but not if only the
4909         limited return type has such a convention.
4911 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4913         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
4914         variable Spec. Comment reformatting. Use Copy_Separate_Tree
4915         rather than New_Copy_Tree when building the corresponding
4916         subprogram declaration.
4918 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4920         * sem_prag.adb (Analyze_Global_Item): Remove
4921         the mode-related checks on abstract states with enabled external
4922         properties.
4923         (Property_Error): Removed.
4925 2014-02-06  Javier Miranda  <miranda@adacore.com>
4927         * lib-xref.adb (Generate_Reference): When
4928         generating the reference to the first private entity take care
4929         of handling swapped entities.
4931 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
4933         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
4934         gnatmetric.
4936 2014-02-06  Robert Dewar  <dewar@adacore.com>
4938         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
4939         than the word size when operating in Modify_Tree_For_C mode.
4940         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
4942 2014-02-06  Robert Dewar  <dewar@adacore.com>
4944         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
4945         compare is case insensitive.
4946         * gnat_rm.texi: Document that string compare for Warnings Off
4947         is now case insensitive.
4949 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
4951         * gnat_rm.texi: Small wording tweak.
4953 2014-02-06  Pascal Obry  <obry@adacore.com>
4955         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
4956         and Included_Artifact_Patterns attribute definitions.
4958 2014-02-06  Yannick Moy  <moy@adacore.com>
4960         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
4961         SPARK_Mode pragma component for all subprograms, including stubs.
4963 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
4965         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
4966         the configuration options of the enclosing context in a
4967         stack-like fasion.
4968         (Analyze_Subprogram_Body_Stub): Maintain the
4969         configuration options of the enclosing context in a stack-like
4970         fashion.
4972 2014-02-06  Robert Dewar  <dewar@adacore.com>
4974         * debug.adb: -gnatd.u sets Modify_Tree_For C
4975         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
4976         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
4977         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
4978         * exp_intr.adb (Expand_Shift): Call expander so we do
4979         Modify_Tree_For_C expansions.
4980         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
4981         if -gnatd.u set.
4983 2014-02-06  Fedor Rybin  <frybin@adacore.com>
4985         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
4986         after the phase 1 of the processing of each aggregated project
4987         to get access to project trees of aggregated projects.
4988         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
4989         If specified, On_New_Tree_Loaded is called after each aggregated
4990         project has been processed succesfully.
4991         (Process): new parameter On_New_Tree_Loaded.
4992         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
4993         callback added after processing of each aggregated project.
4994         (Recursive_Process): new parameter On_New_Tree_Loaded.
4995         (Process): new parameter On_New_Tree_Loaded.
4996         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
4997         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
4998         On_New_Tree_Loaded.
4999         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
5000         On_New_Tree_Loaded.
5002 2014-02-06  Bob Duff  <duff@adacore.com>
5004         * gnat_ugn.texi: Implement --insert-blank-lines and
5005         --preserve-blank-lines switches.
5007 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
5009         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
5010         gnatelim.
5012 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
5014         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
5015         of the pragma on individual objects.
5017 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5019         * einfo.adb Node29 is now used as BIP_Initialization_Call.
5020         (BIP_Initialization_Call): New routine.
5021         (Set_BIP_Initialization_Call): New routine.
5022         (Write_Field29_Name): Add an entry for constants and variables.
5023         * einfo.ads Add new attribute BIP_Initialization_Call and update
5024         its usage in nodes.
5025         (BIP_Initialization_Call): New routine along with pragma Inline.
5026         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
5027         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5028         Add local declaration Res_Decl. Capture the build-in-place
5029         initialization call when the related object declaration has
5030         created a transient block.
5031         * exp_ch7.adb (Process_Transient_Objects): Add local variable
5032         Fin_Insrt. Recognize a scenario where an object declaration acts
5033         as a transient context and is initialized by a build-in-place
5034         function call.
5036 2014-02-06  Pascal Obry  <obry@adacore.com>
5038         * prj-util.adb (For_Interface_Sources): Fix handling of required
5039         bodies for aggregate libs.
5041 2014-02-06  Robert Dewar  <dewar@adacore.com>
5043         * nlists.ads: Minor comment clarifications.
5045 2014-02-06  Robert Dewar  <dewar@adacore.com>
5047         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
5048         if gnatd.V set.
5049         * opt.ads (Modify_Tree_For_C): New flag.
5050         * output.ads, output.adb (Last_Char): New function.
5052 2014-02-06  Pascal Obry  <obry@adacore.com>
5054         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
5055         share/gpr for cross-builds.
5057 2014-02-06  Robert Dewar  <dewar@adacore.com>
5059         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
5060         Minor reformatting and code clean ups.
5062 2014-02-06  Pascal Obry  <obry@adacore.com>
5064         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
5065         * prj.ads: Minor typo fix in comment.
5067 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5069         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
5070         local variable Expr. Flag clauses with extra parenthesis as this
5071         is not allowed by the syntax of the pragma. Code reformatting.
5073 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5075         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
5076         variables. Rename variabme Tnn to Temp. Do not create a temporary
5077         if assertions are disabled. Find enclosing routine _Postconditions
5078         and insert the temporary that captures the value of the prefix
5079         before the routine.
5080         * exp_ch6.adb (Build_Postconditions_Procedure):
5081         Insert the generated _Postconditions routine
5082         before the first source declaration of the related
5083         subprogram.
5084         (Insert_After_Last_Declaration): Removed.
5085         (Insert_Before_First_Source_Declaration): New routine.
5087 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
5089         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
5090         Utility to determine whether current expansion is for the body
5091         of a predefined primitive operation.
5092         (Make_Predicate_Check): Use Within_Internal_Subpgram
5093         * checks.adb (Apply_Predicate_Check): Use
5094         Within_Internal_Subprogram
5095         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
5097 2014-02-06  Pascal Obry  <obry@adacore.com>
5099         * prj.ads, prj-util.adb: Minor reformatting.
5101 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
5103         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
5104         Take into account the Split_PPC flag to ensure that conjuncts
5105         in a composite postcondition aspect are tested in source order.
5107 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5109         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
5110         use of SPARK_Mode.
5111         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
5112         illegal use of SPARK_Mode.
5113         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
5114         * sem_prag.adb (Analyze_Pragma): Code reformatting.
5115         * sem_util.adb Add with and use clause for Aspects.
5116         (Check_SPARK_Mode_In_Generic): New routine.
5117         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
5119 2014-02-06  Thomas Quinot  <quinot@adacore.com>
5121         * a-calend.adb (Formatting_Operations.Split): Ensure that
5122         Time_Error is raised for invalid time values.
5124 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
5126         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
5127         in GNATprove_Mode.
5129 2014-02-06  Robert Dewar  <dewar@adacore.com>
5131         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
5132         * exp_ch3.adb (Build_Dcheck_Function): Set
5133         Is_Discriminant_Check_Function.
5135 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5137         * exp_ch7.adb (Is_Subprogram_Call): Inspect
5138         the original tree in certain cases where a construct has been
5139         factored out and replaced by a reference to a temporary.
5141 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
5143         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
5144         parameters when propagating predicate function to full view.
5145         (Find_Type_Of_Object): Freeze base type of object type to catch
5146         premature use of discriminated private type without a full view.
5148 2014-02-06  Robert Dewar  <dewar@adacore.com>
5150         * sprint.adb: Minor reformatting.
5152 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5154         * exp_ch4.adb (Process_Transient_Object): Add local variable
5155         Temp_Ins. When the transient object is initialized by an
5156         aggregate, the hook must capture the object after the last
5157         component assignment takes place.
5158         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
5159         routine Is_Subprogram_Call.
5160         (Is_Subprogram_Call): Inspect an
5161         aggregate that has been heavily expanded for subprogram calls.
5162         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
5163         and Temp_Ins.  Remove the nested declare block and adjust the
5164         indentation. When the transient object is initialized by an
5165         aggregate, the hook must capture the object after the last
5166         component assignment takes place.
5168 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5170         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
5171         external states with enabled properties that do not match the
5172         global mode.
5173         (Property_Error): New routine.
5174         * sem_res.adb (Property_Error): New routine.
5175         (Resolve_Actuals): Detect illegal uses of external variables with
5176         enabled properties in procedure calls that do not match the mode of
5177         the corresponding formal parameter.
5179 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
5181         * sem_util.adb (Has_Enabled_Property): Rename
5182         formal parameter Prop_Nam to Property. Update the comment on usage
5183         and all occurrences in the body. Add local variable Prop_Nam. When
5184         inspecting a property with an expression, the property name
5185         appears as the first choice of the component association.
5187 2014-02-04  Robert Dewar  <dewar@adacore.com>
5189         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
5191 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
5193         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
5194         for consistency with other messages.
5196 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
5198         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
5199         iterator, indicate that the element is a constant if the container
5200         type does not have a variable indexing aspect.
5201         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
5202         marked as constant, do not reset its Ekind, to ensure that
5203         container elements in an element loop are not modified if the
5204         container (e.g. a hashed set) only has a constant indexing aspect.
5206 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
5208         * g-souinf.ads: Subprograms in this unit are actually not pure.
5209         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
5210         * einfo.ads (Is_Pure): Update doc to match implementation.
5212 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
5214         * exp_ch13.adb: Minor spelling fix.
5216 2014-02-04  Robert Dewar  <dewar@adacore.com>
5218         * opt.ads: Minor comment update.
5220 2014-02-04  Robert Dewar  <dewar@adacore.com>
5222         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
5223         instead of Replace.
5225 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
5227         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
5228         on null expressions if component type is non-null, when the
5229         corresponding association covers an empty range of index values.
5231 2014-02-04  Robert Dewar  <dewar@adacore.com>
5233         * sinfo.ads: Further comments on N_Expression_With_Actions node.
5235 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
5237         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
5238         variables Out_Items and Ref_Global. Remove local constant
5239         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
5240         and D8. Remove the useless collection of global items as this
5241         was a leftover from an earlier version of the routine. Move
5242         several routines out to avoid deep nesting and indentation.
5243         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
5244         parameter Do_Checks to Post_Errors. Update the comment on usage.
5245         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
5246         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
5247         to Post_Errors. Update the comment on usage. Account for the
5248         case where a self referential state may have a null input_list.
5249         (Is_Self_Referential): New routine.
5251 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
5253         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
5254         entity renames an expression, as in the case of an object of
5255         an unconstrained type initialized by a function call, defer the
5256         rewriting of the expression to the expander.
5257         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
5258         'Alignment): If the entity renames an expression, introduce
5259         temporary to capture value, and rewrite original declaration to
5260         use temporary.
5262 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
5264         * g-comlin.adb: Minor typo fix.
5266 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
5268         * freeze.adb (Freeze_All): Types derived from a formal
5269         access_to_classwide type do not have a finalization master.
5271 2014-02-04  Robert Dewar  <dewar@adacore.com>
5273         * sprint.adb: Minor reformatting.
5275 2014-02-04  Robert Dewar  <dewar@adacore.com>
5277         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
5278         cases where Actions is a null list.
5279         * sinfo.ads (N_Expression_With_Actions): Actions can be
5280         temporarily empty during semantic analysis, but must be non-empty
5281         in the final expanded tree.
5283 2014-01-31  Robert Dewar  <dewar@adacore.com>
5285         * exp_ch9.adb: Minor reformatting.
5287 2014-01-31  Emmanuel Briot  <briot@adacore.com>
5289         * g-comlin.adb (Set_Command_Line): Take the switches
5290         configuration from the Command_Line_Config.
5292 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
5294         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
5295         refinement clause.
5297 2014-01-31  Vincent Celier  <celier@adacore.com>
5299         * projects.texi: Add more documentation about others used as an
5300         index in indexed attributes.
5302 2014-01-31  Robert Dewar  <dewar@adacore.com>
5304         * gnat_ugn.texi: Minor update.
5305         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
5306         * exp_util.adb: Minor reformatting.
5308 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
5310         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
5311         depends on data that is not private to the protected object,
5312         and potentially modifiable in unsynchronized fashion.
5314 2014-01-31  Yannick Moy  <moy@adacore.com>
5316         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
5317         GNATprove_Mode.
5319 2014-01-31  Robert Dewar  <dewar@adacore.com>
5321         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
5322         for Unknown_Package.
5323         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
5325 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
5327         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
5328         the logic that generates a runtime check to determine the
5329         controlled status of the object about to be allocated or
5330         deallocated. Class-wide types now always use a runtime check
5331         even if they appear as generic actuals.
5332         (Find_Object): Detect
5333         a special case that involves interface class-wide types because
5334         the object appears as a complex expression.
5336 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
5338         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
5339         subprogram with an incomplete untagged formals on the list of
5340         private dependents, to verify that the type is properly completed
5341         in the private part.
5342         * sem_attr.adb: Code clean up.
5344 2014-01-31  Robert Dewar  <dewar@adacore.com>
5346         * exp_ch6.adb: Minor reformatting.
5348 2014-01-31  Vincent Celier  <celier@adacore.com>
5350         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
5351         when Pkg is unknown.
5353 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
5355         * sem_res.adb (Resolve_Entity_Name): Comment
5356         reformatting. Allow volatile objects in various generated checks.
5358 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
5360         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
5361         component association, set the etype of the identifier, for
5362         SPARK use.
5364 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
5366         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
5367         declared in a package, not checks can apply to the subprogram.
5369 2014-01-31  Robert Dewar  <dewar@adacore.com>
5371         * erroutc.adb (Validate_Specific_Warnings): Warnings are
5372         controlled -gnatw.W.
5373         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
5374         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
5376 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
5378         * exp_disp.adb: Update comments.
5380 2014-01-31  Yannick Moy  <moy@adacore.com>
5382         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
5383         Save_Global_References): Guard access to expression in aspect.
5385 2014-01-31  Yannick Moy  <moy@adacore.com>
5387         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
5388         Issue an error when the pragma is applied to a generic unit,
5389         a generic declaration, or inside a generic.
5391 2014-01-31  Yannick Moy  <moy@adacore.com>
5393         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
5394         entity.
5396 2014-01-31  Robert Dewar  <dewar@adacore.com>
5398         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
5399         reformatting.
5401 2014-01-31  Tristan Gingold  <gingold@adacore.com>
5403         * exp_disp.adb: Add a historic note.
5405 2014-01-31  Robert Dewar  <dewar@adacore.com>
5407         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
5408         Process_Deferred_References.
5410 2014-01-31  Yannick Moy  <moy@adacore.com>
5412         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
5413         ineffective pragma Warnings(Off) in GNATprove_Mode.
5415 2014-01-31  Bob Duff  <duff@adacore.com>
5417         * s-taskin.ads: Minor comment fix.
5418         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
5419         just direct dependents. If this is actually an abort, each task
5420         will take care of aborting its dependents, so all dependents will
5421         get aborted, as before. However, when this is called the second
5422         time from Vulnerable_Complete_Master "for convenience" (i.e. to
5423         kill off tasks waiting at terminate alternatives), aborting
5424         indirect dependents is wrong, because it causes some unrelated
5425         tasks to get aborted.
5427 2014-01-31  Robert Dewar  <dewar@adacore.com>
5429         * sem_ch4.adb: Minor reformatting.
5431 2014-01-31  Robert Dewar  <dewar@adacore.com>
5433         * exp_ch2.adb: New calling sequence for Is_LHS.
5434         * frontend.adb: Add call to Process_Deferred_References.
5435         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
5436         (Deferred_References): New table.
5437         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
5438         entries.
5439         (Find_Expanded_Name): Ditto.
5440         * sem_res.adb: New calling sequence for Is_LHS.
5441         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
5442         * sem_warn.adb: Call Process_Deferred_References before issuing
5443         warnings.
5445 2014-01-31  Tristan Gingold  <gingold@adacore.com>
5447         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
5448         use of System_Tasking_Protected_Objects_Single_Entry.
5449         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
5450         of Protected_Single_Entry_Call.
5451         (Expand_N_Timed_Entry_Call): Remove single_entry case.
5452         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
5453         single_entry case.
5454         (Make_Disp_Timed_Select_Body): Likewise.
5455         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
5456         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
5457         Self_Id parameter.
5458         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
5459         (Wait_For_Completion_With_Timeout): Remove.
5460         (Protected_Single_Entry_Call): Remove Mode parameter
5461         (always Simple_Call).
5462         (Service_Entry): Remove Self_Id constant (not used anymore).
5463         (Timed_Protected_Single_Entry_Call): Remove.
5464         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
5465         (Protected_Single_Entry_Call): Remove Mode parameter.
5467 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5469         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
5470         * einfo.ads (Get_Pragma): Update the comment on special pragmas
5471         handled by this routine.
5472         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
5473         to the contract of the related subprogram body.
5474         * sem_util.adb (Add_Contract_Item): Handle the insertion of
5475         pragma Refined_Post into the contract of a subprogram body.
5476         * sinfo.ads Update the documentation of node N_Contract.
5477         * sem_res.adb (Resolve_Entity_Name): Add a guard
5478         to detect abstract states and variables only when checking the
5479         SPARK 2014 rules concerning volatile object placement.
5481 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
5483         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
5484         null is compatible with any access type.
5486 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5488         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
5489         placement is not in a package.
5491 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5493         * sem_util.adb (Has_Enabled_Property): Compare the character field of
5494         the sole property.
5496 2014-01-29  Robert Dewar  <dewar@adacore.com>
5498         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
5499         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
5500         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
5502 2014-01-29  Robert Dewar  <dewar@adacore.com>
5504         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
5505         * sem_warn.adb (Check_References): Suppress warnings if inside
5506         Initial_Condition pragma.
5508 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5510         * sem_prag.adb (Check_Missing_Part_Of): List all values of
5511         State_Space_Kind for readability reasons. Do not emit an error on
5512         a private item when the enclosing package lacks aspect/pragma
5513         Abstract_State. Do not emit an error on a private package
5514         instantiation when the corresponding generic template lacks
5515         visible state.
5516         (Has_Visible_State): New routine.
5517         * sem_util.adb (Find_Placement_In_State_Space): The visible
5518         declarations of any kind of child units in general act as proper
5519         placement location.
5521 2014-01-29  Robert Dewar  <dewar@adacore.com>
5523         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
5524         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
5525         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
5526         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
5527         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
5528         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
5529         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
5530         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
5531         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
5532         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
5533         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
5534         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
5535         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
5536         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
5537         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5538         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
5539         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
5540         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
5541         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
5542         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
5543         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
5544         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
5545         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
5546         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
5547         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
5548         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
5549         s-regpat.adb, s-secsta.adb, s-stalib.ads,
5550         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
5551         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
5552         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
5553         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
5554         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
5556 2014-01-29  Robert Dewar  <dewar@adacore.com>
5558         * expander.adb: Minor reformatting.
5560 2014-01-29  Javier Miranda  <miranda@adacore.com>
5562         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
5563         previous patch.
5565 2014-01-29  Javier Miranda  <miranda@adacore.com>
5567         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
5568         that checks if an interface types defines the predefined "="
5569         function because the compiler was erroneously not generating the
5570         predefined "=" primitive as soon as the name of some interface
5571         primitive is "=" (formals were not checked).
5573 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
5575         * expander.adb (Expander): In GNATprove mode, do not process
5576         transient scopes: they are in general not created in this mode,
5577         and an attempt to examine them will lead to constraint errors when
5578         processing configuration pragmas that have analyzable expressions.
5580 2014-01-29  Vincent Celier  <celier@adacore.com>
5582         * clean.adb (Gnatclean): Fail if main project is an aggregate
5583         project or if there is an aggregate library project in the
5584         project tree.
5585         * gnatcmd.adb: Fail if the main project is an aggregate project
5586         or if there is an aggegate library project in the project tree.
5587         * make.adb (Initialize): : Fail if main project is an aggregate
5588         project or if there is an aggregate library project in the
5589         project tree.
5590         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
5591         * prj-makr.adb (Initialize): Fail if the main project is an
5592         aggregate project or an aggregate library project.
5594 2014-01-29  Vincent Celier  <celier@adacore.com>
5596         * prj-part.adb (Check_Import_Aggregate): New procedure
5597         to check if an imported project is an aggregate project.
5598         (Parse_Single_Project): Call Check_Import_Aggregate
5599         * projects.texi: Document that aggregate projects cannot be
5600         extended or imported.
5602 2014-01-29  Robert Dewar  <dewar@adacore.com>
5604         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
5605         reformatting and code clean up.
5606         * gnat_ugn.texi: Add documentation section on Atomic Variables
5607         and Optimization.
5609 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5611         * einfo.adb Flag264 is now unused.
5612         (Has_Body_References): Removed.
5613         (Set_Has_Body_References): Removed.
5614         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
5615         * einfo.ads Update the comment on usage of attribute
5616         Body_References. Remove attribute Has_Body_References and its
5617         usage in nodes.
5618         (Has_Body_References): Removed along with pragma Inline.
5619         (Set_Has_Body_References): Removed along with pragma Inline.
5620         * sem_prag.adb (Analyze_Global_Item): Move the call to
5621         Record_Possible_Body_Reference in the state related checks
5622         section. Add a comment intended function.
5623         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
5624         in the state related checks section. Add a comment intended function.
5625         (Analyze_Refinement_Clause): Cleanup the illegal body reference
5626         reporting. Add a comment on timing of error reporting.
5627         (Record_Possible_Body_Reference): Reimplement the routine.
5629 2014-01-29  Vincent Celier  <celier@adacore.com>
5631         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
5632         unit-based languages.
5633         (Mains.Complete_Mains.Do_Complete): Use the source file project
5634         tree when calling Find_File_Add_Extension. Use the correct
5635         project name when reporting an error.
5637 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
5639         * aspects.adb Add an entry for aspect Part_Of in table
5640         Canonical_Aspect.
5641         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
5642         Aspect_Argument, Aspect_Names and Aspect_Delay.
5643         * atree.h Define Elist9.
5644         * atree.adb (Elist9): New routine.
5645         (Set_Elist9): New routine.
5646         * atree.ads (Elist9): New routine.
5647         (Set_Elist9): New routine.
5648         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
5649         the list of node usage.  Remove Refined_State from the list of
5650         node usage.
5651         (Encapsulating_State): New routine.
5652         (Get_Pragma):
5653         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
5654         (Refined_State): Removed.
5655         (Set_Encapsulating_State): New routine.
5656         (Set_Part_Of_Constituents): New routine.
5657         (Set_Refined_State): Removed.
5658         (Write_Field9_Name): Add an entry
5659         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
5660         Encapsulating_State. Remove the entry for Refined_State.
5661         * einfo.ads Add new attributes Encapsulating_State
5662         and Part_Of_Constituents alond with their usage in
5663         entities. Remove attribute Refined_State along with its
5664         usage in entities.
5665         (Encapsulating_State): New routine and
5666         pragma Inline.  (Get_Pragma): Update the comment on usage.
5667         (Part_Of_Constituents): New routine and pragma Inline.
5668         (Refined_State): Removed along with pragma Inline.
5669         (Set_Encapsulating_State): New routine and pragma Inline.
5670         (Set_Part_Of_Constituents): New routine and pragma Inline.
5671         (Set_Refined_State): Removed along with pragma Inline.
5672         * par-prag.adb Pragma Part_Of does not need any special processing
5673         by the parser.
5674         * sem_ch3.adb (Analyze_Declarations): Remove local variables
5675         Body_Id and Prag. Call separate routines to analyze the
5676         contract of a package [body].
5677         (Analyze_Object_Contract):
5678         Update the comment on usage. Remove local variables
5679         Items and Nam. Use Get_Pragma rather than traversing the
5680         classification list.  Verify whether the lack of indicator
5681         Part_Of agrees with the placement of the variable in state space.
5682         (Analyze_Object_Declaration): Initialize the encapsulating state
5683         of a variable.  (Requires_State_Refinement): Moved to sem_util.
5684         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
5685         (Analyze_Package_Contract): New routine.
5686         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
5687         (Analyze_Package_Contract): New routine.
5688         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
5689         state and Part_Of constituents.
5690         * sem_ch13.adb (Analyze_Aspect_Specifications):
5691         Add processing for aspect Part_Of. Update all
5692         calls to Decorate_Delayed_Aspect_And_Pragma.
5693         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
5694         not need any special processing at freeze time.
5695         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
5696         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
5697         update the associated comment.
5698         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
5699         (Analyze_Abstract_State): Add new global variable State_Id. Remove
5700         local constants Errors and Loc. Remove local variables Is_Null
5701         and State_Nam. Create the entity of the abstract state on the
5702         spot, before all remaining checks are performed. Verify that a
5703         missing Part_Of option agrees with the placement of the abstract
5704         state within the state space.
5705         (Analyze_Depends_In_Decl_Part):
5706         Add new global variables Constits_Seen and States_Seen. Check
5707         that a state and a corresponding constituent do not appear
5708         in pragma [Refined_]Depends.
5709         (Analyze_Global_In_Decl_Part):
5710         Add new global variables Constits_Seen and States_Seen. Check
5711         that a state and a corresponding constituent do not appear
5712         in pragma [Refined_]Global.
5713         (Analyze_Global_Item):
5714         Remove the now obsolete code that deals with Part_Of.
5715         Add the entity of the global item to the list of processed
5716         items.  (Analyze_Initializes_In_Decl_Part): Add new global
5717         variables Constits_Seen and States_Seen. Check that a state
5718         and a corresponding constituent do not appear in pragma
5719         Initializes.
5720         (Analyze_Initialization_Item): Add the entity
5721         of the initialization item to the list of processed items.
5722         (Analyze_Input_Item): Add the entity of the initialization
5723         item to the list of processed items.
5724         (Analyze_Input_Output):
5725         Remove the now obsolete code that deals with Part_Of.  Add the
5726         entity of the input/output to the list of processed items.
5727         (Analyze_Part_Of): New routine.
5728         (Analyze_Part_Of_Option): Remove
5729         local constant Par_State. Add local constant Encaps and local
5730         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
5731         the option. Turn the related state into a Part_Of constituent
5732         if the option is legal.
5733         (Analyze_Pragma): Add processing
5734         for pragma Part_Of.
5735         (Analyze_Refined_State_In_Decl_Part):
5736         Remove global constants Pack_Body and Spec_Id. Remove
5737         global variables Abstr_States and Hidden_States. Add new
5738         global variables Available_States, Body_Id, Body_States and
5739         Spec_Id. Add new local constant Body_Decl. Reimplement the
5740         logic that extracts the states available for refinement from
5741         the related package and the body hidden states of the said
5742         package.
5743         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
5744         (Check_Applicable_Policy): Alphabetize body.
5745         (Check_Dependency_Clause): Replace Refined_State
5746         with Encapsulating_State.
5747         (Check_Matching_Constituent):
5748         Reimplement the logic that determines whether an item is a valid
5749         / invalid constituent of the current refined state. Return when
5750         a construct does not denote a valid abstract state. Extract the
5751         list of Part_Of constituents for further analysis. Check that all
5752         Part_Of constituents of a state have been used in its refinement.
5753         (Check_Matching_State): Update the comment on usage. Operate
5754         on the list of available states.
5755         (Check_Missing_Part_Of): New routine.
5756         (Check_Refined_Global_Item): Replace Refined_State
5757         with Encapsulating_State.
5758         (Check_State_And_Constituent_Use): New routine.
5759         (Create_Abstract_State): New routine.
5760         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
5761         (Is_Part_Of): Removed.
5762         (Collect_Body_States): New routine.
5763         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
5764         (Collect_Hidden_States): Removed.
5765         (Report_Unrefined_States): Change the profile of the procedure along
5766         with the comment on usage.
5767         (Report_Unused_Constituents): New routine.
5768         (Report_Unused_Hidden_States): Removed.
5769         (Report_Unused_States): New routine.
5770         * sem_prag.ads (Check_Missing_Part_Of): New routine.
5771         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
5772         appear in the classification pragmas of a package instantiation
5773         or a variable.
5774         (Find_Placement_In_State_Space): New routine.
5775         (Is_Child): Removed.
5776         (Is_Child_Or_Sibling): Remove formal
5777         parameter Private_Child. Remove the private child checks.
5778         (Requires_State_Refinement): Moved from sem_ch3.
5779         * sem_util.ads Add new type State_Space_Kind along with
5780         comment on its usage and values.
5781         (Add_Contract_Item): Update the comment on usage.
5782         (Find_Body_Discriminal): Alphabetize spec.
5783         (Find_Placement_In_State_Space): New routine.
5784         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
5785         and update the comment on usage.
5786         (Requires_State_Refinement): Moved from sem_ch3.
5787         * sinfo.ads: Update the documentation of N_Contract.
5788         * snames.ads-tmpl The predefined name for Part_Of is now used
5789         to denote a pragma. Add Pragma_Id for Part_Of.
5791 2014-01-29  Emmanuel Briot  <briot@adacore.com>
5793         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
5794         machine as needed.
5795         (Dump): New subprogram.
5797 2014-01-29  Tristan Gingold  <gingold@adacore.com>
5799         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
5800         Expand_Entry_Declaration to factorize code.
5802 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
5804         * checks.adb: minor clarification.
5805         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
5806         search for primitive operations to the entities that immediately
5807         follow the type declaration.
5809 2014-01-29  Tristan Gingold  <gingold@adacore.com>
5811         * exp_ch9.adb (Build_Protected_Entry): Do not call
5812         Complete_Entry_Body anymore.
5813         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
5814         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
5816 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
5818         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
5819         string when the Name input bigger than allowed. Adapt the function
5820         specification.
5822 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
5824         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
5825         if expression is within a case_expression of if_expression.
5827 2014-01-29  Robert Dewar  <dewar@adacore.com>
5829         * exp_ch9.adb, inline.ads: Minor reformatting.
5831 2014-01-29  Tristan Gingold  <gingold@adacore.com>
5833         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
5835 2014-01-29  Yannick Moy  <moy@adacore.com>
5837         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
5838         SPARK_Mode_Pragma components to be able to analyze generic
5839         instance.
5840         * sem_ch12.adb (Analyze_Package_Instantiation,
5841         Inline_Instance_Body, Need_Subprogram_Instance_Body,
5842         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
5843         for future analysis of the instance.
5844         (Instantiate_Package_Body,
5845         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
5846         from instantiation to analyze the instance.
5848 2014-01-29  Robert Dewar  <dewar@adacore.com>
5850         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
5851         reorganization.
5853 2014-01-29  Yannick Moy  <moy@adacore.com>
5855         * gnat_rm.texi: Update description of SPARK_Mode pragma.
5857 2014-01-29  Tristan Gingold  <gingold@adacore.com>
5859         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
5861 2014-01-29  Thomas Quinot  <quinot@adacore.com>
5863         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
5865 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
5867         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
5868         resulting string is an internal entity. and thus requires no
5869         initialization. This is relevant when Initialize_ Scalars is
5870         enabled, because the resultant spurious initialization may lead to
5871         secondary stack anomalies that produce a mangled name for a task.
5873 2014-01-29  Yannick Moy  <moy@adacore.com>
5875         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
5876         not inherited from spec anymore. Check consistency
5877         rules after processing of declarations.
5878         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
5879         from spec anymore. Check consistency rules after processing of
5880         declarations.
5881         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
5882         packages.
5883         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
5884         consistency rules.
5886 2014-01-27  Robert Dewar  <dewar@adacore.com>
5888         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
5889         to unordered msg.
5890         (Resolve_Range): Add type name/location to unordered msg.
5892 2014-01-27  Claire Dross  <dross@adacore.com>
5894         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
5895         Capacity) is only called with Capacity >= Length (Source) and
5896         Capacity in Capacity_Range.
5897         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
5898         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
5899         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
5900         in the code is this is not the case.
5902 2014-01-27  Thomas Quinot  <quinot@adacore.com>
5904         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
5905         selected component in an instance where the component of the
5906         actual is not visibile at instantiation.
5908 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
5910         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
5911         has a dynamic predicate, generate freeze node for Actual_Subtype
5912         at once, because the declaration of the corresponding predicate
5913         function will make reference to it.
5915 2014-01-27  Tristan Gingold  <gingold@adacore.com>
5917         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
5919 2014-01-27  Robert Dewar  <dewar@adacore.com>
5921         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
5922         for 2**X optimization.
5924 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
5926         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
5927         explicitly whether value is in range of Character, because the
5928         library is typically compiled with range checks disabled, and
5929         we cannot rely on the implicit check on the argument of 'Val.
5931 2014-01-27  Vincent Celier  <celier@adacore.com>
5933         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
5934         not the Target to itself.
5936 2014-01-27  Robert Dewar  <dewar@adacore.com>
5938         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
5939         changes to avoid incorrect use of unordered enum types.
5941 2014-01-27  Thomas Quinot  <quinot@adacore.com>
5943         * sem_ch4.adb: Minor reformatting.
5945 2014-01-27  Robert Dewar  <dewar@adacore.com>
5947         * scn.adb (Check_End_Of_Line): Removed.
5948         (Error_Long_Line): Removed.
5949         (Determine_License): Use versions of above routines from Scanner.
5950         * scng.adb (Check_End_Of_Line): Moved to spec.
5951         (Error_Long_Line): Removed, no longer used.
5952         * scng.ads (Check_End_Of_Line): Moved here from body.
5954 2014-01-27  Tristan Gingold  <gingold@adacore.com>
5956         * exp_ch7.adb (Build_Cleanup_Statements): Call
5957         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
5958         for protected body.
5959         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
5960          Remove Service_Name variable.
5961         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
5962         factorize code from the above subprograms.
5963         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
5965 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
5967         * einfo.adb (Has_Option): Reimplemented.
5968         * sem_prag.adb (Analyze_Refinement_Clause): Add global
5969         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
5970         External_Constit_Seen and State. Add local variables Body_Ref,
5971         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
5972         avoid a cumbersome while pool. Verify the legality of an external
5973         state and relevant properties.
5974         (Check_External_Property): New routine.
5975         (Check_Matching_State): Remove parameter profile
5976         and update comment on usage.
5977         (Collect_Constituent): Store the
5978         relevant external property of a constituent.
5979         * sem_util.adb (Async_Readers_Enabled): Update the call to
5980         Has_Enabled_Property.
5981         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
5982         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
5983         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
5984         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
5985         Update comment on usage. Reimplement the logic to recognize the various
5986         formats of properties.
5988 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
5990         * par-ch5.adb: Minor reformatting.
5992 2014-01-27  Tristan Gingold  <gingold@adacore.com>
5994         * s-tposen.ads: Harmonize style and comments.
5996 2014-01-27  Vincent Celier  <celier@adacore.com>
5998         * projects.texi: Document that shared library projects, by
5999         default, cannot import projects that are not shared library
6000         projects.
6002 2014-01-27  Robert Dewar  <dewar@adacore.com>
6004         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
6005         of Rewrite.
6007 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6009         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
6010         any other exception is raised.
6011         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
6012         still necessary to perform a conversion in order to remove overlong
6013         encodings.
6015 2014-01-27  Robert Dewar  <dewar@adacore.com>
6017         * exp_smem.adb: Minor reformatting.
6019 2014-01-27  Thomas Quinot  <quinot@adacore.com>
6021         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
6023 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6025         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
6026         nodes for operands to the original node for the call, to preserve
6027         Original_Node pointers within the resolved operands, given that
6028         they may have been rewritten as well. Previous approach copied
6029         the operands into a new tree and lost those pointers.
6031 2014-01-27  Claire Dross  <dross@adacore.com>
6034         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
6036 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6038         * sem_util.adb (Check_Internal_Protected_Use): A call through
6039         an anonymous access parameter of the current protected function
6040         is not a potential modification of the current object.
6042 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6044         * a-cobove.adb (Reserve_Capacity): Procedure raises
6045         Capacity_Error, not Constraint_Error, when request cannot be
6046         satisfied.
6048 2014-01-27  Vincent Celier  <celier@adacore.com>
6050         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
6051         not the Target to itself.
6053 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6055         * exp_ch4.adb (Expand_Concatenate): If the target of the
6056         concatenation is a library-level entity, always use the off-line
6057         version of concatenation, regardless of optimization level. This
6058         is space-efficient, and prevents linking problems when some
6059         units are compiled with different optimization levels.
6061 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6063         * sem_ch5.adb: Code clean up.
6065 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6067         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
6068         when an array or container iterator includes a subtype indication,
6069         which is only legal in an element iterator.
6071 2014-01-27  Thomas Quinot  <quinot@adacore.com>
6073         * exp_ch7.adb: Minor reformatting.
6075 2014-01-27  Robert Dewar  <dewar@adacore.com>
6077         * opt.adb (SPARK_Mode): Default for library units is None rather
6078         than Off.
6079         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
6080         no longer ordered.
6081         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
6082         possibility.
6083         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
6085 2014-01-27  Robert Dewar  <dewar@adacore.com>
6087         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
6088         Suspicious_Labels table if we have identifier; followed by loop
6089         or block.
6090         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
6091         * par.adb (Suspicious_Labels): New table.
6093 2014-01-27  Robert Dewar  <dewar@adacore.com>
6095         * exp_aggr.adb (Check_Bounds): Reason is range check, not
6096         length check.
6098 2014-01-27  Yannick Moy  <moy@adacore.com>
6100         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
6101         reference.
6102         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
6103         function now.
6104         (Add_SPARK_Xrefs): Include references to constants.
6105         * spark_xrefs.ads Document new character 'c' for references to
6106         constants.
6108 2014-01-27  Thomas Quinot  <quinot@adacore.com>
6110         * exp_smem.adb (Add_Write_After): For a function call, insert write as
6111         an after action in a transient scope.
6113 2014-01-27  Thomas Quinot  <quinot@adacore.com>
6115         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
6116         to a shared variable as an OUT formal in a call to an init proc,
6117         the 'Read call must be emitted after, not before, the call.
6119 2014-01-27  Robert Dewar  <dewar@adacore.com>
6121         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
6123 2014-01-27  Robert Dewar  <dewar@adacore.com>
6125         * a-wichha.adb (Character_Set_Version): Change to output proper
6126         value.
6128 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
6130         * einfo.adb (Is_Input_Only_State): Removed.
6131         (Is_Non_Volatile_State): Removed.
6132         (Is_Output_State): Removed.
6133         * einfo.ads (Is_Input_Only_State): Remove attribute and
6134         subprogram. Update related entity.
6135         (Is_Non_Volatile_State):
6136         Remove attribute and subprogram. Update related entity.
6137         (Is_Output_State): Removed attribute and subprogram. Update
6138         related entity.
6139         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
6140         generated code.
6141         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
6142         an object, not just variables.
6143         (Analyze_Object_Contract): New routine.
6144         (Analyze_Variable_Contract): Removed.
6145         (Process_Discriminants): Detect an illegal use of volatile
6146         discriminant in SPARK mode.
6147         * sem_ch5.adb (Analyze_Iterator_Specification):
6148         Detect an illegal use of volatile loop variable.
6149         (Analyze_Loop_Parameter_Specification): Detect an illegal use
6150         of volatile loop variable.
6151         * sem_ch6.adb (Process_Formals): Update the volatile object
6152         detection. Detect an illegal formal of mode IN OUT or OUT in
6153         SPARK mode. Enhance the error messages with references.
6154         * sem_ch12.adb (Instantiate_Object): Update the volatile object
6155         detection. Enhance the error messages with references.
6156         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
6157         messages with references.
6158         (Analyze_Contract_Case): Enhance the error messages with references.
6159         (Analyze_External_Property): Call Check_Duplicate_Property to process
6160         an external property.
6161         (Analyze_External_Property_In_Decl_Part): New routine.
6162         (Analyze_External_State_In_Decl_Part): Removed.
6163         (Analyze_Global_Item): Detect an illegal
6164         use of a volatile constant. Detect an illegal use
6165         of a variable with enabled Effective_Reads. Enhance
6166         the error messages with references. Remove obsolete
6167         checks concerning Input_Only and Output_Only states.
6168         (Analyze_Initialization_Item): Enhance the error messages
6169         with references.
6170         (Analyze_Initializes_In_Decl_Part): Do not
6171         collect the states and variables when the initialization list
6172         is null.
6173         (Analyze_Input_Item): Enhance the error messages with references.
6174         (Analyze_Input_Output): Enhance the error messages with references.
6175         (Analyze_Pragma): Enhance the error messages with references.
6176         (Analyze_Refinement_Clause): Code reformatting.
6177         (Analyze_Refined_Depends_In_Decl_Part):
6178         Rename global variable Global to Reg_Global and update all
6179         occurrences. Add local variables D7 and D8. Update the error
6180         messages with references. Update the call to Collect_Global_Items.
6181         (Analyze_Refined_Global_In_Decl_Part): Add local variables
6182         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
6183         the call to Collect_Global_Items.  Account for a Proof_In state
6184         in null / useless refinement checks. Verify the coverage of
6185         Proof_In states.
6186         (Check_Dependency_Clause): Remove local variable
6187         Out_Constits. Remove the retrieval and removal of constituents
6188         for an Output_Only state. Remove the reporting of unused
6189         Output_Only state constituents.
6190         (Check_Duplicate_Mode): Enhance
6191         the error message with a reference.
6192         (Check_Duplicate_Property): New routine.
6193         (Check_Duplicate_Option): Enhance the error message with a reference.
6194         (Check_External_Properties): Enhance the error message with a reference.
6195         (Check_Function_Return): Enhance the error message with a reference.
6196         (Check_In_Out_States): Update
6197         comment on usage. Add a specialized error message for Proof_In
6198         constituents. Enhance the error message with a reference.
6199         (Check_Input_States): Update comment on usage. Account for
6200         possible Proof_In constituents. Enhance the error message
6201         with a areference.
6202         (Check_Matching_Constituent): Enhance the error message with a
6203         reference.
6204         (Check_Matching_State): Enchance the error message with a reference.
6205         (Check_Mode): Add local variable From_Global. Update the call to
6206         Find_Mode.  Emit more precise error messages concerning extra items
6207         (Check_Mode_Restriction_In_Enclosing_Context): Consider
6208         pragma Refined_Global.  Enhance the error message with a
6209         reference.
6210         (Check_Mode_Restriction_In_Function): Enhance the error message with
6211         a reference.
6212         (Check_Output_States): Update comment on usage. Add local variable
6213         Posted.  Account for possible Proof_In constituents. Produce a detailed
6214         list of missing constituents.
6215         (Check_Proof_In_States): New routine.
6216         (Check_Refined_Global_Item): Handle Proof_In
6217         constituents. Enchance the error message with a reference.
6218         (Collect_Global_Items): Add formal parameters Proof_In_Items
6219         and Has_Proof_In_State. Update the comment on usage. Account
6220         for Proof_In items.
6221         (Create_Or_Modify_Clause): Enchance
6222         the error message with a reference.
6223         (Find_Mode): Add
6224         formal parameter From_Global. Update the comment on usage.
6225         Detect when the mode is governed by pragma [Refined_]Global.
6226         (Output_Constituents): Removed.
6227         (Report_Extra_Constituents):
6228         Report extra Proof_In constituents.
6229         (Report_Unused_Constituents): Removed.
6230         (Usage_Error): Code reformatting. Enhance the error
6231         messages with reference.
6232         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
6233         (Analyze_External_State_In_Decl_Part): Removed.
6234         * sem_res.adb (Resolve_Actuals): Update the volatile object
6235         detection. Enhance the error message with a reference.
6236         (Resolve_Entity_Name): Update the volatile object
6237         detection. Enhance the error message with a reference.
6238         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
6239         (Is_SPARK_Volatile_Object): New routine.
6240         (Has_Volatile_Component): New routine.
6241         * sem_util.ads (Is_Delegate): Alphabetized.
6242         (Is_SPARK_Volatile_Object): New routine.
6243         (Has_Volatile_Component): New routine.
6244         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
6246 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
6248         * sem_attr.adb: Resolve fully prefix of 'Update.
6250 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
6252         * gnat_rm.texi: Minor clarifications.
6254 2014-01-27  Robert Dewar  <dewar@adacore.com>
6256         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
6257         about call that is generated as part of an Initial_Condition
6258         check.
6259         * sem_prag.adb: Minor spelling correction.
6261 2014-01-27  Robert Dewar  <dewar@adacore.com>
6263         * sem_prag.adb (Set_Convention_From_Pragma): Check that
6264         convention Ghost can only apply to functions.
6265         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
6267 2014-01-27  Robert Dewar  <dewar@adacore.com>
6269         * gnat_ugn.texi: Add Short_Enums to documentation of
6270         -gnatet/-gnateT.
6272 2014-01-27  Robert Dewar  <dewar@adacore.com>
6274         * sem_prag.adb (Analyze_Input_Item): Correct check for input
6275         item in same package.
6276         * sem_util.ads, sem_util.adb (Within_Scope): New function.
6278 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
6280         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
6281         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
6282         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
6283         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
6284         maintained.
6286 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
6288         * gcc-interface/Makefile.in: Fix oversight.
6290 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
6292         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
6293         conversion from a thin pointer with a shifted value.
6294         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
6295         read-only flag from the values onto the result.
6296         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
6298 2014-01-25  Tristan Gingold  <gingold@adacore.com>
6300         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
6301         for E_Variable with a pragma Linker_Section.
6303 2014-01-25  Robert Dewar  <dewar@adacore.com>
6305         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
6306         with Default_Value aspect is passed in by copy.
6308 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
6310         * set_targ.adb: Set Short_Enums.
6311         * gcc-interface/lang.opt (fshort-enums): New option.
6312         * gcc-interface/misc.c (gnat_handle_option): Handle it.
6313         (gnat_post_options): Do not modify the global settings.
6315 2014-01-24  Robert Dewar  <dewar@adacore.com>
6317         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
6318         function.
6319         (Random_Decimal_Fixed): New generic function.
6320         * s-rannum.ads: Minor comment clarifications.
6322 2014-01-24  Robert Dewar  <dewar@adacore.com>
6324         * back_end.adb: Remove Short_Enums handling (handled in
6325         Ttypes/Get_Targ now) Minor added comments.
6326         * freeze.adb: Change name Short_Enums_On_Target to
6327         Target_Short_Enums.
6328         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
6329         * opt.ads: Minor comment updates.
6330         * sem_ch13.adb: Change name Short_Enums_On_Target to
6331         Target_Short_Enums.
6332         * set_targ.adb: Set Short_Enums from gcc back end.
6333         * set_targ.ads (Short_Enums): New variable.
6334         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
6335         Ttypes/Get_Targ now).
6336         * ttypes.ads (Target_Short_Enums): New constant boolean switch
6338 2014-01-24  Pascal Obry  <obry@adacore.com>
6340         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
6342 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
6344         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
6345         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
6346         stripped off.
6348 2014-01-24  Robert Dewar  <dewar@adacore.com>
6350         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
6352 2014-01-24  Vincent Celier  <celier@adacore.com>
6354         * prj.adb (Add_Aggregated_Project): Do not add a project in
6355         the list if it is already there.
6357 2014-01-24  Yannick Moy  <moy@adacore.com>
6359         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
6360         Correct the search for a subrogram declaration to which a pragma is
6361         attached.
6363 2014-01-24  Bob Duff  <duff@adacore.com>
6365         * gnat_ugn.texi: Document --decimal-grouping and
6366         --based-grouping switches in gnatpp.
6368 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6370         * sinfo.ads: Documentation update.
6372 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6374         * sem_ch3.adb (Constant_Redeclaration): New declaration is
6375         illegal if previous one has an initial expression that is an
6376         aggregate expanded into assignments.
6378 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6380         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
6381         code reorganization to remove spurious warning on a loop with
6382         an array element iterator that has a null range.
6384 2014-01-24  Vincent Celier  <celier@adacore.com>
6386         * make.adb (Binding_Phase): When setting the Ada paths, use
6387         the library ALI dir, not the object dir in libraries.
6389 2014-01-24  Yannick Moy  <moy@adacore.com>
6391         * sinfo.ads: Add documentation of check flag fields.
6393 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6395         * sem_res.adb (Resolve_Actuals): If an actual is a view
6396         conversion of a discriminated object, and the formal type is
6397         discriminated and constrained, apply a discriminant check to
6398         the object itself.
6400 2014-01-24  Robert Dewar  <dewar@adacore.com>
6402         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
6404 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6406         * sem_ch3.adb (Analyze_Declarations): At the end of an
6407         appropriate declarative part, call Freeze_All from the first
6408         declaration in the scope, not from the first unfrozen one. This
6409         is necessary to apply visibility checks to entities with delayed
6410         aspects. Otherwise, in the presence of instantiations and cleanups
6411         that they may generate, the delayed aspects may be analyzed too
6412         late and produce spurious visibility errors.
6413         * sem_attr.adb: Place etype on range.
6414         * sem_ch6.adb: Documentation expression functions.
6416 2014-01-24  Robert Dewar  <dewar@adacore.com>
6418         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
6419         terminology in compiler).
6421 2014-01-24  Robert Dewar  <dewar@adacore.com>
6423         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
6424         categories, now that Ada 95 supports raise expressions.
6426 2014-01-24  Robert Dewar  <dewar@adacore.com>
6428         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
6429         Short_Enums_On_Target.
6430         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
6431         into account.
6432         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
6434 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6436         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
6437         indication is given explicity, check that it matches the array
6438         component type or the container element type of the domain
6439         of iteration.
6441 2014-01-24  Tristan Gingold  <gingold@adacore.com>
6443         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
6444         * gcc-interface/misc.c (flag_short_enums): Declare.
6445         (gnat_post_options): Set it.
6447 2014-01-24  Vincent Celier  <celier@adacore.com>
6449         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
6450         to cache the result when Including_Libraries is False.
6451         * prj-env.ads (Ada_Objects_Path): Update documentation
6452         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
6453         (Get_Object_Directory): Return the Library_Ali_Dir only when
6454         when Including_Libraries is True.
6455         * prj.ads (Get_Object_Directory): Fix and complete documentation
6456         (Project_Data): New component Ada_Objects_Path_No_Libs
6458 2014-01-24  Robert Dewar  <dewar@adacore.com>
6460         * checks.adb (Expr_Known_Valid): Result of fpt operator never
6461         considered valid.
6463 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
6465         * back_end.adb: Minor fix in comment.
6467 2014-01-24  Javier Miranda  <miranda@adacore.com>
6469         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
6470         required to report the error in case of task types.
6472 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6474         * sem_attr.adb: Additional index checking.
6476 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6478         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
6479         expressions in each component association, and for records note
6480         the entity in each association choice, for subsequent resolution.
6481         (Resolve_Attribute, case 'Update): Complete resolution of
6482         expressions in each component association.
6484 2014-01-24  Robert Dewar  <dewar@adacore.com>
6486         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
6487         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
6488         leading to wrong handling of SPARK_Mode for library units).
6490 2014-01-24  Robert Dewar  <dewar@adacore.com>
6492         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
6493         on generic instances (do not consider them to be internally
6494         generated)
6496 2014-01-24  Doug Rupp  <rupp@adacore.com>
6498         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
6499         vice pthread_sigmask.
6501 2014-01-24  Vincent Celier  <celier@adacore.com>
6503         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
6504         not default.
6506 2014-01-24  Vincent Celier  <celier@adacore.com>
6508         * prj-ext.adb (Add): Do not output anything when Silent is True,
6509         whatever the verbosity. When Source is From_External_Attribute,
6510         set the corresponding environment variable if it is not already set.
6511         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
6512         to False
6513         * prj-proc.adb (Process_Expression_For_Associative_Array):
6514         For attribute External, call Prj.Ext.Add with Silent set to
6515         True for the child environment, to avoid useless output in non
6516         default verbosity.
6518 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6520         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
6521         range given by a subtype indication, and force evaluation of
6522         the bounds, as for a simple range.
6523         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
6524         of bounds of slice for various kinds of discrete ranges.
6525         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
6526         Evaluate_Slice_Bounds.
6528 2014-01-24  Bob Duff  <duff@adacore.com>
6530         * s-taskin.ads (Activator): Make this Atomic, because
6531         Activation_Is_Complete reads it, and that can be called
6532         from any task. Previously, this component was only
6533         modified by the activator before activation, and by
6534         Self after activation.
6535         * a-taside.ads, a-taside.adb (Environment_Task,
6536         Activation_Is_Complete): Implement these missing functions.
6538 2014-01-24  Doug Rupp  <rupp@adacore.com>
6540         * init.c: Add a handler section for Android.
6542 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
6544         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
6546 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6548         * sem_ch4.adb (Operator_Check): If one operand is a
6549         Raise_Expression, set its type to that of the other operand.
6550         * sem_res.adb (Resolve_Raise_Expression): new procedure.
6551         (Resolve_Actuals): For an actual that is a Raise_Expression,
6552         set the type to that of the formal.
6553         * sem_type.adb (Find_Unique_Type): If one of the operands is a
6554         Raise_Expression, return type of the other operand.
6556 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6558         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
6559         component of the record has a type with a default aspect, and
6560         the corresponding aggregate component is initiaized with a box,
6561         use the default value in the rewritten aggregate.
6563 2014-01-24  Tristan Gingold  <gingold@adacore.com>
6565         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
6566         s-interr-sigaction.adb,
6567         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
6568         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
6569         to the call to Install_Restricted_Handlers.
6571 2014-01-24  Emmanuel Briot  <briot@adacore.com>
6573         * prj-nmsc.adb (Check_File): Add protection when the source is
6574         not fully initialized.
6576 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
6578         * sem_util.adb (Is_Post_State): In a postcondition, a selected
6579         component that denotes an implicit dereference is a reference
6580         to the post state of the subprogram.
6582 2014-01-24  Robert Dewar  <dewar@adacore.com>
6584         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
6585         for generated subprograms.
6586         (Analyze_Subprogram_Specification): Ditto.
6588 2014-01-24  Vincent Celier  <celier@adacore.com>
6590         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
6591         attributes in package Builder of aggregate and aggregate library
6592         projects.
6593         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
6594         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
6595         Remove parameters.  Change error message from "... externally
6596         build library ..." to "... externally built project ...".
6597         (Process_Naming_Scheme.Check): Do not do any check in aggregate
6598         project, as attribute Library_Dir and Library_Name have already
6599         been detected as forbidden.
6601 2014-01-24  Vincent Celier  <celier@adacore.com>
6603         * prj-env.adb (Find_Project): If cached project path is not in
6604         project directory, look in current directory first and use cached
6605         project path only if project is not found in project directory.
6607 2014-01-24  Robert Dewar  <dewar@adacore.com>
6609         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
6611 2014-01-24  Vincent Celier  <celier@adacore.com>
6613         * projects.texi: Document that aggregate projects are only
6614         supported by gprbuild, but not by gnatmake.  Document that the
6615         only attribute Switches in package Binder of aggregate projects
6616         will be ignored if its index is not others.  Document that
6617         attribute Global_Config_File is allowed in package Binder of
6618         aggregate projects.
6620 2014-01-24  Robert Dewar  <dewar@adacore.com>
6622         * sem_prag.adb: Minor code reorganization.
6623         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
6625 2014-01-24  Pascal Obry  <obry@adacore.com>
6627         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
6628         attribute definition.
6630 2014-01-24  Vincent Celier  <celier@adacore.com>
6632         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
6633         in the Queue the same source (same path, same multi-source index)
6634         from the same project file, to avoid compiling several times
6635         the same source.
6637 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
6639         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
6640         (Has_Gigi_Rep_Item): Likewise.
6641         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
6642         Has_Gigi_Rep_Item for objects.
6643         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
6644         (prepend_one_attribute): ...this.
6645         (prepend_one_attribute_pragma): New function extracted from...
6646         (prepend_attributes): ...here.  Swap the parameters for consistency.
6647         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
6648         prepend_attributes.
6649         <object>: Deal with a pragma Linker_Section on a constant
6650         or variable.  <E_Function>: Deal with a pragma Linker_Section
6651         on a subprogram.
6652         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
6654 2014-01-24  Vincent Celier  <celier@adacore.com>
6656         * opt.ads: Minor comment update.
6658 2014-01-24  Robert Dewar  <dewar@adacore.com>
6660         * sem_prag.adb (Analyze_Input_Output): Add missing error check
6661         for junk operand.
6662         * sem_util.adb (Is_Refined_State): Add defense against junk
6663         tree from error.
6665 2014-01-24  Pascal Obry  <obry@adacore.com>
6667         * projects.texi: Removes Build_Slaves attribute documentation.
6669 2014-01-23  Robert Dewar  <dewar@adacore.com>
6671         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
6672         setting.
6674 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
6676         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
6677         applies to expressions that come from source.
6678         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
6679         message.
6680         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
6681         rule regarding potentially unevaluated expressions, to prefix
6682         of attribute.
6684 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
6686         * exp_util.adb (Make_Invqriant_Call): If type of expression is
6687         a private extension, get invariant from base type.
6689 2014-01-23  Robert Dewar  <dewar@adacore.com>
6691         * sem_util.adb, sem_attr.adb: Minor reformatting.
6693 2014-01-23  Robert Dewar  <dewar@adacore.com>
6695         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
6696         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
6697         * sem.adb (Semantics): Remove save/restore of
6698         SPARK_Mode[_Pragma]. Not needed since already done in
6699         Save/Restore_Opt_Config_Switches.
6701 2014-01-23  Robert Dewar  <dewar@adacore.com>
6703         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
6704         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
6705         Linker_Section enhancements.
6707 2014-01-23  Tristan Gingold  <gingold@adacore.com>
6709         * gnat_rm.texi: Minor editing.
6711 2014-01-23  Robert Dewar  <dewar@adacore.com>
6713         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
6714         with'ed internal units.
6715         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
6717 2014-01-23  Javier Miranda  <miranda@adacore.com>
6719         * lib-xref.adb (Generate_Reference): As part of processing the
6720         "end-of-spec" reference generate an extra reference to the first
6721         private entity of the package.
6722         * xr_tabls.adb (Add_Reference): No action needed for the extra
6723         'E' reference associated; similar to the processing of the
6724         'e' reference.
6726 2014-01-23  Bob Duff  <duff@adacore.com>
6728         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
6730 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
6732         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
6733         predicate to implement rule given in 6.1.1 (20/3).
6734         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
6735         'Old in a postcondition, if it is potentially unevaluated and
6736         it is not an entity name.
6738 2014-01-23  Bob Duff  <duff@adacore.com>
6740         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
6742 2014-01-23  Robert Dewar  <dewar@adacore.com>
6744         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
6745         msg on VMS.
6747 2014-01-23  Bob Duff  <duff@adacore.com>
6749         * g-dynhta.ads: Minor comment fix.
6751 2014-01-23  Yannick Moy  <moy@adacore.com>
6753         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
6754         from spec on body only when not already inherited on spec. Set
6755         SPARK_Mode from context on body without previous spec.  *
6756         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
6757         library-level entities.  Correct retrieval of entity from
6758         declaration, for cases where the declaration is not a unit.
6759         * sem_ch12.adb (Instantiate_Object): Avoid
6760         calling Is_Volatile_Object on an empty node.
6762 2014-01-23  Robert Dewar  <dewar@adacore.com>
6764         * gnatlink.adb (Gnatlink): Check for suspicious executable file
6765         names on windows.
6767 2014-01-23  Robert Dewar  <dewar@adacore.com>
6769         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
6770         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
6771         style errors in instances.
6772         * g-dynhta.ads (Static_HTable): Comment updates.
6774 2014-01-23  Vincent Celier  <celier@adacore.com>
6776         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
6777         to find a configuration project file when Config_File_Name is
6778         No_Configuration_File.
6779         * prj-conf.ads (No_Configuration_File): New constant String.
6780         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
6781         with Config_File_Name set to No_Configuration_File, so that
6782         no existing configuration project file will be used, and the
6783         configuration project will be only created in memory when
6784         Add_Default_GNAT_Naming_Scheme is called.
6785         * projects.texi: Minor reformatting.
6787 2014-01-23  Vincent Celier  <celier@adacore.com>
6789         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
6790         a config project file if On_Load_Config is not null.
6791         * prj-pars.adb: Minor comment changes.
6793 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
6795         * lib-xref.adb (Output_References): Output progenitors of
6796         synchronized tagged types, for source navigation.
6798 2014-01-23  Robert Dewar  <dewar@adacore.com>
6800         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
6801         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
6802         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
6804 2014-01-23  Emmanuel Briot  <briot@adacore.com>
6806         * prj-conf.adb (Get_Or_Create_Configuration_File): call
6807         On_Load_Config later.
6809 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
6811         * sem_ch3.adb (Analyze_Declarations): Do not
6812         generate the spec of the late primitive in ASIS mode. Add two
6813         comments to explain the special cases when the expansion is
6814         not performed.
6816 2014-01-23  Robert Dewar  <dewar@adacore.com>
6818         * sem_util.adb (Note_Possible_Modification): Fix error of
6819         misbehaving for implicit dereference cases in -gnatc mode.
6821 2014-01-23  Emmanuel Briot  <briot@adacore.com>
6823         * prj-pars.adb: Minor reformatting.
6825 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
6827         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
6828         body generated for an expression function within a protected body
6829         needs a set of renaming declarations if the expression function
6830         comes from source.
6832 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
6834         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
6835         list interface progenitor of a tagged concurrent type, for better
6836         source navigation.
6838 2014-01-22  Robert Dewar  <dewar@adacore.com>
6840         * lib.adb (In_Extended_Main_Code_Unit): Return False for
6841         Standard_Location.
6842         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
6843         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
6844         treatment of Slocs No_Location and Standard_Location.
6845         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
6846         check for entity with Standard_Location Sloc, rather than relying
6847         on Lib routines to do that.
6848         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
6849         that a call cannot occur before a later occuring body within
6850         the same unit.
6852 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6854         * rtsfind.adb: Update comment.
6856 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
6858         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
6859         * sem_ch3.adb (Analyze_Declarations): Add local variable
6860         Body_Seen. Generate the spec of a late controlled
6861         primitive body that is about to freeze its related type.
6862         (Handle_Late_Controlled_Primitive): New routine.
6864 2014-01-22  Robert Dewar  <dewar@adacore.com>
6866         * a-stream.adb: Minor reformatting.
6868 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
6870         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
6871         sub-procedure Declared_In_Actual to handle properly the visibility
6872         of actuals in actual packages, that are themselves actuals to a
6873         actual package of the current instance. This mimics properly the
6874         visibility of formals of formal packages declared with a box,
6875         within the corresponding generic unit.
6877 2014-01-22  Robert Dewar  <dewar@adacore.com>
6879         * checks.adb: Do not assume that a volatile variable is valid.
6881 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6883         * g-catiio.ads (Image, Value): Clarify that these functions
6884         operate in the local time zone.  Minor documentation update.
6886 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6888         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
6890 2014-01-22  Robert Dewar  <dewar@adacore.com>
6892         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
6893         Moved to sem_aux.adb.
6895 2014-01-22  Robert Dewar  <dewar@adacore.com>
6897         * vms_data.ads: Minor reformatting.
6899 2014-01-22  Robert Dewar  <dewar@adacore.com>
6901         * debug.adb: Document messages affected by -gnatd.E including
6902         the new ones that relate to late definition of equality.
6903         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
6904         debug flag -gnatd.E is set, then generate warnings rather than
6905         errors.
6906         (Check_Untagged_Equality): In earlier versions of Ada,
6907         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
6909 2014-01-22  Robert Dewar  <dewar@adacore.com>
6911         * sem_prag.adb (Usage_Error): Output additional messages for
6912         unconstrained OUT parameters lacking an input dependency.
6914 2014-01-22  Robert Dewar  <dewar@adacore.com>
6916         * sem_ch4.adb: Minor reformatting.
6918 2014-01-22  Robert Dewar  <dewar@adacore.com>
6920         * restrict.ads: Minor reformatting.
6921         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
6922         forbids a call from within a subprogram to the same subprogram.
6924 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6926         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
6927         stream attributes for Stream_Element_Array.
6928         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
6929         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
6930         defined in the current scope.
6932 2014-01-22  Robert Dewar  <dewar@adacore.com>
6934         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
6936 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6938         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
6940 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6942         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
6943         declaration initialized with a function call, whose type
6944         has variable size, need to remove side effects so that the
6945         initialization expression becomes a dereference of a temporary
6946         reference to the function result.
6948 2014-01-22  Yannick Moy  <moy@adacore.com>
6950         * errout.adb (Initialize): Remove trick to add dummy entry
6951         in Warnings table.
6952         * erroutc.adb (Set_Warnings_Mode_Off,
6953         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
6954         command line switch.
6955         * opt.ads (Warning_Mode): Document behavior
6956         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
6958 2014-01-22  Robert Dewar  <dewar@adacore.com>
6960         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
6962 2014-01-22  Robert Dewar  <dewar@adacore.com>
6964         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
6965         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
6966         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
6967         case Storage_Size): call Check_Pool_Size_Clash.
6969 2014-01-22  Robert Dewar  <dewar@adacore.com>
6971         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
6972         sem_eval.ads: Minor reformatting.
6974 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6976         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
6977         Any_Composite to prevent cascaded errors.
6979 2014-01-22  Yannick Moy  <moy@adacore.com>
6981         * errout.adb (Initialize): Do not insert special entry in Warnings
6982         table in GNATprove_Mode.
6983         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
6984         GNATprove_Mode.
6985         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
6986         warnings anymore.
6988 2014-01-22  Robert Dewar  <dewar@adacore.com>
6990         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
6991         initializes case.
6993 2014-01-22  Robert Dewar  <dewar@adacore.com>
6995         * snames.ads-tmpl: Update header.
6997 2014-01-22  Thomas Quinot  <quinot@adacore.com>
6999         * exp_util.adb (Insert_Actions): When inserting actions on a
7000         short circuit operator that has already been analyzed, do not park
7001         actions in node; instead introduce an N_Expression_With_Actions
7002         and insert actions immediately.
7003         Add guard for unexpected case of climbing up through statement
7004         in Actions list of an N_Expression_With_Actions.
7005         * sem_elab.adb (Insert_Elab_Check): Remove complex
7006         specialized circuitry for the case where the context is already
7007         analyzed, as it is not needed and introduces irregularities in
7008         finalization. Instead rely on the above change to Insert_Actions
7009         to ensure that late insertion on short circuit operators works
7010         as expected.
7012 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
7014         * sem_ch4.adb (Operator_Check): Improve error message when an
7015         operand of concatenation is an access type.
7017 2014-01-22  Thomas Quinot  <quinot@adacore.com>
7019         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
7020         cascaded error.
7022 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
7024         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
7025         of an expanded name in a proper body, whose prefix is a package
7026         in the context of the proper body, when there is a homonym of
7027         the package declared in the parent unit.
7029 2014-01-22  Robert Dewar  <dewar@adacore.com>
7031         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
7032         msg if errors found.
7033         (Check_One_Unit): Same change.
7035 2014-01-22  Robert Dewar  <dewar@adacore.com>
7037         * ug_words: Add missing/wrong entries for VMS warning switches.
7038         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
7040 2014-01-22  Jerome Guitton  <guitton@adacore.com>
7042         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
7043         arm.
7045 2014-01-22  Robert Dewar  <dewar@adacore.com>
7047         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
7049 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7051         * gcc-interface/Makefile.in: Minor fixes.
7053 2014-01-21  Robert Dewar  <dewar@adacore.com>
7055         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
7056         * par-ch5.adb (P_Condition): New version with expression prescanned.
7057         * par.adb (P_Condition): New version with expression prescanned.
7059 2014-01-21  Robert Dewar  <dewar@adacore.com>
7061         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
7062         if Address is not a private type.
7063         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
7064         Ignore pragma if System.Address is not a private type.
7066 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7068         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
7069         uninitialized value.
7071 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7073         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
7075 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7077         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
7078         the value of Assertions_Enabled flag when compiling an instance of
7079         an internal unit. This facilitates the use of pre/postconditions
7080         in generic internal units, such as the new elementary function
7081         libraries.
7083 2014-01-21  Robert Dewar  <dewar@adacore.com>
7085         * exp_aggr.adb: Minor reformatting.
7086         * sem_attr.adb: Minor reformatting.
7087         * sem_res.adb: Minor comment addition.
7088         * einfo.adb: Minor comment updates.
7089         * freeze.adb: Minor reformatting and code reorganization.
7091 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7093         * par-ch4.adb (P_If_Expression): Handle more gracefully an
7094         elsif clause that does not have an else part.
7096 2014-01-21  Robert Dewar  <dewar@adacore.com>
7098         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
7099         * gcc-interface/Makefile.in: clean up target pairs.
7101 2014-01-21  Pascal Obry  <obry@adacore.com>
7103         * projects.texi: Minor typo fix.
7105 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7107         * freeze.adb (Check_Component_Storage_Order): If a record type
7108         has an explicit Scalar_Storage_Order attribute definition clause,
7109         reject any component that itself is of a composite type and does
7110         not have one.
7112 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7114         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
7115         can be used to generate proper cross-reference information for
7116         the parent units of proper bodies.
7118 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7120         * exp_pakd.adb (Expand_Packed_Element_Set,
7121         Expand_Packed_Element_Reference): No byte swapping required in
7122         the front-end for the case of a reverse storage order array,
7123         as this is now handled uniformly in the back-end.  However we
7124         still need to swap back an extracted element if it is itself a
7125         nested composite with reverse storage order.
7127 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
7129         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
7130         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
7131         include "others".
7133 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7135         * gnat_ugn.texi: Minor updates.
7137 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7139         * exp_pakd.adb: Update comment, minor reformatting.
7141 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
7143         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
7144         object check when SPARK_Mode is on.
7145         * sem_ch6.adb (Process_Formals): Trigger the volatile object
7146         check when SPARK_Mode is on.
7147         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
7148         check when SPARK_Mode is on.
7149         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
7150         corresponding pragma of aspect SPARK_Mode in the visible
7151         declarations of a package declaration.
7152         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
7153         check when SPARK_Mode is on.
7154         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
7155         check when SPARK_Mode is on.
7156         (Resolve_Entity_Name): Trigger
7157         the volatile object check when SPARK_Mode is on.
7159 2014-01-21  Robert Dewar  <dewar@adacore.com>
7161         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
7162         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
7164 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7166         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
7167         object is declared, it is rewritten as a renaming of an dynamic
7168         expression that wraps the initial value.  The renaming declaration
7169         is first given an internal name, to prevent collisions with the
7170         entity already declared, and then the name is modified to reflect
7171         the original one. the modification of the name must preserve
7172         the source location of the original, to prevent spurious errors
7173         when compiling with style checks if the declaration involves
7174         more than one entity.
7176 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
7178         * aspects.adb Add entries for Async_Readers, Async_Writers,
7179         Effective_Reads and Effective_Writes in table Canonical_Aspect.
7180         * aspects.ads Add entries for Async_Readers, Async_Writers,
7181         Effective_Reads and Effective_Writes in tables Aspect_Id,
7182         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
7183         * atree.adb (Ekind_In): New version with 8 parameters.
7184         (Node34): New routine.
7185         (Set_Node34): New routine.
7186         * atree.ads (Ekind_In): New version with 8 parameters.
7187         (Node34): New routine.
7188         (Set_Node34): New routine.
7189         * einfo.adb Contract is now Node34.
7190         (Contract): Update the assertion and node usage.
7191         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
7192         Effective_Reads and Effective_Writes.
7193         (Set_Contract): Update the assertion and node usage.
7194         (Write_Field24_Name): Remove the output for a contract.
7195         (Write_Field34_Name): Add output for a contract.
7196         * einfo.ads Contract is now Node34. Update the comment on
7197         attribute usage and related node structures.
7198         (Get_Pragma): Update the comment on usage.
7199         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
7200         Effective_Reads and Effective_Writes do not require special
7201         processing by the parser.
7202         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
7203         (Analyze_Declarations): Analyze the contract of a variable at
7204         the end of the declarative region.
7205         (Analyze_Object_Declaration): Create a contract for a variable.
7206         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
7207         of classification pragmas.
7208         (Process_Formals): Detect an illegal
7209         use of a volatile object as a formal in a function.
7210         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
7211         a volatile object as an actual in generic instantiation.
7212         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
7213         Effective_Reads and Effective_Writes in table Sig_Flags.
7214         (Analyze_External_State_In_Decl_Part): New routine.
7215         (Analyze_Global_Item): Detect an illegal use of a volatile object
7216         as a global item of a function.
7217         (Analyze_Pragma): Reimplement
7218         pragma Abstract_State. Add support for pragmas Async_Readers,
7219         Async_Writers, Effective_Reads and Effective_Writes.
7220         (Check_External_Properties): New routine.
7221         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
7222         (Check_External_Properties): New routine.
7223         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
7224         volatile object as an actual in a call.
7225         (Resolve_Entity_Name):
7226         Add local variables Par, Prev and Usage_OK. Detect illegal
7227         contexts of volatile objects.
7228         * sem_util.adb (Add_Contract_Item): Add support for
7229         pragmas associated with the contract of a variable.
7230         (Async_Readers_Enabled): New routine.
7231         (Async_Writers_Enabled): New routine.
7232         (Effective_Reads_Enabled): New routine.
7233         (Effective_Writes_Enabled): New routine.
7234         (Has_Enabled_Property):
7235         New routine.
7236         (Is_Unchecked_Conversion_Instance): New routine.
7237         (Is_Volatile_Object): Add support for entities that may denote
7238         a volatile object.
7239         * sem_util.ads (Add_Contract_Item): Update the
7240         comment on usage.
7241         (Async_Readers_Enabled): New routine.
7242         (Async_Writers_Enabled): New routine.
7243         (Effective_Reads_Enabled): New routine.
7244         (Effective_Writes_Enabled): New routine.
7245         (Is_Unchecked_Conversion_Instance): New routine.
7246         * sinfo.ads Update the comment on the structure of N_Contract.
7247         * snames.ads-tmpl Add predefined names for Async_Readers,
7248         Async_Writers, Effective_Reads and Effective_Writes. Add
7249         pragma ids for Async_Readers, Async_Writers, Effective_Reads
7250         and Effective_Writes.
7252 2014-01-21  Robert Dewar  <dewar@adacore.com>
7254         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
7255         * sem_eval.adb (Compile_Time_Known_Value): Remove special
7256         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
7257         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
7258         (Test_Foldable): Add CRT_Safe parameter
7259         * sem_eval.ads (Compile_Time_Known_Value): Remove special
7260         handling of CRT mode.
7261         (CRT_Safe_Compile_Time_Known_Value): New function.
7263 2014-01-21  Robert Dewar  <dewar@adacore.com>
7265         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
7266         with pragma or aspect that applies to package spec or subprogram
7267         spec.
7269 2014-01-21  Robert Dewar  <dewar@adacore.com>
7271         * exp_aggr.adb: Minor reformatting.
7273 2014-01-21  Johannes Kanig  <kanig@adacore.com>
7275         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
7277 2014-01-21  Bob Duff  <duff@adacore.com>
7279         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
7281 2014-01-21  Steve Baird  <baird@adacore.com>
7283         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
7285 2014-01-21  Vincent Celier  <celier@adacore.com>
7287         * prj-part.adb (Parse_Single_Project): Accept to extend a project
7288         if it has only be imported by an project being extended. When a
7289         project that has only been imported by a project being extended
7290         is imported by another project that is not being extended,
7291         reset the previous indication, so that it will be an error if
7292         this project is extended later.
7293         * prj-tree.adb (Create_Project): Include component From_Extended
7294         in table Projects_HT
7295         * prj-tree.ads (Project_Name_And_Node): New Boolean component
7296         From_Extended
7298 2014-01-21  Robert Dewar  <dewar@adacore.com>
7300         * atree.ads, atree.adb: Add Node33 and Set_Node33.
7301         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
7302         New field (SPARK_Pragma_Inherited): New flag
7303         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
7304         Removed.
7305         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
7306         * opt.ads (SPARK_Mode_Pragma): New global variable.
7307         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
7308         * sem_ch3.adb: Use new SPARK_Mode data structures.
7309         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
7310         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
7311         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
7312         (Pop_Scope): Restore SPARK_Mode_Pragma.
7313         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
7314         new data structures.
7316 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7318         * back_end.adb: Undo previous change, not needed. Minor reformatting.
7320 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7322         * exp_ch5.adb: Fix comment.
7323         * switch-c.adb: Minor comment update.
7324         * exp_ch3.adb: Minor reformatting.
7326 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7328         * back_end.adb (Scan_Compiler_Arguments): Do not store object
7329         filename in gnatprove mode.
7331 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7333         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
7334         suppresses usage of primitive _assign for tagged types).
7335         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
7336         No_Ctrl_Actions for a tagged type that does not require
7337         finalization, as we want to disable usage of _assign (which
7338         may cause undesirable discriminant checks on an uninitialized,
7339         invalid target).
7341 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7343         * sem_prag.adb: Reject invariant'class on completion.
7345 2014-01-21  Javier Miranda  <miranda@adacore.com>
7347         * exp_ch3.adb (Build_Init_Procedure): For
7348         derivations of interfaces, do not move the the initialization
7349         of the _parent field since such assignment is not generated.
7351 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7353         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
7354         with the operator it renames if we are within an expression of
7355         a pre/postcondition, because the expression will be reanalyzed
7356         at a later point, and the analysis of the renaming may affect
7357         the visibility of the operator when in an instance.
7359 2014-01-21  Robert Dewar  <dewar@adacore.com>
7361         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
7362         Add this flag to type conversion nodes and assignment nodes.
7363         * treepr.adb: Deal properly with Flag 1,2,3.
7364         * treeprs.adt: Minor comment update.
7366 2014-01-21  Robert Dewar  <dewar@adacore.com>
7368         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
7369         parameter.
7370         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
7371         parameter, completely rewrite spec.
7373 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7375         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
7376         instance that is inlined, it may have been rewritten as a wrapper
7377         package. In that case the unit that must be made visible is the
7378         related instance of the package.
7380 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7382         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
7383         previous change in codepeer mode.
7385 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7387         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
7388         call to Abort_Undefer, as expected by the runtime.
7389         * s-tasren.adb (Local_Complete_Rendezvous): Replace
7390         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
7391         deferred at this point. Update comments.
7393 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7395         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
7397 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7399         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
7400         remove from doc.
7402 2014-01-21  Robert Dewar  <dewar@adacore.com>
7404         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
7406 2014-01-21  Thomas Quinot  <quinot@adacore.com>
7408         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
7409         this is value is used in Node_Id arithmetic operations.
7410         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
7411         instead of hard-coded unrolled code.
7413 2014-01-21  Yannick Moy  <moy@adacore.com>
7415         * gnat1drv.adb: Minor code cleanup, removing useless code.
7417 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
7419         * opt.ads (SPARK_Switches_File_Name): New.
7420         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
7421         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
7422         * gnat_ugn.texi: Document -gnates.
7424 2014-01-21  Yannick Moy  <moy@adacore.com>
7426         * errout.adb (Special_Msg_Delete): Update comment. Remove
7427         special case for GNATprove which should not ignore mismatch
7428         in sizes for representation clauses.
7429         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
7430         which should not ignore pragma Pack.
7432 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7434         * sem_ch4.adb: Code clean up.
7436 2014-01-21  Steve Baird  <baird@adacore.com>
7438         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
7440 2014-01-21  Robert Dewar  <dewar@adacore.com>
7442         * gcc-interface/gigi.h: Get Flags array address.
7443         * gcc-interface/trans.c: Acquire Flags array address.
7444         * atree.adb: Add support for Flags array and Flag0,1,2,3.
7445         * atree.ads: Add support for Flags array and Flag0,1,2,3.
7446         * atree.h: Add support for Flags array and Flag0,1,2,3.
7447         * back_end.adb: Pass Flags array address to gigi.
7449 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7451         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
7452         reference to generated body so that legality checks on stream
7453         attributes are properly applied. If type is tagged and already
7454         frozen, insert generated body at the point of the renaming
7455         declaration.
7457 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
7459         * sem_ch12.adb: Code clean up.
7460         * sem_ch8.adb: Minor reformatting
7462 2014-01-20  Robert Dewar  <dewar@adacore.com>
7464         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
7465         converting warnings on inevitable exceptions to errors.
7466         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
7467         converting warnings on inevitable exceptions to errors.
7468         * opt.adb (SPARK_Mode_Config): Handled like other config flags
7469         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
7470         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
7471         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
7472         New flag (Config_Switches_Type): Add SPARK_Mode field
7473         * sem.adb: Minor code reorganization (remove unnecessary with)
7474         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
7475         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
7476         converting warnings on inevitable exceptions to errors.
7477         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
7478         converting warnings on inevitable exceptions to errors.
7479         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
7480         converting warnings on inevitable exceptions to errors.
7481         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
7482         converting warnings on inevitable exceptions to errors.
7483         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
7484         from spec if needed
7485         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
7486         from spec if needed
7487         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
7488         Restore SPARK_Mode
7489         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
7490         converting warnings on inevitable exceptions to errors.
7491         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
7492         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
7493         of Get_SPARK_Mode_Id
7494         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
7495         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
7496         converting warnings on inevitable exceptions to errors.
7497         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
7498         converting warnings on inevitable exceptions to errors.
7499         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
7500         SPARK_Mode_Type
7502 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7504         * sem_ch13.adb: Add semantic information to rewritten type
7505         reference.
7507 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7509         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
7510         are of a type with unknown discriminants, convert both to the
7511         underlying view of the type, so that the proper constraint check
7512         can be applied to the right-hand side.
7514 2014-01-20  Robert Dewar  <dewar@adacore.com>
7516         * atree.adb (Copy_Node): Fix failure to copy last component
7517         (Exchange_Entities): Fix failure to exchange last entity
7519 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7521         * sem_ch12.adb: Code clean up.
7523 2014-01-20  Robert Dewar  <dewar@adacore.com>
7525         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
7527 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7529         * sem_ch4.adb (Analyze_Quantified_Expression): If after
7530         pre-analysis  the loop parameter specification has been
7531         rewritten as a iterator specification, propagate the change to
7532         the quantified expression, for ASIS navigtion needs.
7534 2014-01-20  Vincent Celier  <celier@adacore.com>
7536         * par-ch10.adb: Minor error message change: escape [ and ].
7538 2014-01-20  Robert Dewar  <dewar@adacore.com>
7540         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
7541         * errout.adb: Implement [ and ] insertion characters.
7542         * errout.ads: Document new [ and ] insertion characters.
7543         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
7544         addition of ??? comment.
7545         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
7546         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
7547         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
7548         Make warnings on exceptions into errors in GNATprove mode.
7549         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
7550         in error messages.
7552 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7554         * sem_ch13.adb: Code clean up.
7556 2014-01-20  Robert Dewar  <dewar@adacore.com>
7558         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
7559         messages.
7560         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
7561         error in GNATprove mode.
7563 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7565         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
7566         reference 'Old takes no parameters, and thus can appear as a
7567         prefix of a slice.
7569 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
7571         * exp_aggr.adb: Fix minor typos.
7573 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7575         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
7576         instance the attribute is legal, and its value is determined
7577         statically if the type has no discriminants. This choice is
7578         more useful than rechecking the legality rule in the instance,
7579         is consistent with older usage, and is also consistent with all
7580         existing tests.
7582 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
7584         * sem_cat.adb (Validate_Static_Object_Name): Change error into
7585         warning in Relaxed_Semantic_Mode.
7587 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7589         * sem_attr.adb: Code and comments cleanup.
7591 2014-01-20  Yannick Moy  <moy@adacore.com>
7593         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
7594         * errout.adb (Compilation_Errors): Remove special handling in
7595         GNATprove mode.
7596         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
7597         removed debug flags.
7598         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
7599         Global, Initial_Condition, Initializes and Refined_State pragmas and
7600         aspects.
7601         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
7602         SPARK_Strict_Mode): Remove global flags.
7603         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
7604         always performed now, on packages declaring a null state.
7605         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
7606         at providing pedantic mode for bounds of integer types.
7607         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
7608         "some" quantified expression now issued under control of -gnatw.t,
7609         like the other warning on unused bound variable.
7610         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
7611         on removed flag.
7612         (Analyze_Pragma): Remove tests for SPARK 2014
7613         pragmas, not officially allowed by GNAT.
7615 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7617         * sem_prag.adb (Analyze_Pragma): Ensure that
7618         the sole argument of pragmas Abstract_State, Contract_Cases,
7619         Depends, Global and Initializes in in aggregate form.
7620         (Analyze_Refined_Pragma): Ensure that the sole argument of
7621         pragmas Refined_Depends, Refined_Global and Refined_State is in
7622         aggregate form.
7623         (Ensure_Aggregate_Form): New routine.
7625 2014-01-20  Doug Rupp  <rupp@adacore.com>
7627         * sem_attr.adb (Analyze_Attribute): case
7628         Attribute_Constrained => treat all prefixes as legal for Declib
7629         compatibility.
7631 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7633         * sem_prag.adb (Check_Mode): Reimplement the routine.
7634         (Find_Mode): New routine.
7636 2014-01-20  Robert Dewar  <dewar@adacore.com>
7638         * sem_ch4.adb (Operator_Check): Handle additional
7639         Allow_Integer_Address cases.
7641 2014-01-20  Robert Dewar  <dewar@adacore.com>
7643         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
7644         allowed if address is non-private, no longer true.
7645         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
7646         Remove check for address being private, causes difficulty when
7647         pragma used in gnat.adc file and is not needed, since we guard
7648         this in Address_Integer_Convert_OK.
7649         * exp_ch7.adb: Minor reformatting.
7650         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
7652 2014-01-20  Robert Dewar  <dewar@adacore.com>
7654         * checks.adb (Apply_Range_Check): Remove gnatprove special
7655         casing of exponentiation.
7656         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
7657         operand for integer case to check range against Natural.
7659 2014-01-20  Robert Dewar  <dewar@adacore.com>
7661         * s-tataat.adb: Minor reformatting.
7663 2014-01-20  Robert Dewar  <dewar@adacore.com>
7665         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
7666         entities, and also fix documentation to remove mention of visible
7667         integer type, since this is not what the implementation does.
7668         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
7669         entities, and also fix documentation to remove mention of visible
7670         integer type, since this is not what the implementation does.
7671         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
7672         function.
7673         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
7674         case for parameter type check.
7675         * sem_res.adb (Resolve): Use new function
7676         Address_Integer_Convert_OK.
7677         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
7678         reformatting throughout.
7679         * sem_util.adb (Address_Integer_Convert_OK): New function.
7680         * sem_util.ads: Minor reformatting (put specs in alpha order)
7681         (Address_Integer_Convert_OK): New function.
7683 2014-01-20  Thomas Quinot  <quinot@adacore.com>
7685         * exp_ch7.adb (Wrap_Transient_Expression):
7686         Insertion extra conditional expression only if
7687         Opt.Suppress_Control_Flow_Optimizations is set.
7689 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
7691         * s-tataat.adb (Initialize_Attributes): Abort might already be
7692         deferred in Create_Task.
7694 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7696         * checks.adb (Apply_Scalar_Range_Check): Flag
7697         the exponent as requiring a range check when the expression is
7698         an exponentiation.
7700 2014-01-20  Fedor Rybin  <frybin@adacore.com>
7702         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
7704 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7706         * sem_util.adb (Default_Initialization): New routine.
7707         * sem_util.ads: Add new type Default_Initialization_Kind.
7708         (Default_Initialization): New routine.
7710 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7712         * sem_prag.adb (Check_Mode): Correct all error
7713         message logic dealing with in/in out parameters that may appear
7714         as inputs or have a self reference.
7716 2014-01-20  Robert Dewar  <dewar@adacore.com>
7718         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
7719         * sem_res.adb (Resolve): Fix error causing infinite loop for
7720         integer used as address. Allow addresses as integers.
7722 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
7724         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
7726 2014-01-20  Bob Duff  <duff@adacore.com>
7728         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
7729         error when "use all" is not followed by "type".
7731 2014-01-20  Bob Duff  <duff@adacore.com>
7733         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
7734         followed by free.
7736 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7738         * checks.adb (Apply_Address_Clause_Check): If there is an
7739         alignment check on the expression in an address clause, and there
7740         is no local exception propagation, add an additional explanatory
7741         message to clarify the cause of previous warning.
7743 2014-01-20  Robert Dewar  <dewar@adacore.com>
7745         * exp_ch7.adb: Minor reformatting.
7746         * opt.ads: Minor comment updates.
7747         * sem.adb: Minor name change Is_Main_Unit =>
7748         Is_Main_Unit_Or_Main_Unit_Spec.
7749         * sem_ch6.adb: Minor reformatting and code reorganization.
7751 2014-01-20  Bob Duff  <duff@adacore.com>
7753         * gnat_ugn.texi: Update gnatpp switches.
7755 2014-01-20  Thomas Quinot  <quinot@adacore.com>
7757         * exp_ch9.adb: Minor comment edit.
7759 2014-01-20  Robert Dewar  <dewar@adacore.com>
7761         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
7762         only if System.Address is a private type.
7763         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
7764         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
7765         Allowed only if type System.Address is private, since otherwise
7766         it makes no sense.
7767         * sem_res.adb: Fix failure to properly Analyze unchecked
7768         conversions that were introduced by Allow_Integer_Address.
7769         * switch-c.adb: Remove -gnates switch.
7770         * usage.adb: Remove -gnates switch.
7771         * gnat_ugn.texi: Remove documentation of -gnates flag.
7773 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7775         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
7776         resolve expression to perform proper name capture.
7778 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7780         * sem.adb (Semantics): When saving/restoring configuration
7781         switches, the spec of a pre- defined unit that is the main unit
7782         must be treated as a predefined unit as well.
7784 2014-01-20  Thomas Quinot  <quinot@adacore.com>
7786         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
7787         expression, insert an extra conditional expression when saving
7788         the value of the expression, for the benefit of control flow
7789         graph based coverage analysis.
7790         * exp_ch3.adb: Minor reformatting.
7792 2014-01-20  Robert Dewar  <dewar@adacore.com>
7794         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
7795         * gnat_rm.texi: Document pragma Allow_Integer_Address.
7796         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
7797         * opt.ads: New flag Allow_Integer_Address.
7798         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
7799         * sem_ch5.adb: Minor reformatting.
7800         * sem_prag.adb: Implement pragma Allow_Integer_Address.
7801         * sem_res.adb (Resolve): Allow integer address value if
7802         switch set.
7803         * sem_util.adb: Minor reformatting.
7804         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
7805         * switch-c.adb: Recognize flag -gnates.
7806         * usage.adb: Document flag -gnates.
7808 2014-01-20  Thomas Quinot  <quinot@adacore.com>
7810         * s-tadeca.adb: Fix minor typos in comment.
7812 2014-01-20  Pascal Obry  <obry@adacore.com>
7814         * s-win32.ads (FreeLibrary): New import.
7816 2014-01-20  Robert Dewar  <dewar@adacore.com>
7818         * sem_res.adb, sem_cat.adb: Minor reformatting.
7819         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
7820         assigning to OUT parameters for the current subprogram scope.
7821         * exp_ch4.adb: Minor reformatting.
7823 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7825         * exp_ch4.adb (Process_Transient_Object,
7826         Find_Enclosing_Contexts): If the top-level if-expression that
7827         generated the transient object is an actual in a call, the proper
7828         Hook_Context is a construct enclosing the call.
7829         * einfo.ads: Indicate that Related_Expression is used to link a
7830         loop variable to the container expression over which the loop
7831         takes place.
7832         (Analyze_Iterator_Specification): Set the Related_Expression of
7833         the loop variable in a container element iterator.
7834         (Note_Possible_Modification): If the variable is the loop
7835         variable in a container element iterator, indicate that the
7836         enclosing container is also modified.
7838 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7840         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
7842 2014-01-20  Robert Dewar  <dewar@adacore.com>
7844         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
7845         Minor reformatting and code clean up.
7847 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
7849         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
7850         of objects of private type if Relaxed_RM_Semantics.
7852 2014-01-20  Claire Dross  <dross@adacore.com>
7854         * a-cofove.ads (Vector): Capacity discriminant
7855         should be in range of the index.
7857 2014-01-20  Thomas Quinot  <quinot@adacore.com>
7859         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
7860         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
7861         possible difference between epoch of Ada.Calendar clock and Ada
7862         real-time/tasking clock.
7863         * s-taprop-posix.adb: Minor comment fix.
7865 2014-01-20  Doug Rupp  <rupp@adacore.com>
7867         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
7869 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7871         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
7872         checks on the prefix of attribute 'Old.
7873         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
7874         generation of validity checks on a range that belongs to the
7875         iteration scheme of a quantified expression.
7876         * sem_ch5.adb (One_Bound): Suppress the generation of validity
7877         checks on a bound that belongs to the iteration scheme of a
7878         quantified expression, generate the check in all other cases.
7880 2014-01-20  Bob Duff  <duff@adacore.com>
7882         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
7884 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7886         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
7887         interpretations that do not come from other predefined units,
7888         to prevent spurious ambiguities in the presence of user-defined
7889         operators in the context of (an instance of) a predefined unit.
7891 2014-01-20  Robert Dewar  <dewar@adacore.com>
7893         * gnat_rm.texi: Document that Loop_Variant is included in
7894         Statement_Assertions.
7895         * sem_prag.adb (Check_Kind): Add Loop_Variant to
7896         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
7897         to Statement_Assertions.
7899 2014-01-20  Doug Rupp  <rupp@adacore.com>
7901         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
7902         for errno ENOENT from RTP on NFS mounted file system.
7904 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
7906         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
7907         examine code that does not come from source. The check does not
7908         apply to code generated for constraint checks, and such code may
7909         generate spurious error messages when compiled with expansion
7910         disabled (as in a generic unit) because side effects may not
7911         have been removed.
7912         2) Make error messages more explicit: indicate the component
7913         of the  construct whose value is indeterminate because of a
7914         call to a function with in-out parameter in another component,
7915         when there is no mandated order of execution between the two
7916         components (actuals, aggregate components, alternatives).
7918 2014-01-20  Robert Dewar  <dewar@adacore.com>
7920         * gnat_rm.texi: Minor cleanup.
7922 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7924         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
7925         can now apply to a refined postcondition.
7926         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
7927         variable Result_Seen. Add variables Case_Prag, Post_Prag,
7928         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
7929         whether postconditions and/or constract-cases mention attribute
7930         'Result and introduce a post-state when applied to functions.
7931         (Check_Result_And_Post_State): Removed.
7932         * sem_prag.adb (Analyze_Pragma): Add local variable
7933         Result_Seen. Verify that the expression of pragma Refined_Post
7934         mentions attribute 'Result and introduces a post-state.
7935         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
7937 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7939         * exp_ch7.adb (Is_Subprogram_Call): New routine.
7940         (Process_Transient_Objects): Make variable Must_Hook global with
7941         respect to all locally declared subprograms. Search the context
7942         for at least one subprogram call.
7943         (Requires_Hooking): Removed.
7945 2014-01-20  Claire Dross  <dross@adacore.com>
7947         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
7948         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
7949         External_Axiomatization);
7951 2014-01-20  Robert Dewar  <dewar@adacore.com>
7953         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
7954         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
7955         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
7956         Allow Loop_Entry to be used in these pragmas if they appear in
7957         an appropriate context.
7958         (Placement_Error): Specialize error
7959         message for pragma Assert[_And_Cut] or pragma Assume containing
7960         Loop_Entry attribute.
7961         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
7962         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
7963         and code clean ups.
7965 2014-01-20  Robert Dewar  <dewar@adacore.com>
7967         * gnat1drv.adb: Minor comment update.
7969 2014-01-20  Tristan Gingold  <gingold@adacore.com>
7971         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
7972         variables, comment out unused code.
7973         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
7974         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
7975         * s-excmac-arm.ads: New file.
7977 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7979         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
7980         Drange and Index_Typ. Remove the circuitry which creates a
7981         range check to compare the index type of the array against the
7982         discrete_range.
7983         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
7984         the circuitry which creates a range check to handle a
7985         discrete_range denoted by a subtype indication.
7987 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
7989         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
7990         nodes to get the original sloc range.
7992 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
7994         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
7995         entity of a [library level] package.
7997 2014-01-20  Tristan Gingold  <gingold@adacore.com>
7999         * raise-gcc.c (exception_class_eq): New function.
8000         (is_handled_by): Use it to compare exception classes.
8001         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
8002         be called to return URC_CONTINUE_UNWIND.
8003         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
8004         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
8006 2014-01-20  Robert Dewar  <dewar@adacore.com>
8008         * opt.ads: Minor comment update.
8010 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
8012         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
8013         constants to the "Local variables" area. Add new constant D. Add
8014         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
8015         to Pref_Typ and update all occurrences. Add circuitry to extract
8016         the discrete_range and the index type and build a range check.
8018 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
8020         * gnat1drv.adb (Adjust_Global_Switches): Enable
8021         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
8022         is set.
8024 2014-01-20  Thomas Quinot  <quinot@adacore.com>
8026         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
8028 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
8030         * sem_ch13.adb (Analyze_Aspect_Specifications):
8031         When aspect SPARK_Mode appears on a package body, insert the
8032         generated pragma at the top of the body declarations.
8034 2014-01-20  Robert Dewar  <dewar@adacore.com>
8036         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
8037         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
8038         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
8039         sem_ch8.adb, exp_dist.adb: Minor reformatting.
8041 2014-01-20  Yannick Moy  <moy@adacore.com>
8043         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
8044         mode.
8046 2014-01-20  Pascal Obry  <obry@adacore.com>
8048         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
8049         write scheme).
8050         * g-arrspl.adb: Adapt all routine to this new implementation.
8051         (Set): Copy the Slice_Set definition before reusing it.
8053 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
8055         * sem_prag.adb (Process_Import_Or_Interface): In
8056         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
8057         (Analyze_Pragma): Ditto for pragma Export.
8058         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
8059         Import style.
8061 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
8063         * einfo.ads: E_Abstract_State is now part of the entities that
8064         can be overloaded. Update type Overloadable_Kind to reflect the
8065         inclusion of abstract states.
8066         * sem_ch6.adb (New_Overloaded_Entity): A function can now
8067         overload an abstract state.
8068         * sem_prag.adb (Analyze_Constituent): Handle the overloading
8069         of states by functions. Use Entity_Of to obtain the entity of
8070         a constituent.  (Analyze_Global_Item): Handle the overloading of
8071         states by functions.
8072         (Analyze_Initialization_Item): Handle the
8073         overloading of states by functions.  Use Entity_Of to obtain the
8074         entity of an item.
8075         (Analyze_Input_Item): Handle the overloading
8076         of states by functions. Use Entity_Of to obtain the entity of an item.
8077         (Analyze_Input_Output): Handle the overloading of states by functions.
8078         (Analyze_Refinement_Clause): Handle the overloading
8079         of states by functions.  Use Entity_Of to obtain the entity of an item.
8080         (Appears_In): Use Entity_Of to obtain the entity of an element.
8081         (Check_Usage): Use Entity_Of to obtain the entity of
8082         an item. Add a guard to prevent a crash due to a previous error.
8083         (Resolve_State): New routine.
8085 2014-01-20  Yannick Moy  <moy@adacore.com>
8087         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
8088         opt.ads: Minor comments updates.
8090 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
8092         * einfo.adb (Non_Limited_View): Applies to abstract states.
8093         (Set_From_Limited_With): Applies to abstract states.
8094         (Set_Non_Limited_View): Applies to abstract states.
8095         (Write_Field17): Output the non-limited view of an abstract state.
8096         * einfo.ads: Update the comment on usage and occurrences in
8097         nodes for attributes From_Limited_With and Non_Limited_View.
8098         * sem_aux.adb (Available_View): This routine can now handle
8099         abstract states.
8100         * sem_aux.ads (Available_View): This routine can now handle
8101         abstract states. Update the comment on usage.
8102         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
8103         of states and variables.
8104         (In_Pragmas_Depends_Or_Global): New routine.
8105         * sem_ch10.adb (Build_Limited_Views): Implement
8106         abstract (limited) views of variables and states.
8107         (Build_Shadow_Entity): This routine is now a procedure. Add
8108         formal parameter Shadow. Update the comment on usage. Add
8109         context-specific decoration for states and variables.
8110         (Decorate_State): New routine.  (Decorate_Variable): New routine.
8111         (Find_And_Process_States): New routine.
8112         (Process_Declarations): Renamed to Process_Declarations_And_States.
8113         (Process_Declarations_And_States): Add formal parameters
8114         Pack and Create_Abstract_Views. Update the comment on usage.
8115         (Process_States): New routine.
8116         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
8117         views of states and variables. Match the abstract view of a state
8118         against its corresponding non-abstract view.
8119         (Is_Matching_Input):
8120         Handle abstract views of states and variables. Match the abstract
8121         view of a state against its corresponding non-abstract view.
8122         (Process_Global_Item): Handle abstract views of states and
8123         variables.
8125 2014-01-20  Bob Duff  <duff@adacore.com>
8127         * sem_ch10.adb (Expand_With_Clause): Don't
8128         recurse on the prefix if the current with-ed name refers to a
8129         package that renames its own parent, eg "package P.Q renames P;".
8131 2014-01-20  Yannick Moy  <moy@adacore.com>
8133         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
8134         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
8135         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
8136         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
8137         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
8138         Expander_Active.
8140 2014-01-20  Yannick Moy  <moy@adacore.com>
8142         * sinfo.ads Update documentation of GNATprove mode.
8144 2014-01-20  Yannick Moy  <moy@adacore.com>
8146         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
8147         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
8148         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
8149         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
8150         GNATprove_Mode.
8151         * sem_ch13.adb: Remove blank.
8152         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
8153         subprograms by alias for renamings, not for inherited primitive
8154         operations.
8155         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
8156         in GNATprove mode.
8157         (Remove_Side_Effects): Apply the removal in
8158         GNATprove mode, for the full analysis of expressions.
8159         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
8160         mode.
8161         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
8162         save/restore actions for Expander_Active flag in GNATprove mode,
8163         similar to what is done in ASIS mode.
8164         * frontend.adb (Frontend): Generic bodies are instantiated in
8165         GNATprove mode.
8166         * gnat1drv.adb (Adjust_Global_Switches): Set operating
8167         mode to Check_Semantics in GNATprove mode, although a light
8168         expansion is still performed.
8169         (Gnat1drv): Set Back_End_Mode to
8170         Declarations_Only in GNATprove mode, and later on special case
8171         the GNATprove mode to continue analysis anyway.
8172         * lib-writ.adb (Write_ALI): Always generate ALI files in
8173         GNATprove mode.
8174         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
8175         Expander_Active.
8176         (SPARK_Mode): Renamed as GNATprove_Mode.
8177         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
8178         tree in GNATprove_Mode.
8179         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
8180         body in GNATprove mode.
8181         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
8182         mode.
8183         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
8184         Make sure side effects are removed in GNATprove mode.
8186 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
8188         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
8189         for aliased objects with an unconstrained nominal subtype.
8190         * gcc-interface/trans.c (Call_to_gnu): Likewise.
8191         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
8192         <case N_Op_Minus>: Remove useless code.
8193         (Exception_Handler_to_gnu_zcx): Minor tweaks.
8195 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
8197         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
8198         Tidy up.  For a subtype with discriminants and variant part, if a
8199         variant is statically selected and the fields all have a constant
8200         position, put them in order of increasing position.  Likewise if
8201         no variant part but representation clause is present.
8202         * gcc-interface/utils.c (make_packable_type): Robustify.
8203         (maybe_pad_type): Use local variable and tidy up condition.  If no
8204         alignment is specified, use the original one.
8205         (create_type_stub_decl): Minor tweak.
8206         (convert) <case VECTOR_CST>: Fix typo.
8207         <case CONSTRUCTOR>: Deal with padding types around the same type.
8208         Do not punt on missing fields.
8209         (unchecked_convert): Call finish_record_type to lay out the special
8210         record types made for conversions from/to problematic integer types.
8211         Bump the alignment of CONSTRUCTORs before converting them to a more
8212         aligned type.
8214 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
8216         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
8217         obsolete code for type_annotate_only mode, simplify code and slightly
8218         improve wording of comments.
8220 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
8222         PR ada/59772
8223         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
8224         as intermediate type.
8225         (UI_To_gnu): Likewise.
8227 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
8229         * gnatvsn.ads (Current_Year): Bump to 2014.
8231 2014-01-02  Tobias Burnus  <burnus@net-b.de>
8233         * gnat_ugn.texi: Bump @copying's copyright year.
8235 Copyright (C) 2014 Free Software Foundation, Inc.
8237 Copying and distribution of this file, with or without modification,
8238 are permitted in any medium without royalty provided the copyright
8239 notice and this notice are preserved.