PR ada/59382
[official-gcc.git] / gcc / ada / ChangeLog
blob9e61ecb9019398e263b6f53369c8ca7f498d9c79
1 2013-12-04  Eric Botcazou  <ebotcazou@adacore.com>
3         PR ada/59382
4         * indepsw-darwin.adb: New file.
6 2013-12-04  Eric Botcazou  <ebotcazou@adacore.com>
8         * gcc-interface/decl.c (components_to_record): Add specific handling
9         for fields with zero size and no representation clause.
11 2013-12-04  Eric Botcazou  <ebotcazou@adacore.com>
13         * gcc-interface/trans.c (Case_Statement_to_gnu): Do not push a binding
14         level for each branch if this is a case expression in Ada 2012.
15         (gnat_to_gnu) <case N_Expression_With_Actions>: Adjust comment.
17 2013-11-29  Eric Botcazou  <ebotcazou@adacore.com>
19         PR ada/54040
20         PR ada/59346
21         * s-osinte-hpux.ads (timespec): Change type of tv_nsec field to time_t.
22         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
23         * s-osinte-solaris-posix.ads (timespec): Likewise.
25 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
27         * gcc-interface/trans.c (Loop_Statement_to_gnu): Set TREE_SIDE_EFFECTS
28         on the conditional expression directly.
30 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
32         * gcc-interface/trans.c: Add required include files from gimple.h.
34 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
36         * gcc-interface/utils2.c (build_call_raise): Remove use of
37         input_line macro.
38         (build_call_raise_range): Likewise.
39         (build_call_raise_column): Likewise.
41 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
42             Mike Stump  <mikestump@comcast.net>
43             Richard Sandiford  <rdsandiford@googlemail.com>
45         * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi.
46         * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_to_uhwi.
47         * gcc-interface/utils.c (make_packable_type): Likewise.
49 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
51         * gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi rather than
52         tree_low_cst.
54 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
56         * gcc-interface/decl.c, gcc-interface/utils.c, gcc-interface/utils2.c:
57         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
59 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
61         * gcc-interface/cuintp.c: Update comments to refer to
62         tree_fits_shwi_p rather than host_integerp.
63         * gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p
64         rather than host_integerp.
65         * gcc-interface/utils.c (rest_of_record_type_compilation): Likewise.
67 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
69         * gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c:
70         Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.
72 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
74         * gcc-interface/cuintp.c: Replace host_integerp (..., 0) with
75         tree_fits_shwi_p throughout.
77 2013-11-18  Eric Botcazou  <ebotcazou@adacore.com>
79         * gcc-interface/trans.c (TARGET_ABI_OPEN_VMS): Delete as redundant.
81 2013-11-18  Eric Botcazou  <ebotcazou@adacore.com>
83         * gcc-interface/trans.c (Call_to_gnu): For an Out parameter passed by
84         copy and that don't need to be  copied in, only evaluate its address.
86 2013-11-18  Eric Botcazou  <ebotcazou@adacore.com>
88         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
89         error mark as renamed object in type annotating mode.
91 2013-11-15  H.J. Lu  <hongjiu.lu@intel.com>
93         PR ada/54040
94         * s-linux-x32.ads: New file.
95         * s-osprim-x32.adb: Likewise.
96         * s-linux.ads (time_t): New type.
97         * s-linux-alpha.ads (time_t):  Likewise.
98         * s-linux-hppa.ads (time_t):  Likewise.
99         * s-linux-mipsel.ads (time_t):  Likewise.
100         * s-linux-sparc.ads (time_t):  Likewise.
101         * s-osinte-linux.ads (time_t): Mark it private.  Replace long
102         with System.Linux.time_t.
103         (timespec): Replace long with time_t.
104         * s-osinte-posix.adb (To_Timespec): Likewise.
105         * s-taprop-linux.adb (timeval): Replace C.long with
106         System.OS_Interface.time_t.
107         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace
108         s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with
109         s-osprim-x32.adb for x32.
111 2013-11-14  H.J. Lu  <hongjiu.lu@intel.com>
113         * gcc-interface/trans.c: Include gimple.h and pointer-set.h.
115 2013-11-14  Diego Novillo  <dnovillo@google.com>
117         * gcc-interface/decl.c: Include stringpool.h
118         Include stor-layout.h
119         * gcc-interface/misc.c: Include stor-layout.h
120         Include print-tree.h
121         * gcc-interface/trans.c: Include stringpool.h
122         Include stor-layout.h
123         Include stmt.h
124         Include varasm.h
125         * gcc-interface/utils.c: Include stringpool.h
126         Include stor-layout.h
127         Include attribs.h
128         Include varasm.h
129         * gcc-interface/utils2.c: Include stringpool.h
130         Include stor-layout.h
131         Include attribs.h
132         Include varasm.h
134 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
136         * gcc-interface/trans.c: Include gimplify.h.
138 2013-11-11  Tristan Gingold  <gingold@adacore.com>
139             Eric Botcazou  <ebotcazou@adacore.com>
141         * gcc-interface/utils2.c (gnat_build_constructor): Also set the flag
142         CONSTRUCTOR_NO_CLEARING on the constructor.
144 2013-10-30  Sharad Singhai  <singhai@google.com>
146         * gnat_ugn.texi: Remove option description for PR middle-end/58134.
148 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
150         * gcc-interface/trans.c (finalize_nrv): Update for conversion of
151         symtab types to a true class hierarchy.
152         * gcc-interface/utils.c (gnat_write_global_declarations): Likewise.
154 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
156         * gcc-interface/decl.c (components_to_record): Adjust stack vector.
158 2013-10-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
160         * gcc-interface/Make-lang.in (ADA_DEPS): Fix quoting.
162 2013-10-19  Thomas Quinot  <quinot@adacore.com>
164         * gcc-interface/Makefile.in: Use canonical absolute path to refer to
165         the top source directory and to the libgcc subidrectories.
167 2013-10-19  Eric Botcazou  <ebotcazou@adacore.com>
169         * gcc-interface/utils.c (scale_by_factor_of): New function.
170         (rest_of_record_type_compilation): Use scale_by_factor_of in order to
171         scale the original offset for both rounding cases; in the second case,
172         take into accout the addend to compute the alignment.  Tidy up.
174 2013-10-19  Eric Botcazou  <ebotcazou@adacore.com>
176         * gcc-interface/cuintp.c: Remove useless include directives.
177         (build_cst_from_int): Use standard predicate.
178         (UI_To_gnu): Simplify.
179         (UI_From_gnu): Fix formatting.
180         * gcc-interface/trans.c (post_error): Likewise.
181         (post_error_ne): Likewise.
183 2013-10-19  Eric Botcazou  <ebotcazou@adacore.com>
185         * gcc-interface/utils.c (gnat_set_type_context): New function.
186         (gnat_pushdecl): Use it to set the context of the type.
188 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
190         * sem_prag.adb (Check_Dependency_Clause):
191         Recognize the scenario where successful clause matching has
192         depleted the available refinement items and the clause to match
193         technically refines to null => null.
195 2013-10-17  Tristan Gingold  <gingold@adacore.com>
197         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Specify
198         External_Name instead of Link_Name for the RTTI declaration.
200 2013-10-17  Robert Dewar  <dewar@adacore.com>
202         * sem_prag.adb (Record_Possible_Body_Reference): Fix test for
203         being in body.
204         (Add_Constituent): Merged into Check_Refined_Global_Item.
205         (Check_Matching_Constituent): A constituent that has the proper Part_Of
206         option and comes from a private child or a sibling is now collected.
207         (Check_Matching_Modes): Merged into Check_Refined_Global_Item.
208         (Check_Refined_Global_Item): Code cleanup.
209         (Collect_Constituent): New routine.
210         (Inconsistent_Mode_Error): Moved out from Check_Matching_Modes.
212 2013-10-17  Ed Schonberg  <schonberg@adacore.com>
214         * freeze.adb (Check_Current_Instance, Process): Add RM reference
215         and mention immutably limited types, when the current instance
216         is illegal in Ada 2012.
218 2013-10-17  Ed Schonberg  <schonberg@adacore.com>
220         * sem_warn.adb (Check_Unused_Withs): If the main unit is a
221         subunit, apply the check to the units mentioned in its context
222         only. This provides additional warnings on with_clauses that
223         are superfluous.
225 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
227         * sem_ch3.adb (Analyze_Declarations): Emit an
228         error message concerning state refinement when the spec defines at
229         least one non-null abstract state and the body's SPARK mode is On.
230         (Requires_State_Refinement): New routine.
232 2013-10-17  Robert Dewar  <dewar@adacore.com>
234         * sem_ch7.ads: Comment fixes.
236 2013-10-17  Robert Dewar  <dewar@adacore.com>
238         * sem_ch7.adb (Analyze_Package_Specification): Remove circuit
239         for ensuring that a package spec requires a body for some other
240         reason than that it contains the declaration of an abstract state.
242 2013-10-17  Tristan Gingold  <gingold@adacore.com>
244         * exp_ch11.adb (Expand_N_Raise_Expression): Fix call of
245         Possible_Local_Raise.
247 2013-10-17  Thomas Quinot  <quinot@adacore.com>
249         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Unchecked
250         conversion of Or_Rhs to Etype of New_Rhs is required only when
251         the latter is the result of a byte swap operation.
253 2013-10-17  Thomas Quinot  <quinot@adacore.com>
255         * exp_dist.adb (Build_To_Any_Function): For a type with opaque
256         representation that is not transmitted as an unconstrained value,
257         use 'Write, not 'Output, to generate the opaque representation.
259 2013-10-17  Yannick Moy  <moy@adacore.com>
261         * sem_res.adb (Resolve_Short_Circuit): Only
262         generate expression-with-action when full expansion is set.
264 2013-10-17  Yannick Moy  <moy@adacore.com>
266         * debug.adb Remove obsolete comment.
268 2013-10-17  Thomas Quinot  <quinot@adacore.com>
270         * exp_ch4.adb (Process_Transient_Object.Find_Enclosing_Contexts):
271         Avoid late insertion when expanding an expression with action
272         nested within a transient block; Do not inconditionally generate
273         a finalization call if the generated object is from a specific
274         branch of a conditional expression.
276 2013-10-17  Pascal Obry  <obry@adacore.com>
278         * g-arrspl.adb: Ensure Finalize call is idempotent.
279         * g-arrspl.adb (Finalize): Makes the call idempotent.
281 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
283         * sem_prag.adb (Is_Matching_Input): Account
284         for the case where a state with a null refinement appears as
285         the last input of a refinement clause.
287 2013-10-17  Robert Dewar  <dewar@adacore.com>
289         * sem_aux.ads, sem_aux.adb: Minor reformatting.
291 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
293         * aspects.adb, aspects.ads, sem_prag.ads: Remove all entries
294         for Refined_Pre from the various tables.
295         * par-prag.adb: Remove the entry for Refined_Pre from the list
296         of pragmas not needing special processing by the parser.
297         * sem_ch13.adb (Analyze_Aspect_Specifications):
298         Remove the processing for aspect Refined_Pre.
299         (Check_Aspect_At_Freeze_Point): Remove the entry for aspect
300         Refined_Pre.
301         * sem_prag.adb (Analyze_Pragma): Refined_Pre is no longer a
302         valid assertion kind. Remove the analysis of pragma Refined_Pre.
303         (Analyze_Refined_Pragma): Update the comment on usage.
304         (Find_Related_Subprogram_Or_Body): Update the comment on
305         usage. Pragma Refined_Pre is no longer processed by this routine.
306         (Is_Valid_Assertion_Kind): Refined_Pre is no longer a valid
307         assertion kind.
308         * snames.ads-tmpl: Remove predefined name Refined_Pre. Remove
309         the pragma id for Refined_Pre.
311 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
313         * exp_util.adb, exp_util.ads (Entity_Of): Moved to Sem_Util.
314         * sem_prag.adb (Analyze_Global_In_Decl_List): Mark a null
315         item list as being analyzed.
316         (Analyze_Global_List): Mark a
317         null global list and multiple global items as being analyzed.
318         (Analyze_Input_Item): Check the unit that defines the input
319         variable or state, not the reference to it.
320         * sem_util.ads, sem_util.adb (Entity_Of): Moved from Exp_Util. Ensure
321         that the input has an entity.
323 2013-10-17  Thomas Quinot  <quinot@adacore.com>
325         * exp_util.adb (Get_Current_Value_Condition,
326         Set_Current_Value_Condition): Handle the case of expressions
327         with actions * exp_util.adb (Insert_Actions): Handle the case
328         of an expression with actions whose Actions list is empty.
329         * exp_util.adb (Remove_Side_Effects.Side_Effect_Free): An
330         expression with actions that has no Actions and whose Expression
331         is side effect free is itself side effect free.
332         * exp_util.adb (Remove_Side_Effects): Do not set an incorrect etype on
333         temporary 'R' (Def_Id), which is in general an access to Exp_Type, not
334         an Exp_Type.
335         * sem_res.adb (Resolve): For an expression with
336         actions, resolve the expression early.  * sem_res.adb
337         (Resolve_Expression_With_Actions): Rewrite an expression with
338         actions whose value is compile time known and which has no
339         actions into just its expression, so that its constant value is
340         available downstream.
341         * sem_res.adb (Resolve_Short_Circuit):
342         Wrap the left operand in an expression with actions to contain
343         any required finalization actions.
344         * exp_ch4.adb (Expand_Expression_With_Actions): For an
345         expression with actions returning a Boolean expression, ensure
346         any finalization action is kept within the Actions list.
347         * sem_warn.adb (Check_References, Check_Unset_Reference): add
348         missing circuitry to handle expressions with actions.
349         * checks.adb (Ensure_Valid): For an expression with actions,
350         insert the validity check on the Expression.
351         * sem_ch13.adb (Build_Static_Predicate.Get_RList): An expression
352         with actions that has a non-empty Actions list is not static. An
353         expression with actions that has an empty Actions list has the
354         static ranges of its Expression.
355         * sem_util.adb (Has_No_Obvious_Side_Effects): An expression with
356         actions with an empty Actions list has no obvious side effects
357         if its Expression itsekf has no obvious side effects.
359 2013-10-17  Ed Schonberg  <schonberg@adacore.com>
361         * sem_aux.ads, sem_aux.adb (Is_Immutably_Limited_Type): Make
362         predicate compatible with Ada 2012 definition
363         (Is_Limited_View): New name for previous version of
364         Is_Immutably_Limited_Type.  Predicate is true for an untagged
365         record type with a limited component.
366         * exp_ch7.adb, exp_ch6.adb, exp_ch4.adb, exp_ch3.adb, exp_aggr.adb,
367         sem_util.adb, sem_res.adb, sem_prag.adb, sem_attr.adb, sem_ch8.adb,
368         sem_ch6.adb, sem_ch3.adb, exp_util.adb: Use Is_Limited_View
369         * freeze.adb Use Is_Immutably_Limited_Type to check the legality
370         of references to the current instance, Is_Limited_View otherwise.
372 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
374         * sem_ch13.adb (Analyze_Aspect_Specifications): Flag aspect
375         Refined_Pre as not supported.
376         * sem_prag.adb (Analyze_Pragma): Ignore pragma Refined_Pre.
378 2013-10-17  Ed Schonberg  <schonberg@adacore.com>
380         * sem_ch12.adb (Validated_Access_Subprogram_Instance): According
381         to AI05-288, actuals for access_to_subprograms must be subtype
382         conformant with the generic formal.  Previous to AI05-288
383         only mode conformance was required, but the AI is a binding
384         interpretation that applies to previous versions of the language,
386 2013-10-17  Robert Dewar  <dewar@adacore.com>
388         * gnat_ugn.texi: Minor text correction.
389         * ug_words: Add entry for -gnateu /IGNORE_UNRECOGNIZED.
390         * vms_data.ads: Add /IGNORE_UNRECOGNIZED for -gnateu.
392 2013-10-17  Tristan Gingold  <gingold@adacore.com>
394         * impunit.adb (Non_Imp_File_Names_95): Add g-cppexc.
396 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
398         * sem_prag.adb (Analyze_Constituent): Move the check
399         concerning option Part_Of to routine Check_Matching_Constituent.
400         (Check_Matching_Constituent): Verify that an abstract state
401         that acts as a constituent has the proper Part_Of option in
402         its aspect/pragma Abstract_State.  Account for the case when a
403         constituent comes from a private child or private sibling.
404         * sem_util.ads, sem_util.adb (Is_Child_Or_Sibling): New routine.
406 2013-10-17  Tristan Gingold  <gingold@adacore.com>
408         * g-cppexc.adb, g-cppexc.ads: New files.
409         * gcc-interface/Makefile.in: Add g-cppexc when building zcx runtimes.
411 2013-10-17  Thomas Quinot  <quinot@adacore.com>
413         * exp_ch7.adb: Minor reformatting.
415 2013-10-17  Ed Schonberg  <schonberg@adacore.com>
417         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
418         expression with standard operator and type, for pretty-printing
419         use.
421 2013-10-17  Bob Duff  <duff@adacore.com>
423         * gnat_ugn.texi: Document --pp-new and --pp-old switches.
425 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
427         * einfo.adb: Flag 159 is now known as From_Limited_With. Replace
428         all references to attribute From_With_Type with From_Limited_With.
429         (From_With_Type): Renamed to From_Limited_With.
430         (Set_From_With_Type): Renamd to Set_From_Limited_With.
431         * einfo.ads: Remove attribute From_With_Type and occurrences in
432         nodes.  Add attribute From_Limited_With along with occurrences
433         in nodes.
434         (From_With_Type): Renamed to From_Limited_With along with pragma Inline.
435         (Set_From_With_Type): Renamed to
436         Set_From_Limited_With along with pragma Inline.
437         * sem_ch7.adb, sem_ch8.adb, sem_ch12.adb, sem_ch13.adb, sem_disp.adb,
438         sem_res.adb, sem_type.adb, sem_util.adb, sem_warn.adb,
439         exp_attr.adb, exp_disp.adb, freeze.adb, itypes.adb, layout.adb,
440         lib-writ.adb, rtsfind.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
441         sem_ch4.adb: Replace all references to attribute From_With_Type
442         with From_Limited_With.
443         * sem_ch6.adb: Replace all references to attribute From_With_Type
444         with From_Limited_With.
445         (Designates_From_With_Type): Renamed to Designates_From_Limited_With.
446         (Process_Formals): Update the call to Designates_From_With_Type.
447         * sem_ch10.adb: Replace all references to attribute From_With_Type
448         with From_Limited_With.
449         (Build_Limited_Views): Reimplemented.
450         * gcc-interface/decl.c Replace all references to attribute
451         From_With_Type with From_Limited_With.
452         (finalize_from_with_types): Renamed to finalize_from_limited_with.
453         * gcc-interface/gigi.h (finalize_from_with_types): Renamed to
454         finalize_from_limited_with.
455         * gcc-interface/trans.c: Replace all references to attribute
456         From_With_Type with From_Limited_With.
457         (Compilation_Unit_to_gnu): Update the call to finalize_from_with_types.
459 2013-10-17  Pascal Obry  <obry@adacore.com>
461         * projects.texi: Update VCS_Kind documentation.
463 2013-10-17  Matthew Heaney  <heaney@adacore.com>
465         * a-convec.adb, a-coinve.adb, a-cobove.adb (Insert, Insert_Space):
466         Inspect value range before converting type.
468 2013-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
470         * sem_prag.adb (Analyze_Pragma): Flag the use of pragma Refined_Pre as
471         illegal.
473 2013-10-17  Vincent Celier  <celier@adacore.com>
475         * gnat_ugn.texi: Remove VMS conversion of -gnatet and -gnateT,
476         now that they are both in ug_words.
477         * ug_words: Update qualifier for -gnatet Add qualifier for -gnateT
478         * vms_data.ads: Update qualifier for -gnatet Add qualifier
479         for -gnateT
480         * projects.texi: Continue to update the project documentation
481         for VMS.
483 2013-10-17  Robert Dewar  <dewar@adacore.com>
485         * einfo.ads, einfo.adb (Has_Body_References): New flag.
486         (Body_References): New field.
487         * sem_prag.adb (Record_Possible_Body_Reference): New procedure
488         (Analyze_Input_Output): Call Record_Possible_Body_Reference
489         (Analyze_Global_Item): Call Record_Possible_Body_Reference
490         (Analyze_Refinement_Clause): Output messages if illegal global refs.
492 2013-10-17  Thomas Quinot  <quinot@adacore.com>
494         * freeze.adb (Check_Component_Storage_Order): Reject a record or
495         array type that does not have an explicit Scalar_Storage_Order
496         attribute definition if a component of the record, or the
497         elements of the array, have one.
498         * gnat_rm.texi (attribute Scalar_Storage_Order): Document the above
499         rule.
501 2013-10-17  Vincent Celier  <celier@adacore.com>
503         * gnat_ugn.texi: Add examples of switches -gnateD, including
504         one where the value is a string.
505         * projects.texi: Do not convert switches in project files to
506         VMS qualifiers.
508 2013-10-17  Robert Dewar  <dewar@adacore.com>
510         * sem_prag.adb (Report_Extra_Clauses): Don't complain about
511         refinements with null input since null should be considered to
512         always match.
514 2013-10-17  Robert Dewar  <dewar@adacore.com>
516         * gnat_ugn.texi: Document -gnatw.y/-gnatw.Y.
517         * opt.ads (List_Body_Required_Info): New flag.
518         * prep.adb: Minor reformatting.
519         * sem_ch7.adb (Unit_Requires_Body_Info): New
520         procedure (Analyze_Package_Specification): Add call to
521         Unit_Requires_Body_Info.
522         * ug_words: Add entries for -gnatw.y and -gnatw.Y.
523         * usage.adb: Add line for new warning switch -gnatw.y/.Y.
524         * vms_data.ads: Add entry for [NO_]WHY_SPEC_NEEDS_BODY warning
525         qualifier.
526         * warnsw.ads, warnsw.adb: Implement new warning switch -gnatw.y/.Y.
528 2013-10-17  Yannick Moy  <moy@adacore.com>
530         * sem_ch8.adb (Find_Direct_Name): Keep track of assignments for
531         renamings in SPARK mode.
533 2013-10-17  Yannick Moy  <moy@adacore.com>
535         * exp_spark.adb (Expand_SPARK): Remove special case for NOT IN
536         operation.
537         * sinfo.ads: Add special comment section to describe SPARK mode
538         effect on tree.
539         * exp_spark.ads: Remove comments, moved to sinfo.ads.
541 2013-10-17  Yannick Moy  <moy@adacore.com>
543         * exp_ch3.adb (Expand_Freeze_Class_Wide_Type,
544         Expand_Freeze_Class_Wide_Type, Expand_Freeze_Class_Wide_Type):
545         Remove useless special cases.
546         * exp_ch4.adb (Expand_Allocator_Expression, Expand_N_Allocator,
547         Expand_N_Op_Expon): Remove useless special cases.
548         * exp_ch6.adb (Is_Build_In_Place_Function_Call): Disable build-in-place
549         in SPARK mode by testing Full_Expander_Active instead of
550         Expander_Active.
551         (Make_Build_In_Place_Call_In_Allocator): Remove useless special case.
552         * exp_util.adb (Build_Allocate_Deallocate_Proc): Remove
553         useless special case.
554         * sem_eval.adb (Compile_Time_Known_Value): Remove special handling of
555         deferred constant.
557 2013-10-17  Yannick Moy  <moy@adacore.com>
559         * gnat_ugn.texi: Document -gnateT and target file format.
561 2013-10-17  Vincent Celier  <celier@adacore.com>
563         * prep.adb (Check_Command_Line_Symbol_Definition): Is_A_String is
564         always False, even when the value starts and ends with double quotes.
566 2013-10-17  Tristan Gingold  <gingold@adacore.com>
568         * a-exexpr-gcc.adb: Synchronize declarations of other/all others.
570 2013-10-17  Thomas Quinot  <quinot@adacore.com>
572         * exp_pakd.adb: Add missing guard protecting Reverse_Storage_Order
573         call.
574         * sem_res.adb: Minor code cleanup: use named parameter association
575         (not positional) for Boolean parameter Sec_Stack in calls to
576         Establish_Transient_Scope.
578 2013-10-15  Thomas Quinot  <quinot@adacore.com>
580         * exp_pakd.adb (Expand_Packed_Element_Set,
581         Expand_Packed_Element_Reference): Adjust for the case of packed
582         arrays of reverse-storage-order types.
584 2013-10-15  Robert Dewar  <dewar@adacore.com>
586         * sem_prag.adb: Minor reformatting.
588 2013-10-15  Ed Schonberg  <schonberg@adacore.com>
590         * sem_attr.adb (Analyze_Attribute_Specification, case
591         To_Address): If the expression is an identifier, do not modify
592         its type; it will be converted when necessary, and the type of
593         the expression must remain consistent with that of the entity
594         for back-end consistency.
596 2013-10-15  Robert Dewar  <dewar@adacore.com>
598         * sem_ch7.adb (Unit_Requires_Body): Add flag
599         Ignore_Abstract_State (Analyze_Package_Specification): Enforce
600         rule requiring Elaborate_Body if a non-null abstract state is
601         specified for a library-level package.
602         * sem_ch7.ads (Unit_Requires_Body): Add flag Ignore_Abstract_State.
604 2013-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
606         * sem_prag.adb (Analyze_Constituent): When
607         a state acts as a constituent of another state, ensure that
608         the said state has a Part_Of dependency in its corresponding
609         aspect/pragma Abstract_State.
611 2013-10-15  Robert Dewar  <dewar@adacore.com>
613         * par-ch4.adb (P_If_expression): Handle redundant ELSE cleanly.
615 2013-10-15  Thomas Quinot  <quinot@adacore.com>
617         * atree.ads (New_Copy, Relocate_Node): Improve documentation
618         (note that these subprograms reset Is_Overloaded).
620 2013-10-15  Thomas Quinot  <quinot@adacore.com>
622         * checks.adb (Check_Needed): Handle the case where the test in
623         the left operand of the short circuit is wrapped in a qualified
624         expression, type conversion, or expression with actions.
626 2013-10-15  Thomas Quinot  <quinot@adacore.com>
628         * sem_type.adb, sem_type.ads (Save_Interps): Also propagate
629         Is_Overloaded to New_N, for consistency.
631 2013-10-15  Ed Schonberg  <schonberg@adacore.com>
633         * a-tienau.adb (Put): Use file parameter to query values of
634         current column and line length.
636 2013-10-15  Robert Dewar  <dewar@adacore.com>
638         * sem_prag.adb, exp_ch11.adb, a-except-2005.adb, a-except-2005.ads:
639         Minor reformatting.
641 2013-10-15  Eric Botcazou  <ebotcazou@adacore.com>
643         * targparm.ads: Fix minor typo in comment.
645 2013-10-15  Ed Schonberg  <schonberg@adacore.com>
647         * lib-xref.adb: handle full views that are derived from private
648         types.
649         * sem_util.adb (Build_Elaboration_Entity): Do nothing in ASIS
650         mode: the elaboration entity is not in the source, and plays no
651         role in semantic analysis.  Minor reformatting.
653 2013-10-15  Tristan Gingold  <gingold@adacore.com>
655         * adaint.c (__gnat_get_executable_load_address): Remove AIX
656         specific code.
658 2013-10-15  Ed Schonberg  <schonberg@adacore.com>
660         * exp_aggr.adb (Aggr_Size_OK): Refine criteria to better handle
661         large static aggregates with static record components, to avoid
662         generating a large number of asignments.  Conversely, improve
663         handling of aggregates initialized by a single association,
664         which are most efficiently implemented with a loop.
666 2013-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
668         * sem_prag.adb (Analyze_Input_Item): Emit an
669         error when the input item comes from the related package.
671 2013-10-15  Arnaud Charlet  <charlet@adacore.com>
673         * exp_ch11.adb (Expand_Exception_Handlers): Restrict previous
674         change.
676 2013-10-14  Tristan Gingold  <gingold@adacore.com>
678         * gcc-interface/gigi.h (standard_datatypes): Add
679         ADT_set_exception_parameter_decl
680         (set_exception_parameter_decl): New macro.
681         * gcc-interface/trans.c (gigi): Initialize set_exception_parameter_decl.
682         (Exception_Handler_to_gnu_zcx): Initialize the choice parameter.
683         * gcc-interface/trans.c: Synchronize declarations of other/all others
684         between gigi and the runtime.
686 2013-10-14  Robert Dewar  <dewar@adacore.com>
688         * exp_attr.adb (Find_Stream_Subprogram): Optimize
689         Storage_Array stream handling.
690         (Find_Stream_Subprogram): Optimize Stream_Element_Array stream handling
691         * rtsfind.ads: Add entry for Stream_Element_Array Add
692         entries for RE_Storage_Array subprograms Add entries for
693         RE_Stream_Element_Array subprograms
694         * s-ststop.ads, s-ststop.adb: Add processing for System.Storage_Array.
695         Add processing for Ada.Stream_Element_Array.
697 2013-10-14  Tristan Gingold  <gingold@adacore.com>
699         * a-except-2005.ads, a-except-2005.adb:
700         (Get_Exception_Machine_Occurrence): New function.
701         * raise-gcc.c (__gnat_unwind_exception_size): New constant.
703 2013-10-14  Robert Dewar  <dewar@adacore.com>
705         * sem_res.adb: Minor fix to error message text.
706         * errout.ads, erroutc.ads: Minor reformatting.
707         * s-ststop.ads, s-stratt.ads: Clean up documentation of block IO
708         mode for streams.
709         * s-stratt-xdr.adb: Minor comment update.
711 2013-10-14  Robert Dewar  <dewar@adacore.com>
713         * sem_aux.adb, sem_aux.ads, sem_prag.adb: Minor reformatting.
715 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
717         * sem_res.adb (Resolve_Actuals): Add error message for a
718         subprogram with an in-out parameter when used in a predicate,
719         to clarify subsequent error at the point of call.
721 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
723         * sem_prag.adb (Is_Matching_Input): Consume a matching null input.
725 2013-10-14  Robert Dewar  <dewar@adacore.com>
727         * freeze.adb (Freeze_Record): Don't give warning about packed
728         and foreign convention.
730 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
732         * sem_aux.adb, sem_aux.ads (Package_Specification): New function, to
733         replace the less efficient idiom Specification.
734         (Unit_Declaration_Node (Pack_Id)), which handles library units and
735         child units.
736         * sem_ch3.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_ch6.adb,
737         exp_disp.adb, sem_cat.adb, exp_dist.adb: Use Package_Specification.
739 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
741         * exp_attr.adb (Expand_Update_Attribute): Update the call to
742         Process_Range_Update.
743         (Process_Range_Update): Add new formal parameter Typ and associated
744         comment on usage. Add local constant Index_Typ. Add a type conversion
745         as part of the indexed component to ensure that the loop variable
746         corresponds to the index type.
748 2013-10-14  Tristan Gingold  <gingold@adacore.com>
750         * a-exexpr-gcc.adb: Adjust comment.
751         (Others_Value, All_Others_Value,
752         Unhandled_Others_Value): Declare as Character to slightly reduce
753         memory footprint.
755 2013-10-14  Robert Dewar  <dewar@adacore.com>
757         * freeze.adb (Size_Known): Size is not known for packed record
758         with aliased components
760 2013-10-14  Robert Dewar  <dewar@adacore.com>
762         * sem_ch3.adb: Minor fix to error message.
763         * a-exexpr-gcc.adb, sem_util.adb, sem_case.adb, exp_ch11.adb: Minor
764         reformatting.
766 2013-10-14  Arnaud Charlet  <charlet@adacore.com>
768         * exp_ch11.adb: Fix typo.
770 2013-10-14  Thomas Quinot  <quinot@adacore.com>
772         * exp_util.ads: Minor reformatting.
774 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
776         * sem_ch3.adb (Build_Derived_Record_Type): Reject full views
777         with no explicit discriminant constraints, when the parents of
778         the partial view and the full view are constrained subtypes with
779         different constraints.
781 2013-10-14  Robert Dewar  <dewar@adacore.com>
783         * freeze.adb (Freeze_Array_Type): New procedure, abstracts out
784         this code from Freeze.
785         (Freeze_Array_Type): Detect pragma Pack overriding foreign convention
786         (Freeze_Record_Type): Ditto.
788 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
790         * sem_prag.adb (Analyze_Dependency_Clause): Add new local variable
791         Non_Null_Output_Seen.  Update the call to Analyze_Input_Output.
792         (Analyze_Input_Item): Streamline the detection mechanism of null and
793         non-null items.
794         (Analyze_Input_List): Add new local variable
795         Non_Null_Input_Seen. Update all calls to Analyze_Input_Output.
796         (Analyze_Input_Output): Add new formal parameter Non_Null_Seen
797         and update the related comment on usage. Update the
798         recursive call to itself. Attribute 'Result is now treated
799         as a non-null item. Detect mixes of null and non-null items.
800         (Analyze_Initialization_Item): Streamline the detection mechanism
801         of null and non-null items.
803 2013-10-14  Vincent Celier  <celier@adacore.com>
805         * projects.texi: Add documentation for the new project level
806         attribute Library_Rpath_Options.
808 2013-10-14  Tristan Gingold  <gingold@adacore.com>
810         * a-exexpr-gcc.adb (Set_Exception_Parameter): New procedure.
811         (Set_Foreign_Occurrence): New procedure, extracted from
812         Setup_Current_Excep.
813         * exp_ch11.adb (Expand_Exception_Handlers): Do not expand choice
814         parameter in case of zcx.
815         * sem_ch11.adb (Analyze_Exception_Handlers): Need debug info
816         for the choice parameter.
817         * raise-gcc.c: Add comments.
819 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
821         * aspects.adb: Add an entry in table Canonical_Aspect for
822         Initial_Condition.
823         * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument,
824         Aspect_Names and Aspect_Delay for Initial_Condition.
825         * einfo.adb (Get_Pragma): Include pragma Initial_Condition to
826         categorization pragmas.
827         * einfo.ads (Get_Pragma): Update comment on usage.
828         * exp_ch7.adb (Expand_N_Package_Body): Add a runtime check to
829         verify the assertion introduced by pragma Initial_Condition.
830         (Expand_N_Package_Declaration): Add a runtime check to
831         verify the assertion introduced by pragma Initial_Condition.
832         (Expand_Pragma_Initial_Condition): New routine.
833         * par-prag: Include pragma Initial_Condition to the list of
834         pragmas that do not require special processing by the parser.
835         * sem_ch3.adb (Analyze_Declarations): Analyze pragma
836         Initial_Condition at the end of the visible declarations.
837         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
838         for aspect Initial_Condition.
839         (Check_Aspect_At_Freeze_Point):
840         Aspect Initial_Condition does not need inspection at freezing.
841         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part):
842         New routine.
843         (Analyze_Pragma): Update all calls
844         to Check_Declaration_Order. Add processing for pragma
845         Initial_Condition. Initial_Condition is now a valid assertion
846         kind.  Add an entry in table Sig_Flags for Initial_Condition.
847         (Check_Declaration_Order): Reimplemented to handle arbitrary
848         pragmas.
849         (Is_Valid_Assertion_Kind): Add an entry for
850         Initial_Condition.
851         * sem_pag.ads (Analyze_Initial_Condition_In_Decl_Part):
852         New routine.
853         * sem_util.adb (Add_Contract_Item): Pragma Initial_Condition
854         can now be associated with a package spec.
855         * sem_util.ads (Add_Contract_Item): Update comment on usage.
856         * sinfo.ads: Update the documentation of node N_Contract
857         * snames.ads-tmpl: Add new predefined name Initial_Condition. Add
858         new pragma id for Initial_Condition.
860 2013-10-14  Thomas Quinot  <quinot@adacore.com>
862         * exp_pakd.adb: Minor reformatting.
864 2013-10-14  Robert Dewar  <dewar@adacore.com>
866         * exp_prag.adb: Minor reformatting.
868 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
870         * sem_case.adb (Check_Against_Predicate): Handle properly an
871         others clause in various cases.
873 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
875         * sem_prag.adb (Check_Matching_Constituent): Do
876         not inspect the hidden states if there are no hidden states. This
877         case arises when the constituents are states coming from a
878         private child.
880 2013-10-14  Doug Rupp  <rupp@adacore.com>
882         * init.c [ARMEL and VxWorks] (__gnat_map_signal): Re-arm guard
883         page by clearing VALID bit vice setting page protection.
885 2013-10-14  Arnaud Charlet  <charlet@adacore.com>
887         * gnat_rm.texi, adaint.c: Fix typo.
889 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
891         * sem_util.adb (Is_Variable, In_Protected_Function):  In the
892         body of a protected function, the protected object itself is a
893         constant (not just its components).
895 2013-10-14  Vincent Celier  <celier@adacore.com>
897         * snames.ads-tmpl: Add new standard name Library_Rpath_Options.
899 2013-10-14  Tristan Gingold  <gingold@adacore.com>
901         * sem_prag.adb (Process_Import_Or_Interface): Allow importing
902         of exception using convention Cpp.
903         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Expand cpp
904         imported exceptions.
905         * raise-gcc.c (is_handled_by): Filter C++ exception occurrences.
906         * gnat_rm.texi: Document how to import C++ exceptions.
908 2013-10-14  Jose Ruiz  <ruiz@adacore.com>
910         * sem_ch13.adb (Sem_Ch13.Analyze_Aspect_Specification): For
911         Priority and CPU aspects, when checking, issue a warning only
912         if it is obviously not a main program.
914 2013-10-14  Tristan Gingold  <gingold@adacore.com>
916         * adaint.c: Fix condition for AIX. Minor reformatting.
918 2013-10-14  Robert Dewar  <dewar@adacore.com>
920         * sem_ch3.adb, sem_prag.adb, prj.ads: Minor reformatting.
922 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
924         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
925         Rename Outputs_Seen to All_Outputs_Seen and update all occurrences
926         of the variable.
927         (Analyze_Input_Output): Add an item to
928         All_Inputs_Seen when it is an input or a self-referential output.
929         (Check_Mode): Comment reformatting.
930         (Analyze_Abstract_State): Remove the restriction that an Export state
931         must also have mode Input_Only or Output_Only.
933 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
935         * einfo.adb: Flag 263 is now known as Has_Visible_Refinement.
936         (Has_Non_Null_Refinement): New routine.
937         (Has_Null_Refinement): The routine is now synthesized.
938         (Has_Visible_Refinement): New routine.
939         (Set_Has_Visible_Refinement): New routine.
940         (Write_Entity_Flags): Remove the output for
941         Has_Null_Refinement. Add output for Has_Visible_Refinement.
942         * einfo.ads: Update the occurrences of Has_Non_Null_Refinement,
943         Has_Null_Refinement and Has_Visible_Refinement in entities.
944         (Has_Non_Null_Refinement): New synthesized attribute.
945         (Has_Null_Refinement): This attribute is now synthesized.
946         (Has_Visible_Refinement): New routine with corresponding
947         pragma Inline.
948         (Set_Has_Visible_Refinement): New routine with corresponding pragma
949         Inline.
950         * sem_ch3.adb (Analyze_Declarations): Add new local
951         variable In_Package_Body. Remove state refinements from
952         visibility at the end of the package body declarations.
953         (Remove_Visible_Refinements): New routine.
954         * sem_prag.adb (Analyze_Constituent): Collect a null
955         constituent and mark the state as having visible refinement.
956         (Analyze_Global_Item): Use attribute Has_Visible_Refinement to
957         detect a state with visible refinement.
958         (Analyze_Input_Output): Use attribute Has_Visible_Refinement to detect
959         a state with visible refinement.
960         (Check_Dependency_Clause): Use attribute Has_Non_Null_Refinement rather
961         than checking the contents of list Refinement_Constituents.
962         (Check_In_Out_States): Use attribute Has_Non_Null_Refinement rather
963         than checking the contents of list Refinement_Constituents.
964         (Check_Input_States): Use attribute Has_Non_Null_Refinement rather
965         than checking the contents of list Refinement_Constituents.
966         (Check_Matching_Constituent): Mark a state as having visible refinement.
967         (Check_Output_States): Use attribute Has_Non_Null_Refinement rather than
968         checking the contents of list Refinement_Constituents.
969         (Check_Refined_Global_Item): Use attribute Has_Visible_Refinement
970         to detect a state with visible refinement.
971         (Is_Matching_Input): Use attribute Has_Non_Null_Refinement rather than
972         checking the contents of list Refinement_Constituents.
973         * sem_util.adb (Is_Refined_State): Use attribute
974         Has_Visible_Refinement to detect a state with visible refinement.
976 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
978         * sem_prag.adb (Check_Mode): Do not emit an
979         error when inspecting a self referencial output item of an
980         unconstrained type.
982 2013-10-14  Tristan Gingold  <gingold@adacore.com>
984         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Fix
985         target type for code of VMS imported exception.
986         * init.c: Replace Exception_Code by void *.
987         * s-vmexta.adb (Hash, Base_Code_In): Adjust code after changing
988         the type of Exception_Code.
990 2013-10-14  Vincent Celier  <celier@adacore.com>
992         * prj.ads: Minor comment updates.
993         * prj-attr.adb: New attribute Library_Rpath_Options.
995 2013-10-14  Robert Dewar  <dewar@adacore.com>
997         * gnat_rm.texi: Library_Level attribute now applies to an
998         entity name.
999         * sem_attr.adb (Analyze_Attribute, case Library_Level): Prefix
1000         is now an entity name.
1002 2013-10-14  Jose Ruiz  <ruiz@adacore.com>
1004         * sem_ch13.adb (Analyze_Aspect_Specification): For
1005         Priority and CPU aspects in subprograms, the expression in the
1006         aspect is analyzed and exported.
1008 2013-10-14  Robert Dewar  <dewar@adacore.com>
1010         * s-valuti.adb, prep.adb, scng.adb, errout.adb: Minor reformatting.
1012 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1014         * adaint.c: Further disable __gnat_get_executable_load_address
1015         for Linux.
1017 2013-10-14  Vincent Celier  <celier@adacore.com>
1019         * gnat_ugn.texi: Add documentation for comparing symbols to
1020         integers in preprocessing expressions.
1022 2013-10-14  Jose Ruiz  <ruiz@adacore.com>
1024         * sem_prag.adb (Analyze_Aspect_Specification): For
1025         Priority and CPU aspects in subprograms, the expression in the
1026         aspect is analyzed and exported.
1027         (Analyze_Pragma): When having a Priority pragma in the
1028         main subprogram, load a unit that will force the initialization
1029         of the tasking run time, which is needed for setting the required
1030         priority.
1032 2013-10-14  Vincent Celier  <celier@adacore.com>
1034         * prj-nmsc.adb (Check_Interfaces): Put in Other_Interfaces all
1035         non Ada interface files.
1036         * prj.ads (Project_Data): New component Other_Interfaces.
1038 2013-10-14  Arnaud Charlet  <charlet@adacore.com>
1040         * gcc-interface/Makefile.in: Target pairs clean ups.
1042 2013-10-14  Vincent Celier  <celier@adacore.com>
1044         * errout.adb (Write_Error_Summary): Do not output the number
1045         of lines when Main_Source_File is unknown.
1046         (Output_Messages): Do not write the header when Main_Source_File is
1047         unknown.
1049 2013-10-14  Vincent Celier  <celier@adacore.com>
1051         * prep.adb (Expression): Accept terms of the form 'symbol <relop>
1052         integer", where relop is =, <, <=, > or >=.
1053         (Parse_Def_File): Accept literal integer values.
1054         * gcc-interface/Make-lang.in: Add s-valint.o, s-valuns.o and
1055         s-valuti.o to the compiler object files.
1057 2013-10-14  Robert Dewar  <dewar@adacore.com>
1059         * exp_prag.adb, exp_ch11.adb, s-exctab.adb: Minor reformatting.
1060         * usage.adb: Add line for -gnateu switch.
1062 2013-10-14  Vincent Celier  <celier@adacore.com>
1064         * lib-writ.ads: Add comments to indicate that a path name in
1065         D lines may be quoted if the path name includes directories
1066         with spaces.
1068 2013-10-14  Robert Dewar  <dewar@adacore.com>
1070         * debug.adb: Document -gnatd.E.
1071         * gnat1drv.adb (Adjust_Global_Switches): Set Error_To_Warning
1072         if -gnatd.E set.
1073         * opt.ads (Error_To_Warning): New switch.
1074         * osint.adb: Minor reformatting.
1075         * sem_warn.adb (Warn_On_Overlapping_Actuals): Overlap is error
1076         in some cases in Ada 2012 mode (unless Error_To_Warning) is set.
1077         * sem_warn.ads (Warn_On_Overlapping_Actuals): Document error
1078         in Ada 2012 mode.
1080 2013-10-14  Tristan Gingold  <gingold@adacore.com>
1082         * cstand.adb: Add a comment for Standard_Exception_Type.
1084 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
1086         * exp_ch4.adb (Process_Transient_Object): If a transient scope
1087         has already been created, use the corresponding Node_To_Be_Wrapped
1088         as the insertion point for the controlled actions.
1090 2013-10-14  Tristan Gingold  <gingold@adacore.com>
1092         * cstand.adb (Create_Standard): Change Import_Code component
1093         of Standard_Exception_Type to Foreign_Data. Its type is now
1094         Standard_A_Char (access to character).
1095         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust
1096         definition of Code to match the type of Foreign_Data.
1097         * s-stalib.ads (Exception_Data): Replace Import_Code by Foreign_Data
1098         Change the definition of standard predefined exceptions.
1099         (Exception_Code): Remove.
1100         * raise.h (Exception_Code): Remove (Exception_Data): Replace
1101         Import_Code field by Foreign_Data.
1102         * rtsfind.ads (RE_Exception_Code): Remove
1103         (RE_Import_Address): Add.
1104         * a-exexpr-gcc.adb (Import_Code_For): Replaced by Foreign_Data_For.
1105         * exp_ch11.adb (Expand_N_Exception_Declaration): Associate null
1106         to Foreign_Data component.
1107         * raise-gcc.c (Import_Code_For): Replaced by Foreign_Data_For.
1108         (is_handled_by): Add comments. Use replaced function. Change
1109         condition so that an Ada occurrence is never handled by
1110         Foreign_Exception.
1111         * s-exctab.adb (Internal_Exception): Associate Null_Address to
1112         Foreign_Data component.
1113         * s-vmexta.adb, s-vmexta.ads (Exception_Code): Declare Replace
1114         SSL.Exception_Code by Exception_Code.
1116 2013-10-14  Robert Dewar  <dewar@adacore.com>
1118         * gnat_ugn.texi: Document -gnateu switch.
1119         * opt.ads (Ignore_Unrecognized_VWY_Switches): New switch.
1120         * stylesw.adb: Ignore unrecognized switch if
1121         Ignore_Unrecognized_VWY_Switches set.
1122         * switch-c.adb: Implement -gnateu (sets
1123         Ignore_Unrecognized_VWY_Switches).
1124         * validsw.adb: Ignore unrecognized switch if
1125         Ignore_Unrecognized_VWY_Switches set.
1126         * warnsw.adb: Ignore unrecognized switch if
1127         Ignore_Unrecognized_VWY_Switches set.
1129 2013-10-14  Robert Dewar  <dewar@adacore.com>
1131         * exp_prag.adb, sem_prag.adb, a-exexda.adb, s-vmexta.ads: Minor
1132         reformatting.
1134 2013-10-14  Vincent Celier  <celier@adacore.com>
1136         * ali.adb (Get_File_Name): New Boolean parameter May_Be_Quoted,
1137         defaulted to False.  Calls Get_Name with May_Be_Quoted.
1138         (Get_Name): New Boolean parameter May_Be_Quoted, defaulted to
1139         False. If May_Be_Quoted is True and first non blank charater is
1140         '"', unquote the name.
1141         (Scan_ALI): For the file/path name on the D line, call Get_File_Name
1142         with May_Be_Quoted = True, as it may have been quoted.
1143         * lib-util.adb, lib-util.ads (Write_Info_Name_May_Be_Quoted): New
1144         procedure to write file/path names that may contain spaces and if they
1145         do are quoted.
1146         * lib-writ.adb (Write_ALI): Use new procedure
1147         Write_Info_Name_May_Be_Quoted to write file/path names on D lines.
1149 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1151         * sem_prag.adb (Analyze_Depends_In_Decl_Part,
1152         Analyze_Global_In_Decl_Part,
1153         Analyze_Pre_Post_Condition_In_Decl_Part): Install the subprogram
1154         and its formals only when it is not already installed.
1155         * sem_util.adb (Is_Refined_State): A state is refined when it
1156         has a non-empty list of constituents.
1158 2013-10-14  Tristan Gingold  <gingold@adacore.com>
1160         * adaint.c: Disable __gnat_get_executable_load_address for linux.
1161         * exp_prag.adb: Add comment in Expand_Pragma_Import_Export_Exception.
1163 2013-10-14  Tristan Gingold  <gingold@adacore.com>
1165         * s-vmexta.ads: Add comments.
1167 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1169         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing
1170         for pragma Refined_State.
1171         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
1172         for aspect Refined_Depends.
1173         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part):
1174         Use Find_Related_Subprogram_Or_Body to find the related
1175         context. Use the current scope when determining whether to
1176         ensure proper visibility.
1177         (Analyze_Depends_In_Decl_Part):
1178         Add local variable Spec_Id. Update the comment on usage of
1179         Subp_Id. Use Find_Related_Subprogram_Or_Body to find the
1180         related context. Extract the corresponding spec of the body
1181         (if any). Use the current scope when determining when to
1182         ensure proper visibility.
1183         (Analyze_Global_In_Decl_Part):
1184         Add local variable Spec_Id. Update the comment on usage of
1185         Subp_Id. Use Find_Related_Subprogram_Or_Body to find the
1186         related context. Extract the corresponding spec of the body
1187         (if any). Use the current scope when determining when to
1188         ensure proper visibility.
1189         (Analyze_Global_Item): Use the
1190         entity of the subprogram spec when performing formal parameter
1191         checks. Perform state-related checks.
1192         (Analyze_Input_Output):
1193         Use Is_Attribute_Result to detect 'Result. Query the
1194         entity of a subprogram spec when verifying the prefix of
1195         'Result. Perform state-related checks.  (Analyze_Pragma):
1196         Merge the analysis of Refined_Depends and Refined_Global.
1197         (Analyze_Refined_Depends_In_Decl_Part): Provide implemenation.
1198         (Analyze_Refined_Global_In_Decl_Part): Move state-related checks
1199         to the body of Analyze_Global_In_Decl_Part. Rename local constant
1200         List to Items.  (Analyze_Refined_Pragma): Remove circuitry to
1201         find the proper context, use Find_Related_Subprogram_Or_Body
1202         instead.
1203         (Check_Function_Return): Query the entity of
1204         the subprogram spec when verifying the use of 'Result.
1205         (Check_In_Out_States, Check_Input_States, Check_Output_States):
1206         Avoid using Has_Null_Refinement to detect a state with
1207         a non-null refinement, use the Refinement_Constituents
1208         list instead.
1209         (Check_Matching_Constituent): Remove initialization code.
1210         (Check_Mode_Restriction_In_Function): Use the entity of the subprogram
1211         spec when verifying mode usage in functions.
1212         (Collect_Global_Items): New routine.
1213         (Collect_Subprogram_Inputs_Outputs): Add local
1214         variable Spec_Id. Add circuitry for bodies-as-specs. Use
1215         pragma Refined_Global when collecting for a body.
1216         (Create_Or_Modify_Clause): Use the location of the
1217         clause. Rename local variable Clause to New_Clause to avoid
1218         confusion and update all occurrences.  Use Is_Attribute_Result
1219         to detect 'Result.
1220         (Find_Related_Subprogram): Removed.
1221         (Find_Related_Subprogram_Or_Body): New routine.
1222         (Is_Part_Of): Move routine to top level.
1223         (Normalize_Clause): Update the
1224         comment on usage. The routine can now normalize a clause with
1225         multiple outputs by splitting it.
1226         (Collect_Global_Items):
1227         Rename local constant List to Items. Remove the check for
1228         a null list.
1229         (Requires_Profile_Installation): Removed.
1230         (Split_Multiple_Outputs): New routine.
1231         * sem_prag.ads: Update the comments on usage of various
1232         pragma-related analysis routines.
1233         * sem_util.adb (Contains_Refined_State): The routine can now
1234         process pragma [Refined_]Depends.
1235         (Has_Refined_State): Removed.
1236         (Has_State_In_Dependency): New routine.
1237         (Has_State_In_Global): New routine.
1238         (Is_Attribute_Result): New routine.
1239         * sem_util.ads (Is_Attribute_Result): New routine.
1241 2013-10-14  Emmanuel Briot  <briot@adacore.com>
1243         * s-regpat.adb (Compile): Fix finalization of the automaton
1244         when its size was automatically computed to be exactly 1000 bytes.
1246 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
1248         * sem_ch3.adb (Complete_Private_Subtype): If the full view of
1249         the base type is constrained, the full view of the subtype is
1250         known to be constrained as well.
1252 2013-10-14  Vincent Celier  <celier@adacore.com>
1254         * projects.texi: Add documentation for new attributes of package
1255         Clean: Artifacts_In_Object_Dir and Artifacts_In_Exec_Dir.
1257 2013-10-14  Tristan Gingold  <gingold@adacore.com>
1259         * adaint.c, adaint.h (__gnat_get_executable_load_address):
1260         New function.
1261         * a-exexda.adb (Append_Info_Basic_Exception_Traceback): Add
1262         executable load address (Basic_Exception_Tback_Maxlength): Adjust.
1264 2013-10-14  Vincent Celier  <celier@adacore.com>
1266         * prj-attr.adb: New attributes in package Clean:
1267         Artifacts_In_Exec_Dir, Artifacts_In_Object_Dir.
1268         * prj-nmsc.adb (Process_Clean (Attributes)): New
1269         procedure to process attributes Artifacts_In_Exec_Dir and
1270         Artifacts_In_Object_Dir in package Clean.
1271         * prj.ads (Project_Configuration): New components
1272         Artifacts_In_Exec_Dir and Artifacts_In_Object_Dir.
1273         * snames.ads-tmpl: New standard names Artifacts_In_Exec_Dir and
1274         Artifacts_In_Object_Dir used only by gprclean.
1276 2013-10-14  Robert Dewar  <dewar@adacore.com>
1278         * exp_attr.adb (Expand_N_Attribute_Reference): Add error
1279         entry for Library_Level attribute (which should not survive
1280         to expansion)
1281         * gnat_rm.texi: Document attribute Library_Level
1282         * sem_attr.adb (Analyze_Attribute, case Library_Level): Implement
1283         this new attribute (Set_Boolean_Result): Replaces Set_Result
1284         (Check_Standard_Prefix): Document that Check_E0 is called
1285         (Check_System_Prefix): New procedure
1286         * snames.ads-tmpl: Add entry for Library_Level attribute
1288 2013-10-14  Robert Dewar  <dewar@adacore.com>
1290         * exp_ch6.adb, sinfo.ads: Minor reformatting.
1291         * checks.adb (Overlap_Check): Use identifier casing in messages.
1293 2013-10-14  Robert Dewar  <dewar@adacore.com>
1295         * einfo.ads, einfo.adb (Default_Aspect_Component_Value): Is on base type
1296         only.
1297         * exp_aggr.adb (Expand_Array_Aggregate): Handle proper
1298         initialization of <> component.
1299         * exp_ch3.adb, exp_tss.adb: Minor reformatting
1300         * sem_ch13.adb (Default_Aspect_Component_Value, Default_Aspect_Value):
1301         Is on base type only.
1302         * sinfo.ads: Minor comment revision.
1304 2013-10-14  Robert Dewar  <dewar@adacore.com>
1306         * g-decstr.adb (Decode_Wide_Wide_Character): Fix failure
1307         to detect invalid sequences where longer than necessary
1308         sequences are used for encoding.
1309         (Validate_Wide_Character):
1310         Call Decode_Wide_Character to get the above validations.
1311         (Validate_Wide_Wide_Character): Same fix
1312         * g-decstr.ads: Add documentation making it clear that the UTF-8
1313         implementation here recognizes all valid UTF-8 sequences, rather
1314         than the well-formed subset corresponding to characters defined
1315         in Unicode.
1316         (Next_Wide_Character): Remove comment about this
1317         being more efficient than Decode_Wide_Character (because this
1318         no longer the case).
1319         (Prev_Wide_Character): Add note that valid encoding is assumed.
1321 2013-10-14  Robert Dewar  <dewar@adacore.com>
1323         * a-wichha.adb (Character_Set_Version): New function.
1324         * a-wichha.ads: Remove comments for pragma Pure (final RM has
1325         this).
1326         (Character_Set_Version): New function.
1327         * gnat_rm.texi: Update doc.
1329 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1331         * einfo.adb: Flag263 is now known as Has_Null_Refinement.
1332         (Has_Null_Refinement): New routine.
1333         (Set_Has_Null_Refinement): New routine.
1334         (Write_Entity_Flags): Output the status of flag
1335         Has_Null_Refinement.
1336         * einfo.ads: Add new flag Has_Null_Refinement along with
1337         comment on usage and update all nodes subject to the flag.
1338         (Has_Null_Refinement): New routine along with pragma Inline.
1339         (Set_Has_Null_Refinement): New rouitine along with pragma Inline.
1340         * sem_prag.adb (Analyze_Constituent): Mark a state as having
1341         a null refinement when the sole constituent is "null".
1342         (Analyze_Global_List): Handle null input/output items.
1343         (Analyze_Refined_Global_In_Decl_Part): Add local variable
1344         Has_Null_State. Add logic to handle combinations of states
1345         with null refinements and null global lists and/or items.
1346         (Check_In_Out_States, Check_Input_States, Check_Output_States):
1347         Use attribute Has_Null_Refinement to detect states with
1348         constituents.
1349         (Check_Refined_Global_List): Handle null input/output items.
1350         (Process_Global_Item): Handle states with null refinements.
1351         (Process_Global_List): Handle null input/output items.
1353 2013-10-14  Robert Dewar  <dewar@adacore.com>
1355         * freeze.adb (Freeze_Entity): Reset Is_True_Constant for
1356         aliased object
1357         * gnat_ugn.texi: Update doc on aliased variables and constants.
1359 2013-10-14  Ed Schonberg  <schonberg@adacore.com>
1361         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
1362         reference is an actual in a call, the prefix has not been fully
1363         expanded, to account for the additional expansion for parameter
1364         passing. the prefix itself is a packed reference as well,
1365         recurse to complete the transformation of the prefix.
1367 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1369         * exp_dbug.adb (Debug_Renaming_Declaration): Do not
1370         materialize the entity when the renamed object contains an
1371         N_Explicit_Dereference.
1372         * sem_ch8.adb (Analyze_Object_Renaming):
1373         If the renaming comes from source and the renamed object is a
1374         dereference, mark the prefix as needing debug information.
1376 2013-10-14  Doug Rupp  <rupp@adacore.com>
1378         * system-vxworks-arm.ads (Stack_Check_Probes, Stack_Check_Limits):
1379         Enable Stack Probes, Disable Stack Limit Checking.
1380         * init.c [VxWorks] (__gnat_inum_to_ivec): Caste return value.
1381         (__gnat_map_signal): Fix signature.
1382         (__gnat_error_handler): Make
1383         static, fix signature, remove prototype, fix prototype warning.
1384         [ARMEL and VxWorks6] (__gnat_map_signal): Check and re-arm guard
1385         page for storage_error.
1386         * exp_pakd.adb: Minor reformatting.
1388 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1390         * sem_prag.adb (Analyze_Global_In_Decl_Part): Remove local
1391         variable Contract_Seen. Add local variable Proof_Seen.
1392         (Analyze_Global_List): Remove the processing for mode
1393         Contract_In. Add support for mode Proof_In.
1394         (Analyze_Pragma): Update the grammar of pragmas Global and
1395         Refined_Global.
1396         * snames.ads-tmpl: Remove predefined name Contract_In. Add
1397         predefined name Proof_In.
1399 2013-10-14  Robert Dewar  <dewar@adacore.com>
1401         * exp_prag.adb (Expand_Pragma_Check): Generate proper string
1402         for invariant
1403         * gnat_rm.texi: Add documentation for pragmas
1404         Type_Invariant[_Class]
1405         * par-prag.adb: Add entries for pragmas Type_Invariant[_Class]
1406         * sem_ch13.adb: Minor reformatting
1407         * sem_prag.adb: Implement pragmas Type_Invariant[_Class]
1408         * snames.ads-tmpl: Add entries for pragmas Type_Invariant[_Class]
1410 2013-10-14  Johannes Kanig  <kanig@adacore.com>
1412         * debug.adb: Release now unused debug switches that were only
1413         relevant for gnat2why backend, not the frontend
1414         * frontend.adb (Frontend) Do not stop when -gnatd.H is present,
1415         was unused
1417 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1419         * sem_prag.adb (Analyze_Global_Item): Allow
1420         references to enclosing formal parameters.
1422 2013-10-14  Thomas Quinot  <quinot@adacore.com>
1424         * einfo.adb (Equivalent_Type): Add missing case
1425         E_Access_Subprogram_Type in guard (for remote access to
1426         subprograms) * sem_ch8.adb (Find_Direct_Name, Find_Expanded_Name):
1427         Add missing guards to account for the presence of RAS types
1428         that have already been replaced with the corresponding fat
1429         pointer type.
1431 2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
1433         * aspects.adb: Add an entry in table Canonical_Aspect for
1434         Initializes.
1435         * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument,
1436         Aspect_Names and Aspect_Delay for Initializes.
1437         * atree.ads, atree.adb (Ekind_In): New seven argument versions of the
1438         routines.
1439         * einfo.adb: Remove Refined_State_Pragma from the list of node
1440         usage. Finalizer is now at position 28.
1441         (Contract): Package
1442         and package bodies now have a contract.
1443         (Finalizer): Update
1444         the assertion and node usage.
1445         (Get_Pragma): Update the Is_CDG
1446         flag to include Abstract_State, Initializes and Refined_State.
1447         (Refined_State_Pragma): Removed.
1448         (Set_Contract): Package and
1449         package bodies now have a contract.
1450         (Set_Finalizer): Update the
1451         assertion and node usage.
1452         (Set_Refined_State_Pragma): Removed.
1453         (Write_Field8_Name): Remove the output for Refined_State_Pragma.
1454         (Write_Field24_Name): Remove the output for Finalizer. Package
1455         and package bodies now have a contract.
1456         (Write_Field28_Name):
1457         Add output for Finalizer.
1458         * einfo.ads: Update the documentation and usage in entities
1459         of attribute Contract. Update the node position and usage in
1460         entities of attribute Finalizer. Remove the documentation
1461         and usage in entities for attribute Refined_State_Pragma.
1462         (Refined_State_Pragma): Removed along with pragma Inline.
1463         (Set_Refined_State_Pragma): Removed along with pragma Inline.
1464         * par-prag.adb: Add Initializes to the pragmas that do not
1465         require special processing by the parser.
1466         * sem_ch3.adb (Analyze_Declarations): Add local variable
1467         Prag. Update the retrieval of pragma Refined_State. Analyze
1468         aspect/pragma Initializes at the end of the visible declarations
1469         of the related package.
1470         * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
1471         Add local variables Ref_Depends and Ref_Global. Analyze
1472         pragmas Refined_Global and Refined_Depends in that order.
1473         (Analyze_Subprogram_Contract): Add local variables Depends and
1474         Global. Analyze pragmas Global and Depends in that order.
1475         * sem_ch7.adb (Analyze_Package_Body_Helper): Package
1476         bodies now have a contract. Move the analysis of the aspect
1477         specifications after the defining entity has been decorated.
1478         (Analyze_Package_Declaration): Packages now have a contract. Move
1479         the analysis of the aspect specifications after the defining
1480         entity has been decorated.
1481         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Packages
1482         now have contracts.
1483         * sem_ch13.adb (Analyze_Pragma): Code cleanup for aspect
1484         Abstract_State. Add processing for aspect Initializes.
1485         (Check_Aspect_At_Freeze_Point): Add an entry for Initializes.
1486         * sem_prag.adb: Use Get_Pragma_Arg to extract the expression
1487         of a pragma argument. Add an entry in table Sig_Flags for
1488         Initializes.
1489         (Analyze_Initializes_In_Decl_Part): New routine.
1490         (Analyze_Pragma): Check the declaration order of pragmas
1491         Abstract_State and Initializes. Abstract_State is now part of
1492         the package contract. Analyze pragma Initializes. Check for
1493         duplicate Refined_State pragma. Refined_State is now part of
1494         the package contract.
1495         (Check_Declaration_Order): New routine.
1496         (Check_Test_Case): Alphabetized.
1497         * sem_prag.ads (Analyze_Initializes_In_Decl_Part): New routine.
1498         * sem_util.adb (Add_Contract_Item): Rename formal Subp_Id
1499         to Id. This routine can now support contracts on packages and
1500         package bodies.
1501         * sem_util.ads (Add_Contract_Item): Rename formal Subp_Id to
1502         Id. Update comment on usage.
1503         * sinfo.ads: Update the usage of N_Contract nodes.
1504         * snames.ads-tmpl: Add predefined name Initializes. Add new
1505         pragma id for Initializes.
1507 2013-10-13  Nicolas Roche  <roche@adacore.com>
1508             Eric Botcazou  <ebotcazou@adacore.com>
1510         * gcc-interface/Make-lang.in (ada/%.o): Replace individual rules with
1511         generic rule and add $(POSTCOMPILE).
1512         (ADA_DEPS): New.
1513         (.adb.o): Add @$(ADA_DEPS).
1514         (.ads.o): Likewise.
1515         (ada/a-except.o): Likewise.
1516         (ada/s-excdeb.): Likewise.
1517         (ada/s-assert.o): Likewise.
1518         (ada/a-tags.o): Likewise.
1519         (ada_generated_files): New variable.
1520         Use them as dependency order for GNAT1_ADA_OBJS and GNATBIND_OBJS.
1521         (ADA_DEPFILES): New variable.
1522         Include them.
1523         (ada_OBJS): Define.
1525 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1527         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force all local
1528         variables with aggregate types in memory if not optimizing.
1530 2013-10-13  Hristian Kirtchev  <kirtchev@adacore.com>
1532         * sem_prag.adb (Check_Mode): Do
1533         not emit an error when we are looking at inputs and
1534         the item is an unconstrained or tagged out parameter.
1535         (Check_Mode_Restriction_In_Enclosing_Context): Use Get_Pragma
1536         to find whether the context is subject to aspect/pragma Global.
1537         (Collect_Subprogram_Inputs_Outputs): Unconstrained or tagged
1538         out parameters are now considered inputs. Use Get_Pragma to
1539         find wheher the subprogram is subject to aspect/pragma Global.
1540         (Is_Unconstrained_Or_Tagged_Item): New routine.
1542 2013-10-13  Thomas Quinot  <quinot@adacore.com>
1544         * einfo.ads: Minor reformatting.
1545         * gcc-interface/Make-lang.in: Update dependencies.
1547 2013-10-13  Robert Dewar  <dewar@adacore.com>
1549         * gnat_rm.texi: Add documentation for pragmas Pre[_Class]
1550         Post[_Class].
1551         * par-ch2.adb (Skip_Pragma_Semicolon): Handle extra semicolon nicely.
1552         * par-prag.adb: Add entries for pragmas Pre[_Class] and
1553         Post[_Class].
1554         * sem_prag.adb: Add handling of pragmas Pre[_Class] and
1555         Post[_Class].
1556         * sem_util.adb (Original_Aspect_Name): Moved here from
1557         Sem_Prag.Original_Name, and modified to handle pragmas
1558         Pre/Post/Pre_Class/Post_Class.
1559         * sem_util.ads (Original_Aspect_Name): Moved here from
1560         Sem_Prag.Original_Name.
1561         * snames.ads-tmpl: Add entries for pragmas Pre[_Class] and
1562         Post[_Class].
1564 2013-10-13  Robert Dewar  <dewar@adacore.com>
1566         * einfo.adb, sem_ch6.adb: Minor reformatting.
1568 2013-10-13  Hristian Kirtchev  <kirtchev@adacore.com>
1570         * einfo.adb: Add node/list usage for Refined_State
1571         and Refinement_Constituents.
1572         (Get_Pragma): Update the
1573         initialization of Is_CDG to include Refined_Global and
1574         Refined_Depends. Rename constant Delayed to In_Contract and update
1575         all of its occurrences.
1576         (Is_Non_Volatile_State): New routine.
1577         (Is_Volatile_State): Removed.
1578         (Refined_State): New routine.
1579         (Refinement_Constituents): New routine.
1580         (Set_Refined_State): New routine.
1581         (Set_Refinement_Constituents): New routine.
1582         (Write_Field8_Name): Add output for Refinement_Constituents.
1583         (Write_Field10_Name): Add output for Refined_State.
1584         * einfo.ads: Add new synthesized attribute Is_Non_Volatile_State.
1585         Remove synthesized attribute Is_Volatile_State.  Add new
1586         attributes Refined_State and Refinement_Constituents along with
1587         usage in nodes.
1588         (Get_Pragma): Update the comment on usage.
1589         (Is_Non_Volatile_State): New routine.
1590         (Is_Volatile_State): Removed.
1591         (Refined_State): New routine and pragma Inline.
1592         (Refinement_Constituents): New routine and pragma Inline.
1593         (Set_Refined_State): New routine and pragma Inline.
1594         (Set_Refinement_Constituents): New routine and pragma Inline.
1595         * elists.ads, elists.adb (Clone): Removed.
1596         (New_Copy_Elist): New routine.
1597         (Remove): New routine.
1598         * sem_ch3.adb (Analyze_Declarations): Use Defining_Entity
1599         to get the entity of the subprogram [body].
1600         (Analyze_Object_Declaration): Add initialization for
1601         Refined_State.
1602         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Add processing
1603         for Refined_Global and Refined_Depends. Emit an error when
1604         the body requires Refined_Global, but the aspect/pragma is
1605         not present.
1606         * sem_ch6.ads (Analyze_Subprogram_Body_Contract): Change
1607         procedure signature and add comment on usage.
1608         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
1609         for aspect Refined_Global.
1610         * sem_prag.adb (Analyze_Abstract_State): Add initialization
1611         of attributes Refined_State and Refinement_Constituents.
1612         (Analyze_Depends_In_Decl_Part, Analyze_Global_In_Decl_Part,
1613         Analyze_Contract_Cases_In_Decl_Part): Remove local
1614         constant Arg1.
1615         (Analyze_Pragma): Add processing for pragma
1616         Refined_Global. The analysis of Refined_Post and Refined_Pre
1617         has been merged. Update an error message in the processing of
1618         pragma Refined_State.
1619         (Analyze_Refined_Global_In_Decl_Part): Provide implementation.
1620         (Analyze_Refined_Pragma): New routine.
1621         (Analyze_Refined_Pre_Post_Condition): Removed.
1622         (Analyze_Refined_State_In_Decl_Part): Update the call to Clone.
1623         (Analyze_Refinement_Clause): Make State_Id visible to all
1624         nested subprogram.
1625         (Check_Matching_Constituent): Establish
1626         a relation between a refined state and its constituent.
1627         (Collect_Hidden_States_In_Decls): Remove ??? comment. Look at
1628         the entity of the object declaration to establish its kind.
1629         * sem_util.adb: Alphabetize with and use clauses.
1630         (Contains_Refined_State): New routine.
1631         * sem_util.ads (Contains_Refined_State): New routine.
1633 2013-10-13  Thomas Quinot  <quinot@adacore.com>
1635         * scos.ads: Minor documentation clarification.
1637 2013-10-13  Thomas Quinot  <quinot@adacore.com>
1639         * s-oscons-tmplt.c (CLOCK_RT_Ada): Set to CLOCK_MONOTONIC when
1640         building on AIX 5.3 or later, and to CLOCK_REALTIME on older
1641         versions of AIX.
1642         * init.c (pthread_condattr_setclock): Remove now useless weak symbol.
1643         * thread.c(__gnat_pthread_condattr_setup): Remove bogus AIX 5.2
1644         compatibility shim.
1645         * s-osinte-aix.ads(clock_id_t): Fix C mapping (this is a 64-bit
1646         type).
1647         (clock_gettime): Import from C runtime library.
1648         * s-osinte-aix.adb (clock_gettime): Remove bogus emulation body,
1649         this routine is provided by the system in current supported
1650         versions of AIX.
1652 2013-10-13  Robert Dewar  <dewar@adacore.com>
1654         * sem_ch3.adb: Minor reformatting.
1656 2013-10-13  Ed Schonberg  <schonberg@adacore.com>
1658         * freeze.adb (Freeze_Entity): For a function whose return type
1659         is incomplete, do not replace the type with the full view if the
1660         type is a limited view.  In that case the full view appears in a
1661         different unit, and the back-end will retrieve it at the proper
1662         elaboration point.
1664 2013-10-13  Yannick Moy  <moy@adacore.com>
1666         * exp_spark.adb (Expand_SPARK_Call): Do not introduce temporaries for
1667         actuals.
1669 2013-10-13  Ed Schonberg  <schonberg@adacore.com>
1671         * sem_ch3.adb: in Ada 2012 access_to_function types can have
1672         in-out parameters.
1673         (Derived_Type_Declaration): SPARK restriction
1674         must be flagged on the original node, since it may have been
1675         written as a subtype declaration.
1676         (Analyze_Subtype_Declaration): Do not enter name of
1677         entity in declaration if it is the current entity, because it may
1678         have been inserted in a previous analysis and it appears in the
1679         else_part of an if-statement that is rewritten during expansion.
1681 2013-10-13  Yannick Moy  <moy@adacore.com>
1683         * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Remove procedure.
1684         (Expand_SPARK): Remove call to Expand_SPARK_N_Attribute_Reference and
1685         Expand_SPARK_N_Simple_Return_Statement.
1686         (Expand_SPARK_N_Simple_Return_Statement,
1687         Expand_SPARK_Simple_Function_Return): Remove procedures.
1689 2013-10-13  Vincent Celier  <celier@adacore.com>
1691         * gnat_ugn.texi: Minor editing.
1693 2013-10-13  Ed Schonberg  <schonberg@adacore.com>
1695         * sem_ch3.adb (Check_Abstract_Overriding): If a synchronized
1696         operation implements an interface primitive, mark the operation
1697         as referenced, to prevent usually spurious messages about unused
1698         entities: such operations are called in dispatching select
1699         statements that are not visible to the compiler.
1701 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1703         * gcc-interface/decl.c (gnat_to_gnu_param): Remove obsolete comment.
1705 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1707         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_8): Define.
1709 2013-10-10  Robert Dewar  <dewar@adacore.com>
1711         * par-ch6.adb (Check_Junk_Semicolon_Before_Return): Remove
1712         junk code.
1714 2013-10-10  Javier Miranda  <miranda@adacore.com>
1716         * sem_ch13.adb (Freeze_Entity_Checks): Avoid
1717         loosing errors on CPP entities in -gnatc mode.
1719 2013-10-10  Robert Dewar  <dewar@adacore.com>
1721         * sem_ch5.adb (Analyze_If_Statement): Only diagnose redundant
1722         if from source.
1724 2013-10-10  Robert Dewar  <dewar@adacore.com>
1726         * restrict.adb (Check_SPARK_Restriction): Refine test (don't
1727         automatically go to the original node).
1728         * sem_ch11.adb (Analyze_Raise_Statement): Only raise
1729         statements that come from source violate SPARK restrictions.
1730         (Analyze_Raise_xxx_Error): Same fix.
1731         * sem_ch3.adb (Analyze_Object_Declaration): Check OK SPARK
1732         initialization on original node, not on possibly rewritten
1733         expression.
1734         * sem_ch4.adb (Analyze_If_Expression): Only if expressions that
1735         come from source violate SPARK mode restrictions.
1737 2013-10-10  Robert Dewar  <dewar@adacore.com>
1739         * gnat_ugn.texi: Fix confusing documentation for -gnatyM.
1741 2013-10-10  Yannick Moy  <moy@adacore.com>
1743         * errout.adb (Compilation_Errors): In formal verification mode,
1744         always return False.
1746 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1748         * sem_prag.adb (Collect_Hidden_States_In_Decls): Only consider source
1749         non-constant objects.
1751 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1753         * aspects.adb: Add an entry in table Canonical_Aspect for
1754         Refined_State.
1755         * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument,
1756         Aspect_Names and Aspect_Delay for Refined_State.
1757         * einfo.adb: Add with and use clauses for Elists.
1758         Remove Refined_State from the list of node usage.
1759         Add Refined_State_Pragma to the list of node usage.
1760         (Has_Null_Abstract_State): New routine.
1761         (Refined_State): Removed.
1762         (Refined_State_Pragma): New routine.
1763         (Set_Refined_State): Removed.
1764         (Set_Refined_State_Pragma): New routine.
1765         (Write_Field8_Name): Add output for Refined_State_Pragma.
1766         (Write_Field9_Name): Remove the output for Refined_State.
1767         * einfo.ads: Add new synthesized attribute Has_Null_Abstract_State
1768         along with usage in nodes.  Remove attribute Refined_State along
1769         with usage in nodes.  Add new attribute Refined_State_Pragma along
1770         with usage in nodes.
1771         (Has_Null_Abstract_State): New routine.
1772         (Refined_State): Removed.
1773         (Refined_State_Pragma): New routine.
1774         (Set_Refined_State): Removed.
1775         (Set_Refined_State_Pragma): New routine.
1776         * elists.adb (Clone): New routine.
1777         * elists.ads (Clone): New routine.
1778         * par-prag.adb: Add Refined_State to the pragmas that do not
1779         require special processing by the parser.
1780         * sem_ch3.adb: Add with and use clause for Sem_Prag.
1781         (Analyze_Declarations): Add local variables Body_Id, Context and
1782         Spec_Id. Add processing for delayed aspect/pragma Refined_State.
1783         * sem_ch13.adb (Analyze_Aspect_Specifications): Update the
1784         handling of aspect Abstract_State.  Add processing for aspect
1785         Refined_State. Remove the bizzare insertion policy for aspect
1786         Abstract_State.
1787         (Check_Aspect_At_Freeze_Point): Add an entry for Refined_State.
1788         * sem_prag.adb: Add an entry to table Sig_Flags
1789         for pragma Refined_State.
1790         (Add_Item): Update the
1791         comment on usage. The inserted items need not be unique.
1792         (Analyze_Contract_Cases_In_Decl_Part): Rename variable Restore to
1793         Restore_Scope and update all its occurrences.
1794         (Analyze_Pragma):
1795         Update the handling of pragma Abstract_State. Add processing for
1796         pragma Refined_State.
1797         (Analyze_Pre_Post_Condition_In_Decl_Part):
1798         Rename variable Restore to Restore_Scope and update all its
1799         occurrences.
1800         (Analyze_Refined_State_In_Decl_Part): New routine.
1801         * sem_prag.ads (Analyze_Refined_State_In_Decl_Part): New routine.
1802         * snames.ads-tmpl: Add new predefined name for Refined_State. Add
1803         new Pragma_Id for Refined_State.
1805 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
1807         * sem_ch10.adb (Install_Limited_Withed_Unit): handle properly the
1808         case of a record declaration in a limited view, when the record
1809         contains a self-referential component of an anonymous access type.
1811 2013-10-10  Thomas Quinot  <quinot@adacore.com>
1813         * exp_ch4.adb (Process_Transient_Object): For any context other
1814         than a simple return statement, insert the finalization action
1815         after the context, not as an action on the context (which will
1816         get evaluated before it).
1818 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1820         * einfo.adb (Write_Field19_Name): Correct the
1821         string name of attribute Default_Aspect_Value.
1823 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
1825         * sem_type.adb (Interface_Present_In_Ancestor): The progenitor
1826         in a type declaration may be an interface subtype.
1828 2013-10-10  Robert Dewar  <dewar@adacore.com>
1830         * sinfo.ads (Do_Range_Check): Add special note on handling of
1831         range checks for Succ and Pred.
1833 2013-10-10  Robert Dewar  <dewar@adacore.com>
1835         * erroutc.adb (Output_Msg_Text): Remove VMS special handling.
1837 2013-10-10  Robert Dewar  <dewar@adacore.com>
1839         * a-chahan.ads, a-chahan.adb (Is_Line_Terminator): New function
1840         (Is_Mark): New function.
1841         (Is_Other_Format): New function.
1842         (Is_Punctuation_Connector): New function.
1843         (Is_Space): New function.
1845 2013-10-10  Robert Dewar  <dewar@adacore.com>
1847         * sem_aggr.adb (Resolve_Array_Aggregate): Redo duplicate/missing
1848         choice circuit. Was not quite right in some cases, which showed
1849         up in ACATS test B43201C.
1850         * sem_attr.adb (Address_Checks): Make sure name is set right
1851         for some messages issued.
1852         * mlib-prj.adb: Minor code reorganization.
1853         * gnat_ugn.texi: Remove special VMS doc for tagging of warning msgs.
1854         * exp_ch9.adb: Minor reformatting.
1856 2013-10-10  Tristan Gingold  <gingold@adacore.com>
1858         * lib-writ.adb (Write_Unit_Information): Adjust previous patch.
1860 2013-10-10  Robert Dewar  <dewar@adacore.com>
1862         * sem_ch5.adb (Analyze_If_Statement): Warn on redundant if
1863         statement.
1864         * sem_util.ads, sem_util.adb (Has_No_Obvious_Side_Effects): New
1865         function.
1867 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
1869         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Simplify expansion
1870         for the case of a dispatching trigger: there is no need to
1871         duplicate the code or create a subprogram to encapsulate the
1872         triggering statements. This allows exit statements in the
1873         triggering statements, that refer to enclosing loops.
1875 2013-10-10  Robert Dewar  <dewar@adacore.com>
1877         * freeze.adb: Minor reformatting.
1878         * sem_ch13.adb (Freeze_Entity_Checks): New procedure
1879         (Analyze_Freeze_Entity): Call Freeze_Entity_Checks
1880         (Analyze_Freeze_Generic_Entity): Call Freeze_Entity_Checks.
1881         * sinfo.ads: Add syntax for sprint for Freeze_Generic_Entity.
1882         * sprint.ads: Add syntax for freeze generic entity node.
1884 2013-10-10  Robert Dewar  <dewar@adacore.com>
1886         * einfo.adb, einfo.ads: Minor comment updates.
1888 2013-10-10  Robert Dewar  <dewar@adacore.com>
1890         * lib-writ.adb (Write_Unit_Information): Fatal error if linker
1891         options are detected in a predefined generic unit.
1893 2013-10-10  Thomas Quinot  <quinot@adacore.com>
1895         * s-oscons-tmplt.c (CLOCK_REALTIME): Always define, possibly using
1896         a dummy placeholder value.
1897         (NEED_PTHREAD_CONDATTR_SETCLOCK): Remove, not needed anymore.
1898         * thread.c: Adjust #if test accordingly.
1900 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1902         * exp_ch6.adb (Consequence_Error): Generate an
1903         implicit if statement.
1904         (Expand_Contract_Cases): Generate an implicit if statement.
1905         (Process_Contract_Cases): Do not expand Contract_Cases when no code
1906         is being generated.
1908 2013-10-10  Robert Dewar  <dewar@adacore.com>
1910         * sem_attr.adb (Address_Checks): New procedure.
1912 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
1914         * sinfo.ads, sinfo.adb: New Node Freeze_Generic_Entity, to trigger
1915         semantic actions at the proper point for entities that previously
1916         had no explicit freeze point.
1917         * freeze.adb (Freeze_Generic_Entities): generate new nodes to
1918         indicate the point at which semantic checks can be performed on
1919         entities declared in generic packages.
1920         * sem_ch13.ads, sem_ch13.adb: New procedure
1921         Analyze_Freeze_Generic_Entity.
1922         * exp_util.adb (Insert_Actions): Treat new node like Freeze_Entity.
1923         * sem.adb (Analyze): Call Analyze_Freeze_Generic_Entity.
1924         * sprint.adb (Sprint_Node): display Analyze_Freeze_Generic_Entity.
1925         * gcc-interface/trans.c: Ignore Analyze_Freeze_Generic_Entity.
1926         * gcc-interface/Make-lang.in: Update dependencies.
1928 2013-10-10  Robert Dewar  <dewar@adacore.com>
1930         * sem_aggr.adb (Resolve_Array_Aggregate): Identify duplicated
1931         cases.
1933 2013-10-10  Robert Dewar  <dewar@adacore.com>
1935         * sem_ch9.adb (Analyze_Task_Body): Aspects are illegal
1936         (Analyze_Protected_Body): Aspects are illegal.
1938 2013-10-10  Robert Dewar  <dewar@adacore.com>
1940         * sem_ch6.adb, sem_ch13.adb: Minor reformatting.
1941         * sem_case.adb (Check_Choices): Fix bad listing of missing
1942         values from predicated subtype case (Check_Choices): List
1943         duplicated values.
1944         * errout.adb (Set_Msg_Text): Process warning tags in VMS mode
1945         * erroutc.adb (Output_Msg_Text): Handle VMS warning tags
1946         * gnat_ugn.texi: Document /WARNINGS=TAG_WARNINGS for VMS
1947         * ug_words: Add entries for -gnatw.d and -gnatw.D
1948         * vms_data.ads: Add [NO]TAG_WARNINGS for -gnatw.D/-gnatw.d
1949         * lib-writ.ads: Documentation fixes
1951 2013-10-10  Robert Dewar  <dewar@adacore.com>
1953         * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads
1954         (Is_Other_Format): New name for Is_Other.
1955         (Is_Punctuation_Connector): New name for Is_Punctuation
1957 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1959         * aspects.adb: Add entries in table Canonical_Aspects for aspects
1960         Refined_Depends and Refined_Global.
1961         * aspects.ads: Add entries in tables Aspect_Id, Aspect_Argument,
1962         Aspect_Names, Aspect_Declay, Aspect_On_Body_Or_Stub_OK for
1963         aspects Refined_Depends and Refined_Global.
1964         * einfo.adb (Contract): Subprogram bodies are now valid owners
1965         of contracts.
1966         (Set_Contract): Subprogram bodies are now valid
1967         owners of contracts.
1968         (Write_Field24_Name): Output the contract
1969         attribute for subprogram bodies.
1970         * exp_ch6.adb (Expand_Subprogram_Contract): New routine.
1971         * exp_ch6.ads (Expand_Subprogram_Contract): New routine.
1972         * par-prag.adb: Pragmas Refined_Depends and Refined_Global do
1973         not require any special processing by the parser.
1974         * sem_ch3.adb (Adjust_D): Renamed to Adjust_Decl.
1975         (Analyze_Declarations): Code reformatting. Analyze the contract
1976         of a subprogram body at the end of the declarative region.
1977         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
1978         Subprogram bodies can now have contracts.  Use
1979         Expand_Subprogram_Contract to handle the various contract
1980         assertions.
1981         (Analyze_Subprogram_Body_Contract): New null routine.
1982         (Analyze_Subprogram_Body_Helper): Subprogram bodies can now have
1983         contracts.  Use Expand_Subprogram_Contract to handle the various
1984         contract assertions.
1985         (Analyze_Subprogram_Contract): Add local
1986         variable Nam. Update the call to Analyze_PPC_In_Decl_Part. Capture
1987         the pragma name in Nam.
1988         (Process_PPCs): Removed.
1989         * sem_ch6.ads (Analyze_Subprogram_Body_Contract): New routine.
1990         (Analyze_Subprogram_Contract): Update the comment on usage.
1991         * sem_ch13.adb (Analyze_Aspect_Specifications): Add null
1992         implementations for aspects Refined_Depends and Refined_Global.
1993         (Check_Aspect_At_Freeze_Point): Aspects Refined_Depends and
1994         Refined_Global do not need to be checked at the freeze point.
1995         * sem_prag.adb: Add entries in table Sig_Flags
1996         for pragmas Refined_Depends and Refined_Global.
1997         (Analyze_Contract_Cases_In_Decl_Part): Add local
1998         variable Restore. Use Restore to pop the scope.
1999         (Analyze_Depends_In_Decl_Part): Add local variable Restore. Use
2000         Restore to pop the scope.
2001         (Analyze_Global_In_Decl_List): Add local variable Restore. Use Restore
2002         to pop the scope.
2003         (Analyze_PPC_In_Decl_Part): Renamed to
2004         Analyze_Pre_Post_Condition_In_Decl_Part.
2005         (Analyze_Pragma):
2006         Add null implementations for pragmas Refined_Depends and
2007         Refined_Global. Refined_Pre and Refined_Post are now
2008         handled by routine Analyze_Refined_Pre_Post_Condition
2009         exclusively.
2010         (Analyze_Refined_Depends_In_Decl_Part): New
2011         null routine.
2012         (Analyze_Refined_Global_In_Decl_Part):
2013         New null routine.
2014         (Analyze_Refined_Pre_Post):
2015         Renamed to Analyze_Refined_Pre_Post_Condition.
2016         (Analyze_Refined_Pre_Post_Condition): Analyze the boolean
2017         expression.
2018         (Check_Precondition_Postcondition): Update the call
2019         to Analyze_PPC_In_Decl_Part.
2020         * sem_prag.ads: Add entries in table
2021         Pragma_On_Body_Or_Stub_OK for pragmas Refined_Depends
2022         and Refined_Global.
2023         (Analyze_PPC_In_Decl_Part): Renamed
2024         to Analyze_Pre_Post_Condition_In_Decl_Part.  Update the
2025         comment on usage.
2026         (Analyze_Refined_Depends_In_Decl_Part): New routine.
2027         (Analyze_Refined_Global_In_Decl_Part): New routine.
2028         (Analyze_Test_Case_In_Decl_Part): Update the comment on usage.
2029         * sem_util.adb (Add_Contract_Item): Rename formal Item to Prag
2030         and update all occurrences.  Subprogram body contracts can now
2031         contain pragmas Refined_Depends and Refined_Global.
2032         * sem_util.ads (Add_Contract_Item): Rename formal Item to
2033         Prag. Update the comment on usage.
2034         * sinfo.ads: Update the comment on structure and usage of
2035         N_Contract.
2036         * snames.ads-tmpl: Add new predefined names for Refined_Depends
2037         and Refined_Global. Add entries in table Pragma_Id for
2038         Refined_Depends and Refined_Global.
2040 2013-10-10  Robert Dewar  <dewar@adacore.com>
2042         * types.ads: Minor reformatting.
2044 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2046         * s-taprop-posix.adb: Add missing comment.
2048 2013-10-10  Robert Dewar  <dewar@adacore.com>
2050         * freeze.adb (Freeze_Record_Type): Move choice checking to
2051         Analyze_Freeze_Entity (Freeze_Record_Type): Make sure all choices
2052         are properly frozen
2053         * sem_case.adb (Check_Choices): Remove misguided attempt to
2054         freeze choices (this is now done in Freeze_Record_Type where
2055         it belongs).
2056         (Check_Choices): Remove some analyze/resolve calls
2057         that are redundant since they are done in Analyze_Choices.
2058         * sem_ch13.adb (Analyze_Freeze_Entity): Do the error
2059         checking for choices in variant records here (moved here from
2060         Freeze.Freeze_Record_Type)
2062 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2064         * s-oscons-tmplt.c, s-taprop-posix.adb (CLOCK_REALTIME): Always define,
2065         possibly using a dummy placeholder value.
2066         (Compute_Deadline): For the case of an
2067         Absolute_Calendar deadline, if the target uses another clock
2068         than CLOCK_REALTIME as CLOCK_RT_Ada, compensate for possible
2069         different epoch.
2071 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2073         * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully
2074         qualified reference to a generic child unit within itself,
2075         in an instantiation.
2077 2013-10-10  Pascal Obry  <obry@adacore.com>
2079         * prj-conf.adb: Minor typo fixes in comment.
2081 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2083         * s-taprop-posix.adb (Compute_Deadline): New local subprogram,
2084         factors common code between Timed_Sleep and Timed_Delay.
2086 2013-10-10  Robert Dewar  <dewar@adacore.com>
2088         * freeze.adb (Freeze_Record_Type): Don't replace others if
2089         expander inactive. This avoids clobbering the ASIS tree in
2090         -gnatct mode.
2092 2013-10-10  Robert Dewar  <dewar@adacore.com>
2094         * sem_res.adb (Resolve_Op_Expon): Avoid crash testing for
2095         fixed-point case in preanalysis mode (error will be caught during
2096         full analysis).
2098 2013-10-10  Robert Dewar  <dewar@adacore.com>
2100         * gnat_rm.texi: Refined_Pre and Refined_Post are now allowed as
2101         assertion identifiers for pragma Assertion_Policy.
2102         * sem_prag.adb (Is_Valid_Assertion_Kind): Add Refined_Pre/Refined_Post
2103         * sem_ch13.adb: Minor reformatting.
2105 2013-10-10  Pascal Obry  <obry@adacore.com>
2107         * prj-conf.adb: Code refactoring.
2109 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2111         * einfo.adb: Remove Integrity_Level from the node usage list.
2112         (Has_Option): Update the implementation to match
2113         the new terminology.
2114         (Has_Property): Renamed to Has_Option.
2115         (Integrity_Level): Removed.
2116         (Is_External_State): New routine.
2117         (Is_Input_Only_State): Use Has_Option to determine whether a state
2118         is Input_Only.  (Is_Input_State): Renamed to Is_Input_Only_State.
2119         (Is_Output_Only_State): Use Has_Option to determine whether
2120         a state is Output_Only.
2121         (Is_Output_State): Renamed to
2122         Is_Output_Only_State.
2123         (Is_Volatile_State): Use Has_Option to determine whether a state is
2124         volatile.
2125         (Set_Integrity_Level): Removed.
2126         (Write_Field8): Remove the entry for Integrity_Level.
2127         * einfo.ads: Remove Integrity_Level along with its documentation
2128         and usage in nodes.  Rename Is_Input_State to Is_Input_Only_State.
2129         Rename Is_Output_State to Is_Output_Only_State.  Update the
2130         documentation of Is_Volatile_State.  Update the node structure of
2131         E_Abstract_Entity.
2132         (Integrity_Level): Removed along with pragma Inline.
2133         (Is_External_State): New routine.
2134         (Is_Input_State): Renamed to Is_Input_Only_State.
2135         (Is_Output_State): Renamed to Is_Output_Only_State.
2136         (Set_Integrity_Level): Removed along with pragma Inline.
2137         * sem_prag.adb (Analyze_Pragma): Update the checks regarding
2138         global items and abstract state modes. Update the implementation
2139         of pragma Abstract_State to reflect the new rules and terminology.
2140         * snames.ads-tmpl: Remove the predefined name for Integrity
2141         level. Add new predefined names for Input_Only, Non_Volatile,
2142         Output_Only and Part_Of.
2144 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2146         * lib-xref.adb (Generate_Reference): Do not generate a reference
2147         within a _postcondition procedure: a proper source reference has
2148         already been generated when pre- analyzing the original aspect
2149         specification, and the use of a formal in a pre/postcondition
2150         should not count as a proper use in a subprogram body.
2152 2013-10-10  Robert Dewar  <dewar@adacore.com>
2154         * sem_eval.adb (Why_Non_Static): Fix bomb for deferred constant
2155         case
2157 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2159         * aspects.adb: Add an entry for Aspect_Refined_Post in table
2160         Canonical_Aspect.
2161         * aspects.ads: Add an entry for Aspect_Refined_Post in tables
2162         Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay,
2163         Aspect_On_Body_Or_Stub_OK. Update the comment on the use of
2164         table Aspect_On_Body_Or_Stub_OK.
2165         * par-prag.adb: Add pragma Refined_Post to the list of pragmas
2166         that do not require special processing by the parser.
2167         * sem_attr.adb (Analyze_Attribute): Add special analysis for
2168         attributes 'Old and 'Result when code generation is disabled and
2169         they appear in aspect/pragma Refined_Post.
2170         (In_Refined_Post): New routine.
2171         * sem_ch6.adb (Analyze_Expression_Function): Move various
2172         aspects and/or pragmas that apply to an expression function to the
2173         corresponding spec or body.
2174         (Collect_Body_Postconditions): New routine.
2175         (Process_PPCs): Use routine Collect_Body_Postconditions
2176         to gather all postcondition pragmas.
2177         * sem_ch10.adb (Analyze_Proper_Body): Use routine
2178         Relocate_Pragmas_To_Body to move all source pragmas that follow
2179         a body stub to the proper body.
2180         (Move_Stub_Pragmas_To_Body): Removed.
2181         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
2182         for aspect Refined_Post.
2183         (Check_Aspect_At_Freeze_Point): Aspect
2184         Refined_Post does not need delayed processing at the freeze point.
2185         * sem_prag.adb: Add an entry for pragma Refined_Post in
2186         table Sig_Flags.
2187         (Analyze_Pragma): Add processing for pragma
2188         Refined_Post. Update the processing of pragma Refined_Pre
2189         to use common routine Analyze_Refined_Pre_Post.
2190         (Analyze_Refined_Pre_Post): New routine.
2191         (Relocate_Pragmas_To_Body): New routine.
2192         * sem_prag.ads: Table Pragma_On_Stub_OK is now known as
2193         Pragma_On_Body_Or_Stub_OK. Update the comment on usage of
2194         table Pragma_On_Body_Or_Stub_OK.
2195         (Relocate_Pragmas_To_Body): New routine.
2196         * snames.ads-tmpl: Add new predefined name for Refined_Post. Add
2197         new Pragma_Id for Refined_Post.
2199 2013-10-10  Robert Dewar  <dewar@adacore.com>
2201         * exp_ch3.adb (Expand_N_Variant_Part): Now null, expansion of
2202         last choice to others is moved to Freeze_Record_Type.
2203         * freeze.adb (Freeze_Record_Type): Expand last variant to others
2204         if necessary (moved here from Expand_N_Variant_Part
2206 2013-10-10  Robert Dewar  <dewar@adacore.com>
2208         * lib-xref-spark_specific.adb, par-ch13.adb, sem_prag.adb, sem_prag.ads,
2209         sem_ch12.adb, sem_attr.adb, sem_ch6.adb, sem_ch13.adb, a-sequio.adb,
2210         s-atocou-builtin.adb: Minor reformatting.
2212 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2214         * s-oscons-tmplt.c (NEED_PTHREAD_CONDATTR_SETCLOCK): This
2215         constant needs to be output to s-oscons.h, as it is tested
2216         by init.c.
2218 2013-10-10  Robert Dewar  <dewar@adacore.com>
2220         * exp_ch3.adb (Expand_N_Variant_Part): Don't expand choices, too early
2221         * exp_ch5.adb (Expand_N_Case_Statement): Use new Has_SP_Choice
2222         flag to avoid expanding choices when not necessary.
2223         * exp_util.adb: Minor reformatting
2224         * freeze.adb (Freeze_Record_Type): Redo expansion of variants
2225         * sem_aggr.adb: Minor reformatting
2226         * sem_case.ads, sem_case.adb: Major rewrite, separating Analysis and
2227         Checking of choices.
2228         * sem_ch3.adb (Analyze_Variant_Part): Rewrite to call new
2229         Analyze_Choices.
2230         * sem_ch4.adb (Analyze_Case_Expression): Call Analyze_Choices
2231         and Check_Choices
2232         * sem_ch5.adb (Analyze_Case_Statement): Call Analyze_Choices
2233         and Check_Choices
2234         * sem_util.adb: Minor reformatting
2235         * sinfo.ads, sinfo.adb (Has_SP_Choice): New flag.
2237 2013-10-10  Vincent Celier  <celier@adacore.com>
2239         * mlib-prj.adb (Build_Library): Do not issue link dynamic
2240         libraries with an Rpath, if switch -R was used.
2242 2013-10-10  Tristan Gingold  <gingold@adacore.com>
2244         * s-stalib.ads (Image_Index_Table_8, Image_Index_Table_16,
2245         Image_Index_Table_32): Remove as not used.
2246         * s-imgint.adb (Image_Integer): Call Set_Image_Integer and
2247         remove duplicated code.
2249 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2251         * sem_prag.adb (Analyze_Pragma): Provide a
2252         more precise error message when pragma Refined_Pre applies to
2253         an expression function that is not a completion.
2255 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2257         * sem_attr.adb (Analyse_Attribute, case
2258         Attribute_Scalar_Storage_Order): a 'Scalar_Storage_Order attribute
2259         reference for a generic type is permitted in GNAT runtime mode.
2260         * a-sequio.adb (Read, Write): Use the endianness of the actual
2261         type to encode length information written to the file.
2263 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2265         * par-ch13.adb (Aspect_Specifications_Present)): In earlier than
2266         Ada2012 mode, assume that a legal aspect name following "with"
2267         keyword is an older gnat switch and not a misplaced with_clause.
2269 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2271         * aspects.adb: Add an entry for Aspect_Refined_Pre in
2272         table Canonical_Aspect.
2273         (Aspects_On_Body_OK): Renamed to
2274         Aspects_On_Body_Or_Stub_OK.
2275         (Aspects_On_Body_Or_Stub_OK):
2276         Update the query in table Aspect_On_Body_OK.
2277         * aspects.ads: Add an entry for Aspect_Refined_Pre in tables
2278         Aspect_Id, Aspect_Argument, Aspect_Names, Aspect_Delay,
2279         Aspect_On_Body_Or_Stub_OK. Table Aspect_On_Body_OK is now known as
2280         Aspect_On_Body_Or_Stub_OK.  Add a section of aspect specifications
2281         that apply to body stubs.
2282         (Aspects_On_Body_OK): Renamed to Aspects_On_Body_Or_Stub_OK.
2283         (Aspects_On_Body_Or_Stub_OK): Update the comment on usage.
2284         * par-prag.adb: Add pragma Refined_Pre to the list of pragmas
2285         that do not require special processing by the parser.
2286         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Delay the
2287         analysis of aspect specifications that apply to a body stub
2288         until the proper body is analyzed.
2289         * sem_ch10.adb: Add with and use clause for Sem_Ch13.
2290         (Analyze_Package_Body_Stub): Set the corresponding spec of the stub.
2291         (Analyze_Proper_Body): Relocate all pragmas that apply
2292         to a subprogram body stub to the declarations of the proper
2293         body. Analyze the aspect specifications of the stub when the
2294         proper body is not present.
2295         (Analyze_Protected_Body_Stub): Set the corresponding spec of the stub.
2296         (Analyze_Task_Body_Stub): Set the corresponding spec of the stub.
2297         (Move_Stub_Pragmas_To_Body): New routine.
2298         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
2299         for aspect Refined_Pre.
2300         (Check_Aspect_At_Freeze_Point): Aspect
2301         Refined_Pre does not need delayed processing at the freeze point.
2302         * sem_prag.adb: Remove with and use clause for Snames. Add
2303         an entry for Pragma_Refined_Pre in table Sig_Flags.
2304         (Analyze_Pragma): Add processing for pragma Refined_Pre.
2305         * sem_prag.ads: Add with and use clause for Snames. Add table
2306         Pragma_On_Stub_OK.
2307         * sinfo.adb (Corresponding_Spec_Of_Stub): New routine.
2308         (Set_Corresponding_Spec_Of_Stub): New routine.
2309         * sinfo.ads: Add new attribute Corresponding_Spec_Of_Stub
2310         along with comment on usage and occurrences in nodes.
2311         (Corresponding_Spec_Of_Stub): New routine along with pragma
2312         Inline.
2313         (Set_Corresponding_Spec_Of_Stub): New routine along
2314         with pragma Inline.
2315         * snames.ads-tmpl: Add new predefined name for Refined_Pre. Add
2316         new Pragma_Id for Refined_Pre.
2318 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2320         * sem_ch12.adb (Analyze_Package_Instantiation,
2321         Analyze_Subprogram_Instantiation): Improve error message when
2322         name in instantiation does not designate a generic unit of the
2323         right kind.
2325 2013-10-10  Robert Dewar  <dewar@adacore.com>
2327         * exp_ch3.adb (Expand_N_Variant_Part): Expand statically
2328         predicated subtype which appears in Discrete_Choices list.
2329         * exp_ch5.adb (Expand_N_Case_Statement): Expand statically
2330         predicated subtype which appears in Discrete_Choices list of
2331         case statement alternative.
2332         * exp_util.ads, exp_util.adb (Expand_Static_Predicates_In_Choices): New
2333         procedure.
2334         * sem_case.adb: Minor reformatting (Analyze_Choices): Don't
2335         expand out Discrete_Choices that are names of subtypes with
2336         static predicates. This is now done in the analyzer so that the
2337         -gnatct tree is properly formed for ASIS.
2338         * sem_case.ads (Generic_Choices_Processing): Does not apply
2339         to aggregates any more, so change doc accordingly, and remove
2340         unneeded Get_Choices argument.
2341         * sem_ch3.adb (Analyze_Variant_Part): Remove no
2342         longer used Get_Choices argument in instantiation of
2343         Generic_Choices_Processing.
2344         * sem_ch4.adb (Analyze_Case_Expression): Remove no
2345         longer used Get_Choices argument in instantiation of
2346         Generic_Choices_Processing.
2347         * sem_ch5.adb (Analyze_Case_Statement): Remove no
2348         longer used Get_Choices argument in instantiation of
2349         Generic_Choices_Processing.
2350         * sinfo.ads: For N_Variant_Part, and N_Case_Statement_Alternative,
2351         document that choices that are names of statically predicated
2352         subtypes are expanded in the code generation tree passed to the
2353         back end, but not in the ASIS tree generated for -gnatct.
2355 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2357         * sem_ch7.adb: Revert previous change.
2359 2013-10-10  Gary Dismukes  <dismukes@adacore.com>
2361         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the case where
2362         the Storage_Pool aspect is specified by an aspect clause and a
2363         renaming is used to capture the evaluation of the pool name,
2364         insert the renaming in front of the aspect's associated entity
2365         declaration rather than in front of the corresponding attribute
2366         definition (which hasn't been appended to the declaration
2367         list yet).
2369 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2371         * sem_ch6.adb (Is_Interface_Conformant): The controlling type
2372         of the interface operation is obtained from the ultimate alias
2373         of the interface primitive parameter, because that may be in
2374         fact an implicit inherited operation whose signature involves
2375         the type extension and not the desired interface.
2377 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2379         * par-ch13.adb (Aspect_Specifications_Present): In Ada 2012,
2380         recognize an aspect specification with a misspelled name if it
2381         is followed by a a comma or semicolon.
2383 2013-10-10  Vadim Godunko  <godunko@adacore.com>
2385         * s-atocou.adb, s-atocou.ads, s-atocou-x86.adb, s-atocou-builtin.adb:
2386         Fix copyright notice.
2388 2013-10-10  Yannick Moy  <moy@adacore.com>
2390         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package): Get
2391         enclosing subprogram for precondition/postcondition/contract cases.
2393 2013-10-10  Robert Dewar  <dewar@adacore.com>
2395         * gnat_rm.texi: Minor fix.
2397 2013-10-10  Robert Dewar  <dewar@adacore.com>
2399         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2400         Address): Remove the Comes_From_Source test for the overlap
2401         warning.
2403 2013-10-10  Robert Dewar  <dewar@adacore.com>
2405         * sem_util.adb: Minor code reorganization (use Nkind_In).
2406         * sem_warn.adb: Minor code reorganization (optimization in
2407         Check_Unset_Reference).
2408         * exp_ch9.adb, exp_ch4.adb, sinfo.ads: Minor reformatting.
2410 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2412         * sem_ch7.adb (Install_Parent_Private_Declarations): When
2413         instantiating a child unit, do not install private declaration of
2414         a non-generic ancestor of the generic that is also an ancestor
2415         of the current unit: its private part will be installed when
2416         private part of ancestor itself is analyzed.
2418 2013-10-10  Thomas Quinot  <quinot@adacore.com>
2420         * freeze.adb (Check_Component_Storage_Order): Retrieve component
2421         aliased status from type entities directly instead of going back
2422         to original component definition.
2423         * sem_ch7.adb: Minor reformatting.
2425 2013-10-10  Robert Dewar  <dewar@adacore.com>
2427         * sem_ch13.adb (Analyze_Aspect_Specifications): For Address
2428         attribute, consider it to be set in source, because of aliasing
2429         considerations.
2430         (Analyze_Attribute_Definition_Clause): For the
2431         purpose of warning on overlays, take into account the aspect case.
2433 2013-10-10  Robert Dewar  <dewar@adacore.com>
2435         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
2436         a-cofove.ads: Minor reformatting.
2438 2013-10-10  Arnaud Charlet  <charlet@adacore.com>
2440         * gnat_ugn.texi: Remove obsolete mention to -laddr2line.
2442 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2444         * exp_ch4.adb (Expand_N_Case_Expression):  Indicate that the
2445         generated variable used as a target of the expression needs
2446         no initialization.
2448 2013-10-10  Jose Ruiz  <ruiz@adacore.com>
2450         * exp_util.adb (Corresponding_Runtime_Package): Remove the condition
2451         related to No_Dynamic_Attachment which was wrong. Protected types
2452         with interrupt handlers (when not using a restricted profile)
2453         are always treated as protected types with entries, regardless
2454         of the No_Dynamic_Attachment restriction.
2455         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Simplify the code
2456         using the result of Corresponding_Runtime_Package.
2457         (Install_Private_Data_Declarations): When having
2458         static handlers and a non restricted profile, we use the
2459         type Static_Interrupt_Protection always, so we removed an
2460         extra wrong condition looking at the No_Dynamic_Attachment
2461         restriction. Simplify the code using the result of
2462         Corresponding_Runtime_Package.
2463         (Make_Initialize_Protection): Simplify the code using
2464         the result of Corresponding_Runtime_Package.
2465         (Install_Private_Data_Declaration): The No_Dynamic_Attachment
2466         restriction has nothing to do with static handlers. Remove the extra
2467         erroneous condition that was creating the wrong data type.
2469 2013-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2471         * sem_util.adb (Is_Object_Reference): Attribute
2472         'Old produces an object reference.
2473         * gnat_rm.texi: Define accessibility level of
2474         X'Update(...) result.
2476 2013-10-10  Yannick Moy  <moy@adacore.com>
2478         * gnat_rm.texi, a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
2479         a-cforse.ads, a-cofove.ads: Update comment and doc of formal containers
2481 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2483         * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post
2484         conditions that apply to a subprogram body, preserve the placement
2485         and order of the generated pragmas, which must appear before
2486         other declarations in the body.
2488 2013-10-10  Bob Duff  <duff@adacore.com>
2490         * gnat_ugn.texi: Add gnat2xml doc.
2492 2013-10-10  Doug Rupp  <rupp@adacore.com>
2494         * s-vxwork-arm.ads: Fix interface to FP_CONTEXT.
2496 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2498         * sem_ch13.adb (Analyze_Aspect_Specification): An aspect Import
2499         on a variable need not have a convention specified, as long as
2500         the implicit convention of the object, obtained from its type,
2501         is Ada or Ada-related.
2503 2013-10-10  Robert Dewar  <dewar@adacore.com>
2505         * cstand.adb (Standard_Unsigned_64): New internal type.
2506         * gnat_rm.texi: Update documentation on To_Address.
2507         * sem_attr.adb (Analyze_Attribute, case To_Address): Fix
2508         problem with out of range static values given as literals or
2509         named numbers.
2510         * stand.ads (Standard_Unsigned_64): New internal type.
2511         * stand.adb: Minor reformatting.
2513 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2515         * sem_ch4.adb (Analyze_Selected_Component,
2516         Has_Mode_Conformant_Spec): If selected component may be an
2517         indexing of a parameterless call to a protected function, and
2518         expansion is disabled, this is a valid candidate interpretation.
2520 2013-10-10  Arnaud Charlet  <charlet@adacore.com>
2522         * gnat_ugn.texi: Minor editing.
2524 2013-10-10  Robert Dewar  <dewar@adacore.com>
2526         * gnatlink.adb: Minor reformatting.
2528 2013-10-10  Yannick Moy  <moy@adacore.com>
2530         * debug.adb: Free flag d.E and change doc for flag d.K.
2532 2013-10-10  Ed Schonberg  <schonberg@adacore.com>
2534         * sem_prag.adb (Check_Precondition_Postcondition): If the
2535         pragma comes from an aspect spec, and the subprogram is a
2536         library unit, treat as a ppc in a declarative part in ASIS mode,
2537         so that expression in aspect is properly analyzed. In this case
2538         there is no later point at which the aspect specification would
2539         be examined.
2541 2013-10-10  Bob Duff  <duff@adacore.com>
2543         * opt.ads: Minor comment fix.
2545 2013-10-10  Vadim Godunko  <godunko@adacore.com>
2547         * a-coinho-shared.ads, a-coinho-shared.adb: New file.
2548         * s-atocou.ads: Add procedure to initialize counter.
2549         * s-atocou.adb: Likewise.
2550         * s-atocou-builtin.adb: Likewise.
2551         * s-atocou-x86.adb: Likewise.
2552         * gcc-interface/Makefile.in: Select special version of
2553         Indefinite_Holders package on platforms where atomic built-ins
2554         are supported. Update tools target pairs for PikeOS.
2556 2013-10-10  Robert Dewar  <dewar@adacore.com>
2558         * sem_ch3.adb: Minor reformatting.
2560 2013-10-10  Robert Dewar  <dewar@adacore.com>
2562         * sinput-c.adb (Load_File): Ensure Source_Align alignment.
2563         * sinput-d.adb (Create_Debug_Source): Ensure Source_Align alignment.
2564         * sinput-l.adb (Create_Instantiation_Source): Ensure Source_Align
2565         alignment.
2566         (Load_File): Ditto.
2567         * sinput.ads, sinput.adb (Get_Source_File_Index): New optimized (single
2568         line) version.
2569         * types.ads (Source_Align): New definition.
2570         (Source_Buffer): Document new alignment requirement.
2572 2013-10-10  Robert Dewar  <dewar@adacore.com>
2574         * sem_prag.adb (Analyze_Pragma, case Linker_Section): Allow
2575         this for types.
2577 2013-10-10  Robert Dewar  <dewar@adacore.com>
2579         * gnat_rm.texi: Minor adjustment to doc for To_Address attribute.
2581 2013-10-10  Vadim Godunko  <godunko@adacore.com>
2583         * s-stopoo.ads (Root_Storage_Pool): Add pragma
2584         Preelaborable_Initialization.
2586 2013-09-25  Tom Tromey  <tromey@redhat.com>
2588         * gcc-interface/Makefile.in (OUTPUT_OPTION): Define as "-o $@".
2590 2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2592         PR ada/58264
2593         * gcc-interface/trans.c (Attribute_to_gnu): Define GNAT_PREFIX local
2594         variable and use it throughout.
2595         <Attr_Length>: Note whether the prefix is the dereference of a pointer
2596         to unconstrained array and, in this case, capture the result for both
2597         Attr_First and Attr_Last.
2599 2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2601         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: New.
2603 2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2605         * gcc-interface/trans.c (gigi): Remove dead code.
2607 2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2609         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Pop the stack of
2610         return variables for subprograms using the CICO mechanism.
2612 2013-09-13  Dominique Dhumieres  <dominiq@lps.ens.fr>
2614         * gcc-interface/Makefile.in: Fix darwin Filter to match on $target_os,
2615         not $target_cpu.
2617 2013-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2618             Olivier Hainque  <hainque@adacore.com>
2620         * gcc-interface/Makefile.in: Import target_cpu, target_vendor,
2621         target_os and their host_ counterparts. Remove host_canonical and
2622         target_cpu_default, unused. Remove local ad-hoc computations of
2623         "host", "targ", "arch", "osys" and "manu". Replace uses of these by
2624         uses of the now imported family, hence back to filters against
2625         canonical values. Remove filters on e500 for target_cpu, expected to
2626         be canonicalized into powerpc. Invert the logic filtering on 64bit
2627         sparc for VxWorks. Simplify the filtering logic for bareboard tools
2628         target pairs, now using straight elf/eabi filters on the target_os
2629         part only.
2631 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2633         * sem_ch3.adb (Replace_Anonymoous_Access_To_Protected_Subprogram): If
2634         the return type is itself an access to function, recurse to emit
2635         another anonymous type.
2636         * gcc-interface/Make-lang.in: Update dependencies.
2638 2013-09-10  Robert Dewar  <dewar@adacore.com>
2640         * err_vars.ads (Warning_Doc_Switch): Ignored in VMS mode.
2641         * errout.adb (Warning_Doc_Switch): Ignored in VMS mode.
2642         * errout.ads (Warning_Doc_Switch): Ignored in VMS mode.
2643         * inline.ads (Warnings): New component in Pending_Body_Info.
2644         * sem_ch12.adb (Pending_Body_Info): Save and restore warnings
2645         at instantiation point.
2646         * warnsw.adb (Save_Warnings): New function (Restore_Warnings):
2647         New procedure Remove special handling of Warning_Doc_Switch,
2648         cleaner to handle the VMS case in errout, than to introduce
2649         undocumented oddities here.
2650         * warnsw.ads (Warning_Record) : New type.
2651         (Save_Warnings): New function.
2652         (Restore_Warnings): New procedure.
2654 2013-09-10  Robert Dewar  <dewar@adacore.com>
2656         * sinput.adb (Check_For_BOM): Avoid reading past end of file.
2658 2013-09-10  Robert Dewar  <dewar@adacore.com>
2660         * errout.adb (Error_Msg_Ada_2012_Feature): New procedure.
2661         * errout.ads (Error_Msg_Ada_2012_Feature): New procedure.
2662         * inline.ads: Save/Restore Ada_Version_Pragma.
2663         * opt.adb: Save/Restore Ada_Version_Pragma.
2664         * opt.ads (Ada_Version_Pragma): New variable.
2665         * par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch4.adb, par-ch5.adb,
2666         par-ch6.adb, par-ch8.adb, par-prag.adb: Use Error_Msg_Ada_2012_Feature.
2667         * prj.adb: Initialize Ada_Version_Pragma.
2668         * sem_attr.adb: Use Error_Msg_Ada_2012_Feature.
2669         * sem_ch12.adb, sem_ch8.adb: Save/restore Ada_Version_Pragma.
2670         * sem_prag.adb (Analyze_Pragma, cases Ada_xx): Set Ada_Version_Pragma.
2671         * switch-c.adb: Initialize Ada_Version_Pragma.
2672         * sem_ch12.adb: Minor reformatting.
2674 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2676         * sem_ch3.adb (Process_Subtype): Discard constraint on access
2677         to class-wide type. Such constraints are not supported and are
2678         considered a language pathology.
2680 2013-09-10  Robert Dewar  <dewar@adacore.com>
2682         * gnatbind.adb: Correct starting date in --version string.
2683         * gnatdll.adb: Use Check_Version_And_Help_G to implement --help
2684         and --version.
2685         * gnatkr.adb: Use Check_Version_And_Help_G to implement --help
2686         and --version.
2687         * gnatlink.adb: Correct starting date in --version string.
2688         * gnatls.adb: Correct starting date in --version string.
2689         * make.adb: Correct starting date in --version string.
2691 2013-09-10  Robert Dewar  <dewar@adacore.com>
2693         * switch-c.adb: Minor reformatting.
2694         * atree.ads (Original_Nodes): Add documentation on ASIS usage.
2695         * sinfo.ads: Add section on ASIS mode (documentation only).
2697 2013-09-10  Robert Dewar  <dewar@adacore.com>
2699         * sem_prag.adb (Analyze_Pragma, case Warnings): Don't allow
2700         REASON parameter in compiler units (bootstrap issues).
2702 2013-09-10  Robert Dewar  <dewar@adacore.com>
2704         * gnat1drv.adb (Adjust_Global_Switches): Output warning if
2705         -gnateE specified for a target that does not support it.
2707 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2709         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Handle properly
2710         a subprogram body without previous spec.
2712 2013-09-10  Gary Dismukes  <dismukes@adacore.com>
2714         * sem_ch4.adb: Minor typo fixes.
2716 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2718         * aspects.adb (Aspects_On_Body_OK): New routine.
2719         * aspects.ads: Modify type Aspect_Expression to include
2720         the Optional_XXX variants. Update the contents of
2721         table Aspect_Argument. Add table Aspect_On_Body_OK.
2722         (Aspects_On_Body_OK): New routine.
2723         * par-ch13.adb (Get_Aspect_Specifications): Account for optional
2724         names and expressions when parsing an aspect.
2725         * sem_ch6.adb: Add with and use clause for Aspects.
2726         (Analyze_Subprogram_Body_Helper): Do not emit an error when
2727         analyzing a body with aspects that can be applied simultaneously
2728         to both spec and body.
2729         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
2730         corresponding pragma of an aspect that applies to a subprogram
2731         body in the declarative part.
2732         (Make_Aitem_Pragma): Do not generate a pragma with an empty argument
2733         list.
2735 2013-09-10  Robert Dewar  <dewar@adacore.com>
2737         * switch-c.adb: Diagnose -gnatc given after -gnatRm.
2738         * gnat_ugn.texi: Add documentation for -gnatRm.
2739         * usage.adb: Minor reorganization (put style entries in proper
2740         order) Document -gnatRm switch.
2741         * sinfo.ads: Minor comment fix.
2743 2013-09-10  Sergey Rybin  <rybin@adacore.com frybin>
2745         * tree_io.ads: Update ASIS_Version_Number.
2747 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2749         * sem_ch3.adb (Access_Subprogram_Declaration): Check whether the
2750         designated type can appear in a parameterless call.
2751         * sem_ch4.adb (Analyze_Call): Do not insert an explicit dereference
2752         in the case of an indirect call through an access function that
2753         returns an array type.
2754         (Analyze_One_Call): Handle properly legal parameterless calls
2755         whose result is indexed, in constructs of the for F.all (I)
2756         * sem_ch6.ads (May_Need_Actuals): Make public, for use on access
2757         to subprogram types.
2758         * sem_res.adb (Resolve_Call): If the call is indirect, there is
2759         no entity to set on the name in the call.
2761 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2763         * aspects.adb: Add entries in the Has_Aspect_Specifications_Flag
2764         table for package body and body stubs.
2765         (Move_Or_Merge_Aspects): New routine.
2766         (Remove_Aspects): New routine.
2767         * aspects.ads (Move_Aspects): Update comment on usage.
2768         (Move_Or_Merge_Aspects): New routine.
2769         (Remove_Aspects): New routine.
2770         * par-ch3.adb: Update the grammar of private_type_declaration,
2771         private_extension_declaration, object_renaming_declaration,
2772         and exception_renaming_declaration.
2773         (P_Subprogram): Parse the
2774         aspect specifications that apply to a body stub.
2775         * par-ch6.adb: Update the grammar of subprogram_body_stub and
2776         generic_instantiation.
2777         * par-ch7.adb: Update the grammar of package_declaration,
2778         package_specification, package_body, package_renaming_declaration,
2779         package_body_stub.
2780         (P_Package): Parse the aspect specifications
2781         that apply to a body, a body stub and package renaming.
2782         * par-ch9.adb: Update the grammar of entry_declaration,
2783         protected_body, protected_body_stub, task_body,
2784         and task_body_stub.
2785         (P_Protected): Add local variable
2786         Aspect_Sloc. Add local constant Dummy_Node.  Parse the aspect
2787         specifications that apply to a protected body and a protected
2788         body stub.
2789         (P_Task): Add local variable Aspect_Sloc. Add local
2790         constant Dummy_Node. Parse the aspect specifications that apply
2791         to a task body and a task body stub.
2792         * par-ch12.adb: Update the grammar of
2793         generic_renaming_declaration.
2794         (P_Generic): Parse the aspect
2795         specifications that apply to a generic renaming.
2796         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not emit
2797         an error when analyzing aspects that apply to a body stub. Such
2798         aspects are relocated to the proper body.
2799         * sem_ch7.adb (Analyze_Package_Body_Helper): Analyze the aspect
2800         specifications that apply to a body.
2801         * sem_ch9.adb (Analyze_Protected_Body): Warn about user-defined
2802         aspects not being supported on protected bodies. Remove the
2803         aspect specifications.  (Analyze_Single_Protected_Declaration):
2804         Analyze the aspects that apply to a single protected declaration.
2805         (Analyze_Task_Body): Warn about user-defined aspects not being
2806         supported on task bodies. Remove the aspect specifications.
2807         * sem_ch10.adb: Add with and use clause for Aspects.
2808         (Analyze_Package_Body_Stub): Propagate the aspect specifications
2809         from the stub to the proper body.
2810         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
2811         corresponding pragma of an aspect that applies to a body in the
2812         declarations of the body.
2813         * sinfo.ads: Update the gramma of expression_function,
2814         private_type_declaration, private_extension_declaration,
2815         object_renaming_declaration, exception_renaming_declaration,
2816         package_renaming_declaration, subprogram_renaming_declaration,
2817         generic_renaming_declaration, entry_declaration,
2818         subprogram_body_stub, package_body_stub, task_body_stub,
2819         generic_subprogram_declaration.
2821 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2823         * sem_prag.adb (Analyze_Pragma): Add processing
2824         for aspect/pragma SPARK_Mode when it applies to a [library-level]
2825         subprogram or package [body].
2827 2013-09-10  Robert Dewar  <dewar@adacore.com>
2829         * gnat_ugn.texi: Document that -gnatc and -gnatR cannot be
2830         given together.
2831         * switch-c.adb (Scan_Front_End_Switches): Give error if both
2832         -gnatR and -gnatc given.
2834 2013-09-10  Robert Dewar  <dewar@adacore.com>
2836         * g-table.ads, g-table.adb (For_Each): New generic procedure
2837         (Sort_Table): New generic procedure.
2839 2013-09-10  Thomas Quinot  <quinot@adacore.com>
2841         * adaint.c (__gnat_is_executable_file_attr): Should be true
2842         for an executable regular file only only (not for a directory
2843         that has the executable permission).
2845 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2847         * sem_res.adb: Further work on operator calls in ASIS.
2849 2013-09-10  Yannick Moy  <moy@adacore.com>
2851         * sinfo.ads, sem_prag.ads, sem_ch13.adb: Minor correction and comment
2852         update.
2854 2013-09-10  Thomas Quinot  <quinot@adacore.com>
2856         * aspects.ads, sem_ch13.adb: Minor reformatting.
2857         * adaint.c (__gnat_set_close_on_exec): Add comment documenting
2858         that this routine is shared between OS_Lib and Sockets.
2860 2013-09-10  Robert Dewar  <dewar@adacore.com>
2862         * exp_prag.adb (Expand_Pragma_Check): Ignore pragma if Is_Ignored set.
2863         * sem_ch13.adb (Make_Aitem_Pragma): Set Is_Checked if needed.
2864         * sem_prag.adb (Check_Kind): Moved from spec (Analyze_Pragma):
2865         Make sure Is_Ignored/Is_Checked are set right (Analyze_Pragma,
2866         case Check): Ditto (Check_Applicable_Policy): Handle
2867         Statement_Assertion case Throughout, set and check the Is_Checked
2868         flag as appropriate.
2869         * sem_prag.ads (Check_Kind): Moved to body.
2870         * sinfo.ads, sinfo.adb (Is_Checked): New flag.
2872 2013-09-10  Robert Dewar  <dewar@adacore.com>
2874         * aspects.ads (Delay_Type): New type (Aspect_Delay): New table.
2875         * einfo.adb (Has_Delayed_Rep_Aspects): New flag
2876         (May_Inherit_Delayed_Rep_Aspects): New flag (Rep_Clause): Removed
2877         (use Get_Attribute_Representation_Clause).
2878         * einfo.ads (Has_Delayed_Rep_Aspects): New flag
2879         (May_Inherit_Delayed_Rep_Aspects): New flag
2880         * freeze.adb: Minor reformatting
2881         * sem_ch13.adb (Analyze_Aspect_Speficifications): Redo
2882         handling of delayed evaluation, including optimizing some cases
2883         and avoiding delays.
2884         (Analyze_Aspects_At_Freeze_Point): Now
2885         handled inheriting delayed rep aspects for type derivation case.
2886         (Inherit_Delayed_Rep_Aspects): New procedure
2887         * sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Now handled
2888         inheriting delayed rep aspects for type derivation case.
2889         * sem_ch3.adb (Build_Derived_Type): Set
2890         May_Inherit_Derived_Rep_Aspects if parent type flag
2891         Has_Delayed_Rep_Aspects is set
2893 2013-09-10  Robert Dewar  <dewar@adacore.com>
2895         * errout.adb (Finalize): Don't delete real errors with specific
2896         warning control.
2898 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2900         * exp_ch9.adb (Expand_N_Timed_Entry_Call,
2901         Expand_N_Conditional_Entry_Call, Expand_N_Asynchronous_Select):
2902         Handle properly a trigger that is  a call to a primitive operation
2903         of a type that implements a limited interface, if the type itself
2904         is not limited.
2906 2013-09-10  Robert Dewar  <dewar@adacore.com>
2908         * sem_ch3.adb, sinfo.ads, exp_ch9.adb, sem_prag.adb, sem_ch12.adb,
2909         exp_ch4.adb, sprint.adb: Minor reformatting.
2911 2013-09-10  Yannick Moy  <moy@adacore.com>
2913         * sinfo.ads: Document splitting of pre/post in N_Contract description.
2915 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2917         * exp_ch4.adb (Expand_N_Op_Multiply): If the operation is of the
2918         form X * 2 ** N and it has been marked Is_Power_Of_2_For_Shift,
2919         add a mod operation if the result type is a binary modular type.
2921 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2923         * sem_prag.adb (Check_Mode_Restriction_In_Enclosing_Context): Add local
2924         variable Context.  Remove local variable Subp_Id. Start the
2925         context traversal from the current subprogram rather than the
2926         current scope. Update the scope traversal and error reporting.
2928 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2930         * exp_ch9.adb (Expand_N_Timed_Entry_Call): New procedure
2931         Rewrite_Triggering_Statements, to encapsulate the statements that
2932         follow the trigger of the entry call. This procedure is needed
2933         when the trigger is a dispatching call, because the expansion
2934         requires several copies of those statements. The procedure is
2935         more efficient, and preserves non-local references when the
2936         construct is within an instance.
2938 2013-09-10  Ed Schonberg  <schonberg@adacore.com>
2940         * sem_ch12.adb (Analyze_Package_Instantiation): If the
2941         instantiation is a compilation unit, analyze aspects before
2942         analyzing the package declaration for the instance.
2943         * sem_ch13.adb (Analyze_Aspect_Specifications): If the
2944         corresponding node is a package instantiation, insert generated
2945         pragmas at the head of visible declarations.
2946         * sem_prag.adb (Analyze_Pragma, case Preelaborate): In an instance
2947         do not ignore the pragma if it comes from an aspect specification
2948         in the instance, and not from the generic unit.
2949         * sprint.adb (Sprint_Node_Actual): For a package declaration that
2950         is an instantiation, print aspects after declaration.
2952 2013-09-10  Robert Dewar  <dewar@adacore.com>
2954         * einfo.adb, sem_prag.adb, rtsfind.ads: Minor reformatting.
2956 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2958         * sem_prag.adb (Get_SPARK_Mode_Id): Handle the
2959         case where the pragma may appear without an argument.
2960         (Analyze_Global_List): Add expanded_name to the list of constructs
2961         that denote a single item.
2962         (Collect_Global_List): Add expanded_name to the list of constructs
2963         that denote a single item.
2965 2013-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
2967         * exp_ch4.adb (Apply_Accessibility_Check): Add local constant
2968         Pool_Id and local variables Fin_Call and Free_Stmt. Finalize
2969         and deallocate a heap-allocated class-wide object after it
2970         has been determined that it violates the accessibility rules.
2971         * rtsfind.ads: Add new RTU_Id for System.Memory. Add new RE_Id
2972         and entry in RE_Unit_Table for RE_Free.
2974 2013-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2975             Iain Sandoe  <iain@codesourcery.com>
2977         PR ada/58239
2978         * gcc-interface/Makefile.in (GCC_LINK_FLAGS): Add -static-libstdc++.
2979         (GCC_LINK): Use CXX instead of CC.
2980         * gcc-interface/Make-lang.in (CXX_LFLAGS): New.
2981         (ADA_TOOLS_FLAGS_TO_PASS): Pass CXX, and CXX_LFLAGS for native.
2983 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
2985         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
2986         sets of derived types in ASIS mode.
2988 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
2990         * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true.
2991         (is_cplusplus_method): Likewise, and False with false.
2992         (components_need_strict_alignment): Likewise.
2993         * gcc-interface/misc.c (gnat_init_gcc_fp): Likewise.
2994         * gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise.
2995         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2996         (add_cleanup): Likewise.
2997         (Sloc_to_locus1): Likewise.
2998         (Sloc_to_locus): Likewise.
2999         (set_expr_location_from_node): Likewise.
3000         * gcc-interface/utils.c (potential_alignment_gap): Likewise.
3002 2013-08-13  Thomas Quinot  <quinot@adacore.com>
3004         * gcc-interface/trans.c (set_end_locus_from_node): Clear column info
3005         for the end_locus of a block if it does not come from an End_Label.
3007 2013-08-13  Thomas Quinot  <quinot@adacore.com>
3009         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
3010         there is no End_Label, attach cleanup actions to the sloc of the HSS
3011         node instead.
3012         (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc
3013         of the handler itself.
3014         (add_cleanup): Clear column information in sloc of cleanup actions.
3015         (Sloc_to_locus1): New static function.
3016         (Sloc_to_locus): Call it.
3017         (set_expr_location_from_node1): New static function.
3018         (set_expr_location_from_node): Call it.
3020 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
3022         * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional
3023         expressions for misaligned actual parameters.
3025 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
3027         * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
3028         values outside of the range of the type.
3030 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
3032         * gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion
3033         to the original type before converting to the result type.
3034         (build_atomic_store): First do a conversion to the original type before
3035         view-converting to the effective type, but deal with a padded type
3036         specially.
3038 2013-08-08  Eric Botcazou  <ebotcazou@adacore.com>
3040         * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the
3041         compiler build and use standard library variables.
3042         (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust.
3043         (gnatmake-re): Do not depend on targext.o.
3044         (gnatlink-re): Do not depend on link.o and targext.o.
3045         (../../gnatmake$(exeext): Likewise.
3046         (../../gnatlink$(exeext): Likewise.
3048 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
3050         * gcc-interface/gigi.h: Fix typos.
3051         * gcc-interface/trans.c: Likewise.
3052         * gcc-interface/utils2.c: Likewise.
3053         * gnat_rm.texi: Likewise.
3054         * gnat_ugn.texi: Likewise.
3055         * raise-gcc.c: Likewise.
3056         * sigtramp-ppcvxw.c: Likewise.
3057         * sysdep.c: Likewise.
3058         * terminals.c: Likewise.
3060 2013-07-20  Eric Botcazou  <ebotcazou@adacore.com>
3062         PR ada/57934
3063         * gcc-interface/ada.h (CAT): Fix typo.
3065 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3067         * einfo.adb (Get_Pragma): Handle the retrieval of delayed
3068         pragmas stored in N_Contract nodes.
3069         * einfo.ads (Get_Pragma): Update the comment on usage.
3070         * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
3071         of the pragma when it applies to a body that acts as a spec. The
3072         copy is preanalyzed and chained on the contract of the body.
3074 2013-07-08  Robert Dewar  <dewar@adacore.com>
3076         * rtsfind.adb: Minor comment fix.
3078 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3080         * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
3081         of a Ghost function call when the enclosing context is being
3082         preanalyzed.
3084 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3086         * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
3087         expression in a return statement is a numeric literal, qualify
3088         it with the return type for proper resolution.
3090 2013-07-08  Robert Dewar  <dewar@adacore.com>
3092         * sem.ads: Minor comment updates.
3093         * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
3094         Minor reformatting.
3096 2013-07-08  Robert Dewar  <dewar@adacore.com>
3098         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
3099         for Restriction_Set.
3100         * gnat_rm.texi: Add missing menu entry for Attribute Ref Add
3101         documentation for attribute Restriction_Set.
3102         * lib-writ.adb (Write_With_Lines): Generate special W lines
3103         for Restriction_Set.
3104         * lib-writ.ads: Document special use of W lines for
3105         Restriction_Set.
3106         * lib.ads (Restriction_Set_Dependences): New table.
3107         * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
3108         list (Scan_Name_Extension_Apostrophe): Remove kludge test for
3109         Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
3110         for Restricton_Set.
3111         * restrict.adb (Check_SPARK_Restriction): Put in Alfa order
3112         (OK_No_Dependence_Unit_Name): New function.
3113         * restrict.ads (OK_No_Dependence_Unit_Name): New function.
3114         * rtsfind.adb: Minor reformatting Minor code reorganization.
3115         * sem_attr.adb (Analyze_Attribute): Add processing for
3116         Restriction_Set.
3117         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3118         Remove Check_Unit_Name and use new function
3119         OK_No_Dependence_Unit_Name instead.
3120         * sinfo.ads: Minor comment updates.
3121         * snames.ads-tmpl: Add entry for Restriction_Set attribute.
3123 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3125         * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
3126         Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
3127         object as "free" is not available on all targets/profiles.
3129 2013-07-08  Robert Dewar  <dewar@adacore.com>
3131         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle
3132         Storage_Size aspect for task type in case discriminant is
3133         referenced.
3134         (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
3135         attribute definition clause as obsolescent if from aspect.
3137 2013-07-08  Robert Dewar  <dewar@adacore.com>
3139         * gnat_rm.texi: Add documentation for Img returning a function.
3140         * par-prag.adb: Minor reformatting.
3141         * restrict.adb: Minor reformatting and code reorganization.
3143 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3145         * sem_res.adb: add guard to ASIS transform.
3147 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3149         * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
3150         of the asynchronous select is a dispatching call, transform the
3151         abortable part into a procedure, to avoid duplication of local
3152         loop variables that may appear within.
3154 2013-07-08  Vincent Celier  <celier@adacore.com>
3156         * projects.texi: Update the documentation of suffixes in package
3157         Naming.
3159 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3161         * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
3162         types are type conformant if the designated type of one is
3163         protected and the other is not. Convention only matters when
3164         checking subtype conformance.
3166 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3168         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
3169         back the fully resolved operands to the original function call
3170         so that all semantic information remains available to ASIS.
3172 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3174         * sem_ch4.adb: minor reformatting (remove obsolete comment).
3175         * sem_ch9.adb: improve error message on illegal trigger.
3177 2013-07-08  Robert Dewar  <dewar@adacore.com>
3179         * sem_prag.adb: Minor reformatting.
3181 2013-07-08  Robert Dewar  <dewar@adacore.com>
3183         * gnatcmd.adb: Minor reformatting.
3185 2013-07-08  Robert Dewar  <dewar@adacore.com>
3187         * targparm.adb (Get_Target_Parameters): Recognize pragma
3188         Partition_Elaboration_Policy.
3190 2013-07-08  Robert Dewar  <dewar@adacore.com>
3192         * gnat_ugn.texi: Minor update to mention partition elaboration policy.
3194 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3196         * sem_ch4.adb (Comple_Object_Operation): Revert previous change.
3197         (Analyze_Indexed_Component_Form): In ASIS mode, if node has been
3198         transformed but not rewritten as a function call (as is the case
3199         in a generic), analyze it as such.
3201 2013-07-08  Thomas Quinot  <quinot@adacore.com>
3203         * gnat_rm.texi: Minor rewording: add missing word "operators"
3204         in documentation for restriction No_Direct_Boolean_Operator.
3206 2013-07-08  Robert Dewar  <dewar@adacore.com>
3208         * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
3209         Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
3210         now).
3211         * errout.ads: Insertions ! and !! no longer have to be at the
3212         end of the message, they can be anywhere in the message.
3213         * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
3214         Replaces Test_Style_Warning_Serious_Msg
3215         * erroutc.ads (Has_Double_Exclam): New flag New comments for
3216         existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
3217         Replaces Test_Style_Warning_Serious_Msg
3218         * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
3219         Replaces Test_Style_Warning_Serious_Msg
3221 2013-07-08  Robert Dewar  <dewar@adacore.com>
3223         * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3224         Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
3225         * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
3226         referenced there.
3227         * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
3228         sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
3229         * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.
3231 2013-07-08  Vincent Celier  <celier@adacore.com>
3233         * gnatcmd.adb (Check_Files): Use a response file for gnatls
3234         when possible.
3236 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
3238         * freeze.adb: Minor typo fixes.
3240 2013-07-08  Robert Dewar  <dewar@adacore.com>
3242         * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
3243         obsolete recognition of SPARK Document all other obsolete synonyms
3244         for old restrictions.
3245         * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
3246         SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
3247         for SPARK_05.
3248         * restrict.ads: Restriction SPARK_05 replaces SPARK.
3249         * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
3250         as synonym for SPARK_05.
3251         * sem_prag.adb: Minor reformatting.
3252         * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.
3254 2013-07-08  Robert Dewar  <dewar@adacore.com>
3256         * sem_dim.adb: Minor error message change.
3257         * freeze.adb (Freeze_Entity, array type case): Extend handling
3258         of Implicit_Packing to handle multi-dimensional array case.
3259         * gnat_rm.texi: Update doc on Implicit_Packing.
3261 2013-07-08  Robert Dewar  <dewar@adacore.com>
3263         * exp_ch4.adb: Minor reformatting.
3265 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3267         * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
3268         the parent node is a selected component and the analysis as a
3269         call is successful, set the type of the selector in the parent
3270         node for subsequent checks, because the rewriting of the node
3271         does not take place during pre-analysis.
3273 2013-07-08  Robert Dewar  <dewar@adacore.com>
3275         * sem_ch8.adb, exp_ch3.adb: Minor reformatting.
3277 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3279         * exp_ch4.adb (Expand_N_Op_Eq): When comparing two
3280         Bounded_Strings, use the predefined equality function of the
3281         root Super_String type.
3283 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3285         * exp_ch4.adb (Create_Alternative): Removed.
3286         (Expand_N_If_Expression): Remove constant
3287         In_Case_Or_If_Expression. Add local variable
3288         Ptr_Typ. Inspect the "then" and "else" action lists
3289         for transient controlled objects and generate code to
3290         finalize them.  (Is_Controlled_Function_Call): Removed.
3291         (Process_Action): Update the comment on usage. Update the call
3292         to Process_Transient_Object. There is no need to continue the
3293         traversal of the object itself.
3294         (Process_Actions): New routine.
3295         (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
3296         a new formal and update the related comment on usage.
3297         * exp_util.adb (Within_Case_Or_If_Expression): Start the search
3298         from the parent of the node.
3300 2013-07-08  Robert Dewar  <dewar@adacore.com>
3302         * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
3303         a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).
3305 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3307         * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
3308         that can be renamed as a function.
3310 2013-07-08  Thomas Quinot  <quinot@adacore.com>
3312         * g-socket.ads: Document target dependency: FIONBIO may or may not
3313         be inherited from listening socket by accepted socket.
3315 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3317         * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
3318         on targets that can't deallocate.
3320 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3322         * exp_ch3.adb (Freeze_Type): Generate a
3323         subpools-related accessibility check only on profiles that
3324         include the corresponding library unit.
3326 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
3328         * sem_ch8.adb: Minor typo fixes.
3330 2013-07-08  Javier Miranda  <miranda@adacore.com>
3332         * sem_ch8.adb (Save_Scope_Stack): Adding documentation.
3333         (Restore_Scope_Stack): Remove the elements of the list when the
3334         visibility of each entity is restored.
3336 2013-07-08  Robert Dewar  <dewar@adacore.com>
3338         * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.
3340 2013-07-08  Robert Dewar  <dewar@adacore.com>
3342         * sem_ch8.adb, sem_ch8.ads: Minor reformatting.
3344 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
3346         * gnat_rm.texi: Minor reformatting and rewording for consistency.
3348 2013-07-08  Bob Duff  <duff@adacore.com>
3350         * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete
3351         view coming from a limited-with'ed package, use the nonlimited
3352         view in case it has tasks.
3354 2013-07-08  Javier Miranda  <miranda@adacore.com>
3356         * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list
3357         of entities which have been temporarily removed from immediate
3358         visibility.
3359         (Restore_Scope_Stack): Modified to receive an
3360         additional parameter with the list of entities whose immediate
3361         visibility must be restored.
3362         * sem.adb (Do_Analyze): Use new version of
3363         Save_Scope_Stack/Restore_Scope_Stack
3364         * sem_ch12.adb (Inline_Instance_Body): Use new version of
3365         Save_Scope_Stack and Restore_Scope_Stack
3367 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
3369         * sem_prag.adb (Analyze_Pragma): Remove
3370         variable Unit_Prag. Remove the check on duplicate mode for the
3371         configuration form of the pragma.
3372         (Redefinition_Error): Removed.
3374 2013-07-08  Robert Dewar  <dewar@adacore.com>
3376         * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting
3377         and editing.
3379 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
3381         * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode,
3382         pre-analyze only the original expression attached to the source
3383         aspect, not the relocated expression of the pragma, to prevent
3384         malformed trees in ASIS mode.
3385         * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous
3386         patch: the expression in the aspect for pre/post must be relocated
3387         to the pragma for proper analysis.
3389 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
3391         * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect.
3392         * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id,
3393         Aspect_Argument, Aspect_Names.
3394         * atree.adb (Node32): New routine.
3395         (Set_Node32): New routine.
3396         * atree.ads (Node32): New routine.
3397         (Set_Node32): New routine.
3398         * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas.
3399         (Set_SPARK_Mode_Pragmas): New routine.
3400         (SPARK_Mode_Pragmas): New routine.
3401         (Write_Field32_Name): Add and entry for SPARK_Modes.
3402         * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage
3403         in various entities.
3404         (Set_SPARK_Mode_Pragmas): New routine and
3405         pragma Inline.
3406         (SPARK_Mode_Pragmas): New routine and pragma Inline.
3407         * gnat_rm.texi: Add sections explaining the syntax and semantics
3408         of aspect/pragma SPARK_Mode.
3409         * gnat_ugn.texi: Add pragma SPARK_Mode to the list of
3410         configuration pragmas.
3411         * lib.adb (Set_SPARK_Mode_Pragma): New routine.
3412         (SPARK_Mode_Pragma): New routine.
3413         * lib.ads: Alphabetize the comments on fields of record
3414         Unit_Record. Add new field SPARK_Mode_Pragma along with
3415         comment on its usage. Update the layout of record Unit_Record.
3416         (Set_SPARK_Mode_Pragma): New routine and pragma Inline.
3417         (SPARK_Mode_Pragma): New routine and pragma Inline.
3418         * lib-load.adb (Create_Dummy_Package_Unit): Initialize
3419         field SPARK_Mode_Pragma.
3420         (Load_Main_Source): Initialize field SPARK_Mode_Pragma.
3421         (Load_Unit): Initialize field SPARK_Mode_Pragma.
3422         * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field
3423         SPARK_Mode_Pragma.
3424         (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma.
3425         * opt.ads: Alphabetize verification flags. Store the
3426         compilation-wide SPARK mode in variable Global_SPARK_Mode.
3427         * par-prag.adb: Pragma SPARK_Mode does not need special processing
3428         by the parser.
3429         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
3430         SPARK_Mode into a pragma.
3431         (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need
3432         delayed processing.
3433         * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags.
3434         (Analyze_Pragma): Add processing for pragma SPARK_Mode.
3435         (Get_SPARK_Mode_Id): New routine.
3436         (Is_Elaboration_SPARK_Mode): New routine.
3437         (Is_Private_SPARK_Mode): New routine.
3438         * sem_prag.ads (Get_SPARK_Mode_Id): New routine.
3439         (Is_Elaboration_SPARK_Mode): New routine.
3440         (Is_Private_SPARK_Mode): New routine.
3441         * sinfo.ads: Update the comment on the usage of field Next_Pragma.
3442         * snames.ads-tmpl: Add new predefined name for SPARK_Mode and
3443         Auto. Add new pragma Id for SPARK_Mode.
3444         * types.ads: Add new type SPARK_Mode_Id.
3446 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3448         * sem_ch13.adb (Analyze_Aspect_Specifications): For
3449         pre/postconditions copy the expression to the generated pragma,
3450         to avoid sharing between the original aspect and the pragma node,
3451         because in ASIS_Mode both will be independently analyzed.
3453 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3455         * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of
3456         formals for each discriminant of an unchecked union.
3457         (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested
3458         variants are supported. New helper function Corresponding_Formal.
3459         * exp_ch4.adb (Build_Equality_Call): For unchecked unions,
3460         loop through discriminants to create list of inferred values,
3461         and modify call to equality routine accordingly.
3463 2013-07-05  Claire Dross  <dross@adacore.com>
3465         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
3466         a-cforse.ads, a-cofove.ads: Add preconditions when needed +
3467         container types are not tagged any more.
3469 2013-07-05  Thomas Quinot  <quinot@adacore.com>
3471         * freeze.adb (Freeze_Entity): For an object with captured
3472         initialization statements, do not remove Init_Stmts from the
3473         enclosing list, as Freeze_All might rely on it to know where to
3474         stop freezing.
3476 2013-07-05  Robert Dewar  <dewar@adacore.com>
3478         * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor
3479         reformatting.
3481 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
3483         * exp_ch4.adb (Expand_Composite_Equality): Use the full view
3484         when the base type is private.
3486 2013-07-05  Claire Dross  <dross@adacore.com>
3488         * a-cfdlli.ads: Add preconditions when needed.
3490 2013-07-05  Robert Dewar  <dewar@adacore.com>
3492         * sem_ch8.adb: Minor reformatting.
3494 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3496         * sem_ch3.adb (Access_Subprogram_Declaration): Use
3497         Generate_Reference_To_Formals.
3498         * lib-xref.adb (Generate_Reference_To_Formals): In the case of
3499         access to subprograms, the formals are found in the designated
3500         subprogram type.
3502 2013-07-05  Robert Dewar  <dewar@adacore.com>
3504         * gnat_ugn.texi: Document that comments can be lined up with
3505         previous non-blank line.
3506         * styleg.adb (Check_Comment): Allow indentation to match previous
3507         non-blank line (Same_Column_As_Previous_Line): New function
3509 2013-07-05  Robert Dewar  <dewar@adacore.com>
3511         * gnat_rm.texi: Update doc on missing pragmas.
3512         * sem_ch12.adb: Minor comment additions.
3514 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
3516         * sem_prag.adb (Analyze_Pragma): Ensure that
3517         Contract_Cases, Depends and Global are analyzed when they apply
3518         to a subprogram compilation unit. The pragmas are all added
3519         unconditionally to the construct's contract. This ensures that
3520         proof tools can locate the pragmas.
3522 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3524         * sem_ch8.adb (Freeze_Actual_Profile): An instance within
3525         a generic unit does not freeze a generic private type of the
3526         enclosing generic. This rule must also apply to a type derived
3527         from a generic private type.
3529 2013-07-05  Arnaud Charlet  <charlet@adacore.com>
3531         * gnat_rm.texi: Add missing documentation for pragmas.
3533 2013-07-05  Yannick Moy  <moy@adacore.com>
3535         * sem_ch12.adb: Minor comment.
3537 2013-07-05  Robert Dewar  <dewar@adacore.com>
3539         * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used
3540         together.
3541         * switch-c.adb: Do not allow -gnatD and -gnatR to both be
3542         specified.
3544 2013-07-05  Robert Dewar  <dewar@adacore.com>
3546         * gnat_rm.texi: Add missing documentation for pragmas.
3547         * sem_ch8.adb: Minor reformatting.
3548         * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used
3549         together.
3551 2013-07-05  Yannick Moy  <moy@adacore.com>
3553         * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force
3554         instance of subprogram body in SPARK mode, by testing Expander_Active
3555         (set in SPARK mode) instead of Full_Expander_Active (not set in
3556         SPARK mode).
3557         * sem_ch8.adb: Minor reformatting.
3559 2013-07-05  Robert Dewar  <dewar@adacore.com>
3561         * freeze.adb (Freeze_Entity): Remove test of obsolete flag
3562         Propagate_Exceptions, and associated useless code that did
3563         nothing.
3564         * gnat_rm.texi: Add documentation for obsolete pragma
3565         Propagate_Exceptions.
3566         * opt.ads (Propagate_Exceptions): Obsolete flag removed.
3567         * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions):
3568         Remove useless and obsolete setting of Propagate_Exceptions flag.
3570 2013-07-05  Robert Dewar  <dewar@adacore.com>
3572         * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes.
3574 2013-07-05  Robert Dewar  <dewar@adacore.com>
3576         * gnat_rm.texi: Add missing doc for various pragmas.
3578 2013-07-05  Robert Dewar  <dewar@adacore.com>
3580         * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting.
3581         * gnat_rm.texi: Document pragma Profile_Warnings.
3582         * restrict.ads, sem_prag.adb: Minor reformatting.
3584 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3586         * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly
3587         a formal subprogram that was defaulted in the formal package.
3589 2013-07-05  Thomas Quinot  <quinot@adacore.com>
3591         * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore
3592         N_Implicit_Label_Declaration nodes.
3594 2013-07-05  Robert Dewar  <dewar@adacore.com>
3596         * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting.
3598 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3600         * sem_ch12.adb (Copy_Generic_Node): Check that name in function
3601         call is a valid entity name before preserving entity in generic
3602         copy.
3604 2013-07-05  Thomas Quinot  <quinot@adacore.com>
3606         * par-ch5.adb: Minor reformatting.
3608 2013-07-05  Thomas Quinot  <quinot@adacore.com>
3610         * sinfo.ads: Minor clarification to documentation for
3611         N_Implicit_Label_Declaration.
3613 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
3615         * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the
3616         values of all remaining constants.
3617         (Rcheck_35): New routine along with pragmas Export and No_Return.
3618         (Rcheck_PE_Aliased_Parameters): New routine along with pragmas
3619         Export and No_Return.
3620         (Rcheck_PE_All_Guards_Closed,
3621         Rcheck_PE_Bad_Predicated_Generic_Type,
3622         Rcheck_PE_Current_Task_In_Entry_Body,
3623         Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise,
3624         Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value,
3625         Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object,
3626         Rcheck_PE_Potentially_Blocking_Operation
3627         Rcheck_PE_Stubbed_Subprogram_Called,
3628         Rcheck_PE_Unchecked_Union_Restriction,
3629         Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool,
3630         Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion,
3631         Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception):
3632         Update the use of Rmsg_XX.
3633         (Rcheck_17, Rcheck_18, Rcheck_19,
3634         Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25,
3635         Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31,
3636         Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding
3637         renamed subprograms.
3638         * checks.adb: Add with and use clause for Stringt.
3639         (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in
3640         all subprograms of Apply_Parameter_Aliasing_Checks. Remove local
3641         variable Cond. Initialize Check at the start of the routine. Use
3642         routine Overlap_Check to construct a simple or a detailed run-time
3643         check. Update the creation of the simple check.
3644         (Overlap_Check): New routine.
3645         * exp_ch11.adb (Get_RT_Exception_Name): Add a value for
3646         PE_Aliased_Parameters.
3647         * types.ads: Add new enumeration literal
3648         PE_Aliased_Parameters. Update the corresponding integer values
3649         of all RT_Exception_Code literals.
3650         * types.h: Add new constant PE_Aliased_Parameters. Correct the
3651         values of all remaining constants.
3653 2013-07-05  Yannick Moy  <moy@adacore.com>
3655         * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in
3656         documentation.
3658 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
3660         * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide
3661         condition, when replacing the name of a formal by a conversion
3662         to the class-wide type, exempt selector names that appear in
3663         parameter associations.
3665 2013-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3667         * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete.
3668         * gcc-interface/gigi.h (annotate_object): Adjust prototype.
3669         (convert_vms_descriptor): Likewise.
3670         * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer
3671         types by double dereference.
3672         (annotate_object): Remove BY_DOUBLE_REF parameter and adjust.
3673         (gnat_to_gnu_entity): Adjust calls to annotate_object.
3674         * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double
3675         dereference.
3676         (Call_to_gnu): Likewise.
3677         (build_function_stub): Adjust call to convert_vms_descriptor.
3678         (Subprogram_Body_to_gnu): Adjust call to annotate_object.
3679         * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF
3680         parameter and adjust.
3682 2013-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3684         * gcc-interface/Makefile.in (arm% androideabi): Robustify.
3686 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3688         * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not
3689         check that access types have a set size.
3691 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3693         * gcc-interface/decl.c (vinfo_t): New type and associated vector.
3694         (components_to_record): Change return type to bool.
3695         Lay out the variants in two passes.  Do not force a specific layout for
3696         the variant part if the variants do not have a representation clause.
3697         Take the alignment of the variant part into account when laying out
3698         variants without rep clause in a record type with a partial rep clause.
3699         (create_rep_part): Do not set the position of the field.
3701 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3703         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
3704         to avoid generating an overflow for -1.
3706 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3708         * gcc-interface/gigi.h (create_type_decl): Adjust prototype.
3709         (create_label_decl): Complete prototype.
3710         (process_attributes): Declare.
3711         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to
3712         create_type_decl throughout.
3713         <E_Enumeration_Type>: Do the layout of the type manually and call
3714         process_attributes on it.  Reindent.
3715         <E_Enumeration_Subtype>: Minor tweak.
3716         <E_Floating_Point_Subtype>: Reindent.
3717         <E_Array_Subtype>: Call process_attributes on the array type built
3718         for a packed array type.
3719         <E_Record_Type>: Call process_attributes on the type.
3720         <E_Record_Subtype>: Likewise.
3721         <E_Access_Type>: Likewise.
3722         <E_Subprogram_Type>: Likewise.
3723         Likewise for all types at the end of the processing.
3724         * gcc-interface/utils.c (make_aligning_type): Adjust call to
3725         create_type_decl.
3726         (maybe_pad_type): Likewise.
3727         (create_index_type): Likewise.
3728         (create_type_decl): Remove attr_list parameter and associated code.
3729         (create_var_decl_1): Call process_attributes on the variable.
3730         (process_attributes): Take a pointer to the object and add in_place
3731         and gnat_node parameters and adjust throughout.
3732         <ATTR_MACHINE_ATTRIBUTE>: Pass ATTR_FLAG_TYPE_IN_PLACE only on demand
3733         and set the input location.
3734         Zap the attribute list at the end.
3735         (create_subprog_decl): Call process_attributes on the subprogram.
3736         (build_unc_object_type): Adjust call to create_type_decl.
3737         (handle_vector_type_attribute): Remove dead code.
3739 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3741         * gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
3742         * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter
3743         for the position of the associated TYPE_DECL.
3744         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above.
3745         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
3747 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3749         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely
3750         elaborate the full view of a type with a freeze node.
3751         * gcc-interface/trans.c (process_type): Add explicit predicate.
3753 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3755         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Always build the
3756         UNC variable for aliased objects with unconstrained nominal subtype.
3758 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3760         * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare.
3761         * gcc-interface/trans.c (gigi): Call it.
3762         * gcc-interface/misc.c (gnat_init_gcc_fp): New function.
3764 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3766         * gcc-interface/gigi.h (enum inline_status_t): New type.
3767         (create_subprog_decl): Adjust prototype.
3768         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Adjust
3769         calls to create_subprog_decl.
3770         (get_minimal_subprog_decl): Likewise.
3771         * gcc-interface/trans.c (gigi): Likewise.
3772         (build_raise_check): Likewise.
3773         (establish_gnat_vms_condition_handler): Likewise.
3774         (Compilation_Unit_to_gnu): Likewise.
3775         (gnat_to_gnu): Likewise.
3776         * gcc-interface/utils.c (create_subprog_decl): Change inline_flag
3777         parameter to inline_status and implement for suppressed inlining.
3779 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3781         * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define.
3782         (LOOP_STMT_UNROLL): Likewise.
3783         (LOOP_STMT_NO_VECTOR): Likewise.
3784         (LOOP_STMT_VECTOR): Likewise.
3785         * gcc-interface/trans.c (struct loop_info_d): Replace label field
3786         with stmt field.
3787         (Pragma_to_gnu) <Pragma_Loop_Optimize>: New case.
3788         (Loop_Statement_to_gnu): Save the loop statement onto the stack
3789         instead of the label.
3790         (gnat_to_gnu) <N_Exit_Statement>: Retrieve the loop label.
3792 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3794         * gcc-interface/trans.c: Include diagnostic.h and opts.h.
3795         (Pragma_to_gnu) <Pragma_Warnings>: New case.
3797 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3799         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
3800         a handful of local variables.
3801         For a derived untagged type that renames discriminants, change the type
3802         of the stored discriminants to a subtype with the bounds of the type
3803         of the visible discriminants.
3804         (build_subst_list): Rename local variable.
3806 2013-05-16  Jason Merrill  <jason@redhat.com>
3808         * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex.
3810 2013-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3812         PR ada/57188
3813         * gcc-interface/Makefile.in: Allow for amd64 solaris2.
3815 2013-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3817         PR ada/56474
3818         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Use
3819         int_const_binop to shift bounds by 1 when they are integer constants.
3821 2013-04-25  Arnaud Charlet  <charlet@adacore.com>
3823         * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b}
3825 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3827         * checks.adb (Apply_Predicate_Check): Update the comment associated
3828         with the call to Check_Expression_Against_Static_Predicate.
3829         * sem_ch3.adb (Analyze_Object_Declaration): Update the comment
3830         associated with the call to Check_Expression_Against_Static_Predicate.
3831         * sem_util.adb (Check_Expression_Against_Static_Predicate):
3832         Broaden the check from a static expression to an expression with
3833         a known value at compile time.
3834         * sem_util.ads (Check_Expression_Against_Static_Predicate): Update
3835         comment on usage.
3837 2013-04-25  Thomas Quinot  <quinot@adacore.com>
3839         * exp_attr.adb (Expand_N_Attribute_Reference, cases Position,
3840         First_Bit, and Last_Bit): Fix incorrect test in implementation of
3841         RM 2005 13.5.2(3/2).
3843 2013-04-25  Claire Dross  <dross@adacore.com>
3845         * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb,
3846         a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads
3847         (Query_Element): Removed.
3848         (Update_Element): Removed.
3849         (Insert): The version with no New_Item specified is removed.
3850         (Iterate): Removed.
3851         (Write): Removed.
3852         (Read): Removed.
3853         Every check of fields Busy and Lock has been removed.
3855 2013-04-25  Robert Dewar  <dewar@adacore.com>
3857         * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove
3858         call to S14_Pragma (Find_Related_Subprogram): Require proper
3859         placement in subprogram body (Find_Related_Subprogram): Detect
3860         duplicates for all cases (Find_Related_Subprogram): Handle case
3861         of spec nested inside body.
3863 2013-04-25  Arnaud Charlet  <charlet@adacore.com>
3865         * par-prag.adb: Fix typo.
3867 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3869         * checks.adb (Apply_Predicate_Check): If the type has a static
3870         predicate and the expression is also static, check whether the
3871         expression satisfies the predicate.
3872         * sem_ch3.adb (Analyze_Object_Declaration): If the type has a
3873         static predicate and the expression is also static, see if the
3874         expression satisfies the predicate.
3875         * sem_util.adb: Alphabetize several routines.
3876         (Check_Expression_Against_Static_Predicate): New routine.
3877         * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine.
3879 2013-04-25  Robert Dewar  <dewar@adacore.com>
3881         * gnat_rm.texi: Document Reason argument for pragma Warnings.
3882         * par-prag.adb: Handle Reason parameter for pragma Warnings.
3883         * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument.
3884         * snames.ads-tmpl (Name_Reason): New name entry.
3886 2013-04-25  Yannick Moy  <moy@adacore.com>
3888         * exp_spark.adb (Expand_SPARK_N_In): Remove procedure.
3889         (Expand_SPARK): Remove special expansion for membership tests.
3891 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3893         * exp_ch3.adb (Expand_N_Object_Declaration): Update all places
3894         that should use constant Base_Typ. When building an invariant
3895         check, account for invariants coming from the base type. Prevent
3896         the creation of a junk invariant check when the related object
3897         is of an array type and it is initialized with an aggregate.
3898         * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use
3899         the base type to create an invariant call when the type of the
3900         expression is a composite subtype.
3902 2013-04-25  Vasiliy Fofanov  <fofanov@adacore.com>
3904         * a-cborse.adb: Fix minor typo.
3906 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
3908         * sem_ch6.adb (Different_Generic_Profile): A spec and body
3909         match in an instance if a subtype declaration that renames a
3910         generic actual with the same name appears between spec and body.
3912 2013-04-25  Robert Dewar  <dewar@adacore.com>
3914         * sem_util.adb: Minor reformatting.
3916 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
3918         * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to
3919         fold strings with a single others choice only if there are no
3920         expressions in the aggregate.
3922 2013-04-25  Arnaud Charlet  <charlet@adacore.com>
3924         * gnat_ugn.texi: Update doc on Ada 2012 default mode.
3926 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3928         * exp_ch6.adb: Add with and use clause for Stringt.
3929         (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters
3930         Decls and Stmts along with comments on their usage.
3931         * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6.
3932         * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6.
3933         (Process_Contract_Cases): Update the call to Expand_Contract_Cases.
3935 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
3937         * gnat_rm.texi: Minor editing, to clarify use of dimension aspects.
3938         * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an
3939         aggregate for a packed type, which may be converted into an
3940         unchecked conversion of an object.
3942 2013-04-25  Robert Dewar  <dewar@adacore.com>
3944         * sem_prag.adb: Minor code reorganization (correct misspelling
3945         Restiction).
3946         * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting.
3947         * gnat_rm.texi: Document impl-defined aspects.
3948         * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor
3949         reformatting.
3951 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3953         * einfo.adb (Set_Abstract_States): The attribute now applies
3954         to generic packages.
3955         * sem_ch4.adb (Referenced): Moved to sem_util.
3956         * sem_ch7.adb (Unit_Requires_Body): A [generic] package with
3957         a non-null abstract state needs a body.
3958         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls
3959         to Collect_Subprogram_Inputs_Outputs.
3960         (Analyze_Global_Item): Verify the proper usage of an item with mode
3961         In_Out or Output relative to the enclosing context.
3962         (Analyze_Pragma): Abstract_State can now be applied to a generic
3963         package. Do not reset the Analyzed flag for pragmas Depends and Global
3964         as this is not needed.
3965         (Appears_In): Moved to library level.
3966         (Check_Mode_Restiction_In_Enclosing_Context): New routine.
3967         (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add
3968         formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global
3969         seen along with comments on usage.
3970         * sem_util.ads, sem_util.adb (Referenced): New routine.
3972 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3974         * sem_ch6.adb (Expand_Contract_Cases): Generate
3975         detailed error messages only when switch -gnateE is in effect.
3977 2013-04-25  Yannick Moy  <moy@adacore.com>
3979         * sem_attr.adb (Analyze_Attribute): Do not issue
3980         an error for a possibly misplaced 'Result or 'Old attribute when
3981         analyzing the aspect.
3983 2013-04-25  Robert Dewar  <dewar@adacore.com>
3985         * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
3987 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3989         * sem_ch4.adb (Analyze_Quantified_Expression):
3990         Add local variable Loop_Id. Verify that the loop variable
3991         is used within the condition of the quantified expression.
3992         (Referenced): New routine.
3994 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
3996         * sem_case.adb (Analyze_Choices): Enhance the error message
3997         given on a bad use of subtype predicate.
3998         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
3999         the error message given on a bad use of subtype predicate.
4000         * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
4001         Suggest_Static. Emit an extra error message advising how to
4002         remedy the bad use of the predicate if the context warrants it.
4003         * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
4004         Suggest_Static along with a comment explaining its usage.
4006 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4008         * sem_disp.adb (Check_Dispatching_Operation): Further refinement
4009         to checks for AI05-0125: the check for a hidden primitive that
4010         may be overridden by the new declaration only applies if the
4011         hidden operation is never declared. This is not the case if the
4012         operation is declared in a parent unit.
4014 2013-04-25  Robert Dewar  <dewar@adacore.com>
4016         * debug.adb: Remove d.X and d.Y entries and documentation.
4017         * exp_ch4.adb (Expand_N_If_Expression): Remove special code used
4018         if expression with actions not available (now always available).
4019         (Expand_Short_Circuit_Operator): Same change.
4020         * gnat1drv.adb (Adjust_Global_Switches) Remove setting
4021         Use_Expression_With_Actions flag, since this is now obsolete.
4022         * opt.ads (Use_Expression_Actions): Removed (always True now).
4023         * sinfo.ads: Minor comment updates.
4025 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4027         * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array
4028         subtype whose base type is currently private, install full view
4029         when compiling instance body.
4031 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4033         * sem_disp.adb (Check_Dispatching_Operation): Refine checks for
4034         AI05-0125: the check for a hidden primitive that may be overridden
4035         by the new declaration is only performed if the declaration comes
4036         from source, and it must carry an explicit overriding indicator.
4038 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4040         * einfo.adb (Abstract_States): The attribute now applies to
4041         generic packages.
4042         * sem_ch3.adb (Analyze_Object_Declaration): Check whether an
4043         object declaration introduces an illegal hidden state.
4044         * sem_prag.adb (Analyze_Abstract_State): Check whether a state
4045         declaration introduces an illegal hidden state.
4046         * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine.
4048 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4050         * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may
4051         be to a protected function, in which case the name in the call
4052         is a selected component.
4054 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4056         * sem_ch4.adb (Analyze_Quantified_Expression):
4057         Warn on a suspicious use of quantifier "some" when "all" was meant.
4058         (No_Else_Or_Trivial_True): New routine.
4060 2013-04-25  Robert Dewar  <dewar@adacore.com>
4062         * einfo.ads, einfo.adb: Put back with/use for Namet.
4063         (Get_Pragma): New name (wi new spec) for Find_Pragma.
4064         * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with
4065         different interface.
4067 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4069         * sem_ch3.adb (Is_Visible_Component): In an instance all
4070         components are visible.
4072 2013-04-25  Matthew Heaney  <heaney@adacore.com>
4074         * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for
4075         tampering when container empty.
4076         * a-crbtgk.adb (Ceiling, Find, Floor): ditto.
4077         (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
4078         ditto.
4080 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4082         * par-ch12.adb: Move aspects from package specification to
4083         generic package declaration.
4084         * sem_ch12.adb: Analyze aspect specifications before building
4085         and analyzing the generic copy, so that the generated pragmas
4086         are properly taken into account.
4087         * sem_ch13.adb: For compilation unit aspects that apply to a
4088         generic package declaration, insert corresponding pragmas ahead
4089         of visible declarations.
4090         * sprint.adb: Display properly the aspects of a generic type
4091         declaration.
4093 2013-04-25  Robert Dewar  <dewar@adacore.com>
4095         * frontend.adb: Minor reformatting.
4097 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4099         * einfo.ads: Extend documentation on use of Is_Private_Ancestor
4100         for untagged types.
4101         * sem_ch3.adb (Is_Visible_Component): Refine predicate for the
4102         case of untagged types derived from private types, to reject
4103         illegal selected components.
4105 2013-04-25  Gary Dismukes  <dismukes@adacore.com>
4107         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test
4108         for case of selecting from an unexpanded implicit dereference
4109         and do not make a recursive call on such a prefix.
4111 2013-04-25  Doug Rupp  <rupp@adacore.com>
4113         * targparm.adb (VXF{_Str}): New tag for vaxfloat.
4114         (Get_Target_Parameters): Handle VXF tag.
4115         * targparm.ads (VAX_Float_On_Target): New boolean.
4116         * system-vms-ia64.ads (VAX_Float): New boolean.
4117         * frontend.adb (Frontend): Handle VAX float boolean.
4119 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4121         * einfo.ads, einfo.adb: Remove with and use clauses for Namet.
4122         (Find_Pragma): New routine.
4123         * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo.
4125 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4127         * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited
4128         predicate.
4129         (Add_Predicates): Save the static predicate for diagnostics and error
4130         reporting purposes.
4131         (Process_PPCs): Remove local variables Dynamic_Predicate_Present and
4132         Static_Predicate_Present. Add local variable Static_Pred. Ensure that
4133         the expression of a static predicate is static.
4135 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4137         * einfo.adb (Is_Ghost_Subprogram): Remove useless code.
4139 2013-04-25  Robert Dewar  <dewar@adacore.com>
4141         * gnat_rm.texi: Minor addition of index entry.
4143 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4145         * sem_ch6.adb (Check_Access_Invariants): Test whether an
4146         invariant procedure is empty before generating a call to it.
4147         (Has_Enabled_Predicate): New routine.
4148         (Has_Null_Body): New routine.
4149         (Process_PPCs): Test whether an invariant procedure is
4150         empty before generating a call to it. Test whether predicates are
4151         enabled for a particular type before generating a predicate call.
4152         * sem_util.ads, sem_util.adb (Find_Pragma): New routine.
4154 2013-04-25  Robert Dewar  <dewar@adacore.com>
4156         * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl,
4157         snames.ads-tmpl: Minor reformatting.
4159 2013-04-25  Thomas Quinot  <quinot@adacore.com>
4161         * sem_ch7.adb: Minor reformatting.
4163 2013-04-25  Robert Dewar  <dewar@adacore.com>
4165         * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed).
4166         * s-tarest.adb: Minor reformatting.
4168 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
4170         * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant
4171         tables.
4172         * einfo.adb: Remove with and use clause for Aspects.
4173         (Is_Ghost_Function): Removed.
4174         (Is_Ghost_Entity): New routine.
4175         (Is_Ghost_Subprogram): New routine.
4176         * einfo.ads: Remove synthesized attribute Is_Ghost_Function
4177         along with its uses in entities.  Add synthesized attributes
4178         Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related
4179         entities.
4180         (Is_Ghost_Function): Removed.
4181         (Is_Ghost_Entity): New routine.
4182         (Is_Ghost_Subprogram): New routine.
4183         * par-prag.adb: Remove pragma Ghost from the processing machinery.
4184         * repinfo.adb (List_Mechanisms): Add a value for convention Ghost.
4185         * sem_attr.adb (Analyze_Access_Attribute): Update the check
4186         for ghost subprograms.
4187         * sem_ch4.adb (Analyze_Call): Update the check for calls
4188         to ghost subprograms.
4189         (Check_Ghost_Function_Call): Removed.
4190         (Check_Ghost_Subprogram_Call): New routine.
4191         * sem_ch6.adb (Check_Convention): Rewritten.
4192         (Check_Overriding_Indicator): Remove the check for overriding
4193         ghost functions.
4194         (Convention_Of): New routine.
4195         * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost
4196         generic actual subprograms.
4197         * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost.
4198         * sem_prag.adb: Remove the value for pragma Ghost from
4199         table Sig_Flags.
4200         (Analyze_Pragma): Remove the processing for pragma Ghost.
4201         (Process_Convention): Emit an error when a ghost
4202         subprogram attempts to override.
4203         (Set_Convention_From_Pragma): Emit an error when a ghost subprogram
4204         attempts to override.
4205         * sinfo.ads: Clarify the usage of field Label_Construct.
4206         * snames.adb-tmpl (Get_Convention_Id): Add an entry for
4207         predefined name Ghost.
4208         (Get_Convention_Name): Add an entry for convention Ghost.
4209         * snames.ads-tmpl: Move predefined name Ghost to the sublist
4210         denoting conventions. Add convention id Ghost. Remove pragma
4211         id Ghost.
4213 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
4215         * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child
4216         units if within a generic hierarchy.
4218 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4220         * exp_ch6.adb (Expand_Actuals): Add a predicate check on an
4221         actual the related type has a predicate function.
4222         * sem_ch3.adb (Constant_Redeclaration): Ensure that the related
4223         type has an invariant procedure before building a call to it.
4224         * sem_ch6.adb (Append_Enabled_Item): New routine.
4225         (Check_Access_Invariants): Use routine
4226         Append_Enabled_Item to chain onto the list of postconditions.
4227         (Contains_Enabled_Pragmas): Removed.
4228         (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto
4229         the list of postconditions.
4230         (Invariants_Or_Predicates_Present): Removed.
4231         (Process_PPCs): Partially reimplemented.
4233 2013-04-24  Sergey Rybin  <rybin@adacore.com frybin>
4235         * tree_io.ads: Update ASIS_Version_Number because of changes
4236         in the way how entities are chained in a scope by means of
4237         Next_Entity link.
4239 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4241         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
4242         Storage_Size): If the clause is not from an aspect, insert
4243         assignment to size variable of task type at the point of the
4244         clause, not after the task definition, to prevent access before
4245         elaboration in the back-end.
4247 2013-04-24  Yannick Moy  <moy@adacore.com>
4249         * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume.
4251 2013-04-24  Yannick Moy  <moy@adacore.com>
4253         * gnat_rm.texi: Document 'Loop_Entry.
4255 2013-04-24  Jose Ruiz  <ruiz@adacore.com>
4257         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for
4258         fall-back termination handlers from the parents, because they apply
4259         only to dependent tasks.
4260         * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back
4261         termination handlers because the environment task has no parent,
4262         and if it defines one of these handlers it does not apply to
4263         itself because they apply only to dependent tasks.
4265 2013-04-24  Robert Dewar  <dewar@adacore.com>
4267         * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting.
4269 2013-04-24  Robert Dewar  <dewar@adacore.com>
4271         * gnat_rm.texi: Document 'Update attribute.
4272         * sem_attr.adb (Analyze_Attribute, case Update): Remove call
4273         to S14_Attribute (S14_Attribute): removed.
4275 2013-04-24  Robert Dewar  <dewar@adacore.com>
4277         * interfac.ads: Add size clauses for IEEE_Float_32/64
4279 2013-04-24  Claire Dross  <dross@adacore.com>
4281         * gnat1drv.adb (Adjust_Global_Switches): Remove
4282         special assignment of Use_Expression_With_Actions for SPARK_Mode.
4284 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4286         * checks.adb (Apply_Predicate_Check): Check for the presence
4287         of the dynamic predicate aspect when trying to determine if the
4288         predicate of a type is non-static.
4289         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
4290         for the presence of the dynamic predicate aspect when trying to
4291         determine if the predicate of a type is non- static.
4292         * sem_ch13.adb (Add_Call): Capture the nature of the
4293         inherited ancestor predicate.
4294         (Build_Predicate_Functions): Update comments. Rewrite the checks on
4295         static predicate application. Complain about the form of a non-static
4296         expression only when the type is static.
4298 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4300         * sem_prag.adb: Add guard to tree traversal.
4302 2013-04-24  Vincent Celier  <celier@adacore.com>
4304         * clean.adb (Clean): Remove local variable Root_Environment,
4305         use Makeutl.Root_Environment instead.
4306         * gnatcmd.adb: Remove local variable Root_Environment, use
4307         Makeutl.Root_Environment instead.
4308         * make.adb (Gnatmake): Remove local variable Root_Environment,
4309         use Makeutl.Root_Environment instead.
4310         * prj-makr.adb: Remove local variable Root_Environment, use
4311         Makeutl.Root_Environment instead.
4313 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4315         * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the
4316         extraction of the declarative part of the conditional block. Move
4317         the processing of simple infinite loops to the start of the
4318         expansion logic. Correct the check which determines whether the
4319         proper scope is installed in visibility.
4320         * sem_attr.adb (Analyze_Attribute): Add local variable Attr
4321         to keep track of the attribute in case the enclosing indexed
4322         component has to be rewritten. When searching for the enclosing
4323         loop, start from the proper attribute reference in case of a
4324         rewriting. Do not allow for 'Loop_Entry to appear in pragma
4325         Assert. Replace loop variable J with Index. Set the type of the
4326         proper attribute.
4327         * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized
4328         block that services a loop statement subject to at least one
4329         'Loop_Entry attribute.
4331 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4333         * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to
4334         resolve a fixed point operation, use first subtype to determine
4335         whether type and operator are declared in the same list of
4336         declarations.
4338 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4340         * par-ch6.adb (P_Subprogram): Detect an illegal
4341         placement of the aspect specification list in the context of
4342         expression functions.
4344 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4346         * exp_ch4.adb (Expand_N_Allocator):  If the designated object
4347         has tasks, and the pointer type is an itype that has no master
4348         id, create a master renaming in the current context, which can
4349         only be an init_proc.
4351 2013-04-24  Robert Dewar  <dewar@adacore.com>
4353         * sem_ch3.adb, sem_ch7.adb: Minor reformatting.
4354         * gnat_rm.texi: Document pragma Loop_Invariant.
4355         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is
4356         no longer an S14_Attribute.
4357         * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine
4358         processing with Assert, allow message parameter, remove call
4359         to S14_Pragma.
4361 2013-04-24  Thomas Quinot  <quinot@adacore.com>
4363         * exp_ch4.adb: Minor reformatting.
4365 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4367         * sem_ch7.adb (Swap_Private_Dependents): New internal routine
4368         to Install_Private_Declarations, to make the installation of
4369         private dependents recursive in the presence of child units.
4370         * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly
4371         the Private_Dependents of a private subtype.
4373 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4375         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the
4376         retrieval of the block declarations.
4377         * par-ch4.adb (P_Name): Let the name parsing machinery create
4378         a sequence of nested indexed components for attribute Loop_Entry.
4379         * sem_attr.adb (Analyze_Attribute): Add local constant
4380         Context. Reimplement part of the analysis of attribute Loop_Entry.
4381         (Convert_To_Indexed_Component): Removed.
4382         * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze
4383         an indexed component after it has been rewritten into attribute
4384         Loop_Entry.
4386 2013-04-24  Yannick Moy  <moy@adacore.com>
4388         * snames.ads-tmpl: Minor change to list
4389         Loop_(In)variant not in configuration pragma.
4390         * sem_ch3.adb (Analyze_Declarations): Do not look at the original node
4391         for analyzing the expressions in pre/postconditions.
4393 2013-04-24  Robert Dewar  <dewar@adacore.com>
4395         * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
4396         reformatting.
4398 2013-04-24  Yannick Moy  <moy@adacore.com>
4400         * sem_ch6.adb (Analyze_Generic_Subprogram_Body,
4401         Analyze_Subprogram_Body_Helper): Reset contract node to Empty
4402         before setting entity to E_Subprogram_Body.
4403         * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to
4404         Empty before setting entity to E_Subprogram_Body.
4406 2013-04-24  Vincent Celier  <celier@adacore.com>
4408         * gnat_ugn.texi: Document new gnatls switch -aPdir.
4409         * gnatcmd.adb: Pass switch -aP<dir> to gnatls.
4410         * gnatls.adb (Scan_Ls_Arg): Process new switch -aP<dir>. Issue
4411         a warning for unknown switches.
4412         (Usage): Add line for new switch -aPdir.
4414 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4416         * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true
4417         if the type comes from a limited view, so that task attributes can be
4418         constructed.
4420 2013-04-24  Yannick Moy  <moy@adacore.com>
4422         * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if
4423         full expansion is not enabled.
4425 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4427         * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra
4428         formals if the type does not yet have a completion, and thus
4429         has no underlying view.
4431 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4433         * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect
4434         specification for Address as a reference, to suppress warnings
4435         on entities that may be read by an external device.
4437 2013-04-24  Sergey Rybin  <rybin@adacore.com frybin>
4439         * gnat_ugn.texi: Add description of '--help' and '--version'
4440         options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp.
4442 2013-04-24  Arnaud Charlet  <charlet@adacore.com>
4444         * gnat_rm.texi: Minor syntax fix.
4446 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4448         * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on
4449         what and why is being analyzed. Remove the decoration of renamings as
4450         this simply falls out of the general analysis mechanism.
4452 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4454         * sem_res.adb (Explain_Redundancy): New routine.
4455         (Resolve_Equality_Op): Place the error concerning a redundant
4456         comparison to True at the "=". Try to explain the nature of the
4457         redundant True.
4459 2013-04-24  Javier Miranda  <miranda@adacore.com>
4462         * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No
4463         check in interface thunks since it is performed at the caller
4464         side.
4465         (Expand_Simple_Function_Return): No accessibility check
4466         needed in thunks since the check is done by the target routine.
4468 2013-04-24  Vincent Celier  <celier@adacore.com>
4470         * xref_lib.adb (Add_Entity): Use the canonical file names
4471         so that source file names with capital letters are found on
4472         platforms where file names are case insensitive.
4474 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4476         * par-ch4.adb (P_Name): Continue to parse the name extension when the
4477         construct is attribute Loop_Entry. Do not convert the attribute
4478         reference into an indexed component when there is at least one
4479         expression / range following 'Loop_Entry.
4481 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4483         * sem_ch6.adb (Contains_Enabled_Pragmas): New routine.
4484         (Process_PPCs): Generate procedure _Postconditions
4485         only when the context has invariants or predicates or enabled
4486         aspects/pragmas.
4488 2013-04-24  Thomas Quinot  <quinot@adacore.com>
4490         * g-socket.adb (Host_Entry): Introduce intermediate copy of
4491         memory location pointed to by Hostent_H_Addr, as it might not
4492         have sufficient alignment.
4494 2013-04-24  Yannick Moy  <moy@adacore.com>
4496         * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before
4497         calling subprograms which may read it.
4499 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4501         * einfo.adb: Remove Loop_Entry_Attributes from the usage of
4502         nodes. Flag 260 is now used.
4503         (Has_Loop_Entry_Attributes): New routine.
4504         (Loop_Entry_Attributes): Removed.
4505         (Set_Has_Loop_Entry_Attributes): New routine.
4506         (Set_Loop_Entry_Attributes): Removed.
4507         (Write_Entity_Flags): Write out Flag 260.
4508         (Write_Field10_Name): Remove the output for Loop_Entry_Attributes.
4509         * einfo.ads: Remove attribute Loop_Entry_Attributes,
4510         its related comment and uses in nodes.  Add new attribute
4511         Has_Loop_Entry_Attributes, related comment and uses in loop nodes.
4512         (Has_Loop_Entry_Attributes): New routine and pragma Inline.
4513         (Loop_Entry_Attributes): Removed along with pragma Inline.
4514         (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline.
4515         (Set_Loop_Entry_Attributes): Removed along with pragma Inline.
4516         * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine.
4517         (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry.
4518         * exp_ch5.adb: Remove with and use clause for Elists.
4519         (Expand_Loop_Entry_Attributes): Removed.
4520         (Expand_N_Loop_Statement): Add local variable Stmt. Rename local
4521         constant Isc to Scheme. When a loop is subject to attribute
4522         'Loop_Entry, retrieve the nested loop from the conditional
4523         block. Move the processing of controlled object at the end of
4524         loop expansion.
4525         * sem_attr.adb (Analyze_Attribute): Do not chain attribute
4526         'Loop_Entry to its related loop.
4527         * sem_ch5.adb (Analyze_Loop_Statement): Add local variable
4528         Stmt. When the iteration scheme mentions attribute 'Loop_Entry,
4529         the entire loop is rewritten into a block.  Retrieve the nested
4530         loop in such cases to complete the analysis.
4531         * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New
4532         routine.
4533         (Subject_To_Loop_Entry_Attributes): New routine.
4535 2013-04-24  Robert Dewar  <dewar@adacore.com>
4537         * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check
4538         (Loop_Variant, xxx) rather than Assert (xxx).
4539         * gnat_rm.texi: Document pragma Loop_Variant.
4540         * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call
4541         to S14_Pragma.
4543 2013-04-24  Yannick Moy  <moy@adacore.com>
4545         * adabkend.adb, ali-util.adb, ali.adb, debug.adb,
4546         errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb,
4547         exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb,
4548         expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb,
4549         lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads,
4550         restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb,
4551         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb,
4552         sem_res.adb, sem_util.adb: Everything with name
4553         'Alfa' renamed in 'SPARK'. Update comments.
4554         Renaming of units with name 'Alfa', renamed with 'SPARK' instead.
4555         * exp_alfa.adb: renamed exp_spark.adb.
4556         * exp_alfa.ads: renamed exp_spark.ads.
4557         * get_alfa.adb: renamed get_spark_xrefs.adb.
4558         * get_alfa.ads: renamed get_spark_xrefs.ads.
4559         * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb.
4560         * put_alfa.adb: renamed put_spark_xrefs.adb.
4561         * put_alfa.ads: renamed put_spark_xrefs.ads.
4562         * alfa.adb: renamed spark_xrefs.adb.
4563         * alfa.ads: renamed spark_xrefs.ads.
4564         * alfa_test.adb: renamed spark_xrefs_test.adb.
4565         * gcc-interface/Make-lang.in: Update dependencies.
4567 2013-04-24  Robert Dewar  <dewar@adacore.com>
4569         * gnat_rm.texi: Document pragma Assume.
4570         * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as
4571         part of Assert, and no longer requires -gnatd.F
4573 2013-04-24  Robert Dewar  <dewar@adacore.com>
4575         * gnat_rm.texi: Document pragma Assert_And_Cut.
4576         * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove
4577         S14_Pragma call.
4579 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4581         * sem_aux.adb: Add guard in Available_View.
4583 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4585         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use
4586         Find_Related_Subprogram to find the associated subprogram.
4587         (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram
4588         to find the associated subprogram.
4589         (Analyze_Pragma): Use Find_Related_Subprogram to find the associated
4590         subprogram.
4592 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4594         * exp_ch6.adb: Remove with and use clause for Sem_Prag.
4595         (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze
4596         the contract of a subprogram.
4597         * sem_ch3.adb: Remove with and use clause for Sem_Prag.
4598         (Analyze_Declarations): Call Analyze_Subprogram_Contract to
4599         analyze the contract of a subprogram.
4600         * sem_ch6.adb (Analyze_Subprogram_Contract): New routine.
4601         (Check_Subprogram_Contract): Removed.
4602         * sem_ch6.ads (Analyze_Subprogram_Contract): New routine.
4603         (Check_Subprogram_Contract): Removed.
4604         (Expand_Contract_Cases): Add a guard against malformed contract cases.
4605         * sem_ch13.adb (Analyze_Aspect_Specifications): Call
4606         Decorate_Delayed_Aspect_And_Pragma to decorate aspects
4607         Contract_Cases, Depends and Global. Reimplement the analysis of
4608         aspect Contract_Cases.
4609         (Decorate_Delayed_Aspect_And_Pragma): New routine.
4610         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine.
4611         (Analyze_CTC_In_Decl_Part): Removed.
4612         (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases.
4613         (Analyze_Test_Case_In_Decl_Part): New routine.
4614         (Find_Related_Subprogram): New routine.
4615         (Requires_Profile_Installation): Add new formal Prag. Update
4616         the logic to take into account the origin of the pragma.
4617         * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine.
4618         (Analyze_CTC_In_Decl_Part): Removed.
4619         (Analyze_Test_Case_In_Decl_Part): New routine.
4621 2013-04-24  Robert Dewar  <dewar@adacore.com>
4623         * sem_prag.adb (Process_Convention): Move Stdcall tests to
4624         Set_Convention_From_Pragma so that they are applied to each
4625         entry of a homonym set.
4626         (Process_Convention): Don't try to set convention if already set.
4628 2013-04-24  Robert Dewar  <dewar@adacore.com>
4630         * gnatbind.adb: Minor reformatting.
4632 2013-04-24  Vincent Celier  <celier@adacore.com>
4634         * clean.adb (Gnatclean): Add the default project search
4635         directories in the project search path after scanning the
4636         switches on the command line.
4637         (Initialize): Do not put the default project search directories in the
4638         project search path.
4639         * gnatcmd.adb (GNATcmd): Add the default project search
4640         directories in the project search path after scanning the switches
4641         on the command line.
4642         * make.adb (Initialize): Add the default project search
4643         directories in the project search path after scanning the switches
4644         on the command line.
4646 2013-04-24  Yannick Moy  <moy@adacore.com>
4648         * restrict.ads (Restriction_Warnings): Initialize with all False value.
4650 2013-04-24  Robert Dewar  <dewar@adacore.com>
4652         * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function.
4653         * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of
4654         Predicate_Check.
4655         * snames.ads-tmpl (Name_Predicate_Check): New check name.
4656         * types.ads (Predicate_Check): New definition.
4657         * gnat_rm.texi: Add documentation for Predicate_Check.
4659 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4661         * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this
4662         is a renaming of predefined equality for an untagged record,
4663         add generated body to the freeze actions for the subprogram, to
4664         prevent freezing issues when the record has incomplete components.
4665         * exp_ch4.adb (Expand_Composite_Equality): If the type is a type
4666         without completion, return a predefined comparison instead of
4667         just False.  This may happen when building the expression for
4668         record equality, when some component has a type whose completion
4669         has not been seen yet. The operation will be analyzed an expanded
4670         after the type has been frozen, at which point all component
4671         types will have been completed, or an error reported.
4673 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4675         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay
4676         analysis of a Convention aspect.
4678 2013-04-24  Eric Botcazou  <ebotcazou@adacore.com>
4680         * fe.h (Machine_Overflows_On_Target): New macro and declaration.
4681         (Signed_Zeros_On_Target): Likewise.
4683 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4685         * exp_ch6.adb: Add with and use clause for Sem_Prag.
4686         (Freeze_Subprogram): Analyze all delayed aspects for a null
4687         procedure so that they are available when analyzing the
4688         internally-generated _Postconditions routine.
4689         * exp_ch13.adb: Remove with and use clause for Sem_Prag.
4690         (Expand_N_Freeze_Entity): Move the code that analyzes delayed
4691         aspects of null procedures to exp_ch6.Freeze_Subprogram.
4692         * sem_prag.adb (Analyze_Abstract_State): Update the check on
4693         volatile requirements.
4695 2013-04-24  Bob Duff  <duff@adacore.com>
4697         * ali-util.ads (Source_Record): New component Stamp_File
4698         to record from whence the Stamp came.
4699         * ali-util.adb (Set_Source_Table): Set Stamp_File component.
4700         * bcheck.adb (Check_Consistency): Print additional information in
4701         Verbose_Mode.
4702         * gnatbind.adb (Gnatbind): Print additional information in
4703         Verbose_Mode.
4705 2013-04-24  Robert Dewar  <dewar@adacore.com>
4707         * exp_ch13.adb, sem_prag.adb: Update comments.
4708         * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor
4709         reformatting.
4711 2013-04-24  Doug Rupp  <rupp@adacore.com>
4713         * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior.
4715 2013-04-24  Yannick Moy  <moy@adacore.com>
4717         * sinfo.ads: Minor correction of typo.
4719 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4721         * sem_ch3.adb: Create packed array only when expander is
4722         active.
4724 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
4726         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only
4727         when the context warrants it.
4728         (Analyze_Global_In_Decl_List): Install the formals only when
4729         the context warrants it.
4730         (Requires_Profile_Installation): New routine.
4732 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
4734         * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return
4735         type is a discriminated private type that does not require use
4736         of the secondary stack, a constrained subtype of the underlying
4737         type is created to convey the proper object size to the backend.
4738         If the return type is originally a private type, the return
4739         expression is wrapped in an unchecked_conversion. If the return
4740         expression is used subsequently in a call to the postcondition
4741         function, this conversion must be undone to prevent a spurious
4742         error on the analysis of that call.
4744 2013-04-23  Kai Tietz  <ktietz@redhat.com>
4746         PR target/55445
4747         * raise-gcc.c (__SEH__): Additional check that SjLj isn't active.
4749 2013-04-23  Eric Botcazou  <ebotcazou@adacore.com>
4750             Pascal Obry    <obry@adacore.com>
4752         * gcc-interface/Makefile.in (targ): Fix target name check.
4753         (../../gnatmake$(exeext)): Add '+' for LTO.
4754         (../../gnatlink$(exeext)): Likewise.
4756 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
4758         * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
4759         pre- and post-conditions.
4760         (Expand_N_Task_Type_Declaration):
4761         Use the correct attribute to check for pre- and post-conditions.
4762         * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of
4763         pre- and post-conditions.  Analyze delayed classification items.
4764         * freeze.adb (Freeze_Entity): Use the correct attribute to
4765         check for pre- and post- conditions.
4766         * sem_ch3.adb (Analyze_Declarations): Correct the traversal
4767         of pre- and post-conditions as well as contract- and
4768         test-cases. Analyze delayed pragmas Depends and Global.
4769         * sem_ch6.adb (Check_Subprogram_Contract): Use the correct
4770         attribute to check for pre- and post-conditions, as well as
4771         contract-cases and test-cases.  (List_Inherited_Pre_Post_Aspects):
4772         Correct the traversal of pre- and post- conditions.
4773         (Process_Contract_Cases): Update the comment on usage. Correct
4774         the traversal of contract-cases.
4775         (Process_Post_Conditions): Update the comment on usage. Correct the
4776         traversal of pre- and post-conditions.
4777         (Process_PPCs): Correct the traversal of pre- and post-conditions.
4778         (Spec_Postconditions): Use the correct
4779         attribute to check for pre- and post- conditions, as well as
4780         contract-cases and test-cases.
4781         * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the
4782         actions related to aspects Depends and Global. Code refactoring
4783         for pre- and post-conditions.
4784         (Insert_Delayed_Pragma): New routine.
4785         * sem_prag.adb (Add_Item): New routine.
4786         (Analyze_Depends_In_Decl_Part): New routine.
4787         (Analyze_Global_In_Decl_Part): New routine.
4788         (Analyze_Pragma): Reimplement the actions related to aspects Depends and
4789         Global. Verify that a body acts as a spec for pragma Contract_Cases.
4790         (Chain_PPC): Use Add_Contract_Item to chain a pragma.
4791         (Chain_CTC): Correct the traversal of contract-
4792         and test-cases. Use Add_Contract_Item to chain a pragma.
4793         (Chain_Contract_Cases): Correct the traversal of contract-
4794         and test-cases. Use Add_Contract_Item to chain a pragma.
4795         (Check_Precondition_Postcondition): Update the comment on usage.
4796         (Check_Test_Case): Update the comment on usage.
4797         * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine.
4798         (Analyze_Global_In_Decl_Part): New routine.
4799         * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine.
4800         * sinfo.adb (Classifications): New routine.
4801         (Contract_Test_Cases): New routine.
4802         (Pre_Post_Conditions): New routine.
4803         (Set_Classifications): New routine.
4804         (Set_Contract_Test_Cases): New routine.
4805         (Set_Pre_Post_Conditions): New routine.
4806         (Set_Spec_CTC_List): Removed.
4807         (Set_Spec_PPC_List): Removed.
4808         (Spec_CTC_List): Removed.
4809         (Spec_PPC_List): Removed.
4810         * sinfo.ads: Update the structure of N_Contruct along with all
4811         related comments.
4812         (Classifications): New routine and pragma Inline.
4813         (Contract_Test_Cases): New routine and pragma Inline.
4814         (Pre_Post_Conditions): New routine and pragma Inline.
4815         (Set_Classifications): New routine and pragma Inline.
4816         (Set_Contract_Test_Cases): New routine and pragma Inline.
4817         (Set_Pre_Post_Conditions): New routine and pragma Inline.
4818         (Set_Spec_CTC_List): Removed.
4819         (Set_Spec_PPC_List): Removed.
4820         (Spec_CTC_List): Removed.
4821         (Spec_PPC_List): Removed.
4823 2013-04-23  Doug Rupp  <rupp@adacore.com>
4825         * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2
4826         to account for LIB$STOP not having the chance to add the PC and
4827         PSL fields.
4829 2013-04-23  Robert Dewar  <dewar@adacore.com>
4831         * sem_ch13.adb: Minor code reorganization (remove some redundant
4832         assignments).
4833         * sem_ch3.adb, sem_prag.adb: Minor reformatting.
4835 2013-04-23  Yannick Moy  <moy@adacore.com>
4837         * einfo.ads: Minor typo fix.
4838         * sem_ch13.adb (Build_Predicate_Functions): Reject cases where
4839         Static_Predicate is applied to a non-scalar or non-static type.
4840         * sem_prag.adb: Minor typo fix.
4842 2013-04-23  Doug Rupp  <rupp@adacore.com>
4844         * init.c (GNAT$STOP) [VMS]: New function.
4846 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
4848         * sem_ch3.adb: Add exp_pakd to context.
4849         (Constrain_Component_Type): If the component of the parent is
4850         packed, and the record subtype being built is already frozen,
4851         as is the case for an itype, the component type itself will not
4852         be frozen, and the packed array type for it must be constructed
4853         explicitly.
4855 2013-04-23  Thomas Quinot  <quinot@adacore.com>
4857         * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram.
4859 2013-04-23  Yannick Moy  <moy@adacore.com>
4861         * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero
4862         at declaration.
4863         * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration.
4864         * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration.
4865         * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration.
4866         * stylesw.adb (Save_Style_Check_Options): Protect testing the
4867         value of Style_Check_Comments_Spacing by a previous test that
4868         Style_Check_Comments is True.
4870 2013-04-23  Thomas Quinot  <quinot@adacore.com>
4872         * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to
4873         Original_Name, and move declaration to package body as this
4874         subprogram is not used from outside. Also clarify documentation.
4876 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
4878         * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with
4879         initialize_scalars, disable predicate checks on the generated
4880         assignment to an out scalar parameter.
4882 2013-04-23  Gary Dismukes  <dismukes@adacore.com>
4884         * sem_ch4.adb (Analyze_Allocator): Remove error
4885         check for "constrained in partial view" constraints entirely.
4887 2013-04-23  Robert Dewar  <dewar@adacore.com>
4889         * einfo.ads, sem_prag.ads: Minor reformatting.
4890         * errout.ads: Comment update.
4892 2013-04-23  Yannick Moy  <moy@adacore.com>
4894         * exp_ch5.adb: Minor typo.
4896 2013-04-23  Thomas Quinot  <quinot@adacore.com>
4898         * gnat_ugn.texi: Fix typo.
4900 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
4902         * einfo.ads: Minor documentation clarification.
4904 2013-04-23  Bob Duff  <duff@adacore.com>
4906         * types.ads: Fix incorrect comment.
4908 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
4910         * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
4911         Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
4912         description of purpose.
4913         * checks.adb (Apply_Discriminant_Check): Use above renaming.
4914         * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
4915         of the base type, rather than using the Object_Type predicate.
4916         * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
4917         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
4918         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
4919         * exp_ch4.adb (Expand_N_Allocator): Ditto.
4921 2013-04-23  Robert Dewar  <dewar@adacore.com>
4923         * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather
4924         than Assertion.
4925         * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec
4926         (Effective_Name): New function (Analyze_Pragma, case Check):
4927         Disallow [Statement_]Assertions (Check_Kind): Implement
4928         Statement_Assertions (Check_Applicable_Policy): Use Effective_Name
4929         (Is_Valid_Assertion_Kind): Allow Statement_Assertions.
4930         * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body
4931         (Effective_Name): New function.
4932         * sem_res.adb: Minor reformatting.
4933         * snames.ads-tmpl (Name_Statement_Assertions): New entry.
4934         * gnat_rm.texi: Add documentation of new assertion kind
4935         Statement_Assertions.
4937 2013-04-23  Robert Dewar  <dewar@adacore.com>
4939         * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor
4940         reformatting and code clean up.
4942 2013-04-23  Vincent Celier  <celier@adacore.com>
4944         * prj-part.ads, prj-conf.ads: Minor comment updates.
4946 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
4948         * einfo.adb (Predicate_Function): For a private type, retrieve
4949         predicate function from full view.
4950         * aspects.adb (Find_Aspect): Ditto.
4951         * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and
4952         the actual is a definite type, apply predicate check after call.
4953         * sem_res.adb: Do not apply a predicate check before the call to
4954         a generated Init_Proc.
4956 2013-04-23  Robert Dewar  <dewar@adacore.com>
4958         * sem_ch13.adb (Analyze_Aspect_Specifications): Significant
4959         rewrite to make sure Is_Ignore is properly captured when aspect
4960         is declared.
4961         * sem_ch6.adb: Minor reformatting.
4962         * sem_prag.adb (Analyze_Pragma): Do not test policy at time of
4963         pragma for the case of a pragma coming from an aspect (already
4964         tested when we analyzed the aspect).
4966 2013-04-23  Vincent Celier  <celier@adacore.com>
4968         * prj-conf.adb (Parse_Project_And_Apply_Config): New
4969         Boolean parameter Implicit_Project, defaulted to False. Call
4970         Prj.Part.Parse with Implicit_Project.
4971         * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean
4972         parameter Implicit_Project, defaulted to False.
4973         * prj-part.adb (Parse_Single_Project): New Boolean parameter
4974         Implicit_Project, defaulted to False. When Implicit_Project is
4975         True, change the Directory of the project node to the Current_Dir.
4976         * prj-part.ads (Parse): New Boolean parameter, defaulted to False
4978 2013-04-23  Robert Dewar  <dewar@adacore.com>
4980         * exp_util.adb: Minor reformatting.
4982 2013-04-23  Robert Dewar  <dewar@adacore.com>
4984         * xoscons.adb: Minor reformatting.
4986 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
4988         * sem_prag.adb (Check_Mode): Ensure that a
4989         self-referential output appears in both input and output lists of
4990         the subprogram as categorized by aspect Global.
4991         (Check_Usage): Rename formal parameters to better illustrate their
4992         function. Update all uses of the said formals.
4994 2013-04-23  Thomas Quinot  <quinot@adacore.com>
4996         * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New
4997         parameter Append_NUL to make NUL-termination optional.
4998         * exp_dist.adb: Consistently use the above throughout instead of
4999         Get_Library_Unit_Name_String.
5001 2013-04-23  Robert Dewar  <dewar@adacore.com>
5003         * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor
5004         reformatting.
5006 2013-04-23  Pascal Obry  <obry@adacore.com>
5008         * xoscons.adb: Remove unused use clause, minor code clean-up.
5010 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
5012         * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function
5013         (can apply to any scope entity).
5014         * sem_res.adb (Resolve_Call):  If the call is within another
5015         expression function it does not constitute a freeze point.
5017 2013-04-23  Yannick Moy  <moy@adacore.com>
5019         * exp_ch6.adb (Expand_Actuals): Test that Subp
5020         is overloadable before testing if it's an inherited operation.
5022 2013-04-23  Robert Dewar  <dewar@adacore.com>
5024         * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor
5025         reformatting.
5027 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
5029         * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch.
5030         * exp_util.adb (Expand_Subtype_From_Expr): If the expression
5031         is a source entity and the declaration is for an aliased
5032         unconstrained array, create a new subtype so that the flag
5033         Is_Constr_Subt_For_UN_Aliased does not pollute other entities.
5035 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
5037         * aspects.adb: Move tables Base_Aspect and Inherited_Aspect
5038         from the spec to the body.
5039         (Find_Aspect): Update the call to Get_Aspect_Id.
5040         (Get_Aspect_Id): New version that takes an aspect specification.
5041         * aspects.ads: Reorganize all aspect related tables.
5042         (Get_Aspect_Id): New version that takes an aspect specification.
5043         * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id.
5044         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update
5045         the call to Get_Aspect_Id.
5046         * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the
5047         call to Get_Aspect_Id.  (Analyze_Aspect_Specifications): Update
5048         the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect.
5050 2013-04-23  Robert Dewar  <dewar@adacore.com>
5052         * sem_prag.adb (Fix_Error): Rewrite to do more accurate job
5053         of getting proper name in the case where pragma comes from
5054         aspect.
5055         * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting.
5057 2013-04-23  Yannick Moy  <moy@adacore.com>
5059         * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on
5060         applicable policy.
5062 2013-04-23  Thomas Quinot  <quinot@adacore.com>
5064         * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization.
5066 2013-04-23  Doug Rupp  <rupp@adacore.com>
5068         * init.c: Move facility macros outside IN_RTS.
5070 2013-04-23  Thomas Quinot  <quinot@adacore.com>
5072         * freeze.adb (Freeze_Entity): For the case of a bit-packed
5073         array time that is known at compile time to have more that
5074         Integer'Last+1 elements, issue an error, since such arrays are
5075         not supported.
5077 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
5079         * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to
5080         Analyze_Input_Output.
5081         (Analyze_Input_List): Update all calls to Analyze_Input_Output.
5082         (Analyze_Input_Output): Add formal parameter Self_Ref along with
5083         comment on its usage. Update all calls to Analyze_Input_Output.
5084         (Analyze_Pragma): Add new local variable Self_Ref to capture
5085         the presence of a self-referential dependency clause. Update
5086         all calls to Analyze_Input_Output.
5087         (Check_Mode): Add formal parameter Self_Ref along with comment on its
5088         usage. Verify the legality of a self-referential output.
5090 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
5092         * exp_ch6.adb: Add predicate checks on by-copy parameter.
5094 2013-04-23  Vincent Celier  <celier@adacore.com>
5096         * a-envvar.adb, a-envvar.ads (Value): New.
5098 2013-04-22  Yannick Moy  <moy@adacore.com>
5100         * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as
5101         null statement if ignored.
5102         * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored.
5103         * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas.
5105 2013-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
5107         * sem_prag.adb (Analyze_Contract_Case): New routine.
5108         (Analyze_Pragma): Aspect/pragma Contract_Cases can
5109         now be associated with a library level subprogram.
5110         Add circuitry to detect illegal uses of aspect/pragma Contract_Cases
5111         in a subprogram body.
5112         (Chain_Contract_Cases): Rename formal parameter Subp_Decl to
5113         Subp_Id. Remove local constant Subp. The entity of the subprogram
5114         is now obtained via the formal paramter.
5116 2013-04-22  Ed Schonberg  <schonberg@adacore.com>
5118         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
5119         Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression,
5120         if the expression is a source entity.
5122 2013-04-22  Yannick Moy  <moy@adacore.com>
5124         * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in
5125         comments.
5126         * sem_ch6.adb (Expand_Contract_Cases): Add location to message.
5128 2013-04-22  Thomas Quinot  <quinot@adacore.com>
5130         * sem_prag.adb (Fix_Error): For a pragma rewritten from another
5131         pragma, fix up error message to include original pragma name.
5132         * par_sco.adb: Minor reformatting.
5134 2013-04-22  Robert Dewar  <dewar@adacore.com>
5136         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb,
5137         sem_ch6.adb, opt.ads: Minor reformatting.
5139 2013-04-22  Pascal Obry  <obry@adacore.com>
5141         * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for
5142         Library_Standalone and Library_Kind.
5144 2013-04-22  Ed Schonberg  <schonberg@adacore.com>
5146         * exp_ch6.adb (Expand_Actuals): If the call is to an
5147         inherited operation and the actual is a by-reference type with
5148         predicates, add predicate call to post-call actions.
5149         * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding
5150         error: a type declaration has a defining identifier, not an Etype.
5151         * sem_res.adb: Restore code removed because of above error.
5153 2013-04-22  Doug Rupp  <rupp@adacore.com>
5155         * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT.
5157 2013-04-22  Yannick Moy  <moy@adacore.com>
5159         * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb,
5160         opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc.
5162 2013-04-22  Vincent Celier  <celier@adacore.com>
5164         * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to
5165         No_Path_Information only when Directories_Must_Exist_In_Projects
5166         is False.
5167         (Get_Directories): Set Object_Directory
5168         or Exec_Directory to No_Path_Information only when
5169         Directories_Must_Exist_In_Projects is False.
5171 2013-04-22  Yannick Moy  <moy@adacore.com>
5173         * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb,
5174         snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to
5175         Pragma_Contract_Case and Name_Contract_Case.
5177 2013-04-22  Yannick Moy  <moy@adacore.com>
5179         * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to
5180         Contract_Case.
5181         * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by
5182         description of Contract_Cases.
5184 2013-04-12  Robert Dewar  <dewar@adacore.com>
5186         * makeutl.adb, prj-nmsc.adb: Minor reformatting.
5188 2013-04-12  Robert Dewar  <dewar@adacore.com>
5190         * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead
5191         of Check_Enabled.
5192         * gnat_rm.texi (Check_Policy): Update documentation for new
5193         Check_Policy syntax.
5194         * sem_prag.adb (Check_Kind): Replaces Check_Enabled
5195         (Analyze_Pragma, case Check_Policy): Rework to accomodate new
5196         syntax (like Assertion_Policy).
5197         * sem_prag.ads (Check_Kind): Replaces Check_Enabled.
5199 2013-04-12  Doug Rupp  <rupp@adacore.com>
5201         * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros.
5202         (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user
5203         handler if installed.
5204         * ctrl_c.c (__gnat_install_int_handler)
5205         [VMS]: Install a dummy sigaction handler to trigger the real
5206         user handler dispatch in init.c/__gnat_handle_vms_condition.
5207         (__gnat_uninstall_int_handler) [VMS]: Likewise.
5209 2013-04-12  Vincent Celier  <celier@adacore.com>
5211         * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects
5212         to False if switch is specified.
5213         * makeutl.adb (Initialize_Source_Record): Do not look for the
5214         object file if there is no object directory.
5215         * opt.ads (Directories_Must_Exist_In_Projects): New Boolean
5216         variable, defaulted to True.
5217         * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library
5218         directory does not exist when Directories_Must_Exist_In_Projects is
5219         False.
5220         (Get_Directories): Do not fail when the object or the exec directory
5221         do not exist when Directories_Must_Exist_In_Projects is False.
5223 2013-04-12  Robert Dewar  <dewar@adacore.com>
5225         * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In).
5226         * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb,
5227         sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb,
5228         par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb,
5229         sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb,
5230         exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb,
5231         prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5232         sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb,
5233         sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In).
5235 2013-04-12  Doug Rupp  <rupp@adacore.com>
5237         * init.c: Don't clobber condition code on VMS.
5239 2013-04-12  Robert Dewar  <dewar@adacore.com>
5241         * exp_aggr.adb: Minor reformatting.
5242         * namet.ads, namet.adb (Nam_In): New functions.
5244 2013-04-12  Robert Dewar  <dewar@adacore.com>
5246         * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag.
5247         (Has_Static_Predicate_Aspect): New flag.
5248         * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag.
5249         (Has_Static_Predicate_Aspect): New flag.
5250         * exp_ch9.adb: Minor reformatting.
5251         * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles
5252         synonyms.
5253         * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled,
5254         since this switch is gone and control of Debug is done with
5255         Assertions_Enabled.
5256         * gnat_rm.texi: Update documentation for Assertion_Policy and
5257         Check_Policy pragmas.
5258         * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed
5259         (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
5260         controlled by Assertion_Enabled.
5261         * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed
5262         (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
5263         controlled by Assertion_Enabled.
5264         * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new
5265         'Class forms.
5266         * sem_attr.adb: Minor reformatting.
5267         * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect
5268         if DISABLE policy applies.
5269         * sem_ch6.adb (Grab_PPC): Check original name of aspect for
5270         aspect from pragma (Process_PPCs): Properly check assertion policy.
5271         * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy
5272         (Check_Appicable_Policy): New procedure.
5273         (Is_Valid_Assertion_Kind): New function.
5274         (Rewrite_Assertion_Kind): New procedure.
5275         (Analyze_Pragma): Handle case of disabled assertion pragma.
5276         (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012.
5277         (Analyze_Pragma, case Check): Deal with 'Class possibilities.
5278         (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities.
5279         (Analyze_Pragma, case Contract_Class): New handling of ignored pragma.
5280         (Analyze_Pragma, case Debug): New control with Assertion_Policy.
5281         (Analyze_Pragma, case Debug_Policy): Now consistent with
5282         Assertion_Policy.
5283         (Analyze_Pragma, case Loop_Invariant): New handling of ignored
5284         pragma.
5285         (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma.
5286         (Analyze_Pragma, case Precondition): Use proper name for Check pragma.
5287         (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff.
5288         * sem_prag.ads (Check_Enabled): Rewritten for new
5289         Assertion_Policy stuff.
5290         (Check_Appicable_Policy): New procedure.
5291         * sinfo.adb (Is_Disabled): New flag.
5292         (Is_Ignored): New flag.
5293         * sinfo.ads (Is_Disabled): New flag.
5294         (Is_Ignored): New flag.
5295         (N_Pragma_Argument_Association): New 'Class forms.
5296         * snames.ads-tmpl: New names Name_uPre, Name_uPost,
5297         Name_uType_Invariant, Name_uInvariant.
5298         * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata.
5299         * tree_io.ads (ASIS_Version_Number): Updated (remove
5300         read write of obsolete flags Debug_Pragmas_Disabled and
5301         Debug_Pragmas_Enabled.
5303 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5305         * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary
5306         of Build_Record_Aggr_Code, used to retrieve explicit values
5307         for inherited discriminants in an extension aggregate, when the
5308         ancestor type is unconstrained.
5310 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5312         * sem_attr.adb (Check_Stream_Attribute): If restriction
5313         No_Default_Stream_Attributes is active, it is illegal to use a
5314         predefined elementary type stream attribute either by itself,
5315         or more importantly as part of the attribute subprogram for a
5316         composite type. However, if the broader restriction No_Streams
5317         is active, then stream operations are not generated, and there
5318         is no error.
5320 2013-04-12  Robert Dewar  <dewar@adacore.com>
5322         * gnatbind.adb: Minor reformatting.
5324 2013-04-12  Bob Duff  <duff@adacore.com>
5326         * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
5327         call only in the static elaboration model.
5329 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5331         * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
5332         clause where both input and output lists are null.
5333         (Analyze_Pragma): Update the grammar of pragma Depends.
5335 2013-04-12  Vincent Celier  <celier@adacore.com>
5337         * gnatbind.adb (No_Restriction_List): Exclude restrictions that
5338         take a parameter value, not a count.
5339         * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure.
5340         * projects.texi: Complete documentation of attribute Roots.
5342 2013-04-12  Thomas Quinot  <quinot@adacore.com>
5344         * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb,
5345         sem_ch3.adb: Minor reformatting.
5346         * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation
5347         improvement: note that the computation is pessimistic for bit
5348         packed arrays.
5349         * gnat_rm.texi (Range_Length): Fix minor error in description
5350         of attribute.
5352 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5354         * aspects.adb (Find_Aspect): New routine.
5355         (Find_Value_Of_Aspect): New routine.
5356         (Has_Aspect): Reimplemented.
5357         * aspects.ads (Find_Aspect): New routine.
5358         (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect.
5359         * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect.
5360         * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect.
5361         * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect.
5362         * sem_ch5.adb (Analyze_Iterator_Specification): Update
5363         the call to Find_Aspect. Use function Has_Aspect for better
5364         readability.
5365         (Preanalyze_Range): Use function Has_Aspect for better readability.
5366         * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect.
5367         * sem_prag.adb (Analyze_Pragma): There is no longer need to
5368         look at the parent to extract the corresponding pragma for
5369         aspect Global.
5371 2013-04-12  Robert Dewar  <dewar@adacore.com>
5373         * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb,
5374         restrict.ads: Minor reformatting.
5376 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5378         * lib-xref.adb: Retrieve original name of classwide type if any.
5380 2013-04-12  Thomas Quinot  <quinot@adacore.com>
5382         * exp_ch11.ads: Minor reformatting.
5384 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5386         * aspects.adb: Alphabetize subprogram bodies in this unit. Add
5387         an entry for Aspect_Ghost in the table of canonical aspects.
5388         (Has_Aspect): New routine.
5389         * aspects.ads: Add Aspect_Ghost to all relevant
5390         tables. Alphabetize subprograms in this unit.
5391         (Has_Aspect): New routine.
5392         * einfo.adb: Add with and use clauses for Aspects.
5393         (Is_Ghost_Function): New routine.
5394         * einfo.ads: Add new synthesized attribute Is_Ghost_Function and
5395         update the structure of the related nodes.
5396         (Is_Ghost_Function): New routine.
5397         * exp_ch4.adb (Find_Enclosing_Context): Use routine
5398         Is_Body_Or_Package_Declaration to terminate a search.
5399         (Is_Body_Or_Unit): Removed.
5400         * exp_util.adb (Within_Case_Or_If_Expression): Use routine
5401         Is_Body_Or_Package_Declaration to terminate a search.
5402         * par-prag.adb: Add pragma Ghost to the list of pragmas that do
5403         not need special processing by the parser.
5404         * sem_attr.adb (Analyze_Access_Attribute): Detect an
5405         illegal use of 'Access where the prefix is a ghost function.
5406         (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration
5407         to terminate a search.  (Check_References_In_Prefix): Use routine
5408         Is_Body_Or_Package_Declaration to terminate a search.
5409         * sem_ch4.adb (Analyze_Call): Mark a function when it appears
5410         inside an assertion expression.  Verify the legality of a call
5411         to a ghost function.
5412         (Check_Ghost_Function_Call): New routine.
5413         * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move
5414         the setting of attribute In_Assertion_Expression to Analyze_Call.
5415         (Check_Overriding_Indicator): Detect an illegal attempt to
5416         override a function with a ghost function.
5417         * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of
5418         a ghost function as a generic actual.
5419         * sem_elab.adb (Check_Internal_Call_Continue): Update the call
5420         to In_Assertion.
5421         * sem_prag.adb: Add an entry for pragma Ghost in the table
5422         of significant arguments.
5423         (Analyze_Pragma): Do not analyze
5424         an "others" case guard. Add processing for pragma Ghost. Use
5425         Preanalyze_Assert_Expression when analyzing the expression of
5426         pragmas Loop_Invariant and Loop_Variant.
5427         * sem_util.adb (Get_Subprogram_Entity): Reimplemented.
5428         (Is_Body_Or_Package_Declaration): New routine.
5429         * sem_util.ads: Alphabetize subprotrams in this unit.
5430         (Is_Body_Or_Package_Declaration): New routine.
5431         * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression.
5432         (Set_In_Assertion): Rename to Set_In_Assertion_Expression.
5433         * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression
5434         to better reflect its use.  Update all places that mention the flag.
5435         (In_Assertion): Rename to In_Assertion_Expression. Update
5436         related pragma Inline.  (Set_In_Assertion): Rename to
5437         Set_In_Assertion_Expression. Update related pragma Inline.
5438         * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma
5439         id Pragma_Ghost.
5441 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
5443         * sem_prag.adb (Set_Imported): Do not generate error for multiple
5444         Import in CodePeer mode.
5445         * s-rident.ads: Fix minor typo.
5447 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5449         * checks.adb (Insert_Valid_Check): Do not insert validity check
5450         in the body of the generated predicate function, to prevent
5451         infinite recursion.
5453 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5455         * s-rident.ads: Add various missing Ada 2012 restrictions:
5456         No_Access_Parameter_Allocators, No_Coextensions,
5457         No_Use_Of_Attribute, No_Use_Of_Pragma.
5458         * snames.ads-tmpl: Add corresponding names.
5459         * restrict.ads restrict.adb: Subprograms and data structures to
5460         handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma.
5461         * sem_ch4.adb: Correct name of restrictions is
5462         No_Standard_Allocators_After_Elaboration.
5463         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
5464         violation of restriction No_Use_Of_Attribute.
5465         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
5466         Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute.
5467         (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma.
5468         * sem_res.adb: Check restrictions No_Access_Parameter_Allocators
5469         and No_Coextensions.
5470         * bcheck.adb: Correct name of restrictions is
5471         No_Standard_Allocators_After_Elaboration.
5472         * gnatbind.adb: Correct name of restrictions is
5473         No_Standard_Allocators_After_Elaboration.
5475 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5477         * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
5478         Correct error message format.
5480 2013-04-12  Robert Dewar  <dewar@adacore.com>
5482         * sem_attr.adb: Minor reformatting.
5484 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5486         * sem_elab.adb (Within_Elaborate_All): Do not examine a context
5487         item that has not been analyzed, because the unit may have errors,
5488         or the context item may come from a proper unit inserted at the
5489         point of a stub and not analyzed yet.
5491 2013-04-12  Thomas Quinot  <quinot@adacore.com>
5493         * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
5494         List_Record_Info): Also include scalar storage order information in
5495         output.
5497 2013-04-12  Yannick Moy  <moy@adacore.com>
5499         * sem_ch6.adb (Process_Contract_Cases): Update code to apply to
5500         Contract_Cases instead of Contract_Case pragma.
5502 2013-04-12  Robert Dewar  <dewar@adacore.com>
5504         * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting.
5506 2013-04-12  Yannick Moy  <moy@adacore.com>
5508         * sem_attr.adb (Analyze_Attribute): Update analyse of
5509         Attribute_Old and Attribute_Result so they are allowed in the
5510         right-hand-side of an association in a Contract_Cases pragma.
5511         * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of
5512         the expressions in a Contract_Cases pragma.
5514 2013-04-12  Robert Dewar  <dewar@adacore.com>
5516         * sem.ads, opt.ads: Minor comment edits.
5517         * sem_warn.adb, sem_ch6.adb: Minor reformatting.
5519 2013-04-12  Claire Dross  <dross@adacore.com>
5521         * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate,
5522         Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed,
5523         not suitable for formal analysis.
5525 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5527         * sem_prag.adb (Analyze_Abstract_State): Use Defining entity
5528         to locate package entity, which may be a child unit.
5530 2013-04-12  Thomas Quinot  <quinot@adacore.com>
5532         * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If
5533         the specified timeout is 0, do not attempt to determine whether the
5534         connection succeeded.
5536 2013-04-12  Doug Rupp  <rupp@adacore.com>
5538         * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos.
5540 2013-04-12  Doug Rupp  <rupp@adacore.com>
5542         * s-fileio.adb: Minor reformatting.
5544 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
5546         * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if
5547         the last statement in the analyzed loop is an unconditional
5548         exit statement.
5550 2013-04-12  Robert Dewar  <dewar@adacore.com>
5552         * opt.ads (Style_Check_Main): New switch.
5553         * sem.adb (Semantics): Set Style_Check flag properly for new
5554         unit to be analyzed.
5555         * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check,
5556         the proper setting of this flag is now part of the Semantics
5557         procedure.
5558         * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main
5559         for -gnatg and -gnaty
5561 2013-04-12  Doug Rupp  <rupp@adacore.com>
5563         * s-crtl.ads (fopen, freopen): Add vms_form parameter
5564         * i-cstrea.ads (fopen, freopen): Likewise.
5565         * adaint.h (__gnat_fopen, __gnat_freopen): Likewise.
5566         * adaint.c (__gnat_fopen, __gnat_freopen): Likewise.
5567         [VMS]: Split out RMS keys and call CRTL function appropriately.
5568         * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New
5569         subprograms.
5570         (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with
5571         vms_form
5572         * gnat_rm.texi: Document implemented RMS keys.
5574 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5576         * sem_ch13.adb (Analyze_Aspect_Specifications):
5577         Insert the corresponding pragma for aspect Abstract_State at
5578         the top of the visible declarations of the related package.
5579         Previously this was only done when the package is a compilation
5580         unit.
5582 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
5584         * gnat_ugn.texi: Further menu clean ups.
5585         * sem_prag.adb, opt.ads: Minor reformatting.
5586         * sem_util.ads: Minor comment fix.
5588 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
5590         * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
5591         Depends is now a delayed aspect. The delay is required
5592         due to the interplay between aspects Depends and Global.
5593         (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
5594         * sem_prag.adb: Reformat various error messages.
5595         (Add_Item): New subsidiary routine.
5596         (Analyze_Pragma): Add new variables
5597         Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
5598         analysis of pragma Depends now has the capability to check
5599         the proper mode and usage of subprogram inputs and outputs.
5600         (Appears_In): New routine.
5601         (Check_Function_Return): New routine.
5602         (Check_Mode): New routine.
5603         (Check_Usage): New routine.
5604         (Collect_Subprogram_Inputs_Outputs): New routine.
5606 2013-04-12  Bob Duff  <duff@adacore.com>
5608         * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope
5609         stack entry.
5611 2013-04-12  Robert Dewar  <dewar@adacore.com>
5613         * switch-c.adb: Minor fix to wording of error message for
5614         -gnatet/eT.
5616 2013-04-12  Robert Dewar  <dewar@adacore.com>
5618         * impunit.adb: Add s-multip and s-mudido to list of impl defined
5619         system units.
5620         * gnat_rm.texi: Add documentation for
5621         System.Multiprocessors[.Dispatching_Domains].
5623 2013-04-12  Ben Brosgol  <brosgol@adacore.com>
5625         * gnat_ugn.texi: Completion of menu cleanups.
5627 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
5629         * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules
5630         in Relaxed_RM_Semantics.
5632 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
5634         * set_targ.adb (elab code): Add support for non gcc back-ends
5635         where save_argv is null.
5637 2013-04-12  Robert Dewar  <dewar@adacore.com>
5639         * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name.
5640         * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access
5641         type (Target_Dependent_Info_Write): Add _Name, now an access type.
5642         * set_targ.adb (Write_Target_Dependent_Values): Use name
5643         from -gnatet switch stored in Target_Dependent_Info_Write_Name
5644         (Read_Target_Dependent_Values): Use name from -gnateT switch
5645         stored in Target_Dependent_Info_Read_Name.
5646         * switch-c.adb: New form of -gnatet and -gnateT switches.
5647         * usage.adb: New form of -gnatet and -gnateT switches with
5648         file name.
5650 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5652         * gcc-interface/decl.c (elaborate_expression_1): Skip only constant
5653         arithmetics when looking for a read-only variable in the expression.
5655 2013-04-11  Javier Miranda  <miranda@adacore.com>
5657         * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in
5658         interface thunks since it is performed at the caller side.
5659         (Expand_Simple_Function_Return): No accessibility check needed in thunks
5660         since the check is done by the target routine.
5662 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
5664         * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze
5665         expression with type Any_Priority.
5666         * exp_ch9.adb (Initialize_Protection): Check that the value
5667         of the priority expression is within the bounds of the proper
5668         priority type.
5670 2013-04-11  Robert Dewar  <dewar@adacore.com>
5672         * sem_prag.adb, prj-env.adb: Minor reformatting.
5674 2013-04-11  Ben Brosgol  <brosgol@adacore.com>
5676         * gnat_ugn.texi: Clean ups.
5678 2013-04-11  Yannick Moy  <moy@adacore.com>
5680         * set_targ.adb: Minor comment update.
5682 2013-04-11  Pascal Obry  <obry@adacore.com>
5684         * gnat_ugn.texi: Remove obsolete comment about DLL calling
5685         convention.
5687 2013-04-11  Javier Miranda  <miranda@adacore.com>
5689         * exp_ch6.adb (Expand_Call): For the call to the target primitive
5690         of an interface thunks do not compute the extra actuals; just
5691         propagate the extra actuals received by the thunk.
5692         * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute
5693         Thunk_Entity.
5694         * sem_ch6.adb (Create_Extra_Formals): Do not generate extra
5695         formals in interface thunks whose target primitive has no extra
5696         formals.
5698 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
5700         * sem_prag.adb (Analyze_Pragma): Detect
5701         a renaming by looking at the Renamed_Object attribute.
5702         (Is_Renaming): Removed.
5704 2013-04-11  Vincent Celier  <celier@adacore.com>
5706         * prj-env.adb (Initialize_Default_Project_Path): Take
5707         into account a project path file, specified by environment
5708         variable GPR_PROJECT_PATH_FILE, before taking into account
5709         GPR_PROJECT_PATH.
5710         * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE
5712 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
5714         * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
5715         a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
5716         a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb,
5717         a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads,
5718         a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb,
5719         a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb,
5720         a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb,
5721         a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads:
5722         Move Iterator operations from body to private part of spec.
5724 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5726         * ttypes.ads, get_targ.ads: More minor rewording of comments.
5728 2013-04-11  Johannes Kanig  <kanig@adacore.com>
5730         * debug.adb: Document use of switch -gnatd.Z.
5732 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
5734         * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now
5735         support renamings of entire objects. Legal renamings are replaced by
5736         the object they rename.
5737         (Is_Renaming): New routine.
5739 2013-04-11  Yannick Moy  <moy@adacore.com>
5741         * set_targ.adb, opt.ads: Minor changes in comments.
5743 2013-04-11  Ben Brosgol  <brosgol@adacore.com>
5745         * gnat_ugn.texi: Minor clean ups.
5747 2013-04-11  Robert Dewar  <dewar@adacore.com>
5749         * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging
5750         function p from Nlists to Treepr.
5752 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
5754         * sem_disp.adb (Check_Dispatching_Context): If the context is
5755         a contract for a null procedure defer error reporting until
5756         postcondition body is created.
5757         * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a
5758         null procedure, complete the analysis of its contracts so that
5759         calls within classwide conditions are properly rewritten as
5760         dispatching calls.
5762 2013-04-11  Thomas Quinot  <quinot@adacore.com>
5764         * sem_ch10.adb, sem_ch12.adb: Minor reformatting.
5766 2013-04-11  Robert Dewar  <dewar@adacore.com>
5768         * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting.
5770 2013-04-11  Robert Dewar  <dewar@adacore.com>
5772         * atree.adb, atree.ads (Node31): New function.
5773         (Set_Node31): New procedure.
5775 2013-04-11  Robert Dewar  <dewar@adacore.com>
5777         * errout.ads: Minor typo correction.
5779 2013-04-11  Javier Miranda  <miranda@adacore.com>
5781         * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute.
5783 2013-04-11  Robert Dewar  <dewar@adacore.com>
5785         * back_end.adb (Register_Back_End_Types): Moved to Get_Targ
5786         * back_end.ads (C_String): Moved to Get_Targ
5787         (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types):
5788         Moved to Get_Targ.
5789         * cstand.adb (Register_Float_Type): New interface
5790         (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table.
5791         * get_targ.adb (Register_Back_End_Types): Moved here from
5792         Back_End.
5793         * get_targ.ads (C_String): Moved here from Back_End
5794         (Register_Type_Proc): Moved here from Back_End
5795         (Register_Back_End_Types): here from Back_End.
5796         * gnat1drv.adb (GGnat11drv): Add call to
5797         Write_Target_Dependent_Values;
5798         * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing
5799         obsolete target dependent info.
5800         * opt.ads (Generate_Target_Dependent_Info):
5801         Removed (Target_Dependent_Info_Read): New flag
5802         (Target_Dependent_Info_Write): New flag
5803         * output.adb: Minor comment change
5804         * s-os_lib.ads: Minor reformatting
5805         * set_targ.ads, set_targ.adb: Minor reformatting.
5806         * switch-c.adb (Scan_Switches.First_Ptr): New variable
5807         (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first
5808         (Scan_Front_End_Switches): Handle -gnatet, -gnateT
5809         * ttypes.ads: Remove documentation section on target dependent
5810         info in ali file Remove four letter codes, no longer used Instead
5811         of using Get_Targ.Get_xxx, we use Set_Targ.xxx
5812         * usage.adb: Add usage lines for -gnatet/-gnateT
5813         * gcc-interface/Make-lang.in: Update dependencies.
5815 2013-04-11  Thomas Quinot  <quinot@adacore.com>
5817         * sem_ch4.adb: Update documentation.
5818         * sinfo.ads (N_Expression_With_Actions): Ditto.
5820 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
5822         * sem_ch13.adb (Analyze_Aspect_Specifications):
5823         Add a guard to prevent the double insertion of the same aspect
5824         into a rep item list. This previously led to a circularity.
5826 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
5828         * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute
5829         reference if the prefix is the dereference of an anonymous access
5830         to subprogram type.
5831         * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle
5832         properly a reference to the current instance of a protected type
5833         from within a protected subprogram.
5834         * sem_res.adb (Find_Unique_Access_Type): Treat
5835         Attribute_Access_Type like Allocator_Type when resolving an
5836         equality operator.
5838 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
5840         * xgnatugn.adb: Remove obsolete comments.
5842 2013-04-11  Robert Dewar  <dewar@adacore.com>
5844         * back_end.ads, back_end.adb: Minor reformatting.
5845         * set_targ.ads, set_targ.adb: New files.
5847 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
5849         * sem_case.adb (Check_Against_Predicate): New routine.
5850         (Check_Choices): When the type covered by the list of choices
5851         is a static subtype with a static predicate, check all choices
5852         agains the predicate.
5853         (Issue_Msg): All versions removed.
5854         (Missing_Choice): New routines.
5855         * sem_ch4.adb: Code and comment reformatting.
5856         (Analyze_Case_Expression): Do not check the choices when the case
5857         expression is being preanalyzed and the type of the expression
5858         is a subtype with a static predicate.
5859         (Has_Static_Predicate): New routine.
5860         * sem_ch13.adb: Code and comment reformatting.  (Build_Range):
5861         Always build a range even if the low and hi bounds denote the
5862         same value. This is needed by the machinery in Check_Choices.
5863         (Build_Static_Predicate): Always build a range even if the low and
5864         hi bounds denote the same value. This is needed by the machinery
5865         in Check_Choices.
5867 2013-04-11  Robert Dewar  <dewar@adacore.com>
5869         * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor
5870         reformatting.
5872 2013-04-11  Doug Rupp  <rupp@adacore.com>
5874         * gnatlink.adb: Fold program basename to lower case on VMS for
5875         consistency.
5877 2013-04-11  Matthew Heaney  <heaney@adacore.com>
5879         * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before
5880         entering loop.
5882 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
5884         * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear).
5886 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
5888         * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly
5889         needed, and seems to confuse some versions of makeinfo.
5891 2013-04-11  Javier Miranda  <miranda@adacore.com>
5893         * einfo.adb (Is_Thunk): Remove assertion.
5894         (Set_Is_Thunk): Add assertion.
5895         * einfo.ads (Is_Thunk): Complete documentation.
5896         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup.
5897         * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util
5898         (Is_Variable_Size_Record): Moved to sem_util
5899         * exp_ch6.adb (Expand_Call): Code cleanup.
5900         (Expand_N_Extended_Return_Statement): Code cleanup.
5901         (Expand_Simple_Function_Return): Code cleanup.
5902         * exp_disp.adb Remove dependency on exp_ch3
5903         (Expand_Interface_Thunk): Add minimum decoration needed to set
5904         attribute Is_Thunk.
5905         * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util
5906         * sem_util.ad[sb] (Is_Constant_Bound): Moved from
5907         sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3
5908         (Is_Variable_Size_Record): Moved from exp_ch3
5910 2013-04-11  Javier Miranda  <miranda@adacore.com>
5912         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do
5913         not add cleanup actions in thunks associated with interface types.
5914         * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to
5915         the package spec.
5916         * exp_ch4.adb (Tagged_Conversion): Update call to
5917         Expand_Interface_Conversion since the parameter Is_Static is no
5918         longer needed.
5919         * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding
5920         assertion to ensure that interface thunks are never handled by
5921         this routine.
5922         (Expand_N_Simple_Function_Return): Do not rewrite this statement
5923         as an extended return statement in interface thunks, and do not
5924         perform copy in the secondary stack if the return statement is
5925         located in a thunk.
5926         * exp_disp.adb (Expand_Dispatching_Call): No longer displace
5927         the pointer to the returned object in functions returning interface
5928         types.
5929         (Expand_Interface_Thunk): For functions returning interface types
5930         displace the pointer to the returned object.
5931         (Expand_Interface_Conversion): Remove formal
5932         Is_Static since this subprogram can now evaluate it locally.
5933         * sem_ch3.adb (Add_Internal_Interface_Entities): For functions
5934         propagate the type returned by the covered interface primitive to
5935         the internal interface entity. Needed by the thunk to generate
5936         the code which displaces "this" to reference the corresponding
5937         secondary dispatch table.
5938         * sem_disp.adb (Propagate_Tag): Update call to
5939         Expand_Interface_Conversion since the parameter Is_Static is no
5940         longer needed.
5941         * sem_res.adb (Resolve_Type_Conversion): Update calls to
5942         Expand_Interface_Conversion since the parameter Is_Static is no
5943         longer needed plus code cleanup.
5945 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5947         * init.c (RETURN_ADDR_OFFSET): Delete as unused.
5949 2013-04-11  Robert Dewar  <dewar@adacore.com>
5951         * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb,
5952         a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting.
5954 2013-04-11  Yannick Moy  <moy@adacore.com>
5956         * exp_ch4.adb (Expand_N_Selected_Component): Do not expand
5957         discriminant check for Unchecked_Union.
5958         * sem_res.adb (Resolve_Selected_Component): Set flag
5959         Do_Discriminant_Check even when expansion is not performed.
5960         * sinfo.ads (Do_Discriminant_Check): Update documentation for the case
5961         of Unchecked_Union.
5963 2013-04-11  Thomas Quinot  <quinot@adacore.com>
5965         * sem_ch13.adb (Same_Representation): Two types with different scalar
5966         storage order never have the same representation.
5968 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
5970         * xgnatugn.adb (Push_Conditional): Simplify handling,
5971         no longer need to keep track of "excluding" sections.
5972         (Currently_Excluding): Removed.
5973         (Process_Source_File):
5974         Set unw/vms flag so that texinfo can do the whole handling of
5975         @ifset/@ifclear sections.  Fix handling of nested @ifset/@ifclear
5976         sections.
5977         * gnat_ugn.texi: Add a section on performing unassisted install
5978         on Windows.
5980 2013-04-11  Johannes Kanig  <kanig@adacore.com>
5982         * debug.adb: Document usage of -gnatd.Q switch.
5984 2013-04-11  Matthew Heaney  <heaney@adacore.com>
5986         * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks
5987         before element comparisons.
5988         (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
5989         Ditto.
5990         * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before
5991         element comparisons.
5992         * a-rbtgso.adb (Difference, Intersection): Adjust locks
5993         before element comparisons.
5994         (Is_Subset, Overlap): Ditto
5995         (Symmetric_Difference, Union): Ditto
5996         * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks
5997         before element comparisons.
5998         (Set_Subset, Set_Overlap): Ditto
5999         (Set_Symmetric_Difference, Set_Union): Ditto
6000         * a-coorse.adb, a-ciorse.adb, a-cborse.adb
6001         (Update_Element_Preserving_Key): Adjust locks before element
6002         comparisons (Replace_Element): Ditto
6004 2013-04-11  Pascal Obry  <obry@adacore.com>
6006         * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves
6007         attribute.
6009 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6011         * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of
6012         Expand_N_Object_Declaration, used to construct an aggregate
6013         with static components whenever possible, so that objects of a
6014         discriminated type can be initialized without calling the init.
6015         proc for the type.
6017 2013-04-11  Vincent Celier  <celier@adacore.com>
6019         * prj-makr.adb (Process_Directory): On VMS, always delete,
6020         then recreate the temporary file with Create_Output_Text_File,
6021         otherwise the output redirection does not work properly.
6023 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6025         * urealp.ads: Fix minor typo.
6027 2013-04-11  Fabien Chouteau  <chouteau@adacore.com>
6029         * cio.c (mktemp): Don't use tmpnam function from the
6030         system on VxWorks in kernel mode.
6032 2013-04-11  Vincent Celier  <celier@adacore.com>
6034         * make.adb (Compile): Clarify the error message reported
6035         when gnatmake refuses to compile a runtime source.
6036         (Start_Compile_If_Possible): Ditto.
6038 2013-04-11  Vincent Celier  <celier@adacore.com>
6040         * gnat_ugn.texi: Add documentation about -gnatc and gnatmake.
6042 2013-04-11  Vincent Celier  <celier@adacore.com>
6044         * switch-c.adb: Document internal switches.
6045         * usage.adb: Remove lines for internal switches: -gnatea, -gnateO,
6046         -gnatez and -gnateO.
6048 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6050         * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub.
6051         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on
6052         subprogram stubs.
6053         * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated
6054         pre/post pragmas at once before analyzing the proper body.
6055         * sem_prag.adb (Chain_PPC): Handle pragma that comes from an
6056         aspect on a subprogram stub.
6057         * aspects.adb: Aspect specifications can appear on a
6058         subprogram_Body_Stub.
6060 2013-04-11  Vincent Celier  <celier@adacore.com>
6062         * gnatname.adb: Minor comment fix.
6064 2013-04-11  Vincent Celier  <celier@adacore.com>
6066         * prj-makr.adb (Process_Directory): Create a new temporary
6067         file for each invocation of the compiler, in directory pointed
6068         by environment variable TMPDIR if it exists.
6070 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6072         * gnat_ugn.texi: Minor editing/clean ups.
6074 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6076         * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly
6077         extracted from Analyze_Subprogram_Declaration, to handle null
6078         procedure declarations that in ada 2012 can be completions of
6079         previous declarations.
6081 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
6083         * sem_prag.adb (Entity_Of): Moved to Exp_Util.
6084         * exp_util.ads, exp_util.adb (Entity_Of): New routine.
6086 2013-04-11  Robert Dewar  <dewar@adacore.com>
6088         * g-spipat.ads: Minor comment fix.
6090 2013-04-11  Robert Dewar  <dewar@adacore.com>
6092         * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor
6093         reformatting.
6095 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6097         * exp_util.ads (Fully_Qualified_Name_String): Document that the
6098         constructed literal is the entity name in all upper case.
6100 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6102         * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of
6103         check for implementation defined identifiers.
6105 2013-04-11  Yannick Moy  <moy@adacore.com>
6107         * checks.adb (Apply_Type_Conversion_Checks): Add an explanation
6108         of why range check and length are put on different nodes.
6109         * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks
6110         when doing their expansion.
6112 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6114         * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor):
6115         New function to implement the notion introduced in RM 7.3.1
6116         (5.2/3): in a child unit, a derived type is within the derivation
6117         class of an ancestor declared in a parent unit, even if there
6118         is an intermediate derivation that does not see the full view
6119         of that ancestor.
6120         * sem_res.adb (Valid_Conversion): if all else fails, examine if an
6121         incomplete view of an ancestor makes a numeric conversion legal.
6123 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6125         * sem_ch6.adb: in Ada2012 operators can only have in
6126         parameters.
6128 2013-04-11  Vincent Celier  <celier@adacore.com>
6130         * makeutl.adb (Create_Binder_Mapping_File): Do not put into
6131         the mapping file ALI files of sources that have been replaced.
6133 2013-04-11  Vincent Celier  <celier@adacore.com>
6135         * projects.texi: Add subsection Duplicate Sources in Projects.
6137 2013-04-11  Vincent Celier  <celier@adacore.com>
6139         * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/**
6141 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6143         * init.c (__gnat_install_handler): Only set up an alternate
6144         stack when installing a signal handler for SIGSEGV.
6146 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6148         * g-socket.adb (Connect_Socket, timeout version): Call
6149         underlying connect operation directly, not through the 2-argument
6150         Connect_Socket thick binding, in order to avoid raising a junk
6151         exception for the EINPROGRESS return.
6153 2013-04-11  Robert Dewar  <dewar@adacore.com>
6155         * a-cdlili.adb: Minor addition of pragma Warnings (Off).
6157 2013-04-11  Robert Dewar  <dewar@adacore.com>
6159         * hostparm.ads: Minor reformatting.
6161 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
6163         * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant
6164         tables.
6165         * elists.ads, elists.adb (Contains): New routine.
6166         * par-prag.adb: Pragma Depends does not need any special treatment
6167         by the parser.
6168         * sem_ch13.adb (Analyze_Aspect_Specifications):
6169         Transform aspect Depends into a corresponding pragma.
6170         (Check_Aspect_At_Freeze_Point): Aspect Depends does not need
6171         inspection at its freeze point.
6172         * sem_prag.adb (Analyze_Pragma): Perform analysis and
6173         normalization of pragma Depends. Remove the use of function
6174         Is_Duplicate_Item. Use End_Scope to uninstalle the formal
6175         parameters of a subprogram. Add a value for pragma Depends in
6176         table Sig_Flags.
6177         (Is_Duplicate_Item): Removed.
6178         * snames.ads-tmpl: Add predefined name for Depends as well as
6179         a pragma identifier.
6181 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6183         * gnat1drv.adb: Minor code clean up.
6185 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6187         * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause):
6188         Ignore enumeration rep clauses by default in CodePeer mode, unless
6189         -gnatd.I is specified.
6191 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6193         * sem_util.adb (Safe_To_Capture_Value): If the node belongs to
6194         an expression that has been attached to the else_actions of an
6195         if-expression, the capture is not safe.
6197 2013-04-11  Yannick Moy  <moy@adacore.com>
6199         * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type
6200         conversion for arrays.
6202 2013-04-11  Robert Dewar  <dewar@adacore.com>
6204         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
6206 2013-04-11  Johannes Kanig  <kanig@adacore.com>
6208         * adabkend.adb: Minor comment addition.
6210 2013-04-11  Matthew Heaney  <heaney@adacore.com>
6212         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment
6213         lock counts before entering loop.
6214         (Find): Ditto.
6215         (Is_Sorted, Merge, Sort): Ditto.
6216         (Reverse_Find): Ditto.
6217         (Splice_Internal): Internal operation to refactor splicing logic.
6218         (Splice): Some logic moved into Splice_Internal.
6220 2013-04-11  Johannes Kanig  <kanig@adacore.com>
6222         * adabkend.adb (Scan_Compiler_Arguments): Do not call
6223         Set_Output_Object_File_Name in Alfa_Mode
6224         * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account.
6225         * opt.ads: Fix documentation.
6227 2013-04-11  Robert Dewar  <dewar@adacore.com>
6229         * sem_res.adb: Minor code reorganization and comment fixes.
6230         * sem_type.adb: Minor reformatting.
6232 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
6234         * exp_ch4.adb (Process_Transient_Object): Add new
6235         local variable Fin_Call. Remove and explain ??? comment. Use the
6236         Actions of logical operators "and then" and "or else" to insert
6237         the generated finalization call.
6239 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6241         * gnat_rm.texi: Fix typo.
6243 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6245         * sem_res.adb: Minor reformatting.
6247 2013-04-11  Robert Dewar  <dewar@adacore.com>
6249         * atree.h: Add declarations for Flag255-Flag289 Fix declaration
6250         of Field30 (was wrong, but no effect, since not yet referenced by
6251         back end) Add declarations for Field31-Field35 Add declarations
6252         for Node31-Node35.
6253         * einfo.ads, einfo.adb (Has_Invariants): No longer applies to
6254         procedures.
6255         (Has_Predicates): No longer applies to functions.
6256         (Is_Predicate_Function): New flag.
6257         (Is_Predicate_Function_M): New flag.
6258         (Is_Invariant_Procedure): New flag.
6259         (Predicate_Function_M): New function.
6260         (Set_Predicate_Function_M): New procedure.
6261         * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special
6262         case of appearing in predicate used for membership test.
6263         * exp_ch3.adb (Insert_Component_Invariant_Checks): Set
6264         Is_Invariant_Procedure flag.
6265         * exp_ch4.adb (Expand_Op_In): Call special predicate function
6266         that takes care of raise_expression nodes in the predicate.
6267         * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for
6268         membership case.
6269         * sem_ch13.adb (Build_Predicate_Functions): New name for
6270         Build_Predicate_Function.  Major rewrite to take care of raise
6271         expression in predicate for membership tests.
6272         * sem_res.adb (Resolve_Actuals): Include both predicate functions
6273         in defense against infinite predicate function loops.
6274         * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag.
6276 2013-04-11  Robert Dewar  <dewar@adacore.com>
6278         * sem_prag.adb: Minor reformatting.
6280 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6282         * lib-xref.adb: Generate reference for component of anonymous
6283         access type.
6285 2013-04-11  Robert Dewar  <dewar@adacore.com>
6287         * stand.ads: Minor reformatting.
6289 2013-04-11  Matthew Heaney  <heaney@adacore.com>
6291         * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock
6292         counts before entering loop.
6293         (Find, Find_Index): Ditto.
6294         (Is_Sorted, Merge, Sort): Ditto.
6295         (Reverse_Find, Reverse_Find_Index): Ditto.
6297 2013-04-11  Robert Dewar  <dewar@adacore.com>
6299         * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure.
6300         * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression.
6301         * expander.adb: Add call to Expand_N_Raise_Expression.
6302         * par-ch11.adb (P_Raise_Expression): New procedure.
6303         * par-ch4.adb (P_Relation): Handle Raise_Expression.
6304         * par.adb (P_Raise_Expression): New procedure.
6305         * sem.adb: Add handling for N_Raise_Expression.
6306         * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure.
6307         * sem_res.adb (Resolve): Add handling for N_Raise_Expression.
6308         * sinfo.ads, sinfo.adb (N_Raise_Expression): New node.
6309         * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression.
6310         * stand.ads (Any_Type): Document use with N_Raise_Expression.
6312 2013-04-11  Vincent Celier  <celier@adacore.com>
6314         * gnat_ugn.texi: Remove section "The Development Environments"
6315         now that all predefined attributes are documented, including
6316         those in package IDE.
6318 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6320         * sem_ch6.adb: Preserve parent link in copy of expression.
6322 2013-04-11  Vincent Celier  <celier@adacore.com>
6324         * projects.texi: Complete rewrite of the subsection Attributes
6325         in section "Project file Reference".
6327 2013-04-11  Robert Dewar  <dewar@adacore.com>
6329         * exp_ch4.adb: Minor reformatting.
6331 2013-04-11  Robert Dewar  <dewar@adacore.com>
6333         * exp_ch4.adb (Expand_Concatenate): Remove wrapping in
6334         expression-with-actions node. No longer needed given fix to
6335         sem_prag and caused loss of some useful warnings.
6336         * sem.ads: Minor reformatting.
6337         * sem_prag.adb (Check_Disabled): Removed, to be replaced by not
6338         Check_Enabled. These two routines were curiously incompatible
6339         causing confusion.
6340         (Analyze_Pragma, case Check): Make sure we do
6341         not expand the string argument if the check is disabled. Avoid
6342         use of Check_Disabled, which resulted in missing analysis in
6343         some cases.
6344         * sem_prag.ads (Check_Disabled): Removed, to be replaced by not
6345         Check_Enabled. These two routines were curiously incompatible
6346         causing confusion.
6348 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
6350         * exp_ch4.adb (Process_Transient_Object): Use
6351         an unchecked conversion when associating a transient controlled
6352         object with its "hook".
6354 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6356         * sem_prag.adb (Analyze_Pragma, case
6357         Preelaborable_Initialization): The pragma is legal if it comes
6358         from an aspect on the private view of the type, even though its
6359         analysis point takes place later at the freeze point.
6361 2013-04-11  Robert Dewar  <dewar@adacore.com>
6363         * sem_ch6.adb: Minor reformatting.
6365 2013-04-11  Yannick Moy  <moy@adacore.com>
6367         * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to
6368         read ALI files with No_Object=True in Alfa mode.
6369         * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether
6370         this is during frame condition generation of translation to Why.
6372 2013-04-11  Robert Dewar  <dewar@adacore.com>
6374         * exp_ch4.adb: Minor code reorganization
6375         * types.ads: Minor reformatting.
6377 2013-04-11  Johannes Kanig  <kanig@adacore.com>
6379         * opt.ads New global boolean Frame_Condition_Mode to avoid
6380         referring to command line switch.
6381         * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G
6382         is present, and disable Code generation in that case. Disable
6383         ALI file generation when switch is *not* present.
6385 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6387         * sem_ch6.adb (Analyze_Expression_Function): Perform the
6388         pre-analysis on a copy of the expression, to prevent downstream
6389         visbility issues involving operators and instantiations.
6391 2013-04-11  Johannes Kanig  <kanig@adacore.com>
6393         * debug.adb: Reservation and documentation for -gnatd.G switch.
6394         * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G
6395         switch, and set ALI file generation accordingly.
6397 2013-04-11  Robert Dewar  <dewar@adacore.com>
6399         * exp_ch4.adb, exp_dist.adb: Minor reformatting.
6400         * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
6401         check names introduced with pragma Check_Name are suppressed by -gnatp.
6403 2013-04-11  Vincent Celier  <celier@adacore.com>
6405         * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
6406         Files" from projects.texi to gnat_ugn.texi.
6408 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6410         * gcc-interface/Make-lang.in: Update dependencies.
6412 2013-04-11  Yannick Moy  <moy@adacore.com>
6414         * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa
6415         mode.
6417 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
6419         * exp_ch4.adb (Expand_N_Allocator): Detect the
6420         allocation of an anonymous controlled object where the type of
6421         the context is named. Use the pool and finalization master of
6422         the named access type to allocate the object.
6424 2013-04-11  Vincent Celier  <celier@adacore.com>
6426         * gnat_ugn.texi: Remove most mentions of gprbuild.
6427         * projects.texi: Remove all mentions of asociative array
6428         attributes.
6430 2013-04-11  Robert Dewar  <dewar@adacore.com>
6432         * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb,
6433         opt.ads, sem_ch13.adb: Minor reformatting.
6434         * debug.adb: Minor comment fix (remove junk .I doc).
6436 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6438         * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case
6439         PolyORB): Bump to 6.
6440         (Exp_Dist.PolyORB_Support): Replace TC_Build with
6441         Build_Complex_TC.
6443 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6445         * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb,
6446         exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag.
6447         Enable this flag in CodePeer mode, and also via -gnatd.M.
6448         Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics.
6450 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6452         * sem_ch8.adb (Check_Constrained_Object): If a subtype is created
6453         from the renamed object in an object renaming declaration with
6454         an unconstrained nominal subtype, freeze the created subtype at
6455         once, to prevent order of elaboration issues in the backend.
6457 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
6459         * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size
6460         in particular in CodePeer mode.
6462 2013-04-11  Vincent Celier  <celier@adacore.com>
6464         * gnat_ugn.texi: Add documentation for backup copies of project
6465         files for gnatname.
6467 2013-04-11  Tristan Gingold  <gingold@adacore.com>
6469         * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile
6470         pragma list.
6472 2013-04-11  Vincent Celier  <celier@adacore.com>
6474         * gnatname.adb (Scan_Args): Recognize new switch --no-backup
6475         (Usage): Add line for --no-backup.
6476         * opt.ads (No_Backup): New Boolean variable, initialized to False.
6477         (Ada_Version_Default): Switch to Ada 2012 by default.
6478         * prj-makr.adb (Initialize): Create a backup for an existing
6479         project file if gnatname is not invoked with --no-backup.
6481 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6483         * exp_ch4.adb: Minor code improvement: replace various calls to
6484         Make_If_Statement in expansion with Make_Implicit_If_Statement.
6486 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6488         * ali.adb: Fix minor typo.
6490 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6492         * exp_ch4.adb (Find_Enclosing_Context): Add missing case of
6493         N_Procedure_Call_Statement.
6495 2013-04-11  Robert Dewar  <dewar@adacore.com>
6497         * debug.adb: Minor comment fix.
6499 2013-04-11  Johannes Kanig  <kanig@adacore.com>
6501         * debug.adb: Remove comment for -gnatd.G.
6503 2013-04-11  Thomas Quinot  <quinot@adacore.com>
6505         * exp_ch4.adb (Expand_Record_Equality.Suitable_Element):
6506         Remove recursive routine, replace with...
6507         (Expand_Record_Equality.Element_To_Compare): New subroutine,
6508         implement iterative search for next element to compare.
6509         Add explanatory comment in the tagged case.
6511 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6513         * sem_ch5.adb: remove spurious warning from non-empty loop.
6514         * sem_ch8.adb (Enclosing_Instance): Make public to other routines
6515         in the package, in order to suppress redundant semantic checks
6516         on subprogram renamings in nested instantiations.
6518 2013-04-11  Robert Dewar  <dewar@adacore.com>
6520         * errout.ads: Minor reformatting.
6521         * sem_eval.adb (Why_Not_Static): Now issues continuation messages
6522         (Why_Not_Static): Test for aggregates behind string literals.
6523         * sem_eval.ads (Why_Not_Static): Now issues continuation messages.
6525 2013-04-11  Robert Dewar  <dewar@adacore.com>
6527         * exp_ch4.adb (Expand_Concatenation): Wrap expansion in
6528         Expressions_With_Actions.
6530 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
6532         * sem_ch6.adb (Base_Types_Match): For an actual type in an
6533         instance, the base type may itself be a subtype, so find true
6534         base type to determine compatibility.
6536 2013-04-11  Robert Dewar  <dewar@adacore.com>
6538         * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb.
6539         makeutl.adb, sem_ch8.adb: Minor reformatting.
6541 2013-04-11  Vincent Celier  <celier@adacore.com>
6543         * gnat_ugn.texi: Minor fixes for VMS.
6544         * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?.
6546 2013-04-11  Robert Dewar  <dewar@adacore.com>
6548         * usage.adb (Usage): Minor edit to -gnatW message
6550 2013-04-11  Robert Dewar  <dewar@adacore.com>
6552         * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling
6553         others for string literal case. Also add big ??? comment about
6554         this new code, which should be redundant, but is not.
6555         * sem_eval.adb (Eval_Concatenation): Handle non-static case
6556         properly (Eval_String_Literal): Handle non-static literal properly
6558 2013-03-20  Tobias Burnus  <burnus@net-b.de>
6560         * i-fortra.ads: Update comment, add Ada 2012's optional
6561         Star and Kind data types for enhanced interoperability.
6563 2013-03-16  Eric Botcazou  <ebotcazou@adacore.com>
6565         * gnatvsn.ads (Library_Version): Bump to 4.9.
6567 2013-03-08  Cesar Strauss  <cestrauss@gmail.com>
6569         PR ada/52123
6570         * seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
6571         (__gnat_SEH_error_handler): Likewise.  Remove final return.
6573 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
6575         * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
6576         out for an unimplemented attribute.
6578 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
6580         * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around
6581         a misaligned integral type if a size is specified for the field.
6583 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
6585         * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>:
6586         Record the unpadded type of the index type on the RCI stack.
6588 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
6590         * gcc-interface/trans.c (emit_range_check): Assert that the range type
6591         is a numerical type and remove useless local variables.
6593 2013-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6595         * gcc-interface/ada-tree.h: Back out change accidentally committed.
6597 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
6599         PR bootstrap/56258
6600         * gnat-style.texi (@title): Remove @hfill.
6601         * projects.texi: Avoid line wrapping inside of @pxref or @xref.
6603 2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>
6605         PR target/52123
6606         * tracebak.c: Cast from pointer via FARPROC.
6608 2013-02-07  Simon Wright  <simon@pushface.org>
6610         PR target/50678
6611         * init.c (__darwin_major_version): New function for x86-64/Darwin.
6612         (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
6613         on Darwin 12 and above.
6615 2013-02-06  Rainer Emrich  <rainer@emrich-ebersheim.de>
6617         PR target/52123
6618         * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
6619         SECURITY_DESCRIPTOR *
6620         (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE
6621         (__gnat_portable_spawn): Fix cast to char* const*
6622         (add_handle): Cast from pointer via void **
6623         (add_handle): Cast from pointer via int *
6624         (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *
6625         (__gnat_locate_exec_on_path): Cast from pointer via char *
6626         * initialize.c (append_arg): Cast from pointer via LPWSTR
6627         (__gnat_initialize): Cast from pointer via LPWSTR
6628         * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC
6630 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6632         * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations
6633         target pairs on VxWorks 5 only.
6635 2013-02-06  Arnaud Charlet  <charlet@adacore.com>
6637         * gcc-interface/Make-lang.in: Update dependencies.
6639 2013-02-06  Vincent Celier  <celier@adacore.com>
6641         * prj-proc.adb (Process_Aggregated_Projects): Use a new project
6642         node tree for each project tree rooted at an aggregated project.
6644 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6646         * sem_util.adb (Is_Interface_Conversion): New routine.
6647         (Object_Access_Level): Detect an interface conversion
6648         that has been rewritten into a different construct. Use the
6649         original form of the conversion to find the access level of
6650         the operand.
6652 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
6654         * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201.
6655         (Has_Pragma_No_Inline): Declare and mark as inline.
6656         (Set_Has_Pragma_No_Inline): Likewise.
6657         * einfo.adb (Has_Pragma_No_Inline): New function.
6658         (Set_Has_Pragma_No_Inline): New procedure.
6659         (Write_Entity_Flags): Handle Has_Pragma_No_Inline.
6660         * snames.ads-tmpl (Name_No_Inline): New pragma-related name.
6661         (Pragma_Id): Add Pragma_No_Inline value.
6662         * par-prag.adb (Prag): Handle Pragma_Inline.
6663         * sem_prag.adb (Inline_Status): New enumeration type.
6664         (Process_Inline): Change Active parameter
6665         to Inline_Status and add support for suppressed inlining.
6666         (Analyze_Pragma) <Pragma_Inline>: Adjust to above change.
6667         <Pragma_Inline_Always>: Likewise.
6668          <Pragma_No_Inline>: Implement new pragma No_Inline.
6669         (Sig_Flags): Add Pragma_No_Inline.
6670         * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline.
6671         * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline.
6673 2013-02-06  Pascal Obry  <obry@adacore.com>
6675         * s-osprim-mingw.adb (Clock): Make sure we copy all data locally
6676         to avoid interleaved modifications that could happen from another
6677         task calling Get_Base_Data.
6678         (Get_Base_Data): Make it a critical section. Avoid updating if another
6679         task has already done it.
6681 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
6683         * sem_prag.adb: Minor reformatting.
6685 2013-02-06  Pascal Obry  <obry@adacore.com>
6687         * s-tasloc.ads: Set System.Task_Lock to preelaborate.
6689 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
6691         * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll,
6692         Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related
6693         names.
6694         (Pragma_Id): Add Pragma_Loop_Optimize value.
6695         * par-prag.adb (Prag): Handle Pragma_Loop_Optimize.
6696         * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to...
6697         (Check_Loop_Pragma_Placement): ...this.
6698         (Analyze_Pragma)
6699         <Pragma_Loop_Invariant>: Adjust to above renaming.
6700         <Loop_Variant>: Likewise.
6701          <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize.
6702         (Sig_Flags): Add Pragma_Loop_Optimize.
6703         * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize.
6704         * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize.
6706 2013-02-06  Robert Dewar  <dewar@adacore.com>
6708         * osint.ads: Minor fix of typo.
6710 2013-02-06  Sergey Rybin  <rybin@adacore.com frybin>
6712         * gnat_ugn.texi: gnatmetric: update the documentation of
6713         complexity metrics for Ada 2012.
6715 2013-02-06  Javier Miranda  <miranda@adacore.com>
6717         * exp_disp.adb (Make_Secondary_DT): Code cleanup:
6718         remove useless initialization.
6720 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6722         * sem_ch3.adb (Build_Discriminant_Constraints): Do not
6723         generate overflow checks on a discriminant expression if the
6724         discriminant constraint is applied to a private type that has
6725         a full view, because the check will be applied when the full
6726         view is elaborated.  Removing the redundant check is not just
6727         an optimization, but it prevents spurious assembler errors,
6728         because of the way the backend generates names for expressions
6729         that require overflow checking.
6731 2013-02-06  Pascal Obry  <obry@adacore.com>
6733         * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker
6734         limitation on Windows.
6735         (DA): Removed.
6736         (LIA): Removed.
6737         (LLIA): Removed.
6738         (TFA): Removed.
6739         (BTA): Removed.
6740         (BMTA): Removed.
6741         (BCA): Removed.
6742         (BMCA): Removed.
6743         (BTiA): Removed.
6744         (Clock): Use variable corresponding to access.
6745         (Get_Base_Time): Likewise.
6746         (Monotonic_Clock): Likewise.
6748 2013-02-06  Vincent Celier  <celier@adacore.com>
6750         * make.adb (Gnatmake): When gnatmake is called with a project
6751         file, do not invoke gnatbind with -I-.
6752         * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get
6753         the infos from all the sources.
6755 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6757         * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma
6758         Overriding_Renamings.
6759         * par-prag.adb: Recognize pragma Overriding_Renamings.
6760         * opt.ads (Overriding_Renamings): flag to control compatibility
6761         mode with Rational compiler, replaces Rational_Profile flag.
6762         * sem_ch8.adb (Analyze_Subprogram_Renaming): When
6763         Overriding_Renamings is enabled, accept renaming declarations
6764         where the new subprogram renames and overrides a locally inherited
6765         operation. Improve error message for some illegal renamings.
6766         * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings.
6767         (Set_Rational_Profile): The Rational_Profile enables
6768         Overriding_Renamings, Implicit_Packing, and Use_Vads_Size.
6770 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6772         * sem_util.adb: Set parent of copied aggregate component, to
6773         prevent infinite loop.
6775 2013-02-06  Robert Dewar  <dewar@adacore.com>
6777         * sem_ch3.adb, sem_ch10.adb: Minor reformatting.
6778         * exp_disp.adb: Minor comment update.
6779         * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of
6780         No_Return pragmas.
6782 2013-02-06  Thomas Quinot  <quinot@adacore.com>
6784         * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target
6785         parameter, defaulted to False for now, indicates targets where
6786         non-default scalar storage order may be specified.
6788 2013-02-06  Thomas Quinot  <quinot@adacore.com>
6790         * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private
6791         same as E_Record_Subtype.  Display E_Class_Wide_Subtype as
6792         subtype, not type.
6794 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6796         * sem_ch3.adb (Complete_Private_Subtype): Inherit the
6797         Has_Unknown_Discriminants from the full view of the base type.
6799 2013-02-06  Tristan Gingold  <gingold@adacore.com>
6801         * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
6802         Enclosing debugging functions within #ifndef inhibit_libc to
6803         support builds without full C headers.
6805 2013-02-06  Thomas Quinot  <quinot@adacore.com>
6807         * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
6809 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6811         * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
6812         check to detect a parent-child relationship between two units in
6813         order to correctly bypass the installation of a limited view. In
6814         other words, the comment on the intended usage of the check was
6815         correct, but the code itself did not reflect the behavior.
6817 2013-02-06  Javier Miranda  <miranda@adacore.com>
6819         * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the
6820         runtime check on assignment to tagged types if compiling with checks
6821         suppressed.
6823 2013-02-06  Robert Dewar  <dewar@adacore.com>
6825         * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb,
6826         s-os_lib.adb: Minor reformatting
6828 2013-02-06  Vincent Celier  <celier@adacore.com>
6830         * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS.
6832 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6834         * snames.ads-tmpl: Add Name_Rational and pragma Rational.
6835         * par-prag.adb: Recognize pragma Rational.
6836         * opt.ads (Rational_Profile): flag to control compatibility mode
6837         with Rational compiler.
6838         * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile
6839         is enable, accept renaming declarations where the new subprogram
6840         and the renamed entity have the same name.
6841         * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize
6842         Rational as a profile.
6844 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6846         * exp_ch5.adb (Expand_Loop_Entry_Attributes): When
6847         dealing with a for loop that iterates over a subtype indication
6848         with a range, use the low and high bounds of the subtype.
6850 2013-02-06  Nicolas Roche  <roche@adacore.com>
6852         * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should
6853         be quoted
6855 2013-02-06  Vincent Celier  <celier@adacore.com>
6857         * prj-conf.adb (Process_Project_And_Apply_Config): New variable
6858         Conf_Project.  New recursive procedure Check_Project to find a non
6859         aggregate project and put its Project_Id in Conf_Project. Fails if
6860         no such project can be found.
6861         (Get_Or_Create_Configuration_File): New parameter Conf_Project.
6862          (Do_Autoconf): Use project directory of project Conf_Project to store
6863         the generated configuration project file.
6864         * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter
6865         Conf_Project.
6867 2013-02-06  Javier Miranda  <miranda@adacore.com>
6869         * sem_res.adb (Resolve_Actuals): Generate a read
6870         reference for out-mode parameters in the cases specified by
6871         RM 6.4.1(12).
6873 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6875         * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of
6876         Loop_Entry, instead wait until the attribute has been expanded. The
6877         delay ensures that any generated checks or temporaries are inserted
6878         before the relocated prefix.
6880 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6882         * sem_ch12.adb: Code clean up.
6884 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6886         * checks.adb (Apply_Discriminant_Check): Look for discriminant
6887         constraint in full view of private type when needed.
6888         * sem_ch12.adb (Validate_Array_Type_Instance): Specialize
6889         previous patch to components types that are private and without
6890         discriminants.
6892 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6894         * exp_ch4.adb (Find_Enclosing_Context): Recognize
6895         a simple return statement as one of the cases that require special
6896         processing with respect to temporary controlled function results.
6897         (Process_Transient_Object): Do attempt to finalize a temporary
6898         controlled function result when the associated context is
6899         a simple return statement.  Instead, leave this task to the
6900         general finalization mechanism.
6902 2013-02-06  Thomas Quinot  <quinot@adacore.com>
6904         * einfo.ads: Minor reformatting.
6905         (Status_Flag_Or_Transient_Decl): Add ??? comment.
6907 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
6909         * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This
6910         routine should be able to properly detect controlled transient
6911         objects in its actions and generate the appropriate finalization
6912         actions.
6913         * exp_ch6.adb (Enclosing_Context): Removed.
6914         (Expand_Ctrl_Function_Call): Remove local subprogram and
6915         constant. Use routine Within_Case_Or_If_Expression to determine
6916         whether the lifetime of the function result must be extended to
6917         match that of the context.
6918         * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New
6919         routine.
6921 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
6923         * sem_ch12.adb (Validate_Array_Type_Instance): Extend check
6924         for subtype matching of component type of formal array type,
6925         to avoid spurious error when component type is a separate actual
6926         in the instance, and there may be a discrepancy between private
6927         and full view of component type.
6929 2013-02-06  Robert Dewar  <dewar@adacore.com>
6931         * s-dim.ads, clean.adb: Minor reformatting.
6933 2013-02-06  Javier Miranda  <miranda@adacore.com>
6935         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch.
6936         (Can_Split_Unconstrained_Function): Only split the inlined function if
6937         the compiler generates the code of its body.
6939 2013-02-06  Robert Dewar  <dewar@adacore.com>
6941         * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb,
6942         exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for
6943         N_Pragma nodes.
6945 2013-02-06  Robert Dewar  <dewar@adacore.com>
6947         * gnat_rm.texi: Minor text updates for pragma Warning.
6949 2013-02-06  Geert Bosch  <bosch@adacore.com>
6951         * s-multip.adb (Number_Of_CPUs): Short-circuit in case of
6952         CPU'Last = 1.
6954 2013-02-06  Vincent Celier  <celier@adacore.com>
6956         * clean.adb (Delete): On VMS use host notation to delete all files.
6958 2013-02-06  Robert Dewar  <dewar@adacore.com>
6960         * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor
6961         reformatting.
6963 2013-02-06  Gary Dismukes  <dismukes@adacore.com>
6965         * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for
6966         the special case of a user-defined equality that overrides
6967         the predefined equality of a nonderived type declared in a
6968         declarative part.
6969         * sem_util.adb (Collect_Primitive_Operations): Add test for
6970         Is_Primitive when looping over the subprograms following a type,
6971         to catch the case of primitives such as a user-defined equality,
6972         which otherwise won't be found when the type is not a derived
6973         type and is declared in a declarative part.
6975 2013-02-06  Vincent Celier  <celier@adacore.com>
6977         * prj-conf.adb (Check_Target): Always return True when Target
6978         is empty (Get_Or_Create_Configuration_File.Get_Project_Target):
6979         New procedure to get the value of attribute Target in the main
6980         project.
6981         (Get_Or_Create_Configuration_File.Do_Autoconf): No
6982         need to get the value of attribute Target in the main project.
6983         (Get_Or_Create_Configuration_File): Call Get_Project_Target and
6984         use the target fom this call.
6986 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
6988         * erroutc.adb (Validate_Specific_Warning): Do not issue the
6989         warning about an ineffective Pragma Warnings for -Wxxx warnings.
6990         * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings.
6991         * gnat_rm.texi (Pragma Warnings): Document coordination with
6992         warnings of the GCC back-end.
6994 2013-02-06  Javier Miranda  <miranda@adacore.com>
6996         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body
6997         of an inlined function if we do not generate code for the function.
6999 2013-02-06  Pascal Obry  <obry@adacore.com>
7001         * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname
7002         with Resolve_Links set to False.
7004 2013-02-03  Eric Botcazou  <ebotcazou@adacore.com>
7006         * gcc-interface/decl.c: Include diagnostic-core.h.
7007         (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
7008         is set on the entity.
7009         <E_Record_Type>: Likewise.
7010         * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
7012 2013-01-29  Ben Brosgol  <brosgol@adacore.com>
7014         * gnat_rm.texi: Fixed typos. Minor edits.
7016 2013-01-29  Bob Duff  <duff@adacore.com>
7018         * a-convec.adb: Minor reformatting.
7020 2013-01-29  Pascal Obry  <obry@adacore.com>
7022         * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp
7023         directory.
7025 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
7027         * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop
7028         identifier only if it comes from source.
7029         (Expand_N_Loop_Statement): If the domain of iteration is an
7030         enumeration type with a representation clause, remove from
7031         visibility the loop identifier before rewriting the loop as a
7032         block with a declaration for said identifier.
7033         * sem_util.adb (Remove_Homonym): Handle properly the default case.
7035 2013-01-29  Vincent Celier  <celier@adacore.com>
7037         * prj-proc.adb: Minor comment spelling fix.
7039 2013-01-29  Pascal Obry  <obry@adacore.com>
7041         * prj-proc.adb (Process_Expression_Variable_Decl): Prepend
7042         Project_Path to current environment.
7044 2013-01-29  Thomas Quinot  <quinot@adacore.com>
7046         * sprint.adb (Sprint_Node_Actual): Output freeze nodes for
7047         itypes even if Dump_Freeze_Null is not set.
7049 2013-01-29  Robert Dewar  <dewar@adacore.com>
7051         * sem_util.adb: Minor reformatting.
7052         * s-rident.ads: Minor comment fixes.
7054 2013-01-29  Pascal Obry  <obry@adacore.com>
7056         * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to
7057         control if the path is prepended or appended.
7059 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
7061         * sem_ch6.adb (Analyze_Expression_Function): An expression
7062         function declaration is not a subprogram declaration, and thus
7063         cannot appear in a protected definition.
7065 2013-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
7067         * exp_util.adb (Insert_Actions): When new
7068         actions come from the expression of the expression with actions,
7069         then they must be added to the list of existing actions.
7071 2013-01-29  Eric Botcazou  <ebotcazou@adacore.com>
7073         * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For
7074         the subtype of a constrained private type with discriminants
7075         that has got a full view, show that the completion is a clone
7076         of the full view.
7078 2013-01-29  Javier Miranda  <miranda@adacore.com>
7080         * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram.
7081         * opt.ads (Warn_On_Overlap): Update documentation.
7082         * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
7083         Check function writable actuals.
7084         * sem_ch3.adb (Build_Derived_Record_Type,
7085         Record_Type_Declaration): Check function writable actuals.
7086         * sem_ch4.adb (Analyze_Range): Check function writable actuals.
7087         * sem_ch5.adb (Analyze_Assignment): Remove code of the initial
7088         implementation of AI05-0144.
7089         * sem_ch6.adb (Analyze_Function_Return,
7090         (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code
7091         of the initial implementation of AI05-0144.
7092         * sem_res.adb (Resolve): Remove code of the initial implementation.
7093         (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call
7094         of the initial implementation.
7095         (Resolve_Arithmetic_Op, Resolve_Logical_Op,
7096         Resolve_Membership_Op): Check function writable actuals.
7097         * sem_util.ad[sb] (Actuals_In_Call): Removed
7098         (Check_Order_Dependence): Removed (Save_Actual): Removed
7099         (Check_Function_Writable_Actuals): New subprogram.
7100         * usage.adb (Usage): Update documentation.
7101         * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when
7102         setting all warnings.
7104 2013-01-29  Robert Dewar  <dewar@adacore.com>
7106         * a-calend-vms.adb: Minor comment fix.
7108 2013-01-29  Robert Dewar  <dewar@adacore.com>
7110         * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash
7111         because of casing issues.
7112         * sem_util.ads: Minor comment fix.
7113         * style.adb (Check_Identifier): Set proper casing for entities
7114         in ASCII.
7115         * styleg.adb: Minor comment improvement.
7116         * stylesw.ads (Style_Check_Standard): Fix bad comments.
7118 2013-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
7120         * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global.
7121         (Analyze_Pragma): Push the scope of the related subprogram and install
7122         its formals once before starting the analysis of the [moded] global
7123         list.
7125 2013-01-29  Pascal Obry  <obry@adacore.com>
7127         * prj-proc.adb (Process_Expression_Variable_Decl): Always handle
7128         relative paths in Project_Path as relative to the aggregate
7129         project location. Note that this was what was documented.
7131 2013-01-29  Vincent Celier  <celier@adacore.com>
7133         * gnatcmd.adb: For "gnat stub -P ...", do not check the naming
7134         scheme for Ada, when Ada is not a language for the project.
7136 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
7138         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
7139         Is_Generic_Actual_Type flag in a nested instance.
7140         * sem_ch12.adb (Restore_Private_Views): Preserve
7141         Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type
7142         of an enclosing instance.
7143         * sem_util.adb (Corresponding_Generic_Type): Handle generic actual
7144         which is an actual of an enclosing instance.
7145         * sem_type.adb (Real_Actual): If a generic_actual_type is the
7146         formal of an enclosing generic and thus renames the corresponding
7147         actual, use the actual of the enclosing instance to resolve
7148         spurious ambiguities in instantiations when two formals are
7149         instantiated with the same actual.
7151 2013-01-29  Robert Dewar  <dewar@adacore.com>
7153         * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as
7154         being available as implementation-defined pragmas in earlier
7155         versions of Ada.
7157 2013-01-29  Vincent Celier  <celier@adacore.com>
7159         * clean.adb (Delete): On VMS, delete all versions of the file.
7161 2013-01-29  Robert Dewar  <dewar@adacore.com>
7163         * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure.
7164         * par-util.adb (No_Constraint): Undo special handling, moved
7165         to par-ch6.adb.
7167 2013-01-29  Robert Dewar  <dewar@adacore.com>
7169         * aspects.ads: Aspect Warnings is implementation defined Add
7170         some other missing entries to impl-defined list Mark Warnings
7171         as GNAT pragma in main list.
7172         * sem_ch8.adb: Process aspects for all cases of renaming
7173         declarations.
7175 2013-01-29  Robert Dewar  <dewar@adacore.com>
7177         * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag.
7178         * sem_elab.adb (Check_Internal_Call_Continue): Do not issue
7179         warnings about possible elaboration error if call is within
7180         an assertion.
7181         * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node.
7183 2013-01-29  Robert Dewar  <dewar@adacore.com>
7185         * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb,
7186         * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb,
7187         s-tasdeb-vms.adb: Replace pragma Interface by pragma Import.
7189 2013-01-29  Robert Dewar  <dewar@adacore.com>
7191         * opt.ads (Ignore_Style_Checks_Pragmas): New flag.
7192         * par-prag.adb (Par, case Style_Checks): Recognize
7193         Ignore_Style_Checks_Pragmas.
7194         * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize
7195         Ignore_Style_Checks_Pragmas.
7196         * switch-c.adb: Recognize -gnateY switch.
7197         * usage.adb: Add documentation for "-gnateY".
7198         * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY).
7200 2013-01-29  Vincent Celier  <celier@adacore.com>
7202         * clean.adb (Clean_Executables): Add Sid component when calling
7203         Queue.Insert.
7204         * make.adb: When inserting in the Queue, add the Source_Id
7205         (Sid) when it is known (Start_Compile_If_Possible): When the
7206         Source_Id is known (Sid), get the path name of the ALI file
7207         (Full_Lib_File) from it, to avoid finding old ALI files in other
7208         object directories.
7209         * makeutl.ads (Source_Info): New Source_Id component Sid in
7210         Format_Gnatmake variant.
7212 2013-01-29  Robert Dewar  <dewar@adacore.com>
7214         * gnat_ugn.texi: Document -gnateY.
7216 2013-01-29  Doug Rupp  <rupp@adacore.com>
7218         * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads,
7219         system-vms-ia64.ads: Replace pragma Interface by pragma Import.
7221 2013-01-29  Robert Dewar  <dewar@adacore.com>
7223         * atree.ads, atree.adb (Node30): New function.
7224         (Set_Node30): New procedure.
7225         (Num_Extension_Nodes): Change to 5 (activate new fields/flags).
7226         * atree.h: Add macros for Field30 and Node30.
7227         * einfo.ads, einfo.adb: Move some fields to avoid duplexing.
7228         * treepr.adb (Print_Entity_Information): Print fields 30-35.
7230 2013-01-29  Robert Dewar  <dewar@adacore.com>
7232         * sem_prag.adb (Analyze_Pragma, case Interface): Consider to
7233         be a violation of No_Obsolescent_Features even in Ada 95. Also
7234         generates a warning in -gnatwj mode.
7235         (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj
7236         mode.
7237         * gnat_ugn.texi: Additional documentation on -gnatwj and pragma
7238         Interface[_Name].
7240 2013-01-29  Vincent Celier  <celier@adacore.com>
7242         * snames.ads-tmpl: Add new standard name Trailing_Switches.
7244 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
7246         * sem_disp.adb (Check_Controlling_Type): If a designated type T
7247         of an anonymous access type is a limited view of a tagged type,
7248         it can be a controlling type only if the subprogram is in the
7249         same scope as T.
7251 2013-01-29  Vincent Celier  <celier@adacore.com>
7253         * gnatcmd.adb: Use the project where the config pragmas file is
7254         declared to get its path.
7256 2013-01-29  Vincent Celier  <celier@adacore.com>
7258         * prj-attr.adb: New attribute Linker'Trailing_Switches.
7260 2013-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7262         * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do
7263         not translate the Etype of the node before translating the Actions.
7265 2013-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7267         * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size
7268         instead of optimize and adjust warning message.
7269         (Compilation_Unit_to_gnu): Process pragmas preceding the unit.
7271 2013-01-22  Tristan Gingold  <gingold@adacore.com>
7273         * gcc-interface/gigi.h (ADT_unhandled_except_decl,
7274         ADT_unhandled_others_decl): New.
7275         (unhandled_others_decl, unhandled_except_decl): Define.
7276         * gcc-interface/trans.c: Include common/common-target.h.
7277         (gigi): Initialize them.
7278         (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main
7279         function in a try/catch clause.
7281 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7283         * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata.
7284         (CHECKING_ADAFLAGS): New.
7285         (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS.
7287 2013-01-10  Eric Botcazou  <ebotcazou@adacore.com>
7289         * gcc-interface/config-lang.in (boot_language_boot_flags): Delete.
7290         * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise.
7292 2013-01-07  Eric Botcazou  <ebotcazou@adacore.com>
7294         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
7295         comment about type extension with discriminants.
7296         <E_Record_Subtype>: Remove useless test and reorder conditions.
7297         (elaborate_entity) <E_Record_Subtype>: Likewise.
7299 2013-01-07  Richard Biener  <rguenther@suse.de>
7301         PR ada/864
7302         * gcc-interface/Make-lang.in (ada.install-common): Always apply
7303         program_transform_name.
7305 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7307         * gnatvsn.ads (Current_Year): Bump to 2013.
7309 2013-01-06  Olivier Hainque  <hainque@adacore.com>
7311         * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized
7312         diagnostic for component size mismatch wrt volatile requirements.
7313         Add a gcc_unreachable() at the end of the checks for size.  Split
7314         the check on volatile for positions into one check on atomic and
7315         a subsequent one on volatile.
7317 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7319         * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete.
7321 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7323         * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
7324         pack the field of the record type made for a misaligned type.
7326 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7328         * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared
7329         for discriminants inherited from parent record types.
7331 2013-01-04  Robert Dewar  <dewar@adacore.com>
7333         * warnsw.adb: Minor fixes to -gnatw.d handling.
7335 2013-01-04  Robert Dewar  <dewar@adacore.com>
7337         * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more
7338         fields.
7340 2013-01-04  Joel Brobecker  <brobecker@adacore.com>
7342         * gnat_ugn.texi: Fix typo.
7344 2013-01-04  Robert Dewar  <dewar@adacore.com>
7346         * gnat_rm.texi: Document alignment choice for subtypes.
7348 2013-01-04  Robert Dewar  <dewar@adacore.com>
7350         * validsw.ads: Minor fix to comment.
7352 2013-01-04  Doug Rupp  <rupp@adacore.com>
7354         * Makefile.rtl (GNATRTL_NONTASKING_OBJS,
7355         GNATRTL_ALTIVEC_OBJS): Factor g-al* objects.
7356         * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources.
7357         (GNATRTL_ALTIVEC_OBJS): Override to null for VMS.
7358         Rename leon vxworks toolchain as leon-wrs-vxworks.
7359         * gcc-interface/Make-lang.in: Update dependencies
7361 2013-01-04  Pascal Obry  <obry@adacore.com>
7363         * prj.ads (For_Each_Source): Add Locally_Removed parameter.
7364         (Source_Iterator): Add Locally_Removed field.
7365         * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed.
7366         (Next): Likewise.
7368 2013-01-04  Robert Dewar  <dewar@adacore.com>
7370         * exp_attr.adb: Minor reformatting.
7372 2013-01-04  Robert Dewar  <dewar@adacore.com>
7374         * checks.adb (Insert_Valid_Check): Fix handling of renamed
7375         packed array element.
7376         * exp_ch4.adb (Expand_Concatenate): Fix some missing parent
7377         fields in generated code.
7378         * exp_util.adb (Side_Effect_Free): Improve detection of cases
7379         needing renaming.
7381 2013-01-04  Robert Dewar  <dewar@adacore.com>
7383         * sinfo.ads: Clean up order of N_xxx subtypes
7385 2013-01-04  Vincent Celier  <celier@adacore.com>
7387         * prj-conf.adb (Check_Target): Allow --autoconf= with no target.
7389 2013-01-04  Robert Dewar  <dewar@adacore.com>
7391         * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting.
7393 2013-01-04  Robert Dewar  <dewar@adacore.com>
7395         * par-ch6.adb (P_Subprogram): Better handling of missing IS
7396         after expression function.
7397         * par-util.adb (No_Constraint): Improve handling to avoid bad warnings.
7399 2013-01-04  Robert Dewar  <dewar@adacore.com>
7401         * exp_util.ads, exp_util.adb (Insert_Actions): In expression with
7402         actions case, new actions are appended to the sequence rather than
7403         prepended.
7405 2013-01-04  Robert Dewar  <dewar@adacore.com>
7407         * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode).
7408         * usage.adb: Add lines for -gnatw.d/w.D switches.
7409         * warnsw.adb: Minor fixes (some missing cases of setting
7410         Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode.
7412 2013-01-04  Robert Dewar  <dewar@adacore.com>
7414         * exp_util.adb (Remove_Side_Effects): Make sure scope suppress
7415         is restored on exit.
7417 2013-01-04  Robert Dewar  <dewar@adacore.com>
7419         * usage.adb: Document -gnateF (check overflow for predefined Float).
7421 2013-01-04  Robert Dewar  <dewar@adacore.com>
7423         * sem_res.adb (Resolve_Type_Conversion): Remove incorrect
7424         prevention of call to Apply_Type_Conversion_Checks, which resulted
7425         in missing check flags in formal mode.
7427 2013-01-04  Vincent Celier  <celier@adacore.com>
7429         * makeutl.ads (Db_Switch_Args): New table used by gprbuild.
7430         * prj-conf.adb (Check_Builder_Switches): Check for switches
7431         --config= (Get_Db_Switches): New procedure to get the --db
7432         switches so that they are used when invoking gprconfig in
7433         auto-configuration.
7434         (Do_Autoconf): When invoking gprconfig, use the --db switches, if any.
7436 2013-01-04  Pascal Obry  <obry@adacore.com>
7438         * prj-nmsc.adb: Minor reformatting.
7440 2013-01-04  Vincent Celier  <celier@adacore.com>
7442         * makeutl.ads (Root_Environment): New variable, moved rom
7443         gprbuild (Load_Standard_Base): New Boolean variable, moved
7444         from gprbuild.
7445         * prj-conf.adb (Check_Builder_Switches): New procedure to check
7446         for switch --RTS in package Builder. If a runtime specified
7447         by --RTS is a relative path name, but not a base name, then
7448         find the path on the Project Search Path.
7449         (Do_Autoconf): Call Check_Builder_Switches.
7450         (Locate_Runtime): New procedure, moved from gprbuild, to get the
7451         absolute paths of runtimes when they are not specified as a base name.
7452         * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild.
7454 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
7456         * sem_ch3.adb (Build_Private_Derived_Type): Set
7457         Has_Private_Ancestor on type derived from an untagged private
7458         type whose full view has discriminants
7459         * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension
7460         aggregate for untagged record type with private ancestor.
7462 2013-01-04  Thomas Quinot  <quinot@adacore.com>
7464         * sem_elab.adb, sem_ch3.adb: Minor reformatting.
7466 2013-01-04  Robert Dewar  <dewar@adacore.com>
7468         * table.adb: Minor reformatting.
7470 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
7472         * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does
7473         not come from source does not generate a warning for redundant
7474         with_clauses.
7476 2013-01-04  Hristian Kirtchev  <kirtchev@adacore.com>
7478         * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables.
7479         * par-prag.adb: Add pragma Global to the list of pragmas that
7480         do not need special processing by the parser.
7481         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
7482         Global into a pragma without any form of legality checks. The
7483         work is done by Analyze_Pragma. The aspect and pragma are both
7484         marked as needing delayed processing.  Insert the corresponding
7485         pragma of aspect Abstract_State in the visible declarations of the
7486         related package.
7487         (Check_Aspect_At_Freeze_Point): Aspect Global
7488         does not need processing even though it is marked as delayed.
7489         Alphabetize the list on aspect names.
7490         * sem_prag.adb: Add a value for pragma Global in table Sig_Flags.
7491         (Analyze_Pragma): Add ??? comment about the grammar of pragma
7492         Abstract_State.  Move the error location from the pragma to the
7493         state to improve the quality of error placement.  Add legality
7494         checks for pragma Global.
7495         * snames.ads-tmpl Add the following specially recognized names
7497 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7499         * sem_ch3.adb: Fix minor typo.
7501 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
7503         * par-ch13.adb (Aspect_Specifications_Present): In Strict mode,
7504         accept an aspect name followed by a comma, indicating a defaulted
7505         boolean aspect.
7507 2013-01-04  Joel Brobecker  <brobecker@adacore.com>
7509         * gnat_ugn.texi: Document procedure to codesign GDB on Darwin.
7510         Update doc on gnattest --separates switch.
7512 2013-01-04  Thomas Quinot  <quinot@adacore.com>
7514         * s-chepoo.ads: Minor reformatting.
7516 2013-01-04  Arnaud Charlet  <charlet@adacore.com>
7518         * usage.adb: Remove mention of -gnatN in usage.
7520 2013-01-04  Robert Dewar  <dewar@adacore.com>
7522         * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb,
7523         freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb,
7524         prj-conf.adb, sem_ch13.adb: Minor reformatting.
7526 2013-01-04  Thomas Quinot  <quinot@adacore.com>
7528         * sinfo.ads: Minor documentation update.
7530 2013-01-04  Thomas Quinot  <quinot@adacore.com>
7532         * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind
7533         before resolving initialization expression.
7535 2013-01-04  Hristian Kirtchev  <kirtchev@adacore.com>
7537         * checks.adb (Generate_Index_Checks): Delay the generation of
7538         the check for an indexed component where the prefix mentions
7539         Loop_Entry until the attribute has been properly expanded.
7540         * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor
7541         decoration of the constant that captures the value of Loop_Entry's
7542         prefix at the entry point into a loop.  Generate index checks
7543         for an attribute reference that has been transformed into an
7544         indexed component.
7546 2013-01-04  Thomas Quinot  <quinot@adacore.com>
7548         * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb,
7549         sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to
7550         do if Obj is already frozen.
7551         (Exp_Util.Find_Init_Call): Rename to...
7552         (Exp_Util.Remove_Init_Call): New subprogram, renamed from
7553         Find_Init_Call.  Remove the initialization call from the enclosing
7554         list if found, and if it is from an Initialization_Statements
7555         attribute, reset it.
7556         (Exp_Util.Append_Freeze_Action): Minor code reorganization.
7557         (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been
7558         allocated (as is already done in Append_Freeze_Action).
7559         (Freeze.Freeze_Entity): For an object with captured
7560         Initialization_Statements and non-delayed freezeing, unwrap the
7561         initialization statements and insert and them directly in the
7562         enclosing list.
7563         (Sem_Ch13.Check_Address_Clause): For an object
7564         with Initialization_Statements and an address clause, unwrap the
7565         initialization statements when moving them to the freeze actions.
7567 2013-01-03  Pascal Obry  <obry@adacore.com>
7569         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and
7570         corresponding attibutes.
7572 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7574         * exp_aggr.adb: Minor comment improvement.
7576 2013-01-03  Hristian Kirtchev  <kirtchev@adacore.com>
7578         * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the
7579         relevant tables.
7580         * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to
7581         the description of fields (Abstract_States): New routine.
7582         (Integrity_Level): New routine.
7583         (Has_Property): New routine.
7584         (Is_Input_State): New routine.
7585         (Is_Null_State): New routine.
7586         (Is_Output_State): New routine.
7587         (Is_Volatile_State): New routine.
7588         (Refined_State): New routine.
7589         (Set_Abstract_States): New routine.
7590         (Set_Integrity_Level): New routine.
7591         (Set_Refined_State): New routine.
7592         (Write_Field8_Name): Add proper output for E_Abstract_State.
7593         (Write_Field9_Name): Add proper output for E_Abstract_State.
7594         (Write_Field25_Name): Add proper output for E_Package.
7595         * lib-xref.ads: Add new letter for an abstract state.
7596         * par-prag.adb: Add pragma Abstract_State to the list of pragma
7597         that do not need special processing by the parser.
7598         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert
7599         aspect Abstract_State into a pragma without any form
7600         of legality checks. The work is done by Analyze_Pragma.
7601         (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not
7602         require delayed analysis.
7603         * sem_prag.adb: Add a value for pragma Abstract_State in table
7604         Sig_Flags.
7605         (Analyze_Pragma): Add legality checks for pragma
7606         Abstract_State. Analysis of individual states introduces a state
7607         abstraction entity into the visibility chain.
7608         * snames.ads-tmpl: Add new names for abstract state and
7609         integrity. Add new pragma id for abstract state.
7611 2013-01-03  Bob Duff  <duff@adacore.com>
7613         * table.adb (Reallocate): Calculate new Length in
7614         Long_Integer to avoid overflow.
7616 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7618         * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb
7619         (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that
7620         it is set properly when expanding the initialization expression.
7621         (Freeze.Check_Address_Clause): Transfer initialization expression
7622         to an assignment in the freeze actions, so that the object is
7623         initialized only after being elaborated by GIGI.
7624         (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow
7625         a Null_Statement as the expression in an Expression_With_Actions.
7626         (Exp_Aggr.Collect_Initialization_Statements): New subprogram
7627         shared by expansion of record and array aggregates, used to
7628         capture statements for an aggregate used to initalize an object
7629         into an Expression_With_Actions (which acts as a container for
7630         a list of actions).
7631         (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to
7632         capture initialization statements, instead of the previously
7633         existing loop which left freeze nodes out of the capturing
7634         construct (causing out of order elaboration crashes in GIGI).
7635         (Exp_Aggr.Expand_Array_Aggregate):  Use the above to capture
7636         initialization statements (this was previously not done for
7637         arrays).  Also do not unconditionally prevent in place expansion
7638         for an object with address clause.
7640 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7642         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that
7643         a record extension has the same scalar storage order as the parent type.
7645 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7647         * exp_ch4.adb: Add comment.
7649 2013-01-03  Vincent Celier  <celier@adacore.com>
7651         * prj.adb: Minor spelling error correction in comment.
7653 2013-01-03  Vincent Celier  <celier@adacore.com>
7655         * gnatcmd.adb (GNATCmd): If a single main has been specified
7656         as an absolute path, use its simple file name to find specific
7657         switches, instead of the absolute path.
7659 2013-01-03  Javier Miranda  <miranda@adacore.com>
7661         * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping
7662         parameters that are record types or array types generate warnings
7663         only compiling under -gnatw.i
7664         * opt.ads (Extensions_Allowed): Restore previous documentation.
7666 2013-01-03  Vincent Celier  <celier@adacore.com>
7668         * prj-conf.adb (Do_Autoconf): If Target is specified in the
7669         main project, but not on the command line, use the Target in
7670         the project to invoke gprconfig in auto-configuration.
7671         * makeutl.ads (Default_Config_Name): New constant String.
7673 2013-01-03  Arnaud Charlet  <charlet@adacore.com>
7675         * usage.adb: Minor: fix typo in usage.
7677 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7679         * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject
7680         an illegal component clause for an inherited component in a
7681         record extension.
7683 2013-01-03  Emmanuel Briot  <briot@adacore.com>
7685         * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which
7686         have information in the ALI file for both the index and the component
7687         types.
7689 2013-01-03  Emmanuel Briot  <briot@adacore.com>
7691         * projects.texi: Fix error in documenting the project path
7692         computed for an aggregate project.
7694 2013-01-03  Javier Miranda  <miranda@adacore.com>
7696         * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation
7697         plus restricting the functionality of this routine to cover the
7698         cases described in the Ada 2012 reference manual. The previous
7699         extended support is now available under -gnatX.
7700         * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy
7701         variable to call Timed_Sleep.  Required to avoid warning on
7702         overlapping out-mode actuals.
7703         * opt.ads (Extensions_Allowed): Update documentation.
7705 2013-01-03  Tristan Gingold  <gingold@adacore.com>
7707         * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64.
7708         * arit64.c: Removed
7709         * gcc-interface/Makefile.in: Remove reference to arit64.c.
7711 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7713         * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must
7714         be generated at the start of the freeze actions for the entity, not
7715         before (or after) the freeze node.
7717 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7719         * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl):
7720         Reorganize code to capture initialization statements in a block,
7721         so that freeze nodes are excluded from the captured block.
7723 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7725         * exp_ch11.adb: Minor reformatting.
7727 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7729         * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb,
7730         sem_ch13.adb (Einfo.Initialization_Statements,
7731         Einfo.Set_Initialization_Statements): New entity attribute
7732         for objects.
7733         (Exp_Util.Find_Init_Call): Handle case of an object initialized
7734         by an aggregate converted to a block of assignment statements.
7735         (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze
7736         even for objects that require a constant address, because the
7737         address expression might involve entities that have yet to be
7738         elaborated at the point of the object declaration.
7739         (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does
7740         not require a transient scope, capture the assignment statements
7741         in a block so that they can be moved down after elaboration of
7742         an address clause if needed.
7743         (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants,
7744         case N_Unchecked_Conversion): Do not replace operand subtype with
7745         its base type as this violates a GIGI invariant if the operand
7746         is an identifier (in which case the etype of the identifier
7747         is expected to be equal to that of the denoted entity).
7749 2013-01-03  Javier Miranda  <miranda@adacore.com>
7751         * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the
7752         functionality of this routine to cover cases described in the Ada 2012
7753         reference manual.
7755 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
7757         * sem_elab.adb (Set_Elaboration_Constraint): Handle properly
7758         a 'Access attribute reference when the subprogram is called
7759         Initialize.
7761 2013-01-03  Arnaud Charlet  <charlet@adacore.com>
7763         * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a
7764         select statement may be called from a controlled (e.g. Initialize)
7765         operation and have abort always deferred.
7767 2013-01-03  Robert Dewar  <dewar@adacore.com>
7769         * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization.
7771 2013-01-03  Javier Miranda  <miranda@adacore.com>
7773         * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude
7774         internal entities associated with interfaces and add minimum
7775         decoration to the defining entity of the generated wrapper to
7776         allow overriding interface primitives.
7777         * sem_disp.ads (Override_Dispatching_Operation): Addition of a
7778         new formal (Is_Wrapper).
7779         * sem_disp.adb (Override_Dispatching_Operation): When overriding
7780         interface primitives the new formal helps identifying that the
7781         new operation is not fully decorated.
7783 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7785         * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb,
7786         rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb
7787         (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit):
7788         Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and
7789         update spec accordingly (now also applies to root library units).
7790         (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag
7791         on root library units, not only child units.
7792         (Sem_Ch10.Install[_Limited]_Withed_Unit): Same.
7793         (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit
7794         even for root library units.
7795         (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is
7796         Standard is an expanded name for a root library unit.
7798 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7800         * exp_ch3.adb: Minor reformatting.
7802 2013-01-03  Olivier Hainque  <hainque@adacore.com>
7804         * tracebak.c: Reinstate changes to support ppc-lynx178.
7806 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
7808         * atree.ads: Minor reformatting and documentation enhancement.
7810 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
7812         * exp_ch3.adb (Expand_N_Object_Declaration): If the object has
7813         a class-wide type and a renaming declaration is created for it,
7814         preserve entity chain, which already contains generated internal
7815         types. This ensures that freezing actions are properly generated
7816         for all objects declared subsequently in the same scope, and
7817         that debugging information is generated for them.
7818         * sem_util.adb, sem_util.ads (we): New debugging routine, to
7819         display entity chain of a given scope.
7821 2013-01-03  Robert Dewar  <dewar@adacore.com>
7823         * exp_intr.adb: Minor reformatting.
7825 2013-01-03  Robert Dewar  <dewar@adacore.com>
7827         * einfo.adb: Minor reformatting.
7829 2013-01-03  Pascal Obry  <obry@adacore.com>
7831         * adaint.c, adaint.h (__gnat_get_module_name): Removed.
7832         (__gnat_is_module_name_supported): Removed.
7833         * s-win32.ads: Add some needed definitions.
7834         * g-trasym.ads: Update comments.
7836 2013-01-03  Robert Dewar  <dewar@adacore.com>
7838         * layout.adb (Set_Composite_Alignment): Fix problems of
7839         interactions with Optimize_Alignment set to Space.
7841 2013-01-03  Thomas Quinot  <quinot@adacore.com>
7843         * exp_disp.adb: Minor reformatting.
7845 2013-01-02  Richard Biener  <rguenther@suse.de>
7847         PR bootstrap/55784
7848         * gcc-interface/Makefile.in: Add $(GMPINC) to includes.
7850 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7852         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove
7853         side effects from Tag_Arg early, doing it too late may cause a
7854         crash due to inconsistent Parent link.
7855         * sem_ch8.adb, einfo.ads: Minor reformatting.
7857 2013-01-02  Robert Dewar  <dewar@adacore.com>
7859         * einfo.ads, einfo.adb (Has_Independent_Components): New flag.
7860         * freeze.adb (Size_Known): We do not know the size of a packed
7861         record if it has atomic components, by reference type components,
7862         or independent components.
7863         * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new
7864         flag Has_Independent_Components.
7866 2013-01-02  Yannick Moy  <moy@adacore.com>
7868         * opt.ads (Warn_On_Suspicious_Contract): Set to True by default.
7869         * usage.adb (Usage): Update usage message.
7871 2013-01-02  Pascal Obry  <obry@adacore.com>
7873         * adaint.c (__gnat_is_module_name_supported): New constant.
7875 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
7877         * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an
7878         array whose component type does not have a completion.
7880 2013-01-02  Geert Bosch  <bosch@adacore.com>
7882         * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure.
7884 2013-01-02  Robert Dewar  <dewar@adacore.com>
7886         * par_sco.adb: Minor reformatting.
7888 2013-01-02  Javier Miranda  <miranda@adacore.com>
7890         * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code.
7892 2013-01-02  Olivier Hainque  <hainque@adacore.com>
7894         * a-exctra.ads (Get_PC): New function.
7896 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7898         * sem_ch8.adb: Minor reformatting.
7900 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7902         * sem_ch7.adb: Minor reformatting.
7904 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7906         * freeze.adb (Check_Component_Storage_Order): Do not crash on
7907         _Tag component.
7909 2013-01-02  Robert Dewar  <dewar@adacore.com>
7911         * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add
7912         On_Target to Atomic_Sync_Default.
7914 2013-01-02  Robert Dewar  <dewar@adacore.com>
7916         * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for
7917         comparison of attribute result with constant
7918         * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma
7919         Warnings (Off, "..");
7921 2013-01-02  Yannick Moy  <moy@adacore.com>
7923         * sem_prag.ads: Minor correction of comment.
7925 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7927         * par_sco.adb (Traverse_Package_Declaration): The first
7928         declaration in a nested package is dominated by the preceding
7929         declaration in the enclosing scope.
7931 2013-01-02  Pascal Obry  <obry@adacore.com>
7933         * adaint.c, adaint.h (__gnat_get_module_name): Return the actual
7934         module containing a given address.
7936 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7938         * sem_ch3.adb: Minor reformatting.
7940 2013-01-02  Pascal Obry  <obry@adacore.com>
7942         * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on
7943         Win64 and default to ftell on other platforms.
7944         (__gnat_fsek64): Likewise.
7945         * i-cstrea.ads: Add fssek64 and ftell64 specs.
7946         * s-crtl.ads: Likewise.
7947         * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required.
7948         (Set_Position): Likewise.
7950 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7952         * par_sco.adb: Generate X SCOs for default expressions in
7953         subprogram body stubs.  Do not generate any SCO for package,
7954         task, or protected body stubs.
7956 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
7958         * sem_ch3.adb: Further improvement to ASIS mode for anonymous
7959         access to protected subprograms.
7961 2013-01-02  Robert Dewar  <dewar@adacore.com>
7963         * par_sco.adb, vms_data.ads: Minor reformatting.
7965 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7967         * par_sco.adb (Traverse_Declarations_Or_Statement): Function
7968         form, returning value of Current_Dominant upon exit, for chaining
7969         purposes.
7970         (Traverse_Declarations_Or_Statement.Traverse_One, case
7971         N_Block_Statement): First statement is dominated by last declaration.
7972         (Traverse_Subprogram_Or_Task_Body): Ditto.
7973         (Traverse_Package_Declaration): First private
7974         declaration is dominated by last visible declaration.
7975         (Traverse_Sync_Definition): Ditto.
7977 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7979         * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order
7980         matching Bit_Order to record types only, since array types do not
7981         have a Bit_Order.
7983 2013-01-02  Vincent Celier  <celier@adacore.com>
7985         * gnat_ugn.texi: Remove documentation of -gnateO, which is an
7986         internal switch.
7987         * usage.adb: Indicate that -gnateO is an internal switch.
7989 2013-01-02  Thomas Quinot  <quinot@adacore.com>
7991         * par_sco.adb: Add SCO generation for task types and single
7992         task declarations.
7993         * get_scos.adb: When adding an instance table entry for a
7994         non-nested instantiation, make sure the Enclosing_Instance is
7995         correctly set to 0.
7997 2013-01-02  Hristian Kirtchev  <kirtchev@adacore.com>
7999         * sem_attr.adb (Analyze_Attribute): Skip the special _Parent
8000         scope generated for subprogram inlining purposes while trying
8001         to locate the enclosing function.
8002         * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
8003         expression of pragma Postcondition when the pragma comes from
8004         source and appears inside a subprogram body.
8006 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8008         * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
8009         information in debug info unconditionally when using -fdump-scos,
8010         instead of relying on a separate command line switch -fdebug-instances.
8011         * gcc-interface/Make-lang.in: Update dependencies.
8013 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8015         * sem_ch12.adb: Additional refinement of predicate.
8017 2013-01-02  Vincent Celier  <celier@adacore.com>
8019         * vms_data.ads: Remove incorrect spaces at end of descriptions
8020         of qualifiers for single switch.
8022 2013-01-02  Ben Brosgol  <brosgol@adacore.com>
8024         * gnat_rm.texi: Minor edits / wordsmithing in section on pragma
8025         Check_Float_Overflow.
8027 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8029         * sprint.adb (Sprint_Node_Actual): Do not add extra parens for
8030         a conditional expression (CASE or IF expression) that already
8031         has parens. Also omit ELSE keyword for an IF expression without
8032         an ELSE part.
8034 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8036         * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
8037         flag_debug_instances here, after front-end switches have been
8038         processed.
8040 2013-01-02  Vincent Celier  <celier@adacore.com>
8042         * usage.adb: Minor reformatting.
8044 2013-01-02  Arnaud Charlet  <charlet@adacore.com>
8046         * opt.ads: Fix typo.
8048 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8050         * par_sco.adb: Generate P decision SCOs for SPARK pragmas
8051         Assume and Loop_Invariant.
8053 2013-01-02  Robert Dewar  <dewar@adacore.com>
8055         * vms_data.ads: Add entry for Float_Check_Valid (-gnateF).
8056         * ug_words: Add entry for Float_Check_Overflow.
8057         * usage.adb: Minor reformatting.
8058         * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow).
8060 2013-01-02  Vincent Celier  <celier@adacore.com>
8062         * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated,
8063         -gnateO=, -gnatet and -gnateV.
8064         * ug_words: Add qualifiers equivalent to -gnateA, -gnated,
8065         -gnatet and -gnateV.
8066         * usage.adb: Add lines for -gnatea, -gnateO and -gnatez.
8067         * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK
8068         (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated),
8069         /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO
8070         (-gnatet).
8072 2013-01-02  Robert Dewar  <dewar@adacore.com>
8074         * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow.
8075         * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config].
8076         * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow.
8077         * sem_prag.adb: Implement pragma Check_Float_Overflow.
8078         * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow.
8079         * switch-c.adb: Recognize -gnateF switch.
8080         * tree_io.ads: Update ASIS version number.
8081         * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow.
8083 2013-01-02  Robert Dewar  <dewar@adacore.com>
8085         * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
8086         exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb,
8087         freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb,
8088         par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb,
8089         sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb,
8090         sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages.
8091         * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates.
8093 2013-01-02  Robert Dewar  <dewar@adacore.com>
8095         * err_vars.ads: Minor comment fix.
8097 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8099         * sem_ch12.adb: Refine predicate.
8101 2013-01-02  Robert Dewar  <dewar@adacore.com>
8103         * errout.ads: Minor comment fixes.
8104         * opt.ads: Minor comment additions.
8105         * exp_aggr.adb: Add tags to warning messages
8106         * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
8107         sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
8108         sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
8109         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
8110         sem_warn.adb: Add tags to warning messages
8112 2013-01-02  Doug Rupp  <rupp@adacore.com>
8114         * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
8116 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8118         * sem_ch12.adb: Recover source name for renamed packagea.
8120 2013-01-02  Robert Dewar  <dewar@adacore.com>
8122         * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing
8123         tests to fail if insertion sequence is at end of message string.
8124         * opt.ads: Minor comment fixes and additions.
8125         * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb,
8126         sem_ch12.adb, sem_ch13.adb: Add tags to warning messages.
8127         * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message
8128         tags. Add tags to warning messages.
8130 2013-01-02  Robert Dewar  <dewar@adacore.com>
8132         * err_vars.ads (Warning_Doc_Switch): New flag.
8133         * errout.adb (Error_Msg_Internal): Implement new warning flag
8134         doc tag stuff (Set_Msg_Insertion_Warning): New procedure.
8135         * errout.ads: Document new insertion sequences ?? ?x? ?.x?
8136         * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc
8137         tag stuff.
8138         * erroutc.ads (Warning_Msg_Char): New variable.
8139         (Warn_Chr): New field in error message object.
8140         * errutil.adb (Error_Msg): Set Warn_Chr in error message object.
8141         * sem_ch13.adb: Minor reformatting.
8142         * warnsw.adb: Add handling for -gnatw.d and -gnatw.D
8143         (Warning_Doc_Switch).
8144         * warnsw.ads: Add handling of -gnatw.d/.D switches (warning
8145         doc tag).
8147 2013-01-02  Robert Dewar  <dewar@adacore.com>
8149         * opt.ads: Minor reformatting.
8151 2013-01-02  Doug Rupp  <rupp@adacore.com>
8153         * init.c: Reorganize VMS section.
8154         (scan_condtions): New function for scanning condition tables.
8155         (__gnat_handle_vms_condtion): Use actual exception name for imported
8156         exceptions vice IMPORTED_EXCEPTION.
8157         Move condition table scanning into separate function. Move formerly
8158         special handled conditions to system condition table. Use SYS$PUTMSG
8159         output to fill exception message field for formally special handled
8160         condtions, in particular HPARITH to provide more clues about cause and
8161         location then raised from the translated image.
8163 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8165         * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post
8166         aspect that applies to a library subprogram, prepend corresponding
8167         pragma to the Pragmas_After list, in order for split AND THEN
8168         sections to be processed in the expected order.
8170 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8172         * exp_prag.adb (Expand_Pragma_Check): The statements generated
8173         for the pragma must have the sloc of the pragma, not the
8174         sloc of the condition, otherwise this creates anomalies in the
8175         generated debug information that confuse coverage analysis tools.
8177 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8179         * sem_ch13.adb: Minor reformatting.
8181 2013-01-02  Arnaud Charlet  <charlet@adacore.com>
8183         * g-excact.ads (Core_Dump): Clarify that this subprogram does
8184         not dump cores under Windows.
8186 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8188         * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed
8189         view of a subprogram has convention Intrnnsic, and a renaming
8190         of a prefixed view cannot be the prefix of an Access attribute.
8192 2013-01-02  Robert Dewar  <dewar@adacore.com>
8194         * restrict.adb: Minor reformatting.
8196 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8198         * exp_prag.adb: Minor reformatting.
8200 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8202         * sem_ch12.adb (Get_Associated_Node): If the node is an
8203         identifier that denotes an unconstrained array in an object
8204         declaration, it is rewritten as the name of an anonymous
8205         subtype whose bounds are given by the initial expression in the
8206         declaration. When checking whether that identifier is global
8207         reference, use the original node, not the local generated subtype.
8209 2013-01-02  Olivier Hainque  <hainque@adacore.com>
8211         * tracebak.c: Revert previous change, incomplete.
8213 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8215         * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect
8216         appears on a subprogram body that acts as a spec, place the
8217         corresponding pragma in the declarations of the body, so that
8218         e.g. pre/postcondition checks can be generated appropriately.
8220 2013-01-02  Robert Dewar  <dewar@adacore.com>
8222         * sem_ch3.adb: Minor reformatting and code reorganization.
8224 2013-01-02  Vincent Celier  <celier@adacore.com>
8226         * switch-m.adb (Normalize_Compiler_Switches): Record the
8227         complete switch -fstack-check=specific instead of its shorter
8228         alias -fstack-check.
8230 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
8232         * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8):
8233         if the derived type is a tagged generic formal type with
8234         unknown discriminants, the inherited operation has convention
8235         Intrinsic. As such, the 'Access attribute cannot be applied to it.
8237 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8239         * sem_attr.adb: Minor reformatting.
8241 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8243         * par_sco.adb: Add SCO generation for S of protected types and
8244         single protected object declarations.
8246 2013-01-02  Robert Dewar  <dewar@adacore.com>
8248         * sem_eval.adb, osint.ads: Minor reformatting.
8250 2013-01-02  Hristian Kirtchev  <kirtchev@adacore.com>
8252         * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume.
8254 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8256         * sem_eval.adb (Compile_Time_Compare): For static operands, we
8257         can perform a compile time comparison even if in preanalysis mode.
8259 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8261         * par_sco.adb (SCO_Record): Always use
8262         Traverse_Declarations_Or_Statements to process the library level
8263         declaration, so that SCOs are properly generated for its aspects.
8265 2013-01-02  Thomas Quinot  <quinot@adacore.com>
8267         * scos.ads (In_Decision): Add missing entry for 'a'.
8268         * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit
8269         call to Set_SCO_Pragma_Enabled for Invariant and Predicate.
8270         * sem_ch13.adb: Minor comment update.
8272 Copyright (C) 2013 Free Software Foundation, Inc.
8274 Copying and distribution of this file, with or without modification,
8275 are permitted in any medium without royalty provided the copyright
8276 notice and this notice are preserved.