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