* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
[official-gcc.git] / gcc / ada / ChangeLog
blob65481468941b43515f3cd3cdd23f4209010f936a
1 2013-08-13  Thomas Quinot  <quinot@adacore.com>
3         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
4         there is no End_Label, attach cleanup actions to the sloc of the HSS
5         node instead.
6         (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc
7         of the handler itself.
8         (add_cleanup): Clear column information in sloc of cleanup actions.
9         (Sloc_to_locus1): New static function.
10         (Sloc_to_locus): Call it.
11         (set_expr_location_from_node1): New static function.
12         (set_expr_location_from_node): Call it.
14 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
16         * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional
17         expressions for misaligned actual parameters.
19 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
21         * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
22         values outside of the range of the type.
24 2013-08-13  Eric Botcazou  <ebotcazou@adacore.com>
26         * gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion
27         to the original type before converting to the result type.
28         (build_atomic_store): First do a conversion to the original type before
29         view-converting to the effective type, but deal with a padded type
30         specially.
32 2013-08-08  Eric Botcazou  <ebotcazou@adacore.com>
34         * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the
35         compiler build and use standard library variables.
36         (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust.
37         (gnatmake-re): Do not depend on targext.o.
38         (gnatlink-re): Do not depend on link.o and targext.o.
39         (../../gnatmake$(exeext): Likewise.
40         (../../gnatlink$(exeext): Likewise.
42 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
44         * gcc-interface/gigi.h: Fix typos.
45         * gcc-interface/trans.c: Likewise.
46         * gcc-interface/utils2.c: Likewise.
47         * gnat_rm.texi: Likewise.
48         * gnat_ugn.texi: Likewise.
49         * raise-gcc.c: Likewise.
50         * sigtramp-ppcvxw.c: Likewise.
51         * sysdep.c: Likewise.
52         * terminals.c: Likewise.
54 2013-07-20  Eric Botcazou  <ebotcazou@adacore.com>
56         PR ada/57934
57         * gcc-interface/ada.h (CAT): Fix typo.
59 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
61         * einfo.adb (Get_Pragma): Handle the retrieval of delayed
62         pragmas stored in N_Contract nodes.
63         * einfo.ads (Get_Pragma): Update the comment on usage.
64         * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
65         of the pragma when it applies to a body that acts as a spec. The
66         copy is preanalyzed and chained on the contract of the body.
68 2013-07-08  Robert Dewar  <dewar@adacore.com>
70         * rtsfind.adb: Minor comment fix.
72 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
74         * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
75         of a Ghost function call when the enclosing context is being
76         preanalyzed.
78 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
80         * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
81         expression in a return statement is a numeric literal, qualify
82         it with the return type for proper resolution.
84 2013-07-08  Robert Dewar  <dewar@adacore.com>
86         * sem.ads: Minor comment updates.
87         * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
88         Minor reformatting.
90 2013-07-08  Robert Dewar  <dewar@adacore.com>
92         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
93         for Restriction_Set.
94         * gnat_rm.texi: Add missing menu entry for Attribute Ref Add
95         documentation for attribute Restriction_Set.
96         * lib-writ.adb (Write_With_Lines): Generate special W lines
97         for Restriction_Set.
98         * lib-writ.ads: Document special use of W lines for
99         Restriction_Set.
100         * lib.ads (Restriction_Set_Dependences): New table.
101         * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
102         list (Scan_Name_Extension_Apostrophe): Remove kludge test for
103         Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
104         for Restricton_Set.
105         * restrict.adb (Check_SPARK_Restriction): Put in Alfa order
106         (OK_No_Dependence_Unit_Name): New function.
107         * restrict.ads (OK_No_Dependence_Unit_Name): New function.
108         * rtsfind.adb: Minor reformatting Minor code reorganization.
109         * sem_attr.adb (Analyze_Attribute): Add processing for
110         Restriction_Set.
111         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
112         Remove Check_Unit_Name and use new function
113         OK_No_Dependence_Unit_Name instead.
114         * sinfo.ads: Minor comment updates.
115         * snames.ads-tmpl: Add entry for Restriction_Set attribute.
117 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
119         * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
120         Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
121         object as "free" is not available on all targets/profiles.
123 2013-07-08  Robert Dewar  <dewar@adacore.com>
125         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle
126         Storage_Size aspect for task type in case discriminant is
127         referenced.
128         (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
129         attribute definition clause as obsolescent if from aspect.
131 2013-07-08  Robert Dewar  <dewar@adacore.com>
133         * gnat_rm.texi: Add documentation for Img returning a function.
134         * par-prag.adb: Minor reformatting.
135         * restrict.adb: Minor reformatting and code reorganization.
137 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
139         * sem_res.adb: add guard to ASIS transform.
141 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
143         * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
144         of the asynchronous select is a dispatching call, transform the
145         abortable part into a procedure, to avoid duplication of local
146         loop variables that may appear within.
148 2013-07-08  Vincent Celier  <celier@adacore.com>
150         * projects.texi: Update the documentation of suffixes in package
151         Naming.
153 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
155         * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
156         types are type conformant if the designated type of one is
157         protected and the other is not. Convention only matters when
158         checking subtype conformance.
160 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
162         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
163         back the fully resolved operands to the original function call
164         so that all semantic information remains available to ASIS.
166 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
168         * sem_ch4.adb: minor reformatting (remove obsolete comment).
169         * sem_ch9.adb: improve error message on illegal trigger.
171 2013-07-08  Robert Dewar  <dewar@adacore.com>
173         * sem_prag.adb: Minor reformatting.
175 2013-07-08  Robert Dewar  <dewar@adacore.com>
177         * gnatcmd.adb: Minor reformatting.
179 2013-07-08  Robert Dewar  <dewar@adacore.com>
181         * targparm.adb (Get_Target_Parameters): Recognize pragma
182         Partition_Elaboration_Policy.
184 2013-07-08  Robert Dewar  <dewar@adacore.com>
186         * gnat_ugn.texi: Minor update to mention partition elaboration policy.
188 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
190         * sem_ch4.adb (Comple_Object_Operation): Revert previous change.
191         (Analyze_Indexed_Component_Form): In ASIS mode, if node has been
192         transformed but not rewritten as a function call (as is the case
193         in a generic), analyze it as such.
195 2013-07-08  Thomas Quinot  <quinot@adacore.com>
197         * gnat_rm.texi: Minor rewording: add missing word "operators"
198         in documentation for restriction No_Direct_Boolean_Operator.
200 2013-07-08  Robert Dewar  <dewar@adacore.com>
202         * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
203         Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
204         now).
205         * errout.ads: Insertions ! and !! no longer have to be at the
206         end of the message, they can be anywhere in the message.
207         * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
208         Replaces Test_Style_Warning_Serious_Msg
209         * erroutc.ads (Has_Double_Exclam): New flag New comments for
210         existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
211         Replaces Test_Style_Warning_Serious_Msg
212         * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
213         Replaces Test_Style_Warning_Serious_Msg
215 2013-07-08  Robert Dewar  <dewar@adacore.com>
217         * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
218         Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
219         * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
220         referenced there.
221         * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
222         sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
223         * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.
225 2013-07-08  Vincent Celier  <celier@adacore.com>
227         * gnatcmd.adb (Check_Files): Use a response file for gnatls
228         when possible.
230 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
232         * freeze.adb: Minor typo fixes.
234 2013-07-08  Robert Dewar  <dewar@adacore.com>
236         * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
237         obsolete recognition of SPARK Document all other obsolete synonyms
238         for old restrictions.
239         * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
240         SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
241         for SPARK_05.
242         * restrict.ads: Restriction SPARK_05 replaces SPARK.
243         * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
244         as synonym for SPARK_05.
245         * sem_prag.adb: Minor reformatting.
246         * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.
248 2013-07-08  Robert Dewar  <dewar@adacore.com>
250         * sem_dim.adb: Minor error message change.
251         * freeze.adb (Freeze_Entity, array type case): Extend handling
252         of Implicit_Packing to handle multi-dimensional array case.
253         * gnat_rm.texi: Update doc on Implicit_Packing.
255 2013-07-08  Robert Dewar  <dewar@adacore.com>
257         * exp_ch4.adb: Minor reformatting.
259 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
261         * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
262         the parent node is a selected component and the analysis as a
263         call is successful, set the type of the selector in the parent
264         node for subsequent checks, because the rewriting of the node
265         does not take place during pre-analysis.
267  2013-07-08  Robert Dewar  <dewar@adacore.com>
269         * sem_ch8.adb, exp_ch3.adb: Minor reformatting.
271 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
273         * exp_ch4.adb (Expand_N_Op_Eq): When comparing two
274         Bounded_Strings, use the predefined equality function of the
275         root Super_String type.
277 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
279         * exp_ch4.adb (Create_Alternative): Removed.
280         (Expand_N_If_Expression): Remove constant
281         In_Case_Or_If_Expression. Add local variable
282         Ptr_Typ. Inspect the "then" and "else" action lists
283         for transient controlled objects and generate code to
284         finalize them.  (Is_Controlled_Function_Call): Removed.
285         (Process_Action): Update the comment on usage. Update the call
286         to Process_Transient_Object. There is no need to continue the
287         traversal of the object itself.
288         (Process_Actions): New routine.
289         (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
290         a new formal and update the related comment on usage.
291         * exp_util.adb (Within_Case_Or_If_Expression): Start the search
292         from the parent of the node.
294 2013-07-08  Robert Dewar  <dewar@adacore.com>
296         * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
297         a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).
299 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
301         * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
302         that can be renamed as a function.
304 2013-07-08  Thomas Quinot  <quinot@adacore.com>
306         * g-socket.ads: Document target dependency: FIONBIO may or may not
307         be inherited from listening socket by accepted socket.
309 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
311         * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
312         on targets that can't deallocate.
314 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
316         * exp_ch3.adb (Freeze_Type): Generate a
317         subpools-related accessibility check only on profiles that
318         include the corresponding library unit.
320 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
322         * sem_ch8.adb: Minor typo fixes.
324 2013-07-08  Javier Miranda  <miranda@adacore.com>
326         * sem_ch8.adb (Save_Scope_Stack): Adding documentation.
327         (Restore_Scope_Stack): Remove the elements of the list when the
328         visibility of each entity is restored.
330 2013-07-08  Robert Dewar  <dewar@adacore.com>
332         * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.
334 2013-07-08  Robert Dewar  <dewar@adacore.com>
336         * sem_ch8.adb, sem_ch8.ads: Minor reformatting.
338 2013-07-08  Gary Dismukes  <dismukes@adacore.com>
340         * gnat_rm.texi: Minor reformatting and rewording for consistency.
342 2013-07-08  Bob Duff  <duff@adacore.com>
344         * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete
345         view coming from a limited-with'ed package, use the nonlimited
346         view in case it has tasks.
348 2013-07-08  Javier Miranda  <miranda@adacore.com>
350         * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list
351         of entities which have been temporarily removed from immediate
352         visibility.
353         (Restore_Scope_Stack): Modified to receive an
354         additional parameter with the list of entities whose immediate
355         visibility must be restored.
356         * sem.adb (Do_Analyze): Use new version of
357         Save_Scope_Stack/Restore_Scope_Stack
358         * sem_ch12.adb (Inline_Instance_Body): Use new version of
359         Save_Scope_Stack and Restore_Scope_Stack
361 2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>
363         * sem_prag.adb (Analyze_Pragma): Remove
364         variable Unit_Prag. Remove the check on duplicate mode for the
365         configuration form of the pragma.
366         (Redefinition_Error): Removed.
368 2013-07-08  Robert Dewar  <dewar@adacore.com>
370         * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting
371         and editing.
373 2013-07-08  Ed Schonberg  <schonberg@adacore.com>
375         * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode,
376         pre-analyze only the original expression attached to the source
377         aspect, not the relocated expression of the pragma, to prevent
378         malformed trees in ASIS mode.
379         * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous
380         patch: the expression in the aspect for pre/post must be relocated
381         to the pragma for proper analysis.
383 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
385         * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect.
386         * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id,
387         Aspect_Argument, Aspect_Names.
388         * atree.adb (Node32): New routine.
389         (Set_Node32): New routine.
390         * atree.ads (Node32): New routine.
391         (Set_Node32): New routine.
392         * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas.
393         (Set_SPARK_Mode_Pragmas): New routine.
394         (SPARK_Mode_Pragmas): New routine.
395         (Write_Field32_Name): Add and entry for SPARK_Modes.
396         * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage
397         in various entities.
398         (Set_SPARK_Mode_Pragmas): New routine and
399         pragma Inline.
400         (SPARK_Mode_Pragmas): New routine and pragma Inline.
401         * gnat_rm.texi: Add sections explaining the syntax and semantics
402         of aspect/pragma SPARK_Mode.
403         * gnat_ugn.texi: Add pragma SPARK_Mode to the list of
404         configuration pragmas.
405         * lib.adb (Set_SPARK_Mode_Pragma): New routine.
406         (SPARK_Mode_Pragma): New routine.
407         * lib.ads: Alphabetize the comments on fields of record
408         Unit_Record. Add new field SPARK_Mode_Pragma along with
409         comment on its usage. Update the layout of record Unit_Record.
410         (Set_SPARK_Mode_Pragma): New routine and pragma Inline.
411         (SPARK_Mode_Pragma): New routine and pragma Inline.
412         * lib-load.adb (Create_Dummy_Package_Unit): Initialize
413         field SPARK_Mode_Pragma.
414         (Load_Main_Source): Initialize field SPARK_Mode_Pragma.
415         (Load_Unit): Initialize field SPARK_Mode_Pragma.
416         * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field
417         SPARK_Mode_Pragma.
418         (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma.
419         * opt.ads: Alphabetize verification flags. Store the
420         compilation-wide SPARK mode in variable Global_SPARK_Mode.
421         * par-prag.adb: Pragma SPARK_Mode does not need special processing
422         by the parser.
423         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
424         SPARK_Mode into a pragma.
425         (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need
426         delayed processing.
427         * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags.
428         (Analyze_Pragma): Add processing for pragma SPARK_Mode.
429         (Get_SPARK_Mode_Id): New routine.
430         (Is_Elaboration_SPARK_Mode): New routine.
431         (Is_Private_SPARK_Mode): New routine.
432         * sem_prag.ads (Get_SPARK_Mode_Id): New routine.
433         (Is_Elaboration_SPARK_Mode): New routine.
434         (Is_Private_SPARK_Mode): New routine.
435         * sinfo.ads: Update the comment on the usage of field Next_Pragma.
436         * snames.ads-tmpl: Add new predefined name for SPARK_Mode and
437         Auto. Add new pragma Id for SPARK_Mode.
438         * types.ads: Add new type SPARK_Mode_Id.
440 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
442         * sem_ch13.adb (Analyze_Aspect_Specifications): For
443         pre/postconditions copy the expression to the generated pragma,
444         to avoid sharing between the original aspect and the pragma node,
445         because in ASIS_Mode both will be independently analyzed.
447 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
449         * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of
450         formals for each discriminant of an unchecked union.
451         (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested
452         variants are supported. New helper function Corresponding_Formal.
453         * exp_ch4.adb (Build_Equality_Call): For unchecked unions,
454         loop through discriminants to create list of inferred values,
455         and modify call to equality routine accordingly.
457 2013-07-05  Claire Dross  <dross@adacore.com>
459         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
460         a-cforse.ads, a-cofove.ads: Add preconditions when needed +
461         container types are not tagged any more.
463 2013-07-05  Thomas Quinot  <quinot@adacore.com>
465         * freeze.adb (Freeze_Entity): For an object with captured
466         initialization statements, do not remove Init_Stmts from the
467         enclosing list, as Freeze_All might rely on it to know where to
468         stop freezing.
470 2013-07-05  Robert Dewar  <dewar@adacore.com>
472         * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor
473         reformatting.
475 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
477         * exp_ch4.adb (Expand_Composite_Equality): Use the full view
478         when the base type is private.
480 2013-07-05  Claire Dross  <dross@adacore.com>
482         * a-cfdlli.ads: Add preconditions when needed.
484 2013-07-05  Robert Dewar  <dewar@adacore.com>
486         * sem_ch8.adb: Minor reformatting.
488 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
490         * sem_ch3.adb (Access_Subprogram_Declaration): Use
491         Generate_Reference_To_Formals.
492         * lib-xref.adb (Generate_Reference_To_Formals): In the case of
493         access to subprograms, the formals are found in the designated
494         subprogram type.
496 2013-07-05  Robert Dewar  <dewar@adacore.com>
498         * gnat_ugn.texi: Document that comments can be lined up with
499         previous non-blank line.
500         * styleg.adb (Check_Comment): Allow indentation to match previous
501         non-blank line (Same_Column_As_Previous_Line): New function
503 2013-07-05  Robert Dewar  <dewar@adacore.com>
505         * gnat_rm.texi: Update doc on missing pragmas.
506         * sem_ch12.adb: Minor comment additions.
508 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
510         * sem_prag.adb (Analyze_Pragma): Ensure that
511         Contract_Cases, Depends and Global are analyzed when they apply
512         to a subprogram compilation unit. The pragmas are all added
513         unconditionally to the construct's contract. This ensures that
514         proof tools can locate the pragmas.
516 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
518         * sem_ch8.adb (Freeze_Actual_Profile): An instance within
519         a generic unit does not freeze a generic private type of the
520         enclosing generic. This rule must also apply to a type derived
521         from a generic private type.
523 2013-07-05  Arnaud Charlet  <charlet@adacore.com>
525         * gnat_rm.texi: Add missing documentation for pragmas.
527 2013-07-05  Yannick Moy  <moy@adacore.com>
529         * sem_ch12.adb: Minor comment.
531 2013-07-05  Robert Dewar  <dewar@adacore.com>
533         * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used
534         together.
535         * switch-c.adb: Do not allow -gnatD and -gnatR to both be
536         specified.
538 2013-07-05  Robert Dewar  <dewar@adacore.com>
540         * gnat_rm.texi: Add missing documentation for pragmas.
541         * sem_ch8.adb: Minor reformatting.
542         * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used
543         together.
545 2013-07-05  Yannick Moy  <moy@adacore.com>
547         * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force
548         instance of subprogram body in SPARK mode, by testing Expander_Active
549         (set in SPARK mode) instead of Full_Expander_Active (not set in
550         SPARK mode).
551         * sem_ch8.adb: Minor reformatting.
553 2013-07-05  Robert Dewar  <dewar@adacore.com>
555         * freeze.adb (Freeze_Entity): Remove test of obsolete flag
556         Propagate_Exceptions, and associated useless code that did
557         nothing.
558         * gnat_rm.texi: Add documentation for obsolete pragma
559         Propagate_Exceptions.
560         * opt.ads (Propagate_Exceptions): Obsolete flag removed.
561         * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions):
562         Remove useless and obsolete setting of Propagate_Exceptions flag.
564 2013-07-05  Robert Dewar  <dewar@adacore.com>
566         * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes.
568 2013-07-05  Robert Dewar  <dewar@adacore.com>
570         * gnat_rm.texi: Add missing doc for various pragmas.
572 2013-07-05  Robert Dewar  <dewar@adacore.com>
574         * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting.
575         * gnat_rm.texi: Document pragma Profile_Warnings.
576         * restrict.ads, sem_prag.adb: Minor reformatting.
578 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
580         * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly
581         a formal subprogram that was defaulted in the formal package.
583 2013-07-05  Thomas Quinot  <quinot@adacore.com>
585         * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore
586         N_Implicit_Label_Declaration nodes.
588 2013-07-05  Robert Dewar  <dewar@adacore.com>
590         * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting.
592 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
594         * sem_ch12.adb (Copy_Generic_Node): Check that name in function
595         call is a valid entity name before preserving entity in generic
596         copy.
598 2013-07-05  Thomas Quinot  <quinot@adacore.com>
600         * par-ch5.adb: Minor reformatting.
602 2013-07-05  Thomas Quinot  <quinot@adacore.com>
604         * sinfo.ads: Minor clarification to documentation for
605         N_Implicit_Label_Declaration.
607 2013-07-05  Hristian Kirtchev  <kirtchev@adacore.com>
609         * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the
610         values of all remaining constants.
611         (Rcheck_35): New routine along with pragmas Export and No_Return.
612         (Rcheck_PE_Aliased_Parameters): New routine along with pragmas
613         Export and No_Return.
614         (Rcheck_PE_All_Guards_Closed,
615         Rcheck_PE_Bad_Predicated_Generic_Type,
616         Rcheck_PE_Current_Task_In_Entry_Body,
617         Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise,
618         Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value,
619         Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object,
620         Rcheck_PE_Potentially_Blocking_Operation
621         Rcheck_PE_Stubbed_Subprogram_Called,
622         Rcheck_PE_Unchecked_Union_Restriction,
623         Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool,
624         Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion,
625         Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception):
626         Update the use of Rmsg_XX.
627         (Rcheck_17, Rcheck_18, Rcheck_19,
628         Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25,
629         Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31,
630         Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding
631         renamed subprograms.
632         * checks.adb: Add with and use clause for Stringt.
633         (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in
634         all subprograms of Apply_Parameter_Aliasing_Checks. Remove local
635         variable Cond. Initialize Check at the start of the routine. Use
636         routine Overlap_Check to construct a simple or a detailed run-time
637         check. Update the creation of the simple check.
638         (Overlap_Check): New routine.
639         * exp_ch11.adb (Get_RT_Exception_Name): Add a value for
640         PE_Aliased_Parameters.
641         * types.ads: Add new enumeration literal
642         PE_Aliased_Parameters. Update the corresponding integer values
643         of all RT_Exception_Code literals.
644         * types.h: Add new constant PE_Aliased_Parameters. Correct the
645         values of all remaining constants.
647 2013-07-05  Yannick Moy  <moy@adacore.com>
649         * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in
650         documentation.
652 2013-07-05  Ed Schonberg  <schonberg@adacore.com>
654         * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide
655         condition, when replacing the name of a formal by a conversion
656         to the class-wide type, exempt selector names that appear in
657         parameter associations.
659 2013-06-13  Eric Botcazou  <ebotcazou@adacore.com>
661         * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete.
662         * gcc-interface/gigi.h (annotate_object): Adjust prototype.
663         (convert_vms_descriptor): Likewise.
664         * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer
665         types by double dereference.
666         (annotate_object): Remove BY_DOUBLE_REF parameter and adjust.
667         (gnat_to_gnu_entity): Adjust calls to annotate_object.
668         * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double
669         dereference.
670         (Call_to_gnu): Likewise.
671         (build_function_stub): Adjust call to convert_vms_descriptor.
672         (Subprogram_Body_to_gnu): Adjust call to annotate_object.
673         * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF
674         parameter and adjust.
676 2013-05-30  Eric Botcazou  <ebotcazou@adacore.com>
678         * gcc-interface/Makefile.in (arm% androideabi): Robustify.
680 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
682         * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not
683         check that access types have a set size.
685 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
687         * gcc-interface/decl.c (vinfo_t): New type and associated vector.
688         (components_to_record): Change return type to bool.
689         Lay out the variants in two passes.  Do not force a specific layout for
690         the variant part if the variants do not have a representation clause.
691         Take the alignment of the variant part into account when laying out
692         variants without rep clause in a record type with a partial rep clause.
693         (create_rep_part): Do not set the position of the field.
695 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
697         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
698         to avoid generating an overflow for -1.
700 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
702         * gcc-interface/gigi.h (create_type_decl): Adjust prototype.
703         (create_label_decl): Complete prototype.
704         (process_attributes): Declare.
705         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to
706         create_type_decl throughout.
707         <E_Enumeration_Type>: Do the layout of the type manually and call
708         process_attributes on it.  Reindent.
709         <E_Enumeration_Subtype>: Minor tweak.
710         <E_Floating_Point_Subtype>: Reindent.
711         <E_Array_Subtype>: Call process_attributes on the array type built
712         for a packed array type.
713         <E_Record_Type>: Call process_attributes on the type.
714         <E_Record_Subtype>: Likewise.
715         <E_Access_Type>: Likewise.
716         <E_Subprogram_Type>: Likewise.
717         Likewise for all types at the end of the processing.
718         * gcc-interface/utils.c (make_aligning_type): Adjust call to
719         create_type_decl.
720         (maybe_pad_type): Likewise.
721         (create_index_type): Likewise.
722         (create_type_decl): Remove attr_list parameter and associated code.
723         (create_var_decl_1): Call process_attributes on the variable.
724         (process_attributes): Take a pointer to the object and add in_place
725         and gnat_node parameters and adjust throughout.
726         <ATTR_MACHINE_ATTRIBUTE>: Pass ATTR_FLAG_TYPE_IN_PLACE only on demand
727         and set the input location.
728         Zap the attribute list at the end.
729         (create_subprog_decl): Call process_attributes on the subprogram.
730         (build_unc_object_type): Adjust call to create_type_decl.
731         (handle_vector_type_attribute): Remove dead code.
733 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
735         * gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
736         * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter
737         for the position of the associated TYPE_DECL.
738         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above.
739         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
741 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
743         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely
744         elaborate the full view of a type with a freeze node.
745         * gcc-interface/trans.c (process_type): Add explicit predicate.
747 2013-05-26  Eric Botcazou  <ebotcazou@adacore.com>
749         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Always build the
750         UNC variable for aliased objects with unconstrained nominal subtype.
752 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
754         * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare.
755         * gcc-interface/trans.c (gigi): Call it.
756         * gcc-interface/misc.c (gnat_init_gcc_fp): New function.
758 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
760         * gcc-interface/gigi.h (enum inline_status_t): New type.
761         (create_subprog_decl): Adjust prototype.
762         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Adjust
763         calls to create_subprog_decl.
764         (get_minimal_subprog_decl): Likewise.
765         * gcc-interface/trans.c (gigi): Likewise.
766         (build_raise_check): Likewise.
767         (establish_gnat_vms_condition_handler): Likewise.
768         (Compilation_Unit_to_gnu): Likewise.
769         (gnat_to_gnu): Likewise.
770         * gcc-interface/utils.c (create_subprog_decl): Change inline_flag
771         parameter to inline_status and implement for suppressed inlining.
773 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
775         * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define.
776         (LOOP_STMT_UNROLL): Likewise.
777         (LOOP_STMT_NO_VECTOR): Likewise.
778         (LOOP_STMT_VECTOR): Likewise.
779         * gcc-interface/trans.c (struct loop_info_d): Replace label field
780         with stmt field.
781         (Pragma_to_gnu) <Pragma_Loop_Optimize>: New case.
782         (Loop_Statement_to_gnu): Save the loop statement onto the stack
783         instead of the label.
784         (gnat_to_gnu) <N_Exit_Statement>: Retrieve the loop label.
786 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
788         * gcc-interface/trans.c: Include diagnostic.h and opts.h.
789         (Pragma_to_gnu) <Pragma_Warnings>: New case.
791 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
793         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
794         a handful of local variables.
795         For a derived untagged type that renames discriminants, change the type
796         of the stored discriminants to a subtype with the bounds of the type
797         of the visible discriminants.
798         (build_subst_list): Rename local variable.
800 2013-05-16  Jason Merrill  <jason@redhat.com>
802         * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex.
804 2013-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
806         PR ada/57188
807         * gcc-interface/Makefile.in: Allow for amd64 solaris2.
809 2013-05-07  Eric Botcazou  <ebotcazou@adacore.com>
811         PR ada/56474
812         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Use
813         int_const_binop to shift bounds by 1 when they are integer constants.
815 2013-04-25  Arnaud Charlet  <charlet@adacore.com>>
817         * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b}
819 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
821         * checks.adb (Apply_Predicate_Check): Update the comment associated
822         with the call to Check_Expression_Against_Static_Predicate.
823         * sem_ch3.adb (Analyze_Object_Declaration): Update the comment
824         associated with the call to Check_Expression_Against_Static_Predicate.
825         * sem_util.adb (Check_Expression_Against_Static_Predicate):
826         Broaden the check from a static expression to an expression with
827         a known value at compile time.
828         * sem_util.ads (Check_Expression_Against_Static_Predicate): Update
829         comment on usage.
831 2013-04-25  Thomas Quinot  <quinot@adacore.com>
833         * exp_attr.adb (Expand_N_Attribute_Reference, cases Position,
834         First_Bit, and Last_Bit): Fix incorrect test in implementation of
835         RM 2005 13.5.2(3/2).
837 2013-04-25  Claire Dross  <dross@adacore.com>
839         * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb,
840         a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads
841         (Query_Element): Removed.
842         (Update_Element): Removed.
843         (Insert): The version with no New_Item specified is removed.
844         (Iterate): Removed.
845         (Write): Removed.
846         (Read): Removed.
847         Every check of fields Busy and Lock has been removed.
849 2013-04-25  Robert Dewar  <dewar@adacore.com>
851         * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove
852         call to S14_Pragma (Find_Related_Subprogram): Require proper
853         placement in subprogram body (Find_Related_Subprogram): Detect
854         duplicates for all cases (Find_Related_Subprogram): Handle case
855         of spec nested inside body.
857 2013-04-25  Arnaud Charlet  <charlet@adacore.com>
859         * par-prag.adb: Fix typo.
861 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
863         * checks.adb (Apply_Predicate_Check): If the type has a static
864         predicate and the expression is also static, check whether the
865         expression satisfies the predicate.
866         * sem_ch3.adb (Analyze_Object_Declaration): If the type has a
867         static predicate and the expression is also static, see if the
868         expression satisfies the predicate.
869         * sem_util.adb: Alphabetize several routines.
870         (Check_Expression_Against_Static_Predicate): New routine.
871         * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine.
873 2013-04-25  Robert Dewar  <dewar@adacore.com>
875         * gnat_rm.texi: Document Reason argument for pragma Warnings.
876         * par-prag.adb: Handle Reason parameter for pragma Warnings.
877         * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument.
878         * snames.ads-tmpl (Name_Reason): New name entry.
880 2013-04-25  Yannick Moy  <moy@adacore.com>
882         * exp_spark.adb (Expand_SPARK_N_In): Remove procedure.
883         (Expand_SPARK): Remove special expansion for membership tests.
885 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
887         * exp_ch3.adb (Expand_N_Object_Declaration): Update all places
888         that should use constant Base_Typ. When building an invariant
889         check, account for invariants coming from the base type. Prevent
890         the creation of a junk invariant check when the related object
891         is of an array type and it is initialized with an aggregate.
892         * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use
893         the base type to create an invariant call when the type of the
894         expression is a composite subtype.
896 2013-04-25  Vasiliy Fofanov  <fofanov@adacore.com>
898         * a-cborse.adb: Fix minor typo.
900 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
902         * sem_ch6.adb (Different_Generic_Profile): A spec and body
903         match in an instance if a subtype declaration that renames a
904         generic actual with the same name appears between spec and body.
906 2013-04-25  Robert Dewar  <dewar@adacore.com>
908         * sem_util.adb: Minor reformatting.
910 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
912         * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to
913         fold strings with a single others choice only if there are no
914         expressions in the aggregate.
916 2013-04-25  Arnaud Charlet  <charlet@adacore.com>
918         * gnat_ugn.texi: Update doc on Ada 2012 default mode.
920 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
922         * exp_ch6.adb: Add with and use clause for Stringt.
923         (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters
924         Decls and Stmts along with comments on their usage.
925         * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6.
926         * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6.
927         (Process_Contract_Cases): Update the call to Expand_Contract_Cases.
929 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
931         * gnat_rm.texi: Minor editing, to clarify use of dimension aspects.
932         * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an
933         aggregate for a packed type, which may be converted into an
934         unchecked conversion of an object.
936 2013-04-25  Robert Dewar  <dewar@adacore.com>
938         * sem_prag.adb: Minor code reorganization (correct misspelling
939         Restiction).
940         * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting.
941         * gnat_rm.texi: Document impl-defined aspects.
942         * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor
943         reformatting.
945 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
947         * einfo.adb (Set_Abstract_States): The attribute now applies
948         to generic packages.
949         * sem_ch4.adb (Referenced): Moved to sem_util.
950         * sem_ch7.adb (Unit_Requires_Body): A [generic] package with
951         a non-null abstract state needs a body.
952         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls
953         to Collect_Subprogram_Inputs_Outputs.
954         (Analyze_Global_Item): Verify the proper usage of an item with mode
955         In_Out or Output relative to the enclosing context.
956         (Analyze_Pragma): Abstract_State can now be applied to a generic
957         package. Do not reset the Analyzed flag for pragmas Depends and Global
958         as this is not needed.
959         (Appears_In): Moved to library level.
960         (Check_Mode_Restiction_In_Enclosing_Context): New routine.
961         (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add
962         formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global
963         seen along with comments on usage.
964         * sem_util.ads, sem_util.adb (Referenced): New routine.
966 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
968         * sem_ch6.adb (Expand_Contract_Cases): Generate
969         detailed error messages only when switch -gnateE is in effect.
971 2013-04-25  Yannick Moy  <moy@adacore.com>
973         * sem_attr.adb (Analyze_Attribute): Do not issue
974         an error for a possibly misplaced 'Result or 'Old attribute when
975         analyzing the aspect.
977 2013-04-25  Robert Dewar  <dewar@adacore.com>
979         * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
981 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
983         * sem_ch4.adb (Analyze_Quantified_Expression):
984         Add local variable Loop_Id. Verify that the loop variable
985         is used within the condition of the quantified expression.
986         (Referenced): New routine.
988 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
990         * sem_case.adb (Analyze_Choices): Enhance the error message
991         given on a bad use of subtype predicate.
992         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
993         the error message given on a bad use of subtype predicate.
994         * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
995         Suggest_Static. Emit an extra error message advising how to
996         remedy the bad use of the predicate if the context warrants it.
997         * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
998         Suggest_Static along with a comment explaining its usage.
1000 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1002         * sem_disp.adb (Check_Dispatching_Operation): Further refinement
1003         to checks for AI05-0125: the check for a hidden primitive that
1004         may be overridden by the new declaration only applies if the
1005         hidden operation is never declared. This is not the case if the
1006         operation is declared in a parent unit.
1008 2013-04-25  Robert Dewar  <dewar@adacore.com>
1010         * debug.adb: Remove d.X and d.Y entries and documentation.
1011         * exp_ch4.adb (Expand_N_If_Expression): Remove special code used
1012         if expression with actions not available (now always available).
1013         (Expand_Short_Circuit_Operator): Same change.
1014         * gnat1drv.adb (Adjust_Global_Switches) Remove setting
1015         Use_Expression_With_Actions flag, since this is now obsolete.
1016         * opt.ads (Use_Expression_Actions): Removed (always True now).
1017         * sinfo.ads: Minor comment updates.
1019 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1021         * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array
1022         subtype whose base type is currently private, install full view
1023         when compiling instance body.
1025 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1027         * sem_disp.adb (Check_Dispatching_Operation): Refine checks for
1028         AI05-0125: the check for a hidden primitive that may be overridden
1029         by the new declaration is only performed if the declaration comes
1030         from source, and it must carry an explicit overriding indicator.
1032 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1034         * einfo.adb (Abstract_States): The attribute now applies to
1035         generic packages.
1036         * sem_ch3.adb (Analyze_Object_Declaration): Check whether an
1037         object declaration introduces an illegal hidden state.
1038         * sem_prag.adb (Analyze_Abstract_State): Check whether a state
1039         declaration introduces an illegal hidden state.
1040         * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine.
1042 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1044         * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may
1045         be to a protected function, in which case the name in the call
1046         is a selected component.
1048 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1050         * sem_ch4.adb (Analyze_Quantified_Expression):
1051         Warn on a suspicious use of quantifier "some" when "all" was meant.
1052         (No_Else_Or_Trivial_True): New routine.
1054 2013-04-25  Robert Dewar  <dewar@adacore.com>
1056         * einfo.ads, einfo.adb: Put back with/use for Namet.
1057         (Get_Pragma): New name (wi new spec) for Find_Pragma.
1058         * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with
1059         different interface.
1061 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1063         * sem_ch3.adb (Is_Visible_Component): In an instance all
1064         components are visible.
1066 2013-04-25  Matthew Heaney  <heaney@adacore.com>
1068         * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for
1069         tampering when container empty.
1070         * a-crbtgk.adb (Ceiling, Find, Floor): ditto.
1071         (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
1072         ditto.
1074 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1076         * par-ch12.adb: Move aspects from package specification to
1077         generic package declaration.
1078         * sem_ch12.adb: Analyze aspect specifications before building
1079         and analyzing the generic copy, so that the generated pragmas
1080         are properly taken into account.
1081         * sem_ch13.adb: For compilation unit aspects that apply to a
1082         generic package declaration, insert corresponding pragmas ahead
1083         of visible declarations.
1084         * sprint.adb: Display properly the aspects of a generic type
1085         declaration.
1087 2013-04-25  Robert Dewar  <dewar@adacore.com>
1089         * frontend.adb: Minor reformatting.
1091 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1093         * einfo.ads: Extend documentation on use of Is_Private_Ancestor
1094         for untagged types.
1095         * sem_ch3.adb (Is_Visible_Component): Refine predicate for the
1096         case of untagged types derived from private types, to reject
1097         illegal selected components.
1099 2013-04-25  Gary Dismukes  <dismukes@adacore.com>
1101         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test
1102         for case of selecting from an unexpanded implicit dereference
1103         and do not make a recursive call on such a prefix.
1105 2013-04-25  Doug Rupp  <rupp@adacore.com>
1107         * targparm.adb (VXF{_Str}): New tag for vaxfloat.
1108         (Get_Target_Parameters): Handle VXF tag.
1109         * targparm.ads (VAX_Float_On_Target): New boolean.
1110         * system-vms-ia64.ads (VAX_Float): New boolean.
1111         * frontend.adb (Frontend): Handle VAX float boolean.
1113 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1115         * einfo.ads, einfo.adb: Remove with and use clauses for Namet.
1116         (Find_Pragma): New routine.
1117         * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo.
1119 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1121         * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited
1122         predicate.
1123         (Add_Predicates): Save the static predicate for diagnostics and error
1124         reporting purposes.
1125         (Process_PPCs): Remove local variables Dynamic_Predicate_Present and
1126         Static_Predicate_Present. Add local variable Static_Pred. Ensure that
1127         the expression of a static predicate is static.
1129 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1131         * einfo.adb (Is_Ghost_Subprogram): Remove useless code.
1133 2013-04-25  Robert Dewar  <dewar@adacore.com>
1135         * gnat_rm.texi: Minor addition of index entry.
1137 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1139         * sem_ch6.adb (Check_Access_Invariants): Test whether an
1140         invariant procedure is empty before generating a call to it.
1141         (Has_Enabled_Predicate): New routine.
1142         (Has_Null_Body): New routine.
1143         (Process_PPCs): Test whether an invariant procedure is
1144         empty before generating a call to it. Test whether predicates are
1145         enabled for a particular type before generating a predicate call.
1146         * sem_util.ads, sem_util.adb (Find_Pragma): New routine.
1148 2013-04-25  Robert Dewar  <dewar@adacore.com>
1150         * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl,
1151         snames.ads-tmpl: Minor reformatting.
1153 2013-04-25  Thomas Quinot  <quinot@adacore.com>
1155         * sem_ch7.adb: Minor reformatting.
1157 2013-04-25  Robert Dewar  <dewar@adacore.com>
1159         * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed).
1160         * s-tarest.adb: Minor reformatting.
1162 2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
1164         * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant
1165         tables.
1166         * einfo.adb: Remove with and use clause for Aspects.
1167         (Is_Ghost_Function): Removed.
1168         (Is_Ghost_Entity): New routine.
1169         (Is_Ghost_Subprogram): New routine.
1170         * einfo.ads: Remove synthesized attribute Is_Ghost_Function
1171         along with its uses in entities.  Add synthesized attributes
1172         Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related
1173         entities.
1174         (Is_Ghost_Function): Removed.
1175         (Is_Ghost_Entity): New routine.
1176         (Is_Ghost_Subprogram): New routine.
1177         * par-prag.adb: Remove pragma Ghost from the processing machinery.
1178         * repinfo.adb (List_Mechanisms): Add a value for convention Ghost.
1179         * sem_attr.adb (Analyze_Access_Attribute): Update the check
1180         for ghost subprograms.
1181         * sem_ch4.adb (Analyze_Call): Update the check for calls
1182         to ghost subprograms.
1183         (Check_Ghost_Function_Call): Removed.
1184         (Check_Ghost_Subprogram_Call): New routine.
1185         * sem_ch6.adb (Check_Convention): Rewritten.
1186         (Check_Overriding_Indicator): Remove the check for overriding
1187         ghost functions.
1188         (Convention_Of): New routine.
1189         * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost
1190         generic actual subprograms.
1191         * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost.
1192         * sem_prag.adb: Remove the value for pragma Ghost from
1193         table Sig_Flags.
1194         (Analyze_Pragma): Remove the processing for pragma Ghost.
1195         (Process_Convention): Emit an error when a ghost
1196         subprogram attempts to override.
1197         (Set_Convention_From_Pragma): Emit an error when a ghost subprogram
1198         attempts to override.
1199         * sinfo.ads: Clarify the usage of field Label_Construct.
1200         * snames.adb-tmpl (Get_Convention_Id): Add an entry for
1201         predefined name Ghost.
1202         (Get_Convention_Name): Add an entry for convention Ghost.
1203         * snames.ads-tmpl: Move predefined name Ghost to the sublist
1204         denoting conventions. Add convention id Ghost. Remove pragma
1205         id Ghost.
1207 2013-04-25  Ed Schonberg  <schonberg@adacore.com>
1209         * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child
1210         units if within a generic hierarchy.
1212 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1214         * exp_ch6.adb (Expand_Actuals): Add a predicate check on an
1215         actual the related type has a predicate function.
1216         * sem_ch3.adb (Constant_Redeclaration): Ensure that the related
1217         type has an invariant procedure before building a call to it.
1218         * sem_ch6.adb (Append_Enabled_Item): New routine.
1219         (Check_Access_Invariants): Use routine
1220         Append_Enabled_Item to chain onto the list of postconditions.
1221         (Contains_Enabled_Pragmas): Removed.
1222         (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto
1223         the list of postconditions.
1224         (Invariants_Or_Predicates_Present): Removed.
1225         (Process_PPCs): Partially reimplemented.
1227 2013-04-24  Sergey Rybin  <rybin@adacore.com frybin>
1229         * tree_io.ads: Update ASIS_Version_Number because of changes
1230         in the way how entities are chained in a scope by means of
1231         Next_Entity link.
1233 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1235         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
1236         Storage_Size): If the clause is not from an aspect, insert
1237         assignment to size variable of task type at the point of the
1238         clause, not after the task definition, to prevent access before
1239         elaboration in the back-end.
1241 2013-04-24  Yannick Moy  <moy@adacore.com>
1243         * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume.
1245 2013-04-24  Yannick Moy  <moy@adacore.com>
1247         * gnat_rm.texi: Document 'Loop_Entry.
1249 2013-04-24  Jose Ruiz  <ruiz@adacore.com>
1251         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for
1252         fall-back termination handlers from the parents, because they apply
1253         only to dependent tasks.
1254         * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back
1255         termination handlers because the environment task has no parent,
1256         and if it defines one of these handlers it does not apply to
1257         itself because they apply only to dependent tasks.
1259 2013-04-24  Robert Dewar  <dewar@adacore.com>
1261         * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting.
1263 2013-04-24  Robert Dewar  <dewar@adacore.com>
1265         * gnat_rm.texi: Document 'Update attribute.
1266         * sem_attr.adb (Analyze_Attribute, case Update): Remove call
1267         to S14_Attribute (S14_Attribute): removed.
1269 2013-04-24  Robert Dewar  <dewar@adacore.com>
1271         * interfac.ads: Add size clauses for IEEE_Float_32/64
1273 2013-04-24  Claire Dross  <dross@adacore.com>
1275         * gnat1drv.adb (Adjust_Global_Switches): Remove
1276         special assignment of Use_Expression_With_Actions for SPARK_Mode.
1278 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1280         * checks.adb (Apply_Predicate_Check): Check for the presence
1281         of the dynamic predicate aspect when trying to determine if the
1282         predicate of a type is non-static.
1283         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
1284         for the presence of the dynamic predicate aspect when trying to
1285         determine if the predicate of a type is non- static.
1286         * sem_ch13.adb (Add_Call): Capture the nature of the
1287         inherited ancestor predicate.
1288         (Build_Predicate_Functions): Update comments. Rewrite the checks on
1289         static predicate application. Complain about the form of a non-static
1290         expression only when the type is static.
1292 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1294         * sem_prag.adb: Add guard to tree traversal.
1296 2013-04-24  Vincent Celier  <celier@adacore.com>
1298         * clean.adb (Clean): Remove local variable Root_Environment,
1299         use Makeutl.Root_Environment instead.
1300         * gnatcmd.adb: Remove local variable Root_Environment, use
1301         Makeutl.Root_Environment instead.
1302         * make.adb (Gnatmake): Remove local variable Root_Environment,
1303         use Makeutl.Root_Environment instead.
1304         * prj-makr.adb: Remove local variable Root_Environment, use
1305         Makeutl.Root_Environment instead.
1307 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1309         * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the
1310         extraction of the declarative part of the conditional block. Move
1311         the processing of simple infinite loops to the start of the
1312         expansion logic. Correct the check which determines whether the
1313         proper scope is installed in visibility.
1314         * sem_attr.adb (Analyze_Attribute): Add local variable Attr
1315         to keep track of the attribute in case the enclosing indexed
1316         component has to be rewritten. When searching for the enclosing
1317         loop, start from the proper attribute reference in case of a
1318         rewriting. Do not allow for 'Loop_Entry to appear in pragma
1319         Assert. Replace loop variable J with Index. Set the type of the
1320         proper attribute.
1321         * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized
1322         block that services a loop statement subject to at least one
1323         'Loop_Entry attribute.
1325 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1327         * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to
1328         resolve a fixed point operation, use first subtype to determine
1329         whether type and operator are declared in the same list of
1330         declarations.
1332 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1334         * par-ch6.adb (P_Subprogram): Detect an illegal
1335         placement of the aspect specification list in the context of
1336         expression functions.
1338 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1340         * exp_ch4.adb (Expand_N_Allocator):  If the designated object
1341         has tasks, and the pointer type is an itype that has no master
1342         id, create a master renaming in the current context, which can
1343         only be an init_proc.
1345 2013-04-24  Robert Dewar  <dewar@adacore.com>
1347         * sem_ch3.adb, sem_ch7.adb: Minor reformatting.
1348         * gnat_rm.texi: Document pragma Loop_Invariant.
1349         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is
1350         no longer an S14_Attribute.
1351         * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine
1352         processing with Assert, allow message parameter, remove call
1353         to S14_Pragma.
1355 2013-04-24  Thomas Quinot  <quinot@adacore.com>
1357         * exp_ch4.adb: Minor reformatting.
1359 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1361         * sem_ch7.adb (Swap_Private_Dependents): New internal routine
1362         to Install_Private_Declarations, to make the installation of
1363         private dependents recursive in the presence of child units.
1364         * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly
1365         the Private_Dependents of a private subtype.
1367 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1369         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the
1370         retrieval of the block declarations.
1371         * par-ch4.adb (P_Name): Let the name parsing machinery create
1372         a sequence of nested indexed components for attribute Loop_Entry.
1373         * sem_attr.adb (Analyze_Attribute): Add local constant
1374         Context. Reimplement part of the analysis of attribute Loop_Entry.
1375         (Convert_To_Indexed_Component): Removed.
1376         * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze
1377         an indexed component after it has been rewritten into attribute
1378         Loop_Entry.
1380 2013-04-24  Yannick Moy  <moy@adacore.com>
1382         * snames.ads-tmpl: Minor change to list
1383         Loop_(In)variant not in configuration pragma.
1384         * sem_ch3.adb (Analyze_Declarations): Do not look at the original node
1385         for analyzing the expressions in pre/postconditions.
1387 2013-04-24  Robert Dewar  <dewar@adacore.com>
1389         * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
1390         reformatting.
1392 2013-04-24  Yannick Moy  <moy@adacore.com>
1394         * sem_ch6.adb (Analyze_Generic_Subprogram_Body,
1395         Analyze_Subprogram_Body_Helper): Reset contract node to Empty
1396         before setting entity to E_Subprogram_Body.
1397         * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to
1398         Empty before setting entity to E_Subprogram_Body.
1400 2013-04-24  Vincent Celier  <celier@adacore.com>
1402         * gnat_ugn.texi: Document new gnatls switch -aPdir.
1403         * gnatcmd.adb: Pass switch -aP<dir> to gnatls.
1404         * gnatls.adb (Scan_Ls_Arg): Process new switch -aP<dir>. Issue
1405         a warning for unknown switches.
1406         (Usage): Add line for new switch -aPdir.
1408 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1410         * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true
1411         if the type comes from a limited view, so that task attributes can be
1412         constructed.
1414 2013-04-24  Yannick Moy  <moy@adacore.com>
1416         * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if
1417         full expansion is not enabled.
1419 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1421         * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra
1422         formals if the type does not yet have a completion, and thus
1423         has no underlying view.
1425 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1427         * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect
1428         specification for Address as a reference, to suppress warnings
1429         on entities that may be read by an external device.
1431 2013-04-24  Sergey Rybin  <rybin@adacore.com frybin>
1433         * gnat_ugn.texi: Add description of '--help' and '--version'
1434         options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp.
1436 2013-04-24  Arnaud Charlet  <charlet@adacore.com>
1438         * gnat_rm.texi: Minor syntax fix.
1440 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1442         * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on
1443         what and why is being analyzed. Remove the decoration of renamings as
1444         this simply falls out of the general analysis mechanism.
1446 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1448         * sem_res.adb (Explain_Redundancy): New routine.
1449         (Resolve_Equality_Op): Place the error concerning a redundant
1450         comparison to True at the "=". Try to explain the nature of the
1451         redundant True.
1453 2013-04-24  Javier Miranda  <miranda@adacore.com>
1456         * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No
1457         check in interface thunks since it is performed at the caller
1458         side.
1459         (Expand_Simple_Function_Return): No accessibility check
1460         needed in thunks since the check is done by the target routine.
1462 2013-04-24  Vincent Celier  <celier@adacore.com>
1464         * xref_lib.adb (Add_Entity): Use the canonical file names
1465         so that source file names with capital letters are found on
1466         platforms where file names are case insensitive.
1468 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1470         * par-ch4.adb (P_Name): Continue to parse the name extension when the
1471         construct is attribute Loop_Entry. Do not convert the attribute
1472         reference into an indexed component when there is at least one
1473         expression / range following 'Loop_Entry.
1475 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1477         * sem_ch6.adb (Contains_Enabled_Pragmas): New routine.
1478         (Process_PPCs): Generate procedure _Postconditions
1479         only when the context has invariants or predicates or enabled
1480         aspects/pragmas.
1482 2013-04-24  Thomas Quinot  <quinot@adacore.com>
1484         * g-socket.adb (Host_Entry): Introduce intermediate copy of
1485         memory location pointed to by Hostent_H_Addr, as it might not
1486         have sufficient alignment.
1488 2013-04-24  Yannick Moy  <moy@adacore.com>
1490         * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before
1491         calling subprograms which may read it.
1493 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1495         * einfo.adb: Remove Loop_Entry_Attributes from the usage of
1496         nodes. Flag 260 is now used.
1497         (Has_Loop_Entry_Attributes): New routine.
1498         (Loop_Entry_Attributes): Removed.
1499         (Set_Has_Loop_Entry_Attributes): New routine.
1500         (Set_Loop_Entry_Attributes): Removed.
1501         (Write_Entity_Flags): Write out Flag 260.
1502         (Write_Field10_Name): Remove the output for Loop_Entry_Attributes.
1503         * einfo.ads: Remove attribute Loop_Entry_Attributes,
1504         its related comment and uses in nodes.  Add new attribute
1505         Has_Loop_Entry_Attributes, related comment and uses in loop nodes.
1506         (Has_Loop_Entry_Attributes): New routine and pragma Inline.
1507         (Loop_Entry_Attributes): Removed along with pragma Inline.
1508         (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline.
1509         (Set_Loop_Entry_Attributes): Removed along with pragma Inline.
1510         * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine.
1511         (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry.
1512         * exp_ch5.adb: Remove with and use clause for Elists.
1513         (Expand_Loop_Entry_Attributes): Removed.
1514         (Expand_N_Loop_Statement): Add local variable Stmt. Rename local
1515         constant Isc to Scheme. When a loop is subject to attribute
1516         'Loop_Entry, retrieve the nested loop from the conditional
1517         block. Move the processing of controlled object at the end of
1518         loop expansion.
1519         * sem_attr.adb (Analyze_Attribute): Do not chain attribute
1520         'Loop_Entry to its related loop.
1521         * sem_ch5.adb (Analyze_Loop_Statement): Add local variable
1522         Stmt. When the iteration scheme mentions attribute 'Loop_Entry,
1523         the entire loop is rewritten into a block.  Retrieve the nested
1524         loop in such cases to complete the analysis.
1525         * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New
1526         routine.
1527         (Subject_To_Loop_Entry_Attributes): New routine.
1529 2013-04-24  Robert Dewar  <dewar@adacore.com>
1531         * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check
1532         (Loop_Variant, xxx) rather than Assert (xxx).
1533         * gnat_rm.texi: Document pragma Loop_Variant.
1534         * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call
1535         to S14_Pragma.
1537 2013-04-24  Yannick Moy  <moy@adacore.com>
1539         * adabkend.adb, ali-util.adb, ali.adb, debug.adb,
1540         errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb,
1541         exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb,
1542         expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb,
1543         lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads,
1544         restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb,
1545         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb,
1546         sem_res.adb, sem_util.adb: Everything with name
1547         'Alfa' renamed in 'SPARK'. Update comments.
1548         Renaming of units with name 'Alfa', renamed with 'SPARK' instead.
1549         * exp_alfa.adb: renamed exp_spark.adb.
1550         * exp_alfa.ads: renamed exp_spark.ads.
1551         * get_alfa.adb: renamed get_spark_xrefs.adb.
1552         * get_alfa.ads: renamed get_spark_xrefs.ads.
1553         * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb.
1554         * put_alfa.adb: renamed put_spark_xrefs.adb.
1555         * put_alfa.ads: renamed put_spark_xrefs.ads.
1556         * alfa.adb: renamed spark_xrefs.adb.
1557         * alfa.ads: renamed spark_xrefs.ads.
1558         * alfa_test.adb: renamed spark_xrefs_test.adb.
1559         * gcc-interface/Make-lang.in: Update dependencies.
1561 2013-04-24  Robert Dewar  <dewar@adacore.com>
1563         * gnat_rm.texi: Document pragma Assume.
1564         * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as
1565         part of Assert, and no longer requires -gnatd.F
1567 2013-04-24  Robert Dewar  <dewar@adacore.com>
1569         * gnat_rm.texi: Document pragma Assert_And_Cut.
1570         * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove
1571         S14_Pragma call.
1573 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1575         * sem_aux.adb: Add guard in Available_View.
1577 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1579         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use
1580         Find_Related_Subprogram to find the associated subprogram.
1581         (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram
1582         to find the associated subprogram.
1583         (Analyze_Pragma): Use Find_Related_Subprogram to find the associated
1584         subprogram.
1586 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1588         * exp_ch6.adb: Remove with and use clause for Sem_Prag.
1589         (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze
1590         the contract of a subprogram.
1591         * sem_ch3.adb: Remove with and use clause for Sem_Prag.
1592         (Analyze_Declarations): Call Analyze_Subprogram_Contract to
1593         analyze the contract of a subprogram.
1594         * sem_ch6.adb (Analyze_Subprogram_Contract): New routine.
1595         (Check_Subprogram_Contract): Removed.
1596         * sem_ch6.ads (Analyze_Subprogram_Contract): New routine.
1597         (Check_Subprogram_Contract): Removed.
1598         (Expand_Contract_Cases): Add a guard against malformed contract cases.
1599         * sem_ch13.adb (Analyze_Aspect_Specifications): Call
1600         Decorate_Delayed_Aspect_And_Pragma to decorate aspects
1601         Contract_Cases, Depends and Global. Reimplement the analysis of
1602         aspect Contract_Cases.
1603         (Decorate_Delayed_Aspect_And_Pragma): New routine.
1604         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine.
1605         (Analyze_CTC_In_Decl_Part): Removed.
1606         (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases.
1607         (Analyze_Test_Case_In_Decl_Part): New routine.
1608         (Find_Related_Subprogram): New routine.
1609         (Requires_Profile_Installation): Add new formal Prag. Update
1610         the logic to take into account the origin of the pragma.
1611         * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine.
1612         (Analyze_CTC_In_Decl_Part): Removed.
1613         (Analyze_Test_Case_In_Decl_Part): New routine.
1615 2013-04-24  Robert Dewar  <dewar@adacore.com>
1617         * sem_prag.adb (Process_Convention): Move Stdcall tests to
1618         Set_Convention_From_Pragma so that they are applied to each
1619         entry of a homonym set.
1620         (Process_Convention): Don't try to set convention if already set.
1622 2013-04-24  Robert Dewar  <dewar@adacore.com>
1624         * gnatbind.adb: Minor reformatting.
1626 2013-04-24  Vincent Celier  <celier@adacore.com>
1628         * clean.adb (Gnatclean): Add the default project search
1629         directories in the project search path after scanning the
1630         switches on the command line.
1631         (Initialize): Do not put the default project search directories in the
1632         project search path.
1633         * gnatcmd.adb (GNATcmd): Add the default project search
1634         directories in the project search path after scanning the switches
1635         on the command line.
1636         * make.adb (Initialize): Add the default project search
1637         directories in the project search path after scanning the switches
1638         on the command line.
1640 2013-04-24  Yannick Moy  <moy@adacore.com>
1642         * restrict.ads (Restriction_Warnings): Initialize with all False value.
1644 2013-04-24  Robert Dewar  <dewar@adacore.com>
1646         * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function.
1647         * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of
1648         Predicate_Check.
1649         * snames.ads-tmpl (Name_Predicate_Check): New check name.
1650         * types.ads (Predicate_Check): New definition.
1651         * gnat_rm.texi: Add documentation for Predicate_Check.
1653 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1655         * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this
1656         is a renaming of predefined equality for an untagged record,
1657         add generated body to the freeze actions for the subprogram, to
1658         prevent freezing issues when the record has incomplete components.
1659         * exp_ch4.adb (Expand_Composite_Equality): If the type is a type
1660         without completion, return a predefined comparison instead of
1661         just False.  This may happen when building the expression for
1662         record equality, when some component has a type whose completion
1663         has not been seen yet. The operation will be analyzed an expanded
1664         after the type has been frozen, at which point all component
1665         types will have been completed, or an error reported.
1667 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1669         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay
1670         analysis of a Convention aspect.
1672 2013-04-24  Eric Botcazou  <ebotcazou@adacore.com>
1674         * fe.h (Machine_Overflows_On_Target): New macro and declaration.
1675         (Signed_Zeros_On_Target): Likewise.
1677 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1679         * exp_ch6.adb: Add with and use clause for Sem_Prag.
1680         (Freeze_Subprogram): Analyze all delayed aspects for a null
1681         procedure so that they are available when analyzing the
1682         internally-generated _Postconditions routine.
1683         * exp_ch13.adb: Remove with and use clause for Sem_Prag.
1684         (Expand_N_Freeze_Entity): Move the code that analyzes delayed
1685         aspects of null procedures to exp_ch6.Freeze_Subprogram.
1686         * sem_prag.adb (Analyze_Abstract_State): Update the check on
1687         volatile requirements.
1689 2013-04-24  Bob Duff  <duff@adacore.com>
1691         * ali-util.ads (Source_Record): New component Stamp_File
1692         to record from whence the Stamp came.
1693         * ali-util.adb (Set_Source_Table): Set Stamp_File component.
1694         * bcheck.adb (Check_Consistency): Print additional information in
1695         Verbose_Mode.
1696         * gnatbind.adb (Gnatbind): Print additional information in
1697         Verbose_Mode.
1699 2013-04-24  Robert Dewar  <dewar@adacore.com>
1701         * exp_ch13.adb, sem_prag.adb: Update comments.
1702         * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor
1703         reformatting.
1705 2013-04-24  Doug Rupp  <rupp@adacore.com>
1707         * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior.
1709 2013-04-24  Yannick Moy  <moy@adacore.com>
1711         * sinfo.ads: Minor correction of typo.
1713 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1715         * sem_ch3.adb: Create packed array only when expander is
1716         active.
1718 2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
1720         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only
1721         when the context warrants it.
1722         (Analyze_Global_In_Decl_List): Install the formals only when
1723         the context warrants it.
1724         (Requires_Profile_Installation): New routine.
1726 2013-04-24  Ed Schonberg  <schonberg@adacore.com>
1728         * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return
1729         type is a discriminated private type that does not require use
1730         of the secondary stack, a constrained subtype of the underlying
1731         type is created to convey the proper object size to the backend.
1732         If the return type is originally a private type, the return
1733         expression is wrapped in an unchecked_conversion. If the return
1734         expression is used subsequently in a call to the postcondition
1735         function, this conversion must be undone to prevent a spurious
1736         error on the analysis of that call.
1738 2013-04-23  Kai Tietz  <ktietz@redhat.com>
1740         PR target/55445
1741         * raise-gcc.c (__SEH__): Additional check that SjLj isn't active.
1743 2013-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1744             Pascal Obry    <obry@adacore.com>
1746         * gcc-interface/Makefile.in (targ): Fix target name check.
1747         (../../gnatmake$(exeext)): Add '+' for LTO.
1748         (../../gnatlink$(exeext)): Likewise.
1750 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
1752         * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
1753         pre- and post-conditions.
1754         (Expand_N_Task_Type_Declaration):
1755         Use the correct attribute to check for pre- and post-conditions.
1756         * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of
1757         pre- and post-conditions.  Analyze delayed classification items.
1758         * freeze.adb (Freeze_Entity): Use the correct attribute to
1759         check for pre- and post- conditions.
1760         * sem_ch3.adb (Analyze_Declarations): Correct the traversal
1761         of pre- and post-conditions as well as contract- and
1762         test-cases. Analyze delayed pragmas Depends and Global.
1763         * sem_ch6.adb (Check_Subprogram_Contract): Use the correct
1764         attribute to check for pre- and post-conditions, as well as
1765         contract-cases and test-cases.  (List_Inherited_Pre_Post_Aspects):
1766         Correct the traversal of pre- and post- conditions.
1767         (Process_Contract_Cases): Update the comment on usage. Correct
1768         the traversal of contract-cases.
1769         (Process_Post_Conditions): Update the comment on usage. Correct the
1770         traversal of pre- and post-conditions.
1771         (Process_PPCs): Correct the traversal of pre- and post-conditions.
1772         (Spec_Postconditions): Use the correct
1773         attribute to check for pre- and post- conditions, as well as
1774         contract-cases and test-cases.
1775         * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the
1776         actions related to aspects Depends and Global. Code refactoring
1777         for pre- and post-conditions.
1778         (Insert_Delayed_Pragma): New routine.
1779         * sem_prag.adb (Add_Item): New routine.
1780         (Analyze_Depends_In_Decl_Part): New routine.
1781         (Analyze_Global_In_Decl_Part): New routine.
1782         (Analyze_Pragma): Reimplement the actions related to aspects Depends and
1783         Global. Verify that a body acts as a spec for pragma Contract_Cases.
1784         (Chain_PPC): Use Add_Contract_Item to chain a pragma.
1785         (Chain_CTC): Correct the traversal of contract-
1786         and test-cases. Use Add_Contract_Item to chain a pragma.
1787         (Chain_Contract_Cases): Correct the traversal of contract-
1788         and test-cases. Use Add_Contract_Item to chain a pragma.
1789         (Check_Precondition_Postcondition): Update the comment on usage.
1790         (Check_Test_Case): Update the comment on usage.
1791         * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine.
1792         (Analyze_Global_In_Decl_Part): New routine.
1793         * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine.
1794         * sinfo.adb (Classifications): New routine.
1795         (Contract_Test_Cases): New routine.
1796         (Pre_Post_Conditions): New routine.
1797         (Set_Classifications): New routine.
1798         (Set_Contract_Test_Cases): New routine.
1799         (Set_Pre_Post_Conditions): New routine.
1800         (Set_Spec_CTC_List): Removed.
1801         (Set_Spec_PPC_List): Removed.
1802         (Spec_CTC_List): Removed.
1803         (Spec_PPC_List): Removed.
1804         * sinfo.ads: Update the structure of N_Contruct along with all
1805         related comments.
1806         (Classifications): New routine and pragma Inline.
1807         (Contract_Test_Cases): New routine and pragma Inline.
1808         (Pre_Post_Conditions): New routine and pragma Inline.
1809         (Set_Classifications): New routine and pragma Inline.
1810         (Set_Contract_Test_Cases): New routine and pragma Inline.
1811         (Set_Pre_Post_Conditions): New routine and pragma Inline.
1812         (Set_Spec_CTC_List): Removed.
1813         (Set_Spec_PPC_List): Removed.
1814         (Spec_CTC_List): Removed.
1815         (Spec_PPC_List): Removed.
1817 2013-04-23  Doug Rupp  <rupp@adacore.com>
1819         * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2
1820         to account for LIB$STOP not having the chance to add the PC and
1821         PSL fields.
1823 2013-04-23  Robert Dewar  <dewar@adacore.com>
1825         * sem_ch13.adb: Minor code reorganization (remove some redundant
1826         assignments).
1827         * sem_ch3.adb, sem_prag.adb: Minor reformatting.
1829 2013-04-23  Yannick Moy  <moy@adacore.com>
1831         * einfo.ads: Minor typo fix.
1832         * sem_ch13.adb (Build_Predicate_Functions): Reject cases where
1833         Static_Predicate is applied to a non-scalar or non-static type.
1834         * sem_prag.adb: Minor typo fix.
1836 2013-04-23  Doug Rupp  <rupp@adacore.com>
1838         * init.c (GNAT$STOP) [VMS]: New function.
1840 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
1842         * sem_ch3.adb: Add exp_pakd to context.
1843         (Constrain_Component_Type): If the component of the parent is
1844         packed, and the record subtype being built is already frozen,
1845         as is the case for an itype, the component type itself will not
1846         be frozen, and the packed array type for it must be constructed
1847         explicitly.
1849 2013-04-23  Thomas Quinot  <quinot@adacore.com>
1851         * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram.
1853 2013-04-23  Yannick Moy  <moy@adacore.com>
1855         * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero
1856         at declaration.
1857         * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration.
1858         * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration.
1859         * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration.
1860         * stylesw.adb (Save_Style_Check_Options): Protect testing the
1861         value of Style_Check_Comments_Spacing by a previous test that
1862         Style_Check_Comments is True.
1864 2013-04-23  Thomas Quinot  <quinot@adacore.com>
1866         * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to
1867         Original_Name, and move declaration to package body as this
1868         subprogram is not used from outside. Also clarify documentation.
1870 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
1872         * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with
1873         initialize_scalars, disable predicate checks on the generated
1874         assignment to an out scalar parameter.
1876 2013-04-23  Gary Dismukes  <dismukes@adacore.com>
1878         * sem_ch4.adb (Analyze_Allocator): Remove error
1879         check for "constrained in partial view" constraints entirely.
1881 2013-04-23  Robert Dewar  <dewar@adacore.com>
1883         * einfo.ads, sem_prag.ads: Minor reformatting.
1884         * errout.ads: Comment update.
1886 2013-04-23  Yannick Moy  <moy@adacore.com>
1888         * exp_ch5.adb: Minor typo.
1890 2013-04-23  Thomas Quinot  <quinot@adacore.com>
1892         * gnat_ugn.texi: Fix typo.
1894 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
1896         * einfo.ads: Minor documentation clarification.
1898 2013-04-23  Bob Duff  <duff@adacore.com>
1900         * types.ads: Fix incorrect comment.
1902 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
1904         * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
1905         Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
1906         description of purpose.
1907         * checks.adb (Apply_Discriminant_Check): Use above renaming.
1908         * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
1909         of the base type, rather than using the Object_Type predicate.
1910         * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
1911         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
1912         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
1913         * exp_ch4.adb (Expand_N_Allocator): Ditto.
1915 2013-04-23  Robert Dewar  <dewar@adacore.com>
1917         * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather
1918         than Assertion.
1919         * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec
1920         (Effective_Name): New function (Analyze_Pragma, case Check):
1921         Disallow [Statement_]Assertions (Check_Kind): Implement
1922         Statement_Assertions (Check_Applicable_Policy): Use Effective_Name
1923         (Is_Valid_Assertion_Kind): Allow Statement_Assertions.
1924         * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body
1925         (Effective_Name): New function.
1926         * sem_res.adb: Minor reformatting.
1927         * snames.ads-tmpl (Name_Statement_Assertions): New entry.
1928         * gnat_rm.texi: Add documentation of new assertion kind
1929         Statement_Assertions.
1931 2013-04-23  Robert Dewar  <dewar@adacore.com>
1933         * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor
1934         reformatting and code clean up.
1936 2013-04-23  Vincent Celier  <celier@adacore.com>
1938         * prj-part.ads, prj-conf.ads: Minor comment updates.
1940 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
1942         * einfo.adb (Predicate_Function): For a private type, retrieve
1943         predicate function from full view.
1944         * aspects.adb (Find_Aspect): Ditto.
1945         * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and
1946         the actual is a definite type, apply predicate check after call.
1947         * sem_res.adb: Do not apply a predicate check before the call to
1948         a generated Init_Proc.
1950 2013-04-23  Robert Dewar  <dewar@adacore.com>
1952         * sem_ch13.adb (Analyze_Aspect_Specifications): Significant
1953         rewrite to make sure Is_Ignore is properly captured when aspect
1954         is declared.
1955         * sem_ch6.adb: Minor reformatting.
1956         * sem_prag.adb (Analyze_Pragma): Do not test policy at time of
1957         pragma for the case of a pragma coming from an aspect (already
1958         tested when we analyzed the aspect).
1960 2013-04-23  Vincent Celier  <celier@adacore.com>
1962         * prj-conf.adb (Parse_Project_And_Apply_Config): New
1963         Boolean parameter Implicit_Project, defaulted to False. Call
1964         Prj.Part.Parse with Implicit_Project.
1965         * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean
1966         parameter Implicit_Project, defaulted to False.
1967         * prj-part.adb (Parse_Single_Project): New Boolean parameter
1968         Implicit_Project, defaulted to False. When Implicit_Project is
1969         True, change the Directory of the project node to the Current_Dir.
1970         * prj-part.ads (Parse): New Boolean parameter, defaulted to False
1972 2013-04-23  Robert Dewar  <dewar@adacore.com>
1974         * exp_util.adb: Minor reformatting.
1976 2013-04-23  Robert Dewar  <dewar@adacore.com>
1978         * xoscons.adb: Minor reformatting.
1980 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
1982         * sem_prag.adb (Check_Mode): Ensure that a
1983         self-referential output appears in both input and output lists of
1984         the subprogram as categorized by aspect Global.
1985         (Check_Usage): Rename formal parameters to better illustrate their
1986         function. Update all uses of the said formals.
1988 2013-04-23  Thomas Quinot  <quinot@adacore.com>
1990         * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New
1991         parameter Append_NUL to make NUL-termination optional.
1992         * exp_dist.adb: Consistently use the above throughout instead of
1993         Get_Library_Unit_Name_String.
1995 2013-04-23  Robert Dewar  <dewar@adacore.com>
1997         * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor
1998         reformatting.
2000 2013-04-23  Pascal Obry  <obry@adacore.com>
2002         * xoscons.adb: Remove unused use clause, minor code clean-up.
2004 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
2006         * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function
2007         (can apply to any scope entity).
2008         * sem_res.adb (Resolve_Call):  If the call is within another
2009         expression function it does not constitute a freeze point.
2011 2013-04-23  Yannick Moy  <moy@adacore.com>
2013         * exp_ch6.adb (Expand_Actuals): Test that Subp
2014         is overloadable before testing if it's an inherited operation.
2016 2013-04-23  Robert Dewar  <dewar@adacore.com>
2018         * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor
2019         reformatting.
2021 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
2023         * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch.
2024         * exp_util.adb (Expand_Subtype_From_Expr): If the expression
2025         is a source entity and the declaration is for an aliased
2026         unconstrained array, create a new subtype so that the flag
2027         Is_Constr_Subt_For_UN_Aliased does not pollute other entities.
2029 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
2031         * aspects.adb: Move tables Base_Aspect and Inherited_Aspect
2032         from the spec to the body.
2033         (Find_Aspect): Update the call to Get_Aspect_Id.
2034         (Get_Aspect_Id): New version that takes an aspect specification.
2035         * aspects.ads: Reorganize all aspect related tables.
2036         (Get_Aspect_Id): New version that takes an aspect specification.
2037         * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id.
2038         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update
2039         the call to Get_Aspect_Id.
2040         * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the
2041         call to Get_Aspect_Id.  (Analyze_Aspect_Specifications): Update
2042         the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect.
2044 2013-04-23  Robert Dewar  <dewar@adacore.com>
2046         * sem_prag.adb (Fix_Error): Rewrite to do more accurate job
2047         of getting proper name in the case where pragma comes from
2048         aspect.
2049         * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting.
2051 2013-04-23  Yannick Moy  <moy@adacore.com>
2053         * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on
2054         applicable policy.
2056 2013-04-23  Thomas Quinot  <quinot@adacore.com>
2058         * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization.
2060 2013-04-23  Doug Rupp  <rupp@adacore.com>
2062         * init.c: Move facility macros outside IN_RTS.
2064 2013-04-23  Thomas Quinot  <quinot@adacore.com>
2066         * freeze.adb (Freeze_Entity): For the case of a bit-packed
2067         array time that is known at compile time to have more that
2068         Integer'Last+1 elements, issue an error, since such arrays are
2069         not supported.
2071 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
2073         * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to
2074         Analyze_Input_Output.
2075         (Analyze_Input_List): Update all calls to Analyze_Input_Output.
2076         (Analyze_Input_Output): Add formal parameter Self_Ref along with
2077         comment on its usage. Update all calls to Analyze_Input_Output.
2078         (Analyze_Pragma): Add new local variable Self_Ref to capture
2079         the presence of a self-referential dependency clause. Update
2080         all calls to Analyze_Input_Output.
2081         (Check_Mode): Add formal parameter Self_Ref along with comment on its
2082         usage. Verify the legality of a self-referential output.
2084 2013-04-23  Ed Schonberg  <schonberg@adacore.com>
2086         * exp_ch6.adb: Add predicate checks on by-copy parameter.
2088 2013-04-23  Vincent Celier  <celier@adacore.com>
2090         * a-envvar.adb, a-envvar.ads (Value): New.
2092 2013-04-22  Yannick Moy  <moy@adacore.com>
2094         * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as
2095         null statement if ignored.
2096         * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored.
2097         * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas.
2099 2013-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
2101         * sem_prag.adb (Analyze_Contract_Case): New routine.
2102         (Analyze_Pragma): Aspect/pragma Contract_Cases can
2103         now be associated with a library level subprogram.
2104         Add circuitry to detect illegal uses of aspect/pragma Contract_Cases
2105         in a subprogram body.
2106         (Chain_Contract_Cases): Rename formal parameter Subp_Decl to
2107         Subp_Id. Remove local constant Subp. The entity of the subprogram
2108         is now obtained via the formal paramter.
2110 2013-04-22  Ed Schonberg  <schonberg@adacore.com>
2112         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2113         Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression,
2114         if the expression is a source entity.
2116 2013-04-22  Yannick Moy  <moy@adacore.com>
2118         * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in
2119         comments.
2120         * sem_ch6.adb (Expand_Contract_Cases): Add location to message.
2122 2013-04-22  Thomas Quinot  <quinot@adacore.com>
2124         * sem_prag.adb (Fix_Error): For a pragma rewritten from another
2125         pragma, fix up error message to include original pragma name.
2126         * par_sco.adb: Minor reformatting.
2128 2013-04-22  Robert Dewar  <dewar@adacore.com>
2130         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb,
2131         sem_ch6.adb, opt.ads: Minor reformatting.
2133 2013-04-22  Pascal Obry  <obry@adacore.com>
2135         * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for
2136         Library_Standalone and Library_Kind.
2138 2013-04-22  Ed Schonberg  <schonberg@adacore.com>
2140         * exp_ch6.adb (Expand_Actuals): If the call is to an
2141         inherited operation and the actual is a by-reference type with
2142         predicates, add predicate call to post-call actions.
2143         * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding
2144         error: a type declaration has a defining identifier, not an Etype.
2145         * sem_res.adb: Restore code removed because of above error.
2147 2013-04-22  Doug Rupp  <rupp@adacore.com>
2149         * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT.
2151 2013-04-22  Yannick Moy  <moy@adacore.com>
2153         * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb,
2154         opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc.
2156 2013-04-22  Vincent Celier  <celier@adacore.com>
2158         * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to
2159         No_Path_Information only when Directories_Must_Exist_In_Projects
2160         is False.
2161         (Get_Directories): Set Object_Directory
2162         or Exec_Directory to No_Path_Information only when
2163         Directories_Must_Exist_In_Projects is False.
2165 2013-04-22  Yannick Moy  <moy@adacore.com>
2167         * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb,
2168         snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to
2169         Pragma_Contract_Case and Name_Contract_Case.
2171 2013-04-22  Yannick Moy  <moy@adacore.com>
2173         * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to
2174         Contract_Case.
2175         * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by
2176         description of Contract_Cases.
2178 2013-04-12  Robert Dewar  <dewar@adacore.com>
2180         * makeutl.adb, prj-nmsc.adb: Minor reformatting.
2182 2013-04-12  Robert Dewar  <dewar@adacore.com>
2184         * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead
2185         of Check_Enabled.
2186         * gnat_rm.texi (Check_Policy): Update documentation for new
2187         Check_Policy syntax.
2188         * sem_prag.adb (Check_Kind): Replaces Check_Enabled
2189         (Analyze_Pragma, case Check_Policy): Rework to accomodate new
2190         syntax (like Assertion_Policy).
2191         * sem_prag.ads (Check_Kind): Replaces Check_Enabled.
2193 2013-04-12  Doug Rupp  <rupp@adacore.com>
2195         * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros.
2196         (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user
2197         handler if installed.
2198         * ctrl_c.c (__gnat_install_int_handler)
2199         [VMS]: Install a dummy sigaction handler to trigger the real
2200         user handler dispatch in init.c/__gnat_handle_vms_condition.
2201         (__gnat_uninstall_int_handler) [VMS]: Likewise.
2203 2013-04-12  Vincent Celier  <celier@adacore.com>
2205         * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects
2206         to False if switch is specified.
2207         * makeutl.adb (Initialize_Source_Record): Do not look for the
2208         object file if there is no object directory.
2209         * opt.ads (Directories_Must_Exist_In_Projects): New Boolean
2210         variable, defaulted to True.
2211         * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library
2212         directory does not exist when Directories_Must_Exist_In_Projects is
2213         False.
2214         (Get_Directories): Do not fail when the object or the exec directory
2215         do not exist when Directories_Must_Exist_In_Projects is False.
2217 2013-04-12  Robert Dewar  <dewar@adacore.com>
2219         * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In).
2220         * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb,
2221         sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb,
2222         par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb,
2223         sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb,
2224         exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb,
2225         prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2226         sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb,
2227         sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In).
2229 2013-04-12  Doug Rupp  <rupp@adacore.com>
2231         * init.c: Don't clobber condition code on VMS.
2233 2013-04-12  Robert Dewar  <dewar@adacore.com>
2235         * exp_aggr.adb: Minor reformatting.
2236         * namet.ads, namet.adb (Nam_In): New functions.
2238 2013-04-12  Robert Dewar  <dewar@adacore.com>
2240         * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag.
2241         (Has_Static_Predicate_Aspect): New flag.
2242         * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag.
2243         (Has_Static_Predicate_Aspect): New flag.
2244         * exp_ch9.adb: Minor reformatting.
2245         * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles
2246         synonyms.
2247         * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled,
2248         since this switch is gone and control of Debug is done with
2249         Assertions_Enabled.
2250         * gnat_rm.texi: Update documentation for Assertion_Policy and
2251         Check_Policy pragmas.
2252         * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed
2253         (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2254         controlled by Assertion_Enabled.
2255         * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed
2256         (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2257         controlled by Assertion_Enabled.
2258         * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new
2259         'Class forms.
2260         * sem_attr.adb: Minor reformatting.
2261         * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect
2262         if DISABLE policy applies.
2263         * sem_ch6.adb (Grab_PPC): Check original name of aspect for
2264         aspect from pragma (Process_PPCs): Properly check assertion policy.
2265         * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy
2266         (Check_Appicable_Policy): New procedure.
2267         (Is_Valid_Assertion_Kind): New function.
2268         (Rewrite_Assertion_Kind): New procedure.
2269         (Analyze_Pragma): Handle case of disabled assertion pragma.
2270         (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012.
2271         (Analyze_Pragma, case Check): Deal with 'Class possibilities.
2272         (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities.
2273         (Analyze_Pragma, case Contract_Class): New handling of ignored pragma.
2274         (Analyze_Pragma, case Debug): New control with Assertion_Policy.
2275         (Analyze_Pragma, case Debug_Policy): Now consistent with
2276         Assertion_Policy.
2277         (Analyze_Pragma, case Loop_Invariant): New handling of ignored
2278         pragma.
2279         (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma.
2280         (Analyze_Pragma, case Precondition): Use proper name for Check pragma.
2281         (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff.
2282         * sem_prag.ads (Check_Enabled): Rewritten for new
2283         Assertion_Policy stuff.
2284         (Check_Appicable_Policy): New procedure.
2285         * sinfo.adb (Is_Disabled): New flag.
2286         (Is_Ignored): New flag.
2287         * sinfo.ads (Is_Disabled): New flag.
2288         (Is_Ignored): New flag.
2289         (N_Pragma_Argument_Association): New 'Class forms.
2290         * snames.ads-tmpl: New names Name_uPre, Name_uPost,
2291         Name_uType_Invariant, Name_uInvariant.
2292         * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata.
2293         * tree_io.ads (ASIS_Version_Number): Updated (remove
2294         read write of obsolete flags Debug_Pragmas_Disabled and
2295         Debug_Pragmas_Enabled.
2297 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2299         * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary
2300         of Build_Record_Aggr_Code, used to retrieve explicit values
2301         for inherited discriminants in an extension aggregate, when the
2302         ancestor type is unconstrained.
2304 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2306         * sem_attr.adb (Check_Stream_Attribute): If restriction
2307         No_Default_Stream_Attributes is active, it is illegal to use a
2308         predefined elementary type stream attribute either by itself,
2309         or more importantly as part of the attribute subprogram for a
2310         composite type. However, if the broader restriction No_Streams
2311         is active, then stream operations are not generated, and there
2312         is no error.
2314 2013-04-12  Robert Dewar  <dewar@adacore.com>
2316         * gnatbind.adb: Minor reformatting.
2318 2013-04-12  Bob Duff  <duff@adacore.com>
2320         * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
2321         call only in the static elaboration model.
2323 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2325         * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
2326         clause where both input and output lists are null.
2327         (Analyze_Pragma): Update the grammar of pragma Depends.
2329 2013-04-12  Vincent Celier  <celier@adacore.com>
2331         * gnatbind.adb (No_Restriction_List): Exclude restrictions that
2332         take a parameter value, not a count.
2333         * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure.
2334         * projects.texi: Complete documentation of attribute Roots.
2336 2013-04-12  Thomas Quinot  <quinot@adacore.com>
2338         * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb,
2339         sem_ch3.adb: Minor reformatting.
2340         * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation
2341         improvement: note that the computation is pessimistic for bit
2342         packed arrays.
2343         * gnat_rm.texi (Range_Length): Fix minor error in description
2344         of attribute.
2346 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2348         * aspects.adb (Find_Aspect): New routine.
2349         (Find_Value_Of_Aspect): New routine.
2350         (Has_Aspect): Reimplemented.
2351         * aspects.ads (Find_Aspect): New routine.
2352         (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect.
2353         * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect.
2354         * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect.
2355         * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect.
2356         * sem_ch5.adb (Analyze_Iterator_Specification): Update
2357         the call to Find_Aspect. Use function Has_Aspect for better
2358         readability.
2359         (Preanalyze_Range): Use function Has_Aspect for better readability.
2360         * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect.
2361         * sem_prag.adb (Analyze_Pragma): There is no longer need to
2362         look at the parent to extract the corresponding pragma for
2363         aspect Global.
2365 2013-04-12  Robert Dewar  <dewar@adacore.com>
2367         * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb,
2368         restrict.ads: Minor reformatting.
2370 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2372         * lib-xref.adb: Retrieve original name of classwide type if any.
2374 2013-04-12  Thomas Quinot  <quinot@adacore.com>
2376         * exp_ch11.ads: Minor reformatting.
2378 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2380         * aspects.adb: Alphabetize subprogram bodies in this unit. Add
2381         an entry for Aspect_Ghost in the table of canonical aspects.
2382         (Has_Aspect): New routine.
2383         * aspects.ads: Add Aspect_Ghost to all relevant
2384         tables. Alphabetize subprograms in this unit.
2385         (Has_Aspect): New routine.
2386         * einfo.adb: Add with and use clauses for Aspects.
2387         (Is_Ghost_Function): New routine.
2388         * einfo.ads: Add new synthesized attribute Is_Ghost_Function and
2389         update the structure of the related nodes.
2390         (Is_Ghost_Function): New routine.
2391         * exp_ch4.adb (Find_Enclosing_Context): Use routine
2392         Is_Body_Or_Package_Declaration to terminate a search.
2393         (Is_Body_Or_Unit): Removed.
2394         * exp_util.adb (Within_Case_Or_If_Expression): Use routine
2395         Is_Body_Or_Package_Declaration to terminate a search.
2396         * par-prag.adb: Add pragma Ghost to the list of pragmas that do
2397         not need special processing by the parser.
2398         * sem_attr.adb (Analyze_Access_Attribute): Detect an
2399         illegal use of 'Access where the prefix is a ghost function.
2400         (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration
2401         to terminate a search.  (Check_References_In_Prefix): Use routine
2402         Is_Body_Or_Package_Declaration to terminate a search.
2403         * sem_ch4.adb (Analyze_Call): Mark a function when it appears
2404         inside an assertion expression.  Verify the legality of a call
2405         to a ghost function.
2406         (Check_Ghost_Function_Call): New routine.
2407         * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move
2408         the setting of attribute In_Assertion_Expression to Analyze_Call.
2409         (Check_Overriding_Indicator): Detect an illegal attempt to
2410         override a function with a ghost function.
2411         * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of
2412         a ghost function as a generic actual.
2413         * sem_elab.adb (Check_Internal_Call_Continue): Update the call
2414         to In_Assertion.
2415         * sem_prag.adb: Add an entry for pragma Ghost in the table
2416         of significant arguments.
2417         (Analyze_Pragma): Do not analyze
2418         an "others" case guard. Add processing for pragma Ghost. Use
2419         Preanalyze_Assert_Expression when analyzing the expression of
2420         pragmas Loop_Invariant and Loop_Variant.
2421         * sem_util.adb (Get_Subprogram_Entity): Reimplemented.
2422         (Is_Body_Or_Package_Declaration): New routine.
2423         * sem_util.ads: Alphabetize subprotrams in this unit.
2424         (Is_Body_Or_Package_Declaration): New routine.
2425         * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression.
2426         (Set_In_Assertion): Rename to Set_In_Assertion_Expression.
2427         * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression
2428         to better reflect its use.  Update all places that mention the flag.
2429         (In_Assertion): Rename to In_Assertion_Expression. Update
2430         related pragma Inline.  (Set_In_Assertion): Rename to
2431         Set_In_Assertion_Expression. Update related pragma Inline.
2432         * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma
2433         id Pragma_Ghost.
2435 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
2437         * sem_prag.adb (Set_Imported): Do not generate error for multiple
2438         Import in CodePeer mode.
2439         * s-rident.ads: Fix minor typo.
2441 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2443         * checks.adb (Insert_Valid_Check): Do not insert validity check
2444         in the body of the generated predicate function, to prevent
2445         infinite recursion.
2447 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2449         * s-rident.ads: Add various missing Ada 2012 restrictions:
2450         No_Access_Parameter_Allocators, No_Coextensions,
2451         No_Use_Of_Attribute, No_Use_Of_Pragma.
2452         * snames.ads-tmpl: Add corresponding names.
2453         * restrict.ads restrict.adb: Subprograms and data structures to
2454         handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma.
2455         * sem_ch4.adb: Correct name of restrictions is
2456         No_Standard_Allocators_After_Elaboration.
2457         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
2458         violation of restriction No_Use_Of_Attribute.
2459         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2460         Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute.
2461         (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma.
2462         * sem_res.adb: Check restrictions No_Access_Parameter_Allocators
2463         and No_Coextensions.
2464         * bcheck.adb: Correct name of restrictions is
2465         No_Standard_Allocators_After_Elaboration.
2466         * gnatbind.adb: Correct name of restrictions is
2467         No_Standard_Allocators_After_Elaboration.
2469 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2471         * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
2472         Correct error message format.
2474 2013-04-12  Robert Dewar  <dewar@adacore.com>
2476         * sem_attr.adb: Minor reformatting.
2478 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2480         * sem_elab.adb (Within_Elaborate_All): Do not examine a context
2481         item that has not been analyzed, because the unit may have errors,
2482         or the context item may come from a proper unit inserted at the
2483         point of a stub and not analyzed yet.
2485 2013-04-12  Thomas Quinot  <quinot@adacore.com>
2487         * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
2488         List_Record_Info): Also include scalar storage order information in
2489         output.
2491 2013-04-12  Yannick Moy  <moy@adacore.com>
2493         * sem_ch6.adb (Process_Contract_Cases): Update code to apply to
2494         Contract_Cases instead of Contract_Case pragma.
2496 2013-04-12  Robert Dewar  <dewar@adacore.com>
2498         * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting.
2500 2013-04-12  Yannick Moy  <moy@adacore.com>
2502         * sem_attr.adb (Analyze_Attribute): Update analyse of
2503         Attribute_Old and Attribute_Result so they are allowed in the
2504         right-hand-side of an association in a Contract_Cases pragma.
2505         * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of
2506         the expressions in a Contract_Cases pragma.
2508 2013-04-12  Robert Dewar  <dewar@adacore.com>
2510         * sem.ads, opt.ads: Minor comment edits.
2511         * sem_warn.adb, sem_ch6.adb: Minor reformatting.
2513 2013-04-12  Claire Dross  <dross@adacore.com>
2515         * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate,
2516         Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed,
2517         not suitable for formal analysis.
2519 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2521         * sem_prag.adb (Analyze_Abstract_State): Use Defining entity
2522         to locate package entity, which may be a child unit.
2524 2013-04-12  Thomas Quinot  <quinot@adacore.com>
2526         * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If
2527         the specified timeout is 0, do not attempt to determine whether the
2528         connection succeeded.
2530 2013-04-12  Doug Rupp  <rupp@adacore.com>
2532         * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos.
2534 2013-04-12  Doug Rupp  <rupp@adacore.com>
2536         * s-fileio.adb: Minor reformatting.
2538 2013-04-12  Ed Schonberg  <schonberg@adacore.com>
2540         * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if
2541         the last statement in the analyzed loop is an unconditional
2542         exit statement.
2544 2013-04-12  Robert Dewar  <dewar@adacore.com>
2546         * opt.ads (Style_Check_Main): New switch.
2547         * sem.adb (Semantics): Set Style_Check flag properly for new
2548         unit to be analyzed.
2549         * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check,
2550         the proper setting of this flag is now part of the Semantics
2551         procedure.
2552         * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main
2553         for -gnatg and -gnaty
2555 2013-04-12  Doug Rupp  <rupp@adacore.com>
2557         * s-crtl.ads (fopen, freopen): Add vms_form parameter
2558         * i-cstrea.ads (fopen, freopen): Likewise.
2559         * adaint.h (__gnat_fopen, __gnat_freopen): Likewise.
2560         * adaint.c (__gnat_fopen, __gnat_freopen): Likewise.
2561         [VMS]: Split out RMS keys and call CRTL function appropriately.
2562         * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New
2563         subprograms.
2564         (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with
2565         vms_form
2566         * gnat_rm.texi: Document implemented RMS keys.
2568 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2570         * sem_ch13.adb (Analyze_Aspect_Specifications):
2571         Insert the corresponding pragma for aspect Abstract_State at
2572         the top of the visible declarations of the related package.
2573         Previously this was only done when the package is a compilation
2574         unit.
2576 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
2578         * gnat_ugn.texi: Further menu clean ups.
2579         * sem_prag.adb, opt.ads: Minor reformatting.
2580         * sem_util.ads: Minor comment fix.
2582 2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>
2584         * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
2585         Depends is now a delayed aspect. The delay is required
2586         due to the interplay between aspects Depends and Global.
2587         (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
2588         * sem_prag.adb: Reformat various error messages.
2589         (Add_Item): New subsidiary routine.
2590         (Analyze_Pragma): Add new variables
2591         Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
2592         analysis of pragma Depends now has the capability to check
2593         the proper mode and usage of subprogram inputs and outputs.
2594         (Appears_In): New routine.
2595         (Check_Function_Return): New routine.
2596         (Check_Mode): New routine.
2597         (Check_Usage): New routine.
2598         (Collect_Subprogram_Inputs_Outputs): New routine.
2600 2013-04-12  Bob Duff  <duff@adacore.com>
2602         * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope
2603         stack entry.
2605 2013-04-12  Robert Dewar  <dewar@adacore.com>
2607         * switch-c.adb: Minor fix to wording of error message for
2608         -gnatet/eT.
2610 2013-04-12  Robert Dewar  <dewar@adacore.com>
2612         * impunit.adb: Add s-multip and s-mudido to list of impl defined
2613         system units.
2614         * gnat_rm.texi: Add documentation for
2615         System.Multiprocessors[.Dispatching_Domains].
2617 2013-04-12  Ben Brosgol  <brosgol@adacore.com>
2619         * gnat_ugn.texi: Completion of menu cleanups.
2621 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
2623         * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules
2624         in Relaxed_RM_Semantics.
2626 2013-04-12  Arnaud Charlet  <charlet@adacore.com>
2628         * set_targ.adb (elab code): Add support for non gcc back-ends
2629         where save_argv is null.
2631 2013-04-12  Robert Dewar  <dewar@adacore.com>
2633         * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name.
2634         * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access
2635         type (Target_Dependent_Info_Write): Add _Name, now an access type.
2636         * set_targ.adb (Write_Target_Dependent_Values): Use name
2637         from -gnatet switch stored in Target_Dependent_Info_Write_Name
2638         (Read_Target_Dependent_Values): Use name from -gnateT switch
2639         stored in Target_Dependent_Info_Read_Name.
2640         * switch-c.adb: New form of -gnatet and -gnateT switches.
2641         * usage.adb: New form of -gnatet and -gnateT switches with
2642         file name.
2644 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2646         * gcc-interface/decl.c (elaborate_expression_1): Skip only constant
2647         arithmetics when looking for a read-only variable in the expression.
2649 2013-04-11  Javier Miranda  <miranda@adacore.com>
2651         * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in
2652         interface thunks since it is performed at the caller side.
2653         (Expand_Simple_Function_Return): No accessibility check needed in thunks
2654         since the check is done by the target routine.
2656 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
2658         * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze
2659         expression with type Any_Priority.
2660         * exp_ch9.adb (Initialize_Protection): Check that the value
2661         of the priority expression is within the bounds of the proper
2662         priority type.
2664 2013-04-11  Robert Dewar  <dewar@adacore.com>
2666         * sem_prag.adb, prj-env.adb: Minor reformatting.
2668 2013-04-11  Ben Brosgol  <brosgol@adacore.com>
2670         * gnat_ugn.texi: Clean ups.
2672 2013-04-11  Yannick Moy  <moy@adacore.com>
2674         * set_targ.adb: Minor comment update.
2676 2013-04-11  Pascal Obry  <obry@adacore.com>
2678         * gnat_ugn.texi: Remove obsolete comment about DLL calling
2679         convention.
2681 2013-04-11  Javier Miranda  <miranda@adacore.com>
2683         * exp_ch6.adb (Expand_Call): For the call to the target primitive
2684         of an interface thunks do not compute the extra actuals; just
2685         propagate the extra actuals received by the thunk.
2686         * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute
2687         Thunk_Entity.
2688         * sem_ch6.adb (Create_Extra_Formals): Do not generate extra
2689         formals in interface thunks whose target primitive has no extra
2690         formals.
2692 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
2694         * sem_prag.adb (Analyze_Pragma): Detect
2695         a renaming by looking at the Renamed_Object attribute.
2696         (Is_Renaming): Removed.
2698 2013-04-11  Vincent Celier  <celier@adacore.com>
2700         * prj-env.adb (Initialize_Default_Project_Path): Take
2701         into account a project path file, specified by environment
2702         variable GPR_PROJECT_PATH_FILE, before taking into account
2703         GPR_PROJECT_PATH.
2704         * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE
2706 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
2708         * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
2709         a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
2710         a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb,
2711         a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads,
2712         a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb,
2713         a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb,
2714         a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb,
2715         a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads:
2716         Move Iterator operations from body to private part of spec.
2718 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2720         * ttypes.ads, get_targ.ads: More minor rewording of comments.
2722 2013-04-11  Johannes Kanig  <kanig@adacore.com>
2724         * debug.adb: Document use of switch -gnatd.Z.
2726 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
2728         * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now
2729         support renamings of entire objects. Legal renamings are replaced by
2730         the object they rename.
2731         (Is_Renaming): New routine.
2733 2013-04-11  Yannick Moy  <moy@adacore.com>
2735         * set_targ.adb, opt.ads: Minor changes in comments.
2737 2013-04-11  Ben Brosgol  <brosgol@adacore.com>
2739         * gnat_ugn.texi: Minor clean ups.
2741 2013-04-11  Robert Dewar  <dewar@adacore.com>
2743         * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging
2744         function p from Nlists to Treepr.
2746 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
2748         * sem_disp.adb (Check_Dispatching_Context): If the context is
2749         a contract for a null procedure defer error reporting until
2750         postcondition body is created.
2751         * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a
2752         null procedure, complete the analysis of its contracts so that
2753         calls within classwide conditions are properly rewritten as
2754         dispatching calls.
2756 2013-04-11  Thomas Quinot  <quinot@adacore.com>
2758         * sem_ch10.adb, sem_ch12.adb: Minor reformatting.
2760 2013-04-11  Robert Dewar  <dewar@adacore.com>
2762         * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting.
2764 2013-04-11  Robert Dewar  <dewar@adacore.com>
2766         * atree.adb, atree.ads (Node31): New function.
2767         (Set_Node31): New procedure.
2769 2013-04-11  Robert Dewar  <dewar@adacore.com>
2771         * errout.ads: Minor typo correction.
2773 2013-04-11  Javier Miranda  <miranda@adacore.com>
2775         * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute.
2777 2013-04-11  Robert Dewar  <dewar@adacore.com>
2779         * back_end.adb (Register_Back_End_Types): Moved to Get_Targ
2780         * back_end.ads (C_String): Moved to Get_Targ
2781         (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types):
2782         Moved to Get_Targ.
2783         * cstand.adb (Register_Float_Type): New interface
2784         (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table.
2785         * get_targ.adb (Register_Back_End_Types): Moved here from
2786         Back_End.
2787         * get_targ.ads (C_String): Moved here from Back_End
2788         (Register_Type_Proc): Moved here from Back_End
2789         (Register_Back_End_Types): here from Back_End.
2790         * gnat1drv.adb (GGnat11drv): Add call to
2791         Write_Target_Dependent_Values;
2792         * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing
2793         obsolete target dependent info.
2794         * opt.ads (Generate_Target_Dependent_Info):
2795         Removed (Target_Dependent_Info_Read): New flag
2796         (Target_Dependent_Info_Write): New flag
2797         * output.adb: Minor comment change
2798         * s-os_lib.ads: Minor reformatting
2799         * set_targ.ads, set_targ.adb: Minor reformatting.
2800         * switch-c.adb (Scan_Switches.First_Ptr): New variable
2801         (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first
2802         (Scan_Front_End_Switches): Handle -gnatet, -gnateT
2803         * ttypes.ads: Remove documentation section on target dependent
2804         info in ali file Remove four letter codes, no longer used Instead
2805         of using Get_Targ.Get_xxx, we use Set_Targ.xxx
2806         * usage.adb: Add usage lines for -gnatet/-gnateT
2807         * gcc-interface/Make-lang.in: Update dependencies.
2809 2013-04-11  Thomas Quinot  <quinot@adacore.com>
2811         * sem_ch4.adb: Update documentation.
2812         * sinfo.ads (N_Expression_With_Actions): Ditto.
2814 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
2816         * sem_ch13.adb (Analyze_Aspect_Specifications):
2817         Add a guard to prevent the double insertion of the same aspect
2818         into a rep item list. This previously led to a circularity.
2820 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
2822         * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute
2823         reference if the prefix is the dereference of an anonymous access
2824         to subprogram type.
2825         * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle
2826         properly a reference to the current instance of a protected type
2827         from within a protected subprogram.
2828         * sem_res.adb (Find_Unique_Access_Type): Treat
2829         Attribute_Access_Type like Allocator_Type when resolving an
2830         equality operator.
2832 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
2834         * xgnatugn.adb: Remove obsolete comments.
2836 2013-04-11  Robert Dewar  <dewar@adacore.com>
2838         * back_end.ads, back_end.adb: Minor reformatting.
2839         * set_targ.ads, set_targ.adb: New files.
2841 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
2843         * sem_case.adb (Check_Against_Predicate): New routine.
2844         (Check_Choices): When the type covered by the list of choices
2845         is a static subtype with a static predicate, check all choices
2846         agains the predicate.
2847         (Issue_Msg): All versions removed.
2848         (Missing_Choice): New routines.
2849         * sem_ch4.adb: Code and comment reformatting.
2850         (Analyze_Case_Expression): Do not check the choices when the case
2851         expression is being preanalyzed and the type of the expression
2852         is a subtype with a static predicate.
2853         (Has_Static_Predicate): New routine.
2854         * sem_ch13.adb: Code and comment reformatting.  (Build_Range):
2855         Always build a range even if the low and hi bounds denote the
2856         same value. This is needed by the machinery in Check_Choices.
2857         (Build_Static_Predicate): Always build a range even if the low and
2858         hi bounds denote the same value. This is needed by the machinery
2859         in Check_Choices.
2861 2013-04-11  Robert Dewar  <dewar@adacore.com>
2863         * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor
2864         reformatting.
2866 2013-04-11  Doug Rupp  <rupp@adacore.com>
2868         * gnatlink.adb: Fold program basename to lower case on VMS for
2869         consistency.
2871 2013-04-11  Matthew Heaney  <heaney@adacore.com>
2873         * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before
2874         entering loop.
2876 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
2878         * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear).
2880 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
2882         * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly
2883         needed, and seems to confuse some versions of makeinfo.
2885 2013-04-11  Javier Miranda  <miranda@adacore.com>
2887         * einfo.adb (Is_Thunk): Remove assertion.
2888         (Set_Is_Thunk): Add assertion.
2889         * einfo.ads (Is_Thunk): Complete documentation.
2890         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup.
2891         * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util
2892         (Is_Variable_Size_Record): Moved to sem_util
2893         * exp_ch6.adb (Expand_Call): Code cleanup.
2894         (Expand_N_Extended_Return_Statement): Code cleanup.
2895         (Expand_Simple_Function_Return): Code cleanup.
2896         * exp_disp.adb Remove dependency on exp_ch3
2897         (Expand_Interface_Thunk): Add minimum decoration needed to set
2898         attribute Is_Thunk.
2899         * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util
2900         * sem_util.ad[sb] (Is_Constant_Bound): Moved from
2901         sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3
2902         (Is_Variable_Size_Record): Moved from exp_ch3
2904 2013-04-11  Javier Miranda  <miranda@adacore.com>
2906         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do
2907         not add cleanup actions in thunks associated with interface types.
2908         * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to
2909         the package spec.
2910         * exp_ch4.adb (Tagged_Conversion): Update call to
2911         Expand_Interface_Conversion since the parameter Is_Static is no
2912         longer needed.
2913         * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding
2914         assertion to ensure that interface thunks are never handled by
2915         this routine.
2916         (Expand_N_Simple_Function_Return): Do not rewrite this statement
2917         as an extended return statement in interface thunks, and do not
2918         perform copy in the secondary stack if the return statement is
2919         located in a thunk.
2920         * exp_disp.adb (Expand_Dispatching_Call): No longer displace
2921         the pointer to the returned object in functions returning interface
2922         types.
2923         (Expand_Interface_Thunk): For functions returning interface types
2924         displace the pointer to the returned object.
2925         (Expand_Interface_Conversion): Remove formal
2926         Is_Static since this subprogram can now evaluate it locally.
2927         * sem_ch3.adb (Add_Internal_Interface_Entities): For functions
2928         propagate the type returned by the covered interface primitive to
2929         the internal interface entity. Needed by the thunk to generate
2930         the code which displaces "this" to reference the corresponding
2931         secondary dispatch table.
2932         * sem_disp.adb (Propagate_Tag): Update call to
2933         Expand_Interface_Conversion since the parameter Is_Static is no
2934         longer needed.
2935         * sem_res.adb (Resolve_Type_Conversion): Update calls to
2936         Expand_Interface_Conversion since the parameter Is_Static is no
2937         longer needed plus code cleanup.
2939 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2941         * init.c (RETURN_ADDR_OFFSET): Delete as unused.
2943 2013-04-11  Robert Dewar  <dewar@adacore.com>
2945         * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb,
2946         a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting.
2948 2013-04-11  Yannick Moy  <moy@adacore.com>
2950         * exp_ch4.adb (Expand_N_Selected_Component): Do not expand
2951         discriminant check for Unchecked_Union.
2952         * sem_res.adb (Resolve_Selected_Component): Set flag
2953         Do_Discriminant_Check even when expansion is not performed.
2954         * sinfo.ads (Do_Discriminant_Check): Update documentation for the case
2955         of Unchecked_Union.
2957 2013-04-11  Thomas Quinot  <quinot@adacore.com>
2959         * sem_ch13.adb (Same_Representation): Two types with different scalar
2960         storage order never have the same representation.
2962 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
2964         * xgnatugn.adb (Push_Conditional): Simplify handling,
2965         no longer need to keep track of "excluding" sections.
2966         (Currently_Excluding): Removed.
2967         (Process_Source_File):
2968         Set unw/vms flag so that texinfo can do the whole handling of
2969         @ifset/@ifclear sections.  Fix handling of nested @ifset/@ifclear
2970         sections.
2971         * gnat_ugn.texi: Add a section on performing unassisted install
2972         on Windows.
2974 2013-04-11  Johannes Kanig  <kanig@adacore.com>
2976         * debug.adb: Document usage of -gnatd.Q switch.
2978 2013-04-11  Matthew Heaney  <heaney@adacore.com>
2980         * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks
2981         before element comparisons.
2982         (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
2983         Ditto.
2984         * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before
2985         element comparisons.
2986         * a-rbtgso.adb (Difference, Intersection): Adjust locks
2987         before element comparisons.
2988         (Is_Subset, Overlap): Ditto
2989         (Symmetric_Difference, Union): Ditto
2990         * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks
2991         before element comparisons.
2992         (Set_Subset, Set_Overlap): Ditto
2993         (Set_Symmetric_Difference, Set_Union): Ditto
2994         * a-coorse.adb, a-ciorse.adb, a-cborse.adb
2995         (Update_Element_Preserving_Key): Adjust locks before element
2996         comparisons (Replace_Element): Ditto
2998 2013-04-11  Pascal Obry  <obry@adacore.com>
3000         * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves
3001         attribute.
3003 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3005         * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of
3006         Expand_N_Object_Declaration, used to construct an aggregate
3007         with static components whenever possible, so that objects of a
3008         discriminated type can be initialized without calling the init.
3009         proc for the type.
3011 2013-04-11  Vincent Celier  <celier@adacore.com>
3013         * prj-makr.adb (Process_Directory): On VMS, always delete,
3014         then recreate the temporary file with Create_Output_Text_File,
3015         otherwise the output redirection does not work properly.
3017 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3019         * urealp.ads: Fix minor typo.
3021 2013-04-11  Fabien Chouteau  <chouteau@adacore.com>
3023         * cio.c (mktemp): Don't use tmpnam function from the
3024         system on VxWorks in kernel mode.
3026 2013-04-11  Vincent Celier  <celier@adacore.com>
3028         * make.adb (Compile): Clarify the error message reported
3029         when gnatmake refuses to compile a runtime source.
3030         (Start_Compile_If_Possible): Ditto.
3032 2013-04-11  Vincent Celier  <celier@adacore.com>
3034         * gnat_ugn.texi: Add documentation about -gnatc and gnatmake.
3036 2013-04-11  Vincent Celier  <celier@adacore.com>
3038         * switch-c.adb: Document internal switches.
3039         * usage.adb: Remove lines for internal switches: -gnatea, -gnateO,
3040         -gnatez and -gnateO.
3042 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3044         * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub.
3045         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on
3046         subprogram stubs.
3047         * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated
3048         pre/post pragmas at once before analyzing the proper body.
3049         * sem_prag.adb (Chain_PPC): Handle pragma that comes from an
3050         aspect on a subprogram stub.
3051         * aspects.adb: Aspect specifications can appear on a
3052         subprogram_Body_Stub.
3054 2013-04-11  Vincent Celier  <celier@adacore.com>
3056         * gnatname.adb: Minor comment fix.
3058 2013-04-11  Vincent Celier  <celier@adacore.com>
3060         * prj-makr.adb (Process_Directory): Create a new temporary
3061         file for each invocation of the compiler, in directory pointed
3062         by environment variable TMPDIR if it exists.
3064 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3066         * gnat_ugn.texi: Minor editing/clean ups.
3068 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3070         * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly
3071         extracted from Analyze_Subprogram_Declaration, to handle null
3072         procedure declarations that in ada 2012 can be completions of
3073         previous declarations.
3075 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
3077         * sem_prag.adb (Entity_Of): Moved to Exp_Util.
3078         * exp_util.ads, exp_util.adb (Entity_Of): New routine.
3080 2013-04-11  Robert Dewar  <dewar@adacore.com>
3082         * g-spipat.ads: Minor comment fix.
3084 2013-04-11  Robert Dewar  <dewar@adacore.com>
3086         * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor
3087         reformatting.
3089 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3091         * exp_util.ads (Fully_Qualified_Name_String): Document that the
3092         constructed literal is the entity name in all upper case.
3094 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3096         * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of
3097         check for implementation defined identifiers.
3099 2013-04-11  Yannick Moy  <moy@adacore.com>
3101         * checks.adb (Apply_Type_Conversion_Checks): Add an explanation
3102         of why range check and length are put on different nodes.
3103         * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks
3104         when doing their expansion.
3106 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3108         * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor):
3109         New function to implement the notion introduced in RM 7.3.1
3110         (5.2/3): in a child unit, a derived type is within the derivation
3111         class of an ancestor declared in a parent unit, even if there
3112         is an intermediate derivation that does not see the full view
3113         of that ancestor.
3114         * sem_res.adb (Valid_Conversion): if all else fails, examine if an
3115         incomplete view of an ancestor makes a numeric conversion legal.
3117 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3119         * sem_ch6.adb: in Ada2012 operators can only have in
3120         parameters.
3122 2013-04-11  Vincent Celier  <celier@adacore.com>
3124         * makeutl.adb (Create_Binder_Mapping_File): Do not put into
3125         the mapping file ALI files of sources that have been replaced.
3127 2013-04-11  Vincent Celier  <celier@adacore.com>
3129         * projects.texi: Add subsection Duplicate Sources in Projects.
3131 2013-04-11  Vincent Celier  <celier@adacore.com>
3133         * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/**
3135 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3137         * init.c (__gnat_install_handler): Only set up an alternate
3138         stack when installing a signal handler for SIGSEGV.
3140 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3142         * g-socket.adb (Connect_Socket, timeout version): Call
3143         underlying connect operation directly, not through the 2-argument
3144         Connect_Socket thick binding, in order to avoid raising a junk
3145         exception for the EINPROGRESS return.
3147 2013-04-11  Robert Dewar  <dewar@adacore.com>
3149         * a-cdlili.adb: Minor addition of pragma Warnings (Off).
3151 2013-04-11  Robert Dewar  <dewar@adacore.com>
3153         * hostparm.ads: Minor reformatting.
3155 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
3157         * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant
3158         tables.
3159         * elists.ads, elists.adb (Contains): New routine.
3160         * par-prag.adb: Pragma Depends does not need any special treatment
3161         by the parser.
3162         * sem_ch13.adb (Analyze_Aspect_Specifications):
3163         Transform aspect Depends into a corresponding pragma.
3164         (Check_Aspect_At_Freeze_Point): Aspect Depends does not need
3165         inspection at its freeze point.
3166         * sem_prag.adb (Analyze_Pragma): Perform analysis and
3167         normalization of pragma Depends. Remove the use of function
3168         Is_Duplicate_Item. Use End_Scope to uninstalle the formal
3169         parameters of a subprogram. Add a value for pragma Depends in
3170         table Sig_Flags.
3171         (Is_Duplicate_Item): Removed.
3172         * snames.ads-tmpl: Add predefined name for Depends as well as
3173         a pragma identifier.
3175 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3177         * gnat1drv.adb: Minor code clean up.
3179 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3181         * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause):
3182         Ignore enumeration rep clauses by default in CodePeer mode, unless
3183         -gnatd.I is specified.
3185 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3187         * sem_util.adb (Safe_To_Capture_Value): If the node belongs to
3188         an expression that has been attached to the else_actions of an
3189         if-expression, the capture is not safe.
3191 2013-04-11  Yannick Moy  <moy@adacore.com>
3193         * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type
3194         conversion for arrays.
3196 2013-04-11  Robert Dewar  <dewar@adacore.com>
3198         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
3200 2013-04-11  Johannes Kanig  <kanig@adacore.com>
3202         * adabkend.adb: Minor comment addition.
3204 2013-04-11  Matthew Heaney  <heaney@adacore.com>
3206         * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment
3207         lock counts before entering loop.
3208         (Find): Ditto.
3209         (Is_Sorted, Merge, Sort): Ditto.
3210         (Reverse_Find): Ditto.
3211         (Splice_Internal): Internal operation to refactor splicing logic.
3212         (Splice): Some logic moved into Splice_Internal.
3214 2013-04-11  Johannes Kanig  <kanig@adacore.com>
3216         * adabkend.adb (Scan_Compiler_Arguments): Do not call
3217         Set_Output_Object_File_Name in Alfa_Mode
3218         * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account.
3219         * opt.ads: Fix documentation.
3221 2013-04-11  Robert Dewar  <dewar@adacore.com>
3223         * sem_res.adb: Minor code reorganization and comment fixes.
3224         * sem_type.adb: Minor reformatting.
3226 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
3228         * exp_ch4.adb (Process_Transient_Object): Add new
3229         local variable Fin_Call. Remove and explain ??? comment. Use the
3230         Actions of logical operators "and then" and "or else" to insert
3231         the generated finalization call.
3233 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3235         * gnat_rm.texi: Fix typo.
3237 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3239         * sem_res.adb: Minor reformatting.
3241 2013-04-11  Robert Dewar  <dewar@adacore.com>
3243         * atree.h: Add declarations for Flag255-Flag289 Fix declaration
3244         of Field30 (was wrong, but no effect, since not yet referenced by
3245         back end) Add declarations for Field31-Field35 Add declarations
3246         for Node31-Node35.
3247         * einfo.ads, einfo.adb (Has_Invariants): No longer applies to
3248         procedures.
3249         (Has_Predicates): No longer applies to functions.
3250         (Is_Predicate_Function): New flag.
3251         (Is_Predicate_Function_M): New flag.
3252         (Is_Invariant_Procedure): New flag.
3253         (Predicate_Function_M): New function.
3254         (Set_Predicate_Function_M): New procedure.
3255         * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special
3256         case of appearing in predicate used for membership test.
3257         * exp_ch3.adb (Insert_Component_Invariant_Checks): Set
3258         Is_Invariant_Procedure flag.
3259         * exp_ch4.adb (Expand_Op_In): Call special predicate function
3260         that takes care of raise_expression nodes in the predicate.
3261         * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for
3262         membership case.
3263         * sem_ch13.adb (Build_Predicate_Functions): New name for
3264         Build_Predicate_Function.  Major rewrite to take care of raise
3265         expression in predicate for membership tests.
3266         * sem_res.adb (Resolve_Actuals): Include both predicate functions
3267         in defense against infinite predicate function loops.
3268         * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag.
3270 2013-04-11  Robert Dewar  <dewar@adacore.com>
3272         * sem_prag.adb: Minor reformatting.
3274 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3276         * lib-xref.adb: Generate reference for component of anonymous
3277         access type.
3279 2013-04-11  Robert Dewar  <dewar@adacore.com>
3281         * stand.ads: Minor reformatting.
3283 2013-04-11  Matthew Heaney  <heaney@adacore.com>
3285         * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock
3286         counts before entering loop.
3287         (Find, Find_Index): Ditto.
3288         (Is_Sorted, Merge, Sort): Ditto.
3289         (Reverse_Find, Reverse_Find_Index): Ditto.
3291 2013-04-11  Robert Dewar  <dewar@adacore.com>
3293         * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure.
3294         * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression.
3295         * expander.adb: Add call to Expand_N_Raise_Expression.
3296         * par-ch11.adb (P_Raise_Expression): New procedure.
3297         * par-ch4.adb (P_Relation): Handle Raise_Expression.
3298         * par.adb (P_Raise_Expression): New procedure.
3299         * sem.adb: Add handling for N_Raise_Expression.
3300         * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure.
3301         * sem_res.adb (Resolve): Add handling for N_Raise_Expression.
3302         * sinfo.ads, sinfo.adb (N_Raise_Expression): New node.
3303         * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression.
3304         * stand.ads (Any_Type): Document use with N_Raise_Expression.
3306 2013-04-11  Vincent Celier  <celier@adacore.com>
3308         * gnat_ugn.texi: Remove section "The Development Environments"
3309         now that all predefined attributes are documented, including
3310         those in package IDE.
3312 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3314         * sem_ch6.adb: Preserve parent link in copy of expression.
3316 2013-04-11  Vincent Celier  <celier@adacore.com>
3318         * projects.texi: Complete rewrite of the subsection Attributes
3319         in section "Project file Reference".
3321 2013-04-11  Robert Dewar  <dewar@adacore.com>
3323         * exp_ch4.adb: Minor reformatting.
3325 2013-04-11  Robert Dewar  <dewar@adacore.com>
3327         * exp_ch4.adb (Expand_Concatenate): Remove wrapping in
3328         expression-with-actions node. No longer needed given fix to
3329         sem_prag and caused loss of some useful warnings.
3330         * sem.ads: Minor reformatting.
3331         * sem_prag.adb (Check_Disabled): Removed, to be replaced by not
3332         Check_Enabled. These two routines were curiously incompatible
3333         causing confusion.
3334         (Analyze_Pragma, case Check): Make sure we do
3335         not expand the string argument if the check is disabled. Avoid
3336         use of Check_Disabled, which resulted in missing analysis in
3337         some cases.
3338         * sem_prag.ads (Check_Disabled): Removed, to be replaced by not
3339         Check_Enabled. These two routines were curiously incompatible
3340         causing confusion.
3342 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
3344         * exp_ch4.adb (Process_Transient_Object): Use
3345         an unchecked conversion when associating a transient controlled
3346         object with its "hook".
3348 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3350         * sem_prag.adb (Analyze_Pragma, case
3351         Preelaborable_Initialization): The pragma is legal if it comes
3352         from an aspect on the private view of the type, even though its
3353         analysis point takes place later at the freeze point.
3355 2013-04-11  Robert Dewar  <dewar@adacore.com>
3357         * sem_ch6.adb: Minor reformatting.
3359 2013-04-11  Yannick Moy  <moy@adacore.com>
3361         * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to
3362         read ALI files with No_Object=True in Alfa mode.
3363         * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether
3364         this is during frame condition generation of translation to Why.
3366 2013-04-11  Robert Dewar  <dewar@adacore.com>
3368         * exp_ch4.adb: Minor code reorganization
3369         * types.ads: Minor reformatting.
3371 2013-04-11  Johannes Kanig  <kanig@adacore.com>
3373         * opt.ads New global boolean Frame_Condition_Mode to avoid
3374         referring to command line switch.
3375         * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G
3376         is present, and disable Code generation in that case. Disable
3377         ALI file generation when switch is *not* present.
3379 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3381         * sem_ch6.adb (Analyze_Expression_Function): Perform the
3382         pre-analysis on a copy of the expression, to prevent downstream
3383         visbility issues involving operators and instantiations.
3385 2013-04-11  Johannes Kanig  <kanig@adacore.com>
3387         * debug.adb: Reservation and documentation for -gnatd.G switch.
3388         * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G
3389         switch, and set ALI file generation accordingly.
3391 2013-04-11  Robert Dewar  <dewar@adacore.com>
3393         * exp_ch4.adb, exp_dist.adb: Minor reformatting.
3394         * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
3395         check names introduced with pragma Check_Name are suppressed by -gnatp.
3397 2013-04-11  Vincent Celier  <celier@adacore.com>
3399         * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
3400         Files" from projects.texi to gnat_ugn.texi.
3402 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3404         * gcc-interface/Make-lang.in: Update dependencies.
3406 2013-04-11  Yannick Moy  <moy@adacore.com>
3408         * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa
3409         mode.
3411 2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
3413         * exp_ch4.adb (Expand_N_Allocator): Detect the
3414         allocation of an anonymous controlled object where the type of
3415         the context is named. Use the pool and finalization master of
3416         the named access type to allocate the object.
3418 2013-04-11  Vincent Celier  <celier@adacore.com>
3420         * gnat_ugn.texi: Remove most mentions of gprbuild.
3421         * projects.texi: Remove all mentions of asociative array
3422         attributes.
3424 2013-04-11  Robert Dewar  <dewar@adacore.com>
3426         * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb,
3427         opt.ads, sem_ch13.adb: Minor reformatting.
3428         * debug.adb: Minor comment fix (remove junk .I doc).
3430 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3432         * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case
3433         PolyORB): Bump to 6.
3434         (Exp_Dist.PolyORB_Support): Replace TC_Build with
3435         Build_Complex_TC.
3437 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3439         * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb,
3440         exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag.
3441         Enable this flag in CodePeer mode, and also via -gnatd.M.
3442         Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics.
3444 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3446         * sem_ch8.adb (Check_Constrained_Object): If a subtype is created
3447         from the renamed object in an object renaming declaration with
3448         an unconstrained nominal subtype, freeze the created subtype at
3449         once, to prevent order of elaboration issues in the backend.
3451 2013-04-11  Arnaud Charlet  <charlet@adacore.com>
3453         * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size
3454         in particular in CodePeer mode.
3456 2013-04-11  Vincent Celier  <celier@adacore.com>
3458         * gnat_ugn.texi: Add documentation for backup copies of project
3459         files for gnatname.
3461 2013-04-11  Tristan Gingold  <gingold@adacore.com>
3463         * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile
3464         pragma list.
3466 2013-04-11  Vincent Celier  <celier@adacore.com>
3468         * gnatname.adb (Scan_Args): Recognize new switch --no-backup
3469         (Usage): Add line for --no-backup.
3470         * opt.ads (No_Backup): New Boolean variable, initialized to False.
3471         (Ada_Version_Default): Switch to Ada 2012 by default.
3472         * prj-makr.adb (Initialize): Create a backup for an existing
3473         project file if gnatname is not invoked with --no-backup.
3475 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3477         * exp_ch4.adb: Minor code improvement: replace various calls to
3478         Make_If_Statement in expansion with Make_Implicit_If_Statement.
3480 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3482         * ali.adb: Fix minor typo.
3484 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3486         * exp_ch4.adb (Find_Enclosing_Context): Add missing case of
3487         N_Procedure_Call_Statement.
3489 2013-04-11  Robert Dewar  <dewar@adacore.com>
3491         * debug.adb: Minor comment fix.
3493 2013-04-11  Johannes Kanig  <kanig@adacore.com>
3495         * debug.adb: Remove comment for -gnatd.G.
3497 2013-04-11  Thomas Quinot  <quinot@adacore.com>
3499         * exp_ch4.adb (Expand_Record_Equality.Suitable_Element):
3500         Remove recursive routine, replace with...
3501         (Expand_Record_Equality.Element_To_Compare): New subroutine,
3502         implement iterative search for next element to compare.
3503         Add explanatory comment in the tagged case.
3505 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3507         * sem_ch5.adb: remove spurious warning from non-empty loop.
3508         * sem_ch8.adb (Enclosing_Instance): Make public to other routines
3509         in the package, in order to suppress redundant semantic checks
3510         on subprogram renamings in nested instantiations.
3512 2013-04-11  Robert Dewar  <dewar@adacore.com>
3514         * errout.ads: Minor reformatting.
3515         * sem_eval.adb (Why_Not_Static): Now issues continuation messages
3516         (Why_Not_Static): Test for aggregates behind string literals.
3517         * sem_eval.ads (Why_Not_Static): Now issues continuation messages.
3519 2013-04-11  Robert Dewar  <dewar@adacore.com>
3521         * exp_ch4.adb (Expand_Concatenation): Wrap expansion in
3522         Expressions_With_Actions.
3524 2013-04-11  Ed Schonberg  <schonberg@adacore.com>
3526         * sem_ch6.adb (Base_Types_Match): For an actual type in an
3527         instance, the base type may itself be a subtype, so find true
3528         base type to determine compatibility.
3530 2013-04-11  Robert Dewar  <dewar@adacore.com>
3532         * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb.
3533         makeutl.adb, sem_ch8.adb: Minor reformatting.
3535 2013-04-11  Vincent Celier  <celier@adacore.com>
3537         * gnat_ugn.texi: Minor fixes for VMS.
3538         * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?.
3540 2013-04-11  Robert Dewar  <dewar@adacore.com>
3542         * usage.adb (Usage): Minor edit to -gnatW message
3544 2013-04-11  Robert Dewar  <dewar@adacore.com>
3546         * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling
3547         others for string literal case. Also add big ??? comment about
3548         this new code, which should be redundant, but is not.
3549         * sem_eval.adb (Eval_Concatenation): Handle non-static case
3550         properly (Eval_String_Literal): Handle non-static literal properly
3552 2013-03-20  Tobias Burnus  <burnus@net-b.de>
3554         * i-fortra.ads: Update comment, add Ada 2012's optional
3555         Star and Kind data types for enhanced interoperability.
3557 2013-03-16  Eric Botcazou  <ebotcazou@adacore.com>
3559         * gnatvsn.ads (Library_Version): Bump to 4.9.
3561 2013-03-08  Cesar Strauss  <cestrauss@gmail.com>
3563         PR ada/52123
3564         * seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
3565         (__gnat_SEH_error_handler): Likewise.  Remove final return.
3567 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3569         * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
3570         out for an unimplemented attribute.
3572 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3574         * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around
3575         a misaligned integral type if a size is specified for the field.
3577 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3579         * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>:
3580         Record the unpadded type of the index type on the RCI stack.
3582 2013-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3584         * gcc-interface/trans.c (emit_range_check): Assert that the range type
3585         is a numerical type and remove useless local variables.
3587 2013-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3589         * gcc-interface/ada-tree.h: Back out change accidentally committed.
3591 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
3593         PR bootstrap/56258
3594         * gnat-style.texi (@title): Remove @hfill.
3595         * projects.texi: Avoid line wrapping inside of @pxref or @xref.
3597 2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>
3599         PR target/52123
3600         * tracebak.c: Cast from pointer via FARPROC.
3602 2013-02-07  Simon Wright  <simon@pushface.org>
3604         PR target/50678
3605         * init.c (__darwin_major_version): New function for x86-64/Darwin.
3606         (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
3607         on Darwin 12 and above.
3609 2013-02-06  Rainer Emrich  <rainer@emrich-ebersheim.de>
3611         PR target/52123
3612         * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
3613         SECURITY_DESCRIPTOR *
3614         (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE
3615         (__gnat_portable_spawn): Fix cast to char* const*
3616         (add_handle): Cast from pointer via void **
3617         (add_handle): Cast from pointer via int *
3618         (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *
3619         (__gnat_locate_exec_on_path): Cast from pointer via char *
3620         * initialize.c (append_arg): Cast from pointer via LPWSTR
3621         (__gnat_initialize): Cast from pointer via LPWSTR
3622         * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC
3624 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3626         * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations
3627         target pairs on VxWorks 5 only.
3629 2013-02-06  Arnaud Charlet  <charlet@adacore.com>
3631         * gcc-interface/Make-lang.in: Update dependencies.
3633 2013-02-06  Vincent Celier  <celier@adacore.com>
3635         * prj-proc.adb (Process_Aggregated_Projects): Use a new project
3636         node tree for each project tree rooted at an aggregated project.
3638 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3640         * sem_util.adb (Is_Interface_Conversion): New routine.
3641         (Object_Access_Level): Detect an interface conversion
3642         that has been rewritten into a different construct. Use the
3643         original form of the conversion to find the access level of
3644         the operand.
3646 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
3648         * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201.
3649         (Has_Pragma_No_Inline): Declare and mark as inline.
3650         (Set_Has_Pragma_No_Inline): Likewise.
3651         * einfo.adb (Has_Pragma_No_Inline): New function.
3652         (Set_Has_Pragma_No_Inline): New procedure.
3653         (Write_Entity_Flags): Handle Has_Pragma_No_Inline.
3654         * snames.ads-tmpl (Name_No_Inline): New pragma-related name.
3655         (Pragma_Id): Add Pragma_No_Inline value.
3656         * par-prag.adb (Prag): Handle Pragma_Inline.
3657         * sem_prag.adb (Inline_Status): New enumeration type.
3658         (Process_Inline): Change Active parameter
3659         to Inline_Status and add support for suppressed inlining.
3660         (Analyze_Pragma) <Pragma_Inline>: Adjust to above change.
3661         <Pragma_Inline_Always>: Likewise.
3662          <Pragma_No_Inline>: Implement new pragma No_Inline.
3663         (Sig_Flags): Add Pragma_No_Inline.
3664         * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline.
3665         * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline.
3667 2013-02-06  Pascal Obry  <obry@adacore.com>
3669         * s-osprim-mingw.adb (Clock): Make sure we copy all data locally
3670         to avoid interleaved modifications that could happen from another
3671         task calling Get_Base_Data.
3672         (Get_Base_Data): Make it a critical section. Avoid updating if another
3673         task has already done it.
3675 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
3677         * sem_prag.adb: Minor reformatting.
3679 2013-02-06  Pascal Obry  <obry@adacore.com>
3681         * s-tasloc.ads: Set System.Task_Lock to preelaborate.
3683 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
3685         * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll,
3686         Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related
3687         names.
3688         (Pragma_Id): Add Pragma_Loop_Optimize value.
3689         * par-prag.adb (Prag): Handle Pragma_Loop_Optimize.
3690         * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to...
3691         (Check_Loop_Pragma_Placement): ...this.
3692         (Analyze_Pragma)
3693         <Pragma_Loop_Invariant>: Adjust to above renaming.
3694         <Loop_Variant>: Likewise.
3695          <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize.
3696         (Sig_Flags): Add Pragma_Loop_Optimize.
3697         * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize.
3698         * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize.
3700 2013-02-06  Robert Dewar  <dewar@adacore.com>
3702         * osint.ads: Minor fix of typo.
3704 2013-02-06  Sergey Rybin  <rybin@adacore.com frybin>
3706         * gnat_ugn.texi: gnatmetric: update the documentation of
3707         complexity metrics for Ada 2012.
3709 2013-02-06  Javier Miranda  <miranda@adacore.com>
3711         * exp_disp.adb (Make_Secondary_DT): Code cleanup:
3712         remove useless initialization.
3714 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3716         * sem_ch3.adb (Build_Discriminant_Constraints): Do not
3717         generate overflow checks on a discriminant expression if the
3718         discriminant constraint is applied to a private type that has
3719         a full view, because the check will be applied when the full
3720         view is elaborated.  Removing the redundant check is not just
3721         an optimization, but it prevents spurious assembler errors,
3722         because of the way the backend generates names for expressions
3723         that require overflow checking.
3725 2013-02-06  Pascal Obry  <obry@adacore.com>
3727         * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker
3728         limitation on Windows.
3729         (DA): Removed.
3730         (LIA): Removed.
3731         (LLIA): Removed.
3732         (TFA): Removed.
3733         (BTA): Removed.
3734         (BMTA): Removed.
3735         (BCA): Removed.
3736         (BMCA): Removed.
3737         (BTiA): Removed.
3738         (Clock): Use variable corresponding to access.
3739         (Get_Base_Time): Likewise.
3740         (Monotonic_Clock): Likewise.
3742 2013-02-06  Vincent Celier  <celier@adacore.com>
3744         * make.adb (Gnatmake): When gnatmake is called with a project
3745         file, do not invoke gnatbind with -I-.
3746         * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get
3747         the infos from all the sources.
3749 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3751         * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma
3752         Overriding_Renamings.
3753         * par-prag.adb: Recognize pragma Overriding_Renamings.
3754         * opt.ads (Overriding_Renamings): flag to control compatibility
3755         mode with Rational compiler, replaces Rational_Profile flag.
3756         * sem_ch8.adb (Analyze_Subprogram_Renaming): When
3757         Overriding_Renamings is enabled, accept renaming declarations
3758         where the new subprogram renames and overrides a locally inherited
3759         operation. Improve error message for some illegal renamings.
3760         * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings.
3761         (Set_Rational_Profile): The Rational_Profile enables
3762         Overriding_Renamings, Implicit_Packing, and Use_Vads_Size.
3764 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3766         * sem_util.adb: Set parent of copied aggregate component, to
3767         prevent infinite loop.
3769 2013-02-06  Robert Dewar  <dewar@adacore.com>
3771         * sem_ch3.adb, sem_ch10.adb: Minor reformatting.
3772         * exp_disp.adb: Minor comment update.
3773         * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of
3774         No_Return pragmas.
3776 2013-02-06  Thomas Quinot  <quinot@adacore.com>
3778         * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target
3779         parameter, defaulted to False for now, indicates targets where
3780         non-default scalar storage order may be specified.
3782 2013-02-06  Thomas Quinot  <quinot@adacore.com>
3784         * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private
3785         same as E_Record_Subtype.  Display E_Class_Wide_Subtype as
3786         subtype, not type.
3788 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3790         * sem_ch3.adb (Complete_Private_Subtype): Inherit the
3791         Has_Unknown_Discriminants from the full view of the base type.
3793 2013-02-06  Tristan Gingold  <gingold@adacore.com>
3795         * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
3796         Enclosing debugging functions within #ifndef inhibit_libc to
3797         support builds without full C headers.
3799 2013-02-06  Thomas Quinot  <quinot@adacore.com>
3801         * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
3803 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3805         * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
3806         check to detect a parent-child relationship between two units in
3807         order to correctly bypass the installation of a limited view. In
3808         other words, the comment on the intended usage of the check was
3809         correct, but the code itself did not reflect the behavior.
3811 2013-02-06  Javier Miranda  <miranda@adacore.com>
3813         * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the
3814         runtime check on assignment to tagged types if compiling with checks
3815         suppressed.
3817 2013-02-06  Robert Dewar  <dewar@adacore.com>
3819         * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb,
3820         s-os_lib.adb: Minor reformatting
3822 2013-02-06  Vincent Celier  <celier@adacore.com>
3824         * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS.
3826 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3828         * snames.ads-tmpl: Add Name_Rational and pragma Rational.
3829         * par-prag.adb: Recognize pragma Rational.
3830         * opt.ads (Rational_Profile): flag to control compatibility mode
3831         with Rational compiler.
3832         * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile
3833         is enable, accept renaming declarations where the new subprogram
3834         and the renamed entity have the same name.
3835         * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize
3836         Rational as a profile.
3838 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3840         * exp_ch5.adb (Expand_Loop_Entry_Attributes): When
3841         dealing with a for loop that iterates over a subtype indication
3842         with a range, use the low and high bounds of the subtype.
3844 2013-02-06  Nicolas Roche  <roche@adacore.com>
3846         * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should
3847         be quoted
3849 2013-02-06  Vincent Celier  <celier@adacore.com>
3851         * prj-conf.adb (Process_Project_And_Apply_Config): New variable
3852         Conf_Project.  New recursive procedure Check_Project to find a non
3853         aggregate project and put its Project_Id in Conf_Project. Fails if
3854         no such project can be found.
3855         (Get_Or_Create_Configuration_File): New parameter Conf_Project.
3856          (Do_Autoconf): Use project directory of project Conf_Project to store
3857         the generated configuration project file.
3858         * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter
3859         Conf_Project.
3861 2013-02-06  Javier Miranda  <miranda@adacore.com>
3863         * sem_res.adb (Resolve_Actuals): Generate a read
3864         reference for out-mode parameters in the cases specified by
3865         RM 6.4.1(12).
3867 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3869         * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of
3870         Loop_Entry, instead wait until the attribute has been expanded. The
3871         delay ensures that any generated checks or temporaries are inserted
3872         before the relocated prefix.
3874 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3876         * sem_ch12.adb: Code clean up.
3878 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3880         * checks.adb (Apply_Discriminant_Check): Look for discriminant
3881         constraint in full view of private type when needed.
3882         * sem_ch12.adb (Validate_Array_Type_Instance): Specialize
3883         previous patch to components types that are private and without
3884         discriminants.
3886 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3888         * exp_ch4.adb (Find_Enclosing_Context): Recognize
3889         a simple return statement as one of the cases that require special
3890         processing with respect to temporary controlled function results.
3891         (Process_Transient_Object): Do attempt to finalize a temporary
3892         controlled function result when the associated context is
3893         a simple return statement.  Instead, leave this task to the
3894         general finalization mechanism.
3896 2013-02-06  Thomas Quinot  <quinot@adacore.com>
3898         * einfo.ads: Minor reformatting.
3899         (Status_Flag_Or_Transient_Decl): Add ??? comment.
3901 2013-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
3903         * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This
3904         routine should be able to properly detect controlled transient
3905         objects in its actions and generate the appropriate finalization
3906         actions.
3907         * exp_ch6.adb (Enclosing_Context): Removed.
3908         (Expand_Ctrl_Function_Call): Remove local subprogram and
3909         constant. Use routine Within_Case_Or_If_Expression to determine
3910         whether the lifetime of the function result must be extended to
3911         match that of the context.
3912         * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New
3913         routine.
3915 2013-02-06  Ed Schonberg  <schonberg@adacore.com>
3917         * sem_ch12.adb (Validate_Array_Type_Instance): Extend check
3918         for subtype matching of component type of formal array type,
3919         to avoid spurious error when component type is a separate actual
3920         in the instance, and there may be a discrepancy between private
3921         and full view of component type.
3923 2013-02-06  Robert Dewar  <dewar@adacore.com>
3925         * s-dim.ads, clean.adb: Minor reformatting.
3927 2013-02-06  Javier Miranda  <miranda@adacore.com>
3929         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch.
3930         (Can_Split_Unconstrained_Function): Only split the inlined function if
3931         the compiler generates the code of its body.
3933 2013-02-06  Robert Dewar  <dewar@adacore.com>
3935         * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb,
3936         exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for
3937         N_Pragma nodes.
3939 2013-02-06  Robert Dewar  <dewar@adacore.com>
3941         * gnat_rm.texi: Minor text updates for pragma Warning.
3943 2013-02-06  Geert Bosch  <bosch@adacore.com>
3945         * s-multip.adb (Number_Of_CPUs): Short-circuit in case of
3946         CPU'Last = 1.
3948 2013-02-06  Vincent Celier  <celier@adacore.com>
3950         * clean.adb (Delete): On VMS use host notation to delete all files.
3952 2013-02-06  Robert Dewar  <dewar@adacore.com>
3954         * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor
3955         reformatting.
3957 2013-02-06  Gary Dismukes  <dismukes@adacore.com>
3959         * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for
3960         the special case of a user-defined equality that overrides
3961         the predefined equality of a nonderived type declared in a
3962         declarative part.
3963         * sem_util.adb (Collect_Primitive_Operations): Add test for
3964         Is_Primitive when looping over the subprograms following a type,
3965         to catch the case of primitives such as a user-defined equality,
3966         which otherwise won't be found when the type is not a derived
3967         type and is declared in a declarative part.
3969 2013-02-06  Vincent Celier  <celier@adacore.com>
3971         * prj-conf.adb (Check_Target): Always return True when Target
3972         is empty (Get_Or_Create_Configuration_File.Get_Project_Target):
3973         New procedure to get the value of attribute Target in the main
3974         project.
3975         (Get_Or_Create_Configuration_File.Do_Autoconf): No
3976         need to get the value of attribute Target in the main project.
3977         (Get_Or_Create_Configuration_File): Call Get_Project_Target and
3978         use the target fom this call.
3980 2013-02-06  Eric Botcazou  <ebotcazou@adacore.com>
3982         * erroutc.adb (Validate_Specific_Warning): Do not issue the
3983         warning about an ineffective Pragma Warnings for -Wxxx warnings.
3984         * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings.
3985         * gnat_rm.texi (Pragma Warnings): Document coordination with
3986         warnings of the GCC back-end.
3988 2013-02-06  Javier Miranda  <miranda@adacore.com>
3990         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body
3991         of an inlined function if we do not generate code for the function.
3993 2013-02-06  Pascal Obry  <obry@adacore.com>
3995         * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname
3996         with Resolve_Links set to False.
3998 2013-02-03  Eric Botcazou  <ebotcazou@adacore.com>
4000         * gcc-interface/decl.c: Include diagnostic-core.h.
4001         (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
4002         is set on the entity.
4003         <E_Record_Type>: Likewise.
4004         * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
4006 2013-01-29  Ben Brosgol  <brosgol@adacore.com>
4008         * gnat_rm.texi: Fixed typos. Minor edits.
4010 2013-01-29  Bob Duff  <duff@adacore.com>
4012         * a-convec.adb: Minor reformatting.
4014 2013-01-29  Pascal Obry  <obry@adacore.com>
4016         * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp
4017         directory.
4019 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
4021         * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop
4022         identifier only if it comes from source.
4023         (Expand_N_Loop_Statement): If the domain of iteration is an
4024         enumeration type with a representation clause, remove from
4025         visibility the loop identifier before rewriting the loop as a
4026         block with a declaration for said identifier.
4027         * sem_util.adb (Remove_Homonym): Handle properly the default case.
4029 2013-01-29  Vincent Celier  <celier@adacore.com>
4031         * prj-proc.adb: Minor comment spelling fix.
4033 2013-01-29  Pascal Obry  <obry@adacore.com>
4035         * prj-proc.adb (Process_Expression_Variable_Decl): Prepend
4036         Project_Path to current environment.
4038 2013-01-29  Thomas Quinot  <quinot@adacore.com>
4040         * sprint.adb (Sprint_Node_Actual): Output freeze nodes for
4041         itypes even if Dump_Freeze_Null is not set.
4043 2013-01-29  Robert Dewar  <dewar@adacore.com>
4045         * sem_util.adb: Minor reformatting.
4046         * s-rident.ads: Minor comment fixes.
4048 2013-01-29  Pascal Obry  <obry@adacore.com>
4050         * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to
4051         control if the path is prepended or appended.
4053 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
4055         * sem_ch6.adb (Analyze_Expression_Function): An expression
4056         function declaration is not a subprogram declaration, and thus
4057         cannot appear in a protected definition.
4059 2013-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
4061         * exp_util.adb (Insert_Actions): When new
4062         actions come from the expression of the expression with actions,
4063         then they must be added to the list of existing actions.
4065 2013-01-29  Eric Botcazou  <ebotcazou@adacore.com>
4067         * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For
4068         the subtype of a constrained private type with discriminants
4069         that has got a full view, show that the completion is a clone
4070         of the full view.
4072 2013-01-29  Javier Miranda  <miranda@adacore.com>
4074         * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram.
4075         * opt.ads (Warn_On_Overlap): Update documentation.
4076         * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
4077         Check function writable actuals.
4078         * sem_ch3.adb (Build_Derived_Record_Type,
4079         Record_Type_Declaration): Check function writable actuals.
4080         * sem_ch4.adb (Analyze_Range): Check function writable actuals.
4081         * sem_ch5.adb (Analyze_Assignment): Remove code of the initial
4082         implementation of AI05-0144.
4083         * sem_ch6.adb (Analyze_Function_Return,
4084         (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code
4085         of the initial implementation of AI05-0144.
4086         * sem_res.adb (Resolve): Remove code of the initial implementation.
4087         (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call
4088         of the initial implementation.
4089         (Resolve_Arithmetic_Op, Resolve_Logical_Op,
4090         Resolve_Membership_Op): Check function writable actuals.
4091         * sem_util.ad[sb] (Actuals_In_Call): Removed
4092         (Check_Order_Dependence): Removed (Save_Actual): Removed
4093         (Check_Function_Writable_Actuals): New subprogram.
4094         * usage.adb (Usage): Update documentation.
4095         * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when
4096         setting all warnings.
4098 2013-01-29  Robert Dewar  <dewar@adacore.com>
4100         * a-calend-vms.adb: Minor comment fix.
4102 2013-01-29  Robert Dewar  <dewar@adacore.com>
4104         * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash
4105         because of casing issues.
4106         * sem_util.ads: Minor comment fix.
4107         * style.adb (Check_Identifier): Set proper casing for entities
4108         in ASCII.
4109         * styleg.adb: Minor comment improvement.
4110         * stylesw.ads (Style_Check_Standard): Fix bad comments.
4112 2013-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
4114         * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global.
4115         (Analyze_Pragma): Push the scope of the related subprogram and install
4116         its formals once before starting the analysis of the [moded] global
4117         list.
4119 2013-01-29  Pascal Obry  <obry@adacore.com>
4121         * prj-proc.adb (Process_Expression_Variable_Decl): Always handle
4122         relative paths in Project_Path as relative to the aggregate
4123         project location. Note that this was what was documented.
4125 2013-01-29  Vincent Celier  <celier@adacore.com>
4127         * gnatcmd.adb: For "gnat stub -P ...", do not check the naming
4128         scheme for Ada, when Ada is not a language for the project.
4130 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
4132         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4133         Is_Generic_Actual_Type flag in a nested instance.
4134         * sem_ch12.adb (Restore_Private_Views): Preserve
4135         Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type
4136         of an enclosing instance.
4137         * sem_util.adb (Corresponding_Generic_Type): Handle generic actual
4138         which is an actual of an enclosing instance.
4139         * sem_type.adb (Real_Actual): If a generic_actual_type is the
4140         formal of an enclosing generic and thus renames the corresponding
4141         actual, use the actual of the enclosing instance to resolve
4142         spurious ambiguities in instantiations when two formals are
4143         instantiated with the same actual.
4145 2013-01-29  Robert Dewar  <dewar@adacore.com>
4147         * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as
4148         being available as implementation-defined pragmas in earlier
4149         versions of Ada.
4151 2013-01-29  Vincent Celier  <celier@adacore.com>
4153         * clean.adb (Delete): On VMS, delete all versions of the file.
4155 2013-01-29  Robert Dewar  <dewar@adacore.com>
4157         * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure.
4158         * par-util.adb (No_Constraint): Undo special handling, moved
4159         to par-ch6.adb.
4161 2013-01-29  Robert Dewar  <dewar@adacore.com>
4163         * aspects.ads: Aspect Warnings is implementation defined Add
4164         some other missing entries to impl-defined list Mark Warnings
4165         as GNAT pragma in main list.
4166         * sem_ch8.adb: Process aspects for all cases of renaming
4167         declarations.
4169 2013-01-29  Robert Dewar  <dewar@adacore.com>
4171         * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag.
4172         * sem_elab.adb (Check_Internal_Call_Continue): Do not issue
4173         warnings about possible elaboration error if call is within
4174         an assertion.
4175         * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node.
4177 2013-01-29  Robert Dewar  <dewar@adacore.com>
4179         * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb,
4180         * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb,
4181         s-tasdeb-vms.adb: Replace pragma Interface by pragma Import.
4183 2013-01-29  Robert Dewar  <dewar@adacore.com>
4185         * opt.ads (Ignore_Style_Checks_Pragmas): New flag.
4186         * par-prag.adb (Par, case Style_Checks): Recognize
4187         Ignore_Style_Checks_Pragmas.
4188         * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize
4189         Ignore_Style_Checks_Pragmas.
4190         * switch-c.adb: Recognize -gnateY switch.
4191         * usage.adb: Add documentation for "-gnateY".
4192         * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY).
4194 2013-01-29  Vincent Celier  <celier@adacore.com>
4196         * clean.adb (Clean_Executables): Add Sid component when calling
4197         Queue.Insert.
4198         * make.adb: When inserting in the Queue, add the Source_Id
4199         (Sid) when it is known (Start_Compile_If_Possible): When the
4200         Source_Id is known (Sid), get the path name of the ALI file
4201         (Full_Lib_File) from it, to avoid finding old ALI files in other
4202         object directories.
4203         * makeutl.ads (Source_Info): New Source_Id component Sid in
4204         Format_Gnatmake variant.
4206 2013-01-29  Robert Dewar  <dewar@adacore.com>
4208         * gnat_ugn.texi: Document -gnateY.
4210 2013-01-29  Doug Rupp  <rupp@adacore.com>
4212         * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads,
4213         system-vms-ia64.ads: Replace pragma Interface by pragma Import.
4215 2013-01-29  Robert Dewar  <dewar@adacore.com>
4217         * atree.ads, atree.adb (Node30): New function.
4218         (Set_Node30): New procedure.
4219         (Num_Extension_Nodes): Change to 5 (activate new fields/flags).
4220         * atree.h: Add macros for Field30 and Node30.
4221         * einfo.ads, einfo.adb: Move some fields to avoid duplexing.
4222         * treepr.adb (Print_Entity_Information): Print fields 30-35.
4224 2013-01-29  Robert Dewar  <dewar@adacore.com>
4226         * sem_prag.adb (Analyze_Pragma, case Interface): Consider to
4227         be a violation of No_Obsolescent_Features even in Ada 95. Also
4228         generates a warning in -gnatwj mode.
4229         (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj
4230         mode.
4231         * gnat_ugn.texi: Additional documentation on -gnatwj and pragma
4232         Interface[_Name].
4234 2013-01-29  Vincent Celier  <celier@adacore.com>
4236         * snames.ads-tmpl: Add new standard name Trailing_Switches.
4238 2013-01-29  Ed Schonberg  <schonberg@adacore.com>
4240         * sem_disp.adb (Check_Controlling_Type): If a designated type T
4241         of an anonymous access type is a limited view of a tagged type,
4242         it can be a controlling type only if the subprogram is in the
4243         same scope as T.
4245 2013-01-29  Vincent Celier  <celier@adacore.com>
4247         * gnatcmd.adb: Use the project where the config pragmas file is
4248         declared to get its path.
4250 2013-01-29  Vincent Celier  <celier@adacore.com>
4252         * prj-attr.adb: New attribute Linker'Trailing_Switches.
4254 2013-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4256         * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do
4257         not translate the Etype of the node before translating the Actions.
4259 2013-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4261         * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size
4262         instead of optimize and adjust warning message.
4263         (Compilation_Unit_to_gnu): Process pragmas preceding the unit.
4265 2013-01-22  Tristan Gingold  <gingold@adacore.com>
4267         * gcc-interface/gigi.h (ADT_unhandled_except_decl,
4268         ADT_unhandled_others_decl): New.
4269         (unhandled_others_decl, unhandled_except_decl): Define.
4270         * gcc-interface/trans.c: Include common/common-target.h.
4271         (gigi): Initialize them.
4272         (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main
4273         function in a try/catch clause.
4275 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
4277         * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata.
4278         (CHECKING_ADAFLAGS): New.
4279         (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS.
4281 2013-01-10  Eric Botcazou  <ebotcazou@adacore.com>
4283         * gcc-interface/config-lang.in (boot_language_boot_flags): Delete.
4284         * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise.
4286 2013-01-07  Eric Botcazou  <ebotcazou@adacore.com>
4288         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
4289         comment about type extension with discriminants.
4290         <E_Record_Subtype>: Remove useless test and reorder conditions.
4291         (elaborate_entity) <E_Record_Subtype>: Likewise.
4293 2013-01-07  Richard Biener  <rguenther@suse.de>
4295         PR ada/864
4296         * gcc-interface/Make-lang.in (ada.install-common): Always apply
4297         program_transform_name.
4299 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4301         * gnatvsn.ads (Current_Year): Bump to 2013.
4303 2013-01-06  Olivier Hainque  <hainque@adacore.com>
4305         * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized
4306         diagnostic for component size mismatch wrt volatile requirements.
4307         Add a gcc_unreachable() at the end of the checks for size.  Split
4308         the check on volatile for positions into one check on atomic and
4309         a subsequent one on volatile.
4311 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4313         * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete.
4315 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4317         * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
4318         pack the field of the record type made for a misaligned type.
4320 2013-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4322         * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared
4323         for discriminants inherited from parent record types.
4325 2013-01-04  Robert Dewar  <dewar@adacore.com>
4327         * warnsw.adb: Minor fixes to -gnatw.d handling.
4329 2013-01-04  Robert Dewar  <dewar@adacore.com>
4331         * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more
4332         fields.
4334 2013-01-04  Joel Brobecker  <brobecker@adacore.com>
4336         * gnat_ugn.texi: Fix typo.
4338 2013-01-04  Robert Dewar  <dewar@adacore.com>
4340         * gnat_rm.texi: Document alignment choice for subtypes.
4342 2013-01-04  Robert Dewar  <dewar@adacore.com>
4344         * validsw.ads: Minor fix to comment.
4346 2013-01-04  Doug Rupp  <rupp@adacore.com>
4348         * Makefile.rtl (GNATRTL_NONTASKING_OBJS,
4349         GNATRTL_ALTIVEC_OBJS): Factor g-al* objects.
4350         * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources.
4351         (GNATRTL_ALTIVEC_OBJS): Override to null for VMS.
4352         Rename leon vxworks toolchain as leon-wrs-vxworks.
4353         * gcc-interface/Make-lang.in: Update dependencies
4355 2013-01-04  Pascal Obry  <obry@adacore.com>
4357         * prj.ads (For_Each_Source): Add Locally_Removed parameter.
4358         (Source_Iterator): Add Locally_Removed field.
4359         * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed.
4360         (Next): Likewise.
4362 2013-01-04  Robert Dewar  <dewar@adacore.com>
4364         * exp_attr.adb: Minor reformatting.
4366 2013-01-04  Robert Dewar  <dewar@adacore.com>
4368         * checks.adb (Insert_Valid_Check): Fix handling of renamed
4369         packed array element.
4370         * exp_ch4.adb (Expand_Concatenate): Fix some missing parent
4371         fields in generated code.
4372         * exp_util.adb (Side_Effect_Free): Improve detection of cases
4373         needing renaming.
4375 2013-01-04  Robert Dewar  <dewar@adacore.com>
4377         * sinfo.ads: Clean up order of N_xxx subtypes
4379 2013-01-04  Vincent Celier  <celier@adacore.com>
4381         * prj-conf.adb (Check_Target): Allow --autoconf= with no target.
4383 2013-01-04  Robert Dewar  <dewar@adacore.com>
4385         * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting.
4387 2013-01-04  Robert Dewar  <dewar@adacore.com>
4389         * par-ch6.adb (P_Subprogram): Better handling of missing IS
4390         after expression function.
4391         * par-util.adb (No_Constraint): Improve handling to avoid bad warnings.
4393 2013-01-04  Robert Dewar  <dewar@adacore.com>
4395         * exp_util.ads, exp_util.adb (Insert_Actions): In expression with
4396         actions case, new actions are appended to the sequence rather than
4397         prepended.
4399 2013-01-04  Robert Dewar  <dewar@adacore.com>
4401         * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode).
4402         * usage.adb: Add lines for -gnatw.d/w.D switches.
4403         * warnsw.adb: Minor fixes (some missing cases of setting
4404         Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode.
4406 2013-01-04  Robert Dewar  <dewar@adacore.com>
4408         * exp_util.adb (Remove_Side_Effects): Make sure scope suppress
4409         is restored on exit.
4411 2013-01-04  Robert Dewar  <dewar@adacore.com>
4413         * usage.adb: Document -gnateF (check overflow for predefined Float).
4415 2013-01-04  Robert Dewar  <dewar@adacore.com>
4417         * sem_res.adb (Resolve_Type_Conversion): Remove incorrect
4418         prevention of call to Apply_Type_Conversion_Checks, which resulted
4419         in missing check flags in formal mode.
4421 2013-01-04  Vincent Celier  <celier@adacore.com>
4423         * makeutl.ads (Db_Switch_Args): New table used by gprbuild.
4424         * prj-conf.adb (Check_Builder_Switches): Check for switches
4425         --config= (Get_Db_Switches): New procedure to get the --db
4426         switches so that they are used when invoking gprconfig in
4427         auto-configuration.
4428         (Do_Autoconf): When invoking gprconfig, use the --db switches, if any.
4430 2013-01-04  Pascal Obry  <obry@adacore.com>
4432         * prj-nmsc.adb: Minor reformatting.
4434 2013-01-04  Vincent Celier  <celier@adacore.com>
4436         * makeutl.ads (Root_Environment): New variable, moved rom
4437         gprbuild (Load_Standard_Base): New Boolean variable, moved
4438         from gprbuild.
4439         * prj-conf.adb (Check_Builder_Switches): New procedure to check
4440         for switch --RTS in package Builder. If a runtime specified
4441         by --RTS is a relative path name, but not a base name, then
4442         find the path on the Project Search Path.
4443         (Do_Autoconf): Call Check_Builder_Switches.
4444         (Locate_Runtime): New procedure, moved from gprbuild, to get the
4445         absolute paths of runtimes when they are not specified as a base name.
4446         * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild.
4448 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
4450         * sem_ch3.adb (Build_Private_Derived_Type): Set
4451         Has_Private_Ancestor on type derived from an untagged private
4452         type whose full view has discriminants
4453         * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension
4454         aggregate for untagged record type with private ancestor.
4456 2013-01-04  Thomas Quinot  <quinot@adacore.com>
4458         * sem_elab.adb, sem_ch3.adb: Minor reformatting.
4460 2013-01-04  Robert Dewar  <dewar@adacore.com>
4462         * table.adb: Minor reformatting.
4464 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
4466         * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does
4467         not come from source does not generate a warning for redundant
4468         with_clauses.
4470 2013-01-04  Hristian Kirtchev  <kirtchev@adacore.com>
4472         * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables.
4473         * par-prag.adb: Add pragma Global to the list of pragmas that
4474         do not need special processing by the parser.
4475         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
4476         Global into a pragma without any form of legality checks. The
4477         work is done by Analyze_Pragma. The aspect and pragma are both
4478         marked as needing delayed processing.  Insert the corresponding
4479         pragma of aspect Abstract_State in the visible declarations of the
4480         related package.
4481         (Check_Aspect_At_Freeze_Point): Aspect Global
4482         does not need processing even though it is marked as delayed.
4483         Alphabetize the list on aspect names.
4484         * sem_prag.adb: Add a value for pragma Global in table Sig_Flags.
4485         (Analyze_Pragma): Add ??? comment about the grammar of pragma
4486         Abstract_State.  Move the error location from the pragma to the
4487         state to improve the quality of error placement.  Add legality
4488         checks for pragma Global.
4489         * snames.ads-tmpl Add the following specially recognized names
4491 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4493         * sem_ch3.adb: Fix minor typo.
4495 2013-01-04  Ed Schonberg  <schonberg@adacore.com>
4497         * par-ch13.adb (Aspect_Specifications_Present): In Strict mode,
4498         accept an aspect name followed by a comma, indicating a defaulted
4499         boolean aspect.
4501 2013-01-04  Joel Brobecker  <brobecker@adacore.com brobecker>
4503         * gnat_ugn.texi: Document procedure to codesign GDB on Darwin.
4504         Update doc on gnattest --separates switch.
4506 2013-01-04  Thomas Quinot  <quinot@adacore.com>
4508         * s-chepoo.ads: Minor reformatting.
4510 2013-01-04  Arnaud Charlet  <charlet@adacore.com>
4512         * usage.adb: Remove mention of -gnatN in usage.
4514 2013-01-04  Robert Dewar  <dewar@adacore.com>
4516         * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb,
4517         freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb,
4518         prj-conf.adb, sem_ch13.adb: Minor reformatting.
4520 2013-01-04  Thomas Quinot  <quinot@adacore.com>
4522         * sinfo.ads: Minor documentation update.
4524 2013-01-04  Thomas Quinot  <quinot@adacore.com>
4526         * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind
4527         before resolving initialization expression.
4529 2013-01-04  Hristian Kirtchev  <kirtchev@adacore.com>
4531         * checks.adb (Generate_Index_Checks): Delay the generation of
4532         the check for an indexed component where the prefix mentions
4533         Loop_Entry until the attribute has been properly expanded.
4534         * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor
4535         decoration of the constant that captures the value of Loop_Entry's
4536         prefix at the entry point into a loop.  Generate index checks
4537         for an attribute reference that has been transformed into an
4538         indexed component.
4540 2013-01-04  Thomas Quinot  <quinot@adacore.com>
4542         * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb,
4543         sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to
4544         do if Obj is already frozen.
4545         (Exp_Util.Find_Init_Call): Rename to...
4546         (Exp_Util.Remove_Init_Call): New subprogram, renamed from
4547         Find_Init_Call.  Remove the initialization call from the enclosing
4548         list if found, and if it is from an Initialization_Statements
4549         attribute, reset it.
4550         (Exp_Util.Append_Freeze_Action): Minor code reorganization.
4551         (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been
4552         allocated (as is already done in Append_Freeze_Action).
4553         (Freeze.Freeze_Entity): For an object with captured
4554         Initialization_Statements and non-delayed freezeing, unwrap the
4555         initialization statements and insert and them directly in the
4556         enclosing list.
4557         (Sem_Ch13.Check_Address_Clause): For an object
4558         with Initialization_Statements and an address clause, unwrap the
4559         initialization statements when moving them to the freeze actions.
4561 2013-01-03  Pascal Obry  <obry@adacore.com>
4563         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and
4564         corresponding attibutes.
4566 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4568         * exp_aggr.adb: Minor comment improvement.
4570 2013-01-03  Hristian Kirtchev  <kirtchev@adacore.com>
4572         * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the
4573         relevant tables.
4574         * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to
4575         the description of fields (Abstract_States): New routine.
4576         (Integrity_Level): New routine.
4577         (Has_Property): New routine.
4578         (Is_Input_State): New routine.
4579         (Is_Null_State): New routine.
4580         (Is_Output_State): New routine.
4581         (Is_Volatile_State): New routine.
4582         (Refined_State): New routine.
4583         (Set_Abstract_States): New routine.
4584         (Set_Integrity_Level): New routine.
4585         (Set_Refined_State): New routine.
4586         (Write_Field8_Name): Add proper output for E_Abstract_State.
4587         (Write_Field9_Name): Add proper output for E_Abstract_State.
4588         (Write_Field25_Name): Add proper output for E_Package.
4589         * lib-xref.ads: Add new letter for an abstract state.
4590         * par-prag.adb: Add pragma Abstract_State to the list of pragma
4591         that do not need special processing by the parser.
4592         * sem_ch13.adb (Analyze_Aspect_Specifications): Convert
4593         aspect Abstract_State into a pragma without any form
4594         of legality checks. The work is done by Analyze_Pragma.
4595         (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not
4596         require delayed analysis.
4597         * sem_prag.adb: Add a value for pragma Abstract_State in table
4598         Sig_Flags.
4599         (Analyze_Pragma): Add legality checks for pragma
4600         Abstract_State. Analysis of individual states introduces a state
4601         abstraction entity into the visibility chain.
4602         * snames.ads-tmpl: Add new names for abstract state and
4603         integrity. Add new pragma id for abstract state.
4605 2013-01-03  Bob Duff  <duff@adacore.com>
4607         * table.adb (Reallocate): Calculate new Length in
4608         Long_Integer to avoid overflow.
4610 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4612         * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb
4613         (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that
4614         it is set properly when expanding the initialization expression.
4615         (Freeze.Check_Address_Clause): Transfer initialization expression
4616         to an assignment in the freeze actions, so that the object is
4617         initialized only after being elaborated by GIGI.
4618         (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow
4619         a Null_Statement as the expression in an Expression_With_Actions.
4620         (Exp_Aggr.Collect_Initialization_Statements): New subprogram
4621         shared by expansion of record and array aggregates, used to
4622         capture statements for an aggregate used to initalize an object
4623         into an Expression_With_Actions (which acts as a container for
4624         a list of actions).
4625         (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to
4626         capture initialization statements, instead of the previously
4627         existing loop which left freeze nodes out of the capturing
4628         construct (causing out of order elaboration crashes in GIGI).
4629         (Exp_Aggr.Expand_Array_Aggregate):  Use the above to capture
4630         initialization statements (this was previously not done for
4631         arrays).  Also do not unconditionally prevent in place expansion
4632         for an object with address clause.
4634 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4636         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that
4637         a record extension has the same scalar storage order as the parent type.
4639 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4641         * exp_ch4.adb: Add comment.
4643 2013-01-03  Vincent Celier  <celier@adacore.com>
4645         * prj.adb: Minor spelling error correction in comment.
4647 2013-01-03  Vincent Celier  <celier@adacore.com>
4649         * gnatcmd.adb (GNATCmd): If a single main has been specified
4650         as an absolute path, use its simple file name to find specific
4651         switches, instead of the absolute path.
4653 2013-01-03  Javier Miranda  <miranda@adacore.com>
4655         * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping
4656         parameters that are record types or array types generate warnings
4657         only compiling under -gnatw.i
4658         * opt.ads (Extensions_Allowed): Restore previous documentation.
4660 2013-01-03  Vincent Celier  <celier@adacore.com>
4662         * prj-conf.adb (Do_Autoconf): If Target is specified in the
4663         main project, but not on the command line, use the Target in
4664         the project to invoke gprconfig in auto-configuration.
4665         * makeutl.ads (Default_Config_Name): New constant String.
4667 2013-01-03  Arnaud Charlet  <charlet@adacore.com>
4669         * usage.adb: Minor: fix typo in usage.
4671 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4673         * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject
4674         an illegal component clause for an inherited component in a
4675         record extension.
4677 2013-01-03  Emmanuel Briot  <briot@adacore.com>
4679         * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which
4680         have information in the ALI file for both the index and the component
4681         types.
4683 2013-01-03  Emmanuel Briot  <briot@adacore.com>
4685         * projects.texi: Fix error in documenting the project path
4686         computed for an aggregate project.
4688 2013-01-03  Javier Miranda  <miranda@adacore.com>
4690         * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation
4691         plus restricting the functionality of this routine to cover the
4692         cases described in the Ada 2012 reference manual. The previous
4693         extended support is now available under -gnatX.
4694         * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy
4695         variable to call Timed_Sleep.  Required to avoid warning on
4696         overlapping out-mode actuals.
4697         * opt.ads (Extensions_Allowed): Update documentation.
4699 2013-01-03  Tristan Gingold  <gingold@adacore.com>
4701         * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64.
4702         * arit64.c: Removed
4703         * gcc-interface/Makefile.in: Remove reference to arit64.c.
4705 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4707         * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must
4708         be generated at the start of the freeze actions for the entity, not
4709         before (or after) the freeze node.
4711 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4713         * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl):
4714         Reorganize code to capture initialization statements in a block,
4715         so that freeze nodes are excluded from the captured block.
4717 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4719         * exp_ch11.adb: Minor reformatting.
4721 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4723         * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb,
4724         sem_ch13.adb (Einfo.Initialization_Statements,
4725         Einfo.Set_Initialization_Statements): New entity attribute
4726         for objects.
4727         (Exp_Util.Find_Init_Call): Handle case of an object initialized
4728         by an aggregate converted to a block of assignment statements.
4729         (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze
4730         even for objects that require a constant address, because the
4731         address expression might involve entities that have yet to be
4732         elaborated at the point of the object declaration.
4733         (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does
4734         not require a transient scope, capture the assignment statements
4735         in a block so that they can be moved down after elaboration of
4736         an address clause if needed.
4737         (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants,
4738         case N_Unchecked_Conversion): Do not replace operand subtype with
4739         its base type as this violates a GIGI invariant if the operand
4740         is an identifier (in which case the etype of the identifier
4741         is expected to be equal to that of the denoted entity).
4743 2013-01-03  Javier Miranda  <miranda@adacore.com>
4745         * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the
4746         functionality of this routine to cover cases described in the Ada 2012
4747         reference manual.
4749 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
4751         * sem_elab.adb (Set_Elaboration_Constraint): Handle properly
4752         a 'Access attribute reference when the subprogram is called
4753         Initialize.
4755 2013-01-03  Arnaud Charlet  <charlet@adacore.com>
4757         * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a
4758         select statement may be called from a controlled (e.g. Initialize)
4759         operation and have abort always deferred.
4761 2013-01-03  Robert Dewar  <dewar@adacore.com>
4763         * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization.
4765 2013-01-03  Javier Miranda  <miranda@adacore.com>
4767         * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude
4768         internal entities associated with interfaces and add minimum
4769         decoration to the defining entity of the generated wrapper to
4770         allow overriding interface primitives.
4771         * sem_disp.ads (Override_Dispatching_Operation): Addition of a
4772         new formal (Is_Wrapper).
4773         * sem_disp.adb (Override_Dispatching_Operation): When overriding
4774         interface primitives the new formal helps identifying that the
4775         new operation is not fully decorated.
4777 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4779         * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb,
4780         rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb
4781         (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit):
4782         Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and
4783         update spec accordingly (now also applies to root library units).
4784         (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag
4785         on root library units, not only child units.
4786         (Sem_Ch10.Install[_Limited]_Withed_Unit): Same.
4787         (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit
4788         even for root library units.
4789         (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is
4790         Standard is an expanded name for a root library unit.
4792 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4794         * exp_ch3.adb: Minor reformatting.
4796 2013-01-03  Olivier Hainque  <hainque@adacore.com>
4798         * tracebak.c: Reinstate changes to support ppc-lynx178.
4800 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
4802         * atree.ads: Minor reformatting and documentation enhancement.
4804 2013-01-03  Ed Schonberg  <schonberg@adacore.com>
4806         * exp_ch3.adb (Expand_N_Object_Declaration): If the object has
4807         a class-wide type and a renaming declaration is created for it,
4808         preserve entity chain, which already contains generated internal
4809         types. This ensures that freezing actions are properly generated
4810         for all objects declared subsequently in the same scope, and
4811         that debugging information is generated for them.
4812         * sem_util.adb, sem_util.ads (we): New debugging routine, to
4813         display entity chain of a given scope.
4815 2013-01-03  Robert Dewar  <dewar@adacore.com>
4817         * exp_intr.adb: Minor reformatting.
4819 2013-01-03  Robert Dewar  <dewar@adacore.com>
4821         * einfo.adb: Minor reformatting.
4823 2013-01-03  Pascal Obry  <obry@adacore.com>
4825         * adaint.c, adaint.h (__gnat_get_module_name): Removed.
4826         (__gnat_is_module_name_supported): Removed.
4827         * s-win32.ads: Add some needed definitions.
4828         * g-trasym.ads: Update comments.
4830 2013-01-03  Robert Dewar  <dewar@adacore.com>
4832         * layout.adb (Set_Composite_Alignment): Fix problems of
4833         interactions with Optimize_Alignment set to Space.
4835 2013-01-03  Thomas Quinot  <quinot@adacore.com>
4837         * exp_disp.adb: Minor reformatting.
4839 2013-01-02  Richard Biener  <rguenther@suse.de>
4841         PR bootstrap/55784
4842         * gcc-interface/Makefile.in: Add $(GMPINC) to includes.
4844 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4846         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove
4847         side effects from Tag_Arg early, doing it too late may cause a
4848         crash due to inconsistent Parent link.
4849         * sem_ch8.adb, einfo.ads: Minor reformatting.
4851 2013-01-02  Robert Dewar  <dewar@adacore.com>
4853         * einfo.ads, einfo.adb (Has_Independent_Components): New flag.
4854         * freeze.adb (Size_Known): We do not know the size of a packed
4855         record if it has atomic components, by reference type components,
4856         or independent components.
4857         * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new
4858         flag Has_Independent_Components.
4860 2013-01-02  Yannick Moy  <moy@adacore.com>
4862         * opt.ads (Warn_On_Suspicious_Contract): Set to True by default.
4863         * usage.adb (Usage): Update usage message.
4865 2013-01-02  Pascal Obry  <obry@adacore.com>
4867         * adaint.c (__gnat_is_module_name_supported): New constant.
4869 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
4871         * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an
4872         array whose component type does not have a completion.
4874 2013-01-02  Geert Bosch  <bosch@adacore.com>
4876         * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure.
4878 2013-01-02  Robert Dewar  <dewar@adacore.com>
4880         * par_sco.adb: Minor reformatting.
4882 2013-01-02  Javier Miranda  <miranda@adacore.com>
4884         * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code.
4886 2013-01-02  Olivier Hainque  <hainque@adacore.com>
4888         * a-exctra.ads (Get_PC): New function.
4890 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4892         * sem_ch8.adb: Minor reformatting.
4894 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4896         * sem_ch7.adb: Minor reformatting.
4898 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4900         * freeze.adb (Check_Component_Storage_Order): Do not crash on
4901         _Tag component.
4903 2013-01-02  Robert Dewar  <dewar@adacore.com>
4905         * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add
4906         On_Target to Atomic_Sync_Default.
4908 2013-01-02  Robert Dewar  <dewar@adacore.com>
4910         * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for
4911         comparison of attribute result with constant
4912         * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma
4913         Warnings (Off, "..");
4915 2013-01-02  Yannick Moy  <moy@adacore.com>
4917         * sem_prag.ads: Minor correction of comment.
4919 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4921         * par_sco.adb (Traverse_Package_Declaration): The first
4922         declaration in a nested package is dominated by the preceding
4923         declaration in the enclosing scope.
4925 2013-01-02  Pascal Obry  <obry@adacore.com>
4927         * adaint.c, adaint.h (__gnat_get_module_name): Return the actual
4928         module containing a given address.
4930 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4932         * sem_ch3.adb: Minor reformatting.
4934 2013-01-02  Pascal Obry  <obry@adacore.com>
4936         * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on
4937         Win64 and default to ftell on other platforms.
4938         (__gnat_fsek64): Likewise.
4939         * i-cstrea.ads: Add fssek64 and ftell64 specs.
4940         * s-crtl.ads: Likewise.
4941         * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required.
4942         (Set_Position): Likewise.
4944 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4946         * par_sco.adb: Generate X SCOs for default expressions in
4947         subprogram body stubs.  Do not generate any SCO for package,
4948         task, or protected body stubs.
4950 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
4952         * sem_ch3.adb: Further improvement to ASIS mode for anonymous
4953         access to protected subprograms.
4955 2013-01-02  Robert Dewar  <dewar@adacore.com>
4957         * par_sco.adb, vms_data.ads: Minor reformatting.
4959 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4961         * par_sco.adb (Traverse_Declarations_Or_Statement): Function
4962         form, returning value of Current_Dominant upon exit, for chaining
4963         purposes.
4964         (Traverse_Declarations_Or_Statement.Traverse_One, case
4965         N_Block_Statement): First statement is dominated by last declaration.
4966         (Traverse_Subprogram_Or_Task_Body): Ditto.
4967         (Traverse_Package_Declaration): First private
4968         declaration is dominated by last visible declaration.
4969         (Traverse_Sync_Definition): Ditto.
4971 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4973         * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order
4974         matching Bit_Order to record types only, since array types do not
4975         have a Bit_Order.
4977 2013-01-02  Vincent Celier  <celier@adacore.com>
4979         * gnat_ugn.texi: Remove documentation of -gnateO, which is an
4980         internal switch.
4981         * usage.adb: Indicate that -gnateO is an internal switch.
4983 2013-01-02  Thomas Quinot  <quinot@adacore.com>
4985         * par_sco.adb: Add SCO generation for task types and single
4986         task declarations.
4987         * get_scos.adb: When adding an instance table entry for a
4988         non-nested instantiation, make sure the Enclosing_Instance is
4989         correctly set to 0.
4991 2013-01-02  Hristian Kirtchev  <kirtchev@adacore.com>
4993         * sem_attr.adb (Analyze_Attribute): Skip the special _Parent
4994         scope generated for subprogram inlining purposes while trying
4995         to locate the enclosing function.
4996         * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
4997         expression of pragma Postcondition when the pragma comes from
4998         source and appears inside a subprogram body.
5000 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5002         * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
5003         information in debug info unconditionally when using -fdump-scos,
5004         instead of relying on a separate command line switch -fdebug-instances.
5005         * gcc-interface/Make-lang.in: Update dependencies.
5007 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5009         * sem_ch12.adb: Additional refinement of predicate.
5011 2013-01-02  Vincent Celier  <celier@adacore.com>
5013         * vms_data.ads: Remove incorrect spaces at end of descriptions
5014         of qualifiers for single switch.
5016 2013-01-02  Ben Brosgol  <brosgol@adacore.com>
5018         * gnat_rm.texi: Minor edits / wordsmithing in section on pragma
5019         Check_Float_Overflow.
5021 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5023         * sprint.adb (Sprint_Node_Actual): Do not add extra parens for
5024         a conditional expression (CASE or IF expression) that already
5025         has parens. Also omit ELSE keyword for an IF expression without
5026         an ELSE part.
5028 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5030         * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
5031         flag_debug_instances here, after front-end switches have been
5032         processed.
5034 2013-01-02  Vincent Celier  <celier@adacore.com>
5036         * usage.adb: Minor reformatting.
5038 2013-01-02  Arnaud Charlet  <charlet@adacore.com>
5040         * opt.ads: Fix typo.
5042 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5044         * par_sco.adb: Generate P decision SCOs for SPARK pragmas
5045         Assume and Loop_Invariant.
5047 2013-01-02  Robert Dewar  <dewar@adacore.com>
5049         * vms_data.ads: Add entry for Float_Check_Valid (-gnateF).
5050         * ug_words: Add entry for Float_Check_Overflow.
5051         * usage.adb: Minor reformatting.
5052         * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow).
5054 2013-01-02  Vincent Celier  <celier@adacore.com>
5056         * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated,
5057         -gnateO=, -gnatet and -gnateV.
5058         * ug_words: Add qualifiers equivalent to -gnateA, -gnated,
5059         -gnatet and -gnateV.
5060         * usage.adb: Add lines for -gnatea, -gnateO and -gnatez.
5061         * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK
5062         (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated),
5063         /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO
5064         (-gnatet).
5066 2013-01-02  Robert Dewar  <dewar@adacore.com>
5068         * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow.
5069         * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config].
5070         * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow.
5071         * sem_prag.adb: Implement pragma Check_Float_Overflow.
5072         * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow.
5073         * switch-c.adb: Recognize -gnateF switch.
5074         * tree_io.ads: Update ASIS version number.
5075         * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow.
5077 2013-01-02  Robert Dewar  <dewar@adacore.com>
5079         * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
5080         exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb,
5081         freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb,
5082         par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb,
5083         sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb,
5084         sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages.
5085         * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates.
5087 2013-01-02  Robert Dewar  <dewar@adacore.com>
5089         * err_vars.ads: Minor comment fix.
5091 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5093         * sem_ch12.adb: Refine predicate.
5095 2013-01-02  Robert Dewar  <dewar@adacore.com>
5097         * errout.ads: Minor comment fixes.
5098         * opt.ads: Minor comment additions.
5099         * exp_aggr.adb: Add tags to warning messages
5100         * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
5101         sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
5102         sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
5103         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
5104         sem_warn.adb: Add tags to warning messages
5106 2013-01-02  Doug Rupp  <rupp@adacore.com>
5108         * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
5110 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5112         * sem_ch12.adb: Recover source name for renamed packagea.
5114 2013-01-02  Robert Dewar  <dewar@adacore.com>
5116         * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing
5117         tests to fail if insertion sequence is at end of message string.
5118         * opt.ads: Minor comment fixes and additions.
5119         * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb,
5120         sem_ch12.adb, sem_ch13.adb: Add tags to warning messages.
5121         * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message
5122         tags. Add tags to warning messages.
5124 2013-01-02  Robert Dewar  <dewar@adacore.com>
5126         * err_vars.ads (Warning_Doc_Switch): New flag.
5127         * errout.adb (Error_Msg_Internal): Implement new warning flag
5128         doc tag stuff (Set_Msg_Insertion_Warning): New procedure.
5129         * errout.ads: Document new insertion sequences ?? ?x? ?.x?
5130         * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc
5131         tag stuff.
5132         * erroutc.ads (Warning_Msg_Char): New variable.
5133         (Warn_Chr): New field in error message object.
5134         * errutil.adb (Error_Msg): Set Warn_Chr in error message object.
5135         * sem_ch13.adb: Minor reformatting.
5136         * warnsw.adb: Add handling for -gnatw.d and -gnatw.D
5137         (Warning_Doc_Switch).
5138         * warnsw.ads: Add handling of -gnatw.d/.D switches (warning
5139         doc tag).
5141 2013-01-02  Robert Dewar  <dewar@adacore.com>
5143         * opt.ads: Minor reformatting.
5145 2013-01-02  Doug Rupp  <rupp@adacore.com>
5147         * init.c: Reorganize VMS section.
5148         (scan_condtions): New function for scanning condition tables.
5149         (__gnat_handle_vms_condtion): Use actual exception name for imported
5150         exceptions vice IMPORTED_EXCEPTION.
5151         Move condition table scanning into separate function. Move formerly
5152         special handled conditions to system condition table. Use SYS$PUTMSG
5153         output to fill exception message field for formally special handled
5154         condtions, in particular HPARITH to provide more clues about cause and
5155         location then raised from the translated image.
5157 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5159         * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post
5160         aspect that applies to a library subprogram, prepend corresponding
5161         pragma to the Pragmas_After list, in order for split AND THEN
5162         sections to be processed in the expected order.
5164 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5166         * exp_prag.adb (Expand_Pragma_Check): The statements generated
5167         for the pragma must have the sloc of the pragma, not the
5168         sloc of the condition, otherwise this creates anomalies in the
5169         generated debug information that confuse coverage analysis tools.
5171 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5173         * sem_ch13.adb: Minor reformatting.
5175 2013-01-02  Arnaud Charlet  <charlet@adacore.com>
5177         * g-excact.ads (Core_Dump): Clarify that this subprogram does
5178         not dump cores under Windows.
5180 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5182         * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed
5183         view of a subprogram has convention Intrnnsic, and a renaming
5184         of a prefixed view cannot be the prefix of an Access attribute.
5186 2013-01-02  Robert Dewar  <dewar@adacore.com>
5188         * restrict.adb: Minor reformatting.
5190 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5192         * exp_prag.adb: Minor reformatting.
5194 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5196         * sem_ch12.adb (Get_Associated_Node): If the node is an
5197         identifier that denotes an unconstrained array in an object
5198         declaration, it is rewritten as the name of an anonymous
5199         subtype whose bounds are given by the initial expression in the
5200         declaration. When checking whether that identifier is global
5201         reference, use the original node, not the local generated subtype.
5203 2013-01-02  Olivier Hainque  <hainque@adacore.com>
5205         * tracebak.c: Revert previous change, incomplete.
5207 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5209         * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect
5210         appears on a subprogram body that acts as a spec, place the
5211         corresponding pragma in the declarations of the body, so that
5212         e.g. pre/postcondition checks can be generated appropriately.
5214 2013-01-02  Robert Dewar  <dewar@adacore.com>
5216         * sem_ch3.adb: Minor reformatting and code reorganization.
5218 2013-01-02  Vincent Celier  <celier@adacore.com>
5220         * switch-m.adb (Normalize_Compiler_Switches): Record the
5221         complete switch -fstack-check=specific instead of its shorter
5222         alias -fstack-check.
5224 2013-01-02  Ed Schonberg  <schonberg@adacore.com>
5226         * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8):
5227         if the derived type is a tagged generic formal type with
5228         unknown discriminants, the inherited operation has convention
5229         Intrinsic. As such, the 'Access attribute cannot be applied to it.
5231 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5233         * sem_attr.adb: Minor reformatting.
5235 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5237         * par_sco.adb: Add SCO generation for S of protected types and
5238         single protected object declarations.
5240 2013-01-02  Robert Dewar  <dewar@adacore.com>
5242         * sem_eval.adb, osint.ads: Minor reformatting.
5244 2013-01-02  Hristian Kirtchev  <kirtchev@adacore.com>
5246         * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume.
5248 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5250         * sem_eval.adb (Compile_Time_Compare): For static operands, we
5251         can perform a compile time comparison even if in preanalysis mode.
5253 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5255         * par_sco.adb (SCO_Record): Always use
5256         Traverse_Declarations_Or_Statements to process the library level
5257         declaration, so that SCOs are properly generated for its aspects.
5259 2013-01-02  Thomas Quinot  <quinot@adacore.com>
5261         * scos.ads (In_Decision): Add missing entry for 'a'.
5262         * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit
5263         call to Set_SCO_Pragma_Enabled for Invariant and Predicate.
5264         * sem_ch13.adb: Minor comment update.
5266 Copyright (C) 2013 Free Software Foundation, Inc.
5268 Copying and distribution of this file, with or without modification,
5269 are permitted in any medium without royalty provided the copyright
5270 notice and this notice are preserved.