1 2018-01-11 Bob Duff <duff@adacore.com>
3 * doc/gnat_ugn/gnat_utility_programs.rst: Improve documentation of
6 2018-01-11 Bob Duff <duff@adacore.com>
8 * binde.adb (Force_Elab_Order): Give an error if there are duplicate
11 2018-01-11 Ed Schonberg <schonberg@adacore.com>
13 * sem_ch6.adb (Freeze_Expr_Types): If an access value is the
14 controlling argument of a dispatching call. freeze the corresponding
17 2018-01-11 Ben Brosgol <brosgol@adacore.com>
19 * doc/Makefile: Add Sphinx option -W to treat warnings as errors.
21 2018-01-11 Ben Brosgol <brosgol@adacore.com>
23 * doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
25 * gnat_rm.texi: Regenerate.
27 2018-01-11 Ed Schonberg <schonberg@adacore.com>
29 * sem_ch12.adb (Check_Fixed_Point_Type): Do not apply check if the
30 formsl type corresponding to the actual fixed point type is private,
31 because in this case there can be no suspicious arithmetic operations
32 in the generic unless they reference a formal subprogram. Clarify
35 2018-01-11 Javier Miranda <miranda@adacore.com>
37 * exp_util.adb (Remove_Side_Effects): No action done for functions
38 returning class-wide types since it requires generating code using
39 'reference and the CCG target has no secondary stack.
40 * gnat1drv.adb: Disable building static dispatch tables when generating
43 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
45 * libgnat/a-direio.ads, libgnat/a-sequio.ads, libgnat/a-ststio.ads,
46 libgnat/a-textio.ads, libgnat/a-witeio.ads, libgnat/a-ztexio.ads
47 (File_Type): Add Default_Initial_Condition aspect.
49 2018-01-11 Pascal Obry <obry@adacore.com>
51 * libgnat/s-os_lib.adb (Normalize_Pathname): New implementation.
53 2018-01-11 Bob Duff <duff@adacore.com>
55 * doc/gnat_ugn/gnat_utility_programs.rst: Rewrite gnatpp documentation
56 to match what the Libadalang-based version does.
57 * doc/gnat_ugn/about_this_guide.rst: Update reference.
59 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
61 * sem_res.adb (Uses_SS): A controlled type requires the secondary stack
62 if it contains at least one component declaration employing a function
63 call returning on the secondary stack.
65 2018-01-11 Yannick Moy <moy@adacore.com>
67 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
68 Update description of restriction SPARK_05 with SPARK 2014.
69 * gnat_rm.texi: Regenerate.
71 2018-01-11 Vasiliy Fofanov <fofanov@adacore.com>
73 * doc/gnat_ugn/gnat_utility_programs.rst: Fix layout.
75 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
77 * exp_aggr.adb, exp_ch9.adb, exp_util.adb, sem_aggr.adb, sem_ch3.adb,
78 sem_res.adb, sem_util.adb: Minor reformatting.
80 2018-01-11 Ed Schonberg <schonberg@adacore.com>
82 * sem_prag.adb (Analyze_Pragma, case Predicate): Indicate that the type
83 has a delayed aspect which must be processed at the point the type is
84 frozen. This mimics what is done when the predicate is provided by a
87 2018-01-11 Doug Rupp <rupp@adacore.com>
89 * init.c (vxworks): Add macro checks for __aarch64__.
91 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
93 * exp_util.adb (Add_Failure_Expression): New routine.
94 (Make_Predicate_Check): Reimplement the handling of Predicate_Failure.
95 * sem_util.adb (Is_Current_Instance): Code cleanup.
97 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
99 * libgnat/s-parame*.adb, libgnat/s-parame*.ads: Remove unneeded
100 Default_Sec_Stack_Size.
101 * libgnat/s-secsta.adb (SS_Allocate): Handle the fixed secondary stack
102 limit check so that the integer index does not overflow. Check the
103 dynamic stack allocation does not cause the secondary stack pointer to
105 (SS_Info): Align colons.
106 (SS_Init): Cover the case when bootstraping with an old compiler that
107 does not set Default_SS_Size.
109 2018-01-11 Ed Schonberg <schonberg@adacore.com>
111 * sem_ch3.adb (Add_Internal_Interface_Entities): When checking the
112 legality of an inherited operation that may require overriding, ignore
113 primitive_wrappers that correspond to explicit operations that override
114 an interface primitive.
115 * exp_util.adb (Build_Class_Wide_Expression, Replace_Entity): If the
116 operation to which the class-wide expression applies is a protected op.
117 with a primitive_wrapper, verify that the updated inherited expression
118 does not contain an internal call to a protected function. This
119 completes the implementation of AI12-0166.
121 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
123 * ali.adb: Document the remaining letters available for ALI lines.
124 (Scan_ALI): A with clause is internal when it is encoded on a 'Z' line.
125 * ali.ads: Update type With_Record. Field
126 Implicit_With_From_Instantiation is no longer in use. Add field
128 * csinfo.adb (CSinfo): Remove the setup for attribute
129 Implicit_With_From_Instantiation.
130 * lib-writ.adb (Collect_Withs): Correct the logic which marks a unit as
131 either implicitly or explicitly withed.
132 (Is_Implicit_With_Clause): New routine.
133 (Write_ALI): Rename array Implicit_With to Has_Implicit_With to avoid
134 confusion with the with clause attribute by the same name.
135 (Write_With_Lines): Update the emission of 'W', 'Y', and 'Z' headers.
136 * rtsfind.adb (Maybe_Add_With): Code cleanup.
137 * sem_ch8.adb (Present_System_Aux): Code cleanup.
138 * sem_ch10.adb (Expand_With_Clause): Mark the with clause as generated
140 (Implicit_With_On_Parent): Mark the with clause as generated for a
142 * sem_ch12.adb (Inherit_Context): With clauses inherited by an
143 instantiation are no longer marked as Implicit_With_From_Instantiation
144 because they are already marked as implicit.
145 * sem_elab.adb (Ensure_Prior_Elaboration_Static): Remove the kludge
146 which marks implicit with clauses as related to an instantiation.
147 * sinfo.adb (Implicit_With_From_Instantiation): Removed.
148 (Parent_With): New routine.
149 (Set_Implicit_With_From_Instantiation): Removed.
150 (Set_Parent_With): New routine.
151 * sinfo.ads: Update the documentation of attribute Implicit_With.
152 Remove attribute Implicit_With_From_Instantiation along with
153 occurrences in nodes. Add attribute Parent_With along with occurrences
155 (Implicit_With_From_Instantiation): Removed along with pragma Inline.
156 (Parent_With): New routine along with pragma Inline.
157 (Set_Implicit_With_From_Instantiation): Removed along with pragma Inline.
158 (Set_Parent_With): New routine along with pragma Inline.
160 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
162 * sem_util.adb (Find_Enclosing_Scope): Return the unique defining
163 entity when the enclosing construct is a body.
165 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
167 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Simplified
168 Secondary_Stack_Size handling as a pragma is now generated for the
169 corresponding aspect instead of an attribute. Pragma expression is
170 relocated instead of evaluated. Discriminant of the corresponding
171 record type is referenced rather than the type discriminant.
172 (Create_Secondary_Stack_For_Task, Make_Task_Create_Call): Update
173 Secondary_Stack_Size rep item checks to only look for the pragma rep.
174 * sem_ch13.adb (Analyze_One_Aspect): Transform
175 Aspect_Secondary_Stack_Size into a pragma instead of an attribute
176 because the attribute does not have visibility on a task type's
177 discriminants when the type's definition is expanded.
178 (Analyze_Attribute_Definition_Clause): Remove handling of
179 Attribute_Secondary_Stack_Size.
180 * snames.adb-tmpl, snames.ads-tmpl: Remove
181 Attribute_Secondary_Stack_Size, no longer used.
183 2018-01-11 Justin Squirek <squirek@adacore.com>
185 * sem_ch8.adb: Minor comment fix.
187 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
189 * exp_ch4.adb (Process_Action): Do not abandon the inspection of an
190 individual action because the action may denote a complex expression,
191 such as a case statement, which in turn may contain additional
194 2018-01-11 Ed Schonberg <schonberg@adacore.com>
196 * sem_aggr.adb (Resolve_Iterated_Component_Association): Perform
197 analysis on a copy of the expression with a copy of the index variable,
198 because full expansion will rewrite construct into a loop with the
199 original loop variable.
200 * exp_aggr.adb (Gen_Assign): Defer analysis and resolution if the
201 expression is an iterated component association. Full analysis takes
202 place when construct is rewritten as a loop.
203 (In_Place_Assign_OK, Safe_Component): An iterated_component_association
204 is not safe for in-place assignment.
205 * sem_util.adb (Remove_Entity): Handle properly the case of an isolated
206 entity with no homonym and no other entity in the scope.
208 2018-01-11 Justin Squirek <squirek@adacore.com>
210 * sem_prag.adb (Analyze_Pragma:Pragma_Loop_Variant): Modify error
211 message to be printed on the pragma argument identifier.
213 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
215 * exp_util.adb (Build_Invariant_Procedure_Declaration): Set the last
216 entity of the generated invariant procedure in order to construct a
219 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
221 * sem_ch13.adb (Build_Predicate_Functions): Fix minor issues in
224 2018-01-11 Arnaud Charlet <charlet@adacore.com>
226 * einfo.ads, einfo.adb (Activation_Record_Component,
227 Set_Activation_Record_Component, Set_Is_Uplevel_Referenced_Entity):
228 Allow E_Discriminant.
230 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
232 * gcc-interface/decl.c (gnat_to_gnu_component_type): Apply the check
233 for atomic access once the component size is taken into account and
234 also do it if the component type is Atomic or Volatile_Full_Access.
236 2018-01-04 Eric Botcazou <ebotcazou@adacore.com>
238 * gnatvsn.ads: Bump copyright year.
240 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
241 Alan Hayward <alan.hayward@arm.com>
242 David Sherwood <david.sherwood@arm.com>
244 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_BITSIZE
247 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
248 Alan Hayward <alan.hayward@arm.com>
249 David Sherwood <david.sherwood@arm.com>
251 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_PRECISION
254 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
255 Alan Hayward <alan.hayward@arm.com>
256 David Sherwood <david.sherwood@arm.com>
258 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
259 polynomial TYPE_VECTOR_SUBPARTS.
261 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
262 Alan Hayward <alan.hayward@arm.com>
263 David Sherwood <david.sherwood@arm.com>
265 * gcc-interface/misc.c (enumerate_modes): Handle polynomial
268 2018-01-03 Jakub Jelinek <jakub@redhat.com>
270 Update copyright years.
272 * gnat_ugn.texi: Bump @copying's copyright year.
273 * gnat_rm.texi: Likewise.
275 Copyright (C) 2018 Free Software Foundation, Inc.
277 Copying and distribution of this file, with or without modification,
278 are permitted in any medium without royalty provided the copyright
279 notice and this notice are preserved.