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