1 2015-03-02 Robert Dewar <dewar@adacore.com>
3 * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
6 2015-03-02 Ed Schonberg <schonberg@adacore.com>
8 * sem_ch8.adb: extend use of Available_Subtype.
10 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
12 * sem_prag.adb (Duplication_Error): Remove the special handling
13 of 'Class or _Class in the context of pre/postconditions.
14 (Process_Class_Wide_Condition): Remove the special handling of
15 'Class or _Class in the context of pre/postconditions.
16 * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
17 and Post_Class no longer need to be converted to _Pre and _Post.
18 * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
21 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
23 * exp_ch6.adb (Process_Preconditions): Modify the
24 mechanism that find the first source declaration to correct exit
25 the loop once it has been found.
27 2015-03-02 Gary Dismukes <dismukes@adacore.com>
29 * a-strsea.adb: Minor typo fix.
31 2015-03-02 Bob Duff <duff@adacore.com>
33 * einfo.ads: Minor comment fixes.
35 2015-03-02 Gary Dismukes <dismukes@adacore.com>
37 * einfo.adb, checks.adb: Minor reformatting and typo fixes.
39 2015-03-02 Ed Schonberg <schonberg@adacore.com>
41 * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
42 is defined for the array type, use it instead of a Default_Value
43 specified for the component type itself.
45 2015-03-02 Thomas Quinot <quinot@adacore.com>
47 * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
48 expanding a 'Input attribute reference for a class-wide type,
49 do not generate a separate object declaration for the controlling
50 tag dummy object; instead, generate the expression inline in the
51 dispatching call. Otherwise, the declaration (which involves a
52 call to String'Input, returning a dynamically sized value on the
53 secondary stack) will be expanded outside of proper secondary
54 stack mark/release operations, and will thus cause a secondary
57 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
59 * checks.adb (Add_Validity_Check): Change the names of all
60 formal parameters to better illustrate their purpose. Update
61 the subprogram documentation. Update all occurrences of the
62 formal parameters. Generate a pre/postcondition pragma by
63 calling Build_Pre_Post_Condition.
64 (Build_PPC_Pragma): Removed.
65 (Build_Pre_Post_Condition): New routine.
66 * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
67 is now used as Postconditions_Proc. Flag240 is now renamed to
68 Has_Expanded_Contract. (First_Formal): The routine can now
69 operate on generic subprograms.
70 (First_Formal_With_Extras): The routine can now operate on generic
72 (Has_Expanded_Contract): New routine.
73 (Has_Postconditions): Removed.
74 (Postcondition_Proc): Removed.
75 (Postconditions_Proc): New routine.
76 (Set_Has_Expanded_Contract): New routine.
77 (Set_Has_Postconditions): Removed.
78 (Set_Postcondition_Proc): Removed.
79 (Set_Postconditions_Proc): New routine.
80 (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
81 the output of Has_Expanded_Contract.
82 (Write_Field8_Name): Remove the output of Postcondition_Proc.
83 (Write_Field14_Name): Add the output of Postconditions_Proc.
84 * einfo.ads New attributes Has_Expanded_Contract and
85 Postconditions_Proc along with occurrences in entities.
86 Remove attributes Has_Postconditions and Postcondition_Proc
87 along with occurrences in entities.
88 (Has_Expanded_Contract): New routine along with pragma Inline.
89 (Has_Postconditions): Removed along with pragma Inline.
90 (Postcondition_Proc): Removed along with pragma Inline.
91 (Postconditions_Proc): New routine along with pragma Inline.
92 (Set_Has_Expanded_Contract): New routine along with pragma Inline.
93 (Set_Has_Postconditions): Removed along with pragma Inline.
94 (Set_Postcondition_Proc): Removed along with pragma Inline.
95 (Set_Postconditions_Proc): New routine along with pragma Inline.
96 * exp_ch6.adb (Add_Return): Code cleanup. Update the
97 generation of the call to the _Postconditions routine of
98 the procedure. (Expand_Non_Function_Return): Reformat the
99 comment on usage. Code cleanup. Update the generation of
100 the call to the _Postconditions routine of the procedure or
102 (Expand_Simple_Function_Return): Update the
103 generation of the _Postconditions routine of the function.
104 (Expand_Subprogram_Contract): Reimplemented.
105 * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
106 profile along the comment on usage.
107 * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
108 (Expand_N_Task_Type_Declaration): Generate pre/postconditions
109 wrapper when the entry [family] has a contract with
111 * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
112 (Expand_Contract_Cases): This routine and its subsidiaries now
113 analyze all generated code.
114 (Expand_Old_In_Consequence): Removed.
115 * sem_attr.adb Add with and use clause for Sem_Prag.
116 (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
117 (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
119 * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
120 a generic subprogram.
121 (Analyze_Object_Declaration): Do not create a contract node.
122 (Derive_Subprogram): Do not create a contract node.
123 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
124 not create a contract node.
125 (Analyze_Completion_Contract): New routine.
126 (Analyze_Function_Return): Alphabetize.
127 (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
128 contract node. Do not copy pre/postconditions to the original
130 (Analyze_Null_Procedure): Do not create a contract node.
131 (Analyze_Subprogram_Body_Contract): Reimplemented.
132 (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
133 as having postconditions. Do not create a contract node. Analyze
134 the subprogram body contract of a body that acts as a compilation
135 unit. Expand the subprogram contract after the declarations have
137 (Analyze_Subprogram_Contract): Reimplemented.
138 (Analyze_Subprogram_Specification): Do not create a contract node.
139 (List_Inherited_Pre_Post_Aspects): Code cleanup.
140 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
142 (Analyze_Subprogram_Contract): Update the
143 parameter profile and the comment on usage.
144 * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
146 (Analyze_Package_Declaration): Do not create a
148 (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
149 * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
151 * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
153 * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
154 their proper section and alphabetize them. Analyze the contract of
155 a [generic] subprogram after all Pragmas_After have been analyzed.
156 (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
157 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
158 create a contract node.
159 (Analyze_Generic_Subprogram_Declaration):
160 Alphabetize local variables. Do not create a contract
161 node. Do not generate aspects out of pragmas for ASIS.
162 (Analyze_Subprogram_Instantiation): Instantiate
163 the contract of the subprogram. Do not create a
164 contract node. (Instantiate_Contract): New routine.
165 (Instantiate_Subprogram_Body): Alphabetize local variables.
166 (Save_Global_References_In_Aspects): New routine.
167 (Save_References): Do not save the global references found within
168 the aspects of a generic subprogram.
169 * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
170 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
171 Original_Node for establishing linkages.
172 (Insert_Pragma): Insertion in a subprogram body takes precedence over
173 the case where the subprogram body is also a compilation unit.
174 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
175 Get_Argument to obtain the proper expression. Install the generic
176 formals when the related context is a generic subprogram.
177 (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
178 the proper expression. Use Corresponding_Spec_Of to obtain
179 the spec. Install the generic formal when the related context
180 is a generic subprogram.
181 (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
182 expression. Use Corresponding_Spec_Of to obtain the spec. Install the
183 generic formal when the related context is a generic subprogram.
184 (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
185 to obtain the proper expression. Remove the call to
186 Check_SPARK_Aspect_For_ASIS as the analysis is now done
188 (Analyze_Pragma): Update all occurrences
189 to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
190 Extensions_Visible, Global, Postcondition, Precondition and
191 Test_Case now carry generic templates when the related context
192 is a generic subprogram. The same pragmas are no longer
193 forcefully fully analyzed when the context is a subprogram
194 that acts as a compilation unit. Pragmas Abstract_State,
195 Initial_Condition, Initializes and Refined_State have been clean
196 up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
197 and Precondition now use the same routine for analysis. Pragma
198 Refined_Post does not need to check the use of 'Result or
199 the lack of a post-state in its expression. Reimplement the
200 analysis of pragma Test_Case.
201 (Analyze_Pre_Post_Condition): New routine.
202 (Analyze_Pre_Post_Condition_In_Decl_Part):
204 (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
206 (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
207 the proper expression.
208 (Analyze_Test_Case_In_Decl_Part): Reimplemented.
209 (Check_Pre_Post): Removed.
210 (Check_Precondition_Postcondition): Removed.
211 (Check_SPARK_Aspect_For_ASIS): Removed.
212 (Check_Test_Case): Removed.
213 (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
214 to obtain the proper expression. Use Corresponding_Spec_Of to
215 find the proper spec.
216 (Create_Generic_Template): New routine.
217 (Duplication_Error): New routine.
218 (Expression_Function_Error): New routine.
219 (Find_Related_Subprogram_Or_Body): Moved to the spec
220 of Sem_Prag. Emit precise error messages. Account for cases of
221 rewritten expression functions, generic instantiations, handled
222 sequence of statements and pragmas from aspects.
223 (Get_Argument): New routine.
224 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
225 (Preanalyze_CTC_Args): Removed.
226 (Process_Class_Wide_Condition): New routine.
227 * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
228 the parameter profile along with the comment on usage.
229 (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
230 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
231 (Test_Case_Arg): New routine.
232 * sem_util.adb Add with and use clauses for Sem_Ch6.
233 (Add_Contract_Item): This routine now creates a contract
234 node the first time an item is added. Remove the duplicate
235 aspect/pragma checks.
236 (Check_Result_And_Post_State): Reimplemented.
237 (Corresponding_Spec_Of): New routine.
238 (Get_Ensures_From_CTC_Pragma): Removed.
239 (Get_Requires_From_CTC_Pragma): Removed.
240 (Has_Significant_Contract): New routine.
241 (Inherit_Subprogram_Contract): Inherit only if the source
243 (Install_Generic_Formals): New routine.
244 (Original_Aspect_Name): Removed.
245 (Original_Aspect_Pragma_Name): New routine.
246 * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
247 (Corresponding_Spec_Of): New routine.
248 (Get_Ensures_From_CTC_Pragma): Removed.
249 (Get_Requires_From_CTC_Pragma): Removed.
250 (Has_Significant_Contract): New routine.
251 (Install_Generic_Formals): New routine.
252 (Original_Aspect_Name): Removed.
253 (Original_Aspect_Pragma_Name): New routine.
254 * sem_warn.adb Add with and use clauses for Sem_Prag.
255 (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
257 2015-03-02 Ed Schonberg <schonberg@adacore.com>
259 * sem_ch8.adb (Available_Subtype): Optimization in
260 Find_Selected_Component: when safe, use existing subtype of
261 array component, possibly discriminant-dependent, rather than
262 creating new subtype declaration for it. In this fashion different
263 occurrences of the component have the same subtype, rather than
264 just equivalent ones. Simplifies value tracing in GNATProve.
266 2015-03-01 Arnaud Charlet <charlet@adacore.com>
270 * doc/gnat_ugn/gnat_project_manager.rst,
271 doc/gnat_ugn/platform_specific_information.rst: Remove reference to
272 image, too troublesome with texi format.
273 * gnat_ugn.texi: Regenerate.
275 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
278 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
279 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
280 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
282 2015-02-23 Thomas Schwinge <thomas@codesourcery.com>
284 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
286 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
288 2015-02-22 Arnaud Charlet <charlet@adacore.com>
290 * doc/Makefile: postprocess texinfo files to update @dircategory
291 and update texi files under gcc/ada.
292 * gnat_ugn.texi, gnat_rm.texi: Regenerated.
294 2015-02-22 Arnaud Charlet <charlet@adacore.com>
296 * doc/gnat_ugn/project-manager-figure.png,
297 doc/gnat_ugn/rtlibrary-structure.png: New.
299 2015-02-22 Tom de Vries <tom@codesourcery.com>
302 * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
303 @item, and fix warning '@itemize has text but no @item'.
305 2015-02-20 Ed Schonberg <schonberg@adacore.com>
307 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
308 legally applies to an abstract subprogram declaration.
309 * freeze.adb: Minor comment addition.
311 2015-02-20 Robert Dewar <dewar@adacore.com>
313 * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
314 * erroutc.adb (Set_Msg_Str): Replace _xxx.
315 (Pre/Post/Type_Invariant) by xxx'Class.
316 * erroutc.ads (Set_Msg_Str): Replace _xxx.
317 (Pre/Post/Type_Invariant) by xxx'Class.
318 * sem_prag.adb (Fix_Error): Remove special casing of
319 Name_uType_Invariant.
320 (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
321 Name_uPre and Name_uPost in aspect case (done in Errout now).
323 2015-02-20 Robert Dewar <dewar@adacore.com>
325 * g-alveop.adb: Minor style fixes.
327 2015-02-20 Robert Dewar <dewar@adacore.com>
329 * freeze.adb (Warn_Overlay): Guard against blow up with address
332 2015-02-20 Bob Duff <duff@adacore.com>
334 * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
335 for the compiler to guess whether the call is internal or external --
336 it is always external.
337 (Expand_Access_To_Protected_Op): For P'Access, where P
338 is a protected subprogram, always create a pointer to the
341 2015-02-20 Robert Dewar <dewar@adacore.com>
343 * a-dispat.adb, a-stcoed.ads: Minor reformatting.
345 2015-02-20 Robert Dewar <dewar@adacore.com>
347 * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
348 predicate for non-static subtype.
349 (Build_Predicate_Functions): Do not assume subtype associated with a
350 static predicate must be static.
352 2015-02-20 Robert Dewar <dewar@adacore.com>
354 * errout.adb (Set_Msg_Node): Better handling of internal names
355 (Set_Msg_Node): Kill message when we cannot eliminate internal name.
356 * errout.ads: Document additional case of message deletion.
357 * namet.adb (Is_Internal_Name): Refined to consider wide
358 strings in brackets notation and character literals not to be
360 * sem_ch8.adb (Find_Selected_Component): Give additional error
361 when selector name is a subprogram whose first parameter has
362 the same type as the prefix, but that type is untagged.
364 2015-02-20 Robert Dewar <dewar@adacore.com>
366 * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
368 2015-02-20 Tristan Gingold <gingold@adacore.com>
370 * opt.ads (GNAT_Mode_Config): New variable.
371 * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
372 to set Assertions_Enabled.
373 * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
376 2015-02-20 Robert Dewar <dewar@adacore.com>
378 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
379 comment regarding the handling of unterminated fixed-point
381 * s-valuns.ads (Scan_Raw_Unsigned): Add comments
382 corresponding to those previously added for
383 System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
385 2015-02-20 Olivier Hainque <hainque@adacore.com>
387 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
389 2015-02-20 Robert Dewar <dewar@adacore.com>
391 * sem_prag.adb: Minor comment clarification.
393 2015-02-20 Olivier Hainque <hainque@adacore.com>
395 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
396 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
397 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
398 (vec_ctf): Now renamings as well.
400 2015-02-20 Robert Dewar <dewar@adacore.com>
402 * switch-c.adb, bindgen.adb: Minor reformatting.
404 2015-02-20 Ed Schonberg <schonberg@adacore.com>
406 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
407 Invariant'class is allowed on an abstract type.
409 2015-02-20 Ed Schonberg <schonberg@adacore.com>
411 * sem_ch3.adb (Access_Definition): If the access definition is
412 for a protected component and defines an access to protected
413 subprogram, do not create an itype reference for it because a
414 full type declaration will be built in order to generate the
415 proper equivalent type.
416 (Analyze_Subtype_Declaration): Add information of incomplete
417 subtypes, for Ada 2012 extended uses of incomplete types.
419 2015-02-20 Gary Dismukes <dismukes@adacore.com>
421 * sem_res.adb: Minor reformatting.
423 2015-02-20 Vincent Celier <celier@adacore.com>
425 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
426 path name for several switches --RTS, use the normalized path
429 2015-02-20 Vincent Celier <celier@adacore.com>
431 * bindgen.adb: Minor reformatting and code reorganization.
433 2015-02-20 Jose Ruiz <ruiz@adacore.com>
435 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
436 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
439 2015-02-20 Arnaud Charlet <charlet@adacore.com>
441 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
442 obsolete references to RTX, nucleus, VMS.
444 2015-02-20 Ed Schonberg <schonberg@adacore.com>
446 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
447 aspect, use name that mentions Class explicitly, rather than
448 compiler-internal name.
450 2015-02-20 Robert Dewar <dewar@adacore.com>
452 * debug.adb: Add documentation for -gnatd.2 (allow statements
454 * par-ch3.adb (P_Identifier_Declarations): Handle
455 statement appearing where declaration expected more cleanly.
456 (Statement_When_Declaration_Expected): Implement debug flag
459 2015-02-20 Jose Ruiz <ruiz@adacore.com>
461 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
462 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
463 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
464 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
466 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
467 This is the correct name for the dispatching policy (FIFO was
470 2015-02-20 Javier Miranda <miranda@adacore.com>
472 * sem_res.adb (Resolve_Type_Conversion): If the type of the
473 operand is the limited-view of a class-wide type then recover
474 the class-wide type of the non-limited view.
476 2015-02-20 Arnaud Charlet <charlet@adacore.com>
478 * gcc-interface/Makefile.in: Remove references to nucleus.
479 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
480 extern_flag to true for Inline_Always subprograms with
481 Intrinsic convention.
483 2015-02-20 Yannick Moy <moy@adacore.com>
485 * sem_prag.ads: Minor typo in comment.
487 2015-02-20 Pascal Obry <obry@adacore.com>
489 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
491 2015-02-20 Vincent Celier <celier@adacore.com>
493 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
496 2015-02-20 Robert Dewar <dewar@adacore.com>
498 * sem_eval.ads: Minor reformatting.
500 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
502 * freeze.adb (Size_Known): Do not set the packed size for
503 independent type or component.
504 (Freeze_Array_Type): Check for Independent[_Components] with packing
505 or explicit component size clause.
506 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
507 of independence pragmas only for non-GCC back-ends.
508 * sem_ch13.adb (Initialize): Likewise for the initialization.
509 * sem_prag.adb (Record_Independence_Check): New procedure to record an
510 independence check in the table.
511 (Analyze_Pragma): Use it throughout instead of doing it manually.
512 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
513 independent type or component.
515 2015-02-20 Thomas Quinot <quinot@adacore.com>
517 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
518 struct direct and readdir. This is required for NFS filesystems
519 mounted from servers that use 64-bit cookies.
521 2015-02-20 Ed Schonberg <schonberg@adacore.com>
523 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
524 Build_Subprogram_Renaming, to create renaming of subprogram
525 instance in the the declaration of the wrapper package rather
526 than in its body, so that it is available for analysis of aspects
527 propagated from generic to instantiation.
528 (Check_Mismatch): An actual for a formal package that is an
529 incomplete type matches a formal type that is incomplete.
530 (Instantiate_Package_Body): Move code that builds subprogram
531 renaming to Analyze_Subprogram_Instantiation.
532 (Instantiate_Type): The generated subtype is a limited view if
533 the actual is a limited view.
534 (Load_Parent_Of_Generic): Retrieve instance declaration from
535 its new position within wrapper package.
537 2015-02-20 Arnaud Charlet <charlet@adacore.com>
539 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
541 2015-02-20 Robert Dewar <dewar@adacore.com>
543 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
544 issue of negative arguments.
546 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
548 * gnat1drv.adb: Minor consistency fix.
550 2015-02-20 Pascal Obry <obry@adacore.com>
552 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
555 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
557 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
559 * exp_ch6.adb (Expand_Call): Use back-end inlining
560 instead of expansion for simple subprogram renamings.
562 2015-02-20 Robert Dewar <dewar@adacore.com>
564 * exp_util.adb: Minor reformatting.
566 2015-02-20 Vincent Celier <celier@adacore.com>
568 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
569 is specified several times with different values that indicates
570 the same runtime directory.
572 2015-02-20 Ed Schonberg <schonberg@adacore.com>
574 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
575 handle properly illegal uses of attributes on prefixes on an
576 incomplete type, both when the type of the prefix is locally
577 incomplete, and when it is a limited view of a type whose
578 non-limited view is not available.
579 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
582 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
584 * exp_ch6.adb: Fix minor typo in comment.
586 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
588 * sinfo.ads: Add comment.
590 2015-02-20 Olivier Hainque <hainque@adacore.com>
592 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
593 flags controlling the actual FE inlining out of pragma Inline
594 and pragma Inline_Always.
595 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
596 on -fno-inline, which disables all inlining in compilers with
597 an Ada back-end and without back-end inlining support.
598 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
599 flag to True on -fno-inline and leave Inline_Always alone for
601 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
602 names of the Opt flags it sets.
603 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
604 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
605 * sem_prag.adb (Make_Inline): Remove early return conditioned
606 on Opt.Suppress_All_Inlining.
607 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
608 disable the calls to Build_Body_To_Inline otherwise triggered
609 by pragma Inline or Inline_Always. This will prevent actual
610 front-end inlining of the subprogram on calls.
612 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
614 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
615 Abort_Undefer_Direct function.
616 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
617 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
618 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
619 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
621 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
622 Remove call to Register_Backend_Call and move code resetting
623 Needs_Debug_Info on inlined subprograms to...
624 * inline.ads (Add_Inlined_Body): Add N parameter.
625 (Register_Backend_Call): Delete.
626 * inline.adb (Add_Inlined_Body): ...here and simplify.
627 Register the call with Backend_Calls directly.
628 (Register_Backend_Call): Delete.
629 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
631 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
633 * s-stalib.ads: Fix typo.
635 2015-02-20 Ed Schonberg <schonberg@adacore.com>
637 * exp_ch3.adb (Default_Initialize_Object): If the object has a
638 delayed freeze, the actions associated with default initialization
639 must be part of the freeze actions, rather that being inserted
640 directly after the object declaration.
642 2015-02-20 Robert Dewar <dewar@adacore.com>
644 * lib-load.adb: Minor comment update.
646 2015-02-20 Vincent Celier <celier@adacore.com>
648 * prj-proc.adb (Process_Case_Construction): When there are
649 incomplete withed projects and the case variable is unknown,
650 skip the case construction.
652 2015-02-20 Ed Schonberg <schonberg@adacore.com>
654 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
655 when an actual is a view conversion, either because the call is
656 to an inherited operation, or because the actual is an explicit
657 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
659 2015-02-20 Robert Dewar <dewar@adacore.com>
661 * einfo.ads: Minor comment updates Fix missing pragma Inline
662 for Set_Partial_View_Has_Unknown_Discr.
663 * einfo.adb (Write_Entity_Flags): Add missing entry for
664 Partial_View_Has_Unknown_Discr.
665 * sem_ch3.adb: Minor reformatting.
667 2015-02-20 Vincent Celier <celier@adacore.com>
669 * opt.ads: Minor cleanup: remove mention of gprmake.
670 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
671 * s-tataat.adb: Do not call System.Tasking.Self but directly
672 System.Task_Primitives.Operations.Self.
674 2015-02-20 Arnaud Charlet <charlet@adacore.com>
676 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
677 sphinx in the doc directory.
678 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
680 2015-02-20 Robert Dewar <dewar@adacore.com>
682 * sem_res.adb: Minor reformatting.
683 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
685 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
686 aspects from circuitry setting delay required to false if the
687 argument is an integer literal.
689 2015-02-20 Ed Schonberg <schonberg@adacore.com>
691 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
692 on type entities, to enforce AI12-0133: default initialization
693 of types whose partial view has unknown discriminants does not
694 get an invariant check, because clients of the unit can never
695 declare objects of such types.
696 * sem_ch3.adb (Find_Type_Name); Set new flag
697 Partial_View_Has_Unknown_Discr when needed.
698 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
699 generation of invariant call on default-initialized object.
701 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
703 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
704 if the parameter either is passed by reference or if the alignment
707 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
709 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
710 detect primitive operations of tagged and untagged types.
712 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
714 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
715 sets in presence of derivation for subprogram types.
717 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
719 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
720 present in the same context as the declaration.
722 2015-02-07 Jakub Jelinek <jakub@redhat.com>
725 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
726 and optimization_current_node after tweaking global_options.
728 2015-02-05 Robert Dewar <dewar@adacore.com>
730 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
731 prj-nmsc.adb: Minor reformatting.
733 2015-02-05 Ed Schonberg <schonberg@adacore.com>
735 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
736 of a protected type may not be available, so to check conformance
737 with an interface type, examine the interface list in the type
738 declaration directly.
739 (Write_Overloads): Improve information for indirect calls,
742 2015-02-05 Ed Schonberg <schonberg@adacore.com>
744 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
745 expansion activity in ASIS mode.
747 2015-02-05 Javier Miranda <miranda@adacore.com>
749 * errout.adb (Error_Msg_PT): Add missing error.
750 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
751 RM rule. Code cleanup.
752 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
753 anonymous access types. Found working on the tests. Code cleanup.
755 2015-02-05 Vincent Celier <celier@adacore.com>
757 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
758 when there are incomplete withs.
759 * prj-nmsc.adb (Process_Naming): Do not try to get the value
760 of an element when it is nil.
761 (Check_Naming): Do not check a nil suffix for illegality
762 * prj-proc.adb (Expression): Do not process an empty term.
763 * prj-strt.adb (Attribute_Reference): If attribute cannot be
764 found, parse a possible index to avoid cascading errors.
766 2015-02-05 Ed Schonberg <schonberg@adacore.com>
768 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
769 for an access_to_subprogram declaration is not a derived type.
771 2015-02-05 Robert Dewar <dewar@adacore.com>
773 * errout.adb (Error_Msg_Internal): For non-serious error set
774 Fatal_Error to Ignored.
775 * lib-load.adb (Load_Unit): Minor comment updates.
776 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
777 setting from with'ed unit to with'ing unit.
778 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
781 2015-02-05 Yannick Moy <moy@adacore.com>
783 * sem_prag.adb, par-prag.adb: Minor code clean up.
785 2015-02-05 Yannick Moy <moy@adacore.com>
787 * par-prag.adb (Pragma_Warnings): Update for extended form
788 of pragma Warnings. The "one" argument case may now have 2 or
790 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
791 extended form of pragma Warnings. Pragma with tool name is either
792 rewritten as null or as an equivalent form without tool name,
794 * snames.ads-tmpl (Name_Gnatprove): New name.
796 2015-02-05 Robert Dewar <dewar@adacore.com>
798 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
800 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
801 condition is standard Boolean, it can be non-standard derived
804 2015-02-05 Robert Dewar <dewar@adacore.com>
806 * checks.adb (Enable_Range_Check): Disconnect attempted
807 optimization for the case of range check for subscript of
810 2015-02-05 Robert Dewar <dewar@adacore.com>
812 * par-ch13.adb (With_Present): New function
813 (Aspect_Specifications_Present): Handle WHEN in place of WITH
814 (Get_Aspect_Specifications): Comment update.
815 * par.adb: Comment updates.
817 2015-02-05 Robert Dewar <dewar@adacore.com>
819 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
820 * frontend.adb (Frontend): New setting of Fatal_Error.
821 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
823 (Load_Main_Source): New setting of Fatal_Error
824 (Load_Unit): New setting of Fatal_Error.
825 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
827 (Ensure_System_Dependency): New setting of Fatal_Error.
828 * lib.adb (Fatal_Error): New setting of Fatal_Error
829 (Set_Fatal_Error): New setting of Fatal_Error.
830 * lib.ads: New definition of Fatal_Error and associated routines.
831 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
832 * par-load.adb (Load): New setting of Fatal_Error.
833 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
834 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
836 (Optional_Subunit): New setting of Fatal_Error.
837 (Analyze_Proper_Body): New setting of Fatal_Error.
838 (Load_Needed_Body): New setting of Fatal_Error.
840 2015-02-05 Ed Schonberg <schonberg@adacore.com>
842 * sem_res.adb (Resolve_Call): If the function being called has
843 out parameters do not check for language version if the function
844 comes from a predefined unit, as those are always compiled in
847 2015-02-05 Ed Schonberg <schonberg@adacore.com>
849 * sem_ch3.adb (Process_Full_View): Verify that the full view
850 of a type extension must carry an explicit limited keyword if
851 the partial view does (RM 7.3 (10.1)).
853 2015-02-05 Robert Dewar <dewar@adacore.com>
855 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
856 sem_warn.ads: Minor reformatting.
857 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
859 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
860 error for abstract type.
862 2015-02-05 Yannick Moy <moy@adacore.com>
864 * opt.ads (Warn_On_Suspicious_Contract): Update comment
866 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
867 suspicious uses of 'Update.
868 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
869 function issues warning on suspicious uses of 'Update.
870 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
871 package spec and body as SPARK_Mode Off.
873 2015-02-05 Robert Dewar <dewar@adacore.com>
875 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
876 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
877 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
878 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
881 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
883 * sem_prag.adb (Check_Pragma_Conformance): Add
884 local variable Arg. Ensure that all errors are associated with
885 the pragma if it appears without an argument. Add comments on
888 2015-02-05 Robert Dewar <dewar@adacore.com>
890 * lib-xref.adb: Minor reformatting.
892 2015-02-05 Tristan Gingold <gingold@adacore.com>
895 * env.c: Fix thinko: handle Darwin case before default one.
897 2015-01-30 Robert Dewar <dewar@adacore.com>
899 * a-assert.adb: Minor reformatting.
900 * sem_ch13.adb: Minor comment clarification.
901 * types.ads: Minor comment update.
902 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
903 when we have a predicate that is nothing but an inherited dynamic
906 2015-01-30 Jerome Guitton <guitton@adacore.com>
908 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
909 include cert link spec.
911 2015-01-30 Robert Dewar <dewar@adacore.com>
913 * einfo.ads: Minor comment fix.
914 * freeze.adb (Freeze_Profile): Add test for suspicious import
916 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
917 use in Pure unit is now moved to Freeze (to properly catch
918 Pure_Function exemption).
920 2015-01-30 Bob Duff <duff@adacore.com>
922 * sem_res.ads: Minor comment fix.
923 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
924 check both operands of an operator.
926 2015-01-30 Yannick Moy <moy@adacore.com>
928 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
929 policy for Pre to Ignore.
930 (Assert): Add precondition.
932 2015-01-30 Robert Dewar <dewar@adacore.com>
934 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
936 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
937 documentation for some special cases of invalid attempts at
940 2015-01-30 Gary Dismukes <dismukes@adacore.com>
942 * errout.ads: Minor reformatting.
944 2015-01-30 Yannick Moy <moy@adacore.com>
946 * inline.adb (Process_Formals): Use the sloc of
947 the inlined node instead of the sloc of the actual parameter,
948 when replacing formal parameters by the actual one.
950 2015-01-30 Arnaud Charlet <charlet@adacore.com>
952 * g-expect.adb (Get_Command_Output): Use infinite timeout when
955 2015-01-30 Ed Schonberg <schonberg@adacore.com>
957 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
958 defaulted in an instantiation, add an entry in the list of actuals
959 to indicate the default value of the formal (as is already done
960 for defaulted subprograms).
962 2015-01-30 Javier Miranda <miranda@adacore.com>
964 * errout.adb (Error_Msg_PT): Minor error phrasing update.
966 2015-01-30 Robert Dewar <dewar@adacore.com>
968 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
971 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
973 * exp_dbug.adb (Get_Encoded_Name): When
974 -fgnat-encodings=minimal, do not generate names for biased types.
976 2015-01-30 Tristan Gingold <gingold@adacore.com>
979 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
981 2015-01-30 Gary Dismukes <dismukes@adacore.com>
983 * freeze.adb: Minor reformatting.
985 2015-01-30 Javier Miranda <miranda@adacore.com>
987 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
988 improve its documentation.
989 * errout.adb (Error_Msg_PT): Improve the error message.
990 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
991 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
992 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
994 2015-01-30 Robert Dewar <dewar@adacore.com>
996 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
997 message for False case.
999 2015-01-30 Doug Rupp <rupp@adacore.com>
1001 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
1002 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
1005 2015-01-30 Gary Dismukes <dismukes@adacore.com>
1007 * sem_attr.adb (Declared_Within_Generic_Unit):
1008 New function to test whether an entity is declared within the
1009 declarative region of a given generic unit.
1010 (Resolve_Attribute): For checking legality of subprogram'Access within
1011 a generic unit, call new Boolean function Declared_Within_Generic_Unit
1012 instead of simply comparing the results of Enclosing_Generic_Unit on
1013 the prefix and access type. Correct minor comment typos.
1015 2015-01-30 Robert Dewar <dewar@adacore.com>
1017 * freeze.adb, exp_util.ads: Update comment.
1018 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
1019 * sem_util.adb: Minor: fix typo.
1021 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1023 * sem_attr.adb (Analyze_Attribute): Ensure that
1024 the check concerning Refined_Post takes precedence over the
1027 2015-01-30 Gary Dismukes <dismukes@adacore.com>
1029 * sem_prag.adb: Minor typo fixes and reformatting.
1031 2015-01-30 Yannick Moy <moy@adacore.com>
1033 * sem_attr.adb: Code clean up.
1035 2015-01-30 Robert Dewar <dewar@adacore.com>
1037 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1038 * ali.ads (Unit_Record): Add new field Serious_Errors.
1039 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1040 attribute in U line.
1041 * lib-writ.ads: New attribute SE (serious erors) in unit line.
1043 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1045 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1046 Lit_Indexes, Scale_Value, Storage_Size_Variable,
1047 String_Literal_Low_Bound along associated routines and
1049 (Pending_Access_Types): New routine.
1050 (Set_Pending_Access_Types): New routine.
1051 (Write_Field15_Name): Add an entry for Pending_Access_Types.
1052 * einfo.ads Add new attribute Pending_Access_Types along
1053 with usage in nodes. Update the usage of attributes
1054 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1055 Storage_Size_Variable, String_Literal_Low_Bound.
1056 (Pending_Access_Types): New routine along with pragma Inline.
1057 (Set_Pending_Access_Types): New routine along with pragma Inline.
1058 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1059 Ins_Node. Determine the insertion node for anonynous access type
1060 that acts as a component type of an array. Update the call to
1061 Build_Finalization_Master.
1062 (Expand_Freeze_Record_Type): Update
1063 the calls to Build_Finalization_Master.
1064 (Freeze_Type): Remove
1065 local variable RACW_Seen. Factor out the code that deals with
1066 remote access-to-class-wide types. Create a finalization master
1067 when the designated type contains a private component. Fully
1068 initialize all pending access types.
1069 (Process_RACW_Types): New routine.
1070 (Process_Pending_Access_Types): New routine.
1071 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1072 needs to set primitive Finalize_Address.
1073 (Expand_N_Allocator): Allocation no longer sets primitive
1075 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1076 Update the call to Build_Finalization_Master.
1077 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1078 needs to set primitive Finalize_Address.
1079 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1080 (Build_Finalization_Master): New parameter profile. Associate
1081 primitive Finalize_Address with the finalization master if the
1082 designated type has been frozen, otherwise treat the access
1083 type as pending. Simplify the insertion of the master and
1084 related initialization code.
1085 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1087 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1088 Simplify the implementation.
1089 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1090 along with comment on usage.
1091 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1092 the comment on usage.
1093 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1094 Finalize_Address to retrieve the primitive.
1095 (Finalize_Address): New routine.
1096 (Find_Finalize_Address): Removed.
1097 * exp_util.ads (Finalize_Address): New routine.
1098 * freeze.adb (Freeze_All): Remove the generation of finalization
1100 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1101 pending access types from the partial to the full view.
1103 2015-01-30 Robert Dewar <dewar@adacore.com>
1105 * sem_disp.adb: Minor reformatting.
1106 * sem_disp.ads: Documentation update.
1108 2015-01-30 Ed Schonberg <schonberg@adacore.com>
1110 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1111 or a function call, return True if type is class-wide.
1112 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1113 Apply RM 4.5.7 (17/3): all or none of the dependent expression
1114 of a conditional expression must be dynamically tagged.
1116 2015-01-30 Ed Schonberg <schonberg@adacore.com>
1118 * sem_ch6.adb (Analyze_Function_Return): In an extended return
1119 statement, apply accessibility check to result object when there
1120 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1122 2015-01-30 Robert Dewar <dewar@adacore.com>
1124 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1125 Boolean for case where ELSE is omitted.
1126 * sem_res.adb: Minor reformatting.
1128 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1130 Fix build under cygwin/64.
1131 * adaint.h: Add check for __CYGWIN__.
1132 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1134 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1137 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1138 * mingw32.h: Don't include <tchar.h> under cygwin.
1139 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1141 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1143 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1144 (DEF_FUNCTION_TYPE_VAR_12): New macros.
1146 2015-01-09 Michael Collison <michael.collison@linaro.org>
1148 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1149 vec.h, double-int.h, input.h, alias.h, symtab.h,
1150 fold-const.h, wide-int.h, and inchash.h due to
1151 flattening of tree.h.
1152 * gcc-interface/decl.c: Ditto.
1153 * gcc-interface/misc.c: Ditto.
1154 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1155 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1156 fold-const.h, wide-int.h, and inchash.h due to
1157 flattening of tree.h.
1158 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1159 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1160 fold-const.h, wide-int.h, inchash.h due to
1161 flattening of tree.h.
1162 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1163 vec.h, double-int.h, input.h, alias.h, symtab.h,
1164 fold-const.h, wide-int.h, and inchash.h due to
1165 flattening of tree.h.
1166 * gcc-interface/utils2.c: Ditto.
1168 2015-01-07 Robert Dewar <dewar@adacore.com>
1170 * sem_warn.adb (Check_One_Unit): Don't give unused entities
1171 warning for a package which is used as a generic parameter.
1173 2015-01-07 Bob Duff <duff@adacore.com>
1175 * usage.adb (Usage): Correct documentation of
1178 2015-01-07 Robert Dewar <dewar@adacore.com>
1180 * s-fileio.adb: Minor reformatting.
1182 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1184 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1185 access to subprogram, replace its formals with new entities when
1186 building the object declaration, both if actual is present and
1187 when it is defaulted.
1189 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1191 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1192 conversion and type of expression has invariant, apply invariant
1193 check on expression.
1195 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1197 * sem_ch3.adb (Create_Constrained_Components): A call to
1198 Gather_Components may detect an error if an inherited discriminant
1199 that controls a variant is non-static.
1200 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1201 Gather_Components may report an error if an inherited discriminant
1202 in a variant in non-static.
1203 * sem_util.adb (Gather_Components): If a non-static discriminant
1204 is inherited do not report error here, but let caller handle it.
1205 (Find_Actual): Small optimization.
1207 2015-01-07 Bob Duff <duff@adacore.com>
1209 * usage.adb (Usage): Document -gnatw.f switch.
1211 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1213 * sem_ch12.adb: Code clean up and minor reformatting.
1215 2015-01-07 Robert Dewar <dewar@adacore.com>
1217 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1218 Raise_Accessibility_Error call.
1219 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1220 on handling of invalid digits in based constants.
1221 * s-fatgen.ads: Minor reformatting.
1222 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1223 Avoid noting bogus modification for Valid test.
1224 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1225 * einfo.ads: Minor reformatting.
1226 * sem_warn.adb: Minor comment clarification.
1227 * sem_ch12.adb: Minor reformatting.
1229 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1231 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
1232 over static predicates when the loop parameter specification
1233 carries a Reverse indicator.
1235 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1237 * sem_ch12.adb (Instantiate_Object): If formal has a default,
1238 actual is missing and formal has an anonymous access type, copy
1239 access definition in full so that tree for instance is properly
1240 formatted for ASIS use.
1242 2015-01-07 Bob Duff <duff@adacore.com>
1244 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
1245 for P'Access, where P is a subprogram in the same package as
1246 the P'Access, and the P'Access is evaluated at elaboration
1247 time, and occurs before the body of P. For example, "X : T :=
1248 P'Access;" would allow a subsequent call to X.all to be an
1249 access-before-elaboration error; hence the warning. This warning
1250 is enabled by the -gnatw.f switch.
1251 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
1252 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
1253 * gnat_ugn.texi: Document the new warning.
1255 2015-01-07 Johannes Kanig <kanig@adacore.com>
1257 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
1260 2015-01-07 Robert Dewar <dewar@adacore.com>
1262 * s-taprop-linux.adb, clean.adb: Minor reformatting.
1264 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1266 * s-tassta.adb: Relax some overzealous assertions.
1268 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1270 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
1271 view of a type is legal when context is a thunk generated for
1272 operation inherited from an interface.
1273 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
1274 a thunk and return type is an incomplete type do not continue
1275 expansion; thunk will be fully elaborated when generating code.
1277 2015-01-07 Doug Rupp <rupp@adacore.com>
1279 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
1280 (QueryPerformanceFrequency): New imported procedure.
1281 * s-taprop-mingw.adb (RT_Resolution): Call above and return
1282 resolution vice a hardcoded value.
1283 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
1284 resolution vice a hardcoded value.
1285 * s-linux-android.ads (clockid_t): New subtype.
1286 * s-osinte-aix.ads (clock_getres): New imported subprogram.
1287 * s-osinte-android.ads (clock_getres): Likewise.
1288 * s-osinte-freebsd.ads (clock_getres): Likewise.
1289 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
1290 * s-osinte-darwin.ads (clock_getres): New subprogram.
1291 * s-osinte-darwin.adb (clock_getres): New subprogram.
1292 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1293 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1294 calculate resolution vice hard coded value.
1296 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1298 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1299 limited view, use non-limited view when available to create
1300 equivalent record type.
1302 2015-01-07 Vincent Celier <celier@adacore.com>
1304 * gnatcmd.adb: Remove command Sync and any data and processing
1305 related to this command. Remove project processing for gnatstack.
1306 * prj-attr.adb: Remove package Synchonize and its attributes.
1308 2015-01-07 Vincent Celier <celier@adacore.com>
1310 * clean.adb: Minor error message change.
1312 2015-01-07 Tristan Gingold <gingold@adacore.com>
1315 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1317 2015-01-07 Javier Miranda <miranda@adacore.com>
1319 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1320 protect the frontend against never ending recursion caused by
1321 circularities in the sources.
1323 2015-01-07 Robert Dewar <dewar@adacore.com>
1325 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1326 exp_ch3.adb: Minor reformatting.
1328 2015-01-07 Doug Rupp <rupp@adacore.com>
1330 * s-linux.ads (clockid_t): New subtype.
1331 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1332 (clockid_t): New subtype.
1333 (clock_getres): Import system call.
1334 * s-taprop-linux.adb (System.OS_Constants): With and rename.
1335 (RT_Resolution): Remove
1336 hardcoded value and call clock_getres.
1337 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1338 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1340 2015-01-07 Robert Dewar <dewar@adacore.com>
1342 * sem_warn.adb (Check_One_Unit): Guard against context item
1343 with no Entity field.
1345 2015-01-07 Vincent Celier <celier@adacore.com>
1347 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1348 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1350 2015-01-07 Vincent Celier <celier@adacore.com>
1352 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1353 errors/warnings in the first parsing of the project files,
1354 to display the warnings when there is no errors.
1356 2015-01-07 Tristan Gingold <gingold@adacore.com>
1358 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1360 2015-01-07 Doug Rupp <rupp@adacore.com>
1362 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1363 value from Int_Lock as parameter to Int_Unlock.
1364 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1365 * s-vxwext.ads (Int_Unlock): Likewise.
1366 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1367 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1368 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1369 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1371 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
1373 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1376 2015-01-07 Tristan Gingold <gingold@adacore.com>
1378 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1381 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1383 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1384 automatically set No_Strict_Aliasing on access types.
1385 * fe.h (No_Strict_Aliasing_CP): Declare.
1386 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1387 No_Strict_Aliasing_CP is set.
1389 2015-01-07 Johannes Kanig <kanig@adacore.com>
1391 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1392 not build function wrapper in gnatprove mode when the package
1393 is externally axiomatized.
1395 2015-01-07 Jose Ruiz <ruiz@adacore.com>
1397 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1398 intermediate computations when the parameters have different signs.
1400 2015-01-07 Javier Miranda <miranda@adacore.com>
1402 * exp_ch3.adb (Build_Init_Procedure): For derived types,
1403 improve the code which takes care of identifying and moving to
1404 the beginning of the init-proc the call to the init-proc of the
1407 2015-01-07 Olivier Hainque <hainque@adacore.com>
1409 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1410 Elaborate the expression as part of the same stmt group as the actions.
1412 2015-01-07 Robert Dewar <dewar@adacore.com>
1414 * sem_ch3.adb: Minor error message change.
1416 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1418 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1419 Following AI05-028, the pragam applies legally to any composite type.
1421 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1423 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1424 (sigwait, sigwaitinfo): Removed, not needed after all on any
1425 VxWorks configurations.
1427 2015-01-07 Robert Dewar <dewar@adacore.com>
1429 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1431 2015-01-07 Javier Miranda <miranda@adacore.com>
1433 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1434 generation of accessibility check.
1436 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1438 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1439 illegal completion from a class- wide type, set etype of the
1440 derived type properly to prevent cascaded errors.
1442 2015-01-07 Robert Dewar <dewar@adacore.com>
1444 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1447 2015-01-07 Robert Dewar <dewar@adacore.com>
1449 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1451 (OK_No_Use_Of_Entity_Name): New function.
1452 (Set_Restriction_No_Use_Of_Entity): New procedure.
1453 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1455 (OK_No_Use_Of_Entity_Name): New function.
1456 (Set_Restriction_No_Use_Of_Entity): New procedure.
1457 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1459 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1460 Add processing for new restriction No_Use_Of_Entity.
1462 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1464 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1465 component type as to Has_Atomic_Components type. Remove useless
1466 test on Is_Aliased component type.
1468 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
1470 * alloc.ads Alphabetize several declarations. Add constants
1471 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1472 * atree.adb Add with and use clauses for Opt.
1473 (Allocate_Initialize_Node): Mark a node as ignored Ghost
1474 if it is created in an ignored Ghost region.
1475 (Ekind_In): New variant.
1476 (Is_Ignored_Ghost_Node): New routine.
1477 (Set_Is_Ignored_Ghost_Node): New routine.
1478 * atree.adb Aplhabetize several subprograms declarations. Flag
1479 Spare0 is now known as Is_Ignored_Ghost_Node.
1480 (Ekind_In): New variant.
1481 (Is_Ignored_Ghost_Node): New routine.
1482 (Set_Is_Ignored_Ghost_Node): New routine.
1483 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1484 (Contains_Ignored_Ghost_Code): New routine.
1485 (Set_Contains_Ignored_Ghost_Code): New routine.
1486 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1487 It is now possible to set this property on an unanalyzed entity.
1488 (Write_Entity_Flags): Output the status of flag
1489 Contains_Ignored_Ghost_Code.
1490 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1492 (Contains_Ignored_Ghost_Code): New routine
1493 along with pragma Inline.
1494 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1495 * exp_ch3.adb Add with and use clauses for Ghost.
1496 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1497 Set the Ghost_Mode in effect.
1498 (Restore_Globals): New routine.
1499 * exp_ch7.adb (Process_Declarations): Do not process a context
1500 that invoves an ignored Ghost entity.
1501 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1502 construct that has been rewritten as a null statement.
1503 * exp_disp.adb Add with and use clauses for Ghost.
1504 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1505 the Ghost_Mode in effect.
1506 (Restore_Globals): New routine.
1507 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1508 does not require any clean up. Add two missing cases that deal
1509 with block statements.
1510 * freeze.adb Add with and use clauses for Ghost.
1511 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1512 Set the Ghost_Mode in effect.
1513 (Restore_Globals): New routine.
1514 * frontend.adb Add with and use clauses for Ghost. Remove any
1515 ignored Ghost code from all units that qualify.
1516 * ghost.adb New unit.
1517 * ghost.ads New unit.
1518 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1519 the table in package Ghost.
1520 * lib.ads: Alphabetize several subprogram declarations.
1521 * lib-xref.adb (Output_References): Do not generate reference
1522 information for ignored Ghost entities.
1523 * opt.ads Add new type Ghost_Mode_Type and new global variable
1525 * rtsfind.adb (Load_RTU): Provide a clean environment when
1526 loading a runtime unit.
1527 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1528 entry/exit as the node may set a different mode.
1530 Capture/restore the value of Ghost_Mode on entry/exit as the
1531 unit may be withed from a unit with a different Ghost mode.
1532 * sem_ch3.adb Add with and use clauses for Ghost.
1533 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1534 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1535 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1536 the entity as Ghost when there is a Ghost_Mode in effect.
1537 (Array_Type_Declaration): The implicit base type inherits the
1538 "ghostness" from the array type.
1539 (Derive_Subprogram): The
1540 alias inherits the "ghostness" from the parent subprogram.
1541 (Make_Implicit_Base): The implicit base type inherits the
1542 "ghostness" from the parent type.
1543 * sem_ch5.adb Add with and use clauses for Ghost.
1544 (Analyze_Assignment): Set the Ghost_Mode in effect.
1545 * sem_ch6.adb Add with and use clauses for Ghost.
1546 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1547 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1548 Set the Ghost_Mode in effect. Mark the entity as Ghost when
1549 there is a Ghost_Mode in effect.
1550 * sem_ch7.adb Add with and use clauses for Ghost.
1551 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1552 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1553 effect. Mark the entity as Ghost when there is a Ghost_Mode
1555 * sem_ch8.adb Add with and use clauses for Ghost.
1556 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1557 Analyze_Object_Renaming, Analyze_Package_Renaming,
1558 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1559 the entity as Ghost when there is a Ghost_Mode in effect.
1560 (Find_Type): Check the Ghost context of a type.
1561 * sem_ch11.adb Add with and use clauses for Ghost.
1562 (Analyze_Exception_Declaration): Set the Ghost_Mode in
1563 effect. Mark the entity as Ghost when there is a Ghost_Mode
1565 * sem_ch12.adb Add with and use clauses for Ghost.
1566 (Analyze_Generic_Package_Declaration,
1567 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1568 Mark the entity as Ghost when there is a Ghost_Mode in effect.
1569 * sem_prag.adb Add with and use clauses for Ghost.
1570 (Analyze_Pragma): Ghost-related checks are triggered when there
1571 is a Ghost mode in effect.
1572 (Create_Abstract_State): Mark the
1573 entity as Ghost when there is a Ghost_Mode in effect.
1574 * sem_res.adb Add with and use clauses for Ghost.
1575 (Check_Ghost_Context): Removed.
1576 * sem_util.adb (Check_Ghost_Completion): Removed.
1577 (Check_Ghost_Derivation): Removed.
1578 (Incomplete_Or_Partial_View):
1579 Add a guard in case the entity has not been analyzed yet
1580 and does carry a scope.
1581 (Is_Declaration): New routine.
1582 (Is_Ghost_Entity): Removed.
1583 (Is_Ghost_Statement_Or_Pragma):
1585 (Is_Subject_To_Ghost): Removed.
1586 (Set_Is_Ghost_Entity):
1588 (Within_Ghost_Scope): Removed.
1589 * sem_util.adb (Check_Ghost_Completion): Removed.
1590 (Check_Ghost_Derivation): Removed.
1591 (Is_Declaration): New routine.
1592 (Is_Ghost_Entity): Removed.
1593 (Is_Ghost_Statement_Or_Pragma): Removed.
1594 (Is_Subject_To_Ghost): Removed.
1595 (Set_Is_Ghost_Entity): Removed.
1596 (Within_Ghost_Scope): Removed.
1597 * sinfo.ads Add a section on Ghost mode.
1598 * treepr.adb (Print_Header_Flag): New routine.
1599 (Print_Node_Header): Factor out code. Output flag
1600 Is_Ignored_Ghost_Node.
1601 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1603 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1605 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1606 true test and unreachable 'else' arm.
1608 2015-01-06 Vincent Celier <celier@adacore.com>
1610 * prj-conf.adb (Check_Target): Improve error message when
1611 there are mismatched targets between the on in the configuration
1612 project file and the specified one, either in the main project
1613 file or in the --target= switch.
1615 2015-01-06 Pascal Obry <obry@adacore.com>
1617 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1618 Install_Name attribute definitions.
1620 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1622 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1623 generated Import pragma for the internal imported procedure does
1624 not come from an aspect, so that Is_Imported can be properly
1627 2015-01-06 Gary Dismukes <dismukes@adacore.com>
1629 * sem_ch12.adb (Might_Inline_Subp): Record whether
1630 any subprograms in the generic package are marked with
1631 pragma Inline_Always (setting flag Has_Inline_Always).
1632 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1633 alongside existing test of Front_End_Inlining as alternative
1634 conditions for setting Inline_Now. Also add test of
1635 Has_Inline_Always along with Front_End_Inlining test as an
1636 alternative condition for setting Needs_Body to False.
1638 2015-01-06 Tristan Gingold <gingold@adacore.com>
1640 * i-cpoint.adb (Copy_Array): Handle overlap.
1642 2015-01-06 Pascal Obry <obry@adacore.com>
1644 * bindgen.adb: Minor style fix.
1646 2015-01-06 Robert Dewar <dewar@adacore.com>
1648 * sem_util.ads, sem_util.adb: Minor reformatting.
1650 2015-01-06 Vincent Celier <celier@adacore.com>
1652 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1653 with flags before parsing the projects.
1654 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1655 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1656 to True in the flags, when Ignore_Missing_With is True and an
1657 imported project cannot be found.
1658 * prj-proc.adb (Expression): When there are incomplete withs and
1659 a variable or attribute is not found, set the variable/attribute
1661 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1664 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
1666 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1667 prj-err.adb: Add new switch --no-command-line.
1669 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1671 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1673 2015-01-06 Robert Dewar <dewar@adacore.com>
1675 * sem_ch11.adb: Minor reformatting.
1677 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1679 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1680 Build_Array_Aggr_Code, used to initialized components covered
1681 by a box association. If the component type is scalar and has
1682 a default aspect, use it to initialize such components.
1684 2015-01-06 Pascal Obry <obry@adacore.com>
1686 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1687 control the setup of the exception handler.
1688 * initialize.c: Remove unused declaration.
1689 * bindgen.adb: Always call __gnat_runtime_initialize and pass
1690 whether the exeception handler must be set or not.
1692 2015-01-06 Thomas Quinot <quinot@adacore.com>
1694 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1695 order to native from default, make sure to also adjust bit order.
1696 * exp_aggr.adb: Minor reformatting.
1698 2015-01-06 Robert Dewar <dewar@adacore.com>
1700 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1701 s-valrea.adb, s-valrea.ads: Add some additional guards for
1702 Str'Last = Positive'Last.
1704 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1706 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1709 2015-01-06 Javier Miranda <miranda@adacore.com>
1711 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1713 2015-01-06 Thomas Quinot <quinot@adacore.com>
1715 * sem_util.ads: Minor reformatting.
1716 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1717 (In_RCI_Declaration) Return to old name, as proper checking of
1718 entity being in the visible part depends on entity kind and must
1719 be done by the caller.
1721 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1723 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1724 for operators in SPARK.
1726 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1728 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1729 expression in an others association before making copies for
1730 separate resolution and accessibility checks. This ensures that
1731 the type of the expression is available to ASIS in all cases,
1732 in particular if the expression is itself an aggregate.
1734 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1736 * einfo.ads (Has_Independent_Components): Document extended
1738 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1739 (Set_Has_Independent_Components): Adjust assertion.
1740 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1741 for pragma Atomic_Components. Set Has_Independent_Components
1742 on the object instead of the type for an object declaration with
1743 pragma Independent_Components.
1745 2015-01-06 Olivier Hainque <hainque@adacore.com>
1747 * set_targ.adb (Read_Target_Dependent_Values): Set
1748 Long_Double_Index when "long double" is read.
1749 (elaboration code): Register_Back_End_Types only when not reading from
1750 config files. Doing otherwise is pointless and error prone.
1752 2015-01-06 Robert Dewar <dewar@adacore.com>
1754 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1756 2015-01-06 Robert Dewar <dewar@adacore.com>
1758 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1759 Str'Last = Positive'Last.
1761 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1763 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1764 where the non-limited type is a generic actual and appears as
1765 a subtype of the non-limited view of the other.
1766 * freeze.adb (Build_Renamed_Body): If the return type of the
1767 declaration that is being completed is a limited view and the
1768 non-limited view is available, use it in the specification of
1771 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1773 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1774 incomplete view, the type of the classwide type common to both
1775 views is the type being declared.
1777 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1779 * einfo.ads (Is_Independent): Further document extended usage.
1781 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1783 * einfo.ads (Is_Independent): Document extended usage.
1784 * einfo.adb (Is_Independent): Remove obsolete assertion.
1785 (Set_Is_Independent): Likewise.
1786 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1787 (Process_Atomic_Independent_Shared_Volatile): ...this.
1788 Deal with pragma Independent here.
1789 (Analyze_Pragma): Adjust
1790 to above renaming and also invoke it for pragma Independent.
1791 Adjust comment for Independent_Components.
1793 2015-01-06 Robert Dewar <dewar@adacore.com>
1795 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1796 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1798 2015-01-06 Robert Dewar <dewar@adacore.com>
1800 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1802 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1803 Str'Last = Positive'Last.
1805 2015-01-06 Robert Dewar <dewar@adacore.com>
1807 * sem_prag.adb (Process_Inline): Remove redundant construct
1808 warning (-gnatw.r) for an ineffective pragma Inline.
1810 2015-01-06 Robert Dewar <dewar@adacore.com>
1812 * s-valint.adb: Fix typo in last checkin.
1813 * s-valuns.adb (Value_Unsigned): More efficient fix for
1815 * sem_attr.adb (Analyze_Attribute): Minor reformatting
1816 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1818 2015-01-06 Robert Dewar <dewar@adacore.com>
1820 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1821 Str'Last = Positive'Last
1823 2015-01-06 Thomas Quinot <quinot@adacore.com>
1825 * xoscons.adb: Display exception information and return non-zero
1826 exit status in top level exception handler.
1828 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1830 * sem_ch8.adb: Code clean up.
1832 2015-01-06 Tristan Gingold <gingold@adacore.com>
1834 * targparm.ads: Remove obsolete comment.
1836 2015-01-06 Olivier Hainque <hainque@adacore.com>
1838 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1839 constructing a ref to variable, update inner_const_flag from the
1840 variable TREE_READONLY attribute.
1841 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1843 (get_target_float_size): Remove.
1844 (get_target_double_size): Remove.
1845 (get_target_long_double_size): Remove.
1847 2015-01-06 Pascal Obry <obry@adacore.com>
1849 * adaint.c (ProcListEvt): Set to NULL.
1850 * rtinit.c: New file.
1851 (__gnat_rt_init_count): New reference counter set to 0.
1852 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1853 this code is actually needed for the runtime initialization. This
1854 routine returns immediately if the initialization has already been done.
1855 * final.c: Revert previous change.
1856 * rtfinal.c: New file.
1857 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1858 section and event. The default version of this routine is empty (except
1859 for the reference counting code). This routine returns immediately if
1860 some others libraries are referencing the runtime.
1861 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1862 remove circuitry to initialize the signal handler as this is
1863 now done by the runtime initialization routine.
1864 (Gen_Adafinal): Generate call to Runtime_Finalize.
1865 * gnat_ugn.texi: Update documentation about concurrency and
1866 initialization/finalization of the run-time.
1867 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1868 references to rtfinal.o and rtinit.o
1870 2015-01-06 Robert Dewar <dewar@adacore.com>
1872 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1874 * sem_attr.adb: Implement Enum_Image attribute.
1875 * snames.ads-tmpl: Add entries for Enum_Image attribute.
1877 2015-01-06 Robert Dewar <dewar@adacore.com>
1879 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1880 * restrict.ads (No_Use_Of_Entity): New table.
1881 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1882 Ignore No_Use_Of_Entity (will be processed in parser).
1883 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1885 2015-01-06 Vincent Celier <celier@adacore.com>
1887 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1888 to check for an extended project, if a project does not have
1889 yet a project declaration.
1891 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
1893 * scos.ads: Update documentation about the SCO table build
1894 process and about table records format.
1895 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1896 (SCO_Record_Filtered): New procedure.
1897 (Set_SCO_Logical_Operator): New procedure.
1898 (dsco): Update documentation.
1899 * par_sco.adb: Update library-level comments.
1900 (SCO_Generation_State_Type): New type.
1901 (SCO_Generation_State): New variable.
1902 (SCO_Raw_Table): New package instanciation.
1903 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1905 (Tristate): New type.
1906 (Is_Logical_Operator): Return Tristate and update documentation.
1907 (Has_Decision): Update call to Is_Logical_Operator and complete
1909 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1910 comment, add an assertion for state checking and change
1911 references to SCO_Table into SCO_Raw_Table.
1912 (dsco): Refactor to dump the raw and the filtered tables.
1913 (Process_Decisions.Output_Decision_Operand): Handle putative
1914 short-circuit operators.
1915 (Process_Decisions.Output_Element): Update references
1916 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1917 (Process_Decisions.Process_Decision_Operand): Update call
1918 to Is_Logical_Operator.
1919 (Process_Decisions.Process_Node): Handle putative short-circuit
1920 operators and change references to
1921 SCO_Table into SCO_Raw_Table.
1922 (SCO_Output): Add an assertion
1923 for state checking and remove code that used to stamp out SCO entries.
1924 (SCO_Pragma_Disabled): Change reference to SCO_Table
1926 (SCO_Record): Rename to SCO_Record_Raw,
1927 add an assertion for state checking and change references
1928 to SCO_Table into SCO_Raw_Table.
1929 (Set_SCO_Condition): Add an assertion for state checking, update
1930 references to Condition_Pragma_Hash_Table and change references to
1931 SCO_Table into SCO_Raw_Table.
1932 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1933 change references to SCO_Table into SCO_Raw_Table.
1934 (Set_SCO_Logical_Operator): New procedure.
1935 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1936 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1937 (SCO_Record_Fildered): New procedure.
1938 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1939 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1941 * par-load.adb (Load): Update reference to SCO_Record.
1942 * par.adb (Par): Update reference to SCO_Record.
1943 * put_scos.adb (Put_SCOs): Add an assertion to check that no
1944 putative SCO condition reaches this end.
1945 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1946 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1947 when corresponding to an "and"/"or" operator affected by the
1948 Short_Circuit_And_Or pragma.
1950 2015-01-06 Robert Dewar <dewar@adacore.com>
1952 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1953 msg for attempted USE of generic subprogram or subprogram.
1955 2015-01-06 Robert Dewar <dewar@adacore.com>
1957 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1958 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1959 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1961 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1963 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1964 that specify stream subprograms, if the prefix is a class-wide
1965 type then the generated attribute definition clause must apply
1966 to the same class-wide type.
1967 (Default_Iterator): An iterator defined by an aspect of some
1968 container type T must have a first parameter of type T, T'class,
1969 or an access to such (from code reading RM 5.5.1 (2/3)).
1971 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1973 * gnat1drv.adb: Minor: complete previous change.
1975 2015-01-06 Olivier Hainque <hainque@adacore.com>
1977 * set_targ.ads (C_Type_For): New function. Return the name of
1978 a C type supported by the back-end and suitable as a basis to
1979 construct the standard Ada floating point type identified by
1980 the T parameter. This is used as a common ground to feed both
1981 ttypes values and the GNAT tree nodes for the standard floating
1983 * set_targ.adb (Long_Double_Index): The index at which "long
1984 double" gets registered in the FPT_Mode_Table. This is useful to
1985 know whether we have a "long double" available at all and get at
1986 it's characteristics without having to search the FPT_Mode_Table
1987 when we need to decide which C type should be used as the
1988 basis for Long_Long_Float in Ada.
1989 (Register_Float_Type): Fill Long_Double_Index.
1990 (FPT_Mode_Index_For): New function. Return the index in
1991 FPT_Mode_Table that designates the entry corresponding to the
1992 provided C type name.
1993 (FPT_Mode_Index_For): New function. Return the index in
1994 FPT_Mode_Table that designates the entry for a back-end type
1995 suitable as a basis to construct the standard Ada floating point
1996 type identified by the input T parameter.
1997 (elaboration code): Register_Back_End_Types unconditionally,
1998 so C_Type_For can operate regardless of -gnateT. Do it
1999 early so we can query it for the floating point sizes, via
2000 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
2001 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
2002 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
2003 which C type should be used as the basis for the construction
2004 of the Standard Ada floating point types.
2005 * get_targ.ads (Get_Float_Size, Get_Double_Size,
2006 Get_Long_Double_Size): Remove.
2007 * get_targ.adb: Likewise.
2009 2015-01-06 Thomas Quinot <quinot@adacore.com>
2011 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
2012 parameter and rename to...
2013 (In_RCI_Visible_Declarations): Fix handling of private part of nested
2015 (Validate_RCI_Subprogram_Declaration): Reject illegal function
2016 returning anonymous access in RCI unit.
2018 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2020 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
2021 function wrapper may be a homonym of another local declaration.
2022 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
2023 build function and operator wrappers after the actual subprogram
2024 has been resolved, and replace the standard renaming declaration
2025 with the declaration of wrapper.
2026 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
2027 make public for use elsewhere.
2028 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
2029 rewrite, now that actual is fully resolved when wrapper is
2032 2015-01-06 Javier Miranda <miranda@adacore.com>
2034 * exp_disp.adb: Revert previous change.
2036 2015-01-06 Robert Dewar <dewar@adacore.com>
2038 * exp_util.adb: Change name Name_Table_Boolean to
2039 Name_Table_Boolean1.
2040 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2041 Introduce Name_Table_Boolean2/3.
2042 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2043 Introduce Name_Table_Boolean2/3.
2044 * par-ch13.adb: Change name Name_Table_Boolean to
2045 Name_Table_Boolean1.
2047 2015-01-06 Bob Duff <duff@adacore.com>
2049 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2051 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2053 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2054 others choice that covers multiple components, analyze each
2055 copy with the type of the component even in compile-only mode,
2056 to detect potential accessibility errors.
2058 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2060 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2061 (Resolve_Actuals): An effectively volatile out
2062 parameter cannot act as an in or in out actual in a call.
2063 (Resolve_Entity_Name): An effectively volatile out parameter
2066 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2068 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2069 the expansion of an expression function it may be pre-analyzed
2070 if a 'access attribute is applied to the function, in which case
2071 last_entity may have been assigned already.
2073 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2075 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2076 type and actual has the corresponding full view, there is no
2077 error, but a case of use of incomplete type in a predicate or
2078 invariant expression.
2080 2015-01-06 Vincent Celier <celier@adacore.com>
2082 * makeutl.adb (Insert_No_Roots): Make sure that the same source
2083 in two different project tree is checked in both trees, if they
2084 are sources of two different projects, extended or not.
2086 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2088 * gnat1drv.adb: Minor code clean up.
2089 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2091 2015-01-06 Bob Duff <duff@adacore.com>
2093 * osint.adb (Read_Source_File): Don't print out
2094 file name unless T = Source.
2096 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2098 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2099 recognize improper uses of constant_reference types as actuals
2100 for in-out parameters.
2101 (Check_Function_Call): Do not collect identifiers if function
2102 name is missing because of previous error.
2104 2015-01-06 Robert Dewar <dewar@adacore.com>
2106 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2107 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2108 Minor change of name Name_Table_Info => Name_Table_Int.
2110 2015-01-06 Robert Dewar <dewar@adacore.com>
2112 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2113 in previous checkin.
2114 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2116 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2118 2015-01-06 Vincent Celier <celier@adacore.com>
2120 * a-strsup.adb (Times (Natural;String;Positive)): Raise
2121 Length_Error, not Index_Error, when the result is too long.
2123 2015-01-06 Thomas Quinot <quinot@adacore.com>
2125 * a-direct.adb (Create_Path): Minor error handling and
2126 performance improvement.
2128 2015-01-06 Robert Dewar <dewar@adacore.com>
2130 * checks.ads, sem_ch12.adb: Minor reformatting.
2131 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2132 zero check for fixed-point case if Backend_Divide_Checks_On_Target
2135 2015-01-06 Robert Dewar <dewar@adacore.com>
2137 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2138 Do not set restriction No_Elaboration_Code unless the pragma
2139 appears in the main unit).
2141 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2143 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2144 that with clause has already been analyzed before checking kind
2147 2015-01-06 Robert Dewar <dewar@adacore.com>
2149 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2150 (as required by RM).
2152 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2154 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2156 2015-01-06 Robert Dewar <dewar@adacore.com>
2158 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2159 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2161 2015-01-06 Javier Miranda <miranda@adacore.com>
2163 * exp_disp.adb (Expand_Interface_Conversion): No displacement
2164 of the pointer to the object needed when the type of the operand
2165 is not an interface type and the interface is one of its parent
2166 types (since they share the primary dispatch table).
2168 2015-01-06 Vincent Celier <celier@adacore.com>
2170 * prj-env.adb: Minor comment update.
2172 2015-01-06 Javier Miranda <miranda@adacore.com>
2174 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2175 access types whose target type is an interface type to operands
2176 that are access types; required to report an error when the
2177 operand is not an access type.
2179 2015-01-06 Bob Duff <duff@adacore.com>
2181 * a-cfinve.adb (Copy): Set the discriminant to the Length when
2183 * a-cofove.ads (Capacity): Add a postcondition.
2184 * a-cfinve.ads (Capacity): Add a postcondition.
2185 (Reserve_Capacity): Correct the postcondition in the case where
2186 Capacity = 0; that means "Capacity => Length (Container)".
2187 * a-cofove.adb (Elems[c]): Add a comment
2188 explaining the dangers and how to avoid them.
2190 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2192 * sem_ch12.adb: Code clean up.
2194 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2196 * gnatvsn.ads: Bump copyright year.
2198 2015-01-06 Robert Dewar <dewar@adacore.com>
2200 * s-taskin.ads, s-traces.ads: Minor reformatting.
2201 * exp_util.adb: Minor typo fix.
2203 2015-01-06 Vincent Celier <celier@adacore.com>
2205 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2206 with the runtime name.
2207 * prj-env.adb (Initialize_Default_Project_Path): When both
2208 Target_Name and Runtime_Name are not empty string, add to the
2209 project path the two directories .../lib/gnat and .../share/gpr
2210 related to the runtime.
2211 * prj-env.ads (Initialize_Default_Project_Path): New String
2212 parameter Runtime_Name, defaulted to the empty string.
2214 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2216 * frontend.adb: Guard against the case where a configuration
2217 pragma may be split into multiple pragmas and the original
2218 rewritten as a null statement.
2219 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2220 pragma using Insert_Before rather than Insert_Action. This
2221 takes care of the configuration pragma case where Insert_Action
2224 2015-01-06 Bob Duff <duff@adacore.com>
2226 * a-coboho.ads (Element_Access): Add "pragma
2227 No_Strict_Aliasing (Element_Access);". This is needed because
2228 we are unchecked-converting from Address to Element_Access.
2229 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
2232 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2234 * sem_res.adb (Resolve_Actuals): Remove the
2235 restriction which prohibits volatile actual parameters with
2236 enabled external propery Async_Writers to act appear in procedure
2237 calls where the corresponding formal is of mode OUT.
2239 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2241 * gnat_ugn.texi: Bump @copying's copyright year.
2243 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2246 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
2248 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
2250 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
2251 of unchecked asprintf.
2254 Copyright (C) 2015 Free Software Foundation, Inc.
2256 Copying and distribution of this file, with or without modification,
2257 are permitted in any medium without royalty provided the copyright
2258 notice and this notice are preserved.