[Ada] Improve documentation of xml2gnat
[gcc.git] / gcc / ada / ChangeLog
1 2018-01-11 Bob Duff <duff@adacore.com>
2
3 * doc/gnat_ugn/gnat_utility_programs.rst: Improve documentation of
4 xml2gnat.
5
6 2018-01-11 Bob Duff <duff@adacore.com>
7
8 * binde.adb (Force_Elab_Order): Give an error if there are duplicate
9 unit names.
10
11 2018-01-11 Ed Schonberg <schonberg@adacore.com>
12
13 * sem_ch6.adb (Freeze_Expr_Types): If an access value is the
14 controlling argument of a dispatching call. freeze the corresponding
15 designated type.
16
17 2018-01-11 Ben Brosgol <brosgol@adacore.com>
18
19 * doc/Makefile: Add Sphinx option -W to treat warnings as errors.
20
21 2018-01-11 Ben Brosgol <brosgol@adacore.com>
22
23 * doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
24 corrections.
25 * gnat_rm.texi: Regenerate.
26
27 2018-01-11 Ed Schonberg <schonberg@adacore.com>
28
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
33 warning.
34
35 2018-01-11 Javier Miranda <miranda@adacore.com>
36
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
41 C code.
42
43 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
44
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.
48
49 2018-01-11 Pascal Obry <obry@adacore.com>
50
51 * libgnat/s-os_lib.adb (Normalize_Pathname): New implementation.
52
53 2018-01-11 Bob Duff <duff@adacore.com>
54
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.
58
59 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
60
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.
64
65 2018-01-11 Yannick Moy <moy@adacore.com>
66
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.
70
71 2018-01-11 Vasiliy Fofanov <fofanov@adacore.com>
72
73 * doc/gnat_ugn/gnat_utility_programs.rst: Fix layout.
74
75 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
76
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.
79
80 2018-01-11 Ed Schonberg <schonberg@adacore.com>
81
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
85 source aspect.
86
87 2018-01-11 Doug Rupp <rupp@adacore.com>
88
89 * init.c (vxworks): Add macro checks for __aarch64__.
90
91 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
92
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.
96
97 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
98
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
104 overflow.
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.
108
109 2018-01-11 Ed Schonberg <schonberg@adacore.com>
110
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.
120
121 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
122
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
127 Implicit_With.
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
139 for a parent unit.
140 (Implicit_With_On_Parent): Mark the with clause as generated for a
141 parent unit.
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
154 in nodes.
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.
159
160 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
161
162 * sem_util.adb (Find_Enclosing_Scope): Return the unique defining
163 entity when the enclosing construct is a body.
164
165 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
166
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.
182
183 2018-01-11 Justin Squirek <squirek@adacore.com>
184
185 * sem_ch8.adb: Minor comment fix.
186
187 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
188
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
192 transient objects.
193
194 2018-01-11 Ed Schonberg <schonberg@adacore.com>
195
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.
207
208 2018-01-11 Justin Squirek <squirek@adacore.com>
209
210 * sem_prag.adb (Analyze_Pragma:Pragma_Loop_Variant): Modify error
211 message to be printed on the pragma argument identifier.
212
213 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
214
215 * exp_util.adb (Build_Invariant_Procedure_Declaration): Set the last
216 entity of the generated invariant procedure in order to construct a
217 proper entity chain.
218
219 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
220
221 * sem_ch13.adb (Build_Predicate_Functions): Fix minor issues in
222 comment.
223
224 2018-01-11 Arnaud Charlet <charlet@adacore.com>
225
226 * einfo.ads, einfo.adb (Activation_Record_Component,
227 Set_Activation_Record_Component, Set_Is_Uplevel_Referenced_Entity):
228 Allow E_Discriminant.
229
230 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
231
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.
235
236 2018-01-04 Eric Botcazou <ebotcazou@adacore.com>
237
238 * gnatvsn.ads: Bump copyright year.
239
240 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
241 Alan Hayward <alan.hayward@arm.com>
242 David Sherwood <david.sherwood@arm.com>
243
244 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_BITSIZE
245 as polynomial.
246
247 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
248 Alan Hayward <alan.hayward@arm.com>
249 David Sherwood <david.sherwood@arm.com>
250
251 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_PRECISION
252 as polynomial.
253
254 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
255 Alan Hayward <alan.hayward@arm.com>
256 David Sherwood <david.sherwood@arm.com>
257
258 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
259 polynomial TYPE_VECTOR_SUBPARTS.
260
261 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
262 Alan Hayward <alan.hayward@arm.com>
263 David Sherwood <david.sherwood@arm.com>
264
265 * gcc-interface/misc.c (enumerate_modes): Handle polynomial
266 GET_MODE_NUNITS.
267
268 2018-01-03 Jakub Jelinek <jakub@redhat.com>
269
270 Update copyright years.
271
272 * gnat_ugn.texi: Bump @copying's copyright year.
273 * gnat_rm.texi: Likewise.
274 \f
275 Copyright (C) 2018 Free Software Foundation, Inc.
276
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.