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