]>
Commit | Line | Data |
---|---|---|
983a3d80 RD |
1 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
2 | ||
3 | * sem_res.adb: Minor code reorganization and comment fixes. | |
4 | * sem_type.adb: Minor reformatting. | |
5 | ||
1486a00e AC |
6 | 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com> |
7 | ||
8 | * exp_ch4.adb (Process_Transient_Object): Add new | |
9 | local variable Fin_Call. Remove and explain ??? comment. Use the | |
10 | Actions of logical operators "and then" and "or else" to insert | |
11 | the generated finalization call. | |
12 | ||
13 | 2013-04-11 Eric Botcazou <ebotcazou@adacore.com> | |
14 | ||
15 | * gnat_rm.texi: Fix typo. | |
16 | ||
17 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
18 | ||
19 | * sem_res.adb: Minor reformatting. | |
20 | ||
fc142f63 AC |
21 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
22 | ||
23 | * atree.h: Add declarations for Flag255-Flag289 Fix declaration | |
24 | of Field30 (was wrong, but no effect, since not yet referenced by | |
25 | back end) Add declarations for Field31-Field35 Add declarations | |
26 | for Node31-Node35. | |
27 | * einfo.ads, einfo.adb (Has_Invariants): No longer applies to | |
28 | procedures. | |
29 | (Has_Predicates): No longer applies to functions. | |
30 | (Is_Predicate_Function): New flag. | |
31 | (Is_Predicate_Function_M): New flag. | |
32 | (Is_Invariant_Procedure): New flag. | |
33 | (Predicate_Function_M): New function. | |
34 | (Set_Predicate_Function_M): New procedure. | |
35 | * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special | |
36 | case of appearing in predicate used for membership test. | |
37 | * exp_ch3.adb (Insert_Component_Invariant_Checks): Set | |
38 | Is_Invariant_Procedure flag. | |
39 | * exp_ch4.adb (Expand_Op_In): Call special predicate function | |
40 | that takes care of raise_expression nodes in the predicate. | |
41 | * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for | |
42 | membership case. | |
43 | * sem_ch13.adb (Build_Predicate_Functions): New name for | |
44 | Build_Predicate_Function. Major rewrite to take care of raise | |
45 | expression in predicate for membership tests. | |
46 | * sem_res.adb (Resolve_Actuals): Include both predicate functions | |
47 | in defense against infinite predicate function loops. | |
48 | * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag. | |
49 | ||
50 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
51 | ||
52 | * sem_prag.adb: Minor reformatting. | |
53 | ||
54 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
55 | ||
56 | * lib-xref.adb: Generate reference for component of anonymous | |
57 | access type. | |
58 | ||
2602b64e AC |
59 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
60 | ||
61 | * stand.ads: Minor reformatting. | |
62 | ||
63 | 2013-04-11 Matthew Heaney <heaney@adacore.com> | |
64 | ||
65 | * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock | |
66 | counts before entering loop. | |
67 | (Find, Find_Index): Ditto. | |
68 | (Is_Sorted, Merge, Sort): Ditto. | |
69 | (Reverse_Find, Reverse_Find_Index): Ditto. | |
70 | ||
c8d63650 RD |
71 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
72 | ||
73 | * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure. | |
74 | * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression. | |
75 | * expander.adb: Add call to Expand_N_Raise_Expression. | |
76 | * par-ch11.adb (P_Raise_Expression): New procedure. | |
77 | * par-ch4.adb (P_Relation): Handle Raise_Expression. | |
78 | * par.adb (P_Raise_Expression): New procedure. | |
79 | * sem.adb: Add handling for N_Raise_Expression. | |
80 | * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure. | |
81 | * sem_res.adb (Resolve): Add handling for N_Raise_Expression. | |
82 | * sinfo.ads, sinfo.adb (N_Raise_Expression): New node. | |
83 | * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression. | |
84 | * stand.ads (Any_Type): Document use with N_Raise_Expression. | |
85 | ||
845f06e2 AC |
86 | 2013-04-11 Vincent Celier <celier@adacore.com> |
87 | ||
88 | * gnat_ugn.texi: Remove section "The Development Environments" | |
89 | now that all predefined attributes are documented, including | |
90 | those in package IDE. | |
91 | ||
92 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
93 | ||
94 | * sem_ch6.adb: Preserve parent link in copy of expression. | |
95 | ||
761f7dcb AC |
96 | 2013-04-11 Vincent Celier <celier@adacore.com> |
97 | ||
98 | * projects.texi: Complete rewrite of the subsection Attributes | |
99 | in section "Project file Reference". | |
100 | ||
101 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
102 | ||
103 | * exp_ch4.adb: Minor reformatting. | |
104 | ||
68bab0fd RD |
105 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
106 | ||
107 | * exp_ch4.adb (Expand_Concatenate): Remove wrapping in | |
108 | expression-with-actions node. No longer needed given fix to | |
109 | sem_prag and caused loss of some useful warnings. | |
110 | * sem.ads: Minor reformatting. | |
111 | * sem_prag.adb (Check_Disabled): Removed, to be replaced by not | |
112 | Check_Enabled. These two routines were curiously incompatible | |
113 | causing confusion. | |
114 | (Analyze_Pragma, case Check): Make sure we do | |
115 | not expand the string argument if the check is disabled. Avoid | |
116 | use of Check_Disabled, which resulted in missing analysis in | |
117 | some cases. | |
118 | * sem_prag.ads (Check_Disabled): Removed, to be replaced by not | |
119 | Check_Enabled. These two routines were curiously incompatible | |
120 | causing confusion. | |
121 | ||
294f5d82 AC |
122 | 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com> |
123 | ||
124 | * exp_ch4.adb (Process_Transient_Object): Use | |
125 | an unchecked conversion when associating a transient controlled | |
126 | object with its "hook". | |
127 | ||
128 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
129 | ||
130 | * sem_prag.adb (Analyze_Pragma, case | |
131 | Preelaborable_Initialization): The pragma is legal if it comes | |
132 | from an aspect on the private view of the type, even though its | |
133 | analysis point takes place later at the freeze point. | |
134 | ||
533369aa AC |
135 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
136 | ||
137 | * sem_ch6.adb: Minor reformatting. | |
138 | ||
139 | 2013-04-11 Yannick Moy <moy@adacore.com> | |
140 | ||
141 | * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to | |
142 | read ALI files with No_Object=True in Alfa mode. | |
143 | * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether | |
144 | this is during frame condition generation of translation to Why. | |
145 | ||
146 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
147 | ||
148 | * exp_ch4.adb: Minor code reorganization | |
149 | * types.ads: Minor reformatting. | |
150 | ||
3a8e3f63 AC |
151 | 2013-04-11 Johannes Kanig <kanig@adacore.com> |
152 | ||
153 | * opt.ads New global boolean Frame_Condition_Mode to avoid | |
154 | referring to command line switch. | |
155 | * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G | |
156 | is present, and disable Code generation in that case. Disable | |
157 | ALI file generation when switch is *not* present. | |
158 | ||
159 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
160 | ||
161 | * sem_ch6.adb (Analyze_Expression_Function): Perform the | |
162 | pre-analysis on a copy of the expression, to prevent downstream | |
163 | visbility issues involving operators and instantiations. | |
164 | ||
0213fb4e JK |
165 | 2013-04-11 Johannes Kanig <kanig@adacore.com> |
166 | ||
167 | * debug.adb: Reservation and documentation for -gnatd.G switch. | |
168 | * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G | |
169 | switch, and set ALI file generation accordingly. | |
170 | ||
0088ba92 RD |
171 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
172 | ||
173 | * exp_ch4.adb, exp_dist.adb: Minor reformatting. | |
174 | * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that | |
175 | check names introduced with pragma Check_Name are suppressed by -gnatp. | |
176 | ||
b671e31b VC |
177 | 2013-04-11 Vincent Celier <celier@adacore.com> |
178 | ||
179 | * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project | |
180 | Files" from projects.texi to gnat_ugn.texi. | |
181 | ||
ddd38fc1 AC |
182 | 2013-04-11 Arnaud Charlet <charlet@adacore.com> |
183 | ||
184 | * gcc-interface/Make-lang.in: Update dependencies. | |
185 | ||
8b1011c0 AC |
186 | 2013-04-11 Yannick Moy <moy@adacore.com> |
187 | ||
188 | * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa | |
189 | mode. | |
190 | ||
191 | 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com> | |
192 | ||
193 | * exp_ch4.adb (Expand_N_Allocator): Detect the | |
194 | allocation of an anonymous controlled object where the type of | |
195 | the context is named. Use the pool and finalization master of | |
196 | the named access type to allocate the object. | |
197 | ||
198 | 2013-04-11 Vincent Celier <celier@adacore.com> | |
199 | ||
200 | * gnat_ugn.texi: Remove most mentions of gprbuild. | |
201 | * projects.texi: Remove all mentions of asociative array | |
202 | attributes. | |
203 | ||
5b75bf57 AC |
204 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
205 | ||
206 | * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb, | |
207 | opt.ads, sem_ch13.adb: Minor reformatting. | |
208 | * debug.adb: Minor comment fix (remove junk .I doc). | |
209 | ||
210 | 2013-04-11 Thomas Quinot <quinot@adacore.com> | |
211 | ||
212 | * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case | |
213 | PolyORB): Bump to 6. | |
214 | (Exp_Dist.PolyORB_Support): Replace TC_Build with | |
215 | Build_Complex_TC. | |
216 | ||
303fbb20 AC |
217 | 2013-04-11 Arnaud Charlet <charlet@adacore.com> |
218 | ||
219 | * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb, | |
220 | exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag. | |
221 | Enable this flag in CodePeer mode, and also via -gnatd.M. | |
222 | Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics. | |
223 | ||
224 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
225 | ||
226 | * sem_ch8.adb (Check_Constrained_Object): If a subtype is created | |
227 | from the renamed object in an object renaming declaration with | |
228 | an unconstrained nominal subtype, freeze the created subtype at | |
229 | once, to prevent order of elaboration issues in the backend. | |
230 | ||
231 | 2013-04-11 Arnaud Charlet <charlet@adacore.com> | |
232 | ||
233 | * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size | |
234 | in particular in CodePeer mode. | |
235 | ||
236 | 2013-04-11 Vincent Celier <celier@adacore.com> | |
237 | ||
238 | * gnat_ugn.texi: Add documentation for backup copies of project | |
239 | files for gnatname. | |
240 | ||
165bdb4b AC |
241 | 2013-04-11 Tristan Gingold <gingold@adacore.com> |
242 | ||
243 | * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile | |
244 | pragma list. | |
245 | ||
246 | 2013-04-11 Vincent Celier <celier@adacore.com> | |
247 | ||
248 | * gnatname.adb (Scan_Args): Recognize new switch --no-backup | |
249 | (Usage): Add line for --no-backup. | |
303fbb20 AC |
250 | * opt.ads (No_Backup): New Boolean variable, initialized to False. |
251 | (Ada_Version_Default): Switch to Ada 2012 by default. | |
165bdb4b AC |
252 | * prj-makr.adb (Initialize): Create a backup for an existing |
253 | project file if gnatname is not invoked with --no-backup. | |
254 | ||
81f6cd56 AC |
255 | 2013-04-11 Thomas Quinot <quinot@adacore.com> |
256 | ||
257 | * exp_ch4.adb: Minor code improvement: replace various calls to | |
258 | Make_If_Statement in expansion with Make_Implicit_If_Statement. | |
259 | ||
260 | 2013-04-11 Eric Botcazou <ebotcazou@adacore.com> | |
261 | ||
262 | * ali.adb: Fix minor typo. | |
263 | ||
28270211 AC |
264 | 2013-04-11 Thomas Quinot <quinot@adacore.com> |
265 | ||
266 | * exp_ch4.adb (Find_Enclosing_Context): Add missing case of | |
267 | N_Procedure_Call_Statement. | |
268 | ||
269 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
270 | ||
271 | * debug.adb: Minor comment fix. | |
272 | ||
6b670dcf AC |
273 | 2013-04-11 Johannes Kanig <kanig@adacore.com> |
274 | ||
275 | * debug.adb: Remove comment for -gnatd.G. | |
276 | ||
277 | 2013-04-11 Thomas Quinot <quinot@adacore.com> | |
278 | ||
279 | * exp_ch4.adb (Expand_Record_Equality.Suitable_Element): | |
280 | Remove recursive routine, replace with... | |
281 | (Expand_Record_Equality.Element_To_Compare): New subroutine, | |
282 | implement iterative search for next element to compare. | |
283 | Add explanatory comment in the tagged case. | |
284 | ||
ac7d724d ES |
285 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> |
286 | ||
287 | * sem_ch5.adb: remove spurious warning from non-empty loop. | |
288 | * sem_ch8.adb (Enclosing_Instance): Make public to other routines | |
289 | in the package, in order to suppress redundant semantic checks | |
290 | on subprogram renamings in nested instantiations. | |
291 | ||
8fde064e AC |
292 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
293 | ||
294 | * errout.ads: Minor reformatting. | |
295 | * sem_eval.adb (Why_Not_Static): Now issues continuation messages | |
296 | (Why_Not_Static): Test for aggregates behind string literals. | |
297 | * sem_eval.ads (Why_Not_Static): Now issues continuation messages. | |
298 | ||
299 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
300 | ||
301 | * exp_ch4.adb (Expand_Concatenation): Wrap expansion in | |
302 | Expressions_With_Actions. | |
303 | ||
304 | 2013-04-11 Ed Schonberg <schonberg@adacore.com> | |
305 | ||
306 | * sem_ch6.adb (Base_Types_Match): For an actual type in an | |
307 | instance, the base type may itself be a subtype, so find true | |
308 | base type to determine compatibility. | |
309 | ||
354c3840 AC |
310 | 2013-04-11 Robert Dewar <dewar@adacore.com> |
311 | ||
312 | * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb. | |
313 | makeutl.adb, sem_ch8.adb: Minor reformatting. | |
314 | ||
315 | 2013-04-11 Vincent Celier <celier@adacore.com> | |
316 | ||
317 | * gnat_ugn.texi: Minor fixes for VMS. | |
318 | * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?. | |
319 | ||
320 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
321 | ||
322 | * usage.adb (Usage): Minor edit to -gnatW message | |
323 | ||
324 | 2013-04-11 Robert Dewar <dewar@adacore.com> | |
325 | ||
326 | * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling | |
327 | others for string literal case. Also add big ??? comment about | |
328 | this new code, which should be redundant, but is not. | |
329 | * sem_eval.adb (Eval_Concatenation): Handle non-static case | |
330 | properly (Eval_String_Literal): Handle non-static literal properly | |
331 | ||
c62a1b1e TB |
332 | 2013-03-20 Tobias Burnus <burnus@net-b.de> |
333 | ||
334 | * i-fortra.ads: Update comment, add Ada 2012's optional | |
335 | Star and Kind data types for enhanced interoperability. | |
336 | ||
179c5970 EB |
337 | 2013-03-16 Eric Botcazou <ebotcazou@adacore.com> |
338 | ||
339 | * gnatvsn.ads (Library_Version): Bump to 4.9. | |
340 | ||
0a7fa29f CS |
341 | 2013-03-08 Cesar Strauss <cestrauss@gmail.com> |
342 | ||
343 | PR ada/52123 | |
344 | * seh_init.c (Raise_From_Signal_Handler): Declare as no-return. | |
345 | (__gnat_SEH_error_handler): Likewise. Remove final return. | |
346 | ||
010dffa9 EB |
347 | 2013-03-06 Eric Botcazou <ebotcazou@adacore.com> |
348 | ||
349 | * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring | |
350 | out for an unimplemented attribute. | |
351 | ||
afb0fadf EB |
352 | 2013-03-06 Eric Botcazou <ebotcazou@adacore.com> |
353 | ||
354 | * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around | |
355 | a misaligned integral type if a size is specified for the field. | |
356 | ||
357 | 2013-03-06 Eric Botcazou <ebotcazou@adacore.com> | |
6f71e355 EB |
358 | |
359 | * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>: | |
360 | Record the unpadded type of the index type on the RCI stack. | |
361 | ||
b6ea6dbd EB |
362 | 2013-03-06 Eric Botcazou <ebotcazou@adacore.com> |
363 | ||
364 | * gcc-interface/trans.c (emit_range_check): Assert that the range type | |
365 | is a numerical type and remove useless local variables. | |
366 | ||
e0156976 EB |
367 | 2013-02-25 Eric Botcazou <ebotcazou@adacore.com> |
368 | ||
369 | * gcc-interface/ada-tree.h: Back out change accidentally committed. | |
370 | ||
a0ad148f JJ |
371 | 2013-02-21 Jakub Jelinek <jakub@redhat.com> |
372 | ||
373 | PR bootstrap/56258 | |
374 | * gnat-style.texi (@title): Remove @hfill. | |
b6ea6dbd | 375 | * projects.texi: Avoid line wrapping inside of @pxref or @xref. |
a0ad148f | 376 | |
7d00dca9 RE |
377 | 2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de> |
378 | ||
379 | PR target/52123 | |
380 | * tracebak.c: Cast from pointer via FARPROC. | |
381 | ||
12eabbda SW |
382 | 2013-02-07 Simon Wright <simon@pushface.org> |
383 | ||
384 | PR target/50678 | |
385 | * init.c (__darwin_major_version): New function for x86-64/Darwin. | |
386 | (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround | |
387 | on Darwin 12 and above. | |
388 | ||
ba1a9233 RE |
389 | 2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de> |
390 | ||
391 | PR target/52123 | |
392 | * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via | |
393 | SECURITY_DESCRIPTOR * | |
394 | (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE | |
395 | (__gnat_portable_spawn): Fix cast to char* const* | |
396 | (add_handle): Cast from pointer via void ** | |
397 | (add_handle): Cast from pointer via int * | |
398 | (__gnat_locate_exec_on_path): Cast from pointer via TCHAR * | |
399 | (__gnat_locate_exec_on_path): Cast from pointer via char * | |
400 | * initialize.c (append_arg): Cast from pointer via LPWSTR | |
401 | (__gnat_initialize): Cast from pointer via LPWSTR | |
402 | * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC | |
403 | ||
9bc44bff HK |
404 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> |
405 | ||
406 | * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations | |
407 | target pairs on VxWorks 5 only. | |
408 | ||
42ae3870 AC |
409 | 2013-02-06 Arnaud Charlet <charlet@adacore.com> |
410 | ||
411 | * gcc-interface/Make-lang.in: Update dependencies. | |
412 | ||
413 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
414 | ||
415 | * prj-proc.adb (Process_Aggregated_Projects): Use a new project | |
416 | node tree for each project tree rooted at an aggregated project. | |
417 | ||
418 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> | |
419 | ||
420 | * sem_util.adb (Is_Interface_Conversion): New routine. | |
421 | (Object_Access_Level): Detect an interface conversion | |
422 | that has been rewritten into a different construct. Use the | |
423 | original form of the conversion to find the access level of | |
424 | the operand. | |
425 | ||
426 | 2013-02-06 Eric Botcazou <ebotcazou@adacore.com> | |
427 | ||
428 | * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201. | |
429 | (Has_Pragma_No_Inline): Declare and mark as inline. | |
430 | (Set_Has_Pragma_No_Inline): Likewise. | |
431 | * einfo.adb (Has_Pragma_No_Inline): New function. | |
432 | (Set_Has_Pragma_No_Inline): New procedure. | |
433 | (Write_Entity_Flags): Handle Has_Pragma_No_Inline. | |
434 | * snames.ads-tmpl (Name_No_Inline): New pragma-related name. | |
435 | (Pragma_Id): Add Pragma_No_Inline value. | |
436 | * par-prag.adb (Prag): Handle Pragma_Inline. | |
437 | * sem_prag.adb (Inline_Status): New enumeration type. | |
438 | (Process_Inline): Change Active parameter | |
439 | to Inline_Status and add support for suppressed inlining. | |
440 | (Analyze_Pragma) <Pragma_Inline>: Adjust to above change. | |
441 | <Pragma_Inline_Always>: Likewise. | |
442 | <Pragma_No_Inline>: Implement new pragma No_Inline. | |
443 | (Sig_Flags): Add Pragma_No_Inline. | |
444 | * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline. | |
445 | * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline. | |
446 | ||
447 | 2013-02-06 Pascal Obry <obry@adacore.com> | |
448 | ||
449 | * s-osprim-mingw.adb (Clock): Make sure we copy all data locally | |
450 | to avoid interleaved modifications that could happen from another | |
451 | task calling Get_Base_Data. | |
452 | (Get_Base_Data): Make it a critical section. Avoid updating if another | |
453 | task has already done it. | |
454 | ||
f403355a AC |
455 | 2013-02-06 Eric Botcazou <ebotcazou@adacore.com> |
456 | ||
457 | * sem_prag.adb: Minor reformatting. | |
458 | ||
459 | 2013-02-06 Pascal Obry <obry@adacore.com> | |
460 | ||
461 | * s-tasloc.ads: Set System.Task_Lock to preelaborate. | |
462 | ||
a75ea295 EB |
463 | 2013-02-06 Eric Botcazou <ebotcazou@adacore.com> |
464 | ||
465 | * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll, | |
466 | Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related | |
467 | names. | |
468 | (Pragma_Id): Add Pragma_Loop_Optimize value. | |
469 | * par-prag.adb (Prag): Handle Pragma_Loop_Optimize. | |
470 | * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to... | |
471 | (Check_Loop_Pragma_Placement): ...this. | |
472 | (Analyze_Pragma) | |
473 | <Pragma_Loop_Invariant>: Adjust to above renaming. | |
474 | <Loop_Variant>: Likewise. | |
475 | <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize. | |
476 | (Sig_Flags): Add Pragma_Loop_Optimize. | |
477 | * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize. | |
478 | * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize. | |
479 | ||
9b7424a7 AC |
480 | 2013-02-06 Robert Dewar <dewar@adacore.com> |
481 | ||
482 | * osint.ads: Minor fix of typo. | |
483 | ||
484 | 2013-02-06 Sergey Rybin <rybin@adacore.com frybin> | |
485 | ||
486 | * gnat_ugn.texi: gnatmetric: update the documentation of | |
487 | complexity metrics for Ada 2012. | |
488 | ||
489 | 2013-02-06 Javier Miranda <miranda@adacore.com> | |
490 | ||
491 | * exp_disp.adb (Make_Secondary_DT): Code cleanup: | |
492 | remove useless initialization. | |
493 | ||
494 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
495 | ||
496 | * sem_ch3.adb (Build_Discriminant_Constraints): Do not | |
497 | generate overflow checks on a discriminant expression if the | |
498 | discriminant constraint is applied to a private type that has | |
499 | a full view, because the check will be applied when the full | |
500 | view is elaborated. Removing the redundant check is not just | |
501 | an optimization, but it prevents spurious assembler errors, | |
502 | because of the way the backend generates names for expressions | |
503 | that require overflow checking. | |
504 | ||
505 | 2013-02-06 Pascal Obry <obry@adacore.com> | |
506 | ||
507 | * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker | |
508 | limitation on Windows. | |
509 | (DA): Removed. | |
510 | (LIA): Removed. | |
511 | (LLIA): Removed. | |
512 | (TFA): Removed. | |
513 | (BTA): Removed. | |
514 | (BMTA): Removed. | |
515 | (BCA): Removed. | |
516 | (BMCA): Removed. | |
517 | (BTiA): Removed. | |
518 | (Clock): Use variable corresponding to access. | |
519 | (Get_Base_Time): Likewise. | |
520 | (Monotonic_Clock): Likewise. | |
521 | ||
522 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
523 | ||
524 | * make.adb (Gnatmake): When gnatmake is called with a project | |
525 | file, do not invoke gnatbind with -I-. | |
526 | * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get | |
527 | the infos from all the sources. | |
528 | ||
529 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
530 | ||
531 | * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma | |
532 | Overriding_Renamings. | |
533 | * par-prag.adb: Recognize pragma Overriding_Renamings. | |
534 | * opt.ads (Overriding_Renamings): flag to control compatibility | |
535 | mode with Rational compiler, replaces Rational_Profile flag. | |
536 | * sem_ch8.adb (Analyze_Subprogram_Renaming): When | |
537 | Overriding_Renamings is enabled, accept renaming declarations | |
538 | where the new subprogram renames and overrides a locally inherited | |
539 | operation. Improve error message for some illegal renamings. | |
540 | * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings. | |
541 | (Set_Rational_Profile): The Rational_Profile enables | |
542 | Overriding_Renamings, Implicit_Packing, and Use_Vads_Size. | |
543 | ||
544 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
545 | ||
546 | * sem_util.adb: Set parent of copied aggregate component, to | |
547 | prevent infinite loop. | |
548 | ||
d7761b2d AC |
549 | 2013-02-06 Robert Dewar <dewar@adacore.com> |
550 | ||
551 | * sem_ch3.adb, sem_ch10.adb: Minor reformatting. | |
552 | * exp_disp.adb: Minor comment update. | |
553 | * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of | |
554 | No_Return pragmas. | |
555 | ||
556 | 2013-02-06 Thomas Quinot <quinot@adacore.com> | |
557 | ||
558 | * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target | |
559 | parameter, defaulted to False for now, indicates targets where | |
560 | non-default scalar storage order may be specified. | |
561 | ||
562 | 2013-02-06 Thomas Quinot <quinot@adacore.com> | |
563 | ||
564 | * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private | |
565 | same as E_Record_Subtype. Display E_Class_Wide_Subtype as | |
566 | subtype, not type. | |
567 | ||
ca4a4fe9 HK |
568 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> |
569 | ||
570 | * sem_ch3.adb (Complete_Private_Subtype): Inherit the | |
571 | Has_Unknown_Discriminants from the full view of the base type. | |
572 | ||
d7ffe14c AC |
573 | 2013-02-06 Tristan Gingold <gingold@adacore.com> |
574 | ||
575 | * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h) | |
576 | Enclosing debugging functions within #ifndef inhibit_libc to | |
577 | support builds without full C headers. | |
578 | ||
579 | 2013-02-06 Thomas Quinot <quinot@adacore.com> | |
580 | ||
581 | * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order. | |
582 | ||
583 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> | |
584 | ||
585 | * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing | |
586 | check to detect a parent-child relationship between two units in | |
587 | order to correctly bypass the installation of a limited view. In | |
588 | other words, the comment on the intended usage of the check was | |
589 | correct, but the code itself did not reflect the behavior. | |
590 | ||
c91dbd18 AC |
591 | 2013-02-06 Javier Miranda <miranda@adacore.com> |
592 | ||
593 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the | |
594 | runtime check on assignment to tagged types if compiling with checks | |
595 | suppressed. | |
596 | ||
597 | 2013-02-06 Robert Dewar <dewar@adacore.com> | |
598 | ||
599 | * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb, | |
600 | s-os_lib.adb: Minor reformatting | |
601 | ||
602 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
603 | ||
604 | * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS. | |
605 | ||
606 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
607 | ||
608 | * snames.ads-tmpl: Add Name_Rational and pragma Rational. | |
609 | * par-prag.adb: Recognize pragma Rational. | |
610 | * opt.ads (Rational_Profile): flag to control compatibility mode | |
611 | with Rational compiler. | |
612 | * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile | |
613 | is enable, accept renaming declarations where the new subprogram | |
614 | and the renamed entity have the same name. | |
615 | * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize | |
616 | Rational as a profile. | |
617 | ||
ba08ba84 AC |
618 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> |
619 | ||
620 | * exp_ch5.adb (Expand_Loop_Entry_Attributes): When | |
621 | dealing with a for loop that iterates over a subtype indication | |
622 | with a range, use the low and high bounds of the subtype. | |
623 | ||
624 | 2013-02-06 Nicolas Roche <roche@adacore.com> | |
625 | ||
626 | * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should | |
627 | be quoted | |
628 | ||
629 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
630 | ||
631 | * prj-conf.adb (Process_Project_And_Apply_Config): New variable | |
632 | Conf_Project. New recursive procedure Check_Project to find a non | |
633 | aggregate project and put its Project_Id in Conf_Project. Fails if | |
634 | no such project can be found. | |
635 | (Get_Or_Create_Configuration_File): New parameter Conf_Project. | |
636 | (Do_Autoconf): Use project directory of project Conf_Project to store | |
637 | the generated configuration project file. | |
638 | * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter | |
639 | Conf_Project. | |
640 | ||
641 | 2013-02-06 Javier Miranda <miranda@adacore.com> | |
642 | ||
643 | * sem_res.adb (Resolve_Actuals): Generate a read | |
644 | reference for out-mode parameters in the cases specified by | |
645 | RM 6.4.1(12). | |
646 | ||
647 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> | |
648 | ||
649 | * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of | |
650 | Loop_Entry, instead wait until the attribute has been expanded. The | |
651 | delay ensures that any generated checks or temporaries are inserted | |
652 | before the relocated prefix. | |
653 | ||
654 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
655 | ||
656 | * sem_ch12.adb: Code clean up. | |
657 | ||
d2a6bd6b AC |
658 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> |
659 | ||
660 | * checks.adb (Apply_Discriminant_Check): Look for discriminant | |
661 | constraint in full view of private type when needed. | |
662 | * sem_ch12.adb (Validate_Array_Type_Instance): Specialize | |
663 | previous patch to components types that are private and without | |
664 | discriminants. | |
665 | ||
666 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> | |
667 | ||
668 | * exp_ch4.adb (Find_Enclosing_Context): Recognize | |
669 | a simple return statement as one of the cases that require special | |
670 | processing with respect to temporary controlled function results. | |
671 | (Process_Transient_Object): Do attempt to finalize a temporary | |
672 | controlled function result when the associated context is | |
673 | a simple return statement. Instead, leave this task to the | |
674 | general finalization mechanism. | |
675 | ||
676 | 2013-02-06 Thomas Quinot <quinot@adacore.com> | |
677 | ||
678 | * einfo.ads: Minor reformatting. | |
679 | (Status_Flag_Or_Transient_Decl): Add ??? comment. | |
680 | ||
4c7e0990 AC |
681 | 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com> |
682 | ||
683 | * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This | |
684 | routine should be able to properly detect controlled transient | |
685 | objects in its actions and generate the appropriate finalization | |
686 | actions. | |
687 | * exp_ch6.adb (Enclosing_Context): Removed. | |
688 | (Expand_Ctrl_Function_Call): Remove local subprogram and | |
689 | constant. Use routine Within_Case_Or_If_Expression to determine | |
690 | whether the lifetime of the function result must be extended to | |
691 | match that of the context. | |
692 | * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New | |
693 | routine. | |
694 | ||
695 | 2013-02-06 Ed Schonberg <schonberg@adacore.com> | |
696 | ||
697 | * sem_ch12.adb (Validate_Array_Type_Instance): Extend check | |
698 | for subtype matching of component type of formal array type, | |
699 | to avoid spurious error when component type is a separate actual | |
700 | in the instance, and there may be a discrepancy between private | |
701 | and full view of component type. | |
702 | ||
088c2c8d AC |
703 | 2013-02-06 Robert Dewar <dewar@adacore.com> |
704 | ||
705 | * s-dim.ads, clean.adb: Minor reformatting. | |
706 | ||
707 | 2013-02-06 Javier Miranda <miranda@adacore.com> | |
708 | ||
709 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch. | |
710 | (Can_Split_Unconstrained_Function): Only split the inlined function if | |
711 | the compiler generates the code of its body. | |
712 | ||
3860d469 AC |
713 | 2013-02-06 Robert Dewar <dewar@adacore.com> |
714 | ||
715 | * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb, | |
716 | exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for | |
717 | N_Pragma nodes. | |
718 | ||
719 | 2013-02-06 Robert Dewar <dewar@adacore.com> | |
720 | ||
721 | * gnat_rm.texi: Minor text updates for pragma Warning. | |
722 | ||
723 | 2013-02-06 Geert Bosch <bosch@adacore.com> | |
724 | ||
725 | * s-multip.adb (Number_Of_CPUs): Short-circuit in case of | |
726 | CPU'Last = 1. | |
727 | ||
728 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
729 | ||
730 | * clean.adb (Delete): On VMS use host notation to delete all files. | |
731 | ||
c4e1d59d RD |
732 | 2013-02-06 Robert Dewar <dewar@adacore.com> |
733 | ||
734 | * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor | |
735 | reformatting. | |
736 | ||
1aee1fb3 AC |
737 | 2013-02-06 Gary Dismukes <dismukes@adacore.com> |
738 | ||
739 | * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for | |
740 | the special case of a user-defined equality that overrides | |
741 | the predefined equality of a nonderived type declared in a | |
742 | declarative part. | |
743 | * sem_util.adb (Collect_Primitive_Operations): Add test for | |
744 | Is_Primitive when looping over the subprograms following a type, | |
745 | to catch the case of primitives such as a user-defined equality, | |
746 | which otherwise won't be found when the type is not a derived | |
747 | type and is declared in a declarative part. | |
748 | ||
749 | 2013-02-06 Vincent Celier <celier@adacore.com> | |
750 | ||
751 | * prj-conf.adb (Check_Target): Always return True when Target | |
752 | is empty (Get_Or_Create_Configuration_File.Get_Project_Target): | |
753 | New procedure to get the value of attribute Target in the main | |
754 | project. | |
755 | (Get_Or_Create_Configuration_File.Do_Autoconf): No | |
756 | need to get the value of attribute Target in the main project. | |
757 | (Get_Or_Create_Configuration_File): Call Get_Project_Target and | |
758 | use the target fom this call. | |
759 | ||
760 | 2013-02-06 Eric Botcazou <ebotcazou@adacore.com> | |
761 | ||
762 | * erroutc.adb (Validate_Specific_Warning): Do not issue the | |
763 | warning about an ineffective Pragma Warnings for -Wxxx warnings. | |
764 | * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings. | |
765 | * gnat_rm.texi (Pragma Warnings): Document coordination with | |
766 | warnings of the GCC back-end. | |
767 | ||
2ae395d6 AC |
768 | 2013-02-06 Javier Miranda <miranda@adacore.com> |
769 | ||
770 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body | |
771 | of an inlined function if we do not generate code for the function. | |
772 | ||
773 | 2013-02-06 Pascal Obry <obry@adacore.com> | |
774 | ||
775 | * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname | |
776 | with Resolve_Links set to False. | |
777 | ||
144f591f EB |
778 | 2013-02-03 Eric Botcazou <ebotcazou@adacore.com> |
779 | ||
780 | * gcc-interface/decl.c: Include diagnostic-core.h. | |
781 | (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order | |
782 | is set on the entity. | |
783 | <E_Record_Type>: Likewise. | |
784 | * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H). | |
785 | ||
77a03520 AC |
786 | 2013-01-29 Ben Brosgol <brosgol@adacore.com> |
787 | ||
788 | * gnat_rm.texi: Fixed typos. Minor edits. | |
789 | ||
790 | 2013-01-29 Bob Duff <duff@adacore.com> | |
791 | ||
792 | * a-convec.adb: Minor reformatting. | |
793 | ||
794 | 2013-01-29 Pascal Obry <obry@adacore.com> | |
795 | ||
796 | * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp | |
797 | directory. | |
798 | ||
7e856112 AC |
799 | 2013-01-29 Ed Schonberg <schonberg@adacore.com> |
800 | ||
801 | * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop | |
802 | identifier only if it comes from source. | |
803 | (Expand_N_Loop_Statement): If the domain of iteration is an | |
804 | enumeration type with a representation clause, remove from | |
805 | visibility the loop identifier before rewriting the loop as a | |
806 | block with a declaration for said identifier. | |
807 | * sem_util.adb (Remove_Homonym): Handle properly the default case. | |
808 | ||
809 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
810 | ||
811 | * prj-proc.adb: Minor comment spelling fix. | |
812 | ||
4e3da85a PO |
813 | 2013-01-29 Pascal Obry <obry@adacore.com> |
814 | ||
815 | * prj-proc.adb (Process_Expression_Variable_Decl): Prepend | |
816 | Project_Path to current environment. | |
817 | ||
7096a67b AC |
818 | 2013-01-29 Thomas Quinot <quinot@adacore.com> |
819 | ||
820 | * sprint.adb (Sprint_Node_Actual): Output freeze nodes for | |
821 | itypes even if Dump_Freeze_Null is not set. | |
822 | ||
823 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
824 | ||
825 | * sem_util.adb: Minor reformatting. | |
826 | * s-rident.ads: Minor comment fixes. | |
827 | ||
828 | 2013-01-29 Pascal Obry <obry@adacore.com> | |
829 | ||
830 | * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to | |
831 | control if the path is prepended or appended. | |
832 | ||
a52e6d7e AC |
833 | 2013-01-29 Ed Schonberg <schonberg@adacore.com> |
834 | ||
835 | * sem_ch6.adb (Analyze_Expression_Function): An expression | |
836 | function declaration is not a subprogram declaration, and thus | |
837 | cannot appear in a protected definition. | |
838 | ||
839 | 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com> | |
840 | ||
841 | * exp_util.adb (Insert_Actions): When new | |
842 | actions come from the expression of the expression with actions, | |
843 | then they must be added to the list of existing actions. | |
844 | ||
845 | 2013-01-29 Eric Botcazou <ebotcazou@adacore.com> | |
846 | ||
847 | * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For | |
848 | the subtype of a constrained private type with discriminants | |
849 | that has got a full view, show that the completion is a clone | |
850 | of the full view. | |
851 | ||
d3820795 JM |
852 | 2013-01-29 Javier Miranda <miranda@adacore.com> |
853 | ||
854 | * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram. | |
855 | * opt.ads (Warn_On_Overlap): Update documentation. | |
856 | * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate): | |
857 | Check function writable actuals. | |
858 | * sem_ch3.adb (Build_Derived_Record_Type, | |
859 | Record_Type_Declaration): Check function writable actuals. | |
860 | * sem_ch4.adb (Analyze_Range): Check function writable actuals. | |
861 | * sem_ch5.adb (Analyze_Assignment): Remove code of the initial | |
862 | implementation of AI05-0144. | |
863 | * sem_ch6.adb (Analyze_Function_Return, | |
864 | (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code | |
865 | of the initial implementation of AI05-0144. | |
866 | * sem_res.adb (Resolve): Remove code of the initial implementation. | |
867 | (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call | |
868 | of the initial implementation. | |
869 | (Resolve_Arithmetic_Op, Resolve_Logical_Op, | |
870 | Resolve_Membership_Op): Check function writable actuals. | |
871 | * sem_util.ad[sb] (Actuals_In_Call): Removed | |
872 | (Check_Order_Dependence): Removed (Save_Actual): Removed | |
873 | (Check_Function_Writable_Actuals): New subprogram. | |
874 | * usage.adb (Usage): Update documentation. | |
875 | * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when | |
876 | setting all warnings. | |
877 | ||
54bb89ca AC |
878 | 2013-01-29 Robert Dewar <dewar@adacore.com> |
879 | ||
880 | * a-calend-vms.adb: Minor comment fix. | |
881 | ||
882 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
883 | ||
884 | * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash | |
885 | because of casing issues. | |
886 | * sem_util.ads: Minor comment fix. | |
887 | * style.adb (Check_Identifier): Set proper casing for entities | |
888 | in ASCII. | |
889 | * styleg.adb: Minor comment improvement. | |
890 | * stylesw.ads (Style_Check_Standard): Fix bad comments. | |
891 | ||
892 | 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com> | |
893 | ||
894 | * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global. | |
895 | (Analyze_Pragma): Push the scope of the related subprogram and install | |
896 | its formals once before starting the analysis of the [moded] global | |
897 | list. | |
898 | ||
899 | 2013-01-29 Pascal Obry <obry@adacore.com> | |
900 | ||
901 | * prj-proc.adb (Process_Expression_Variable_Decl): Always handle | |
902 | relative paths in Project_Path as relative to the aggregate | |
903 | project location. Note that this was what was documented. | |
904 | ||
905 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
906 | ||
907 | * gnatcmd.adb: For "gnat stub -P ...", do not check the naming | |
908 | scheme for Ada, when Ada is not a language for the project. | |
909 | ||
2808600b ES |
910 | 2013-01-29 Ed Schonberg <schonberg@adacore.com> |
911 | ||
912 | * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit | |
913 | Is_Generic_Actual_Type flag in a nested instance. | |
914 | * sem_ch12.adb (Restore_Private_Views): Preserve | |
915 | Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type | |
916 | of an enclosing instance. | |
917 | * sem_util.adb (Corresponding_Generic_Type): Handle generic actual | |
918 | which is an actual of an enclosing instance. | |
919 | * sem_type.adb (Real_Actual): If a generic_actual_type is the | |
920 | formal of an enclosing generic and thus renames the corresponding | |
921 | actual, use the actual of the enclosing instance to resolve | |
922 | spurious ambiguities in instantiations when two formals are | |
923 | instantiated with the same actual. | |
924 | ||
a8acf832 AC |
925 | 2013-01-29 Robert Dewar <dewar@adacore.com> |
926 | ||
927 | * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as | |
928 | being available as implementation-defined pragmas in earlier | |
929 | versions of Ada. | |
930 | ||
931 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
932 | ||
933 | * clean.adb (Delete): On VMS, delete all versions of the file. | |
934 | ||
42f1d661 AC |
935 | 2013-01-29 Robert Dewar <dewar@adacore.com> |
936 | ||
937 | * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure. | |
938 | * par-util.adb (No_Constraint): Undo special handling, moved | |
939 | to par-ch6.adb. | |
940 | ||
941 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
942 | ||
943 | * aspects.ads: Aspect Warnings is implementation defined Add | |
944 | some other missing entries to impl-defined list Mark Warnings | |
945 | as GNAT pragma in main list. | |
946 | * sem_ch8.adb: Process aspects for all cases of renaming | |
947 | declarations. | |
948 | ||
949 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
950 | ||
951 | * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag. | |
952 | * sem_elab.adb (Check_Internal_Call_Continue): Do not issue | |
953 | warnings about possible elaboration error if call is within | |
954 | an assertion. | |
955 | * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node. | |
956 | ||
957 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
958 | ||
959 | * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb, | |
960 | * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb, | |
961 | s-tasdeb-vms.adb: Replace pragma Interface by pragma Import. | |
962 | ||
963 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
964 | ||
965 | * opt.ads (Ignore_Style_Checks_Pragmas): New flag. | |
966 | * par-prag.adb (Par, case Style_Checks): Recognize | |
967 | Ignore_Style_Checks_Pragmas. | |
968 | * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize | |
969 | Ignore_Style_Checks_Pragmas. | |
970 | * switch-c.adb: Recognize -gnateY switch. | |
971 | * usage.adb: Add documentation for "-gnateY". | |
972 | * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY). | |
973 | ||
974 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
975 | ||
976 | * clean.adb (Clean_Executables): Add Sid component when calling | |
977 | Queue.Insert. | |
978 | * make.adb: When inserting in the Queue, add the Source_Id | |
979 | (Sid) when it is known (Start_Compile_If_Possible): When the | |
980 | Source_Id is known (Sid), get the path name of the ALI file | |
981 | (Full_Lib_File) from it, to avoid finding old ALI files in other | |
982 | object directories. | |
983 | * makeutl.ads (Source_Info): New Source_Id component Sid in | |
984 | Format_Gnatmake variant. | |
985 | ||
986 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
987 | ||
988 | * gnat_ugn.texi: Document -gnateY. | |
989 | ||
990 | 2013-01-29 Doug Rupp <rupp@adacore.com> | |
991 | ||
992 | * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads, | |
993 | system-vms-ia64.ads: Replace pragma Interface by pragma Import. | |
994 | ||
477cfc5b AC |
995 | 2013-01-29 Robert Dewar <dewar@adacore.com> |
996 | ||
997 | * atree.ads, atree.adb (Node30): New function. | |
998 | (Set_Node30): New procedure. | |
999 | (Num_Extension_Nodes): Change to 5 (activate new fields/flags). | |
1000 | * atree.h: Add macros for Field30 and Node30. | |
1001 | * einfo.ads, einfo.adb: Move some fields to avoid duplexing. | |
1002 | * treepr.adb (Print_Entity_Information): Print fields 30-35. | |
1003 | ||
1004 | 2013-01-29 Robert Dewar <dewar@adacore.com> | |
1005 | ||
1006 | * sem_prag.adb (Analyze_Pragma, case Interface): Consider to | |
1007 | be a violation of No_Obsolescent_Features even in Ada 95. Also | |
1008 | generates a warning in -gnatwj mode. | |
1009 | (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj | |
1010 | mode. | |
1011 | * gnat_ugn.texi: Additional documentation on -gnatwj and pragma | |
1012 | Interface[_Name]. | |
1013 | ||
1014 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
1015 | ||
1016 | * snames.ads-tmpl: Add new standard name Trailing_Switches. | |
1017 | ||
1018 | 2013-01-29 Ed Schonberg <schonberg@adacore.com> | |
1019 | ||
1020 | * sem_disp.adb (Check_Controlling_Type): If a designated type T | |
1021 | of an anonymous access type is a limited view of a tagged type, | |
1022 | it can be a controlling type only if the subprogram is in the | |
1023 | same scope as T. | |
1024 | ||
1025 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
1026 | ||
1027 | * gnatcmd.adb: Use the project where the config pragmas file is | |
1028 | declared to get its path. | |
1029 | ||
1030 | 2013-01-29 Vincent Celier <celier@adacore.com> | |
1031 | ||
1032 | * prj-attr.adb: New attribute Linker'Trailing_Switches. | |
1033 | ||
e1860041 EB |
1034 | 2013-01-22 Eric Botcazou <ebotcazou@adacore.com> |
1035 | ||
1036 | * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do | |
1037 | not translate the Etype of the node before translating the Actions. | |
1038 | ||
257e81a6 EB |
1039 | 2013-01-22 Eric Botcazou <ebotcazou@adacore.com> |
1040 | ||
1041 | * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size | |
1042 | instead of optimize and adjust warning message. | |
1043 | (Compilation_Unit_to_gnu): Process pragmas preceding the unit. | |
1044 | ||
48a24fcf TG |
1045 | 2013-01-22 Tristan Gingold <gingold@adacore.com> |
1046 | ||
1047 | * gcc-interface/gigi.h (ADT_unhandled_except_decl, | |
1048 | ADT_unhandled_others_decl): New. | |
1049 | (unhandled_others_decl, unhandled_except_decl): Define. | |
1050 | * gcc-interface/trans.c: Include common/common-target.h. | |
1051 | (gigi): Initialize them. | |
1052 | (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main | |
1053 | function in a try/catch clause. | |
1054 | ||
7cb9fd07 EB |
1055 | 2013-01-11 Eric Botcazou <ebotcazou@adacore.com> |
1056 | ||
1057 | * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata. | |
1058 | (CHECKING_ADAFLAGS): New. | |
1059 | (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS. | |
1060 | ||
9ddeb034 EB |
1061 | 2013-01-10 Eric Botcazou <ebotcazou@adacore.com> |
1062 | ||
1063 | * gcc-interface/config-lang.in (boot_language_boot_flags): Delete. | |
1064 | * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise. | |
1065 | ||
a8c4c75a EB |
1066 | 2013-01-07 Eric Botcazou <ebotcazou@adacore.com> |
1067 | ||
1068 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust | |
1069 | comment about type extension with discriminants. | |
1070 | <E_Record_Subtype>: Remove useless test and reorder conditions. | |
1071 | (elaborate_entity) <E_Record_Subtype>: Likewise. | |
1072 | ||
5b638c3a RB |
1073 | 2013-01-07 Richard Biener <rguenther@suse.de> |
1074 | ||
1075 | PR ada/864 | |
1076 | * gcc-interface/Make-lang.in (ada.install-common): Always apply | |
1077 | program_transform_name. | |
1078 | ||
b5fb6f65 EB |
1079 | 2013-01-06 Eric Botcazou <ebotcazou@adacore.com> |
1080 | ||
1081 | * gnatvsn.ads (Current_Year): Bump to 2013. | |
1082 | ||
bd95368b OH |
1083 | 2013-01-06 Olivier Hainque <hainque@adacore.com> |
1084 | ||
1085 | * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized | |
1086 | diagnostic for component size mismatch wrt volatile requirements. | |
1087 | Add a gcc_unreachable() at the end of the checks for size. Split | |
1088 | the check on volatile for positions into one check on atomic and | |
1089 | a subsequent one on volatile. | |
1090 | ||
a43abae8 EB |
1091 | 2013-01-06 Eric Botcazou <ebotcazou@adacore.com> |
1092 | ||
1093 | * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete. | |
1094 | ||
940ff20c EB |
1095 | 2013-01-06 Eric Botcazou <ebotcazou@adacore.com> |
1096 | ||
1097 | * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not | |
1098 | pack the field of the record type made for a misaligned type. | |
1099 | ||
c19ff724 EB |
1100 | 2013-01-06 Eric Botcazou <ebotcazou@adacore.com> |
1101 | ||
1102 | * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared | |
1103 | for discriminants inherited from parent record types. | |
1104 | ||
0e564ab4 AC |
1105 | 2013-01-04 Robert Dewar <dewar@adacore.com> |
1106 | ||
1107 | * warnsw.adb: Minor fixes to -gnatw.d handling. | |
1108 | ||
1109 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1110 | ||
1111 | * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more | |
1112 | fields. | |
1113 | ||
940ff20c | 1114 | 2013-01-04 Joel Brobecker <brobecker@adacore.com> |
0e564ab4 AC |
1115 | |
1116 | * gnat_ugn.texi: Fix typo. | |
1117 | ||
1118 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1119 | ||
1120 | * gnat_rm.texi: Document alignment choice for subtypes. | |
1121 | ||
1122 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1123 | ||
1124 | * validsw.ads: Minor fix to comment. | |
1125 | ||
1126 | 2013-01-04 Doug Rupp <rupp@adacore.com> | |
1127 | ||
1128 | * Makefile.rtl (GNATRTL_NONTASKING_OBJS, | |
1129 | GNATRTL_ALTIVEC_OBJS): Factor g-al* objects. | |
1130 | * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources. | |
1131 | (GNATRTL_ALTIVEC_OBJS): Override to null for VMS. | |
1132 | Rename leon vxworks toolchain as leon-wrs-vxworks. | |
1133 | * gcc-interface/Make-lang.in: Update dependencies | |
1134 | ||
1135 | 2013-01-04 Pascal Obry <obry@adacore.com> | |
1136 | ||
1137 | * prj.ads (For_Each_Source): Add Locally_Removed parameter. | |
1138 | (Source_Iterator): Add Locally_Removed field. | |
1139 | * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed. | |
1140 | (Next): Likewise. | |
1141 | ||
1142 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1143 | ||
1144 | * exp_attr.adb: Minor reformatting. | |
1145 | ||
1146 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1147 | ||
1148 | * checks.adb (Insert_Valid_Check): Fix handling of renamed | |
1149 | packed array element. | |
1150 | * exp_ch4.adb (Expand_Concatenate): Fix some missing parent | |
1151 | fields in generated code. | |
1152 | * exp_util.adb (Side_Effect_Free): Improve detection of cases | |
1153 | needing renaming. | |
1154 | ||
1155 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1156 | ||
1157 | * sinfo.ads: Clean up order of N_xxx subtypes | |
1158 | ||
1159 | 2013-01-04 Vincent Celier <celier@adacore.com> | |
1160 | ||
1161 | * prj-conf.adb (Check_Target): Allow --autoconf= with no target. | |
1162 | ||
7fcd29e0 RD |
1163 | 2013-01-04 Robert Dewar <dewar@adacore.com> |
1164 | ||
1165 | * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting. | |
1166 | ||
1167 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1168 | ||
1169 | * par-ch6.adb (P_Subprogram): Better handling of missing IS | |
1170 | after expression function. | |
1171 | * par-util.adb (No_Constraint): Improve handling to avoid bad warnings. | |
1172 | ||
1173 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1174 | ||
1175 | * exp_util.ads, exp_util.adb (Insert_Actions): In expression with | |
1176 | actions case, new actions are appended to the sequence rather than | |
1177 | prepended. | |
1178 | ||
1179 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1180 | ||
1181 | * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode). | |
1182 | * usage.adb: Add lines for -gnatw.d/w.D switches. | |
1183 | * warnsw.adb: Minor fixes (some missing cases of setting | |
1184 | Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode. | |
1185 | ||
67b8ac46 AC |
1186 | 2013-01-04 Robert Dewar <dewar@adacore.com> |
1187 | ||
1188 | * exp_util.adb (Remove_Side_Effects): Make sure scope suppress | |
1189 | is restored on exit. | |
1190 | ||
1191 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1192 | ||
1193 | * usage.adb: Document -gnateF (check overflow for predefined Float). | |
1194 | ||
1195 | 2013-01-04 Robert Dewar <dewar@adacore.com> | |
1196 | ||
1197 | * sem_res.adb (Resolve_Type_Conversion): Remove incorrect | |
1198 | prevention of call to Apply_Type_Conversion_Checks, which resulted | |
1199 | in missing check flags in formal mode. | |
1200 | ||
1201 | 2013-01-04 Vincent Celier <celier@adacore.com> | |
1202 | ||
1203 | * makeutl.ads (Db_Switch_Args): New table used by gprbuild. | |
1204 | * prj-conf.adb (Check_Builder_Switches): Check for switches | |
1205 | --config= (Get_Db_Switches): New procedure to get the --db | |
1206 | switches so that they are used when invoking gprconfig in | |
1207 | auto-configuration. | |
1208 | (Do_Autoconf): When invoking gprconfig, use the --db switches, if any. | |
1209 | ||
dc8b370a AC |
1210 | 2013-01-04 Pascal Obry <obry@adacore.com> |
1211 | ||
1212 | * prj-nmsc.adb: Minor reformatting. | |
1213 | ||
1214 | 2013-01-04 Vincent Celier <celier@adacore.com> | |
1215 | ||
1216 | * makeutl.ads (Root_Environment): New variable, moved rom | |
1217 | gprbuild (Load_Standard_Base): New Boolean variable, moved | |
1218 | from gprbuild. | |
1219 | * prj-conf.adb (Check_Builder_Switches): New procedure to check | |
1220 | for switch --RTS in package Builder. If a runtime specified | |
1221 | by --RTS is a relative path name, but not a base name, then | |
1222 | find the path on the Project Search Path. | |
1223 | (Do_Autoconf): Call Check_Builder_Switches. | |
1224 | (Locate_Runtime): New procedure, moved from gprbuild, to get the | |
1225 | absolute paths of runtimes when they are not specified as a base name. | |
1226 | * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild. | |
1227 | ||
33bd17e7 ES |
1228 | 2013-01-04 Ed Schonberg <schonberg@adacore.com> |
1229 | ||
1230 | * sem_ch3.adb (Build_Private_Derived_Type): Set | |
1231 | Has_Private_Ancestor on type derived from an untagged private | |
1232 | type whose full view has discriminants | |
1233 | * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension | |
1234 | aggregate for untagged record type with private ancestor. | |
1235 | ||
5ee96c9d TQ |
1236 | 2013-01-04 Thomas Quinot <quinot@adacore.com> |
1237 | ||
1238 | * sem_elab.adb, sem_ch3.adb: Minor reformatting. | |
1239 | ||
7a1f1775 AC |
1240 | 2013-01-04 Robert Dewar <dewar@adacore.com> |
1241 | ||
1242 | * table.adb: Minor reformatting. | |
1243 | ||
1244 | 2013-01-04 Ed Schonberg <schonberg@adacore.com> | |
1245 | ||
1246 | * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does | |
1247 | not come from source does not generate a warning for redundant | |
1248 | with_clauses. | |
1249 | ||
1250 | 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1251 | ||
1252 | * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables. | |
1253 | * par-prag.adb: Add pragma Global to the list of pragmas that | |
1254 | do not need special processing by the parser. | |
1255 | * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect | |
1256 | Global into a pragma without any form of legality checks. The | |
1257 | work is done by Analyze_Pragma. The aspect and pragma are both | |
1258 | marked as needing delayed processing. Insert the corresponding | |
1259 | pragma of aspect Abstract_State in the visible declarations of the | |
1260 | related package. | |
1261 | (Check_Aspect_At_Freeze_Point): Aspect Global | |
1262 | does not need processing even though it is marked as delayed. | |
1263 | Alphabetize the list on aspect names. | |
1264 | * sem_prag.adb: Add a value for pragma Global in table Sig_Flags. | |
1265 | (Analyze_Pragma): Add ??? comment about the grammar of pragma | |
1266 | Abstract_State. Move the error location from the pragma to the | |
1267 | state to improve the quality of error placement. Add legality | |
1268 | checks for pragma Global. | |
1269 | * snames.ads-tmpl Add the following specially recognized names | |
1270 | ||
1271 | 2013-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
1272 | ||
1273 | * sem_ch3.adb: Fix minor typo. | |
1274 | ||
1275 | 2013-01-04 Ed Schonberg <schonberg@adacore.com> | |
1276 | ||
1277 | * par-ch13.adb (Aspect_Specifications_Present): In Strict mode, | |
1278 | accept an aspect name followed by a comma, indicating a defaulted | |
1279 | boolean aspect. | |
1280 | ||
2a328c94 AC |
1281 | 2013-01-04 Joel Brobecker <brobecker@adacore.com brobecker> |
1282 | ||
1283 | * gnat_ugn.texi: Document procedure to codesign GDB on Darwin. | |
1284 | Update doc on gnattest --separates switch. | |
1285 | ||
1286 | 2013-01-04 Thomas Quinot <quinot@adacore.com> | |
1287 | ||
1288 | * s-chepoo.ads: Minor reformatting. | |
1289 | ||
1290 | 2013-01-04 Arnaud Charlet <charlet@adacore.com> | |
1291 | ||
1292 | * usage.adb: Remove mention of -gnatN in usage. | |
1293 | ||
ae05cdd6 RD |
1294 | 2013-01-04 Robert Dewar <dewar@adacore.com> |
1295 | ||
1296 | * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb, | |
1297 | freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb, | |
1298 | prj-conf.adb, sem_ch13.adb: Minor reformatting. | |
1299 | ||
3a3af4c3 AC |
1300 | 2013-01-04 Thomas Quinot <quinot@adacore.com> |
1301 | ||
1302 | * sinfo.ads: Minor documentation update. | |
1303 | ||
1304 | 2013-01-04 Thomas Quinot <quinot@adacore.com> | |
1305 | ||
1306 | * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind | |
1307 | before resolving initialization expression. | |
1308 | ||
1309 | 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1310 | ||
1311 | * checks.adb (Generate_Index_Checks): Delay the generation of | |
1312 | the check for an indexed component where the prefix mentions | |
1313 | Loop_Entry until the attribute has been properly expanded. | |
1314 | * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor | |
1315 | decoration of the constant that captures the value of Loop_Entry's | |
1316 | prefix at the entry point into a loop. Generate index checks | |
1317 | for an attribute reference that has been transformed into an | |
1318 | indexed component. | |
1319 | ||
1320 | 2013-01-04 Thomas Quinot <quinot@adacore.com> | |
1321 | ||
1322 | * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb, | |
1323 | sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to | |
1324 | do if Obj is already frozen. | |
1325 | (Exp_Util.Find_Init_Call): Rename to... | |
1326 | (Exp_Util.Remove_Init_Call): New subprogram, renamed from | |
1327 | Find_Init_Call. Remove the initialization call from the enclosing | |
1328 | list if found, and if it is from an Initialization_Statements | |
1329 | attribute, reset it. | |
1330 | (Exp_Util.Append_Freeze_Action): Minor code reorganization. | |
1331 | (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been | |
1332 | allocated (as is already done in Append_Freeze_Action). | |
1333 | (Freeze.Freeze_Entity): For an object with captured | |
1334 | Initialization_Statements and non-delayed freezeing, unwrap the | |
1335 | initialization statements and insert and them directly in the | |
1336 | enclosing list. | |
1337 | (Sem_Ch13.Check_Address_Clause): For an object | |
1338 | with Initialization_Statements and an address clause, unwrap the | |
1339 | initialization statements when moving them to the freeze actions. | |
1340 | ||
f3d42000 AC |
1341 | 2013-01-03 Pascal Obry <obry@adacore.com> |
1342 | ||
1343 | * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and | |
1344 | corresponding attibutes. | |
1345 | ||
1346 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1347 | ||
1348 | * exp_aggr.adb: Minor comment improvement. | |
1349 | ||
cf6956bb AC |
1350 | 2013-01-03 Hristian Kirtchev <kirtchev@adacore.com> |
1351 | ||
1352 | * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the | |
1353 | relevant tables. | |
1354 | * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to | |
1355 | the description of fields (Abstract_States): New routine. | |
1356 | (Integrity_Level): New routine. | |
1357 | (Has_Property): New routine. | |
1358 | (Is_Input_State): New routine. | |
1359 | (Is_Null_State): New routine. | |
1360 | (Is_Output_State): New routine. | |
1361 | (Is_Volatile_State): New routine. | |
1362 | (Refined_State): New routine. | |
1363 | (Set_Abstract_States): New routine. | |
1364 | (Set_Integrity_Level): New routine. | |
1365 | (Set_Refined_State): New routine. | |
1366 | (Write_Field8_Name): Add proper output for E_Abstract_State. | |
1367 | (Write_Field9_Name): Add proper output for E_Abstract_State. | |
1368 | (Write_Field25_Name): Add proper output for E_Package. | |
1369 | * lib-xref.ads: Add new letter for an abstract state. | |
1370 | * par-prag.adb: Add pragma Abstract_State to the list of pragma | |
1371 | that do not need special processing by the parser. | |
1372 | * sem_ch13.adb (Analyze_Aspect_Specifications): Convert | |
1373 | aspect Abstract_State into a pragma without any form | |
1374 | of legality checks. The work is done by Analyze_Pragma. | |
1375 | (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not | |
1376 | require delayed analysis. | |
1377 | * sem_prag.adb: Add a value for pragma Abstract_State in table | |
1378 | Sig_Flags. | |
1379 | (Analyze_Pragma): Add legality checks for pragma | |
1380 | Abstract_State. Analysis of individual states introduces a state | |
1381 | abstraction entity into the visibility chain. | |
1382 | * snames.ads-tmpl: Add new names for abstract state and | |
1383 | integrity. Add new pragma id for abstract state. | |
1384 | ||
1385 | 2013-01-03 Bob Duff <duff@adacore.com> | |
1386 | ||
1387 | * table.adb (Reallocate): Calculate new Length in | |
1388 | Long_Integer to avoid overflow. | |
1389 | ||
1390 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1391 | ||
1392 | * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb | |
1393 | (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that | |
1394 | it is set properly when expanding the initialization expression. | |
1395 | (Freeze.Check_Address_Clause): Transfer initialization expression | |
1396 | to an assignment in the freeze actions, so that the object is | |
1397 | initialized only after being elaborated by GIGI. | |
1398 | (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow | |
1399 | a Null_Statement as the expression in an Expression_With_Actions. | |
1400 | (Exp_Aggr.Collect_Initialization_Statements): New subprogram | |
1401 | shared by expansion of record and array aggregates, used to | |
1402 | capture statements for an aggregate used to initalize an object | |
1403 | into an Expression_With_Actions (which acts as a container for | |
1404 | a list of actions). | |
1405 | (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to | |
1406 | capture initialization statements, instead of the previously | |
1407 | existing loop which left freeze nodes out of the capturing | |
1408 | construct (causing out of order elaboration crashes in GIGI). | |
1409 | (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture | |
1410 | initialization statements (this was previously not done for | |
1411 | arrays). Also do not unconditionally prevent in place expansion | |
1412 | for an object with address clause. | |
1413 | ||
8190087e AC |
1414 | 2013-01-03 Thomas Quinot <quinot@adacore.com> |
1415 | ||
1416 | * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that | |
1417 | a record extension has the same scalar storage order as the parent type. | |
1418 | ||
1419 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1420 | ||
1421 | * exp_ch4.adb: Add comment. | |
1422 | ||
1423 | 2013-01-03 Vincent Celier <celier@adacore.com> | |
1424 | ||
1425 | * prj.adb: Minor spelling error correction in comment. | |
1426 | ||
1427 | 2013-01-03 Vincent Celier <celier@adacore.com> | |
1428 | ||
1429 | * gnatcmd.adb (GNATCmd): If a single main has been specified | |
1430 | as an absolute path, use its simple file name to find specific | |
1431 | switches, instead of the absolute path. | |
1432 | ||
1433 | 2013-01-03 Javier Miranda <miranda@adacore.com> | |
1434 | ||
1435 | * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping | |
1436 | parameters that are record types or array types generate warnings | |
1437 | only compiling under -gnatw.i | |
1438 | * opt.ads (Extensions_Allowed): Restore previous documentation. | |
1439 | ||
1440 | 2013-01-03 Vincent Celier <celier@adacore.com> | |
1441 | ||
1442 | * prj-conf.adb (Do_Autoconf): If Target is specified in the | |
1443 | main project, but not on the command line, use the Target in | |
1444 | the project to invoke gprconfig in auto-configuration. | |
1445 | * makeutl.ads (Default_Config_Name): New constant String. | |
1446 | ||
1447 | 2013-01-03 Arnaud Charlet <charlet@adacore.com> | |
1448 | ||
1449 | * usage.adb: Minor: fix typo in usage. | |
1450 | ||
1451 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1452 | ||
1453 | * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject | |
1454 | an illegal component clause for an inherited component in a | |
1455 | record extension. | |
1456 | ||
6f5c2c4b AC |
1457 | 2013-01-03 Emmanuel Briot <briot@adacore.com> |
1458 | ||
1459 | * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which | |
1460 | have information in the ALI file for both the index and the component | |
1461 | types. | |
1462 | ||
1463 | 2013-01-03 Emmanuel Briot <briot@adacore.com> | |
1464 | ||
1465 | * projects.texi: Fix error in documenting the project path | |
1466 | computed for an aggregate project. | |
1467 | ||
1468 | 2013-01-03 Javier Miranda <miranda@adacore.com> | |
1469 | ||
1470 | * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation | |
1471 | plus restricting the functionality of this routine to cover the | |
1472 | cases described in the Ada 2012 reference manual. The previous | |
1473 | extended support is now available under -gnatX. | |
1474 | * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy | |
1475 | variable to call Timed_Sleep. Required to avoid warning on | |
1476 | overlapping out-mode actuals. | |
1477 | * opt.ads (Extensions_Allowed): Update documentation. | |
1478 | ||
1479 | 2013-01-03 Tristan Gingold <gingold@adacore.com> | |
1480 | ||
1481 | * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64. | |
1482 | * arit64.c: Removed | |
1483 | * gcc-interface/Makefile.in: Remove reference to arit64.c. | |
1484 | ||
1485 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1486 | ||
1487 | * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must | |
1488 | be generated at the start of the freeze actions for the entity, not | |
1489 | before (or after) the freeze node. | |
1490 | ||
1491 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1492 | ||
1493 | * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): | |
1494 | Reorganize code to capture initialization statements in a block, | |
1495 | so that freeze nodes are excluded from the captured block. | |
1496 | ||
02217452 AC |
1497 | 2013-01-03 Thomas Quinot <quinot@adacore.com> |
1498 | ||
1499 | * exp_ch11.adb: Minor reformatting. | |
1500 | ||
1501 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1502 | ||
1503 | * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb, | |
1504 | sem_ch13.adb (Einfo.Initialization_Statements, | |
1505 | Einfo.Set_Initialization_Statements): New entity attribute | |
1506 | for objects. | |
1507 | (Exp_Util.Find_Init_Call): Handle case of an object initialized | |
1508 | by an aggregate converted to a block of assignment statements. | |
1509 | (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze | |
1510 | even for objects that require a constant address, because the | |
1511 | address expression might involve entities that have yet to be | |
1512 | elaborated at the point of the object declaration. | |
1513 | (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does | |
1514 | not require a transient scope, capture the assignment statements | |
1515 | in a block so that they can be moved down after elaboration of | |
1516 | an address clause if needed. | |
1517 | (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants, | |
1518 | case N_Unchecked_Conversion): Do not replace operand subtype with | |
1519 | its base type as this violates a GIGI invariant if the operand | |
1520 | is an identifier (in which case the etype of the identifier | |
1521 | is expected to be equal to that of the denoted entity). | |
1522 | ||
1523 | 2013-01-03 Javier Miranda <miranda@adacore.com> | |
1524 | ||
1525 | * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the | |
1526 | functionality of this routine to cover cases described in the Ada 2012 | |
1527 | reference manual. | |
1528 | ||
1529 | 2013-01-03 Ed Schonberg <schonberg@adacore.com> | |
1530 | ||
1531 | * sem_elab.adb (Set_Elaboration_Constraint): Handle properly | |
1532 | a 'Access attribute reference when the subprogram is called | |
1533 | Initialize. | |
1534 | ||
1535 | 2013-01-03 Arnaud Charlet <charlet@adacore.com> | |
1536 | ||
1537 | * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a | |
1538 | select statement may be called from a controlled (e.g. Initialize) | |
1539 | operation and have abort always deferred. | |
1540 | ||
8398e82e AC |
1541 | 2013-01-03 Robert Dewar <dewar@adacore.com> |
1542 | ||
1543 | * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization. | |
1544 | ||
1545 | 2013-01-03 Javier Miranda <miranda@adacore.com> | |
1546 | ||
1547 | * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude | |
1548 | internal entities associated with interfaces and add minimum | |
1549 | decoration to the defining entity of the generated wrapper to | |
1550 | allow overriding interface primitives. | |
1551 | * sem_disp.ads (Override_Dispatching_Operation): Addition of a | |
1552 | new formal (Is_Wrapper). | |
1553 | * sem_disp.adb (Override_Dispatching_Operation): When overriding | |
1554 | interface primitives the new formal helps identifying that the | |
1555 | new operation is not fully decorated. | |
1556 | ||
8ca1ee5d AC |
1557 | 2013-01-03 Thomas Quinot <quinot@adacore.com> |
1558 | ||
1559 | * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb, | |
1560 | rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb | |
1561 | (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit): | |
1562 | Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and | |
1563 | update spec accordingly (now also applies to root library units). | |
1564 | (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag | |
1565 | on root library units, not only child units. | |
1566 | (Sem_Ch10.Install[_Limited]_Withed_Unit): Same. | |
1567 | (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit | |
1568 | even for root library units. | |
1569 | (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is | |
1570 | Standard is an expanded name for a root library unit. | |
1571 | ||
1572 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1573 | ||
1574 | * exp_ch3.adb: Minor reformatting. | |
1575 | ||
1576 | 2013-01-03 Olivier Hainque <hainque@adacore.com> | |
1577 | ||
1578 | * tracebak.c: Reinstate changes to support ppc-lynx178. | |
1579 | ||
1580 | 2013-01-03 Ed Schonberg <schonberg@adacore.com> | |
1581 | ||
1582 | * atree.ads: Minor reformatting and documentation enhancement. | |
1583 | ||
c1ce0691 ES |
1584 | 2013-01-03 Ed Schonberg <schonberg@adacore.com> |
1585 | ||
1586 | * exp_ch3.adb (Expand_N_Object_Declaration): If the object has | |
1587 | a class-wide type and a renaming declaration is created for it, | |
1588 | preserve entity chain, which already contains generated internal | |
1589 | types. This ensures that freezing actions are properly generated | |
1590 | for all objects declared subsequently in the same scope, and | |
1591 | that debugging information is generated for them. | |
1592 | * sem_util.adb, sem_util.ads (we): New debugging routine, to | |
1593 | display entity chain of a given scope. | |
1594 | ||
329ea7ec AC |
1595 | 2013-01-03 Robert Dewar <dewar@adacore.com> |
1596 | ||
1597 | * exp_intr.adb: Minor reformatting. | |
1598 | ||
1599 | 2013-01-03 Robert Dewar <dewar@adacore.com> | |
1600 | ||
1601 | * einfo.adb: Minor reformatting. | |
1602 | ||
1603 | 2013-01-03 Pascal Obry <obry@adacore.com> | |
1604 | ||
1605 | * adaint.c, adaint.h (__gnat_get_module_name): Removed. | |
1606 | (__gnat_is_module_name_supported): Removed. | |
1607 | * s-win32.ads: Add some needed definitions. | |
1608 | * g-trasym.ads: Update comments. | |
1609 | ||
1610 | 2013-01-03 Robert Dewar <dewar@adacore.com> | |
1611 | ||
1612 | * layout.adb (Set_Composite_Alignment): Fix problems of | |
1613 | interactions with Optimize_Alignment set to Space. | |
1614 | ||
1615 | 2013-01-03 Thomas Quinot <quinot@adacore.com> | |
1616 | ||
1617 | * exp_disp.adb: Minor reformatting. | |
1618 | ||
b8f6a302 RB |
1619 | 2013-01-02 Richard Biener <rguenther@suse.de> |
1620 | ||
1621 | PR bootstrap/55784 | |
1622 | * gcc-interface/Makefile.in: Add $(GMPINC) to includes. | |
1623 | ||
0469274e TQ |
1624 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1625 | ||
1626 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove | |
1627 | side effects from Tag_Arg early, doing it too late may cause a | |
1628 | crash due to inconsistent Parent link. | |
1629 | * sem_ch8.adb, einfo.ads: Minor reformatting. | |
1630 | ||
ca1ffed0 AC |
1631 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1632 | ||
1633 | * einfo.ads, einfo.adb (Has_Independent_Components): New flag. | |
1634 | * freeze.adb (Size_Known): We do not know the size of a packed | |
1635 | record if it has atomic components, by reference type components, | |
1636 | or independent components. | |
1637 | * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new | |
1638 | flag Has_Independent_Components. | |
1639 | ||
1640 | 2013-01-02 Yannick Moy <moy@adacore.com> | |
1641 | ||
1642 | * opt.ads (Warn_On_Suspicious_Contract): Set to True by default. | |
1643 | * usage.adb (Usage): Update usage message. | |
1644 | ||
1645 | 2013-01-02 Pascal Obry <obry@adacore.com> | |
1646 | ||
1647 | * adaint.c (__gnat_is_module_name_supported): New constant. | |
1648 | ||
1649 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1650 | ||
1651 | * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an | |
1652 | array whose component type does not have a completion. | |
1653 | ||
4ff4293f AC |
1654 | 2013-01-02 Geert Bosch <bosch@adacore.com> |
1655 | ||
1656 | * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure. | |
1657 | ||
1658 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1659 | ||
1660 | * par_sco.adb: Minor reformatting. | |
1661 | ||
1662 | 2013-01-02 Javier Miranda <miranda@adacore.com> | |
1663 | ||
1664 | * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code. | |
1665 | ||
1666 | 2013-01-02 Olivier Hainque <hainque@adacore.com> | |
1667 | ||
1668 | * a-exctra.ads (Get_PC): New function. | |
1669 | ||
1670 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1671 | ||
1672 | * sem_ch8.adb: Minor reformatting. | |
1673 | ||
1674 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1675 | ||
1676 | * sem_ch7.adb: Minor reformatting. | |
1677 | ||
1678 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1679 | ||
1680 | * freeze.adb (Check_Component_Storage_Order): Do not crash on | |
1681 | _Tag component. | |
1682 | ||
ef7c5fa9 AC |
1683 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1684 | ||
1685 | * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add | |
1686 | On_Target to Atomic_Sync_Default. | |
1687 | ||
1688 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1689 | ||
1690 | * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for | |
1691 | comparison of attribute result with constant | |
1692 | * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma | |
1693 | Warnings (Off, ".."); | |
1694 | ||
1695 | 2013-01-02 Yannick Moy <moy@adacore.com> | |
1696 | ||
1697 | * sem_prag.ads: Minor correction of comment. | |
1698 | ||
1699 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1700 | ||
1701 | * par_sco.adb (Traverse_Package_Declaration): The first | |
1702 | declaration in a nested package is dominated by the preceding | |
1703 | declaration in the enclosing scope. | |
1704 | ||
1705 | 2013-01-02 Pascal Obry <obry@adacore.com> | |
1706 | ||
1707 | * adaint.c, adaint.h (__gnat_get_module_name): Return the actual | |
1708 | module containing a given address. | |
1709 | ||
e9f80612 AC |
1710 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1711 | ||
1712 | * sem_ch3.adb: Minor reformatting. | |
1713 | ||
1714 | 2013-01-02 Pascal Obry <obry@adacore.com> | |
1715 | ||
1716 | * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on | |
1717 | Win64 and default to ftell on other platforms. | |
1718 | (__gnat_fsek64): Likewise. | |
1719 | * i-cstrea.ads: Add fssek64 and ftell64 specs. | |
1720 | * s-crtl.ads: Likewise. | |
1721 | * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required. | |
1722 | (Set_Position): Likewise. | |
1723 | ||
2c28c7a7 AC |
1724 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1725 | ||
1726 | * par_sco.adb: Generate X SCOs for default expressions in | |
1727 | subprogram body stubs. Do not generate any SCO for package, | |
1728 | task, or protected body stubs. | |
1729 | ||
1730 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1731 | ||
1732 | * sem_ch3.adb: Further improvement to ASIS mode for anonymous | |
1733 | access to protected subprograms. | |
1734 | ||
9b23b7de RD |
1735 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1736 | ||
1737 | * par_sco.adb, vms_data.ads: Minor reformatting. | |
1738 | ||
dd2d73a7 AC |
1739 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1740 | ||
1741 | * par_sco.adb (Traverse_Declarations_Or_Statement): Function | |
1742 | form, returning value of Current_Dominant upon exit, for chaining | |
1743 | purposes. | |
1744 | (Traverse_Declarations_Or_Statement.Traverse_One, case | |
1745 | N_Block_Statement): First statement is dominated by last declaration. | |
1746 | (Traverse_Subprogram_Or_Task_Body): Ditto. | |
1747 | (Traverse_Package_Declaration): First private | |
1748 | declaration is dominated by last visible declaration. | |
1749 | (Traverse_Sync_Definition): Ditto. | |
1750 | ||
1751 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1752 | ||
1753 | * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order | |
1754 | matching Bit_Order to record types only, since array types do not | |
1755 | have a Bit_Order. | |
1756 | ||
1757 | 2013-01-02 Vincent Celier <celier@adacore.com> | |
1758 | ||
1759 | * gnat_ugn.texi: Remove documentation of -gnateO, which is an | |
1760 | internal switch. | |
1761 | * usage.adb: Indicate that -gnateO is an internal switch. | |
1762 | ||
7130729a TQ |
1763 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1764 | ||
1765 | * par_sco.adb: Add SCO generation for task types and single | |
1766 | task declarations. | |
1767 | * get_scos.adb: When adding an instance table entry for a | |
1768 | non-nested instantiation, make sure the Enclosing_Instance is | |
1769 | correctly set to 0. | |
1770 | ||
8ed7930e AC |
1771 | 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com> |
1772 | ||
1773 | * sem_attr.adb (Analyze_Attribute): Skip the special _Parent | |
1774 | scope generated for subprogram inlining purposes while trying | |
1775 | to locate the enclosing function. | |
1776 | * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean | |
1777 | expression of pragma Postcondition when the pragma comes from | |
1778 | source and appears inside a subprogram body. | |
1779 | ||
1780 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1781 | ||
1782 | * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation | |
1783 | information in debug info unconditionally when using -fdump-scos, | |
1784 | instead of relying on a separate command line switch -fdebug-instances. | |
8ed7930e AC |
1785 | * gcc-interface/Make-lang.in: Update dependencies. |
1786 | ||
1787 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1788 | ||
1789 | * sem_ch12.adb: Additional refinement of predicate. | |
1790 | ||
1791 | 2013-01-02 Vincent Celier <celier@adacore.com> | |
1792 | ||
1793 | * vms_data.ads: Remove incorrect spaces at end of descriptions | |
1794 | of qualifiers for single switch. | |
1795 | ||
1796 | 2013-01-02 Ben Brosgol <brosgol@adacore.com> | |
1797 | ||
1798 | * gnat_rm.texi: Minor edits / wordsmithing in section on pragma | |
1799 | Check_Float_Overflow. | |
1800 | ||
1801 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1802 | ||
1803 | * sprint.adb (Sprint_Node_Actual): Do not add extra parens for | |
1804 | a conditional expression (CASE or IF expression) that already | |
1805 | has parens. Also omit ELSE keyword for an IF expression without | |
1806 | an ELSE part. | |
1807 | ||
1808 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1809 | ||
1810 | * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end | |
1811 | flag_debug_instances here, after front-end switches have been | |
1812 | processed. | |
1813 | ||
fab62a15 AC |
1814 | 2013-01-02 Vincent Celier <celier@adacore.com> |
1815 | ||
1816 | * usage.adb: Minor reformatting. | |
1817 | ||
1818 | 2013-01-02 Arnaud Charlet <charlet@adacore.com> | |
1819 | ||
1820 | * opt.ads: Fix typo. | |
1821 | ||
1822 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1823 | ||
1824 | * par_sco.adb: Generate P decision SCOs for SPARK pragmas | |
1825 | Assume and Loop_Invariant. | |
1826 | ||
2dbdd821 RD |
1827 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1828 | ||
1829 | * vms_data.ads: Add entry for Float_Check_Valid (-gnateF). | |
1830 | * ug_words: Add entry for Float_Check_Overflow. | |
1831 | * usage.adb: Minor reformatting. | |
1832 | * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow). | |
1833 | ||
33decf81 VC |
1834 | 2013-01-02 Vincent Celier <celier@adacore.com> |
1835 | ||
1836 | * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated, | |
1837 | -gnateO=, -gnatet and -gnateV. | |
1838 | * ug_words: Add qualifiers equivalent to -gnateA, -gnated, | |
1839 | -gnatet and -gnateV. | |
1840 | * usage.adb: Add lines for -gnatea, -gnateO and -gnatez. | |
1841 | * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK | |
1842 | (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated), | |
1843 | /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO | |
1844 | (-gnatet). | |
1845 | ||
347c766a RD |
1846 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1847 | ||
1848 | * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow. | |
1849 | * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config]. | |
1850 | * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow. | |
1851 | * sem_prag.adb: Implement pragma Check_Float_Overflow. | |
1852 | * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow. | |
1853 | * switch-c.adb: Recognize -gnateF switch. | |
1854 | * tree_io.ads: Update ASIS version number. | |
1855 | * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow. | |
1856 | ||
685bc70f AC |
1857 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1858 | ||
1859 | * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, | |
1860 | exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb, | |
1861 | freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb, | |
1862 | par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb, | |
1863 | sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb, | |
1864 | sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages. | |
1865 | * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates. | |
1866 | ||
1867 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1868 | ||
1869 | * err_vars.ads: Minor comment fix. | |
1870 | ||
1871 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1872 | ||
1873 | * sem_ch12.adb: Refine predicate. | |
1874 | ||
324ac540 AC |
1875 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1876 | ||
1877 | * errout.ads: Minor comment fixes. | |
1878 | * opt.ads: Minor comment additions. | |
1879 | * exp_aggr.adb: Add tags to warning messages | |
1880 | * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb, | |
1881 | sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb, | |
1882 | sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb, | |
1883 | sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb, | |
1884 | sem_warn.adb: Add tags to warning messages | |
1885 | ||
1886 | 2013-01-02 Doug Rupp <rupp@adacore.com> | |
1887 | ||
1888 | * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E. | |
1889 | ||
1890 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1891 | ||
1892 | * sem_ch12.adb: Recover source name for renamed packagea. | |
1893 | ||
dbfeb4fa RD |
1894 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1895 | ||
1896 | * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing | |
1897 | tests to fail if insertion sequence is at end of message string. | |
1898 | * opt.ads: Minor comment fixes and additions. | |
1899 | * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb, | |
1900 | sem_ch12.adb, sem_ch13.adb: Add tags to warning messages. | |
1901 | * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message | |
1902 | tags. Add tags to warning messages. | |
1903 | ||
a3633438 AC |
1904 | 2013-01-02 Robert Dewar <dewar@adacore.com> |
1905 | ||
1906 | * err_vars.ads (Warning_Doc_Switch): New flag. | |
1907 | * errout.adb (Error_Msg_Internal): Implement new warning flag | |
1908 | doc tag stuff (Set_Msg_Insertion_Warning): New procedure. | |
1909 | * errout.ads: Document new insertion sequences ?? ?x? ?.x? | |
1910 | * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc | |
1911 | tag stuff. | |
1912 | * erroutc.ads (Warning_Msg_Char): New variable. | |
1913 | (Warn_Chr): New field in error message object. | |
1914 | * errutil.adb (Error_Msg): Set Warn_Chr in error message object. | |
1915 | * sem_ch13.adb: Minor reformatting. | |
1916 | * warnsw.adb: Add handling for -gnatw.d and -gnatw.D | |
1917 | (Warning_Doc_Switch). | |
1918 | * warnsw.ads: Add handling of -gnatw.d/.D switches (warning | |
1919 | doc tag). | |
1920 | ||
1921 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1922 | ||
1923 | * opt.ads: Minor reformatting. | |
1924 | ||
1925 | 2013-01-02 Doug Rupp <rupp@adacore.com> | |
1926 | ||
1927 | * init.c: Reorganize VMS section. | |
1928 | (scan_condtions): New function for scanning condition tables. | |
1929 | (__gnat_handle_vms_condtion): Use actual exception name for imported | |
1930 | exceptions vice IMPORTED_EXCEPTION. | |
1931 | Move condition table scanning into separate function. Move formerly | |
1932 | special handled conditions to system condition table. Use SYS$PUTMSG | |
1933 | output to fill exception message field for formally special handled | |
1934 | condtions, in particular HPARITH to provide more clues about cause and | |
1935 | location then raised from the translated image. | |
1936 | ||
6a04272a TQ |
1937 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1938 | ||
1939 | * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post | |
1940 | aspect that applies to a library subprogram, prepend corresponding | |
1941 | pragma to the Pragmas_After list, in order for split AND THEN | |
1942 | sections to be processed in the expected order. | |
1943 | ||
c5d00db0 AC |
1944 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1945 | ||
1946 | * exp_prag.adb (Expand_Pragma_Check): The statements generated | |
1947 | for the pragma must have the sloc of the pragma, not the | |
1948 | sloc of the condition, otherwise this creates anomalies in the | |
1949 | generated debug information that confuse coverage analysis tools. | |
1950 | ||
1951 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
1952 | ||
1953 | * sem_ch13.adb: Minor reformatting. | |
1954 | ||
1955 | 2013-01-02 Arnaud Charlet <charlet@adacore.com> | |
1956 | ||
1957 | * g-excact.ads (Core_Dump): Clarify that this subprogram does | |
1958 | not dump cores under Windows. | |
1959 | ||
1960 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1961 | ||
1962 | * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed | |
1963 | view of a subprogram has convention Intrnnsic, and a renaming | |
1964 | of a prefixed view cannot be the prefix of an Access attribute. | |
1965 | ||
1966 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1967 | ||
1968 | * restrict.adb: Minor reformatting. | |
1969 | ||
39ce7604 AC |
1970 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
1971 | ||
1972 | * exp_prag.adb: Minor reformatting. | |
1973 | ||
1974 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1975 | ||
1976 | * sem_ch12.adb (Get_Associated_Node): If the node is an | |
1977 | identifier that denotes an unconstrained array in an object | |
1978 | declaration, it is rewritten as the name of an anonymous | |
1979 | subtype whose bounds are given by the initial expression in the | |
1980 | declaration. When checking whether that identifier is global | |
1981 | reference, use the original node, not the local generated subtype. | |
1982 | ||
1983 | 2013-01-02 Olivier Hainque <hainque@adacore.com> | |
1984 | ||
1985 | * tracebak.c: Revert previous change, incomplete. | |
1986 | ||
1987 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
1988 | ||
1989 | * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect | |
1990 | appears on a subprogram body that acts as a spec, place the | |
1991 | corresponding pragma in the declarations of the body, so that | |
1992 | e.g. pre/postcondition checks can be generated appropriately. | |
1993 | ||
1994 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
1995 | ||
1996 | * sem_ch3.adb: Minor reformatting and code reorganization. | |
1997 | ||
1824c168 AC |
1998 | 2013-01-02 Vincent Celier <celier@adacore.com> |
1999 | ||
2000 | * switch-m.adb (Normalize_Compiler_Switches): Record the | |
2001 | complete switch -fstack-check=specific instead of its shorter | |
2002 | alias -fstack-check. | |
2003 | ||
2004 | 2013-01-02 Ed Schonberg <schonberg@adacore.com> | |
2005 | ||
2006 | * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8): | |
2007 | if the derived type is a tagged generic formal type with | |
2008 | unknown discriminants, the inherited operation has convention | |
2009 | Intrinsic. As such, the 'Access attribute cannot be applied to it. | |
2010 | ||
2011 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
2012 | ||
2013 | * sem_attr.adb: Minor reformatting. | |
2014 | ||
db318f46 AC |
2015 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
2016 | ||
2017 | * par_sco.adb: Add SCO generation for S of protected types and | |
2018 | single protected object declarations. | |
2019 | ||
2020 | 2013-01-02 Robert Dewar <dewar@adacore.com> | |
2021 | ||
2022 | * sem_eval.adb, osint.ads: Minor reformatting. | |
2023 | ||
37c1f923 AC |
2024 | 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com> |
2025 | ||
2026 | * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume. | |
2027 | ||
2028 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
2029 | ||
2030 | * sem_eval.adb (Compile_Time_Compare): For static operands, we | |
2031 | can perform a compile time comparison even if in preanalysis mode. | |
2032 | ||
2033 | 2013-01-02 Thomas Quinot <quinot@adacore.com> | |
2034 | ||
2035 | * par_sco.adb (SCO_Record): Always use | |
2036 | Traverse_Declarations_Or_Statements to process the library level | |
2037 | declaration, so that SCOs are properly generated for its aspects. | |
2038 | ||
8f252d27 TQ |
2039 | 2013-01-02 Thomas Quinot <quinot@adacore.com> |
2040 | ||
2041 | * scos.ads (In_Decision): Add missing entry for 'a'. | |
2042 | * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit | |
2043 | call to Set_SCO_Pragma_Enabled for Invariant and Predicate. | |
2044 | * sem_ch13.adb: Minor comment update. | |
ad41bd84 | 2045 | \f |
86a2db33 | 2046 | Copyright (C) 2013 Free Software Foundation, Inc. |
ad41bd84 JM |
2047 | |
2048 | Copying and distribution of this file, with or without modification, | |
2049 | are permitted in any medium without royalty provided the copyright | |
2050 | notice and this notice are preserved. |