1 2015-03-02 Gary Dismukes <dismukes@adacore.com>
3 * einfo.adb, checks.adb: Minor reformatting and typo fixes.
5 2015-03-02 Ed Schonberg <schonberg@adacore.com>
7 * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
8 is defined for the array type, use it instead of a Default_Value
9 specified for the component type itself.
11 2015-03-02 Thomas Quinot <quinot@adacore.com>
13 * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
14 expanding a 'Input attribute reference for a class-wide type,
15 do not generate a separate object declaration for the controlling
16 tag dummy object; instead, generate the expression inline in the
17 dispatching call. Otherwise, the declaration (which involves a
18 call to String'Input, returning a dynamically sized value on the
19 secondary stack) will be expanded outside of proper secondary
20 stack mark/release operations, and will thus cause a secondary
23 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
25 * checks.adb (Add_Validity_Check): Change the names of all
26 formal parameters to better illustrate their purpose. Update
27 the subprogram documentation. Update all occurrences of the
28 formal parameters. Generate a pre/postcondition pragma by
29 calling Build_Pre_Post_Condition.
30 (Build_PPC_Pragma): Removed.
31 (Build_Pre_Post_Condition): New routine.
32 * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
33 is now used as Postconditions_Proc. Flag240 is now renamed to
34 Has_Expanded_Contract. (First_Formal): The routine can now
35 operate on generic subprograms.
36 (First_Formal_With_Extras): The routine can now operate on generic
38 (Has_Expanded_Contract): New routine.
39 (Has_Postconditions): Removed.
40 (Postcondition_Proc): Removed.
41 (Postconditions_Proc): New routine.
42 (Set_Has_Expanded_Contract): New routine.
43 (Set_Has_Postconditions): Removed.
44 (Set_Postcondition_Proc): Removed.
45 (Set_Postconditions_Proc): New routine.
46 (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
47 the output of Has_Expanded_Contract.
48 (Write_Field8_Name): Remove the output of Postcondition_Proc.
49 (Write_Field14_Name): Add the output of Postconditions_Proc.
50 * einfo.ads New attributes Has_Expanded_Contract and
51 Postconditions_Proc along with occurrences in entities.
52 Remove attributes Has_Postconditions and Postcondition_Proc
53 along with occurrences in entities.
54 (Has_Expanded_Contract): New routine along with pragma Inline.
55 (Has_Postconditions): Removed along with pragma Inline.
56 (Postcondition_Proc): Removed along with pragma Inline.
57 (Postconditions_Proc): New routine along with pragma Inline.
58 (Set_Has_Expanded_Contract): New routine along with pragma Inline.
59 (Set_Has_Postconditions): Removed along with pragma Inline.
60 (Set_Postcondition_Proc): Removed along with pragma Inline.
61 (Set_Postconditions_Proc): New routine along with pragma Inline.
62 * exp_ch6.adb (Add_Return): Code cleanup. Update the
63 generation of the call to the _Postconditions routine of
64 the procedure. (Expand_Non_Function_Return): Reformat the
65 comment on usage. Code cleanup. Update the generation of
66 the call to the _Postconditions routine of the procedure or
68 (Expand_Simple_Function_Return): Update the
69 generation of the _Postconditions routine of the function.
70 (Expand_Subprogram_Contract): Reimplemented.
71 * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
72 profile along the comment on usage.
73 * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
74 (Expand_N_Task_Type_Declaration): Generate pre/postconditions
75 wrapper when the entry [family] has a contract with
77 * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
78 (Expand_Contract_Cases): This routine and its subsidiaries now
79 analyze all generated code.
80 (Expand_Old_In_Consequence): Removed.
81 * sem_attr.adb Add with and use clause for Sem_Prag.
82 (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
83 (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
85 * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
87 (Analyze_Object_Declaration): Do not create a contract node.
88 (Derive_Subprogram): Do not create a contract node.
89 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
90 not create a contract node.
91 (Analyze_Completion_Contract): New routine.
92 (Analyze_Function_Return): Alphabetize.
93 (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
94 contract node. Do not copy pre/postconditions to the original
96 (Analyze_Null_Procedure): Do not create a contract node.
97 (Analyze_Subprogram_Body_Contract): Reimplemented.
98 (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
99 as having postconditions. Do not create a contract node. Analyze
100 the subprogram body contract of a body that acts as a compilation
101 unit. Expand the subprogram contract after the declarations have
103 (Analyze_Subprogram_Contract): Reimplemented.
104 (Analyze_Subprogram_Specification): Do not create a contract node.
105 (List_Inherited_Pre_Post_Aspects): Code cleanup.
106 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
108 (Analyze_Subprogram_Contract): Update the
109 parameter profile and the comment on usage.
110 * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
112 (Analyze_Package_Declaration): Do not create a
114 (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
115 * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
117 * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
119 * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
120 their proper section and alphabetize them. Analyze the contract of
121 a [generic] subprogram after all Pragmas_After have been analyzed.
122 (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
123 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
124 create a contract node.
125 (Analyze_Generic_Subprogram_Declaration):
126 Alphabetize local variables. Do not create a contract
127 node. Do not generate aspects out of pragmas for ASIS.
128 (Analyze_Subprogram_Instantiation): Instantiate
129 the contract of the subprogram. Do not create a
130 contract node. (Instantiate_Contract): New routine.
131 (Instantiate_Subprogram_Body): Alphabetize local variables.
132 (Save_Global_References_In_Aspects): New routine.
133 (Save_References): Do not save the global references found within
134 the aspects of a generic subprogram.
135 * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
136 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
137 Original_Node for establishing linkages.
138 (Insert_Pragma): Insertion in a subprogram body takes precedence over
139 the case where the subprogram body is also a compilation unit.
140 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
141 Get_Argument to obtain the proper expression. Install the generic
142 formals when the related context is a generic subprogram.
143 (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
144 the proper expression. Use Corresponding_Spec_Of to obtain
145 the spec. Install the generic formal when the related context
146 is a generic subprogram.
147 (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
148 expression. Use Corresponding_Spec_Of to obtain the spec. Install the
149 generic formal when the related context is a generic subprogram.
150 (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
151 to obtain the proper expression. Remove the call to
152 Check_SPARK_Aspect_For_ASIS as the analysis is now done
154 (Analyze_Pragma): Update all occurrences
155 to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
156 Extensions_Visible, Global, Postcondition, Precondition and
157 Test_Case now carry generic templates when the related context
158 is a generic subprogram. The same pragmas are no longer
159 forcefully fully analyzed when the context is a subprogram
160 that acts as a compilation unit. Pragmas Abstract_State,
161 Initial_Condition, Initializes and Refined_State have been clean
162 up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
163 and Precondition now use the same routine for analysis. Pragma
164 Refined_Post does not need to check the use of 'Result or
165 the lack of a post-state in its expression. Reimplement the
166 analysis of pragma Test_Case.
167 (Analyze_Pre_Post_Condition): New routine.
168 (Analyze_Pre_Post_Condition_In_Decl_Part):
170 (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
172 (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
173 the proper expression.
174 (Analyze_Test_Case_In_Decl_Part): Reimplemented.
175 (Check_Pre_Post): Removed.
176 (Check_Precondition_Postcondition): Removed.
177 (Check_SPARK_Aspect_For_ASIS): Removed.
178 (Check_Test_Case): Removed.
179 (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
180 to obtain the proper expression. Use Corresponding_Spec_Of to
181 find the proper spec.
182 (Create_Generic_Template): New routine.
183 (Duplication_Error): New routine.
184 (Expression_Function_Error): New routine.
185 (Find_Related_Subprogram_Or_Body): Moved to the spec
186 of Sem_Prag. Emit precise error messages. Account for cases of
187 rewritten expression functions, generic instantiations, handled
188 sequence of statements and pragmas from aspects.
189 (Get_Argument): New routine.
190 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
191 (Preanalyze_CTC_Args): Removed.
192 (Process_Class_Wide_Condition): New routine.
193 * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
194 the parameter profile along with the comment on usage.
195 (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
196 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
197 (Test_Case_Arg): New routine.
198 * sem_util.adb Add with and use clauses for Sem_Ch6.
199 (Add_Contract_Item): This routine now creates a contract
200 node the first time an item is added. Remove the duplicate
201 aspect/pragma checks.
202 (Check_Result_And_Post_State): Reimplemented.
203 (Corresponding_Spec_Of): New routine.
204 (Get_Ensures_From_CTC_Pragma): Removed.
205 (Get_Requires_From_CTC_Pragma): Removed.
206 (Has_Significant_Contract): New routine.
207 (Inherit_Subprogram_Contract): Inherit only if the source
209 (Install_Generic_Formals): New routine.
210 (Original_Aspect_Name): Removed.
211 (Original_Aspect_Pragma_Name): New routine.
212 * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
213 (Corresponding_Spec_Of): New routine.
214 (Get_Ensures_From_CTC_Pragma): Removed.
215 (Get_Requires_From_CTC_Pragma): Removed.
216 (Has_Significant_Contract): New routine.
217 (Install_Generic_Formals): New routine.
218 (Original_Aspect_Name): Removed.
219 (Original_Aspect_Pragma_Name): New routine.
220 * sem_warn.adb Add with and use clauses for Sem_Prag.
221 (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
223 2015-03-02 Ed Schonberg <schonberg@adacore.com>
225 * sem_ch8.adb (Available_Subtype): Optimization in
226 Find_Selected_Component: when safe, use existing subtype of
227 array component, possibly discriminant-dependent, rather than
228 creating new subtype declaration for it. In this fashion different
229 occurrences of the component have the same subtype, rather than
230 just equivalent ones. Simplifies value tracing in GNATProve.
232 2015-03-01 Arnaud Charlet <charlet@adacore.com>
236 * doc/gnat_ugn/gnat_project_manager.rst,
237 doc/gnat_ugn/platform_specific_information.rst: Remove reference to
238 image, too troublesome with texi format.
239 * gnat_ugn.texi: Regenerate.
241 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
244 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
245 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
246 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
248 2015-02-23 Thomas Schwinge <thomas@codesourcery.com>
250 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
252 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
254 2015-02-22 Arnaud Charlet <charlet@adacore.com>
256 * doc/Makefile: postprocess texinfo files to update @dircategory
257 and update texi files under gcc/ada.
258 * gnat_ugn.texi, gnat_rm.texi: Regenerated.
260 2015-02-22 Arnaud Charlet <charlet@adacore.com>
262 * doc/gnat_ugn/project-manager-figure.png,
263 doc/gnat_ugn/rtlibrary-structure.png: New.
265 2015-02-22 Tom de Vries <tom@codesourcery.com>
268 * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
269 @item, and fix warning '@itemize has text but no @item'.
271 2015-02-20 Ed Schonberg <schonberg@adacore.com>
273 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
274 legally applies to an abstract subprogram declaration.
275 * freeze.adb: Minor comment addition.
277 2015-02-20 Robert Dewar <dewar@adacore.com>
279 * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
280 * erroutc.adb (Set_Msg_Str): Replace _xxx.
281 (Pre/Post/Type_Invariant) by xxx'Class.
282 * erroutc.ads (Set_Msg_Str): Replace _xxx.
283 (Pre/Post/Type_Invariant) by xxx'Class.
284 * sem_prag.adb (Fix_Error): Remove special casing of
285 Name_uType_Invariant.
286 (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
287 Name_uPre and Name_uPost in aspect case (done in Errout now).
289 2015-02-20 Robert Dewar <dewar@adacore.com>
291 * g-alveop.adb: Minor style fixes.
293 2015-02-20 Robert Dewar <dewar@adacore.com>
295 * freeze.adb (Warn_Overlay): Guard against blow up with address
298 2015-02-20 Bob Duff <duff@adacore.com>
300 * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
301 for the compiler to guess whether the call is internal or external --
302 it is always external.
303 (Expand_Access_To_Protected_Op): For P'Access, where P
304 is a protected subprogram, always create a pointer to the
307 2015-02-20 Robert Dewar <dewar@adacore.com>
309 * a-dispat.adb, a-stcoed.ads: Minor reformatting.
311 2015-02-20 Robert Dewar <dewar@adacore.com>
313 * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
314 predicate for non-static subtype.
315 (Build_Predicate_Functions): Do not assume subtype associated with a
316 static predicate must be static.
318 2015-02-20 Robert Dewar <dewar@adacore.com>
320 * errout.adb (Set_Msg_Node): Better handling of internal names
321 (Set_Msg_Node): Kill message when we cannot eliminate internal name.
322 * errout.ads: Document additional case of message deletion.
323 * namet.adb (Is_Internal_Name): Refined to consider wide
324 strings in brackets notation and character literals not to be
326 * sem_ch8.adb (Find_Selected_Component): Give additional error
327 when selector name is a subprogram whose first parameter has
328 the same type as the prefix, but that type is untagged.
330 2015-02-20 Robert Dewar <dewar@adacore.com>
332 * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
334 2015-02-20 Tristan Gingold <gingold@adacore.com>
336 * opt.ads (GNAT_Mode_Config): New variable.
337 * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
338 to set Assertions_Enabled.
339 * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
342 2015-02-20 Robert Dewar <dewar@adacore.com>
344 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
345 comment regarding the handling of unterminated fixed-point
347 * s-valuns.ads (Scan_Raw_Unsigned): Add comments
348 corresponding to those previously added for
349 System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
351 2015-02-20 Olivier Hainque <hainque@adacore.com>
353 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
355 2015-02-20 Robert Dewar <dewar@adacore.com>
357 * sem_prag.adb: Minor comment clarification.
359 2015-02-20 Olivier Hainque <hainque@adacore.com>
361 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
362 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
363 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
364 (vec_ctf): Now renamings as well.
366 2015-02-20 Robert Dewar <dewar@adacore.com>
368 * switch-c.adb, bindgen.adb: Minor reformatting.
370 2015-02-20 Ed Schonberg <schonberg@adacore.com>
372 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
373 Invariant'class is allowed on an abstract type.
375 2015-02-20 Ed Schonberg <schonberg@adacore.com>
377 * sem_ch3.adb (Access_Definition): If the access definition is
378 for a protected component and defines an access to protected
379 subprogram, do not create an itype reference for it because a
380 full type declaration will be built in order to generate the
381 proper equivalent type.
382 (Analyze_Subtype_Declaration): Add information of incomplete
383 subtypes, for Ada 2012 extended uses of incomplete types.
385 2015-02-20 Gary Dismukes <dismukes@adacore.com>
387 * sem_res.adb: Minor reformatting.
389 2015-02-20 Vincent Celier <celier@adacore.com>
391 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
392 path name for several switches --RTS, use the normalized path
395 2015-02-20 Vincent Celier <celier@adacore.com>
397 * bindgen.adb: Minor reformatting and code reorganization.
399 2015-02-20 Jose Ruiz <ruiz@adacore.com>
401 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
402 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
405 2015-02-20 Arnaud Charlet <charlet@adacore.com>
407 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
408 obsolete references to RTX, nucleus, VMS.
410 2015-02-20 Ed Schonberg <schonberg@adacore.com>
412 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
413 aspect, use name that mentions Class explicitly, rather than
414 compiler-internal name.
416 2015-02-20 Robert Dewar <dewar@adacore.com>
418 * debug.adb: Add documentation for -gnatd.2 (allow statements
420 * par-ch3.adb (P_Identifier_Declarations): Handle
421 statement appearing where declaration expected more cleanly.
422 (Statement_When_Declaration_Expected): Implement debug flag
425 2015-02-20 Jose Ruiz <ruiz@adacore.com>
427 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
428 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
429 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
430 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
432 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
433 This is the correct name for the dispatching policy (FIFO was
436 2015-02-20 Javier Miranda <miranda@adacore.com>
438 * sem_res.adb (Resolve_Type_Conversion): If the type of the
439 operand is the limited-view of a class-wide type then recover
440 the class-wide type of the non-limited view.
442 2015-02-20 Arnaud Charlet <charlet@adacore.com>
444 * gcc-interface/Makefile.in: Remove references to nucleus.
445 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
446 extern_flag to true for Inline_Always subprograms with
447 Intrinsic convention.
449 2015-02-20 Yannick Moy <moy@adacore.com>
451 * sem_prag.ads: Minor typo in comment.
453 2015-02-20 Pascal Obry <obry@adacore.com>
455 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
457 2015-02-20 Vincent Celier <celier@adacore.com>
459 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
462 2015-02-20 Robert Dewar <dewar@adacore.com>
464 * sem_eval.ads: Minor reformatting.
466 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
468 * freeze.adb (Size_Known): Do not set the packed size for
469 independent type or component.
470 (Freeze_Array_Type): Check for Independent[_Components] with packing
471 or explicit component size clause.
472 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
473 of independence pragmas only for non-GCC back-ends.
474 * sem_ch13.adb (Initialize): Likewise for the initialization.
475 * sem_prag.adb (Record_Independence_Check): New procedure to record an
476 independence check in the table.
477 (Analyze_Pragma): Use it throughout instead of doing it manually.
478 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
479 independent type or component.
481 2015-02-20 Thomas Quinot <quinot@adacore.com>
483 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
484 struct direct and readdir. This is required for NFS filesystems
485 mounted from servers that use 64-bit cookies.
487 2015-02-20 Ed Schonberg <schonberg@adacore.com>
489 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
490 Build_Subprogram_Renaming, to create renaming of subprogram
491 instance in the the declaration of the wrapper package rather
492 than in its body, so that it is available for analysis of aspects
493 propagated from generic to instantiation.
494 (Check_Mismatch): An actual for a formal package that is an
495 incomplete type matches a formal type that is incomplete.
496 (Instantiate_Package_Body): Move code that builds subprogram
497 renaming to Analyze_Subprogram_Instantiation.
498 (Instantiate_Type): The generated subtype is a limited view if
499 the actual is a limited view.
500 (Load_Parent_Of_Generic): Retrieve instance declaration from
501 its new position within wrapper package.
503 2015-02-20 Arnaud Charlet <charlet@adacore.com>
505 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
507 2015-02-20 Robert Dewar <dewar@adacore.com>
509 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
510 issue of negative arguments.
512 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
514 * gnat1drv.adb: Minor consistency fix.
516 2015-02-20 Pascal Obry <obry@adacore.com>
518 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
521 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
523 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
525 * exp_ch6.adb (Expand_Call): Use back-end inlining
526 instead of expansion for simple subprogram renamings.
528 2015-02-20 Robert Dewar <dewar@adacore.com>
530 * exp_util.adb: Minor reformatting.
532 2015-02-20 Vincent Celier <celier@adacore.com>
534 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
535 is specified several times with different values that indicates
536 the same runtime directory.
538 2015-02-20 Ed Schonberg <schonberg@adacore.com>
540 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
541 handle properly illegal uses of attributes on prefixes on an
542 incomplete type, both when the type of the prefix is locally
543 incomplete, and when it is a limited view of a type whose
544 non-limited view is not available.
545 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
548 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
550 * exp_ch6.adb: Fix minor typo in comment.
552 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
554 * sinfo.ads: Add comment.
556 2015-02-20 Olivier Hainque <hainque@adacore.com>
558 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
559 flags controlling the actual FE inlining out of pragma Inline
560 and pragma Inline_Always.
561 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
562 on -fno-inline, which disables all inlining in compilers with
563 an Ada back-end and without back-end inlining support.
564 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
565 flag to True on -fno-inline and leave Inline_Always alone for
567 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
568 names of the Opt flags it sets.
569 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
570 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
571 * sem_prag.adb (Make_Inline): Remove early return conditioned
572 on Opt.Suppress_All_Inlining.
573 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
574 disable the calls to Build_Body_To_Inline otherwise triggered
575 by pragma Inline or Inline_Always. This will prevent actual
576 front-end inlining of the subprogram on calls.
578 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
580 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
581 Abort_Undefer_Direct function.
582 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
583 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
584 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
585 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
587 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
588 Remove call to Register_Backend_Call and move code resetting
589 Needs_Debug_Info on inlined subprograms to...
590 * inline.ads (Add_Inlined_Body): Add N parameter.
591 (Register_Backend_Call): Delete.
592 * inline.adb (Add_Inlined_Body): ...here and simplify.
593 Register the call with Backend_Calls directly.
594 (Register_Backend_Call): Delete.
595 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
597 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
599 * s-stalib.ads: Fix typo.
601 2015-02-20 Ed Schonberg <schonberg@adacore.com>
603 * exp_ch3.adb (Default_Initialize_Object): If the object has a
604 delayed freeze, the actions associated with default initialization
605 must be part of the freeze actions, rather that being inserted
606 directly after the object declaration.
608 2015-02-20 Robert Dewar <dewar@adacore.com>
610 * lib-load.adb: Minor comment update.
612 2015-02-20 Vincent Celier <celier@adacore.com>
614 * prj-proc.adb (Process_Case_Construction): When there are
615 incomplete withed projects and the case variable is unknown,
616 skip the case construction.
618 2015-02-20 Ed Schonberg <schonberg@adacore.com>
620 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
621 when an actual is a view conversion, either because the call is
622 to an inherited operation, or because the actual is an explicit
623 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
625 2015-02-20 Robert Dewar <dewar@adacore.com>
627 * einfo.ads: Minor comment updates Fix missing pragma Inline
628 for Set_Partial_View_Has_Unknown_Discr.
629 * einfo.adb (Write_Entity_Flags): Add missing entry for
630 Partial_View_Has_Unknown_Discr.
631 * sem_ch3.adb: Minor reformatting.
633 2015-02-20 Vincent Celier <celier@adacore.com>
635 * opt.ads: Minor cleanup: remove mention of gprmake.
636 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
637 * s-tataat.adb: Do not call System.Tasking.Self but directly
638 System.Task_Primitives.Operations.Self.
640 2015-02-20 Arnaud Charlet <charlet@adacore.com>
642 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
643 sphinx in the doc directory.
644 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
646 2015-02-20 Robert Dewar <dewar@adacore.com>
648 * sem_res.adb: Minor reformatting.
649 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
651 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
652 aspects from circuitry setting delay required to false if the
653 argument is an integer literal.
655 2015-02-20 Ed Schonberg <schonberg@adacore.com>
657 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
658 on type entities, to enforce AI12-0133: default initialization
659 of types whose partial view has unknown discriminants does not
660 get an invariant check, because clients of the unit can never
661 declare objects of such types.
662 * sem_ch3.adb (Find_Type_Name); Set new flag
663 Partial_View_Has_Unknown_Discr when needed.
664 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
665 generation of invariant call on default-initialized object.
667 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
669 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
670 if the parameter either is passed by reference or if the alignment
673 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
675 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
676 detect primitive operations of tagged and untagged types.
678 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
680 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
681 sets in presence of derivation for subprogram types.
683 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
685 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
686 present in the same context as the declaration.
688 2015-02-07 Jakub Jelinek <jakub@redhat.com>
691 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
692 and optimization_current_node after tweaking global_options.
694 2015-02-05 Robert Dewar <dewar@adacore.com>
696 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
697 prj-nmsc.adb: Minor reformatting.
699 2015-02-05 Ed Schonberg <schonberg@adacore.com>
701 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
702 of a protected type may not be available, so to check conformance
703 with an interface type, examine the interface list in the type
704 declaration directly.
705 (Write_Overloads): Improve information for indirect calls,
708 2015-02-05 Ed Schonberg <schonberg@adacore.com>
710 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
711 expansion activity in ASIS mode.
713 2015-02-05 Javier Miranda <miranda@adacore.com>
715 * errout.adb (Error_Msg_PT): Add missing error.
716 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
717 RM rule. Code cleanup.
718 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
719 anonymous access types. Found working on the tests. Code cleanup.
721 2015-02-05 Vincent Celier <celier@adacore.com>
723 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
724 when there are incomplete withs.
725 * prj-nmsc.adb (Process_Naming): Do not try to get the value
726 of an element when it is nil.
727 (Check_Naming): Do not check a nil suffix for illegality
728 * prj-proc.adb (Expression): Do not process an empty term.
729 * prj-strt.adb (Attribute_Reference): If attribute cannot be
730 found, parse a possible index to avoid cascading errors.
732 2015-02-05 Ed Schonberg <schonberg@adacore.com>
734 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
735 for an access_to_subprogram declaration is not a derived type.
737 2015-02-05 Robert Dewar <dewar@adacore.com>
739 * errout.adb (Error_Msg_Internal): For non-serious error set
740 Fatal_Error to Ignored.
741 * lib-load.adb (Load_Unit): Minor comment updates.
742 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
743 setting from with'ed unit to with'ing unit.
744 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
747 2015-02-05 Yannick Moy <moy@adacore.com>
749 * sem_prag.adb, par-prag.adb: Minor code clean up.
751 2015-02-05 Yannick Moy <moy@adacore.com>
753 * par-prag.adb (Pragma_Warnings): Update for extended form
754 of pragma Warnings. The "one" argument case may now have 2 or
756 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
757 extended form of pragma Warnings. Pragma with tool name is either
758 rewritten as null or as an equivalent form without tool name,
760 * snames.ads-tmpl (Name_Gnatprove): New name.
762 2015-02-05 Robert Dewar <dewar@adacore.com>
764 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
766 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
767 condition is standard Boolean, it can be non-standard derived
770 2015-02-05 Robert Dewar <dewar@adacore.com>
772 * checks.adb (Enable_Range_Check): Disconnect attempted
773 optimization for the case of range check for subscript of
776 2015-02-05 Robert Dewar <dewar@adacore.com>
778 * par-ch13.adb (With_Present): New function
779 (Aspect_Specifications_Present): Handle WHEN in place of WITH
780 (Get_Aspect_Specifications): Comment update.
781 * par.adb: Comment updates.
783 2015-02-05 Robert Dewar <dewar@adacore.com>
785 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
786 * frontend.adb (Frontend): New setting of Fatal_Error.
787 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
789 (Load_Main_Source): New setting of Fatal_Error
790 (Load_Unit): New setting of Fatal_Error.
791 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
793 (Ensure_System_Dependency): New setting of Fatal_Error.
794 * lib.adb (Fatal_Error): New setting of Fatal_Error
795 (Set_Fatal_Error): New setting of Fatal_Error.
796 * lib.ads: New definition of Fatal_Error and associated routines.
797 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
798 * par-load.adb (Load): New setting of Fatal_Error.
799 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
800 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
802 (Optional_Subunit): New setting of Fatal_Error.
803 (Analyze_Proper_Body): New setting of Fatal_Error.
804 (Load_Needed_Body): New setting of Fatal_Error.
806 2015-02-05 Ed Schonberg <schonberg@adacore.com>
808 * sem_res.adb (Resolve_Call): If the function being called has
809 out parameters do not check for language version if the function
810 comes from a predefined unit, as those are always compiled in
813 2015-02-05 Ed Schonberg <schonberg@adacore.com>
815 * sem_ch3.adb (Process_Full_View): Verify that the full view
816 of a type extension must carry an explicit limited keyword if
817 the partial view does (RM 7.3 (10.1)).
819 2015-02-05 Robert Dewar <dewar@adacore.com>
821 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
822 sem_warn.ads: Minor reformatting.
823 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
825 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
826 error for abstract type.
828 2015-02-05 Yannick Moy <moy@adacore.com>
830 * opt.ads (Warn_On_Suspicious_Contract): Update comment
832 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
833 suspicious uses of 'Update.
834 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
835 function issues warning on suspicious uses of 'Update.
836 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
837 package spec and body as SPARK_Mode Off.
839 2015-02-05 Robert Dewar <dewar@adacore.com>
841 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
842 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
843 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
844 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
847 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
849 * sem_prag.adb (Check_Pragma_Conformance): Add
850 local variable Arg. Ensure that all errors are associated with
851 the pragma if it appears without an argument. Add comments on
854 2015-02-05 Robert Dewar <dewar@adacore.com>
856 * lib-xref.adb: Minor reformatting.
858 2015-02-05 Tristan Gingold <gingold@adacore.com>
861 * env.c: Fix thinko: handle Darwin case before default one.
863 2015-01-30 Robert Dewar <dewar@adacore.com>
865 * a-assert.adb: Minor reformatting.
866 * sem_ch13.adb: Minor comment clarification.
867 * types.ads: Minor comment update.
868 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
869 when we have a predicate that is nothing but an inherited dynamic
872 2015-01-30 Jerome Guitton <guitton@adacore.com>
874 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
875 include cert link spec.
877 2015-01-30 Robert Dewar <dewar@adacore.com>
879 * einfo.ads: Minor comment fix.
880 * freeze.adb (Freeze_Profile): Add test for suspicious import
882 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
883 use in Pure unit is now moved to Freeze (to properly catch
884 Pure_Function exemption).
886 2015-01-30 Bob Duff <duff@adacore.com>
888 * sem_res.ads: Minor comment fix.
889 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
890 check both operands of an operator.
892 2015-01-30 Yannick Moy <moy@adacore.com>
894 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
895 policy for Pre to Ignore.
896 (Assert): Add precondition.
898 2015-01-30 Robert Dewar <dewar@adacore.com>
900 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
902 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
903 documentation for some special cases of invalid attempts at
906 2015-01-30 Gary Dismukes <dismukes@adacore.com>
908 * errout.ads: Minor reformatting.
910 2015-01-30 Yannick Moy <moy@adacore.com>
912 * inline.adb (Process_Formals): Use the sloc of
913 the inlined node instead of the sloc of the actual parameter,
914 when replacing formal parameters by the actual one.
916 2015-01-30 Arnaud Charlet <charlet@adacore.com>
918 * g-expect.adb (Get_Command_Output): Use infinite timeout when
921 2015-01-30 Ed Schonberg <schonberg@adacore.com>
923 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
924 defaulted in an instantiation, add an entry in the list of actuals
925 to indicate the default value of the formal (as is already done
926 for defaulted subprograms).
928 2015-01-30 Javier Miranda <miranda@adacore.com>
930 * errout.adb (Error_Msg_PT): Minor error phrasing update.
932 2015-01-30 Robert Dewar <dewar@adacore.com>
934 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
937 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
939 * exp_dbug.adb (Get_Encoded_Name): When
940 -fgnat-encodings=minimal, do not generate names for biased types.
942 2015-01-30 Tristan Gingold <gingold@adacore.com>
945 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
947 2015-01-30 Gary Dismukes <dismukes@adacore.com>
949 * freeze.adb: Minor reformatting.
951 2015-01-30 Javier Miranda <miranda@adacore.com>
953 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
954 improve its documentation.
955 * errout.adb (Error_Msg_PT): Improve the error message.
956 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
957 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
958 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
960 2015-01-30 Robert Dewar <dewar@adacore.com>
962 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
963 message for False case.
965 2015-01-30 Doug Rupp <rupp@adacore.com>
967 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
968 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
971 2015-01-30 Gary Dismukes <dismukes@adacore.com>
973 * sem_attr.adb (Declared_Within_Generic_Unit):
974 New function to test whether an entity is declared within the
975 declarative region of a given generic unit.
976 (Resolve_Attribute): For checking legality of subprogram'Access within
977 a generic unit, call new Boolean function Declared_Within_Generic_Unit
978 instead of simply comparing the results of Enclosing_Generic_Unit on
979 the prefix and access type. Correct minor comment typos.
981 2015-01-30 Robert Dewar <dewar@adacore.com>
983 * freeze.adb, exp_util.ads: Update comment.
984 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
985 * sem_util.adb: Minor: fix typo.
987 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
989 * sem_attr.adb (Analyze_Attribute): Ensure that
990 the check concerning Refined_Post takes precedence over the
993 2015-01-30 Gary Dismukes <dismukes@adacore.com>
995 * sem_prag.adb: Minor typo fixes and reformatting.
997 2015-01-30 Yannick Moy <moy@adacore.com>
999 * sem_attr.adb: Code clean up.
1001 2015-01-30 Robert Dewar <dewar@adacore.com>
1003 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1004 * ali.ads (Unit_Record): Add new field Serious_Errors.
1005 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1006 attribute in U line.
1007 * lib-writ.ads: New attribute SE (serious erors) in unit line.
1009 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1011 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1012 Lit_Indexes, Scale_Value, Storage_Size_Variable,
1013 String_Literal_Low_Bound along associated routines and
1015 (Pending_Access_Types): New routine.
1016 (Set_Pending_Access_Types): New routine.
1017 (Write_Field15_Name): Add an entry for Pending_Access_Types.
1018 * einfo.ads Add new attribute Pending_Access_Types along
1019 with usage in nodes. Update the usage of attributes
1020 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1021 Storage_Size_Variable, String_Literal_Low_Bound.
1022 (Pending_Access_Types): New routine along with pragma Inline.
1023 (Set_Pending_Access_Types): New routine along with pragma Inline.
1024 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1025 Ins_Node. Determine the insertion node for anonynous access type
1026 that acts as a component type of an array. Update the call to
1027 Build_Finalization_Master.
1028 (Expand_Freeze_Record_Type): Update
1029 the calls to Build_Finalization_Master.
1030 (Freeze_Type): Remove
1031 local variable RACW_Seen. Factor out the code that deals with
1032 remote access-to-class-wide types. Create a finalization master
1033 when the designated type contains a private component. Fully
1034 initialize all pending access types.
1035 (Process_RACW_Types): New routine.
1036 (Process_Pending_Access_Types): New routine.
1037 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1038 needs to set primitive Finalize_Address.
1039 (Expand_N_Allocator): Allocation no longer sets primitive
1041 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1042 Update the call to Build_Finalization_Master.
1043 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1044 needs to set primitive Finalize_Address.
1045 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1046 (Build_Finalization_Master): New parameter profile. Associate
1047 primitive Finalize_Address with the finalization master if the
1048 designated type has been frozen, otherwise treat the access
1049 type as pending. Simplify the insertion of the master and
1050 related initialization code.
1051 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1053 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1054 Simplify the implementation.
1055 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1056 along with comment on usage.
1057 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1058 the comment on usage.
1059 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1060 Finalize_Address to retrieve the primitive.
1061 (Finalize_Address): New routine.
1062 (Find_Finalize_Address): Removed.
1063 * exp_util.ads (Finalize_Address): New routine.
1064 * freeze.adb (Freeze_All): Remove the generation of finalization
1066 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1067 pending access types from the partial to the full view.
1069 2015-01-30 Robert Dewar <dewar@adacore.com>
1071 * sem_disp.adb: Minor reformatting.
1072 * sem_disp.ads: Documentation update.
1074 2015-01-30 Ed Schonberg <schonberg@adacore.com>
1076 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1077 or a function call, return True if type is class-wide.
1078 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1079 Apply RM 4.5.7 (17/3): all or none of the dependent expression
1080 of a conditional expression must be dynamically tagged.
1082 2015-01-30 Ed Schonberg <schonberg@adacore.com>
1084 * sem_ch6.adb (Analyze_Function_Return): In an extended return
1085 statement, apply accessibility check to result object when there
1086 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1088 2015-01-30 Robert Dewar <dewar@adacore.com>
1090 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1091 Boolean for case where ELSE is omitted.
1092 * sem_res.adb: Minor reformatting.
1094 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1096 Fix build under cygwin/64.
1097 * adaint.h: Add check for __CYGWIN__.
1098 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1100 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1103 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1104 * mingw32.h: Don't include <tchar.h> under cygwin.
1105 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1107 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1109 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1110 (DEF_FUNCTION_TYPE_VAR_12): New macros.
1112 2015-01-09 Michael Collison <michael.collison@linaro.org>
1114 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1115 vec.h, double-int.h, input.h, alias.h, symtab.h,
1116 fold-const.h, wide-int.h, and inchash.h due to
1117 flattening of tree.h.
1118 * gcc-interface/decl.c: Ditto.
1119 * gcc-interface/misc.c: Ditto.
1120 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1121 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1122 fold-const.h, wide-int.h, and inchash.h due to
1123 flattening of tree.h.
1124 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1125 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1126 fold-const.h, wide-int.h, inchash.h due to
1127 flattening of tree.h.
1128 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1129 vec.h, double-int.h, input.h, alias.h, symtab.h,
1130 fold-const.h, wide-int.h, and inchash.h due to
1131 flattening of tree.h.
1132 * gcc-interface/utils2.c: Ditto.
1134 2015-01-07 Robert Dewar <dewar@adacore.com>
1136 * sem_warn.adb (Check_One_Unit): Don't give unused entities
1137 warning for a package which is used as a generic parameter.
1139 2015-01-07 Bob Duff <duff@adacore.com>
1141 * usage.adb (Usage): Correct documentation of
1144 2015-01-07 Robert Dewar <dewar@adacore.com>
1146 * s-fileio.adb: Minor reformatting.
1148 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1150 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1151 access to subprogram, replace its formals with new entities when
1152 building the object declaration, both if actual is present and
1153 when it is defaulted.
1155 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1157 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1158 conversion and type of expression has invariant, apply invariant
1159 check on expression.
1161 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1163 * sem_ch3.adb (Create_Constrained_Components): A call to
1164 Gather_Components may detect an error if an inherited discriminant
1165 that controls a variant is non-static.
1166 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1167 Gather_Components may report an error if an inherited discriminant
1168 in a variant in non-static.
1169 * sem_util.adb (Gather_Components): If a non-static discriminant
1170 is inherited do not report error here, but let caller handle it.
1171 (Find_Actual): Small optimization.
1173 2015-01-07 Bob Duff <duff@adacore.com>
1175 * usage.adb (Usage): Document -gnatw.f switch.
1177 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1179 * sem_ch12.adb: Code clean up and minor reformatting.
1181 2015-01-07 Robert Dewar <dewar@adacore.com>
1183 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1184 Raise_Accessibility_Error call.
1185 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1186 on handling of invalid digits in based constants.
1187 * s-fatgen.ads: Minor reformatting.
1188 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1189 Avoid noting bogus modification for Valid test.
1190 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1191 * einfo.ads: Minor reformatting.
1192 * sem_warn.adb: Minor comment clarification.
1193 * sem_ch12.adb: Minor reformatting.
1195 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1197 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
1198 over static predicates when the loop parameter specification
1199 carries a Reverse indicator.
1201 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1203 * sem_ch12.adb (Instantiate_Object): If formal has a default,
1204 actual is missing and formal has an anonymous access type, copy
1205 access definition in full so that tree for instance is properly
1206 formatted for ASIS use.
1208 2015-01-07 Bob Duff <duff@adacore.com>
1210 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
1211 for P'Access, where P is a subprogram in the same package as
1212 the P'Access, and the P'Access is evaluated at elaboration
1213 time, and occurs before the body of P. For example, "X : T :=
1214 P'Access;" would allow a subsequent call to X.all to be an
1215 access-before-elaboration error; hence the warning. This warning
1216 is enabled by the -gnatw.f switch.
1217 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
1218 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
1219 * gnat_ugn.texi: Document the new warning.
1221 2015-01-07 Johannes Kanig <kanig@adacore.com>
1223 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
1226 2015-01-07 Robert Dewar <dewar@adacore.com>
1228 * s-taprop-linux.adb, clean.adb: Minor reformatting.
1230 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1232 * s-tassta.adb: Relax some overzealous assertions.
1234 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1236 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
1237 view of a type is legal when context is a thunk generated for
1238 operation inherited from an interface.
1239 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
1240 a thunk and return type is an incomplete type do not continue
1241 expansion; thunk will be fully elaborated when generating code.
1243 2015-01-07 Doug Rupp <rupp@adacore.com>
1245 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
1246 (QueryPerformanceFrequency): New imported procedure.
1247 * s-taprop-mingw.adb (RT_Resolution): Call above and return
1248 resolution vice a hardcoded value.
1249 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
1250 resolution vice a hardcoded value.
1251 * s-linux-android.ads (clockid_t): New subtype.
1252 * s-osinte-aix.ads (clock_getres): New imported subprogram.
1253 * s-osinte-android.ads (clock_getres): Likewise.
1254 * s-osinte-freebsd.ads (clock_getres): Likewise.
1255 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
1256 * s-osinte-darwin.ads (clock_getres): New subprogram.
1257 * s-osinte-darwin.adb (clock_getres): New subprogram.
1258 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1259 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1260 calculate resolution vice hard coded value.
1262 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1264 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1265 limited view, use non-limited view when available to create
1266 equivalent record type.
1268 2015-01-07 Vincent Celier <celier@adacore.com>
1270 * gnatcmd.adb: Remove command Sync and any data and processing
1271 related to this command. Remove project processing for gnatstack.
1272 * prj-attr.adb: Remove package Synchonize and its attributes.
1274 2015-01-07 Vincent Celier <celier@adacore.com>
1276 * clean.adb: Minor error message change.
1278 2015-01-07 Tristan Gingold <gingold@adacore.com>
1281 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1283 2015-01-07 Javier Miranda <miranda@adacore.com>
1285 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1286 protect the frontend against never ending recursion caused by
1287 circularities in the sources.
1289 2015-01-07 Robert Dewar <dewar@adacore.com>
1291 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1292 exp_ch3.adb: Minor reformatting.
1294 2015-01-07 Doug Rupp <rupp@adacore.com>
1296 * s-linux.ads (clockid_t): New subtype.
1297 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1298 (clockid_t): New subtype.
1299 (clock_getres): Import system call.
1300 * s-taprop-linux.adb (System.OS_Constants): With and rename.
1301 (RT_Resolution): Remove
1302 hardcoded value and call clock_getres.
1303 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1304 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1306 2015-01-07 Robert Dewar <dewar@adacore.com>
1308 * sem_warn.adb (Check_One_Unit): Guard against context item
1309 with no Entity field.
1311 2015-01-07 Vincent Celier <celier@adacore.com>
1313 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1314 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1316 2015-01-07 Vincent Celier <celier@adacore.com>
1318 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1319 errors/warnings in the first parsing of the project files,
1320 to display the warnings when there is no errors.
1322 2015-01-07 Tristan Gingold <gingold@adacore.com>
1324 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1326 2015-01-07 Doug Rupp <rupp@adacore.com>
1328 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1329 value from Int_Lock as parameter to Int_Unlock.
1330 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1331 * s-vxwext.ads (Int_Unlock): Likewise.
1332 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1333 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1334 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1335 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1337 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
1339 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1342 2015-01-07 Tristan Gingold <gingold@adacore.com>
1344 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1347 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1349 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1350 automatically set No_Strict_Aliasing on access types.
1351 * fe.h (No_Strict_Aliasing_CP): Declare.
1352 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1353 No_Strict_Aliasing_CP is set.
1355 2015-01-07 Johannes Kanig <kanig@adacore.com>
1357 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1358 not build function wrapper in gnatprove mode when the package
1359 is externally axiomatized.
1361 2015-01-07 Jose Ruiz <ruiz@adacore.com>
1363 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1364 intermediate computations when the parameters have different signs.
1366 2015-01-07 Javier Miranda <miranda@adacore.com>
1368 * exp_ch3.adb (Build_Init_Procedure): For derived types,
1369 improve the code which takes care of identifying and moving to
1370 the beginning of the init-proc the call to the init-proc of the
1373 2015-01-07 Olivier Hainque <hainque@adacore.com>
1375 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1376 Elaborate the expression as part of the same stmt group as the actions.
1378 2015-01-07 Robert Dewar <dewar@adacore.com>
1380 * sem_ch3.adb: Minor error message change.
1382 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1384 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1385 Following AI05-028, the pragam applies legally to any composite type.
1387 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1389 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1390 (sigwait, sigwaitinfo): Removed, not needed after all on any
1391 VxWorks configurations.
1393 2015-01-07 Robert Dewar <dewar@adacore.com>
1395 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1397 2015-01-07 Javier Miranda <miranda@adacore.com>
1399 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1400 generation of accessibility check.
1402 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1404 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1405 illegal completion from a class- wide type, set etype of the
1406 derived type properly to prevent cascaded errors.
1408 2015-01-07 Robert Dewar <dewar@adacore.com>
1410 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1413 2015-01-07 Robert Dewar <dewar@adacore.com>
1415 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1417 (OK_No_Use_Of_Entity_Name): New function.
1418 (Set_Restriction_No_Use_Of_Entity): New procedure.
1419 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1421 (OK_No_Use_Of_Entity_Name): New function.
1422 (Set_Restriction_No_Use_Of_Entity): New procedure.
1423 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1425 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1426 Add processing for new restriction No_Use_Of_Entity.
1428 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1430 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1431 component type as to Has_Atomic_Components type. Remove useless
1432 test on Is_Aliased component type.
1434 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
1436 * alloc.ads Alphabetize several declarations. Add constants
1437 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1438 * atree.adb Add with and use clauses for Opt.
1439 (Allocate_Initialize_Node): Mark a node as ignored Ghost
1440 if it is created in an ignored Ghost region.
1441 (Ekind_In): New variant.
1442 (Is_Ignored_Ghost_Node): New routine.
1443 (Set_Is_Ignored_Ghost_Node): New routine.
1444 * atree.adb Aplhabetize several subprograms declarations. Flag
1445 Spare0 is now known as Is_Ignored_Ghost_Node.
1446 (Ekind_In): New variant.
1447 (Is_Ignored_Ghost_Node): New routine.
1448 (Set_Is_Ignored_Ghost_Node): New routine.
1449 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1450 (Contains_Ignored_Ghost_Code): New routine.
1451 (Set_Contains_Ignored_Ghost_Code): New routine.
1452 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1453 It is now possible to set this property on an unanalyzed entity.
1454 (Write_Entity_Flags): Output the status of flag
1455 Contains_Ignored_Ghost_Code.
1456 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1458 (Contains_Ignored_Ghost_Code): New routine
1459 along with pragma Inline.
1460 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1461 * exp_ch3.adb Add with and use clauses for Ghost.
1462 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1463 Set the Ghost_Mode in effect.
1464 (Restore_Globals): New routine.
1465 * exp_ch7.adb (Process_Declarations): Do not process a context
1466 that invoves an ignored Ghost entity.
1467 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1468 construct that has been rewritten as a null statement.
1469 * exp_disp.adb Add with and use clauses for Ghost.
1470 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1471 the Ghost_Mode in effect.
1472 (Restore_Globals): New routine.
1473 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1474 does not require any clean up. Add two missing cases that deal
1475 with block statements.
1476 * freeze.adb Add with and use clauses for Ghost.
1477 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1478 Set the Ghost_Mode in effect.
1479 (Restore_Globals): New routine.
1480 * frontend.adb Add with and use clauses for Ghost. Remove any
1481 ignored Ghost code from all units that qualify.
1482 * ghost.adb New unit.
1483 * ghost.ads New unit.
1484 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1485 the table in package Ghost.
1486 * lib.ads: Alphabetize several subprogram declarations.
1487 * lib-xref.adb (Output_References): Do not generate reference
1488 information for ignored Ghost entities.
1489 * opt.ads Add new type Ghost_Mode_Type and new global variable
1491 * rtsfind.adb (Load_RTU): Provide a clean environment when
1492 loading a runtime unit.
1493 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1494 entry/exit as the node may set a different mode.
1496 Capture/restore the value of Ghost_Mode on entry/exit as the
1497 unit may be withed from a unit with a different Ghost mode.
1498 * sem_ch3.adb Add with and use clauses for Ghost.
1499 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1500 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1501 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1502 the entity as Ghost when there is a Ghost_Mode in effect.
1503 (Array_Type_Declaration): The implicit base type inherits the
1504 "ghostness" from the array type.
1505 (Derive_Subprogram): The
1506 alias inherits the "ghostness" from the parent subprogram.
1507 (Make_Implicit_Base): The implicit base type inherits the
1508 "ghostness" from the parent type.
1509 * sem_ch5.adb Add with and use clauses for Ghost.
1510 (Analyze_Assignment): Set the Ghost_Mode in effect.
1511 * sem_ch6.adb Add with and use clauses for Ghost.
1512 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1513 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1514 Set the Ghost_Mode in effect. Mark the entity as Ghost when
1515 there is a Ghost_Mode in effect.
1516 * sem_ch7.adb Add with and use clauses for Ghost.
1517 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1518 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1519 effect. Mark the entity as Ghost when there is a Ghost_Mode
1521 * sem_ch8.adb Add with and use clauses for Ghost.
1522 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1523 Analyze_Object_Renaming, Analyze_Package_Renaming,
1524 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1525 the entity as Ghost when there is a Ghost_Mode in effect.
1526 (Find_Type): Check the Ghost context of a type.
1527 * sem_ch11.adb Add with and use clauses for Ghost.
1528 (Analyze_Exception_Declaration): Set the Ghost_Mode in
1529 effect. Mark the entity as Ghost when there is a Ghost_Mode
1531 * sem_ch12.adb Add with and use clauses for Ghost.
1532 (Analyze_Generic_Package_Declaration,
1533 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1534 Mark the entity as Ghost when there is a Ghost_Mode in effect.
1535 * sem_prag.adb Add with and use clauses for Ghost.
1536 (Analyze_Pragma): Ghost-related checks are triggered when there
1537 is a Ghost mode in effect.
1538 (Create_Abstract_State): Mark the
1539 entity as Ghost when there is a Ghost_Mode in effect.
1540 * sem_res.adb Add with and use clauses for Ghost.
1541 (Check_Ghost_Context): Removed.
1542 * sem_util.adb (Check_Ghost_Completion): Removed.
1543 (Check_Ghost_Derivation): Removed.
1544 (Incomplete_Or_Partial_View):
1545 Add a guard in case the entity has not been analyzed yet
1546 and does carry a scope.
1547 (Is_Declaration): New routine.
1548 (Is_Ghost_Entity): Removed.
1549 (Is_Ghost_Statement_Or_Pragma):
1551 (Is_Subject_To_Ghost): Removed.
1552 (Set_Is_Ghost_Entity):
1554 (Within_Ghost_Scope): Removed.
1555 * sem_util.adb (Check_Ghost_Completion): Removed.
1556 (Check_Ghost_Derivation): Removed.
1557 (Is_Declaration): New routine.
1558 (Is_Ghost_Entity): Removed.
1559 (Is_Ghost_Statement_Or_Pragma): Removed.
1560 (Is_Subject_To_Ghost): Removed.
1561 (Set_Is_Ghost_Entity): Removed.
1562 (Within_Ghost_Scope): Removed.
1563 * sinfo.ads Add a section on Ghost mode.
1564 * treepr.adb (Print_Header_Flag): New routine.
1565 (Print_Node_Header): Factor out code. Output flag
1566 Is_Ignored_Ghost_Node.
1567 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1569 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1571 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1572 true test and unreachable 'else' arm.
1574 2015-01-06 Vincent Celier <celier@adacore.com>
1576 * prj-conf.adb (Check_Target): Improve error message when
1577 there are mismatched targets between the on in the configuration
1578 project file and the specified one, either in the main project
1579 file or in the --target= switch.
1581 2015-01-06 Pascal Obry <obry@adacore.com>
1583 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1584 Install_Name attribute definitions.
1586 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1588 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1589 generated Import pragma for the internal imported procedure does
1590 not come from an aspect, so that Is_Imported can be properly
1593 2015-01-06 Gary Dismukes <dismukes@adacore.com>
1595 * sem_ch12.adb (Might_Inline_Subp): Record whether
1596 any subprograms in the generic package are marked with
1597 pragma Inline_Always (setting flag Has_Inline_Always).
1598 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1599 alongside existing test of Front_End_Inlining as alternative
1600 conditions for setting Inline_Now. Also add test of
1601 Has_Inline_Always along with Front_End_Inlining test as an
1602 alternative condition for setting Needs_Body to False.
1604 2015-01-06 Tristan Gingold <gingold@adacore.com>
1606 * i-cpoint.adb (Copy_Array): Handle overlap.
1608 2015-01-06 Pascal Obry <obry@adacore.com>
1610 * bindgen.adb: Minor style fix.
1612 2015-01-06 Robert Dewar <dewar@adacore.com>
1614 * sem_util.ads, sem_util.adb: Minor reformatting.
1616 2015-01-06 Vincent Celier <celier@adacore.com>
1618 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1619 with flags before parsing the projects.
1620 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1621 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1622 to True in the flags, when Ignore_Missing_With is True and an
1623 imported project cannot be found.
1624 * prj-proc.adb (Expression): When there are incomplete withs and
1625 a variable or attribute is not found, set the variable/attribute
1627 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1630 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
1632 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1633 prj-err.adb: Add new switch --no-command-line.
1635 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1637 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1639 2015-01-06 Robert Dewar <dewar@adacore.com>
1641 * sem_ch11.adb: Minor reformatting.
1643 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1645 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1646 Build_Array_Aggr_Code, used to initialized components covered
1647 by a box association. If the component type is scalar and has
1648 a default aspect, use it to initialize such components.
1650 2015-01-06 Pascal Obry <obry@adacore.com>
1652 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1653 control the setup of the exception handler.
1654 * initialize.c: Remove unused declaration.
1655 * bindgen.adb: Always call __gnat_runtime_initialize and pass
1656 whether the exeception handler must be set or not.
1658 2015-01-06 Thomas Quinot <quinot@adacore.com>
1660 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1661 order to native from default, make sure to also adjust bit order.
1662 * exp_aggr.adb: Minor reformatting.
1664 2015-01-06 Robert Dewar <dewar@adacore.com>
1666 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1667 s-valrea.adb, s-valrea.ads: Add some additional guards for
1668 Str'Last = Positive'Last.
1670 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1672 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1675 2015-01-06 Javier Miranda <miranda@adacore.com>
1677 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1679 2015-01-06 Thomas Quinot <quinot@adacore.com>
1681 * sem_util.ads: Minor reformatting.
1682 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1683 (In_RCI_Declaration) Return to old name, as proper checking of
1684 entity being in the visible part depends on entity kind and must
1685 be done by the caller.
1687 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1689 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1690 for operators in SPARK.
1692 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1694 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1695 expression in an others association before making copies for
1696 separate resolution and accessibility checks. This ensures that
1697 the type of the expression is available to ASIS in all cases,
1698 in particular if the expression is itself an aggregate.
1700 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1702 * einfo.ads (Has_Independent_Components): Document extended
1704 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1705 (Set_Has_Independent_Components): Adjust assertion.
1706 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1707 for pragma Atomic_Components. Set Has_Independent_Components
1708 on the object instead of the type for an object declaration with
1709 pragma Independent_Components.
1711 2015-01-06 Olivier Hainque <hainque@adacore.com>
1713 * set_targ.adb (Read_Target_Dependent_Values): Set
1714 Long_Double_Index when "long double" is read.
1715 (elaboration code): Register_Back_End_Types only when not reading from
1716 config files. Doing otherwise is pointless and error prone.
1718 2015-01-06 Robert Dewar <dewar@adacore.com>
1720 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1722 2015-01-06 Robert Dewar <dewar@adacore.com>
1724 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1725 Str'Last = Positive'Last.
1727 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1729 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1730 where the non-limited type is a generic actual and appears as
1731 a subtype of the non-limited view of the other.
1732 * freeze.adb (Build_Renamed_Body): If the return type of the
1733 declaration that is being completed is a limited view and the
1734 non-limited view is available, use it in the specification of
1737 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1739 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1740 incomplete view, the type of the classwide type common to both
1741 views is the type being declared.
1743 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1745 * einfo.ads (Is_Independent): Further document extended usage.
1747 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1749 * einfo.ads (Is_Independent): Document extended usage.
1750 * einfo.adb (Is_Independent): Remove obsolete assertion.
1751 (Set_Is_Independent): Likewise.
1752 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1753 (Process_Atomic_Independent_Shared_Volatile): ...this.
1754 Deal with pragma Independent here.
1755 (Analyze_Pragma): Adjust
1756 to above renaming and also invoke it for pragma Independent.
1757 Adjust comment for Independent_Components.
1759 2015-01-06 Robert Dewar <dewar@adacore.com>
1761 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1762 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1764 2015-01-06 Robert Dewar <dewar@adacore.com>
1766 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1768 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1769 Str'Last = Positive'Last.
1771 2015-01-06 Robert Dewar <dewar@adacore.com>
1773 * sem_prag.adb (Process_Inline): Remove redundant construct
1774 warning (-gnatw.r) for an ineffective pragma Inline.
1776 2015-01-06 Robert Dewar <dewar@adacore.com>
1778 * s-valint.adb: Fix typo in last checkin.
1779 * s-valuns.adb (Value_Unsigned): More efficient fix for
1781 * sem_attr.adb (Analyze_Attribute): Minor reformatting
1782 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1784 2015-01-06 Robert Dewar <dewar@adacore.com>
1786 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1787 Str'Last = Positive'Last
1789 2015-01-06 Thomas Quinot <quinot@adacore.com>
1791 * xoscons.adb: Display exception information and return non-zero
1792 exit status in top level exception handler.
1794 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1796 * sem_ch8.adb: Code clean up.
1798 2015-01-06 Tristan Gingold <gingold@adacore.com>
1800 * targparm.ads: Remove obsolete comment.
1802 2015-01-06 Olivier Hainque <hainque@adacore.com>
1804 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1805 constructing a ref to variable, update inner_const_flag from the
1806 variable TREE_READONLY attribute.
1807 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1809 (get_target_float_size): Remove.
1810 (get_target_double_size): Remove.
1811 (get_target_long_double_size): Remove.
1813 2015-01-06 Pascal Obry <obry@adacore.com>
1815 * adaint.c (ProcListEvt): Set to NULL.
1816 * rtinit.c: New file.
1817 (__gnat_rt_init_count): New reference counter set to 0.
1818 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1819 this code is actually needed for the runtime initialization. This
1820 routine returns immediately if the initialization has already been done.
1821 * final.c: Revert previous change.
1822 * rtfinal.c: New file.
1823 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1824 section and event. The default version of this routine is empty (except
1825 for the reference counting code). This routine returns immediately if
1826 some others libraries are referencing the runtime.
1827 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1828 remove circuitry to initialize the signal handler as this is
1829 now done by the runtime initialization routine.
1830 (Gen_Adafinal): Generate call to Runtime_Finalize.
1831 * gnat_ugn.texi: Update documentation about concurrency and
1832 initialization/finalization of the run-time.
1833 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1834 references to rtfinal.o and rtinit.o
1836 2015-01-06 Robert Dewar <dewar@adacore.com>
1838 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1840 * sem_attr.adb: Implement Enum_Image attribute.
1841 * snames.ads-tmpl: Add entries for Enum_Image attribute.
1843 2015-01-06 Robert Dewar <dewar@adacore.com>
1845 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1846 * restrict.ads (No_Use_Of_Entity): New table.
1847 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1848 Ignore No_Use_Of_Entity (will be processed in parser).
1849 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1851 2015-01-06 Vincent Celier <celier@adacore.com>
1853 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1854 to check for an extended project, if a project does not have
1855 yet a project declaration.
1857 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
1859 * scos.ads: Update documentation about the SCO table build
1860 process and about table records format.
1861 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1862 (SCO_Record_Filtered): New procedure.
1863 (Set_SCO_Logical_Operator): New procedure.
1864 (dsco): Update documentation.
1865 * par_sco.adb: Update library-level comments.
1866 (SCO_Generation_State_Type): New type.
1867 (SCO_Generation_State): New variable.
1868 (SCO_Raw_Table): New package instanciation.
1869 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1871 (Tristate): New type.
1872 (Is_Logical_Operator): Return Tristate and update documentation.
1873 (Has_Decision): Update call to Is_Logical_Operator and complete
1875 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1876 comment, add an assertion for state checking and change
1877 references to SCO_Table into SCO_Raw_Table.
1878 (dsco): Refactor to dump the raw and the filtered tables.
1879 (Process_Decisions.Output_Decision_Operand): Handle putative
1880 short-circuit operators.
1881 (Process_Decisions.Output_Element): Update references
1882 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1883 (Process_Decisions.Process_Decision_Operand): Update call
1884 to Is_Logical_Operator.
1885 (Process_Decisions.Process_Node): Handle putative short-circuit
1886 operators and change references to
1887 SCO_Table into SCO_Raw_Table.
1888 (SCO_Output): Add an assertion
1889 for state checking and remove code that used to stamp out SCO entries.
1890 (SCO_Pragma_Disabled): Change reference to SCO_Table
1892 (SCO_Record): Rename to SCO_Record_Raw,
1893 add an assertion for state checking and change references
1894 to SCO_Table into SCO_Raw_Table.
1895 (Set_SCO_Condition): Add an assertion for state checking, update
1896 references to Condition_Pragma_Hash_Table and change references to
1897 SCO_Table into SCO_Raw_Table.
1898 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1899 change references to SCO_Table into SCO_Raw_Table.
1900 (Set_SCO_Logical_Operator): New procedure.
1901 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1902 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1903 (SCO_Record_Fildered): New procedure.
1904 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1905 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1907 * par-load.adb (Load): Update reference to SCO_Record.
1908 * par.adb (Par): Update reference to SCO_Record.
1909 * put_scos.adb (Put_SCOs): Add an assertion to check that no
1910 putative SCO condition reaches this end.
1911 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1912 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1913 when corresponding to an "and"/"or" operator affected by the
1914 Short_Circuit_And_Or pragma.
1916 2015-01-06 Robert Dewar <dewar@adacore.com>
1918 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1919 msg for attempted USE of generic subprogram or subprogram.
1921 2015-01-06 Robert Dewar <dewar@adacore.com>
1923 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1924 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1925 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1927 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1929 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1930 that specify stream subprograms, if the prefix is a class-wide
1931 type then the generated attribute definition clause must apply
1932 to the same class-wide type.
1933 (Default_Iterator): An iterator defined by an aspect of some
1934 container type T must have a first parameter of type T, T'class,
1935 or an access to such (from code reading RM 5.5.1 (2/3)).
1937 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1939 * gnat1drv.adb: Minor: complete previous change.
1941 2015-01-06 Olivier Hainque <hainque@adacore.com>
1943 * set_targ.ads (C_Type_For): New function. Return the name of
1944 a C type supported by the back-end and suitable as a basis to
1945 construct the standard Ada floating point type identified by
1946 the T parameter. This is used as a common ground to feed both
1947 ttypes values and the GNAT tree nodes for the standard floating
1949 * set_targ.adb (Long_Double_Index): The index at which "long
1950 double" gets registered in the FPT_Mode_Table. This is useful to
1951 know whether we have a "long double" available at all and get at
1952 it's characteristics without having to search the FPT_Mode_Table
1953 when we need to decide which C type should be used as the
1954 basis for Long_Long_Float in Ada.
1955 (Register_Float_Type): Fill Long_Double_Index.
1956 (FPT_Mode_Index_For): New function. Return the index in
1957 FPT_Mode_Table that designates the entry corresponding to the
1958 provided C type name.
1959 (FPT_Mode_Index_For): New function. Return the index in
1960 FPT_Mode_Table that designates the entry for a back-end type
1961 suitable as a basis to construct the standard Ada floating point
1962 type identified by the input T parameter.
1963 (elaboration code): Register_Back_End_Types unconditionally,
1964 so C_Type_For can operate regardless of -gnateT. Do it
1965 early so we can query it for the floating point sizes, via
1966 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1967 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1968 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1969 which C type should be used as the basis for the construction
1970 of the Standard Ada floating point types.
1971 * get_targ.ads (Get_Float_Size, Get_Double_Size,
1972 Get_Long_Double_Size): Remove.
1973 * get_targ.adb: Likewise.
1975 2015-01-06 Thomas Quinot <quinot@adacore.com>
1977 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1978 parameter and rename to...
1979 (In_RCI_Visible_Declarations): Fix handling of private part of nested
1981 (Validate_RCI_Subprogram_Declaration): Reject illegal function
1982 returning anonymous access in RCI unit.
1984 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1986 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1987 function wrapper may be a homonym of another local declaration.
1988 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1989 build function and operator wrappers after the actual subprogram
1990 has been resolved, and replace the standard renaming declaration
1991 with the declaration of wrapper.
1992 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1993 make public for use elsewhere.
1994 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1995 rewrite, now that actual is fully resolved when wrapper is
1998 2015-01-06 Javier Miranda <miranda@adacore.com>
2000 * exp_disp.adb: Revert previous change.
2002 2015-01-06 Robert Dewar <dewar@adacore.com>
2004 * exp_util.adb: Change name Name_Table_Boolean to
2005 Name_Table_Boolean1.
2006 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2007 Introduce Name_Table_Boolean2/3.
2008 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2009 Introduce Name_Table_Boolean2/3.
2010 * par-ch13.adb: Change name Name_Table_Boolean to
2011 Name_Table_Boolean1.
2013 2015-01-06 Bob Duff <duff@adacore.com>
2015 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2017 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2019 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2020 others choice that covers multiple components, analyze each
2021 copy with the type of the component even in compile-only mode,
2022 to detect potential accessibility errors.
2024 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2026 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2027 (Resolve_Actuals): An effectively volatile out
2028 parameter cannot act as an in or in out actual in a call.
2029 (Resolve_Entity_Name): An effectively volatile out parameter
2032 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2034 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2035 the expansion of an expression function it may be pre-analyzed
2036 if a 'access attribute is applied to the function, in which case
2037 last_entity may have been assigned already.
2039 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2041 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2042 type and actual has the corresponding full view, there is no
2043 error, but a case of use of incomplete type in a predicate or
2044 invariant expression.
2046 2015-01-06 Vincent Celier <celier@adacore.com>
2048 * makeutl.adb (Insert_No_Roots): Make sure that the same source
2049 in two different project tree is checked in both trees, if they
2050 are sources of two different projects, extended or not.
2052 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2054 * gnat1drv.adb: Minor code clean up.
2055 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2057 2015-01-06 Bob Duff <duff@adacore.com>
2059 * osint.adb (Read_Source_File): Don't print out
2060 file name unless T = Source.
2062 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2064 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2065 recognize improper uses of constant_reference types as actuals
2066 for in-out parameters.
2067 (Check_Function_Call): Do not collect identifiers if function
2068 name is missing because of previous error.
2070 2015-01-06 Robert Dewar <dewar@adacore.com>
2072 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2073 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2074 Minor change of name Name_Table_Info => Name_Table_Int.
2076 2015-01-06 Robert Dewar <dewar@adacore.com>
2078 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2079 in previous checkin.
2080 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2082 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2084 2015-01-06 Vincent Celier <celier@adacore.com>
2086 * a-strsup.adb (Times (Natural;String;Positive)): Raise
2087 Length_Error, not Index_Error, when the result is too long.
2089 2015-01-06 Thomas Quinot <quinot@adacore.com>
2091 * a-direct.adb (Create_Path): Minor error handling and
2092 performance improvement.
2094 2015-01-06 Robert Dewar <dewar@adacore.com>
2096 * checks.ads, sem_ch12.adb: Minor reformatting.
2097 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2098 zero check for fixed-point case if Backend_Divide_Checks_On_Target
2101 2015-01-06 Robert Dewar <dewar@adacore.com>
2103 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2104 Do not set restriction No_Elaboration_Code unless the pragma
2105 appears in the main unit).
2107 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2109 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2110 that with clause has already been analyzed before checking kind
2113 2015-01-06 Robert Dewar <dewar@adacore.com>
2115 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2116 (as required by RM).
2118 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2120 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2122 2015-01-06 Robert Dewar <dewar@adacore.com>
2124 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2125 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2127 2015-01-06 Javier Miranda <miranda@adacore.com>
2129 * exp_disp.adb (Expand_Interface_Conversion): No displacement
2130 of the pointer to the object needed when the type of the operand
2131 is not an interface type and the interface is one of its parent
2132 types (since they share the primary dispatch table).
2134 2015-01-06 Vincent Celier <celier@adacore.com>
2136 * prj-env.adb: Minor comment update.
2138 2015-01-06 Javier Miranda <miranda@adacore.com>
2140 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2141 access types whose target type is an interface type to operands
2142 that are access types; required to report an error when the
2143 operand is not an access type.
2145 2015-01-06 Bob Duff <duff@adacore.com>
2147 * a-cfinve.adb (Copy): Set the discriminant to the Length when
2149 * a-cofove.ads (Capacity): Add a postcondition.
2150 * a-cfinve.ads (Capacity): Add a postcondition.
2151 (Reserve_Capacity): Correct the postcondition in the case where
2152 Capacity = 0; that means "Capacity => Length (Container)".
2153 * a-cofove.adb (Elems[c]): Add a comment
2154 explaining the dangers and how to avoid them.
2156 2015-01-06 Ed Schonberg <schonberg@adacore.com>
2158 * sem_ch12.adb: Code clean up.
2160 2015-01-06 Arnaud Charlet <charlet@adacore.com>
2162 * gnatvsn.ads: Bump copyright year.
2164 2015-01-06 Robert Dewar <dewar@adacore.com>
2166 * s-taskin.ads, s-traces.ads: Minor reformatting.
2167 * exp_util.adb: Minor typo fix.
2169 2015-01-06 Vincent Celier <celier@adacore.com>
2171 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2172 with the runtime name.
2173 * prj-env.adb (Initialize_Default_Project_Path): When both
2174 Target_Name and Runtime_Name are not empty string, add to the
2175 project path the two directories .../lib/gnat and .../share/gpr
2176 related to the runtime.
2177 * prj-env.ads (Initialize_Default_Project_Path): New String
2178 parameter Runtime_Name, defaulted to the empty string.
2180 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2182 * frontend.adb: Guard against the case where a configuration
2183 pragma may be split into multiple pragmas and the original
2184 rewritten as a null statement.
2185 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2186 pragma using Insert_Before rather than Insert_Action. This
2187 takes care of the configuration pragma case where Insert_Action
2190 2015-01-06 Bob Duff <duff@adacore.com>
2192 * a-coboho.ads (Element_Access): Add "pragma
2193 No_Strict_Aliasing (Element_Access);". This is needed because
2194 we are unchecked-converting from Address to Element_Access.
2195 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
2198 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
2200 * sem_res.adb (Resolve_Actuals): Remove the
2201 restriction which prohibits volatile actual parameters with
2202 enabled external propery Async_Writers to act appear in procedure
2203 calls where the corresponding formal is of mode OUT.
2205 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2207 * gnat_ugn.texi: Bump @copying's copyright year.
2209 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2212 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
2214 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
2216 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
2217 of unchecked asprintf.
2220 Copyright (C) 2015 Free Software Foundation, Inc.
2222 Copying and distribution of this file, with or without modification,
2223 are permitted in any medium without royalty provided the copyright
2224 notice and this notice are preserved.